:root {
  color-scheme: dark;
  --ink: #17141f;
  --paper: #fff2d6;
  --cream: #f6d49b;
  --red: #ef5b3f;
  --red-dark: #a93432;
  --yellow: #ffc857;
  --green: #63c174;
  --blue: #57b8dc;
  --panel: #262233;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  background: #100e17;
  font-family: "Trebuchet MS", "Microsoft YaHei", system-ui, sans-serif;
  overflow: hidden;
  touch-action: none;
}

body {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  color: var(--paper);
}

html.browser-immersive-attempt {
  min-height: calc(100% + 160px);
  overflow-y: auto;
}
body.browser-immersive-attempt {
  min-height: calc(100dvh + 160px);
  overflow: visible;
}
body.browser-immersive-attempt .game-shell {
  position: fixed;
  inset: 0;
  margin: auto;
  height: 100dvh;
}

button { font: inherit; }

.rotate-device {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  text-align: center;
  color: var(--paper);
  background:
    radial-gradient(circle at 50% 34%, rgba(239, 91, 63, .2), transparent 15rem),
    #17141f;
}

body.portrait-blocked .rotate-device { display: flex; }

.rotate-phone {
  position: relative;
  width: 78px;
  height: 126px;
  margin-bottom: 25px;
  border: 6px solid var(--paper);
  border-radius: 17px;
  transform: rotate(-10deg);
  animation: rotate-hint 1.8s ease-in-out infinite;
}

.rotate-phone::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 7px;
  width: 17px;
  height: 4px;
  border-radius: 4px;
  background: var(--paper);
  transform: translateX(-50%);
}

.rotate-phone span {
  position: absolute;
  right: -48px;
  top: 38px;
  color: var(--yellow);
  font-size: 2.8rem;
  font-weight: 900;
}

.rotate-device .eyebrow {
  margin: 0 0 8px;
  color: var(--yellow);
  font-size: .8rem;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.rotate-device h2 { margin: 0; font-size: clamp(2rem, 10vw, 3rem); }
.rotate-device p:not(.eyebrow) { max-width: 360px; margin: 15px 0 11px; font-size: 1rem; line-height: 1.6; }
.rotate-device small { max-width: 350px; color: #c7b8a4; font-size: .82rem; line-height: 1.5; }

@keyframes rotate-hint {
  0%, 22%, 100% { transform: rotate(-10deg); }
  55%, 78% { transform: rotate(80deg); }
}

@media (prefers-reduced-motion: reduce) {
  .rotate-phone { animation: none; transform: rotate(80deg); }
}

.game-shell {
  width: min(100vw, 1440px);
  height: min(100dvh, 900px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--ink);
  position: relative;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(150px, .7fr) minmax(330px, 1.6fr) minmax(190px, .7fr);
  align-items: center;
  gap: 18px;
  padding: 14px 24px;
  background: rgba(23, 20, 31, .98);
  border-bottom: 4px solid #07060b;
  z-index: 5;
}

.brand-lockup { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 50px; height: 50px; display: grid; place-items: center;
  border-radius: 14px; background: var(--red); color: white;
  font-weight: 900; box-shadow: 0 5px 0 var(--red-dark); transform: rotate(-3deg);
}
.brand-lockup h1 { margin: 0; font-size: clamp(1.25rem, 2.3vw, 2rem); line-height: 1; }
.brand-lockup p { margin: 5px 0 0; color: var(--cream); font-weight: 700; font-size: .82rem; letter-spacing: .06em; }

.order-area { min-width: 0; }
.order-rail {
  min-height: 65px;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
  padding: 1px 4px 7px;
}
.order-empty {
  align-self: center;
  color: #a99c90;
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .08em;
}
.order-ticket {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  max-width: 190px;
  padding: 7px 10px 9px;
  overflow: hidden;
  color: var(--ink);
  background: var(--paper);
  border: 3px solid transparent;
  border-radius: 8px 8px 13px 13px;
  box-shadow: 0 5px 0 rgba(0,0,0,.35);
  transform: rotate(.35deg);
  transition: background .2s, border-color .2s, transform .2s;
}
.order-ticket:first-child { border-color: var(--yellow); transform: translateY(-1px) rotate(-.35deg); }
.order-ticket.waiting { background: #fff0bd; }
.order-ticket.urgent { background: #ffd090; border-color: #f09143; animation: ticket-pulse .7s ease-in-out infinite alternate; }
.order-ticket.critical { background: #ffaaa0; border-color: var(--red); animation: ticket-pulse .35s ease-in-out infinite alternate; }
.ticket-top { display: flex; align-items: center; justify-content: space-between; gap: 5px; }
.ticket-label { color: var(--red-dark); font-size: .62rem; font-weight: 900; letter-spacing: .08em; white-space: nowrap; }
.ticket-face { font-size: 1rem; line-height: 1; }
.recipe-row { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-weight: 900; font-size: .87rem; white-space: nowrap; }
.food-icon { display: inline-grid; flex: 0 0 auto; place-items: center; width: 17px; height: 17px; border-radius: 50%; color: #cb3c36; text-shadow: 5px -4px 0 #4d9e55; }
.food-icon.soup { border: 2px solid #8d3932; border-top: 0; border-radius: 3px 3px 9px 9px; color: #d94838; background: #fff8e7; text-shadow: none; font-size: .8rem; line-height: 1; }
.timer { margin-top: 5px; height: 5px; border-radius: 9px; background: rgba(119,83,54,.2); overflow: hidden; }
.timer span { display: block; width: 100%; height: 100%; background: var(--green); transform-origin: left; }

@keyframes ticket-pulse {
  to { transform: translateY(1px) scale(.98) rotate(-.6deg); }
}
.order-rail.wrong-order { animation: order-reject .38s ease-out; }
@keyframes order-reject {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  50% { transform: translateX(7px); }
  75% { transform: translateX(-4px); }
}

.scoreboard { justify-self: end; display: flex; align-items: center; gap: 12px; text-align: right; }
.scoreboard span { display: block; color: var(--cream); font-size: .75rem; font-weight: 800; letter-spacing: .12em; }
.scoreboard strong { display: block; font-size: 2rem; color: var(--yellow); line-height: 1; }
.round-clock strong { min-width: 3.25ch; color: var(--paper); font-size: 1.42rem; }
.round-clock.urgent-time strong { color: var(--red); animation: time-blink .55s ease-in-out infinite alternate; }
@keyframes time-blink { to { opacity: .5; } }
.fullscreen-button {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 2px solid rgba(255,242,214,.38);
  border-radius: 10px;
  color: var(--paper);
  background: rgba(255,255,255,.08);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.fullscreen-button:hover { background: rgba(255,255,255,.16); }
.fullscreen-button:active { transform: translateY(2px); }
.fullscreen-button[hidden] { display: none; }

.game-stage { position: relative; min-height: 0; overflow: hidden; background: #24333b; }
canvas { display: block; width: 100%; height: 100%; image-rendering: pixelated; }

.screen-shade { position: absolute; inset: 0; background: rgba(8,7,12,.7); backdrop-filter: blur(2px); z-index: 6; transition: opacity .25s; }
.screen-shade.hidden { opacity: 0; pointer-events: none; }

.start-panel, .result-panel, .room-panel, .matchmaking-panel, .install-panel {
  position: absolute; z-index: 7; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-.4deg);
  width: min(92%, 470px); padding: 28px; text-align: center; color: var(--ink);
  background: var(--paper); border: 5px solid var(--ink); border-radius: 20px;
  box-shadow: 12px 12px 0 rgba(0,0,0,.35);
}
.chef-badge { font-size: 3rem; margin-top: -60px; filter: drop-shadow(0 5px 0 rgba(0,0,0,.2)); }
.eyebrow { margin: 8px 0; color: var(--red-dark); text-transform: uppercase; font-size: .75rem; font-weight: 900; letter-spacing: .14em; }
.start-panel h2, .result-panel h2, .room-panel h2, .install-panel h2 { margin: 4px 0 8px; font-size: clamp(1.7rem, 5vw, 2.5rem); }
.start-panel p, .result-panel p, .room-panel p, .install-panel p { font-size: 1rem; line-height: 1.5; }
.level-picker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 13px 0;
  color: #6c5e58;
  font-size: .78rem;
  font-weight: 900;
}
.level-picker select {
  max-width: 255px;
  padding: 8px 10px;
  border: 2px solid #c8a86e;
  border-radius: 9px;
  color: var(--ink);
  background: #fffaf0;
  font: 800 .82rem "Trebuchet MS", "Microsoft YaHei", sans-serif;
}
.movement-setting {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: -2px 0 13px;
  color: #6c5e58;
  font-size: .78rem;
  font-weight: 900;
}
.movement-setting input { width: 130px; accent-color: var(--red); }
.movement-setting output { min-width: 3.8em; color: var(--red-dark); text-align: left; }
.start-panel button, .result-panel button, .room-panel button, .matchmaking-panel button, .install-panel button {
  min-width: 180px; border: 0; border-radius: 12px; padding: 12px 24px; color: white;
  background: var(--red); font-weight: 900; font-size: 1.1rem; box-shadow: 0 5px 0 var(--red-dark); cursor: pointer;
}
.start-actions, .result-actions, .room-actions { display: flex; justify-content: center; gap: 10px; }
.start-actions button { min-width: 145px; }
.start-actions .coop-button { background: #3f809d; box-shadow: 0 5px 0 #28566b; }
.join-room { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.join-room input {
  width: 145px;
  padding: 9px 12px;
  border: 2px solid #c8a86e;
  border-radius: 9px;
  color: var(--ink);
  background: #fffaf0;
  font: 900 .88rem "Trebuchet MS", "Microsoft YaHei", sans-serif;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .13em;
}
.join-room .join-button { min-width: 82px; padding-inline: 15px; background: #6c5e58; box-shadow: 0 5px 0 #443a36; }
.result-panel .secondary-button, .room-panel .secondary-button {
  min-width: 130px;
  color: var(--ink);
  background: #e4cda4;
  box-shadow: 0 5px 0 #ae8e61;
}
.start-panel button:active, .result-panel button:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--red-dark); }
.start-panel small { display: block; margin-top: 18px; color: #6c5e58; font-weight: 700; }
.game-shell.lobby-mode .order-rail { display: none; }
.game-shell.lobby-mode .order-area { display: grid; place-items: center; }
.game-shell.lobby-mode .order-area::before {
  content: attr(data-label);
  color: rgba(255,242,214,.66);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .18em;
}
.game-shell.lobby-mode .scoreboard > :not(.fullscreen-button) { display: none; }
.game-shell.lobby-mode .game-stage { background: #1e2630; }
.lobby-panel {
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 16px clamp(18px, 3vw, 42px) 11px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  text-align: left;
  color: var(--paper);
  background:
    radial-gradient(circle at 18% 32%, rgba(239,91,63,.19), transparent 28%),
    radial-gradient(circle at 78% 80%, rgba(87,184,220,.13), transparent 30%),
    linear-gradient(135deg, #24202d 0%, #171a22 52%, #202933 100%);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: none;
  overflow: hidden;
}
.lobby-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .13;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 42px 42px;
  transform: perspective(500px) rotateX(54deg) scale(1.4) translateY(32%);
  transform-origin: center bottom;
}
.lobby-panel > * { position: relative; z-index: 1; }
.lobby-header {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  align-items: center;
  gap: 18px;
  padding-bottom: 11px;
  border-bottom: 1px solid rgba(255,242,214,.18);
}
.profile-lockup { display: flex; align-items: center; gap: 12px; min-width: 0; }
.profile-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border: 2px solid rgba(255,242,214,.82);
  border-radius: 16px;
  color: white;
  background: linear-gradient(145deg, #58a7c5, #326f8b);
  font-weight: 900;
  box-shadow: 0 4px 0 #102c3a, 0 0 0 5px rgba(87,184,220,.1);
  transform: rotate(-3deg);
}
.lobby-header .eyebrow { margin: 0 0 2px; }
.profile-name {
  display: block;
  width: min(42vw, 245px);
  padding: 0;
  border: 0;
  border-bottom: 2px solid transparent;
  outline: none;
  color: var(--paper);
  background: transparent;
  font: 900 1.3rem "Trebuchet MS", "Microsoft YaHei", sans-serif;
}
.profile-name:focus { border-bottom-color: var(--red); }
.account-status { display: block; margin-top: 2px; color: rgba(255,242,214,.62); font-size: .68rem; font-weight: 800; }
.lobby-heading { display: grid; justify-items: center; line-height: 1; }
.lobby-heading span { color: var(--red); font-size: .58rem; font-weight: 900; letter-spacing: .28em; }
.lobby-heading strong { margin-top: 3px; color: var(--paper); font-size: 1.34rem; letter-spacing: .12em; }
.lobby-heading small { margin-top: 5px; color: rgba(255,242,214,.58); font-size: .6rem; font-weight: 800; }
.spectate-setting { justify-self: end; display: flex; align-items: center; gap: 8px; color: rgba(255,242,214,.68); font-size: .72rem; font-weight: 900; }
.spectate-setting select {
  padding: 7px 9px;
  border: 1px solid rgba(255,242,214,.34);
  border-radius: 9px;
  color: var(--paper);
  background: #302c39;
  font-family: inherit;
  font-size: .75rem;
  font-weight: 800;
}
.lobby-grid { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(285px, .72fr); gap: clamp(14px, 2.2vw, 28px); min-height: 0; margin-top: 14px; }
.play-column {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(210px, .8fr) minmax(300px, 1fr);
  gap: clamp(14px, 2vw, 26px);
  align-items: stretch;
  text-align: left;
}
.kitchen-poster {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border: 2px solid rgba(255,242,214,.18);
  border-radius: 18px;
  background:
    linear-gradient(150deg, rgba(255,255,255,.07), transparent 40%),
    repeating-linear-gradient(135deg, #688a91 0 28px, #628188 28px 56px);
  box-shadow: 0 13px 28px rgba(0,0,0,.28);
}
.kitchen-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14,15,20,.5), transparent 46%);
}
.poster-label, .poster-level { position: absolute; z-index: 3; font-weight: 900; }
.poster-label { top: 15px; left: 16px; padding: 5px 9px; border-radius: 7px; color: var(--ink); background: var(--yellow); font-size: .64rem; letter-spacing: .08em; }
.poster-level { right: 15px; bottom: 12px; color: rgba(255,242,214,.88); font-size: 2.5rem; letter-spacing: -.04em; }
.poster-counter { position: absolute; z-index: 1; border: 4px solid #302532; background: #e6b86d; box-shadow: inset 0 -13px 0 #a65c47, 5px 7px 0 rgba(0,0,0,.22); }
.poster-counter-back { top: 70px; left: 16%; width: 68%; height: 48px; }
.poster-counter-left { top: 112px; bottom: 32px; left: 16%; width: 49px; }
.poster-counter-right { top: 112px; bottom: 32px; right: 16%; width: 49px; }
.poster-chef { position: absolute; z-index: 2; left: 50%; top: 50%; display: grid; place-items: center; width: 50px; height: 50px; border: 4px solid #302532; border-radius: 50% 50% 43% 43%; color: white; background: #3f809d; font-weight: 900; box-shadow: 0 7px 0 rgba(0,0,0,.22); transform: translate(-50%, -20%); }
.poster-tomato { position: absolute; z-index: 2; width: 21px; height: 21px; border: 3px solid #302532; border-radius: 50%; background: var(--red); }
.poster-tomato::before { content: ""; position: absolute; left: 5px; top: -6px; width: 7px; height: 7px; background: var(--green); transform: rotate(45deg); }
.tomato-one { top: 80px; left: 27%; }
.tomato-two { top: 80px; right: 28%; }
.kitchen-brief {
  min-width: 0;
  padding: clamp(15px, 2vw, 24px);
  border: 2px solid rgba(23,20,31,.15);
  border-radius: 18px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 7px 8px 0 rgba(0,0,0,.24);
}
.kitchen-brief .eyebrow { margin-top: 0; }
.kitchen-brief h2 { margin: 3px 0 5px; font-size: clamp(1.45rem, 3vw, 2rem); }
.kitchen-brief > p:not(.eyebrow) { min-height: 2.8em; margin: 5px 0 10px; color: #6c5e58; font-size: .78rem; line-height: 1.45; }
.lobby-panel .level-picker { justify-content: flex-start; margin: 8px 0; }
.lobby-panel .level-picker span { min-width: 4em; }
.lobby-panel .movement-setting { justify-content: flex-start; margin: 3px 0 12px; }
.lobby-panel .start-actions { justify-content: flex-start; }
.lobby-panel .start-actions button { min-width: 0; flex: 1; padding: 10px 12px; font-size: .9rem; }
.lobby-panel .start-actions button span, .lobby-panel .start-actions button small { display: block; }
.lobby-panel .start-actions button small { margin-top: 3px; color: rgba(255,255,255,.74); font-size: .56rem; font-weight: 700; }
.partners-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 15px;
  border: 1px solid rgba(255,242,214,.17);
  border-radius: 18px;
  color: var(--paper);
  background: rgba(11,12,18,.43);
  box-shadow: 0 13px 28px rgba(0,0,0,.2);
}
.partners-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.partners-title .eyebrow { margin: 0 0 2px; }
.partners-title h3 { margin: 0; font-size: 1.12rem; }
.partners-copy { margin: 7px 0 2px; color: rgba(255,242,214,.56); font-size: .66rem; line-height: 1.4; }
.lobby-panel .partner-code {
  min-width: 0;
  padding: 6px 8px;
  border-radius: 8px;
  color: var(--paper);
  background: rgba(255,242,214,.13);
  box-shadow: 0 3px 0 rgba(0,0,0,.3);
  font-size: .65rem;
}
.add-partner { display: flex; gap: 6px; margin: 10px 0; }
.add-partner input {
  min-width: 0;
  flex: 1;
  padding: 7px 9px;
  border: 1px solid rgba(255,242,214,.28);
  border-radius: 8px;
  color: var(--paper);
  background: rgba(255,255,255,.08);
  font-family: inherit;
  font-size: .75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.lobby-panel .add-partner button { min-width: 58px; padding: 7px 9px; border-radius: 8px; font-size: .72rem; box-shadow: 0 3px 0 var(--red-dark); }
.partner-list { display: grid; align-content: start; gap: 7px; min-height: 80px; max-height: 130px; overflow-y: auto; }
.partner-empty { margin: 22px 12px; color: rgba(255,242,214,.5); font-size: .72rem; line-height: 1.5; text-align: center; }
.partner-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 11px;
  background: rgba(255,250,240,.1);
}
.partner-dot { width: 9px; height: 9px; border-radius: 50%; background: #a89c8f; }
.partner-dot.online { background: var(--green); box-shadow: 0 0 6px rgba(99,193,116,.75); }
.partner-info { min-width: 0; }
.partner-info strong, .partner-info small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.partner-info strong { font-size: .76rem; }
.partner-info small { margin-top: 2px; color: rgba(255,242,214,.58); font-size: .61rem; }
.partner-actions { display: flex; gap: 5px; }
.lobby-panel .partner-action {
  min-width: 0;
  padding: 6px 8px;
  border-radius: 7px;
  font-size: .63rem;
  box-shadow: 0 3px 0 var(--red-dark);
}
.lobby-panel .partner-action.watch { background: #3f809d; box-shadow: 0 3px 0 #28566b; }
.quick-join {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 11px;
  border-top: 1px solid rgba(255,242,214,.15);
}
.quick-join strong, .quick-join small { display: block; }
.quick-join strong { font-size: .75rem; }
.quick-join small { margin-top: 2px; color: rgba(255,242,214,.5); font-size: .55rem; }
.lobby-panel .join-room { margin: 0; gap: 5px; }
.lobby-panel .join-room input { width: 82px; padding: 7px 6px; border: 1px solid rgba(255,242,214,.3); color: var(--paper); background: rgba(255,255,255,.08); font-size: .72rem; }
.lobby-panel .join-room input::placeholder, .add-partner input::placeholder { color: rgba(255,242,214,.44); }
.lobby-panel .join-room button { min-width: 52px; padding: 8px 9px; font-size: .68rem; }
.lobby-footer { display: flex; align-items: center; justify-content: center; gap: 8px; padding-top: 8px; color: rgba(255,242,214,.52); font-size: .6rem; font-weight: 700; }
.lobby-footer .status-dot { width: 6px; height: 6px; }
.lobby-footer b { color: rgba(255,242,214,.76); }
.room-spectators { margin: -6px 0 9px !important; color: #7b6d64; font-size: .68rem !important; font-weight: 800; }
.social-prompt {
  position: absolute;
  z-index: 12;
  top: 14px;
  right: 16px;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  align-items: center;
  gap: 9px;
  max-width: min(92%, 520px);
  padding: 11px 12px 13px;
  border: 3px solid var(--ink);
  border-radius: 14px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 7px 7px 0 rgba(0,0,0,.35);
}
.social-prompt strong, .social-prompt span { display: block; }
.social-prompt strong { font-size: .82rem; }
.social-prompt span { margin-top: 2px; color: #6c5e58; font-size: .68rem; }
.social-prompt button { min-width: 58px; padding: 7px 10px; border: 0; border-radius: 8px; color: white; background: var(--red); font-family: inherit; font-size: .72rem; font-weight: 900; cursor: pointer; }
.social-prompt .prompt-reject { color: var(--ink); background: #e4cda4; }
.spectator-bar {
  position: absolute;
  z-index: 9;
  left: 50%;
  top: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px 8px 13px;
  border: 2px solid rgba(255,242,214,.35);
  border-radius: 13px;
  color: var(--paper);
  background: rgba(23,20,31,.92);
  box-shadow: 0 5px 14px rgba(0,0,0,.32);
  transform: translateX(-50%);
}
.spectator-bar span, .spectator-bar strong, .spectator-bar small { display: block; }
.spectator-bar strong { color: var(--yellow); font-size: .74rem; }
.spectator-bar small { color: #d6c8b9; font-size: .6rem; }
.spectator-bar button { padding: 6px 9px; border: 0; border-radius: 8px; color: white; background: var(--red); font-family: inherit; font-size: .65rem; font-weight: 900; cursor: pointer; }
.game-stage.spectating .touch-controls { display: none !important; }
.team-chat { position: absolute; z-index: 10; left: 12px; top: 72px; width: min(360px, 42vw); color: var(--ink); font-family: "Trebuchet MS", "Microsoft YaHei", sans-serif; }
.team-chat-toggle { position: relative; display: grid; min-width: 150px; max-width: 260px; padding: 8px 30px 8px 11px; border: 1px solid rgba(255,242,214,.25); border-radius: 11px; color: var(--paper); background: rgba(23,20,31,.42); text-align: left; cursor: pointer; }
.team-chat-toggle span { color: var(--yellow); font-size: .7rem; font-weight: 900; }
.team-chat-toggle small { overflow: hidden; margin-top: 2px; color: #d6c8b9; font-size: .58rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.team-chat-toggle b { position: absolute; right: 8px; top: 8px; display: grid; place-items: center; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; color: white; background: var(--red); font-size: .55rem; }
.team-chat-panel { margin-top: 6px; overflow: hidden; border: 1px solid rgba(255,242,214,.22); border-radius: 14px; color: #fff4dc; background: rgba(23,20,31,.34); text-shadow: 0 1px 2px rgba(0,0,0,.85); }
.team-chat-panel header { display: flex; align-items: center; justify-content: space-between; padding: 6px 10px; color: var(--paper); background: rgba(23,20,31,.4); }
.team-chat-panel header strong { font-size: .72rem; }
.team-chat-panel header button { padding: 3px 7px; border: 0; border-radius: 6px; color: var(--paper); background: rgba(255,255,255,.13); font-size: .56rem; font-weight: 900; cursor: pointer; }
.team-chat-messages { display: grid; gap: 5px; min-height: 52px; max-height: 112px; padding: 8px 10px; overflow-y: auto; }
.team-chat-form input::placeholder { color: rgba(255,244,220,.6); }
.team-chat-message { display: grid; grid-template-columns: auto 1fr; gap: 5px; align-items: baseline; font-size: .65rem; line-height: 1.35; }
.team-chat-message strong { color: #9ee3ff; font-size: .58rem; white-space: nowrap; }
.team-chat-message.agent strong { color: #ffb38a; }
.team-chat-message p { margin: 0; overflow-wrap: anywhere; }
.team-chat-empty { margin: auto; color: #e2d6c8; font-size: .61rem; }
.team-chat-replies { display: flex; gap: 5px; padding: 7px 9px 6px; overflow-x: auto; border-top: 1px solid rgba(255,242,214,.18); }
.team-chat-replies button { flex: 0 0 auto; padding: 5px 7px; border: 1px solid rgba(255,242,214,.35); border-radius: 12px; color: #fff4dc; background: rgba(255,255,255,.12); font-size: .56rem; font-weight: 900; cursor: pointer; text-shadow: none; }
.team-chat-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; padding: 0 9px 8px; }
.team-chat-form input { min-width: 0; padding: 7px 9px; border: 1px solid rgba(255,242,214,.4); border-radius: 8px; color: #fff4dc; background: rgba(23,20,31,.45); font: 700 .64rem inherit; outline: none; }
.team-chat-form input:focus { border-color: var(--red); }
.team-chat-form button { padding: 7px 10px; border: 0; border-radius: 8px; color: white; background: var(--red); font-size: .62rem; font-weight: 900; cursor: pointer; }
.team-chat-error { display: block; min-height: 1em; margin: -4px 10px 7px; color: #ff9d8a; font-size: .54rem; }
.room-panel { width: min(90%, 430px); }
.room-code-label { margin: 10px 0 2px; color: #6c5e58; font-size: .72rem !important; font-weight: 900; letter-spacing: .15em; }
.room-panel .room-code {
  min-width: 0;
  padding: 2px 14px 5px;
  color: var(--red-dark);
  background: transparent;
  box-shadow: none;
  font-size: 2.5rem;
  letter-spacing: .18em;
}
.room-panel .room-code:active { transform: scale(.96); }
.room-players { display: flex; justify-content: center; gap: 9px; margin: 14px 0; }
.room-players span { padding: 7px 11px; border-radius: 15px; color: #8c8076; background: #e1d6c1; font-size: .76rem; font-weight: 900; }
.room-players span.ready { color: white; background: #3f809d; }
.room-actions button { min-width: 130px; }
.room-actions button:disabled { opacity: .48; cursor: default; box-shadow: 0 3px 0 #9f8f78; background: #b9aa94; }
.install-panel { width: min(90%, 460px); }
.install-panel ol { margin: 15px auto; padding-left: 1.6rem; max-width: 330px; text-align: left; line-height: 1.8; font-weight: 700; }
.install-panel strong { color: var(--red-dark); }
.install-panel > p:not(.eyebrow) { color: #6c5e58; font-size: .85rem; }
.install-actions { display: flex; justify-content: center; gap: 10px; }
.install-panel .secondary-button { min-width: 150px; color: var(--ink); background: #e4cda4; box-shadow: 0 5px 0 #ae8e61; }
.stars { color: var(--yellow); font-size: 2.7rem; letter-spacing: .12em; text-shadow: 0 3px 0 #b97a29; }
.score-breakdown {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 9px 0 15px;
  color: #6c5e58;
  font-size: .82rem;
  font-weight: 900;
}
.score-breakdown strong { display: block; color: var(--ink); font-size: 1.15rem; }
.hidden { display: none !important; }

.score-pop {
  position: absolute;
  z-index: 8;
  left: 50%;
  top: 25%;
  pointer-events: none;
  text-align: center;
  color: white;
  font-weight: 900;
  font-size: 1.55rem;
  line-height: 1.15;
  text-shadow: 0 3px 0 rgba(0,0,0,.45);
  transform: translateX(-50%);
  animation: score-rise 1.15s ease-out forwards;
}
.score-pop small { display: block; margin-top: 4px; color: var(--yellow); font-size: .72rem; }
@keyframes score-rise {
  0% { opacity: 0; transform: translate(-50%, 18px) scale(.85); }
  18% { opacity: 1; transform: translate(-50%, 0) scale(1.08); }
  100% { opacity: 0; transform: translate(-50%, -45px) scale(1); }
}

.objective {
  position: absolute; z-index: 4; left: 50%; top: 16px; transform: translateX(-50%);
  max-width: calc(100% - 32px); white-space: nowrap; padding: 9px 16px; border-radius: 20px;
  color: var(--ink); background: rgba(255,242,214,.94); font-weight: 900; font-size: .88rem;
  box-shadow: 0 3px 0 rgba(0,0,0,.25);
}

.touch-controls { display: none; position: absolute; z-index: 4; inset: 0; pointer-events: none; }
.joystick {
  position: absolute; left: max(24px, env(safe-area-inset-left)); bottom: max(22px, env(safe-area-inset-bottom));
  width: 112px; height: 112px; border: 3px solid rgba(255,255,255,.32); border-radius: 50%;
  background: rgba(10,8,16,.34); pointer-events: auto;
}
.joystick-knob {
  position: absolute; width: 54px; height: 54px; left: 26px; top: 26px; border-radius: 50%;
  background: rgba(255,242,214,.88); border: 3px solid rgba(23,20,31,.55); box-shadow: 0 4px 0 rgba(0,0,0,.22);
}
.action-stack {
  position: absolute; right: max(22px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom));
  display: flex; align-items: flex-end; gap: 12px; pointer-events: auto;
}
.action-stack button { border: 3px solid rgba(255,255,255,.7); color: white; font-weight: 900; box-shadow: 0 5px 0 rgba(0,0,0,.3); }
.drop-button { width: 64px; height: 64px; border-radius: 50%; background: #3f809d; }
.action-button { width: 98px; height: 98px; border-radius: 50%; background: var(--red); }
.action-button span, .action-button small { display: block; }
.action-button small { font-size: .62rem; margin-top: 2px; opacity: .8; }

.tipbar { display: flex; align-items: center; gap: 9px; min-height: 38px; padding: 8px 24px; background: #0f0d15; color: #d9d0c2; font-size: .8rem; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.slogan { margin-left: auto; color: var(--cream); font-weight: 900; }

@media (pointer: coarse), (max-width: 800px) {
  .touch-controls { display: block; }
  .topbar { grid-template-columns: minmax(110px, .55fr) minmax(245px, 1.45fr) auto; padding: 8px 10px; gap: 6px; }
  .brand-mark { width: 40px; height: 40px; border-radius: 10px; }
  .brand-lockup p { display: none; }
  .order-rail { min-height: 52px; gap: 5px; padding-bottom: 5px; }
  .order-ticket { padding: 5px 6px 7px; border-width: 2px; box-shadow: 0 4px 0 rgba(0,0,0,.35); }
  .ticket-label { font-size: .54rem; }
  .ticket-face { font-size: .83rem; }
  .recipe-row { gap: 4px; font-size: .7rem; }
  .food-icon { width: 13px; height: 13px; }
  .timer { margin-top: 3px; height: 4px; }
  .scoreboard strong { font-size: 1.5rem; }
  .round-clock strong { font-size: 1.05rem; }
  .scoreboard span { font-size: .58rem; letter-spacing: .05em; }
  .scoreboard { gap: 6px; }
  .fullscreen-button { width: 34px; height: 34px; border-radius: 9px; font-size: 1.15rem; }
  .objective { top: 10px; font-size: .78rem; }
  .tipbar { display: none; }
}

@media (max-height: 520px) {
  .topbar { padding-block: 6px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-lockup h1 { font-size: 1.1rem; }
  .order-rail { min-height: 44px; }
  .order-ticket { padding-block: 3px 5px; }
  .fullscreen-button { width: 30px; height: 30px; }
  .start-panel, .result-panel, .room-panel, .install-panel {
    width: min(68vw, 520px);
    max-height: calc(100% - 12px);
    padding: 12px 20px 14px;
    border-width: 4px;
    border-radius: 15px;
    box-shadow: 7px 7px 0 rgba(0,0,0,.35);
    overflow-y: auto;
  }
  .chef-badge { display: none; }
  .start-panel .eyebrow, .result-panel .eyebrow { margin: 0 0 3px; font-size: .66rem; }
  .start-panel h2, .result-panel h2, .room-panel h2, .install-panel h2 { margin: 2px 0 5px; font-size: 1.35rem; line-height: 1.16; }
  .start-panel p, .result-panel p, .room-panel p, .install-panel p { margin: 5px 0 7px; font-size: .82rem; line-height: 1.35; }
  .start-panel > p:not(.eyebrow) { display: none; }
  .stars { font-size: 1.8rem; line-height: 1.15; letter-spacing: .08em; text-shadow: 0 2px 0 #b97a29; }
  .score-breakdown { margin: 5px 0 8px; font-size: .7rem; }
  .score-breakdown strong { font-size: .95rem; }
  .start-panel button, .result-panel button, .room-panel button, .install-panel button {
    min-width: 150px;
    padding: 8px 18px;
    border-radius: 9px;
    font-size: .92rem;
    box-shadow: 0 3px 0 var(--red-dark);
  }
  .start-panel small { margin-top: 8px; font-size: .68rem; }
  .level-picker { margin: 6px 0; font-size: .68rem; }
  .level-picker select { max-width: 225px; padding: 5px 7px; font-size: .7rem; }
  .movement-setting { gap: 6px; margin: 1px 0 6px; font-size: .64rem; }
  .movement-setting input { width: 100px; }
  .start-actions button { min-width: 125px; }
  .join-room { margin-top: 7px; }
  .join-room input { width: 125px; padding: 6px 8px; font-size: .72rem; }
  .join-room .join-button { min-width: 66px; padding: 6px 10px; }
  .room-panel .room-code { font-size: 1.8rem; padding-block: 0; }
  .room-players { margin: 7px 0; }
  .room-panel { padding: 7px 16px 9px; overflow: hidden; }
  .room-panel .eyebrow { margin: 0 0 2px; }
  .room-panel h2 { margin: 0 0 1px; font-size: 1.12rem; }
  .room-panel .room-code-label { display: none; }
  .room-panel .room-code { font-size: 1.55rem; line-height: 1; }
  .room-panel > p:not(.eyebrow, .room-code-label) { margin: 2px 0 4px; font-size: .7rem; line-height: 1.15; }
  .room-players { margin: 4px 0; }
  .room-players span { padding: 4px 8px; font-size: .66rem; }
  .room-actions button { min-width: 105px; padding: 5px 10px; font-size: .76rem; }
  .install-panel { width: min(74vw, 520px); padding: 8px 18px 10px; }
  .install-panel ol { display: flex; justify-content: center; gap: 22px; max-width: none; margin: 7px 0; padding: 0; list-style-position: inside; font-size: .7rem; line-height: 1.25; }
  .install-panel li { max-width: 120px; }
  .install-panel > p:not(.eyebrow) { margin: 3px 0 6px; font-size: .67rem; }
  .install-panel button { min-width: 120px; padding: 5px 12px; font-size: .78rem; }
  .install-actions { gap: 7px; }
  .install-panel .secondary-button { min-width: 130px; }
  .start-panel small { display: none; }
  .lobby-panel { inset: 0; width: 100%; height: 100%; max-height: none; padding: 7px 10px 6px; border: 0; border-radius: 0; box-shadow: none; overflow: hidden; transform: none; }
  .lobby-header { grid-template-columns: minmax(150px, 1fr) auto minmax(145px, 1fr); gap: 8px; padding-bottom: 5px; }
  .profile-avatar { width: 38px; height: 38px; border-radius: 12px; }
  .profile-name { font-size: 1rem; }
  .account-status { font-size: .56rem; }
  .lobby-heading strong { font-size: 1rem; }
  .lobby-heading small { display: none; }
  .spectate-setting { font-size: .6rem; }
  .spectate-setting select { padding: 4px 6px; font-size: .62rem; }
  .lobby-grid { grid-template-columns: minmax(0, 1.45fr) minmax(245px, .75fr); gap: 8px; margin-top: 6px; }
  .play-column { grid-template-columns: minmax(165px, .72fr) minmax(260px, 1fr); gap: 8px; padding: 0; }
  .kitchen-poster { min-height: 0; border-radius: 11px; }
  .poster-label { top: 8px; left: 8px; padding: 3px 6px; font-size: .5rem; }
  .poster-level { right: 8px; bottom: 5px; font-size: 1.65rem; }
  .poster-counter-back { top: 46px; height: 34px; }
  .poster-counter-left, .poster-counter-right { top: 76px; bottom: 20px; width: 35px; }
  .poster-chef { width: 38px; height: 38px; border-width: 3px; font-size: .72rem; }
  .tomato-one, .tomato-two { top: 53px; width: 16px; height: 16px; border-width: 2px; }
  .kitchen-brief { padding: 8px 10px; border-radius: 11px; }
  .kitchen-brief h2 { margin: 1px 0 3px; font-size: 1.05rem; }
  .kitchen-brief > p:not(.eyebrow) { display: none; }
  .lobby-panel .level-picker { justify-content: flex-start; margin: 4px 0; }
  .lobby-panel .movement-setting { justify-content: flex-start; margin: 1px 0 5px; }
  .lobby-panel .start-actions { gap: 6px; }
  .lobby-panel .start-actions button { min-width: 0; padding: 6px 7px; font-size: .7rem; }
  .lobby-panel .start-actions button small { display: none; }
  .partners-column { padding: 7px; border-radius: 11px; }
  .partners-title h3 { font-size: .78rem; }
  .lobby-panel .partner-code { padding: 4px 6px; font-size: .54rem; }
  .partners-copy { display: none; }
  .add-partner { margin: 6px 0; }
  .add-partner input { padding: 5px 7px; font-size: .62rem; }
  .lobby-panel .add-partner button { min-width: 50px; padding: 5px 7px; font-size: .6rem; }
  .partner-list { min-height: 50px; max-height: 66px; gap: 4px; }
  .partner-empty { margin: 12px 6px; font-size: .58rem; }
  .partner-card { gap: 6px; padding: 5px 6px; }
  .partner-info strong { font-size: .66rem; }
  .partner-info small { font-size: .52rem; }
  .lobby-panel .partner-action { padding: 4px 6px; font-size: .54rem; }
  .quick-join { padding-top: 6px; }
  .quick-join > div:first-child small { display: none; }
  .quick-join strong { font-size: .6rem; }
  .lobby-panel .join-room input { width: 67px; padding: 5px 4px; font-size: .58rem; }
  .lobby-panel .join-room button { min-width: 42px; padding: 6px 5px; font-size: .58rem; }
  .lobby-footer { display: none; }
  .social-prompt { top: 7px; right: 8px; padding: 7px 8px 9px; }
  .result-panel { padding: 8px 16px 10px; }
  .result-panel .eyebrow { display: none; }
  .result-panel h2 { margin: 0 0 2px; font-size: 1.18rem; }
  .result-panel .stars { font-size: 1.45rem; }
  .result-panel p { margin: 2px 0 4px; font-size: .72rem; line-height: 1.2; }
  .result-panel .score-breakdown { gap: 11px; margin: 2px 0 5px; font-size: .6rem; }
  .result-panel .score-breakdown strong { font-size: .82rem; }
  .result-actions { gap: 7px; }
  .result-panel button { min-width: 120px; padding: 5px 12px; font-size: .78rem; }
  .joystick { width: 92px; height: 92px; }
  .joystick-knob { width: 46px; height: 46px; left: 20px; top: 20px; }
  .action-button { width: 82px; height: 82px; }
  .drop-button { width: 56px; height: 56px; }
  .team-chat { left: 8px; top: 58px; width: min(310px, 48vw); }
  .team-chat-toggle { min-width: 120px; max-width: 220px; padding-block: 6px; }
  .team-chat-messages { min-height: 40px; max-height: 72px; padding: 6px 8px; }
  .team-chat-panel header { padding: 5px 8px; }
  .team-chat-replies { padding: 5px 7px 4px; }
  .team-chat-replies button { padding: 4px 6px; font-size: .5rem; }
  .team-chat-form { padding: 0 7px 6px; }
  .team-chat-form input, .team-chat-form button { padding-block: 5px; }
}

/* Account entry and the separated pre-game screens. */
.auth-shell {
  position: fixed;
  z-index: 120;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--paper);
  background:
    radial-gradient(circle at 50% 28%, rgba(255,200,87,.2), transparent 25%),
    radial-gradient(circle at 18% 70%, rgba(99,193,116,.13), transparent 24%),
    linear-gradient(145deg, #33281f, #17141f 58%, #172631);
}
.auth-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .14;
  background-image: linear-gradient(30deg, rgba(255,255,255,.13) 1px, transparent 1px), linear-gradient(120deg, rgba(255,255,255,.1) 1px, transparent 1px);
  background-size: 46px 46px;
}
.auth-shell.hidden { display: none; }
.auth-brand { position: absolute; z-index: 1; top: clamp(22px, 7vh, 70px); left: 50%; display: flex; align-items: center; gap: 12px; transform: translateX(-50%); }
.auth-logo { display: grid; place-items: center; width: 58px; height: 58px; border: 3px solid var(--paper); border-radius: 15px; color: white; background: var(--red); box-shadow: 0 6px 0 var(--red-dark); font-size: 1.2rem; font-weight: 900; transform: rotate(-4deg); }
.auth-brand strong, .auth-brand small { display: block; white-space: nowrap; }
.auth-brand strong { font-size: clamp(1.7rem, 4vw, 2.6rem); letter-spacing: .04em; text-shadow: 0 4px 0 #5d2922; }
.auth-brand small { margin-top: 3px; color: var(--cream); font-size: .65rem; font-weight: 900; letter-spacing: .22em; }
.auth-card { position: relative; z-index: 1; width: min(92vw, 510px); padding: 25px 28px 23px; border: 4px solid var(--ink); border-radius: 22px; color: var(--ink); background: var(--paper); box-shadow: 11px 12px 0 rgba(0,0,0,.33); text-align: center; }
.auth-card h2 { margin: 4px 0 9px; font-size: 1.55rem; }
.auth-card > p:not(.eyebrow) { margin: 0 auto 15px; color: #6c5e58; font-size: .83rem; line-height: 1.55; }
.agreement-links { display: flex; justify-content: center; gap: 10px; margin: 16px 0 20px; }
.agreement-links a { padding: 8px 12px; border-radius: 9px; color: #236984; background: #ddecf0; font-size: .78rem; font-weight: 900; text-decoration: none; }
.auth-actions { display: flex; gap: 10px; }
.auth-card button { flex: 1; padding: 11px 15px; border: 0; border-radius: 11px; color: white; background: var(--red); box-shadow: 0 5px 0 var(--red-dark); font-weight: 900; cursor: pointer; }
.auth-card button.auth-secondary { color: var(--ink); background: #e4cda4; box-shadow: 0 5px 0 #ae8e61; }
.auth-card > small { display: block; min-height: 1.2em; margin-top: 15px; color: #796b62; font-size: .68rem; }
.account-card form { display: grid; gap: 10px; text-align: left; }
.account-card label { display: grid; gap: 4px; color: #665950; font-size: .7rem; font-weight: 900; }
.account-card input { width: 100%; padding: 10px 12px; border: 2px solid #d0b780; border-radius: 9px; color: var(--ink); background: #fffaf0; font: 800 .82rem inherit; outline: none; }
.account-card input:focus { border-color: var(--red); }
.account-card form button { margin-top: 4px; }
.auth-card .auth-switch { width: auto; margin-top: 14px; padding: 0; color: #286d88; background: none; box-shadow: none; font-size: .73rem; }
.auth-card .auth-error { color: var(--red-dark); }
.login-progress { padding-block: 34px; }
.login-spinner { display: block; width: 46px; height: 46px; margin: 0 auto 15px; border: 6px solid #e7c999; border-top-color: var(--red); border-radius: 50%; animation: login-spin .8s linear infinite; }
@keyframes login-spin { to { transform: rotate(360deg); } }
.auth-brand-line { position: absolute; z-index: 1; bottom: 22px; margin: 0; color: rgba(255,242,214,.64); font-size: .72rem; font-weight: 900; letter-spacing: .12em; }
.agreement-card, .account-card { margin-top: 64px; }
body.auth-mode .game-shell { visibility: hidden; }
body.auth-mode.portrait-blocked .rotate-device { display: none; }

.lobby-panel .header-settings {
  justify-self: end;
  min-width: 132px;
  padding: 8px 12px;
  border: 1px solid rgba(255,242,214,.28);
  border-radius: 10px;
  color: var(--paper);
  background: rgba(255,255,255,.08);
  box-shadow: 0 3px 0 rgba(0,0,0,.28);
  text-align: left;
}
.header-settings span, .header-settings small { display: block; }
.header-settings small { margin-top: 2px; color: rgba(255,242,214,.5); font-size: .54rem; }
.lobby-panel .lobby-grid { grid-template-columns: minmax(0, 1.45fr) minmax(285px, .65fr); }
.lobby-room-preview { min-width: 0; display: grid; grid-template-columns: minmax(210px, .72fr) minmax(300px, 1fr); gap: clamp(14px, 2vw, 25px); }
.lobby-level-card { position: relative; min-width: 0; padding: 12px; border: 1px solid rgba(255,242,214,.18); border-radius: 18px; background: rgba(255,255,255,.07); box-shadow: 0 13px 28px rgba(0,0,0,.2); }
.mini-kitchen { position: relative; height: 50%; min-height: 125px; margin-bottom: 10px; overflow: hidden; border-radius: 12px; background: repeating-linear-gradient(135deg, #688a91 0 24px, #628188 24px 48px); }
.mini-kitchen .poster-counter-back { top: 28px; }
.mini-kitchen .poster-counter-left, .mini-kitchen .poster-counter-right { top: 70px; bottom: 14px; }
.mini-kitchen .tomato-one, .mini-kitchen .tomato-two { top: 38px; }
.lobby-level-card > .poster-label { top: 20px; left: 20px; }
.lobby-level-card h2 { margin: 2px 0 4px; color: var(--paper); font-size: 1.3rem; }
.lobby-level-card > p:not(.eyebrow) { min-height: 2.5em; margin: 0 0 8px; color: rgba(255,242,214,.58); font-size: .66rem; line-height: 1.4; }
.lobby-panel .change-level-button { min-width: 0; width: 100%; padding: 7px; color: var(--paper); background: rgba(255,255,255,.12); box-shadow: 0 3px 0 rgba(0,0,0,.3); font-size: .68rem; }
.lobby-player-stage { min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: clamp(14px, 2vw, 24px); border-radius: 18px; color: var(--ink); background: var(--paper); box-shadow: 7px 8px 0 rgba(0,0,0,.24); }
.stage-note { margin: 0 0 15px; color: #6c5e58; font-size: .72rem; line-height: 1.5; text-align: center; }
.player-podiums { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.player-podium { display: grid; justify-items: center; padding: 16px 8px 12px; border: 2px dashed #cfb98e; border-radius: 15px; background: #f1dfba; }
.player-podium.occupied { border-style: solid; border-color: #82b9ca; background: #dceff1; }
.podium-avatar { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 8px; border: 4px solid var(--ink); border-radius: 50%; color: white; background: #3f809d; font-weight: 900; box-shadow: 0 5px 0 rgba(0,0,0,.18); }
.podium-avatar.empty { color: #9a856d; background: #ead4a7; }
.player-podium b { font-size: .78rem; }
.player-podium small { margin-top: 3px; color: #7f7065; font-size: .57rem; }
.lobby-main-actions { display: flex; gap: 9px; }
.lobby-panel .lobby-main-actions button { min-width: 0; flex: 1; padding: 10px; font-size: .83rem; }
.lobby-main-actions span, .lobby-main-actions small { display: block; }
.lobby-main-actions small { margin-top: 3px; color: rgba(255,255,255,.74); font-size: .52rem; }
.lobby-main-actions .match-button, .level-actions .match-button { background: #d58a2f; box-shadow: 0 5px 0 #8d541d; }

.menu-screen, .room-panel {
  position: absolute;
  z-index: 8;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 16px clamp(18px, 3vw, 42px) 14px;
  color: var(--paper);
  background:
    radial-gradient(circle at 75% 28%, rgba(87,184,220,.16), transparent 25%),
    radial-gradient(circle at 20% 78%, rgba(239,91,63,.15), transparent 27%),
    linear-gradient(140deg, #24202d, #17232c);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: none;
}
.menu-header, .room-header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding-bottom: 10px; border-bottom: 1px solid rgba(255,242,214,.18); text-align: center; }
.menu-header > button, .room-header > button { justify-self: start; min-width: 110px; padding: 8px 12px; border: 1px solid rgba(255,242,214,.26); border-radius: 9px; color: var(--paper); background: rgba(255,255,255,.08); box-shadow: 0 3px 0 rgba(0,0,0,.3); font-size: .72rem; font-weight: 900; cursor: pointer; }
.menu-header .eyebrow, .room-header .eyebrow { margin: 0 0 2px; }
.menu-header h2, .room-header h2 { margin: 0; font-size: 1.45rem; }
.level-screen-body { display: grid; grid-template-columns: 160px minmax(320px, 1fr) 290px; gap: 16px; height: calc(100% - 60px); padding-top: 14px; }
.chapter-list { display: grid; align-content: start; gap: 8px; }
.chapter-list button { padding: 13px; border: 1px solid rgba(255,242,214,.16); border-radius: 12px; color: rgba(255,242,214,.48); background: rgba(255,255,255,.06); text-align: left; }
.chapter-list button.active { color: var(--ink); background: var(--yellow); box-shadow: 0 4px 0 #b97a29; }
.chapter-list b, .chapter-list small { display: block; }
.chapter-list small { margin-top: 3px; font-size: .56rem; }
.level-route { position: relative; display: grid; overflow-y: auto; min-height: 0; grid-template-columns: repeat(4, 1fr); align-items: center; align-content: start; gap: 12px; padding: 22px; border: 1px solid rgba(255,242,214,.15); border-radius: 17px; background: rgba(255,255,255,.06); }
.level-route::before { content: ""; position: absolute; left: 15%; right: 15%; top: 50%; border-top: 4px dotted rgba(255,242,214,.3); }
.level-node { position: relative; z-index: 1; display: grid; place-items: center; min-height: 140px; padding: 15px 8px; border: 4px solid #bd9d68; border-radius: 50% 50% 18px 18px; color: var(--ink); background: #ead4a7; box-shadow: 0 7px 0 rgba(0,0,0,.3); cursor: pointer; }
.level-node.active { border-color: var(--yellow); background: var(--paper); transform: translateY(-7px); }
.level-node.locked { filter: grayscale(.75); opacity: .58; cursor: not-allowed; transform: none; }
.level-node span { font-size: 1.4rem; font-weight: 900; }
.level-node b { margin-top: 8px; font-size: .72rem; }
.level-node small { margin-top: 3px; color: #78685d; font-size: .58rem; }
.level-detail { display: flex; flex-direction: column; padding: 18px; border-radius: 16px; color: var(--ink); background: var(--paper); box-shadow: 7px 8px 0 rgba(0,0,0,.25); }
.level-detail h3 { margin: 2px 0 8px; font-size: 1.45rem; }
.level-detail > p:not(.eyebrow) { color: #6c5e58; font-size: .73rem; line-height: 1.5; }
.level-detail dl { display: grid; gap: 7px; margin: 10px 0; }
.level-detail dl div { display: flex; justify-content: space-between; padding: 8px; border-radius: 8px; background: #f1dfba; font-size: .68rem; }
.level-detail dd { margin: 0; font-weight: 900; }
.level-actions { display: grid; gap: 8px; margin-top: auto; }
.level-actions button { padding: 10px; border: 0; border-radius: 10px; color: white; background: var(--red); box-shadow: 0 4px 0 var(--red-dark); font-weight: 900; }
.level-actions .coop-button { background: #3f809d; box-shadow: 0 4px 0 #28566b; }
.settings-body { display: grid; grid-template-columns: 150px minmax(420px, 680px); justify-content: center; gap: 16px; height: calc(100% - 60px); padding-top: 14px; }
.settings-tabs { display: grid; align-content: start; gap: 8px; }
.settings-tabs button { padding: 12px; border: 1px solid rgba(255,242,214,.16); border-radius: 10px; color: rgba(255,242,214,.5); background: rgba(255,255,255,.06); font-weight: 900; }
.settings-tabs button.active { color: var(--ink); background: var(--yellow); }
.start-panel button.name-link,.profile-sheet button.name-link{display:inline;min-width:0;padding:0;border:0;border-radius:0;color:inherit;background:none;box-shadow:none;font:inherit;font-weight:inherit;text-align:left;cursor:pointer;text-decoration:underline dotted;text-underline-offset:2px}
.start-panel .social-tabs button{min-width:0;padding:6px 4px;border-radius:7px;color:#9d7a55;background:transparent;box-shadow:none;font-size:.7rem}
.start-panel .social-tabs button.active{color:#fff8ea;background:#b48453;box-shadow:0 2px 0 #7f5b37}
.partner-actions .muted{color:#a58a69;font-size:.62rem;font-weight:800;white-space:nowrap}
.partner-card.with-dot{grid-template-columns:auto auto 1fr auto}
.podium-avatar .podium-chef{width:88px;height:88px;image-rendering:pixelated;display:block;margin:-4px auto 0}
.profile-actions button{border:0;color:#fff;background:#e8574a;box-shadow:0 3px 0 #a5372e;font-weight:900;cursor:pointer}
.profile-actions button.secondary{color:#7a5a3b;background:#ead4a7;box-shadow:0 3px 0 #c4a777}
.profile-avatar{cursor:pointer;overflow:hidden}
.profile-avatar .chef-avatar{width:100%;height:100%;image-rendering:pixelated;display:block}
.social-tabs{display:flex;gap:4px;margin:-2px 0 10px;padding:3px;border-radius:9px;background:rgba(119,82,55,.12)}
.social-tabs button{flex:1;min-width:0;padding:6px 4px;border:0;border-radius:7px;color:#9d7a55;background:transparent;box-shadow:none;font:inherit;font-size:.7rem;font-weight:900;cursor:pointer}
.social-tabs button.active{color:#fff8ea;background:#b48453;box-shadow:0 2px 0 #7f5b37}
.social-pane{display:flex;flex-direction:column;flex:1;min-height:0}
.social-pane.hidden{display:none}
.discover-toggle{display:flex;align-items:center;gap:7px;margin:10px 0 0;color:#8a6a48;font-size:.68rem;font-weight:800;cursor:pointer}
.chef-mini{width:34px;height:34px;image-rendering:pixelated;flex:none}
.partner-card.with-chef{grid-template-columns:auto 1fr auto}
.partner-info strong .ai-tag,.board-member .ai-tag,.profile-hero .ai-tag{display:inline-block;margin-left:4px;padding:0 4px;border-radius:4px;color:#fff;background:#6f87a8;font-size:.55rem;vertical-align:1px}
.partner-info strong button.name-link,.board-member button.name-link{padding:0;border:0;background:none;box-shadow:none;color:inherit;font:inherit;cursor:pointer;text-decoration:underline dotted;text-underline-offset:2px}
.request-card{background:#ffe9d2}
.board-level{padding:5px 6px;border:1px solid #d1b58a;border-radius:4px;color:#775737;background:#fffaef;font:inherit;font-size:.68rem;font-weight:800}
.board-row{display:grid;grid-template-columns:22px 1fr auto;align-items:center;gap:6px;padding:7px 8px;border-radius:4px;background:#fff5de;color:#775237}
.board-rank{font-weight:900;font-size:.8rem;text-align:center;color:#b48453}
.board-row:nth-child(1) .board-rank{color:#d39a1c}
.board-members{display:flex;flex-direction:column;gap:2px;min-width:0}
.board-member{display:flex;align-items:center;gap:4px;min-width:0;font-size:.68rem;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.board-member .chef-mini{width:24px;height:24px}
.board-score{text-align:right;font-weight:900;font-size:.8rem}
.board-score small{display:block;color:#d39a1c;font-size:.6rem;letter-spacing:1px}
.profile-modal{position:absolute;inset:0;z-index:30;display:grid;place-items:center;padding:16px;background:rgba(23,20,31,.55)}
.profile-modal.hidden{display:none}
.profile-sheet{position:relative;width:min(440px,100%);max-height:100%;overflow:auto;padding:18px 18px 16px;border-radius:16px;color:#6e4f33;background:#fff5de;box-shadow:0 10px 0 rgba(0,0,0,.25)}
.profile-sheet h4{margin:14px 0 6px;font-size:.78rem;color:#9d7a55}
.profile-close{position:absolute;top:8px;right:10px;padding:2px 8px;border:0;border-radius:6px;background:transparent;box-shadow:none;color:#9d7a55;font-size:1.2rem;cursor:pointer}
.profile-hero{display:flex;align-items:center;gap:14px}
.profile-hero h3{margin:0;font-size:1.2rem;color:#5d4029}
.profile-hero small{color:#a58a69;font-size:.7rem}
.profile-hero .eyebrow{margin:0}
.profile-chef canvas{width:96px;height:96px;image-rendering:pixelated;display:block}
.profile-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.profile-actions button{padding:7px 12px;border-radius:7px;font-size:.72rem}
.profile-actions .muted{color:#a58a69;font-size:.7rem;font-weight:800;padding:6px 0}
.profile-stars{display:grid;grid-template-columns:repeat(5,1fr);gap:5px}
.profile-stars span{display:flex;flex-direction:column;align-items:center;padding:5px 2px;border-radius:6px;background:#ffeccb;font-size:.62rem;font-weight:900;color:#9d7a55}
.profile-stars span b{color:#d39a1c;font-size:.7rem;letter-spacing:1px}
.profile-stars span.locked{opacity:.4}
.profile-list{display:grid;gap:4px;margin:0;padding:0;list-style:none;font-size:.7rem}
.profile-list li{display:flex;justify-content:space-between;gap:8px;padding:5px 8px;border-radius:6px;background:#ffeccb}
.profile-list li small{color:#a58a69}
.mini-kitchen:has(canvas){background:#3d2c22}
.mini-kitchen canvas{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;display:block;image-rendering:pixelated}
.settings-body.single{grid-template-columns:minmax(0,680px)!important;min-height:0}
.settings-body.single .settings-card{max-height:100%;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.settings-card,.partner-list,.profile-sheet,.level-route{touch-action:pan-y}
.chef-mini{width:36px;height:27px}
.board-member .chef-mini{width:24px;height:18px}
.profile-chef canvas{width:96px;height:72px}
.podium-avatar .podium-chef{width:88px;height:66px;margin:6px auto 0}
.profile-avatar .chef-avatar{object-fit:contain}
.auth-community{width:100%;margin-top:10px;padding:10px 12px;border:2px solid #343039;border-radius:10px;background:#fff8ec;color:#343039;font-weight:800;cursor:pointer}
.auth-community:hover{background:#ffe9c7}
.chef-picker{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.chef-picker button{display:flex;flex-direction:column;align-items:center;gap:2px;padding:4px 6px 6px;border-radius:10px;border:2px solid transparent;background:rgba(255,255,255,.06);color:inherit;font:inherit;font-size:12px;cursor:pointer}
.chef-picker button[aria-checked="true"]{border-color:#f2c063;background:rgba(242,192,99,.16)}
.chef-picker canvas{width:48px;height:48px;image-rendering:pixelated}
.settings-card { align-self: start; padding: 20px; border-radius: 17px; color: var(--ink); background: var(--paper); box-shadow: 7px 8px 0 rgba(0,0,0,.25); }
.settings-card h3 { margin: 0 0 9px; }
.setting-row, .account-setting { display: grid; grid-template-columns: 1fr minmax(110px, auto) auto; align-items: center; gap: 13px; padding: 13px 7px; border-top: 1px solid #ddc9a4; }
.setting-row span b, .setting-row span small, .account-setting b, .account-setting small { display: block; }
.setting-row small, .account-setting small { margin-top: 3px; color: #7d7067; font-size: .6rem; }
.setting-row input[type="range"] { accent-color: var(--red); }
.setting-row select { padding: 7px; border: 2px solid #c8a86e; border-radius: 8px; color: var(--ink); background: #fffaf0; font: 800 .7rem inherit; }
.setting-row input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--green); }
.account-setting { grid-template-columns: 1fr auto; }
.account-setting button { padding: 7px 10px; border: 0; border-radius: 8px; color: white; background: #6c5e58; font-size: .68rem; font-weight: 900; }
.account-setting > div { display: flex; gap: 6px; }
.account-setting #bindEmailButton { background: #3f809d; }

.room-panel { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; text-align: left; }
.room-header .room-code { justify-self: end; min-width: 100px; color: var(--ink); background: var(--paper); box-shadow: 0 3px 0 #b99a68; font-size: 1rem; letter-spacing: .14em; }
.room-body { display: grid; grid-template-columns: minmax(210px, .55fr) minmax(400px, 1.45fr); gap: 20px; align-items: center; min-height: 0; padding: 18px 0; }
.room-level { padding: 18px; border: 1px solid rgba(255,242,214,.18); border-radius: 16px; background: rgba(255,255,255,.07); }
.room-level h3 { margin: 4px 0 9px; }
.room-level p:not(.eyebrow), .room-level small { color: rgba(255,242,214,.6); font-size: .7rem; line-height: 1.5; }
.room-change-level { margin: 10px 0; padding: 8px 14px; font-size: .68rem; }
.room-player-stage { display: grid; grid-template-columns: repeat(2, minmax(150px, 230px)); justify-content: center; gap: 24px; }
.room-player { display: grid; justify-items: center; padding: 25px 12px 18px; border: 2px dashed rgba(255,242,214,.35); border-radius: 22px; background: rgba(255,255,255,.07); }
.room-player.occupied { border-style: solid; border-color: #65b8d4; background: rgba(63,128,157,.25); }
.room-player > span { display: grid; place-items: center; width: 82px; height: 82px; margin-bottom: 14px; border: 5px solid var(--ink); border-radius: 50%; color: white; background: #6c5e58; box-shadow: 0 7px 0 rgba(0,0,0,.3); font-size: 1.1rem; font-weight: 900; }
.room-player.occupied > span { background: #3f809d; }
.room-player b { font-size: .9rem; }
.room-player small { margin-top: 4px; color: rgba(255,242,214,.58); font-size: .62rem; }
.room-panel > .room-actions { justify-content: flex-end; align-items: center; padding-top: 10px; border-top: 1px solid rgba(255,242,214,.18); }
.room-panel > .room-actions p { margin: 0 auto 0 0; color: rgba(255,242,214,.55); font-size: .65rem; }
.room-panel > .room-actions button { min-width: 180px; }
.matchmaking-panel { width: min(86%, 470px); text-align: center; }
.matchmaking-panel h2 { margin: 5px 0 8px; }
.matchmaking-panel > p:not(.eyebrow) { margin: 0 0 8px; }
.matchmaking-panel > small { display: block; margin: 0 0 18px; color: #6c5e58; font-weight: 800; }
.matchmaking-spinner { width: 52px; height: 52px; margin: 0 auto 12px; border: 7px solid #e4cda4; border-top-color: var(--red); border-radius: 50%; animation: login-spin .8s linear infinite; }

@media (max-height: 560px) {
  .auth-brand { top: 10px; transform: translateX(-50%) scale(.72); transform-origin: top center; }
  .auth-card { width: min(74vw, 500px); padding: 13px 18px 14px; }
  .agreement-card, .account-card { margin-top: 34px; }
  .auth-card h2 { font-size: 1.16rem; }
  .auth-card > p:not(.eyebrow) { margin-bottom: 8px; font-size: .67rem; }
  .agreement-links { margin: 8px 0 10px; }
  .auth-card button { padding: 8px 10px; }
  .auth-card > small { margin-top: 8px; }
  .account-card form { grid-template-columns: 1fr 1fr; gap: 7px; }
  .account-card form label:first-child, .account-card form button { grid-column: 1 / -1; }
  .account-card input { padding: 7px 9px; }
  .auth-brand-line { bottom: 7px; }
  .lobby-panel .lobby-grid { grid-template-columns: minmax(0, 1.4fr) minmax(240px, .65fr); }
  .lobby-room-preview { grid-template-columns: minmax(160px, .65fr) minmax(260px, 1fr); gap: 8px; }
  .lobby-level-card { padding: 7px; }
  .mini-kitchen { min-height: 82px; margin-bottom: 5px; }
  .lobby-level-card > p:not(.eyebrow) { display: none; }
  .lobby-player-stage { padding: 9px; }
  .stage-note { margin-bottom: 6px; font-size: .58rem; }
  .player-podiums { gap: 7px; margin-bottom: 8px; }
  .player-podium { padding: 7px 5px; }
  .podium-avatar { width: 38px; height: 38px; margin-bottom: 4px; border-width: 3px; }
  .player-podium small { display: none; }
  .lobby-panel .lobby-main-actions button { padding: 6px; font-size: .68rem; }
  .lobby-main-actions small { display: none; }
  .menu-screen, .room-panel { inset: 0; width: 100%; height: 100%; max-height: none; padding: 7px 10px; border: 0; border-radius: 0; transform: none; }
  .menu-header, .room-header { padding-bottom: 5px; }
  .menu-header h2, .room-header h2 { font-size: 1.05rem; }
  .level-screen-body { grid-template-columns: 115px minmax(280px, 1fr) 230px; gap: 8px; height: calc(100% - 42px); padding-top: 7px; }
  .chapter-list button { padding: 8px; }
  .level-route { gap: 7px; padding: 10px; }
  .level-node { min-height: 100px; padding: 8px 4px; border-width: 3px; }
  .level-node span { font-size: 1rem; }
  .level-detail { padding: 10px; }
  .level-detail h3 { margin: 1px 0 4px; font-size: 1rem; }
  .level-detail > p:not(.eyebrow) { margin: 3px 0; font-size: .58rem; }
  .level-detail dl { gap: 3px; margin: 4px 0; }
  .level-detail dl div { padding: 4px 6px; font-size: .55rem; }
  .level-actions { gap: 4px; }
  .level-actions button { padding: 6px; font-size: .65rem; }
  .settings-body { grid-template-columns: 105px minmax(380px, 590px); gap: 8px; height: calc(100% - 42px); padding-top: 7px; }
  .settings-card { padding: 10px; }
  .setting-row, .account-setting { padding: 7px 5px; }
  .room-body { padding: 8px 0; }
  .room-player { padding: 10px 8px 8px; }
  .room-player > span { width: 52px; height: 52px; margin-bottom: 7px; border-width: 3px; }
}

@media (orientation: portrait) {
  .auth-shell { padding: 20px; }
  .auth-brand { top: 6vh; }
  .auth-card { margin-top: 10vh; padding: 24px 20px 22px; }
  .auth-brand-line { bottom: 4vh; }
}

.hud-button { width: 38px; height: 38px; padding: 0; border: 2px solid rgba(255,242,214,.38); border-radius: 10px; color: var(--paper); background: rgba(255,255,255,.08); font-size: 1rem; font-weight: 900; line-height: 1; cursor: pointer; }
.hud-button:hover { background: rgba(255,255,255,.16); }
.hud-button[hidden] { display: none; }
.countdown-overlay { position: absolute; inset: 0; z-index: 12; display: grid; place-items: center; color: var(--yellow); font: 900 clamp(4rem, 16vw, 9rem)/1 "Trebuchet MS", "Microsoft YaHei", sans-serif; text-shadow: 0 6px 0 rgba(0,0,0,.45); pointer-events: none; }
.countdown-overlay.go { font-size: clamp(3rem, 11vw, 6rem); color: #9ee3a0; }
.room-invite { margin-top: 12px; }
.room-invite-list { display: grid; gap: 6px; max-height: 150px; overflow-y: auto; }
.room-invite-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px; border-radius: 10px; background: rgba(255,255,255,.08); font-size: .68rem; font-weight: 800; }
.room-invite-row button { padding: 5px 9px; border: 0; border-radius: 8px; color: white; background: var(--red); font-size: .62rem; font-weight: 900; cursor: pointer; }
.room-invite-row button:disabled { opacity: .5; cursor: default; }
.room-invite-empty { color: rgba(255,242,214,.55); font-size: .62rem; line-height: 1.5; }
.room-player.ready { border-color: #8fd18f; }
.room-player.waiting-ready { border-color: #f2c45a; }
#roomReadyButton.is-ready { background: #3f809d; }
@media (max-height: 560px) { .hud-button { width: 30px; height: 30px; } }

/* Room: the kitchen preview sits above the two seats so swapping sides means something. */
.room-stage { display: grid; gap: 12px; justify-items: center; align-content: center; min-height: 0; }
.room-kitchen { width: min(100%, 470px); }
.room-kitchen canvas { display: block; width: 100%; height: auto; border: 3px solid var(--ink); border-radius: 14px; background: #2b2430; box-shadow: 0 6px 0 rgba(0,0,0,.28); image-rendering: pixelated; }
.room-stage .room-player-stage { width: min(100%, 470px); grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.room-stage .room-player { padding: 10px 8px 9px; }
.room-stage .room-player > span { width: 46px; height: 46px; margin-bottom: 6px; border-width: 3px; font-size: .85rem; }
@media (max-width: 760px) {
  .room-body { grid-template-columns: 1fr; gap: 10px; overflow-y: auto; }
}
@media (max-height: 560px) {
  .room-kitchen, .room-stage .room-player-stage { width: min(100%, 300px); }
  .room-stage { gap: 6px; }
  .room-stage .room-player { padding: 5px 6px; }
  .room-stage .room-player > span { width: 32px; height: 32px; margin-bottom: 3px; font-size: .7rem; }
}
