@font-face {
  font-family: "Ogniwo Display";
  src: url("../assets/ogniwo/league-gothic.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Ogniwo Sans";
  src: url("../assets/ogniwo/source-sans.ttf") format("truetype");
  font-weight: 200 900;
  font-display: swap;
}
.ogniwo-page {
  --ink: #1c1b17;
  --paper: #f0e8d7;
  --teal: #255b66;
  --amber: #eed560;
  --pink: #b93a28;
  --white: #faf5e9;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  color-scheme: light;
  font:
    18px/1.4 "Ogniwo Sans",
    Arial,
    sans-serif;
}
.ogniwo-page * {
  box-sizing: border-box;
}
.ogniwo-page [hidden] {
  display: none !important;
}
.join-address,
.lobby-status {
  margin-top: 18px !important;
  font:
    16px/1.4 "Courier New",
    monospace;
}
.ogniwo-page {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}
.ogniwo-page > main {
  flex: 1;
}
.game-ad-row {
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 122px;
  padding: 8px 0;
  border-top: 1px solid #c7bfaf;
  background: var(--paper);
}
.game-ad-label {
  font:
    10px/1 "Ogniwo Sans",
    sans-serif;
  color: #645f55;
}
#game-ad-unit {
  width: 728px;
  height: 90px;
  max-width: 100%;
}
@media (max-width: 727px) {
  #game-ad-unit[data-size="wide"] > ins {
    display: none !important;
  }
}
.controller-device .game-ad-row {
  min-height: 80px;
  padding-bottom: max(8px, env(safe-area-inset-bottom));
}
.controller-device #game-ad-unit {
  width: 320px;
  height: 50px;
}
.controller-device .game-toolbar .screen-tools {
  display: none;
}
.controller-device .gallery-backdrop,
.controller-device .scoreboard,
.controller-device .ladder,
.controller-device.is-playing .game-toolbar,
.controller-device.is-playing .ogniwo-header,
.controller-device.is-playing .game-guide,
.controller-device.is-playing .ogniwo-footer {
  display: none !important;
}
.controller-device.is-playing .arena {
  background: var(--paper);
  padding: 24px 22px;
}
.controller-device .stage-body,
.controller-device .scene {
  width: 100%;
  margin-left: 0;
}
.controller-device .stage-body {
  display: block;
  min-height: 0;
  padding-top: 0;
}
.controller-device .scene h2 {
  font-size: 54px;
}
.controller-device .answers {
  grid-template-columns: 1fr;
}
.controller-device .answer {
  font-size: 24px;
}
.ogniwo-page.phone-controller .arena {
  min-height: calc(100dvh - 80px) !important;
}
.is-playing:not(.controller-device) .arena {
  min-height: calc(100dvh - 187px);
}
.ogniwo-page a {
  color: inherit;
  text-underline-offset: 4px;
}
.ogniwo-page h1,
.ogniwo-page h2,
.ogniwo-page h3,
.ogniwo-page p {
  margin: 0;
}
.ogniwo-page h1,
.ogniwo-page h2 {
  font-family: "Ogniwo Display", "Arial Narrow", sans-serif;
  font-weight: 400;
}
.ogniwo-page button,
.ogniwo-page input,
.ogniwo-page textarea,
.ogniwo-page select {
  font:
    500 18px/1.3 "Ogniwo Sans",
    Arial,
    sans-serif;
}
.ogniwo-page button {
  min-height: 46px;
  padding: 10px 20px;
  color: var(--ink);
  border: 1px solid #938c7e;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  transition:
    background 0.15s var(--ease-out),
    color 0.15s var(--ease-out);
}
.ogniwo-page button:disabled {
  opacity: 0.4;
  cursor: default;
}
.ogniwo-page :focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 4px;
}
.ogniwo-page .primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  font-weight: 650;
}
.ogniwo-header.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 50px;
  padding: 0 4vw;
  background: var(--paper);
  box-shadow: none;
  border-bottom: 1px solid #c7bfaf;
  position: relative;
}
.ogniwo-header a {
  text-decoration: none;
  font-size: 14px;
}
.game-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 4vw;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
}
.screen-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ogniwo-page #fullscreen,
.ogniwo-page #sound {
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font:
    600 16px/1.2 "Ogniwo Sans",
    sans-serif;
  cursor: pointer;
}
.music-option {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
}
.music-option input {
  width: 20px;
  height: 20px;
  accent-color: var(--ink);
}
.volume-option {
  font-size: 14px;
}
.game-tools input[type="range"] {
  width: 100%;
  min-height: 32px;
  accent-color: var(--ink);
}
.scoreboard > div:first-child {
  position: relative;
}
.bank-transfer {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 4;
  padding: 2px 8px;
  color: var(--paper);
  background: var(--ink);
  font:
    700 22px "Courier New",
    monospace;
  pointer-events: none;
}
.arena[data-urgent="true"] #round-clock {
  color: var(--pink);
  text-decoration: underline;
  text-underline-offset: 5px;
}
.ogniwo-page .tool-head {
  margin: 0;
  text-align: left;
}
.ogniwo-page .game-wordmark {
  font:
    400 clamp(35px, 4vw, 58px)/1 "Ogniwo Display",
    "Arial Narrow",
    sans-serif;
  letter-spacing: -0.015em;
}
.game-description {
  display: none;
}
.settings {
  position: relative;
  flex-shrink: 0;
  z-index: 10;
}
.settings > summary {
  display: flex;
  padding: 10px;
  cursor: pointer;
  list-style: none;
}
.settings > summary::-webkit-details-marker {
  display: none;
}
.game-tools {
  position: absolute;
  right: 0;
  top: 45px;
  width: 220px;
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--ink);
  background: var(--paper);
  box-shadow: 6px 6px 0 #1c1b171a;
}
.game-tools button {
  text-align: left;
  font-size: 15px;
}
.game-error {
  max-width: 1100px;
  margin: 10px auto !important;
  padding: 12px 18px;
  background: #eed9c9;
  border-left: 4px solid var(--pink);
}
.setup-scene {
  max-width: 1240px;
  margin: 30px auto 60px;
  padding: 0 5vw 0 55%;
  position: relative;
  min-height: 540px;
  background: url("../assets/ogniwo/archive/neon-vegas.jpg") left 35%/44% auto
    no-repeat;
}
.setup-scene:after {
  content: "";
  position: absolute;
  left: 29%;
  top: 40%;
  width: 15%;
  height: 57%;
  background: url("../assets/ogniwo/archive/work-with-care.jpg") center/cover;
  pointer-events: none;
}
.setup-form {
  position: relative;
  z-index: 1;
}
.setup-form label {
  display: block;
  font:
    14px/1.4 "Courier New",
    monospace;
  margin: 16px 0 6px;
}
.setup-form input,
.setup-form textarea,
.setup-form select {
  display: block;
  width: 100%;
  padding: 10px 0;
  min-height: 44px;
  background: transparent;
  color: var(--ink);
  border: 0;
  border-bottom: 1px solid #a89e8d;
  border-radius: 0;
}
.setup-form textarea {
  resize: vertical;
  max-height: 170px;
}
.mode-choice {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid #a89e8d;
}
.mode-choice button {
  flex: 1;
  font-size: 15px;
  border: 0;
  padding: 10px 0;
}
.mode-choice button[aria-pressed="true"] {
  border-bottom: 3px solid var(--pink);
  font-weight: 700;
}
.settings-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.settings-row select {
  margin-top: 6px;
}
.setup-form form > button {
  width: auto;
  margin-top: 30px;
  padding: 9px 34px;
  font:
    400 36px "Ogniwo Display",
    sans-serif;
}
.small-note {
  font-size: 12px;
  color: #645f55;
  margin-top: 16px !important;
}
.join-rule {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #a89e8d;
  font-weight: 700;
}
#resume {
  width: 100%;
  margin-top: 12px;
}
.arena {
  position: relative;
  isolation: isolate;
  max-width: 1600px;
  margin: auto;
  padding: 18px 4vw 28px;
  min-height: 680px;
  overflow: clip;
  background: var(--paper);
}
.arena:after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23000' filter='url(%23n)' d='M0 0h180v180H0z'/%3E%3C/svg%3E");
}
.scoreboard {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 28px;
  position: relative;
  z-index: 3;
  width: 70%;
  margin-left: 26%;
  padding-bottom: 14px;
}
.scoreboard > div {
  display: flex;
  align-items: baseline;
  gap: 9px;
  font:
    16px "Courier New",
    monospace;
}
.scoreboard strong {
  font:
    700 23px "Courier New",
    monospace;
  font-variant-numeric: tabular-nums;
}
.scoreboard small,
.scoreboard .round-score,
.clock-score span {
  display: none;
}
.scoreboard .clock-score {
  margin-left: auto;
}
.stage-body {
  display: block;
  min-height: 490px;
  padding-top: 36px;
  position: relative;
  z-index: 2;
  max-width: none;
}
.scene {
  position: relative;
  min-width: 0;
  width: 70%;
  margin-left: 26%;
}
.scene h2 {
  font-size: clamp(55px, 6.6vw, 104px);
  line-height: 0.99;
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;
  max-width: 100%;
}
.scene .scene-label {
  display: block;
  font:
    15px "Courier New",
    monospace;
  margin-bottom: 18px;
}
.paper {
  padding: 0;
  text-align: left;
  background: transparent;
}
.question-timer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 14px;
  font:
    14px "Courier New",
    monospace;
}
.question-timer b {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.answers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 28px;
  margin-top: 36px;
}
.ogniwo-page .answer {
  display: flex;
  gap: 15px;
  align-items: center;
  min-height: 64px;
  text-align: left;
  padding: 12px 4px;
  border: 0;
  border-top: 1px solid #8e877b;
  background: transparent;
  font-size: 23px;
}
.answer .letter {
  font:
    400 30px "Ogniwo Display",
    sans-serif;
  color: var(--pink);
}
.ogniwo-page .answer:disabled {
  opacity: 1;
}
.ogniwo-page h2[tabindex="-1"]:focus {
  outline: none;
}
.scene-actions {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}
.scene-actions button {
  min-width: 125px;
  min-height: 50px;
  font-size: 21px;
  border: 0;
  border-bottom: 1px solid var(--ink);
  padding: 10px 18px;
}
.question-actions button {
  min-width: 75px;
  min-height: 38px;
  font:
    18px "Courier New",
    monospace;
  padding: 6px 0;
  text-align: left;
}
.decision-title {
  font-size: clamp(100px, 13vw, 210px) !important;
}
.decision-copy,
.ladder,
.host-line,
.player-strip {
  display: none;
}
.room-controls {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin: 24px 0 0;
  position: relative;
  z-index: 3;
}
.room-controls button {
  font-size: 12px;
  min-height: 30px;
  padding: 4px 0;
  border: 0;
  margin-right: 16px;
}
.room-controls span {
  font-size: 13px;
}
.room-controls span:empty {
  display: none;
}
.room-code {
  display: block;
  margin: 22px 0;
  color: var(--pink);
  font:
    700 clamp(25px, 3.5vw, 47px)/1.2 "Courier New",
    monospace;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
}
.invite-link {
  display: none;
}
.lobby-title {
  font-size: clamp(90px, 12vw, 180px) !important;
}
.lobby-roster {
  display: flex;
  list-style: none;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
}
.lobby-roster li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
}
.ready-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a49d8d;
}
.ready-dot.is-ready {
  background: var(--teal);
}
.reveal-title {
  font-size: clamp(90px, 12vw, 170px) !important;
  color: var(--teal);
}
.reveal-title.is-wrong {
  color: var(--pink);
}
.fact-paper {
  margin-top: 24px;
}
.correct-answer {
  font:
    400 clamp(35px, 4vw, 60px)/1.1 "Ogniwo Display",
    sans-serif;
}
.answer-detail {
  margin-top: 20px;
  font-size: 17px;
  max-width: 650px;
}
.answer-detail summary {
  font:
    14px "Courier New",
    monospace;
  cursor: pointer;
}
.answer-detail p {
  margin-top: 14px;
}
.answer-detail a {
  display: inline-block;
  margin-top: 10px;
  color: var(--teal);
  font-size: 14px;
}
.fact-photo {
  float: right;
  width: 100px;
  max-height: 120px;
  object-fit: contain;
  margin: 12px 0 8px 20px;
}
.bank-amount {
  display: block;
  margin: 16px 0;
  font:
    400 clamp(130px, 22vw, 320px)/0.9 "Ogniwo Display",
    sans-serif;
  font-variant-numeric: tabular-nums;
}
.final-title {
  font:
    18px "Courier New",
    monospace !important;
}
.final-stats,
.final-roster {
  display: none;
}
.scene .wait {
  padding: 65px 0;
}
.wait p {
  display: none;
}
.party-word {
  display: inline-block;
}
.gallery-backdrop {
  position: absolute;
  left: 0;
  top: 110px;
  width: 22%;
  height: 57%;
  z-index: 0;
  margin: 0;
  pointer-events: none;
}
.archive-main {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 43% center;
}
.archive-poster {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 25%;
  height: 45%;
  object-fit: cover;
  display: none;
}
.archive-credit {
  position: absolute;
  bottom: 8px;
  left: 8px;
  pointer-events: auto;
  color: var(--white);
  font:
    12px "Ogniwo Sans",
    sans-serif;
  text-align: right;
  z-index: 4;
}
.archive-credit summary {
  cursor: pointer;
  background: #171715e8;
  padding: 6px 10px;
  list-style: none;
}
.archive-credit div {
  max-width: 280px;
  padding: 14px;
  background: #171715f5;
  text-align: left;
  line-height: 1.5;
}
.archive-credit a {
  display: block;
  margin-top: 8px;
  color: inherit;
}
.archive-credit small {
  display: block;
  margin-top: 8px;
}
.game-guide {
  max-width: 1000px;
  padding: 0 24px;
  margin: 25px auto 40px;
  color: #645f55;
  font-size: 15px;
}
.game-guide details {
  border-top: 1px solid #b7ae9e;
  padding: 16px 0;
}
.game-guide summary {
  color: var(--ink);
  cursor: pointer;
}
.game-guide p {
  margin: 12px 0;
}
.game-guide h2 {
  font-size: 26px;
  margin-top: 20px;
}
.game-guide .related-tools {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  font-size: 14px;
  margin-top: 12px;
}
.ogniwo-footer.site-footer {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 0;
  padding: 20px;
  border-top: 1px solid #b7ae9e;
  color: #645f55;
  background: var(--paper);
  font-size: 13px;
}
.is-playing .ogniwo-header,
.is-playing .game-guide,
.is-playing .ogniwo-footer {
  display: none;
}
.is-playing .game-toolbar {
  height: 65px;
  padding: 12px 4vw;
}
.is-playing .game-wordmark {
  font-size: 33px;
  padding-top: 18px;
}
.is-playing .arena {
  min-height: calc(100dvh - 65px);
}
.arena:fullscreen {
  width: 100%;
  max-width: none;
  min-height: 100dvh;
}
.arena:fullscreen .stage-body {
  min-height: 65dvh;
}
.arena.presenter .scene-actions .control-action {
  display: none;
}
.join-invite #start-form,
.join-invite .mode-choice,
.join-invite .game-guide,
.join-invite .settings,
.join-invite .join-rule {
  display: none;
}
.join-invite .setup-scene {
  max-width: 470px;
  min-height: 0;
  padding: 0 24px;
  background: none;
}
.join-invite .setup-scene:after {
  display: none;
}
#room-code {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font:
    500 26px/1.3 "Courier New",
    monospace;
}
@media (hover: hover) and (pointer: fine) {
  .ogniwo-page button:not(:disabled):hover {
    background: #e0d5bf;
  }
  .ogniwo-page .primary:not(:disabled):hover {
    background: var(--teal);
    color: var(--white);
  }
}
@media (min-width: 641px) and (max-height: 800px) {
  .stage-body {
    min-height: 405px;
    padding-top: 22px;
  }
  .scene h2 {
    font-size: clamp(48px, 5.8vw, 80px);
  }
  .answers {
    margin-top: 26px;
  }
  .ogniwo-page .answer {
    min-height: 54px;
    padding: 9px 4px;
  }
  .scene-actions {
    margin-top: 20px;
  }
  .room-controls {
    margin-top: 14px;
  }
}
@media (max-width: 900px) {
  .setup-scene {
    padding-left: 51%;
    padding-right: 24px;
    background-size: 43% auto;
  }
  .setup-scene:after {
    left: 29%;
  }
  .scoreboard {
    gap: 16px;
  }
  .scoreboard > div {
    font-size: 14px;
  }
  .scoreboard strong {
    font-size: 20px;
  }
  .scene {
    width: 72%;
    margin-left: 25%;
  }
  .scoreboard {
    width: 72%;
    margin-left: 25%;
  }
  .scene h2 {
    font-size: clamp(47px, 6.8vw, 80px);
  }
  .ogniwo-page .answer {
    font-size: 19px;
  }
}
@media (max-width: 640px) {
  .ogniwo-header.site-header {
    padding-inline: 18px;
    height: 48px;
  }
  .game-toolbar {
    padding: 22px 20px;
  }
  .game-wordmark {
    max-width: 280px;
  }
  .setup-scene {
    padding: 0 20px;
    min-height: 0;
    background: none;
  }
  .setup-scene:after {
    display: none;
  }
  .mode-choice button {
    font-size: 15px;
  }
  .arena {
    padding: 18px 20px 35px;
  }
  .arena:after,
  .gallery-backdrop {
    display: none;
  }
  .stage-body,
  .scoreboard {
    max-width: none;
    width: 100%;
    margin-left: 0;
  }
  .scene {
    width: 100%;
    margin-left: 0;
  }
  .scoreboard {
    gap: 14px;
  }
  .scoreboard span {
    font-size: 12px;
  }
  .scoreboard strong {
    font-size: 18px;
  }
  .stage-body {
    min-height: 380px;
    padding-top: 24px;
  }
  .scene h2 {
    font-size: 52px;
  }
  .answers {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 26px;
  }
  .ogniwo-page .answer {
    font-size: 21px;
    min-height: 58px;
  }
  .scene-actions {
    gap: 15px;
  }
  .scene-actions button {
    min-width: 110px;
    font-size: 19px;
  }
  .game-error {
    margin: 5px 18px !important;
  }
  .room-controls {
    flex-wrap: wrap;
  }
  .phone-controller .game-toolbar,
  .phone-controller .scoreboard,
  .phone-controller .ladder,
  .phone-controller #presenter,
  .phone-controller .game-guide,
  .phone-controller .ogniwo-footer {
    display: none !important;
  }
  .phone-controller .arena {
    padding: 24px 22px;
    min-height: 100dvh !important;
    background: var(--paper);
  }
  .phone-controller .stage-body {
    display: block;
    min-height: 0;
    padding: 0;
  }
  .phone-controller .scene h2 {
    font:
      400 54px/1.02 "Ogniwo Display",
      "Arial Narrow",
      sans-serif;
  }
  .phone-controller .paper {
    padding: 0;
    border: 0;
    text-align: left;
    background: transparent;
  }
  .phone-controller .question-timer {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #8e877b;
    font-size: 16px;
  }
  .phone-controller .question-timer b {
    font-size: 18px;
  }
  .phone-controller .answers {
    margin-top: 30px;
  }
  .phone-controller .letter {
    display: block;
  }
  .phone-controller .scene .scene-label {
    margin-bottom: 18px;
    font-size: 15px;
  }
  .phone-controller .scene-actions {
    margin-top: 26px;
  }
  .phone-controller .scene-actions button {
    min-height: 48px;
  }
  .phone-controller .answer-detail,
  .phone-controller .invite-link {
    display: none;
  }
  .phone-controller .room-controls {
    margin-top: 34px;
  }
  .phone-controller .wait {
    padding: 80px 0 30px;
  }
  .phone-controller .bank-amount {
    font-size: 130px;
  }
  .phone-controller .final-title {
    font-size: 20px !important;
  }
}

/* The desktop is a changing photographic poster wall. Controls never animate. */
@media (min-width: 641px) {
  .arena {
    min-height: calc(100dvh - 65px);
    padding: 20px 4vw 24px;
    background: #152f37;
  }
  .gallery-backdrop,
  .arena[data-phase] .gallery-backdrop {
    inset: 0;
    width: 100%;
    height: 100%;
    background: #193944;
  }
  .archive-main {
    position: absolute;
    inset: 0 0 0 auto;
    width: 68%;
    height: 100%;
    object-fit: cover;
    object-position: 28% 60%;
  }
  .archive-poster {
    display: block;
    position: absolute;
    left: -5%;
    right: auto;
    top: -12%;
    bottom: auto;
    width: 58%;
    height: 123%;
    object-fit: cover;
    transform: rotate(-8deg);
  }
  .archive-fragment {
    display: block;
    position: absolute;
    right: 16%;
    bottom: -16%;
    width: 27%;
    height: 70%;
    object-fit: cover;
    transform: rotate(8deg);
  }
  .arena[data-layout="1"] .archive-poster {
    left: -10%;
    top: -23%;
    width: 70%;
    height: 115%;
    transform: rotate(7deg);
  }
  .arena[data-layout="1"] .archive-fragment {
    right: 4%;
    bottom: -31%;
    width: 32%;
    height: 90%;
    transform: rotate(-8deg);
  }
  .arena[data-layout="2"] .archive-poster {
    left: -9%;
    top: -7%;
    width: 53%;
    height: 125%;
    transform: rotate(-5deg);
  }
  .arena[data-layout="2"] .archive-fragment {
    right: 18%;
    bottom: -27%;
    width: 34%;
    height: 82%;
    transform: rotate(12deg);
  }
  .archive-credit {
    left: auto;
    right: 14px;
    bottom: 12px;
  }
  .scoreboard,
  .arena[data-phase] .scoreboard {
    width: 70%;
    margin-left: 0;
    padding: 10px 16px;
    gap: 22px;
    background: var(--paper);
    transform: rotate(0.6deg);
  }
  .stage-body {
    max-width: none;
    min-height: 475px;
    padding-top: 24px;
  }
  .scene,
  .arena[data-phase] .scene {
    width: 70%;
    margin-left: 0;
    padding-top: 0;
  }
  .question-timer {
    width: 100%;
    background: var(--paper);
    padding: 7px 15px;
    margin-bottom: 9px;
  }
  .paper {
    background: var(--paper);
    padding: 22px 28px 25px;
    margin: 0 -30px 0 -16px;
    transform: rotate(-1.6deg);
    pointer-events: none;
  }
  .paper h2 {
    font-size: clamp(58px, 6.5vw, 96px);
    line-height: 0.98;
  }
  .arena[data-layout="1"] .paper {
    transform: rotate(1.4deg);
    margin-left: 12px;
    margin-right: -55px;
  }
  .arena[data-layout="2"] .paper {
    transform: rotate(-2.5deg);
    margin-left: -35px;
    margin-right: 5px;
  }
  .answers {
    position: relative;
    background: var(--paper);
    padding: 0 22px 7px;
    margin-top: 27px;
    gap: 0 24px;
  }
  .answers:before {
    content: "";
    position: absolute;
    inset: -7px -6px;
    z-index: -1;
    background: var(--paper);
    transform: rotate(0.5deg);
  }
  .ogniwo-page .answer {
    font-size: 22px;
    min-height: 57px;
  }
  .scene-actions {
    width: fit-content;
    background: var(--paper);
    padding: 0 18px;
    margin-top: 20px;
  }
  .question-actions {
    padding: 0 16px;
  }
  .question-actions button {
    min-height: 34px;
    border: 0;
  }
  .room-controls {
    width: fit-content;
    background: var(--paper);
    padding: 2px 12px;
    margin-top: 22px;
  }
  .scene > .scene-label {
    width: fit-content;
    background: var(--paper);
    padding: 5px 12px;
    margin-bottom: 12px;
  }
  .decision-title {
    display: block;
    width: fit-content;
    background: var(--paper);
    padding: 6px 24px 16px;
    font-size: clamp(100px, 13vw, 190px) !important;
    transform: rotate(-3deg);
  }
  .arena[data-phase="decision"] .scene {
    padding-top: 40px;
  }
  .arena[data-phase="decision"] .question-timer {
    width: fit-content;
    min-width: 90px;
    margin-top: 18px;
  }
  .arena[data-phase="decision"] .archive-poster {
    left: -9%;
    width: 50%;
    transform: rotate(9deg);
  }
  .arena[data-phase="decision"] .archive-fragment {
    right: 21%;
    width: 28%;
    height: 75%;
    bottom: -12%;
    transform: rotate(-9deg);
  }
  .lobby-title {
    display: block;
    width: fit-content;
    padding: 12px 35px 24px;
    background: var(--paper);
    transform: rotate(-4deg);
  }
  .arena[data-phase="lobby"] .scene {
    padding-top: 35px;
  }
  .lobby-roster {
    width: fit-content;
    padding: 8px 16px;
    background: var(--paper);
  }
  .room-code {
    background: var(--amber);
    color: var(--ink);
    width: fit-content;
    padding: 6px 16px;
    transform: rotate(2deg);
  }
  .reveal-title {
    width: fit-content;
    padding: 8px 25px 18px;
    background: var(--paper);
    transform: rotate(-3deg);
  }
  .fact-paper {
    background: var(--paper);
    padding: 16px 25px;
    margin-top: 20px;
    transform: rotate(1deg);
  }
  .arena[data-phase="final"] .scene,
  .arena[data-phase="round"] .scene {
    padding: 25px 35px 30px;
    background: var(--paper);
    width: 60%;
    margin: 35px 0 0 7%;
    transform: rotate(-2deg);
  }
  .arena[data-phase="final"] .scene-actions,
  .arena[data-phase="round"] .scene-actions {
    padding-left: 0;
  }
  .arena[data-phase="final"] .archive-poster,
  .arena[data-phase="round"] .archive-poster {
    width: 58%;
    left: -27%;
    transform: rotate(7deg);
  }
  .bank-amount {
    font-size: clamp(120px, 22vw, 280px);
  }
  .ogniwo-page:not(.is-playing) .game-wordmark {
    font-size: clamp(60px, 8.5vw, 132px);
    max-width: 800px;
    line-height: 0.92;
  }
}
@media (min-width: 641px) and (max-height: 800px) {
  .stage-body {
    min-height: 455px;
    padding-top: 19px;
  }
  .paper {
    padding-top: 17px;
    padding-bottom: 20px;
  }
  .paper h2 {
    font-size: clamp(52px, 5.9vw, 80px);
  }
  .answers {
    margin-top: 22px;
  }
  .ogniwo-page .answer {
    min-height: 51px;
  }
}
@media (max-width: 640px) {
  .ogniwo-page:not(.is-playing) .game-wordmark {
    font-size: 60px;
  }
  .arena[data-phase] .scene,
  .arena[data-phase] .scoreboard {
    margin-left: 0;
    width: 100%;
    padding-top: 0;
    transform: none;
  }
  .arena .gallery-backdrop {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ogniwo-page *,
  .ogniwo-page *:before,
  .ogniwo-page *:after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

.scene h2.question-long {
  font-size: clamp(46px, 5.4vw, 80px);
}
@media (max-width: 640px) {
  .phone-controller .scene h2.question-long {
    font-size: 40px;
    line-height: 1.08;
  }
}

/* Ballots stay private; the shared screen shows round statistics, never live tallies. */
.vote-title,
.eliminated-name {
  width: fit-content;
  background: var(--paper);
  padding: 12px 25px 20px;
  transform: rotate(-2deg);
}
.scene h2.vote-title {
  font-size: clamp(60px, 8vw, 115px);
}
.scene h2.eliminated-name {
  font-size: clamp(80px, 11vw, 150px);
  color: var(--pink);
}
.vote-options,
.vote-roster {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
  background: var(--paper);
  padding: 12px 22px;
  margin: 25px 0 0;
  list-style: none;
}
.ogniwo-page .vote-option {
  font-size: 25px;
  text-align: left;
  border: 0;
  border-bottom: 1px solid #8e877b;
  padding: 12px 4px;
  min-height: 55px;
}
.vote-roster li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 15px;
  padding: 10px 0;
  border-bottom: 1px solid #8e877b;
  font-size: 24px;
}
.vote-roster small {
  font:
    14px "Courier New",
    monospace;
  white-space: nowrap;
}
.vote-progress,
.vote-tally {
  display: inline-block;
  background: var(--paper);
  padding: 8px 16px;
  margin-top: 16px !important;
  font:
    16px "Courier New",
    monospace;
}
.survivors {
  font-size: 19px;
  margin: 14px 0 !important;
}
.arena[data-phase="vote"] .question-timer,
.arena[data-phase="tiebreak"] .question-timer,
.arena[data-phase="elimination"] .question-timer {
  width: fit-content;
  min-width: 170px;
}
@media (max-width: 640px) {
  .vote-options {
    grid-template-columns: 1fr;
    padding: 0;
    background: transparent;
    margin-top: 25px;
  }
  .phone-controller .vote-title,
  .phone-controller .eliminated-name {
    padding: 0;
    background: transparent;
    transform: none;
  }
  .phone-controller .scene h2.vote-title,
  .phone-controller .scene h2.eliminated-name {
    font-size: 54px;
  }
  .phone-controller .vote-option {
    font-size: 25px;
    min-height: 54px;
  }
  .phone-controller .question-timer {
    width: 100%;
    margin-bottom: 25px;
  }
  .phone-controller .vote-progress {
    padding: 0;
  }
}

/* One opaque reading surface keeps the room invitation legible over the collage. */
.arena[data-phase="lobby"] .scene {
  width: min(720px, 100%);
  padding-top: 20px;
}
.lobby-sheet {
  padding: clamp(22px, 3vw, 40px);
  background: var(--paper);
  color: var(--ink);
}
.scene .lobby-sheet .lobby-title {
  margin: 0;
  padding: 0;
  transform: none;
  background: transparent;
  font-size: clamp(40px, 6vw, 76px) !important;
  line-height: 1;
}
.lobby-sheet .room-code {
  width: fit-content;
  max-width: 100%;
  margin: 24px 0 0;
  padding: 5px 10px;
  background: var(--amber);
  color: var(--ink);
  transform: none;
  font-size: clamp(28px, 5.5vw, 64px);
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}
.lobby-sheet .join-address,
.lobby-sheet .lobby-status {
  font:
    400 18px/1.4 "Ogniwo Sans",
    sans-serif;
  overflow-wrap: anywhere;
}
.lobby-sheet .lobby-roster {
  margin: 24px 0 0;
  padding: 0;
  background: transparent;
}
.ogniwo-page .room-controls button {
  min-height: 44px;
  padding: 8px 14px;
  font-size: 15px;
  background: var(--paper);
  color: var(--ink);
}
.controller-device .lobby-sheet {
  padding: 0;
}
.lobby-sheet.has-qr {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  align-items: center;
  gap: 26px;
}
.lobby-copy {
  min-width: 0;
}
.lobby-sheet.has-qr .room-code {
  font-size: clamp(28px, 3.5vw, 48px);
}
.join-qr {
  display: block;
  width: 180px;
  aspect-ratio: 1;
  background: #fff;
}
.join-qr svg {
  display: block;
  width: 100%;
  height: 100%;
}
.h5-entry .ogniwo-header,
.h5-entry #ogniwo,
.h5-entry .game-ad-row,
.h5-entry .ogniwo-footer {
  display: none !important;
}
.entry-loading {
  display: none;
}
.h5-entry .entry-loading {
  display: grid;
  place-items: center;
  min-height: 100dvh;
  margin: 0;
  font:
    24px "Ogniwo Sans",
    sans-serif;
}
@media (max-width: 800px) {
  .lobby-sheet.has-qr {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
}
