:root {
  /* All modes share one portrait play surface. Landscape devices scroll within
     a readable-width composition instead of shrinking touch targets. */
  --game-width: min(100vw, 456px);
  --ink: #203b37;
  --deep: #193f39;
  --teal: #256558;
  --mint: #b4cbb2;
  --cream: #f6f1df;
  --paper: #fffae9;
  --line: #8e9c82;
  --coral: #b83e27;
  --coral-bright: #df5b37;
  --yellow: #eeb652;
  --muted: #56665a;
  --shadow: 4px 4px 0 #293f35;
  --mono: 'SFMono-Regular', 'Cascadia Mono', 'Courier New', monospace;
  --sans: 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  width: var(--game-width);
  max-width: 100%;
  min-height: 100dvh;
  min-height: max(100dvh, calc(var(--game-width) * 1.7778));
  margin: 0 auto;
  box-shadow:
    0 0 0 1px #142c27,
    0 4px 60px #0b251f66;
  background:
    radial-gradient(#374f3f26 0.7px, transparent 0.8px) 0 0/5px 5px,
    var(--cream);
  font: 500 15px/1.55 var(--sans);
  color: var(--ink);
}
button,
input {
  font: inherit;
  color: inherit;
}
button,
a,
input {
  touch-action: manipulation;
}
button {
  min-height: 44px;
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
button:focus-visible,
input:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #ab4f09;
  outline-offset: 3px;
}
button:active:not(:disabled) {
  transform: translateY(2px);
}
button:disabled:active {
  transform: none;
}
a {
  color: inherit;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 900;
  line-height: 1.18;
}
button,
input,
dialog {
  border-radius: 0;
}
button svg {
  display: block;
}
canvas {
  image-rendering: pixelated;
  display: block;
}
html {
  scroll-padding-top: 8px;
  min-height: 100%;
  background-color: #244a43;
  background-image:
    linear-gradient(90deg, #142c2a42 1px, transparent 1px), linear-gradient(#142c2a42 1px, transparent 1px),
    linear-gradient(90deg, #9eb39a12 2px, transparent 2px), linear-gradient(#9eb39a12 2px, transparent 2px);
  background-size: 34px 34px;
  background-attachment: fixed;
}
.masthead {
  background: var(--deep);
  color: var(--paper);
  border-bottom: 4px solid #112e28;
}
.mast-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: max(5px, env(safe-area-inset-top)) 14px 5px;
  min-height: 51px;
}
.wordmark {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  text-decoration: none;
  font: 900 18px / 1 var(--mono);
  letter-spacing: -1.3px;
}
.brand-bang {
  color: var(--yellow);
}
.wc-symbol {
  font: 900 17px/1 var(--mono);
  background: var(--yellow);
  color: var(--deep);
  border: 2px solid #e4be69;
  box-shadow: 2px 2px 0 #102a23;
  letter-spacing: -2px;
  padding: 6px 6px 6px 4px;
  transform: rotate(-3deg);
}
nav {
  display: flex;
  gap: 10px;
  align-items: center;
}
.nav-button {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 0;
  color: #fff5db;
  font-size: 13px;
  font-weight: 750;
  padding: 7px 1px;
}
.icon-book {
  display: inline-block;
  width: 17px;
  height: 13px;
  border: 2px solid #d8dfc5;
  border-radius: 1px;
  position: relative;
}
.icon-book:before {
  content: '';
  position: absolute;
  height: 12px;
  left: 5px;
  top: -1px;
  border-left: 2px solid #d8dfc5;
}
.icon-sliders {
  display: inline-block;
  width: 16px;
  height: 12px;
  border-block: 2px solid #d8dfc5;
  position: relative;
}
.icon-sliders:before,
.icon-sliders:after {
  content: '';
  width: 3px;
  height: 6px;
  position: absolute;
  background: #d8dfc5;
}
.icon-sliders:before {
  left: 3px;
  top: -4px;
}
.icon-sliders:after {
  right: 3px;
  bottom: -4px;
}
#app {
  width: 100%;
  min-width: 0;
  padding: 17px 14px max(28px, env(safe-area-inset-bottom));
  outline: 0;
}
.home-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin: 0 0 13px;
}
.home-heading h1 {
  font-size: clamp(34px, 10vw, 48px);
  letter-spacing: -0.08em;
  line-height: 1.08;
}
.home-heading h1 .title-end {
  color: var(--coral);
  margin-left: 0.04em;
}
.home-heading .subtitle {
  margin-top: 7px;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 800;
  letter-spacing: 0.025em;
}
.specs {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.specs .dot,
.view-label .dot {
  width: 6px;
  height: 6px;
  background: var(--coral);
  display: inline-block;
}
.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 13px;
}
.poster,
.panel,
.game-board,
.hud,
.room-strip,
.rank-card,
.recap {
  border: 2px solid var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.poster {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.poster-top,
.poster-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--deep);
  color: var(--paper);
  padding: 7px 10px;
}
.poster-top {
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.035em;
}
.lamp {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #ffbf66;
  box-shadow: inset -2px -2px 0 #ce854d;
  margin-right: 8px;
}
.poster-top strong,
.poster-foot small {
  font: 700 11px/1.2 var(--mono);
  letter-spacing: 1px;
}
.poster canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 256 / 160;
  flex: none;
  background: #b8c9b2;
}
.poster-foot {
  padding-block: 8px;
  background: #d6ddbd;
  color: var(--deep);
  font-size: 11px;
  font-weight: 750;
  border-top: 2px solid var(--ink);
}
.hatch {
  display: inline-block;
  background: repeating-linear-gradient(130deg, transparent 0 4px, var(--ink) 4px 7px);
  height: 10px;
  width: 48px;
}
.panel {
  padding: 15px 16px;
  display: flex;
  flex-direction: column;
}
.panel h2,
.hud h2,
.room-strip h2,
.recap h2,
.rank-card h2 {
  font-size: 22px;
  letter-spacing: -0.055em;
}
.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.ticket-mark {
  position: relative;
  display: inline-block;
  width: 25px;
  height: 19px;
  border: 2px solid var(--ink);
  transform: rotate(-8deg);
  background: var(--yellow);
}
.ticket-mark:before {
  content: '';
  position: absolute;
  left: 4px;
  top: 3px;
  width: 10px;
  border-top: 2px solid var(--ink);
  box-shadow: 0 4px var(--ink);
}
.ticket-mark:after {
  content: '';
  position: absolute;
  right: 3px;
  top: 2px;
  bottom: 2px;
  border-left: 1px dashed var(--ink);
}
.tabs {
  display: flex;
  border: 1.5px solid var(--ink);
  padding: 3px;
  background: #e6e7cf;
  margin-bottom: 12px;
}
.tabs button {
  flex: 1;
  border: 0;
  min-height: 44px;
  font-weight: 750;
  font-size: 14px;
  background: transparent;
}
.tabs button.active {
  background: var(--deep);
  color: var(--paper);
}
label.field {
  font-weight: 800;
  font-size: 13px;
  display: block;
  margin-bottom: 13px;
}
.field input {
  display: block;
  width: 100%;
  margin-top: 5px;
  padding: 11px 12px;
  border: 1.5px solid var(--ink);
  background: #fffdf3;
  font-size: 16px;
  min-height: 44px;
}
.field input::placeholder {
  color: #6a7369;
  font-size: 14px;
}
.primary,
.secondary,
.outline,
.pill-btn {
  border: 2px solid var(--ink);
  font-weight: 800;
  transition:
    background-color 0.12s,
    transform 0.12s,
    box-shadow 0.12s;
}
.primary {
  background: var(--coral-bright);
  color: #241f17;
  padding: 10px 14px;
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 16px;
}
.primary:hover:not(:disabled) {
  background: #f57449;
}
.primary:active:not(:disabled),
.secondary:active:not(:disabled) {
  box-shadow: 1px 1px 0 var(--ink);
}
.secondary {
  background: var(--yellow);
  padding: 10px 15px;
  box-shadow: 2px 2px 0 var(--ink);
}
.outline,
.pill-btn {
  background: transparent;
  padding: 8px 12px;
}
.outline:hover,
.pill-btn:hover {
  background: #e8ebd5;
}
.wide {
  width: 100%;
}
.arrow {
  float: right;
  font: 900 22px/1 var(--mono);
}
.hint,
.muted,
.board-instruction {
  color: var(--muted);
  font-size: 13px;
}
.auth-note {
  margin: 12px 0 0;
  padding: 10px 0 0;
  border-top: 1px dashed #a7ac91;
  font-size: 13px;
  color: var(--muted);
}
.rule-link {
  align-self: flex-start;
  min-height: 44px;
  padding: 9px 0 0;
  text-align: left;
  background: none;
  border: 0;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.room-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}
.room-top h1,
.result-title h1 {
  font-size: clamp(29px, 8vw, 37px);
  letter-spacing: -0.07em;
}
.view-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.09em;
  margin-bottom: 6px;
}
.small-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.tiny {
  font-size: 12px;
  min-height: 44px;
  padding: 6px 11px;
}
.wait-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
.room-strip {
  padding: 14px;
}
.room-code {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin: 5px 0 12px;
}
.room-code strong {
  font: 900 clamp(29px, 8vw, 40px) / 1.12 var(--mono);
  letter-spacing: 0.075em;
}
.players {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 14px 0 16px;
}
.playerbox {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #eeeed8;
  border: 1.5px solid #a2ad92;
  padding: 9px;
}
.playerbox.mine {
  border: 2px solid var(--teal);
  padding: 8.5px;
  background: #dae8cf;
}
.playerbox.empty {
  border-style: dashed;
  background: #f2f0df;
  min-height: 48px;
}
.playerbox canvas,
.rank-row canvas {
  width: 34px;
  height: 38px;
  border: 1px solid var(--ink);
  flex: none;
}
.playerbox .name,
.rank-name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 800;
  max-width: 100%;
}
.playerbox .player-info {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
}
.playerbox small {
  font-size: 11px;
  color: var(--muted);
}
.playerbox .ready {
  color: var(--teal);
  font-weight: 800;
}
.wait-visual {
  display: none;
}
.wait-visual .poster canvas {
  max-height: 310px;
}
.wait-visual .poster {
  flex: none;
}
.match-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  margin-bottom: 12px;
}
.round-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  font-size: 16px;
  font-weight: 850;
}
.round-badge b {
  font: 900 25px/1 var(--mono);
}
.timer {
  font: 800 17px/1 var(--mono);
  white-space: nowrap;
}
.game-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}
.game-board {
  overflow: hidden;
}
.board-head {
  background: var(--deep);
  color: var(--paper);
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 800;
}
.board-head small {
  color: #d7ddbe;
  font-size: 11px;
}
.stage {
  position: relative;
  background: #a6b79e;
}
.stage canvas {
  width: 100%;
  height: auto;
}
.door-hotspots {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0 4.9%;
  pointer-events: none;
}
.door-hotspots button {
  pointer-events: auto;
  position: relative;
  top: 29%;
  width: 29%;
  height: 48%;
  border: 0;
  background: transparent;
  color: transparent;
  min-height: 0;
}
.door-hotspots button:focus-visible,
.door-hotspots button:hover:not(:disabled) {
  outline: 3px solid #e5ad4b;
  outline-offset: -3px;
}
.door-hotspots button:disabled {
  opacity: 1;
}
.door-tags {
  display: flex;
  position: absolute;
  inset: 0;
  pointer-events: none;
  justify-content: space-around;
}
.tag-col {
  position: relative;
  width: 31%;
  display: flex;
  align-items: center;
  flex-direction: column;
  top: 19%;
  height: 0;
}
.tag {
  max-width: 100%;
  display: inline-block;
  color: var(--ink);
  background: #fff7d5;
  border: 1px solid var(--ink);
  box-shadow: 1px 1px 0 var(--ink);
  padding: 2px 5px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tag.speech {
  background: #e4ccdf;
}
.dryer {
  position: absolute;
  left: 50%;
  top: 3%;
  transform: translateX(-50%);
  background: var(--yellow);
}
.queue-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 2px solid var(--ink);
}
.queue-card {
  padding: 5px;
  min-width: 0;
  border-right: 1px solid var(--line);
  font-size: 12px;
  background: #e6e9d4;
}
.queue-card:last-child {
  border: 0;
}
.queue-card b {
  font-size: 13px;
}
.queue-card span {
  display: block;
  white-space: normal;
  overflow-wrap: anywhere;
}
.queue-card .qtext {
  color: var(--muted);
  font-size: 11px;
}
.hud {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hud-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.hud-title h2 {
  font-size: 18px;
}
.hud-title span {
  font-size: 12px;
  color: var(--muted);
}
.meter-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 900;
}
.meter-top strong {
  font: 900 22px var(--mono);
  color: var(--coral);
}
.meter {
  position: relative;
  height: 19px;
  background: #e4e1c9;
  border: 2px solid var(--ink);
  overflow: hidden;
}
.meter .fill,
.meter .cost {
  position: absolute;
  height: 100%;
  top: 0;
  left: 0;
}
.meter .fill {
  background: repeating-linear-gradient(to right, #8eb48b 0 10px, #748e76 10px 12px);
}
.meter.warn .fill {
  background: repeating-linear-gradient(to right, #d66644 0 10px, #ad563c 10px 12px);
}
.meter .cost {
  background: repeating-linear-gradient(130deg, #f4c870 0 3px, #a9683f 3px 5px);
}
.meter-legend {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px;
}
.chapter {
  font-size: 12px;
  font-weight: 800;
  margin: 0 0 6px;
}
.door-buttons,
.say-buttons,
.predict-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}
.door-choice,
.say-buttons button,
.predict-buttons button {
  background: #f6f2df;
  border: 1.5px solid var(--ink);
  padding: 6px 3px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
}
.door-choice.selected {
  background: var(--teal);
  color: var(--paper);
}
.say-buttons button {
  font-size: 11px;
}
.control-note {
  color: var(--muted);
  font-size: 12px;
  min-height: 16px;
}
.clue-box {
  border-top: 1px dashed #9aa38a;
  padding-top: 9px;
}
.clue-item {
  padding: 3px 0;
  font-size: 13px;
  line-height: 1.35;
}
.scope {
  display: inline-block;
  font-size: 10px;
  min-width: 32px;
  margin-right: 5px;
  text-align: center;
  padding: 2px 4px;
  color: var(--deep);
  background: #d4e1c7;
  font-weight: 800;
}
.scope.unknown {
  background: #f0c97c;
}
.result-title {
  margin-bottom: 12px;
}
.summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 13px;
}
.rank-card,
.recap {
  padding: 14px;
}
.rank-row {
  display: grid;
  grid-template-columns: 30px 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 9px 3px;
  border-top: 1px dashed #a3aa90;
}
.rank-row:first-of-type {
  margin-top: 10px;
}
.rank-num {
  font: 900 19px var(--mono);
}
.rank-num.first {
  color: var(--coral);
}
.rank-row .score {
  font: 900 18px var(--mono);
}
.rank-row.mine {
  background: #e5ebd3;
}
.rank-detail {
  font-size: 11px;
  color: var(--muted);
}
details {
  margin: 8px 0;
  border: 1px solid #b3b698;
  padding: 7px 9px;
  background: #efedd6;
}
summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  min-height: 36px;
  display: list-item;
}
details p {
  font-size: 12px;
  color: var(--muted);
  margin: 5px 0;
}
.recap p,
.recap li {
  font-size: 13px;
}
.recap ul {
  padding-inline-start: 20px;
  margin: 10px 0 16px;
}
.case-line {
  background: #f2d68c;
  border-left: 4px solid var(--coral);
  padding: 9px 11px;
  margin: 13px 0;
  font-weight: 700;
}
.button-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 7px;
  margin: 8px 0 2px;
}
.empty-avatar {
  font: 900 20px/35px var(--mono);
  border: 1.5px dashed var(--line);
  text-align: center;
  width: 32px;
  height: 36px;
  flex: none;
  color: var(--line);
}
.toast,
.notice {
  position: fixed;
  z-index: 5;
  left: 50%;
  transform: translateX(-50%);
  padding: 9px 15px;
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  max-width: calc(var(--game-width) - 22px);
  text-align: center;
  font-weight: 750;
  font-size: 13px;
  pointer-events: none;
}
.toast {
  background: #fff0cb;
  bottom: max(18px, env(safe-area-inset-bottom));
  opacity: 0;
  transition: opacity 0.12s;
}
.toast.show {
  opacity: 1;
}
.notice {
  background: #eac786;
  top: 7px;
}
dialog {
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 6px 6px 0 #172b25;
  padding: 0;
  max-height: calc(100dvh - 26px);
  overflow-y: auto;
  width: calc(var(--game-width) - 30px);
  max-width: 100vw;
}
dialog::backdrop {
  background: #183028a8;
}
#modal-inner {
  padding: 21px;
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 10px;
}
.dialog-head h2 {
  font-size: 24px;
}
.x-button {
  width: 42px;
  height: 42px;
  font-size: 23px;
  background: none;
  border: 1px solid var(--ink);
  line-height: 1;
}
.help-text {
  font-size: 15px;
  line-height: 1.65;
  margin: 10px 0 15px;
}
.demo-chip {
  padding: 12px;
  background: #dde5cd;
  border: 1px solid var(--ink);
  font-weight: 800;
}
.steps {
  font: 700 12px var(--mono);
  color: var(--muted);
}
.switch-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  gap: 12px;
  border-top: 1px dashed var(--line);
  font-weight: 700;
}
.switch-label input {
  width: 22px;
  height: 22px;
  accent-color: var(--teal);
}
.settings-note {
  font-size: 13px;
  color: var(--muted);
  margin: 10px 0;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
.tag-col .tag {
  flex: none;
  min-height: 15px;
}
.tag-col .tag.speech {
  white-space: normal;
  text-align: center;
}
.mini-speakers {
  display: inline-flex;
  gap: 2px;
}
.mini-speakers b {
  font: 800 9px/1.3 var(--mono);
  border: 1px solid var(--ink);
  background: #e4ccdf;
  padding-inline: 2px;
}
.ending {
  border: 1.5px solid var(--ink);
  overflow: hidden;
  margin-block: 12px;
}
.ending canvas {
  width: 100%;
  height: auto;
  aspect-ratio: 256 / 80;
}
.ending figcaption {
  border-top: 1px solid var(--ink);
  background: #f1d38c;
  padding: 6px 9px;
  font-weight: 800;
  font-size: 13px;
}
.pick-order {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}
.rank-card details .rank-row {
  grid-template-columns: 23px 23px minmax(0, 1fr) auto;
}
.rank-card details .rank-row canvas {
  width: 23px;
  height: 26px;
}
.ending {
  margin-inline: 0;
}
.urgent-bubble {
  position: absolute;
  top: 54%;
  transform: translateX(-50%);
  background: #f4d0a4;
  font-size: 11px;
}
.door-choice.selected:disabled {
  opacity: 1;
}

/* Groups follow each other in reading order at every viewport. Only the three
   door targets mirror the physical left, middle and right sides of the scene. */
.playing-controls {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.playing-controls .chapter,
.playing-controls .button-row,
.playing-controls .control-note {
  margin: 0;
}
.playing-controls .button-row .primary {
  min-height: 44px;
}
.playing-controls .control-note {
  min-height: 17px;
}
.rank-card,
.recap,
.panel,
.hud,
.room-strip,
.game-board,
.poster {
  min-width: 0;
}
dialog .button-row button {
  width: 100%;
}
@media (orientation: landscape) {
  :root {
    --game-width: min(100vw, clamp(320px, 56.25dvh, 456px));
  }
}
@media (max-width: 350px), (orientation: landscape) and (max-height: 500px) {
  .mast-inner {
    padding-inline: 9px;
  }
  .wordmark {
    font-size: 15px;
  }
  nav {
    gap: 6px;
  }
  .nav-button {
    gap: 4px;
    font-size: 12px;
  }
  #app {
    padding-inline: 10px;
  }
  .home-heading h1 {
    font-size: 35px;
  }
  .room-strip,
  .panel,
  .hud,
  .rank-card,
  .recap {
    padding: 11px;
  }
  .door-choice,
  .predict-buttons button,
  .say-buttons button {
    padding-inline: 2px;
  }
}
