/* =========================================================
   Tahu Tak? — kopitiam neo-brutalism
   paper + ink + enamel colours, hard offset shadows
   ========================================================= */
:root {
  --paper: #f3ead7;
  --paper-2: #eadfc6;
  --card: #fffaf0;
  --ink: #16130e;
  --ink-soft: #4a4238;
  --red: #d8321f;
  --green: #0e6b47;
  --yellow: #f5b700;
  --blue: #2b59c3;
  --teh: #8a4b22;

  --f-display: "Special Gothic Condensed One", "Arial Narrow", sans-serif;
  --f-hand: "Caveat Brush", "Comic Sans MS", cursive;
  --f-body: "Public Sans", system-ui, sans-serif;
  --f-mono: "Space Mono", ui-monospace, monospace;

  --bw: 3px;
  --shadow: 5px 5px 0 var(--ink);
  --shadow-lg: 8px 8px 0 var(--ink);
  --r: 4px;
  --bar-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 12px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--f-body);
  overflow-x: hidden;
  /* faint paper grain */
  background-image: radial-gradient(rgba(22, 19, 14, 0.06) 1px, transparent 1px);
  background-size: 5px 5px;
}
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px dashed var(--blue); outline-offset: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--yellow); border: var(--bw) solid var(--ink); padding: 8px 14px; font-weight: 800; }
.skip:focus { left: 8px; }

/* 3D layer sits above section fills but under content */
/* sized to the *large* viewport so the mobile toolbar sliding away doesn't resize (and flash) the canvas */
#stage { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100lvh; z-index: 1; pointer-events: none; }
main, footer { position: relative; }
.sec > *, .hero > *, .foot > * { position: relative; z-index: 2; }
.prop { position: relative; z-index: 0 !important; pointer-events: none; }

/* ---------- top bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 50;
  height: var(--bar-h);
  display: flex; align-items: center; gap: 24px;
  padding: 0 clamp(16px, 3vw, 40px);
  background: var(--paper);
  border-bottom: var(--bw) solid var(--ink);
}
.brand { font: 400 34px/1 var(--f-display); text-decoration: none; letter-spacing: .5px; text-transform: uppercase; white-space: nowrap; }
.brand span { color: var(--red); }
.bar-nav { display: flex; gap: 4px; margin-right: auto; }
.bar-nav a { font-weight: 800; text-decoration: none; padding: 6px 12px; border: 2px solid transparent; text-transform: uppercase; font-size: 14px; letter-spacing: .5px; }
.bar-nav a:hover { border-color: var(--ink); background: var(--yellow); }
.wallet { display: flex; gap: 10px; margin-left: auto; }
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 12px; background: var(--card);
  border: 2px solid var(--ink); border-radius: 999px;
  font: 700 16px var(--f-mono);
  box-shadow: 3px 3px 0 var(--ink);
}
.pill svg { font-size: 18px; }
.pill.bump { animation: bump .5s; }
@keyframes bump { 40% { transform: scale(1.25) rotate(-4deg); background: var(--yellow); } }
.sound-btn { cursor: pointer; padding: 4px 10px; }
.sound-btn svg { font-size: 18px; }
.sound-btn[aria-pressed="false"] { background: var(--paper-2); color: var(--ink-soft); }
.coin-ico { width: 16px; height: 16px; border-radius: 50%; background: var(--yellow); border: 2px solid var(--ink); box-shadow: inset -2px -2px 0 #c98a00; flex: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border: var(--bw) solid var(--ink); border-radius: var(--r);
  font: 800 16px var(--f-body); text-transform: uppercase; letter-spacing: .5px; text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform .08s, box-shadow .08s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.btn:active { transform: translate(5px, 5px); box-shadow: 0 0 0 var(--ink); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: 2px 2px 0 var(--ink); }
.btn-red { background: var(--red); color: #fff; }
.btn-paper { background: var(--card); }
.btn-yellow { background: var(--yellow); }
.btn-green { background: var(--green); color: #fff; }
.btn-big { min-height: 64px; padding: 0 44px; font-size: 22px; }
.btn-small { min-height: 40px; font-size: 13px; padding: 0 14px; box-shadow: 3px 3px 0 var(--ink); }

/* ---------- type ---------- */
h1, h2 { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; margin: 0; letter-spacing: .3px; }
h1 { font-size: clamp(64px, 10.5vw, 168px); line-height: .86; margin-bottom: 26px; }
h1 .hl { background: var(--yellow); padding: 0 .08em; box-shadow: 6px 6px 0 var(--ink); border: var(--bw) solid var(--ink); display: inline-block; transform: rotate(-2deg); line-height: .9; }
h1 em { font: 400 .62em/1 var(--f-hand); text-transform: none; color: var(--red); display: inline-block; transform: rotate(-6deg) translateY(-.1em); }
h2 { font-size: clamp(48px, 7vw, 104px); line-height: .9; margin-bottom: 22px; }
.eyebrow { display: inline-block; font: 700 13px var(--f-mono); text-transform: uppercase; letter-spacing: 1px; margin: 0 0 16px; padding: 4px 10px; background: var(--ink); color: var(--paper); }
.sub-h { font: 800 15px var(--f-body); text-transform: uppercase; letter-spacing: 1px; margin: 28px 0 12px; }
.sec-sub { font-size: 18px; max-width: 560px; margin: 0 0 28px; color: var(--ink-soft); }
.scribble { font: 400 28px/1.05 var(--f-hand); color: var(--red); transform: rotate(-3deg); margin: 18px 0 0; }
.scribble svg { display: block; width: 110px; height: 55px; stroke-width: 3; margin-top: 4px; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: calc(100svh - var(--bar-h));
  display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 20px;
  padding: 40px clamp(16px, 5vw, 80px) 110px;
  border-bottom: var(--bw) solid var(--ink);
}
.stamp-label { display: inline-block; font: 700 13px var(--f-mono); text-transform: uppercase; letter-spacing: 1.5px; border: 2px solid var(--green); color: var(--green); padding: 5px 12px; transform: rotate(-2deg); margin: 0 0 22px; }
.lead { font-size: clamp(17px, 1.5vw, 20px); max-width: 540px; margin: 0 0 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; }
.scribble-hero { position: absolute; right: -10px; bottom: -80px; }
.hero-copy { position: relative; }
.prop-hero { height: min(72vh, 640px); }
.ticker { position: absolute !important; left: 0; right: 0; bottom: 0; background: var(--red); color: #fff; border-top: var(--bw) solid var(--ink); overflow: hidden; padding: 10px 0; }
.ticker-track { display: flex; gap: 28px; width: max-content; font: 400 26px/1 var(--f-display); text-transform: uppercase; letter-spacing: 1px; animation: ticker 28s linear infinite; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.sec { padding: clamp(80px, 10vw, 130px) clamp(16px, 5vw, 80px); border-bottom: var(--bw) solid var(--ink); }
.sec-green { background: var(--green); color: var(--paper); }
.sec-green .eyebrow { background: var(--yellow); color: var(--ink); }
.sec-yellow { background: var(--yellow); }
.sec-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(24px, 5vw, 80px); align-items: center; }
.sec-grid-rev { grid-template-columns: 1.3fr 1fr; }
.prop-side { height: 460px; }
.prop-wide { height: 360px; }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 16px; max-width: 600px; }
.steps li { counter-increment: s; position: relative; padding: 18px 20px 18px 78px; background: var(--card); border: var(--bw) solid var(--ink); box-shadow: var(--shadow); }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; display: grid; place-items: center; background: var(--red); color: #fff; border: var(--bw) solid var(--ink); font: 400 30px var(--f-display); }
.steps li:nth-child(2)::before { background: var(--green); }
.steps li:nth-child(3)::before { background: var(--yellow); color: var(--ink); }

/* ---------- play setup ---------- */
.modes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.mode {
  text-align: left; padding: 16px 18px; background: var(--card); color: var(--ink);
  border: var(--bw) solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow);
  transition: transform .08s, box-shadow .08s, background .1s;
}
.mode b { display: block; font: 400 32px/1 var(--f-display); text-transform: uppercase; }
.mode small { display: block; font: 700 12px var(--f-mono); text-transform: uppercase; letter-spacing: 1px; margin: 2px 0 8px; color: var(--ink-soft); }
.mode span { font-size: 15px; line-height: 1.4; display: block; }
.mode:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.mode[aria-checked="true"] { background: var(--yellow); transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.mode[aria-disabled="true"] { opacity: .55; }
.cats { display: flex; flex-wrap: wrap; gap: 10px; }
.cat { min-height: 44px; padding: 0 16px; background: transparent; color: var(--paper); border: 2px solid var(--paper); border-radius: 999px; font-weight: 800; }
.cat small { font-weight: 400; opacity: .75; margin-left: 6px; }
.cat[aria-checked="true"] { background: var(--paper); color: var(--ink); }
.start-row { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 30px; }
.start-note { font: 400 24px/1.1 var(--f-hand); color: var(--yellow); margin: 0; max-width: 300px; }

/* ---------- kitchen ---------- */
.kitchen-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; margin-bottom: 20px; }
.kitchen-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 20px; }
.dish {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: var(--bw) solid var(--ink); box-shadow: var(--shadow); padding: 14px;
}
.dish-img { position: relative; aspect-ratio: 1; margin: -4px -4px 8px; background: var(--paper-2); border: 2px solid var(--ink); display: grid; place-items: center; overflow: hidden; }
.dish-img img { width: 92%; filter: drop-shadow(3px 4px 0 rgba(22,19,14,.25)); transition: transform .3s; }
.dish:hover .dish-img img { transform: rotate(-6deg) scale(1.05); }
.dish.locked .dish-img img { filter: brightness(0) opacity(.18); }
.dish.locked h3::after { content: " ???"; }
.rarity { position: absolute; top: 8px; left: 8px; font: 700 11px var(--f-mono); text-transform: uppercase; letter-spacing: 1px; padding: 3px 8px; border: 2px solid var(--ink); background: var(--card); }
.r-rare { background: var(--blue); color: #fff; }
.r-epic { background: var(--red); color: #fff; }
.r-legendary { background: var(--yellow); }
.qty { position: absolute; top: 8px; right: 8px; min-width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--paper); font: 700 15px var(--f-mono); padding: 0 6px; }
.dish h3 { font: 400 26px/1 var(--f-display); text-transform: uppercase; margin: 4px 0 4px; }
.dish p { font-size: 14px; margin: 0 0 10px; color: var(--ink-soft); min-height: 2.8em; }
.price-row { display: flex; align-items: baseline; justify-content: space-between; font: 700 14px var(--f-mono); margin-bottom: 10px; }
.trend-up { color: var(--green); }
.trend-down { color: var(--red); }
.dish-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
.dish-actions .btn { min-height: 40px; padding: 0 8px; font-size: 12px; box-shadow: 3px 3px 0 var(--ink); }
.kitchen-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 30px; font-size: 18px; }
.kitchen-foot b { font-family: var(--f-mono); }

/* ---------- Makan Trip unlock card ---------- */
.trip-card { display: flex; align-items: center; gap: 18px; margin-top: 30px; padding: 18px 22px; background: var(--ink); color: var(--paper); border: var(--bw) solid var(--ink); box-shadow: 6px 6px 0 var(--red); text-decoration: none; transition: transform .08s, box-shadow .08s; }
.trip-card:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--red); }
.trip-card b { display: block; font: 400 40px/1 var(--f-display); text-transform: uppercase; color: var(--yellow); }
.trip-copy span { font-size: 15px; opacity: .85; }
.trip-badge { flex: none; font: 700 12px var(--f-mono); text-transform: uppercase; letter-spacing: 1px; padding: 4px 10px; background: var(--yellow); color: var(--ink); border: 2px solid var(--paper); transform: rotate(-4deg); }
.trip-go { margin-left: auto; font: 400 44px/1 var(--f-display); color: var(--yellow); }
.trip-card.locked { background: var(--paper-2); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); cursor: not-allowed; }
.trip-card.locked b { color: var(--ink-soft); }
.trip-card.locked .trip-badge { background: var(--card); border-color: var(--ink); }
.trip-card.locked .trip-go { color: var(--ink-soft); }

/* ---------- shop ---------- */
.shop { display: grid; gap: 12px; }
.hint-card { display: grid; grid-template-columns: 58px 1fr auto; gap: 14px; align-items: center; background: var(--card); border: var(--bw) solid var(--ink); box-shadow: var(--shadow); padding: 12px 14px; }
.hint-badge { width: 58px; height: 58px; display: grid; place-items: center; background: var(--ink); color: var(--yellow); font: 400 20px/1 var(--f-display); text-align: center; }
.hint-card b { font: 400 26px/1 var(--f-display); text-transform: uppercase; }
.hint-card small { font: 700 11px var(--f-mono); text-transform: uppercase; letter-spacing: 1px; color: var(--ink-soft); margin-left: 6px; }
.hint-card p { margin: 2px 0 0; font-size: 14px; color: var(--ink-soft); }
.hint-buy { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.owned { font: 700 13px var(--f-mono); }

/* ---------- records ---------- */
.records { display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px; align-items: start; margin-bottom: 32px; }
.best { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.best-card { background: var(--card); border: var(--bw) solid var(--ink); box-shadow: var(--shadow); padding: 14px 16px; }
.best-card small { font: 700 12px var(--f-mono); text-transform: uppercase; letter-spacing: 1px; color: var(--ink-soft); }
.best-card b { display: block; font: 400 44px/1 var(--f-display); margin-top: 6px; }
.best-card span { font-size: 13px; color: var(--ink-soft); }
.runs-wrap .sub-h { margin-top: 0; }
.runs { width: 100%; border-collapse: collapse; background: var(--card); border: var(--bw) solid var(--ink); font-size: 15px; }
.runs th, .runs td { text-align: left; padding: 10px 12px; border-bottom: 2px solid var(--ink); }
.runs th { background: var(--ink); color: var(--paper); font: 700 12px var(--f-mono); text-transform: uppercase; letter-spacing: 1px; }
.runs td:nth-child(3), .runs td:nth-child(4) { font-family: var(--f-mono); }
.runs .empty { text-align: center; color: var(--ink-soft); font-family: var(--f-hand); font-size: 24px; }

/* ---------- footer ---------- */
.foot { padding: 70px clamp(16px, 5vw, 80px) 50px; background: var(--ink); color: var(--paper); }
.foot-big { font: 400 clamp(44px, 7vw, 96px)/.9 var(--f-display); text-transform: uppercase; margin: 0 0 18px; color: var(--yellow); }
.foot a { color: var(--yellow); }

/* =========================================================
   game dialog
   ========================================================= */
.game { position: fixed; inset: 0; z-index: 100; background: var(--paper); background-image: radial-gradient(rgba(22,19,14,.07) 1px, transparent 1px); background-size: 5px 5px; overflow-y: auto; }
.game[hidden] { display: none; }
.game-inner { max-width: 880px; margin: 0 auto; padding: 16px 16px 40px; min-height: 100%; display: flex; flex-direction: column; }
.g-top { display: flex; align-items: center; gap: 14px; padding: 8px 0 18px; border-bottom: var(--bw) solid var(--ink); flex-wrap: wrap; }
.g-quit { width: 44px; height: 44px; border: var(--bw) solid var(--ink); background: var(--card); font-size: 18px; font-weight: 800; box-shadow: 3px 3px 0 var(--ink); }
.g-mode { font: 400 28px/1 var(--f-display); text-transform: uppercase; }
.g-progress { display: flex; gap: 6px; flex: 1; min-width: 120px; }
.g-progress i { flex: 1; height: 14px; border: 2px solid var(--ink); background: var(--card); }
.g-progress i.ok { background: var(--green); }
.g-progress i.no { background: var(--red); }
.g-progress i.now { background: var(--yellow); }
.g-progress .count { flex: none; font: 700 15px var(--f-mono); align-self: center; font-style: normal; border: 0; background: none; height: auto; }
.g-timer { font: 700 24px var(--f-mono); padding: 4px 12px; background: var(--ink); color: var(--paper); min-width: 128px; text-align: center; }
.g-timer.frozen { background: var(--blue); }
.g-timer.low { background: var(--red); animation: blink .5s steps(2) infinite; }
@keyframes blink { 50% { opacity: .6; } }

.g-play { padding-top: 28px; flex: 1; display: flex; flex-direction: column; }
.g-cat { font: 400 26px var(--f-hand); color: var(--red); margin: 0 0 6px; transform: rotate(-2deg); display: inline-block; }
.g-q { font-size: clamp(34px, 5vw, 60px); line-height: 1; margin-bottom: 26px; text-transform: none; }
.g-options { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.opt {
  position: relative; display: flex; align-items: center; gap: 14px;
  min-height: 72px; padding: 12px 16px; text-align: left;
  background: var(--card); border: var(--bw) solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow);
  font-weight: 700; font-size: 18px; overflow: hidden;
  transition: transform .08s, box-shadow .08s;
}
.opt kbd { flex: none; width: 34px; height: 34px; display: grid; place-items: center; background: var(--ink); color: var(--paper); font: 700 15px var(--f-mono); }
.opt:hover:not(:disabled) { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.opt:disabled { cursor: default; }
.opt.right { background: var(--green); color: #fff; }
.opt.right kbd { background: #fff; color: var(--green); }
.opt.wrong { background: var(--red); color: #fff; animation: shake .35s; }
.opt.gone { opacity: .3; text-decoration: line-through; text-decoration-thickness: 3px; }
@keyframes shake { 25% { transform: translateX(-7px); } 75% { transform: translateX(7px); } }
.poll { position: absolute; left: 0; bottom: 0; height: 6px; background: var(--blue); transition: width .7s; }
.poll-label { margin-left: auto; font: 700 14px var(--f-mono); color: var(--blue); }
.opt.right .poll-label, .opt.wrong .poll-label { color: #fff; }
.g-clue { margin: 20px 0 0; padding: 12px 16px; background: var(--yellow); border: var(--bw) solid var(--ink); font-weight: 600; }
.g-clue::before { content: "Clue: "; font-weight: 800; }
.g-feedback { min-height: 3.2em; margin: 18px 0 0; font-size: 17px; }
.g-feedback b { font: 400 30px var(--f-hand); margin-right: 6px; }
.g-feedback .yes { color: var(--green); }
.g-feedback .nope { color: var(--red); }
.g-hints { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 22px; border-top: 2px dashed var(--ink); }
.hint-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 14px; border: var(--bw) solid var(--ink); background: var(--card); box-shadow: 3px 3px 0 var(--ink); font-weight: 800; font-size: 14px; }
.hint-btn .tag { font: 700 12px var(--f-mono); padding: 2px 6px; background: var(--ink); color: var(--paper); }
.hint-btn .tag.buy { background: var(--yellow); color: var(--ink); }
.hint-btn:active:not(:disabled) { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.hint-btn:disabled { opacity: .4; cursor: not-allowed; }

/* result */
.g-result { padding-top: 28px; text-align: center; }
.res-score { font: 400 clamp(90px, 16vw, 180px)/.85 var(--f-display); }
.res-verdict { font: 400 36px var(--f-hand); color: var(--red); margin: 6px 0 20px; transform: rotate(-2deg); }
.res-stats { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.res-stats span { font: 700 15px var(--f-mono); padding: 6px 12px; border: 2px solid var(--ink); background: var(--card); }
.res-stats .pb { background: var(--yellow); }
.rewards { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin-bottom: 30px; perspective: 900px; }
.reward { width: 200px; height: 260px; position: relative; transform-style: preserve-3d; animation: flip 1s cubic-bezier(.3,1.4,.5,1) both; }
.reward:nth-child(2) { animation-delay: .25s; }
.reward:nth-child(3) { animation-delay: .5s; }
@keyframes flip { from { transform: rotateY(180deg) scale(.7); } to { transform: rotateY(0) scale(1); } }
.reward > div { position: absolute; inset: 0; backface-visibility: hidden; border: var(--bw) solid var(--ink); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px; background: var(--card); }
.reward .back { transform: rotateY(180deg); background: var(--red); color: #fff; font: 400 90px var(--f-display); }
.reward img { width: 150px; }
.reward b { font: 400 28px/1 var(--f-display); text-transform: uppercase; margin-top: 4px; }
.reward .rarity { position: static; margin-top: 8px; }
.no-reward { font: 400 30px var(--f-hand); margin-bottom: 30px; }
.res-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ---------- toasts ---------- */
.toasts { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 150; display: flex; flex-direction: column; gap: 10px; align-items: center; width: min(420px, calc(100vw - 32px)); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 14px; background: var(--card); border: var(--bw) solid var(--ink); box-shadow: var(--shadow); font-weight: 600; animation: tin .35s cubic-bezier(.3,1.5,.5,1); }
.toast img { width: 48px; height: 48px; }
.toast.out { animation: tout .25s forwards; }
@keyframes tin { from { transform: translateY(20px) rotate(-3deg); opacity: 0; } }
@keyframes tout { to { transform: translateY(20px); opacity: 0; } }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .bar-nav { display: none; }
  .hero, .sec-grid, .sec-grid-rev, .kitchen-head, .records { grid-template-columns: 1fr; }
  .prop-hero { height: 340px; }
  .prop-side { height: 300px; }
  .sec-grid-rev .prop-side { order: -1; }
  .prop-wide { height: 280px; }
  .scribble-hero { position: static; }
}
@media (max-width: 640px) {
  :root { --bar-h: 58px; }
  .brand { font-size: 28px; }
  .modes, .g-options, .best { grid-template-columns: 1fr; }
  .pill { font-size: 14px; padding: 3px 10px; }
  .hint-card { grid-template-columns: 46px 1fr; }
  .hint-badge { width: 46px; height: 46px; font-size: 16px; }
  .hint-buy { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .runs th:nth-child(2), .runs td:nth-child(2) { display: none; }
  .g-timer { font-size: 18px; min-width: 104px; }
  .g-mode { display: none; }
  .opt { min-height: 60px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
