:root {
  --ink: #2b2233;
  --cream: #fff6e5;
  --yellow: #ffd24a;
  --pink: #ffb3c7;
  --mint: #b8f0c8;
  --blue: #9fd5ff;
  --purple: #d6c8ff;
  --peach: #ffd2b0;
  --font: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-snap-type: y mandatory; }
body {
  margin: 0;
  background: #cfefff;
  color: var(--ink);
  font-family: var(--font);
  font-weight: 800;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
#c {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh;
  display: block;
  touch-action: pan-y;
  z-index: 0;
  outline: none;
}
main { position: relative; z-index: 2; pointer-events: none; }
section {
  min-height: 100vh; min-height: 100svh;
  scroll-snap-align: start; scroll-snap-stop: always;
  display: flex; align-items: safe center;
  padding: 96px max(16px, 5vw) 72px;
  position: relative;
}
#hero { }
.panel {
  pointer-events: auto;
  width: min(560px, 38vw);
}
.panel > * { pointer-events: auto; }
.panel.center { width: min(900px, 100%); margin: 0 auto; text-align: center; }
.panel.center .lede { margin-left: auto; margin-right: auto; }

/* Big outlined 3D text */
.big {
  margin: 14px 0 18px;
  font-family: var(--font);
  font-weight: 900;
  line-height: .95;
  letter-spacing: -.02em;
  color: #fff;
  -webkit-text-stroke: .085em var(--ink);
  paint-order: stroke fill;
  text-shadow:
    0 .02em 0 var(--ink), 0 .04em 0 var(--ink), 0 .06em 0 var(--ink),
    0 .08em 0 var(--ink), 0 .1em 0 var(--ink), 0 .16em .1em rgba(43,34,51,.25);
  user-select: none;
}
h1.big { font-size: clamp(44px, min(5.6vw, 10vh), 96px); }
.hero-panel { width: min(820px, 58vw); }
h2.big { font-size: clamp(36px, min(3.9vw, 7.6vh), 72px); }
h2.big.huge { font-size: clamp(56px, min(8vw, 14vh), 140px); }
.finale { align-items: flex-start; padding-top: 96px; }
.finale .lede { max-width: 640px; }
.big .w { display: inline-block; white-space: nowrap; }
.big .ch {
  display: inline-block;
  transform: translateY(60px) rotate(8deg) scale(.6);
  opacity: 0;
  transition: transform .7s cubic-bezier(.2,1.6,.4,1), opacity .4s;
  cursor: default;
}
section.on .big .ch { transform: none; opacity: 1; }
.big .ch.jump { animation: jump .55s cubic-bezier(.3,1.8,.5,1); }
@keyframes jump {
  0% { transform: none; }
  35% { transform: translateY(-.22em) rotate(-6deg) scale(1.08); }
  100% { transform: none; }
}

.pill {
  display: inline-block;
  padding: 8px 16px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  font-size: 15px; font-weight: 900;
  box-shadow: 0 4px 0 var(--ink);
}
.pill.blue { background: var(--blue); }
.pill.purple { background: var(--purple); }
.pill.pink { background: var(--pink); }
.pill.green { background: var(--mint); }
.pill.peach { background: var(--peach); }

.lede {
  max-width: 520px;
  font-size: clamp(16px, 1.25vw, 20px);
  line-height: 1.45;
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 20px;
  padding: 14px 18px;
  box-shadow: 0 5px 0 var(--ink);
  margin: 0 0 18px;
}
.panel > .pill, .panel > .lede, .panel > .card, .panel > .row, .panel > .chips {
  opacity: 0; transform: translateY(24px);
  transition: opacity .5s .25s, transform .6s .25s cubic-bezier(.2,1.4,.4,1);
}
section.on .panel > * { opacity: 1; transform: none; }

.row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hint {
  font-size: 15px; color: var(--ink);
  background: rgba(255,255,255,.75);
  border: 2px solid var(--ink);
  padding: 6px 12px; border-radius: 999px;
}

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 900 18px var(--font);
  color: var(--ink); text-decoration: none;
  background: var(--yellow);
  border: 3px solid var(--ink);
  border-radius: 18px;
  padding: 12px 20px;
  box-shadow: 0 6px 0 var(--ink);
  cursor: pointer;
  transition: transform .12s, box-shadow .12s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--ink); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--ink); }
.btn.store { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: 0 6px 0 #000; }
.btn.store svg { width: 28px; height: 28px; fill: #fff; }
.btn.store span { display: flex; flex-direction: column; line-height: 1; font-size: 22px; text-align: left; }
.btn.store small { font-size: 12px; font-weight: 800; opacity: .8; margin-bottom: 3px; }
.btn.store.xl { padding: 18px 30px; border-radius: 24px; margin-top: 8px; }
.btn.store.xl span { font-size: 30px; }
.btn.store.xl svg { width: 38px; height: 38px; }
.btn.small { padding: 8px 14px; font-size: 15px; border-radius: 14px; box-shadow: 0 4px 0 #000; }
.btn.mini { padding: 8px 14px; font-size: 15px; border-radius: 12px; box-shadow: 0 4px 0 var(--ink); }
.btn.ghost { background: #fff; }

.card {
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 22px;
  padding: 16px;
  box-shadow: 0 6px 0 var(--ink);
  max-width: 520px;
}
.card label { display: block; font-size: 15px; margin-bottom: 10px; font-weight: 900; }
.field { display: flex; gap: 8px; }
.field input {
  flex: 1; min-width: 0;
  font: 800 18px var(--font); color: var(--ink);
  border: 3px solid var(--ink); border-radius: 12px;
  padding: 8px 12px; background: var(--cream);
  outline: none;
}
.field input:focus { background: #fff; box-shadow: 0 0 0 4px var(--yellow); }
.tries { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tries button, .week button, .drinks button, .swatches button, .seg button {
  font: 800 13px var(--font); color: var(--ink);
  background: var(--cream); border: 2px solid var(--ink);
  border-radius: 999px; padding: 5px 10px; cursor: pointer;
}
.tries button:hover { background: var(--yellow); }
.letters { display: flex; flex-direction: column-reverse; gap: 8px; margin-top: 12px; }
.letter {
  display: flex; align-items: center; gap: 10px;
  background: var(--cream); border: 2px solid var(--ink); border-radius: 12px;
  padding: 8px 10px;
  animation: pop .5s cubic-bezier(.2,1.8,.4,1);
}
.letter img { width: 30px; image-rendering: pixelated; }
.letter b { flex: 1; font-size: 16px; }
.letter span { font-size: 12px; background: var(--blue); border: 2px solid var(--ink); border-radius: 999px; padding: 3px 8px; white-space: nowrap; }
@keyframes pop { from { transform: scale(.6) translateY(10px); opacity: 0; } }

.doodle canvas {
  width: 100%; aspect-ratio: 3 / 2;
  image-rendering: pixelated;
  background: var(--cream);
  border: 3px solid var(--ink); border-radius: 12px;
  touch-action: none; cursor: crosshair;
  display: block;
}
.tools { margin-top: 10px; gap: 8px; }
.swatches { display: flex; gap: 6px; flex: 1; }
.swatches button { width: 26px; height: 26px; padding: 0; }
.swatches button.on { box-shadow: 0 0 0 3px var(--yellow); transform: scale(1.12); }

.drinks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.drinks button { flex-direction: column; gap: 4px; font-size: 13px !important; padding: 8px 4px !important; }
.drinks button.on { background: var(--pink); box-shadow: 0 0 0 3px var(--yellow), 0 4px 0 var(--ink); }
.rounds { display: flex; gap: 8px; margin-bottom: 14px; }
.rounds button {
  flex: 1; font: 900 16px var(--font); color: var(--ink); cursor: pointer;
  background: var(--cream); border: 3px solid var(--ink); border-radius: 14px; padding: 8px;
  box-shadow: 0 4px 0 var(--ink);
}
.rounds button.on { background: var(--yellow); }
.cafe-run { display: flex; align-items: center; gap: 14px; }
.timer {
  flex: 1; display: flex; flex-direction: column;
  background: var(--ink); color: #fff; border-radius: 16px; padding: 8px 14px;
  border: 3px solid var(--ink);
}
.timer b { font: 900 40px/1 var(--font); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.timer span { font-size: 13px; opacity: .85; margin-top: 2px; }
.timer.focus b { color: var(--yellow); }
.timer.break b { color: var(--mint); }
.cafe-card button:disabled { opacity: .5; cursor: default; }
.drinks button {
  display: flex; align-items: center; gap: 10px;
  border-radius: 14px; padding: 10px; font-size: 16px; border-width: 3px;
  box-shadow: 0 4px 0 var(--ink); transition: transform .1s;
}
.drinks button:hover { background: var(--pink); }
.drinks button:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.drinks img { width: 36px; image-rendering: pixelated; }

.week { display: flex; gap: 8px; justify-content: space-between; }
.week button {
  width: 48px; height: 60px; border-radius: 14px; border-width: 3px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  font-size: 14px; box-shadow: 0 4px 0 var(--ink);
}
.week button i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; }
.week button.done { background: var(--mint); }
.week button.done i { background: #3fae63; }
.streak { margin-top: 14px; font-size: 18px; }
.streak b { font-size: 34px; }

.tray {
  display: flex; flex-wrap: wrap; gap: 6px; min-height: 64px;
  margin-top: 14px; padding: 10px;
  background: var(--peach); border: 3px dashed var(--ink); border-radius: 14px;
}
.tray img { width: 44px; image-rendering: pixelated; animation: pop .5s cubic-bezier(.2,1.8,.4,1); }
.note { margin: 10px 0 0; font-size: 15px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 auto 18px; max-width: 720px; }
.chips span {
  background: #fff; border: 3px solid var(--ink); border-radius: 999px;
  padding: 6px 14px; font-size: 15px; box-shadow: 0 3px 0 var(--ink);
}

/* Header + dock */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px max(16px, 3vw);
  pointer-events: none;
}
.top > * { pointer-events: auto; }
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink); font-size: 22px; font-weight: 900;
  background: #fff; border: 3px solid var(--ink); border-radius: 18px;
  padding: 5px 14px 5px 5px; box-shadow: 0 4px 0 var(--ink);
}
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.dock {
  position: fixed; right: max(16px, 3vw); bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 5;
  display: flex; gap: 10px; flex-wrap: wrap;
}
.seg {
  display: flex; gap: 4px; padding: 4px;
  background: #fff; border: 3px solid var(--ink); border-radius: 999px;
  box-shadow: 0 4px 0 var(--ink);
}
.seg button { border: 0; background: transparent; font-size: 14px; padding: 6px 12px; }
.seg button.on { background: var(--yellow); box-shadow: inset 0 0 0 2px var(--ink); }

.rail {
  position: fixed; right: max(16px, 2.4vw); top: 50%; transform: translateY(-50%);
  z-index: 5; display: flex; flex-direction: column; gap: 10px;
}
.rail button {
  width: 16px; height: 16px; padding: 0;
  border: 3px solid var(--ink); border-radius: 50%; background: #fff; cursor: pointer;
  transition: transform .2s;
}
.rail button.on { background: var(--yellow); transform: scale(1.35); }

/* Next stop button */
.next {
  position: fixed; left: 50%; bottom: 22px; z-index: 6;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font); color: var(--ink); text-align: left;
  background: #fff; border: 3px solid var(--ink); border-radius: 20px;
  padding: 8px 16px 8px 12px; cursor: pointer;
  box-shadow: 0 5px 0 var(--ink);
  transition: transform .25s cubic-bezier(.2,1.6,.4,1), box-shadow .15s, opacity .3s;
}
.next:hover { transform: translateX(-50%) translateY(-3px); box-shadow: 0 8px 0 var(--ink); }
.next:active { transform: translateX(-50%) translateY(3px); box-shadow: 0 2px 0 var(--ink); }
.next.pop { animation: nextPop .5s cubic-bezier(.2,1.8,.4,1); }
@keyframes nextPop { from { transform: translateX(-50%) scale(.7); opacity: 0; } }
.next img { width: 34px; height: 34px; object-fit: contain; image-rendering: pixelated; }
.next .txt { display: flex; flex-direction: column; line-height: 1.1; }
.next small { font-size: 12px; font-weight: 800; opacity: .7; }
.next b { font-size: 17px; font-weight: 900; white-space: nowrap; }
.next .mouse {
  width: 20px; height: 30px; border: 3px solid var(--ink); border-radius: 10px; position: relative; flex: none;
}
.next .mouse i {
  position: absolute; left: 50%; top: 5px; width: 4px; height: 6px; margin-left: -2px;
  background: var(--ink); border-radius: 2px; animation: wheel 1.4s infinite;
}
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(9px); opacity: 0; } 100% { opacity: 0; } }
.next .chev {
  width: 11px; height: 11px; margin: -6px 2px 0 4px; flex: none;
  border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink);
  transform: rotate(45deg); animation: chev 1.2s infinite;
}
@keyframes chev { 50% { translate: 0 4px; } }
.next.up .chev { transform: rotate(-135deg); margin-top: 6px; }
.next .swipe { display: none; }
.next.hide { opacity: 0; pointer-events: none; }

/* Speech bubbles over 3D */
#bubbles { position: fixed; inset: 0; pointer-events: none; z-index: 1; }
.bubble {
  position: absolute; left: 0; top: 0;
  background: #fff; border: 3px solid var(--ink); border-radius: 14px;
  padding: 7px 12px; font-size: 15px; font-weight: 900; white-space: nowrap;
  box-shadow: 0 4px 0 var(--ink);
  transform-origin: 50% 100%;
}
.bubble::after {
  content: ""; position: absolute; left: 50%; bottom: -10px; margin-left: -7px;
  width: 10px; height: 10px; background: #fff;
  border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink);
  transform: rotate(45deg);
}
.bubble .in { display: block; animation: pop .35s cubic-bezier(.2,1.8,.4,1); }

/* Click pixels */
.px {
  position: fixed; width: 8px; height: 8px; z-index: 9; pointer-events: none;
  border: 2px solid var(--ink);
}

/* Loader */
#loader {
  position: fixed; inset: 0; z-index: 20;
  background: #cfefff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  transition: opacity .6s, visibility .6s;
}
#loader img { width: 96px; image-rendering: pixelated; animation: hop .6s infinite alternate cubic-bezier(.3,0,.7,1); }
#loader p { font-size: 22px; margin: 0; }
#loader.done { opacity: 0; visibility: hidden; }
@keyframes hop { to { transform: translateY(-18px); } }

footer {
  position: absolute; bottom: 70px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 18px; font-size: 14px; pointer-events: auto;
}
footer a, footer span {
  color: var(--ink); background: rgba(255,255,255,.85); border: 2px solid var(--ink);
  border-radius: 999px; padding: 4px 12px; text-decoration: none;
}

/* Portrait / phone */
@media (max-width: 820px), (orientation: portrait) {
  .rail { display: none; }
  .panel, .hero-panel { width: 100%; }
}
@media (max-width: 820px) and (orientation: portrait), (max-width: 560px) {
  section {
    flex-direction: column; align-items: stretch;
    padding: calc(76px + env(safe-area-inset-top)) 16px calc(70px + env(safe-area-inset-bottom));
  }
  .panel { display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
  .panel.center { align-items: center; }
  /* title on top, card at the bottom, the town in between */
  .panel > .card { margin-top: auto; width: 100%; max-width: none; }
  section:not(#hero):not(.finale) .lede { display: none; }
  h1.big { font-size: 11.6vw; }
  h2.big { font-size: 10.4vw; }
  h2.big.huge { font-size: 16vw; }
  .big { margin: 10px 0 12px; }
  .pill { font-size: 13px; padding: 6px 12px; box-shadow: 0 3px 0 var(--ink); }
  .lede { font-size: 15px; padding: 10px 14px; margin-bottom: 12px; border-radius: 16px; }
  .card { padding: 12px; border-radius: 18px; }
  .card label { font-size: 13px; margin-bottom: 8px; }
  .hint { font-size: 13px; }
  .btn.store span { font-size: 19px; }
  .btn.store.xl span { font-size: 24px; }
  .btn.store.xl { padding: 14px 24px; }

  .field input { font-size: 16px; }
  .tries button:nth-child(3) { display: none; }
  .letters .letter:not(:last-child) { display: none; }
  .doodle canvas { aspect-ratio: 5 / 2; }
  .drinks { gap: 6px; margin-bottom: 10px; }
  .drinks img { width: 26px; }
  .drinks button { font-size: 11px !important; padding: 6px 2px !important; }
  .rounds { margin-bottom: 10px; }
  .rounds button { font-size: 14px; padding: 6px; }
  .timer b { font-size: 28px; }
  .timer span { font-size: 11px; }
  .cafe-run .btn { padding: 10px 14px; font-size: 15px; }
  .week { gap: 4px; }
  .week button { width: auto; flex: 1; height: 48px; font-size: 12px; }
  .streak { margin-top: 8px; font-size: 15px; }
  .streak b { font-size: 26px; }
  .tray { min-height: 52px; margin-top: 10px; padding: 6px; }
  .tray img { width: 34px; }
  .chips { gap: 6px; margin-bottom: 12px; }
  .chips span { font-size: 12px; padding: 4px 10px; border-width: 2px; }

  .top { padding: calc(10px + env(safe-area-inset-top)) 16px 10px; }
  .brand span { display: none; }
  .brand { padding: 4px; border-radius: 16px; }
  .dock { right: auto; left: 50%; transform: translateX(-50%); bottom: calc(12px + env(safe-area-inset-bottom)); gap: 6px; flex-wrap: nowrap; }
  .seg { padding: 3px; gap: 2px; }
  .seg button { font-size: 12px; padding: 5px 8px; }

  .next { bottom: calc(70px + env(safe-area-inset-bottom)); padding: 6px 12px 6px 10px; gap: 8px; border-radius: 16px; }
  .next .mouse { display: none; }
  .next .swipe { display: block; position: relative; width: 14px; height: 22px; }
  .next .swipe i {
    position: absolute; left: 1px; width: 10px; height: 10px;
    border-left: 3px solid var(--ink); border-top: 3px solid var(--ink); transform: rotate(45deg);
    animation: swipeUp 1.2s infinite;
  }
  .next .swipe i:nth-child(2) { animation-delay: .25s; }
  @keyframes swipeUp { 0% { top: 12px; opacity: 0; } 40% { opacity: 1; } 100% { top: 0; opacity: 0; } }
  .next .chev { display: none; }
  .next img { width: 26px; height: 26px; }
  .next b { font-size: 15px; }
  .next small { font-size: 11px; }
  /* on phones, only the welcome screen needs the hint */
  .next.inner { opacity: 0; pointer-events: none; }

  footer { position: static; margin-top: 14px; gap: 8px; flex-wrap: wrap; }
  .finale .panel { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .big .ch { transition: none; }
  html { scroll-behavior: auto; }
}

.panel.center p.hint { display: table; margin: 18px auto 0; }

/* Calm hero: title, one line, one button */
.hero-panel .lede {
  background: none; border: 0; box-shadow: none; padding: 0;
  font-size: clamp(18px, 1.7vw, 26px); line-height: 1.35; max-width: 460px;
  margin: 4px 0 26px;
  text-shadow: 0 2px 0 rgba(255,255,255,.7);
}
.hero-panel .big { margin-bottom: 20px; }
.hero-panel .row { gap: 18px; }
.hero-panel .hint {
  background: none; border: 0; padding: 0; font-size: 15px; opacity: .7;
  text-shadow: 0 2px 0 rgba(255,255,255,.7);
}
.hero-panel .hint::before { content: "\2726  "; }

@media (max-width: 820px) and (orientation: portrait), (max-width: 560px) {
  .hero-panel .lede { font-size: 17px; margin-bottom: 18px; }
  .hero-panel .row { gap: 12px; }
  .hero-panel .hint { font-size: 13px; }

  /* Mo: small pad, one row of tools */
  .doodle canvas { aspect-ratio: 3 / 1; }
  .doodle .tools { flex-wrap: nowrap; gap: 6px; }
  .doodle .swatches { gap: 4px; }
  .doodle .swatches button { width: 22px; height: 22px; }
  .doodle .btn.mini { padding: 6px 10px; font-size: 13px; white-space: nowrap; box-shadow: 0 3px 0 var(--ink); }

  /* Bea: compact order card */
  .cafe-card label { display: none; }
  .drinks { margin-bottom: 8px; }
  .drinks button { padding: 4px 2px !important; gap: 2px; border-width: 2px; box-shadow: 0 3px 0 var(--ink); border-radius: 12px; }
  .drinks img { width: 22px; }
  .rounds { margin-bottom: 8px; gap: 6px; }
  .rounds button { font-size: 13px; padding: 4px; border-width: 2px; box-shadow: 0 3px 0 var(--ink); border-radius: 12px; }
  .cafe-run { gap: 8px; }
  .timer { padding: 6px 12px; border-radius: 14px; }
  .timer b { font-size: 24px; }
  .timer span { font-size: 10px; }
  .cafe-run .btn { padding: 8px 12px; font-size: 14px; border-radius: 14px; box-shadow: 0 4px 0 var(--ink); }
}

/* Calm finale: title, one line, one button */
.finale .lede {
  background: none; border: 0; box-shadow: none; padding: 0;
  color: #fff; font-size: clamp(18px, 1.7vw, 26px); margin: 0 auto 28px;
  text-shadow: 0 2px 0 var(--ink);
}

/* FAQ */
.faq { align-items: flex-start; padding-top: 96px; }
.faq .big { font-size: clamp(40px, min(5vw, 9vh), 88px); }
.faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 720px; margin: 0 auto 24px; text-align: left; }
.qa {
  background: #fff; border: 3px solid var(--ink); border-radius: 18px;
  box-shadow: 0 4px 0 var(--ink); overflow: hidden;
}
.qa summary {
  list-style: none; cursor: pointer; padding: 14px 52px 14px 18px; position: relative;
  font-size: 18px; font-weight: 900;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "+"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--ink);
  background: var(--yellow); display: grid; place-items: center; font-size: 20px; line-height: 1;
  transition: transform .25s;
}
.qa[open] summary::after { content: "\2013"; background: var(--pink); }
.qa p { margin: 0; padding: 0 18px 16px; font-size: 16px; line-height: 1.5; font-weight: 700; color: #4a3f55; }
.faq footer { position: static; margin-top: 22px; }
.faq .panel > * { opacity: 1; transform: none; }
@media (max-width: 820px) and (orientation: portrait), (max-width: 560px) {
  .faq .big { font-size: 11vw; }
  .qa summary { font-size: 15px; padding: 12px 46px 12px 14px; }
  .qa summary::after { width: 24px; height: 24px; font-size: 17px; right: 10px; }
  .qa p { font-size: 14px; padding: 0 14px 12px; }
  .faq-list { gap: 8px; margin-bottom: 16px; }
  .faq .panel { flex: none; }
}

/* Short laptop windows: keep everything on one screen */
@media (min-width: 821px) and (max-height: 920px) {
  section { padding-top: 88px; padding-bottom: 64px; }
  section:not(#hero):not(.finale):not(.faq) .lede { display: none; }
  .pill { font-size: 13px; padding: 6px 12px; box-shadow: 0 3px 0 var(--ink); }
  .big { margin: 8px 0 12px; }
  .card { padding: 12px; }
  .card label { font-size: 13px; margin-bottom: 6px; }
  .doodle canvas { aspect-ratio: 3 / 1; }
  .doodle .tools { flex-wrap: nowrap; gap: 6px; }
  .doodle .swatches button { width: 22px; height: 22px; }
  .cafe-card label { display: none; }
  .drinks { margin-bottom: 8px; }
  .drinks img { width: 24px; }
  .drinks button { font-size: 12px !important; padding: 4px 2px !important; }
  .rounds { margin-bottom: 8px; }
  .rounds button { font-size: 14px; padding: 5px; }
  .timer b { font-size: 26px; }
  .week button { height: 48px; }
  .tray { min-height: 50px; }
  .tries button:nth-child(3) { display: none; }
  .letters .letter:not(:last-child) { display: none; }
  .next { bottom: 14px; padding: 6px 14px 6px 10px; }
}

/* Desktop: compact building cards so the town stays the star */
@media (min-width: 821px) {
  .doodle canvas { aspect-ratio: 5 / 2; }
  .doodle .tools { flex-wrap: nowrap; gap: 6px; }
  .doodle .swatches button { width: 22px; height: 22px; }
  .doodle .btn.mini { white-space: nowrap; }
  .card { max-width: 460px; }
  .lede { max-width: 460px; }
}
