/* ============ Fonts (self-hosted) ============ */
@font-face { font-family: "Forum"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("assets/fonts/forum-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Forum"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("assets/fonts/forum-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Alegreya Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("assets/fonts/alegreya-sans-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Alegreya Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("assets/fonts/alegreya-sans-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Alegreya Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("assets/fonts/alegreya-sans-400-greek.woff2") format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: "Alegreya Sans"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("assets/fonts/alegreya-sans-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Alegreya Sans"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("assets/fonts/alegreya-sans-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Alegreya Sans"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("assets/fonts/alegreya-sans-700-greek.woff2") format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }

/* ============ World tokens ============ */
:root {
  --ground: #1E1B18;          /* black river pebble */
  --stone: #28241F;           /* tablet stone */
  --stone-2: #322D27;
  --lead: #4A4640;            /* lead strips between figures */
  --white: #EFE6D2;           /* white pebble */
  --ochre: #C9A15B;
  --red: #A4442B;
  --olive: #5E6B4E;
  --muted: #BDB3A1;           /* 8.3:1 on ground */
  --fire: #FF6A2B;            /* the one live accent */
  --fire-2: #FFB23A;

  --font-display: "Forum", "Times New Roman", serif;
  --font-text: "Alegreya Sans", "Gill Sans", "Trebuchet MS", sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-settle: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
  --top-h: 68px;

  /* the floor: dark river pebbles, drawn as one tile */
  --floor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Crect width='72' height='72' fill='%231E1B18'/%3E%3Cg fill='%232C2721'%3E%3Cellipse cx='9' cy='8' rx='6' ry='4.5' transform='rotate(20 9 8)'/%3E%3Cellipse cx='28' cy='12' rx='5' ry='4'/%3E%3Cellipse cx='50' cy='7' rx='6.5' ry='4' transform='rotate(-15 50 7)'/%3E%3Cellipse cx='64' cy='22' rx='4.5' ry='5.5'/%3E%3Cellipse cx='15' cy='29' rx='5.5' ry='4' transform='rotate(35 15 29)'/%3E%3Cellipse cx='39' cy='31' rx='6' ry='5'/%3E%3Cellipse cx='58' cy='42' rx='5' ry='4' transform='rotate(-30 58 42)'/%3E%3Cellipse cx='7' cy='50' rx='4.5' ry='5'/%3E%3Cellipse cx='26' cy='52' rx='6' ry='4.5' transform='rotate(10 26 52)'/%3E%3Cellipse cx='45' cy='58' rx='5' ry='4'/%3E%3Cellipse cx='65' cy='63' rx='5.5' ry='4' transform='rotate(25 65 63)'/%3E%3Cellipse cx='14' cy='67' rx='5' ry='3.5'/%3E%3C/g%3E%3Cg fill='%23141210'%3E%3Cellipse cx='19' cy='18' rx='2.5' ry='2'/%3E%3Cellipse cx='40' cy='20' rx='3' ry='2'/%3E%3Cellipse cx='27' cy='40' rx='2.5' ry='2'/%3E%3Cellipse cx='52' cy='28' rx='2' ry='2.5'/%3E%3Cellipse cx='36' cy='66' rx='3' ry='2'/%3E%3Cellipse cx='57' cy='52' rx='2' ry='1.8'/%3E%3C/g%3E%3C/svg%3E");
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--top-h) + 8px);
  background: var(--ground);
  scrollbar-color: var(--lead) var(--ground);
}
body {
  margin: 0;
  background: var(--floor) var(--ground);
  color: var(--white);
  font: 400 17px/1.55 var(--font-text);
  font-variant-numeric: lining-nums;
  caret-color: var(--ochre);
}
::selection { background: var(--ochre); color: var(--ground); }
img, svg { display: block; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
a { color: inherit; }
button { font: inherit; color: inherit; }
button, a, [role="button"], label { touch-action: manipulation; }
button, [role="button"] { user-select: none; -webkit-user-select: none; }
:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; border-radius: 6px; }
.num { font-variant-numeric: tabular-nums lining-nums; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
[hidden] { display: none !important; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--white); color: var(--ground); padding: 10px 16px; border-radius: 8px;
  font-weight: 700; text-decoration: none; transition: top .2s var(--ease-out);
}
.skip:focus { top: 12px; }

/* ============ Type ============ */
.display {
  font-family: var(--font-display);
  font-size: clamp(40px, 4.4vw, 64px);
  line-height: 1.02;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
}
.display--h2 { font-size: clamp(34px, 3.4vw, 50px); }
.carved { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; }
.carved__name { display: block; font-size: clamp(56px, 5.6vw, 82px); line-height: 0.92; letter-spacing: 0.05em; color: var(--white); }
.carved__line { display: block; margin-top: 14px; font-size: clamp(21px, 1.8vw, 26px); line-height: 1.18; letter-spacing: 0.06em; color: var(--ochre); max-width: 19ch; }
.arr { width: 16px; height: 16px; display: inline-block; flex: none; transition: transform .25s var(--ease-out); }
.lead { color: var(--muted); font-size: 18px; line-height: 1.5; max-width: 34ch; margin-top: 16px; }

/* ============ Header ============ */
.top {
  position: sticky; top: 0; z-index: 30;
  height: var(--top-h);
  background: rgba(30, 27, 24, 0.96);
  border-bottom: 1px solid #2c2823;
  padding-top: env(safe-area-inset-top, 0px);
  box-sizing: content-box;
}
.top__row { height: var(--top-h); display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.brand__mark { width: 36px; height: 36px; }
.brand__word { font-family: var(--font-display); font-size: 27px; letter-spacing: 0.14em; text-transform: uppercase; }
.brand__sub { font-size: 13px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ochre); margin-top: 4px; }
.top__nav { display: flex; gap: 4px; }
.top__nav a {
  text-decoration: none; padding: 10px 14px; min-height: 44px; display: inline-flex; align-items: center;
  color: var(--muted); font-size: 16px; position: relative;
}
.top__nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 8px; height: 2px;
  background: var(--ochre); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .top__nav a:hover { color: var(--white); }
  .top__nav a:hover::after { transform: scaleX(1); }
}

/* ============ Stage (the builder) ============ */
.stage { position: relative; }
.stage__grid {
  display: grid;
  grid-template-columns: minmax(300px, 370px) minmax(0, 1fr) minmax(260px, 300px);
  gap: clamp(24px, 3vw, 48px);
  align-items: center;
  min-height: calc(100svh - var(--top-h));
  padding-block: 28px 36px;
}
.stage__emblema { display: grid; place-items: center; min-width: 0; }
.done-note { display: none; }
.emblema {
  width: min(100%, calc(100svh - var(--top-h) - 72px), 660px);
  aspect-ratio: 1;
  overflow: visible;
  touch-action: manipulation;
}

/* ---- trays ---- */
.trays { margin-top: 30px; }
.trays__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.trays__title { font-family: var(--font-text); font-weight: 700; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ochre); }
.trays__hint { font-size: 15px; color: var(--muted); text-align: right; }
.sample { display: block; font-size: 14px; color: var(--muted); font-weight: 400; letter-spacing: 0; text-transform: none; margin-top: 2px; }
.hint-mouse { display: none; }
@media (hover: hover) and (pointer: fine) {
  .hint-touch { display: none; }
  .hint-mouse { display: inline; }
}
.trays__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tile {
  width: 100%; display: grid; grid-template-columns: 46px 1fr; align-items: center; gap: 10px;
  min-height: 62px; padding: 7px 10px 7px 7px; text-align: left;
  background: var(--stone); border: 2px dotted rgba(239, 230, 210, 0.3); border-radius: 12px; cursor: pointer;
  position: relative;
  transition: transform .1s var(--ease-out), border-color .18s var(--ease-out), background-color .18s var(--ease-out);
}
.tile__icon { width: 46px; height: 46px; border-radius: 9px; background: var(--ground); overflow: visible; }
.tile__name { display: block; font-size: 16px; line-height: 1.2; font-weight: 700; }
.tile__price { display: block; font-size: 15px; color: var(--muted); margin-top: 1px; }
.tile__check {
  position: absolute; top: 2px; left: 41px; width: 18px; height: 18px; border-radius: 50%;
  border: 2px dotted #6c655b; background: var(--stone); display: grid; place-items: center;
  transition: background-color .18s var(--ease-out), border-color .18s var(--ease-out);
}
.tile__check svg { width: 10px; height: 10px; opacity: 0; transform: scale(.6); transition: opacity .15s var(--ease-out), transform .2s var(--ease-settle); }
.tile[aria-pressed="true"] { border: 2px solid var(--ochre); background: #2F2A22; }
.tile[aria-pressed="true"] .tile__check { background: var(--ochre); border: 2px solid var(--ochre); }
.tile[aria-pressed="true"] .tile__check svg { opacity: 1; transform: none; }
.tile:active:not(:disabled) { transform: translateY(1px); }
.tile:disabled { cursor: not-allowed; opacity: .55; }
@media (hover: hover) and (pointer: fine) {
  .tile { cursor: grab; }
  .tile:hover:not(:disabled) { border-color: rgba(239, 230, 210, 0.7); background: #2D2924; }
  .tile[aria-pressed="true"]:hover:not(:disabled) { border-color: #DDB878; }
  .tile:active:not(:disabled) { cursor: grabbing; }
}

/* drag ghost */
.ghost {
  position: fixed; left: 0; top: 0; z-index: 60; width: 64px; height: 64px; pointer-events: none;
  filter: drop-shadow(0 10px 14px rgba(0,0,0,.45));
  will-change: transform;
}
.ghost svg { width: 100%; height: 100%; overflow: visible; }
body.is-dragging, body.is-dragging * { cursor: grabbing !important; }
.emblema.is-target .drop-ring { opacity: 1; }

/* ---- tablet ---- */
.tablet {
  background: var(--stone);
  border-radius: 16px;
  padding: 22px 22px 20px;
  border: 3px dotted rgba(239, 230, 210, 0.55);
  box-shadow: 0 0 0 6px var(--stone), 0 18px 40px -18px rgba(0,0,0,.7);
  align-self: center;
}
.tablet__title { font-family: var(--font-display); font-size: 28px; line-height: 1.05; text-transform: uppercase; letter-spacing: 0.05em; }
.tablet__title:focus { outline: none; }
.ticket { list-style: none; margin: 14px 0 0; padding: 0; }
.ticket li {
  display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; line-height: 1.35;
  border-bottom: 1px solid var(--lead); font-size: 16px;
}
.ticket li .num { color: var(--muted); }
.ticket .ticket__base small { display: block; color: var(--muted); font-size: 14px; }
.ticket .ticket__empty { color: var(--muted); font-style: normal; border-bottom-style: dashed; }
.mode { border: 0; margin: 14px 0 0; padding: 0; }
.mode legend { font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ochre); margin-bottom: 6px; padding: 0; }
.mode__opt {
  display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 8px;
  min-height: 44px; cursor: pointer; font-size: 16px; line-height: 1.2;
}
.mode__opt .num { color: var(--muted); }
.mode input { appearance: none; width: 18px; height: 18px; margin: 0; border-radius: 50%; border: 2px solid #8a8174; display: grid; place-items: center; cursor: pointer; }
.mode input::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--white); transform: scale(0); transition: transform .18s var(--ease-settle); }
.mode input:checked { border-color: var(--ochre); }
.mode input:checked::after { transform: scale(1); }
.total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; padding-top: 12px; border-top: 2px solid var(--white); }
.total span:first-child { font-family: var(--font-display); font-size: 22px; text-transform: uppercase; letter-spacing: 0.05em; }
.total output, .total .num { font-size: 26px; font-weight: 700; }
.fine { font-size: 14px; color: var(--muted); margin-top: 12px; line-height: 1.4; }
.tablet__go { width: 100%; margin-top: 16px; }
.countdown { font-family: var(--font-display); font-size: 120px; line-height: 1; color: var(--fire-2); margin-top: 10px; }
.done__text { color: var(--muted); margin-top: 12px; font-size: 17px; }
.total--done { margin-top: 18px; }
.total--done span:first-child { font-size: 18px; white-space: nowrap; }
.tablet .btn--stone { width: 100%; margin-top: 18px; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; padding: 12px 22px; border-radius: 14px; cursor: pointer;
  border: 3px dotted rgba(239, 230, 210, 0.75); background-clip: padding-box;
  font: 700 18px/1.1 var(--font-text); text-decoration: none;
  transition: transform .1s var(--ease-out), background-color .18s var(--ease-out), border-color .18s var(--ease-out);
}
.btn--fire { background-color: var(--fire); color: #1E1B18; box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .65); }
.btn--stone { background-color: var(--stone-2); color: var(--white); border-color: rgba(201, 161, 91, 0.9); }
.btn:active:not(:disabled) { transform: translateY(1px); box-shadow: 0 4px 10px -6px rgba(0, 0, 0, .65); }
.btn:disabled { cursor: not-allowed; background-color: #4a4038; color: #a99e8e; box-shadow: none; border-color: rgba(239, 230, 210, 0.25); }
@media (hover: hover) and (pointer: fine) {
  .btn--fire:hover:not(:disabled) { background-color: #FF7E45; border-color: var(--white); }
  .btn--stone:hover { background-color: #3a342d; border-color: var(--ochre); }
}

/* ---- thumb bar (phones) ---- */
.thumbbar { display: none; }

/* ============ Emblema internals ============ */
.emblema text { font-family: var(--font-display); }
.sauce { transition: r .4s var(--ease-out); }
.inscription { font-size: 19px; letter-spacing: 0.32em; fill: var(--white); }
.drop-ring { opacity: 0; transition: opacity .2s var(--ease-out); }
.layer-baked { opacity: 0; }
.fire-breath { transform-box: fill-box; transform-origin: 0% 50%; transform: scaleX(0); opacity: 0; }
.glow { opacity: 0; mix-blend-mode: screen; pointer-events: none; }
.jaw { transform-box: fill-box; transform-origin: 4% 20%; transition: transform .28s var(--ease-out); }
.emblema.is-open .jaw { transform: rotate(16deg); }
.piece-in { transform-box: fill-box; transform-origin: 50% 50%; }

/* ============ Band: a running Greek key in white pebbles ============ */
.band {
  height: 44px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='88' viewBox='0 0 80 88'%3E%3Cpath d='M0 80H56V16H16V56H40V32H32V48H24V24H48V64H8V8H64V80H80' fill='none' stroke='%23EFE6D2' stroke-width='4.6' stroke-linecap='round' stroke-linejoin='round' stroke-dasharray='0.1 7.4'/%3E%3C/svg%3E") repeat-x left center / 40px 44px;
  opacity: .85;
  width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto;
}

/* ============ Carta ============ */
.carta, .dragon { padding-block: clamp(72px, 10vw, 128px); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 48px; }
.section-head__line { color: var(--muted); max-width: 42ch; font-size: 18px; }
.menu { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 72px); }
.dish {
  display: grid; grid-template-columns: 128px 1fr; gap: 24px; align-items: center;
  padding: 20px 0; border-bottom: 1px solid var(--lead);
}
.dish__disc { width: 128px; height: 128px; }
.dish__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.dish__name { font-family: var(--font-display); font-size: 26px; line-height: 1.1; text-transform: uppercase; letter-spacing: 0.05em; }
.dish__price { font-size: 18px; font-weight: 700; }
.dish__what { color: var(--muted); margin-top: 4px; font-size: 16px; }
.dish__go {
  margin-top: 8px; background: none; border: 0; padding: 10px 0; min-height: 44px; cursor: pointer;
  color: var(--ochre); font-weight: 700; font-size: 16px; display: inline-flex; align-items: center; gap: 6px;
}
@media (hover: hover) and (pointer: fine) {
  .dish__go:hover { color: var(--white); }
  .dish__go:hover .arr { transform: translateX(3px); }
  .dish:hover .dish__disc { transform: rotate(-6deg); }
}
.dish__disc { transition: transform .6s var(--ease-out); }

/* ============ Dragon ============ */
.dragon__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.dragon__panel { aspect-ratio: 1; max-width: 560px; width: 100%; justify-self: center; }
.dragon__art { width: 100%; height: 100%; overflow: visible; }
.dragon__text > p { max-width: 46ch; margin-top: 16px; font-size: 18px; color: #d8cfbe; }
.dragon__text i { font-style: normal; color: var(--white); font-weight: 700; }
.dragon__text > .greek { font-family: var(--font-text); font-weight: 700; font-size: clamp(44px, 5vw, 72px); line-height: 1; color: var(--ochre); margin-top: 18px !important; letter-spacing: 0.02em; }
.link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; min-height: 44px;
  color: var(--ochre); font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px;
}
@media (hover: hover) and (pointer: fine) {
  .link:hover { color: var(--white); }
  .link:hover .arr { transform: translateX(3px); }
}

/* ============ Footer ============ */
.foot { border-top: 1px solid #2c2823; padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px)); background: var(--ground); }
.foot__row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot__name { font-family: var(--font-display); font-size: 34px; letter-spacing: .14em; text-transform: uppercase; }
.foot__name span { font-family: var(--font-text); font-size: 14px; letter-spacing: .3em; color: var(--ochre); }
.foot__note { color: var(--muted); max-width: 52ch; font-size: 15px; }
.noscript { text-align: center; padding: 16px; background: var(--stone); }

/* ============ Responsive ============ */
@media (max-width: 1180px) {
  .stage__grid { grid-template-columns: minmax(280px, 340px) minmax(0, 1fr); grid-template-areas: "intro emblema" "intro tablet"; align-items: start; }
  .stage__intro { grid-area: intro; }
  .stage__emblema { grid-area: emblema; }
  .tablet { grid-area: tablet; width: min(100%, 420px); justify-self: center; }
  .emblema { width: min(100%, 560px); }
}

@media (max-width: 820px) {
  :root { --top-h: 58px; }
  body { font-size: 16px; }
  .brand__word { font-size: 23px; }
  .top__nav a { padding: 10px 9px; font-size: 15px; }
  .top__nav a::after { left: 9px; right: 9px; }
  .stage__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "emblema" "trays" "tablet"; min-height: 0; padding-block: 22px 120px; gap: 20px; }
  .stage__intro { display: contents; }
  .stage__intro > h1, .stage__intro > .lead { grid-area: intro; }
  .stage__intro > h1 { align-self: start; }
  .stage__intro > .lead { align-self: end; margin-top: 0; }
  .display { font-size: clamp(30px, 8vw, 40px); }
  .lead { font-size: 17px; max-width: none; }
  .stage__intro { grid-template-rows: auto auto; }
  .trays { grid-area: trays; margin-top: 4px; }
  .trays__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tablet { width: 100%; }
  .tablet__go, .tablet .btn--stone { display: none; }
  .emblema { width: min(100%, 520px); }
  .thumbbar {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom, 0px));
    background: rgba(30, 27, 24, 0.97); border-top: 3px dotted rgba(239, 230, 210, .45);
    transition: transform .3s var(--ease-out);
  }
  .thumbbar.is-away { transform: translateY(110%); }
  .done-note:not([hidden]) { display: block; margin-top: 14px; text-align: center; color: var(--muted); font-size: 16px; max-width: 32ch; }
  .done-note strong { color: var(--white); font-weight: 700; }
  .thumbbar__total { display: flex; flex-direction: column; line-height: 1.1; }
  .thumbbar__label { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
  .thumbbar__total .num { font-size: 22px; font-weight: 700; }
  .carved__name { font-size: clamp(50px, 15vw, 64px); }
  .carved__line { font-size: 19px; margin-top: 10px; max-width: none; }
  .thumbbar .btn { flex: 1; max-width: 260px; }
  .section-head { flex-direction: column; align-items: start; gap: 12px; margin-bottom: 28px; }
  .menu { grid-template-columns: minmax(0, 1fr); }
  .dish { grid-template-columns: 92px 1fr; gap: 16px; }
  .dish__disc { width: 92px; height: 92px; }
  .dish__name { font-size: 23px; }
  .dragon__grid { grid-template-columns: minmax(0, 1fr); }
  .dragon__panel { max-width: 420px; }
  .foot { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
}

/* the intro stacks h1 and lead in one area on phones */
@media (max-width: 820px) {
  .stage__grid { grid-template-areas: "h1" "lead" "emblema" "trays" "tablet"; }
  .stage__intro > h1 { grid-area: h1; }
  .stage__intro > .lead { grid-area: lead; }
}

@media (max-width: 480px) {
  .brand__sub { display: none; }
  .brand { gap: 8px; }
  .brand__mark { width: 32px; height: 32px; }
  .top__nav a { padding: 10px 8px; white-space: nowrap; }
  .top__nav a::after { left: 8px; right: 8px; }
}
@media (max-width: 380px) {
  .tile { grid-template-columns: 38px 1fr; gap: 8px; padding-right: 8px; }
  .tile__icon { width: 38px; height: 38px; }
  .tile__check { left: 33px; }
  .tile__name { font-size: 15px; }
  .top__nav a { padding: 10px 6px; font-size: 14px; }
  .brand__word { font-size: 20px; letter-spacing: .1em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
