/* Cook-Off Crew — a warm kitchen on a slate floor. */
:root {
  --ink: #17232b;
  --slate: #22323c;
  --card: #fff6e6;
  --card-edge: #7a4b22;
  --text: #33241a;
  --dim: #8a7460;
  --tomato: #e0483a;
  --sun: #f2b233;
  --leaf: #3fa85a;
  --cream: #fff4dc;
  --edge: rgba(255, 244, 220, .18);
}

* { box-sizing: border-box; }
html, body {
  margin: 0; height: 100%; overflow: hidden; background: var(--ink);
  color: var(--cream); font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  -webkit-tap-highlight-color: transparent; touch-action: none;
  -webkit-user-select: none; user-select: none;
}
#game { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }

button { font-family: inherit; }
.muted { color: var(--dim); font-size: 13px; }
.error { color: #c0392b; min-height: 1em; font-size: 13px; margin: 6px 0; }
.gold { color: #c98a12; }
.bad { color: #ff8a78; }
.st-on { color: #f2a51a; letter-spacing: .05em; }
.st-off { color: rgba(120, 100, 80, .35); letter-spacing: .05em; }

/* ── HUD ─────────────────────────────────────────────────────────── */
#hud { position: fixed; inset: 0; pointer-events: none; z-index: 3; }
.hud-bar {
  position: absolute; left: 0; right: 0; top: 0; height: 44px;
  padding: calc(4px + env(safe-area-inset-top)) calc(8px + env(safe-area-inset-right)) 4px calc(8px + env(safe-area-inset-left));
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(180deg, rgba(16, 24, 30, .92), rgba(16, 24, 30, .6));
}
.hud-score { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.hud-num { font-size: 24px; font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hud-num.words { font-size: 17px; }
.hud-stars { font-size: 17px; }
.hud-stars .st-off { color: rgba(255, 255, 255, .22); }
.hud-next { font-size: 11.5px; color: rgba(255, 244, 220, .65); white-space: nowrap; }
.hud-kitchen {
  flex: 1; text-align: center; font-weight: 800; letter-spacing: .06em; font-size: 13px;
  color: rgba(255, 244, 220, .8); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hud-clock {
  font-size: 22px; font-weight: 900; font-variant-numeric: tabular-nums; color: #fff;
  padding: 1px 10px; border-radius: 9px; background: rgba(255, 255, 255, .1); white-space: nowrap;
}
.hud-clock.words { font-size: 13px; font-weight: 700; color: rgba(255, 244, 220, .75); }
.hud-clock.low { background: var(--tomato); animation: pulse .8s infinite; }
@keyframes pulse { 50% { transform: scale(1.06); } }
.hud-buttons { display: flex; gap: 5px; pointer-events: auto; align-items: flex-start; }
.hud-btn, .hud-gear summary {
  width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--edge);
  background: rgba(16, 24, 30, .85); color: var(--cream); font-size: 15px; font-weight: 800;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.hud-gear { position: relative; }
.hud-gear summary { list-style: none; }
.hud-gear summary::-webkit-details-marker { display: none; }
/* site_audio.css pins #hudAudio fixed bottom-centre; inside the gear it drops
   below the toggle instead, so restate ALL four placement properties. */
#hudAudio {
  position: absolute; top: 40px; right: 0; left: auto; bottom: auto; transform: none;
  background: rgba(16, 24, 30, .96); border-radius: 12px; padding: 6px 8px;
  width: max-content; max-width: 86vw; z-index: 6;
}
/* web/style.css pins .volume-slider position:fixed top:12px — undo it here
   or every slider lands in the corner of the screen (CLAUDE.md item 5). */
.volume-slider { position: static !important; top: auto !important; }
body:not(.is-host) .host-only { display: none !important; }
body.spectating #hudRestartBtn, body.spectating #touchLayer, body.spectating #prompt { display: none !important; }

.crew-strip {
  position: absolute; left: calc(8px + env(safe-area-inset-left)); bottom: calc(8px + env(safe-area-inset-bottom));
  display: flex; flex-wrap: wrap; gap: 4px; max-width: 34vw;
}
.crew-chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 3px 9px;
  border-radius: 999px; background: rgba(16, 24, 30, .78); color: var(--cream);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.crew-chip i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.crew-chip.me { outline: 1.5px solid rgba(255, 255, 255, .7); }
.crew-chip .acct-title, .crew-chip .mps-title { opacity: .7; font-size: 10.5px; margin-left: 4px; }
body.touch .crew-strip { display: none; }

.coach {
  position: absolute; left: 50%; transform: translateX(-50%); top: 138px;
  width: min(620px, calc(100vw - 16px)); padding: 8px 12px 9px;
  background: #fffbe9; color: var(--text); border: 2px solid #c9a23a; border-radius: 12px;
  box-shadow: 0 6px 0 rgba(0, 0, 0, .25); text-align: left;
}
.coach.flash { animation: coach-in .5s ease-out; }
@keyframes coach-in { 0% { background: #ffe07a; transform: translateX(-50%) scale(1.04); } }
.coach-head { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #8a6a1a; }
.coach-hat { font-size: 15px; }
.coach-dots { margin-left: auto; display: flex; gap: 3px; }
.coach-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(138, 106, 26, .25); }
.coach-dots i.done { background: var(--leaf); }
.coach-dots i.now { background: var(--sun); box-shadow: 0 0 0 2px rgba(242, 178, 51, .35); }
.coach-text { font-size: 14.5px; line-height: 1.35; margin-top: 3px; font-weight: 600; }
.kbd, .key {
  display: inline-block; padding: 0 6px; border-radius: 5px; background: #33241a; color: #fff;
  font-size: .85em; font-weight: 800; letter-spacing: .04em; font-style: normal;
}

.action-bar {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(6px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 16px);
}
.prompt {
  padding: 6px 14px; border-radius: 999px; background: rgba(16, 24, 30, .88); color: #fff;
  font-size: 14px; font-weight: 700; white-space: nowrap; transition: opacity .12s; opacity: 0;
  border: 1px solid var(--edge);
}
.prompt .key { background: #fff; color: #17232b; margin-right: 4px; }
.prompt .sep { display: inline-block; width: 16px; }
.prompt i { font-weight: 500; opacity: .7; }
body.touch .prompt { display: none; }

/* what is in MY hands, in a picture and in words — never a guess */
.hands {
  align-items: center; gap: 8px; padding: 3px 14px 3px 4px; border-radius: 999px;
  background: rgba(255, 250, 236, .96); color: #33241a; border: 2px solid #c9a23a;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .3); white-space: nowrap; min-width: 0;
}
.hands canvas { width: 40px; height: 40px; flex: none; }
.hands span { display: flex; flex-direction: column; line-height: 1.1; overflow: hidden; }
.hands small { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #8a6a1a; font-weight: 800; }
.hands b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; }
/* on a phone the bar sits in its own strip between the kitchen and the pad */
body.touch .action-bar {
  left: calc(8px + env(safe-area-inset-left)); transform: none;
  bottom: calc(158px + env(safe-area-inset-bottom));
}
body.spectating .hands { display: none !important; }
.kitchens-head { margin: 14px 0 2px; font-weight: 900; font-size: 15px; text-align: left; }

.hud-toast {
  position: absolute; right: calc(8px + env(safe-area-inset-right)); bottom: calc(10px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column-reverse; gap: 4px; align-items: flex-end; max-width: 46vw;
}
/* on a phone: under the rail (never on it), and under the coach when there is one */
body.touch .hud-toast { bottom: auto; top: 118px; right: 6px; max-width: 70vw; flex-direction: column; }
body.touch.has-coach .hud-toast { top: 210px; }
.toast {
  font-size: 12.5px; padding: 4px 10px; border-radius: 999px;
  background: rgba(16, 24, 30, .88); color: var(--cream); border: 1px solid var(--edge);
  animation: toast-in .18s ease-out, toast-out .4s ease-in 2.7s forwards;
}
.toast .tip { color: #ffe07a; }
.toast .streak { color: #ff9c6a; font-weight: 800; }
@keyframes toast-in { from { transform: translateX(16px); opacity: 0; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-6px); } }

.hud-center {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%);
  text-align: center; pointer-events: none;
}
.hud-center .big {
  font-size: clamp(30px, 8vw, 58px); font-weight: 900; color: #fff4d6; letter-spacing: .04em;
  text-shadow: 0 4px 0 #7a3f12, 0 0 24px rgba(0, 0, 0, .5); animation: pop .3s ease-out;
}
.hud-center .big.alarm { color: #ffd23f; text-shadow: 0 4px 0 #b3261a, 0 0 28px rgba(255, 80, 30, .8); }
.hud-center .small { font-size: 15px; color: #fff; margin-top: 4px; text-shadow: 0 1px 3px rgba(0, 0, 0, .8); font-weight: 700; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }

.spectator-flag {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(14px + env(safe-area-inset-bottom));
  padding: 7px 16px; border-radius: 999px; background: rgba(16, 24, 30, .9); color: #fff;
  font-size: 13.5px; font-weight: 700; border: 1px solid var(--edge); white-space: nowrap;
}

/* ── touch controls ──────────────────────────────────────────────── */
#touchLayer { display: none; }
body.touch #touchLayer { display: block; }
.stick-zone {
  position: absolute; left: 0; bottom: 0; width: 56%; height: 44%; pointer-events: auto;
  touch-action: none;
}
.stick-hint {
  position: absolute; left: calc(26px + env(safe-area-inset-left)); bottom: calc(40px + env(safe-area-inset-bottom));
  width: 92px; height: 92px; border-radius: 50%; border: 2px dashed rgba(255, 255, 255, .35);
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-size: 11px; color: rgba(255, 255, 255, .7); background: rgba(16, 24, 30, .35);
}
.stick {
  display: none; position: absolute; width: 112px; height: 112px; border-radius: 50%;
  background: rgba(16, 24, 30, .45); border: 2px solid rgba(255, 255, 255, .45); pointer-events: none;
}
.stick-knob {
  position: absolute; left: 50%; top: 50%; width: 50px; height: 50px; border-radius: 50%;
  background: rgba(255, 255, 255, .85); transform: translate(-50%, -50%);
  box-shadow: 0 3px 8px rgba(0, 0, 0, .4);
}
.pad-right {
  position: absolute; right: calc(10px + env(safe-area-inset-right)); bottom: calc(18px + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: auto auto; grid-template-areas: "dash work" "grab grab"; gap: 8px;
  align-items: end; justify-items: end; pointer-events: auto;
}
.tbtn {
  width: 86px; height: 62px; border-radius: 16px; border: 2px solid rgba(255, 255, 255, .55);
  background: rgba(16, 24, 30, .72); color: #fff; font-size: 22px; font-weight: 900; line-height: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  touch-action: none;
}
.tbtn small { font-size: 10.5px; letter-spacing: .05em; font-weight: 800; max-width: 100%; overflow: hidden; white-space: nowrap; }
.tbtn.grab { grid-area: grab; width: 154px; height: 66px; background: rgba(224, 72, 58, .88); }
.tbtn.work { grid-area: work; background: rgba(63, 143, 232, .86); }
.tbtn.small { grid-area: dash; width: 60px; height: 52px; font-size: 18px; }
.tbtn.dim { opacity: .5; }
.tbtn.held, .tbtn:active { transform: scale(.95); filter: brightness(1.25); }
.tbtn.hit { animation: hit .16s ease-out; }
@keyframes hit { 50% { transform: scale(.9); filter: brightness(1.4); } }

/* ── overlay card ────────────────────────────────────────────────── */
#overlay {
  position: fixed; inset: 0; display: flex; align-items: flex-start; justify-content: center;
  z-index: 10; overflow-y: auto; padding: 20px 0;
  background:
    radial-gradient(900px 420px at 50% -10%, rgba(242, 178, 51, .22), transparent 60%),
    repeating-conic-gradient(#22323c 0% 25%, #1e2c35 0% 50%) 50% / 64px 64px;
  touch-action: pan-y;
}
#overlay.in-play { background: rgba(14, 20, 26, .62); }
.card {
  position: relative; width: min(520px, calc(100vw - 24px)); margin: auto 12px;
  background: var(--card); color: var(--text); border: 3px solid var(--card-edge);
  border-radius: 18px; padding: 20px 20px 16px; text-align: center;
  box-shadow: 0 8px 0 #4a2c12, 0 22px 60px rgba(0, 0, 0, .45);
  -webkit-user-select: text; user-select: text;
}
.card.wide { width: min(760px, calc(100vw - 24px)); }
.card-help {
  position: absolute; top: 12px; left: 12px; width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid var(--card-edge); background: #fff; color: var(--card-edge);
  font-weight: 900; font-size: 16px; cursor: pointer;
}
.lobby-audio { display: flex; justify-content: flex-end; margin: -6px -4px 6px 44px; }
.co-title {
  margin: 2px 0 6px; font-size: clamp(30px, 8vw, 44px); letter-spacing: .04em; font-weight: 900;
  color: var(--tomato); text-shadow: 0 3px 0 #ffd9a0; display: inline-flex; align-items: center; gap: .18em;
  flex-wrap: wrap; justify-content: center;
}
.co-title.small { font-size: clamp(20px, 5vw, 27px); }
.co-accent { color: #d98a12; }
.co-hat {
  display: inline-block; width: .82em; height: .72em; margin-right: .1em; position: relative;
  background: #fff; border: .07em solid var(--card-edge); border-radius: .36em .36em .1em .1em;
}
.co-hat::after {
  content: ""; position: absolute; left: 12%; right: 12%; bottom: -.2em; height: .2em;
  background: #fff; border: .07em solid var(--card-edge); border-radius: .06em;
}
.tagline { margin: 0 0 12px; color: #6b5340; font-size: 14px; }
h2 { margin: 6px 0 10px; color: var(--text); }

input[type="text"] {
  width: 100%; padding: 11px 12px; border-radius: 10px; border: 2px solid #c9a678;
  background: #fff; color: var(--text); font-size: 16px; text-align: center; font-family: inherit;
  -webkit-user-select: text; user-select: text;
}
.acct-chip, .account-chip { margin-bottom: 8px; }
button.primary, button.secondary {
  display: block; width: 100%; margin-top: 8px; padding: 12px 14px; border-radius: 12px;
  font-size: 16px; font-weight: 800; cursor: pointer; border: 2px solid var(--card-edge);
}
button.primary { background: var(--tomato); color: #fff; box-shadow: 0 4px 0 #9a2a20; }
button.primary small { display: block; font-size: 11.5px; font-weight: 600; opacity: .9; }
button.secondary { background: #fff; color: var(--text); box-shadow: 0 3px 0 #c9a678; }
button.primary:active, button.secondary:active { transform: translateY(2px); box-shadow: none; }
button:disabled { opacity: .5; }
.link-btn {
  background: none; border: none; color: #a0531a; font-size: 13.5px; font-weight: 700;
  cursor: pointer; padding: 6px 8px; text-decoration: underline;
}
.back-link { display: block; margin-top: 8px; color: #8a6a4a; font-size: 13px; }
.home-buttons { margin-top: 6px; }
.row-2 { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.row-2 input[type="text"] { margin-top: 8px; letter-spacing: .3em; text-transform: uppercase; }
.row-2 .secondary { white-space: nowrap; }
.check { font-size: 13px; color: #6b5340; margin-top: 8px; display: flex; align-items: center; gap: 4px; }

.rooms-box { margin-top: 12px; border: 2px solid #e3c9a0; border-radius: 12px; padding: 8px 10px; background: #fffbf2; }
.rooms-head { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; font-weight: 800; color: #8a6a4a; }
.rooms-list { display: grid; gap: 4px; margin-top: 4px; max-height: 150px; overflow-y: auto; }
.room-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; text-align: left;
  padding: 6px 8px; border-radius: 8px; background: #fff; border: 1px solid #ecd9b8; cursor: pointer; font-size: 13px;
}
.room-row:hover { border-color: var(--tomato); }
.room-row .code { font-weight: 900; letter-spacing: .1em; color: var(--tomato); }
.room-row .who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #6b5340; }
.room-row .cnt { font-weight: 800; }

.lobby-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 14px; }
.room-badge { font-size: 14px; padding: 4px 12px; border-radius: 999px; background: #fff; border: 2px solid #e3c9a0; }
.room-badge b { letter-spacing: .12em; color: var(--tomato); font-size: 16px; }
.player-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 10px 0 4px; }
.player-row {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
  background: #fff; border: 2px solid #e3c9a0; font-size: 13.5px;
}
.player-row.me { border-color: var(--tomato); }
.player-row .dot { width: 11px; height: 11px; border-radius: 50%; }
.player-name { font-weight: 800; }
.seat-note { margin: 4px 0 8px; min-height: 1.2em; }

.kitchen-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 7px; margin-top: 6px; }
.k-card {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 6px 4px 5px; border-radius: 11px; border: 2px solid #e3c9a0; background: #fff;
  cursor: pointer; color: var(--text); font-size: 12px;
}
.k-card canvas { width: 90px; height: 54px; border-radius: 5px; background: #17232b; image-rendering: pixelated; }
.k-card .k-num {
  position: absolute; left: 4px; top: 4px; min-width: 19px; height: 19px; border-radius: 10px; padding: 0 4px;
  background: var(--card-edge); color: #fff; font-weight: 900; font-size: 11.5px; line-height: 19px;
}
.k-card .k-name { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.k-card .k-stars { font-size: 14px; line-height: 1; }
.k-card.on { border-color: var(--tomato); background: #fff0e6; box-shadow: 0 0 0 2px rgba(224, 72, 58, .25); }
.k-card.locked { opacity: .55; }
.k-card.locked canvas { filter: grayscale(1) brightness(.7); }

.kitchen-info { margin: 10px 0 2px; padding: 10px 12px; border-radius: 12px; background: #fffbf2; border: 2px solid #e3c9a0; text-align: left; }
.ki-head { font-size: 17px; }
.ki-idea { font-size: 11.5px; font-weight: 700; color: #fff; background: #d98a12; padding: 2px 8px; border-radius: 999px; margin-left: 6px; vertical-align: 2px; white-space: nowrap; }
.ki-blurb { margin: 4px 0 8px; font-size: 13.5px; color: #6b5340; }
.ki-menu { display: flex; flex-wrap: wrap; gap: 6px; }
.ki-dish { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px 2px 3px; border-radius: 999px; background: #fff; border: 1px solid #ecd9b8; font-size: 12.5px; font-weight: 700; }
.ki-dish canvas { width: 28px; height: 28px; }
.ki-marks { margin-top: 8px; font-size: 13px; }

.peers { margin: 8px 0; }
.count-kitchen { font-size: 18px; font-weight: 800; color: #8a6a4a; }
.countdown { font-size: 96px; font-weight: 900; color: var(--tomato); line-height: 1.1; text-shadow: 0 5px 0 #ffd9a0; }

.result-stars { display: flex; justify-content: center; gap: 8px; margin: 2px 0; }
.big-star { font-size: 64px; line-height: 1; color: rgba(120, 100, 80, .25); }
.big-star.on { color: #f2a51a; text-shadow: 0 3px 0 #b3711a; animation: star-in .45s cubic-bezier(.2, 1.6, .4, 1) backwards; }
@keyframes star-in { from { transform: scale(0) rotate(-40deg); opacity: 0; } }
.result-score { font-size: 30px; font-weight: 900; color: var(--text); }
.result-marks { font-size: 13px; margin: 2px 0 6px; }
#resultTable, #resultAwards { text-align: left; }

/* shared panels, themed (five tokens each — never edit the shared files) */
.card, .lb-panel, .lb-card {
  --lb-accent: #d9541e; --lb-text: #33241a; --lb-dim: #8a7460;
  --lb-edge: #e3c9a0; --lb-panel: #fffbf2;
  --fs-accent: #d9541e; --fs-text: #33241a; --fs-dim: #8a7460;
  --fs-edge: #e3c9a0; --fs-panel: #fffbf2;
}
.leaderboard { margin-top: 12px; text-align: left; }
#lobbyChat { margin-top: 10px; text-align: left; }
/* the overlay board is an .overlay-card: web/style.css caps those at 420px by
   max-width, so set max-width, not just width (CLAUDE.md) */
.lb-card {
  max-width: min(560px, calc(100vw - 24px));
  /* rankings.css paints the overlay card near-black whatever the tokens say;
     these tokens are dark-on-cream, so the card has to be cream too */
  background: #fff6e6; border: 3px solid var(--card-edge); border-radius: 16px;
  box-shadow: 0 8px 0 #4a2c12, 0 22px 60px rgba(0, 0, 0, .5); color: var(--text);
}
.lb-card .lb-close { background: #fff; border: 2px solid var(--card-edge); border-radius: 10px; font-weight: 800; }
.lb-overlay { background: rgba(10, 16, 20, .7); }

/* ── help ────────────────────────────────────────────────────────── */
.help-overlay {
  position: fixed; inset: 0; z-index: 30; display: flex; align-items: flex-start; justify-content: center;
  background: rgba(10, 16, 20, .78); overflow-y: auto; padding: 16px 0; touch-action: pan-y;
}
.help-card {
  position: relative; width: min(600px, calc(100vw - 20px)); margin: auto 10px; padding: 18px 18px 16px;
  background: #2a3b46; color: var(--cream); border: 2px solid rgba(255, 244, 220, .25); border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5); text-align: left;
}
.help-card h2 { margin: 0 0 6px; color: #ffd23f; font-size: 22px; }
.help-x { position: absolute; right: 10px; top: 10px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--edge); background: rgba(255, 255, 255, .08); color: #fff; font-size: 15px; cursor: pointer; }
.help-lead { margin: 0 0 10px; font-size: 14px; line-height: 1.4; color: rgba(255, 244, 220, .9); }
.help-tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.help-tab { flex: 1; padding: 8px 6px; border-radius: 9px; border: 1px solid var(--edge); background: rgba(255, 255, 255, .06); color: var(--cream); font-weight: 800; font-size: 13px; cursor: pointer; }
.help-tab.on { background: #ffd23f; color: #17232b; border-color: #ffd23f; }
.help-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.help-item { padding: 9px 10px; border-radius: 11px; background: rgba(255, 255, 255, .07); font-size: 13px; }
.help-item .help-ico { font-size: 20px; }
.help-item > b { display: block; font-size: 14.5px; }
.help-item .kb, .help-item .tc { display: inline-block; margin: 3px 0; padding: 1px 7px; border-radius: 6px; background: #fff; color: #17232b; font-weight: 800; font-size: 12px; }
.help-item small { display: block; color: rgba(255, 244, 220, .75); line-height: 1.3; margin-top: 2px; }
.help-item .tc { display: none; }
body.touch .help-item .kb { display: none; }
body.touch .help-item .tc { display: inline-block; }
.help-note { font-size: 13px; color: rgba(255, 244, 220, .85); margin: 10px 0 0; line-height: 1.4; }
.help-rules { margin: 0; padding-left: 18px; font-size: 13.5px; line-height: 1.45; }
.help-rules li { margin-bottom: 5px; }
.help-states { width: 100%; height: auto; border-radius: 10px; background: rgba(0, 0, 0, .22); }
.t-cook { color: #ffd23f; } .t-done { color: #6fe08a; } .t-burn { color: #ff7a66; }
.help-again { font-size: 12px; color: rgba(255, 244, 220, .6); margin: 10px 0 0; }

/* ── phones ──────────────────────────────────────────────────────── */
@media (max-width: 620px) {
  .hud-kitchen { display: none; }
  .hud-next { display: none; }
  .hud-num { font-size: 20px; }
  .hud-num.words { font-size: 15px; }
  .hud-clock { font-size: 18px; margin-left: auto; }
  .hud-clock.words { display: none; }
  .hud-score { margin-right: auto; }
  .hud-btn, .hud-gear summary { width: 31px; height: 31px; font-size: 14px; }
  .hud-buttons { gap: 3px; }
  .coach { top: 112px; padding: 6px 9px 7px; }
  .coach-text { font-size: 13px; }
  .card { padding: 16px 14px 14px; }
  .help-grid { grid-template-columns: 1fr; }
  .kitchen-grid { grid-template-columns: repeat(3, 1fr); }
  .k-card canvas { width: 100%; height: auto; aspect-ratio: 5 / 3; }
  .big-star { font-size: 52px; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .tbtn { width: 74px; height: 52px; }
  .tbtn.grab { width: 132px; height: 56px; }
  .stick-zone { height: 62%; }
}
