/* Hallmark · genre: editorial · macrostructure: Marquee Hero · theme: Carnival (drop: Cold Snap)
 * H1 Marquee knobs: size=xxl, alignment=left-bias, underlay=thick rule below
 * F6 Product grid knobs: ratio=4/3, density=4-up, price=under name, micro-action=none
 * enrichment: E5 Tier-B hand-built SVG (kulhad) · nav: N12 banner + retract · footer: Ft5 Statement
 * tone: loud, festive street-poster · anchor hue: mustard 95° + oxblood 25°
 * inferred: audience = fest visitors + MBA evaluators · use = visit the stall / play a game
 */

/* ── Reset ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: 1.55;
  padding-top: calc(var(--banner-h) + var(--bar-h));
  font-variant-numeric: tabular-nums;
}
h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}

.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;
}
.skip-link {
  position: absolute; left: var(--space-sm); top: -100px; z-index: 600;
  padding: var(--space-2xs) var(--space-sm);
  background: var(--color-ink); color: var(--color-paper);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus-visible { top: var(--space-sm); }

/* ── Display type (Carnival) ─────────────────────────── */
.hero__word, .section-title, .footer__line, .game__title {
  font-family: var(--font-display);
  font-style: normal;
  text-transform: uppercase;
}
.section-title {
  font-size: var(--text-3xl);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
  min-width: 0;
}
.orn { color: var(--color-accent-2); }

/* ── Layout shell ────────────────────────────────────── */
.shell {
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}
.section { padding-block: var(--section-gap); scroll-margin-top: calc(var(--bar-h) + var(--space-sm)); }
.section-head {
  display: grid;
  gap: var(--space-xs);
  margin-bottom: var(--space-xl);
  max-width: 44rem;
}
.section-lede { font-size: var(--text-lg); max-width: 40ch; }
.section-head--center { max-width: none; justify-items: center; text-align: center; }

.section--mustard { background: var(--color-accent); color: var(--color-accent-ink); }
.section--mustard .orn { color: var(--color-ink); }

.section--oxblood { background: var(--color-accent-2); color: var(--color-on-accent-2); }
.section--oxblood .orn { color: var(--color-on-accent-2); }
.section--oxblood :focus-visible { outline-color: var(--color-focus-on-dark); }
.section--oxblood .block-title__count { background: var(--color-on-accent-2); color: var(--color-ink); }

.ornament-row {
  text-align: center;
  font-size: var(--text-lg);
  letter-spacing: 0.6em;
  color: var(--color-accent-2);
  padding-block: var(--space-md);
  border-block: var(--rule-thin) solid var(--color-rule);
}

.halftone {
  background-color: var(--color-paper-2);
  background-image: radial-gradient(var(--color-ink) 1.5px, transparent 1.5px);
  background-size: 12px 12px;
}

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs);
  min-height: 48px;
  padding: var(--space-xs) var(--space-md);
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  border: var(--rule-thin) solid var(--color-ink);
  border-radius: var(--radius-0);
  box-shadow: var(--shadow-hard);
  cursor: pointer;
  transition: transform var(--dur-micro) var(--ease-out), box-shadow var(--dur-micro) var(--ease-out), background-color var(--dur-short) var(--ease-out);
}
.btn--accent { background: var(--color-accent); color: var(--color-accent-ink); }
.btn--accent-2 { background: var(--color-accent-2); color: var(--color-on-accent-2); }
.btn--ghost { background: var(--color-paper); color: var(--color-ink); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-hard-lg); }
  .btn--accent:hover { background: var(--color-accent-deep); }
  .btn--accent-2:hover { background: var(--color-accent-2-deep); }
  .btn--ghost:hover { background: var(--color-paper-2); }
}
.btn:active { transform: translate(2px, 2px); box-shadow: var(--shadow-hard-sm); }
.btn[disabled], .btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  box-shadow: var(--shadow-hard-sm);
}
.btn[aria-busy="true"] { cursor: progress; opacity: 0.85; }

/* ═══ 1 + 2 · Countdown banner + nav (both fixed) ════ */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 500;
}

.nav__banner {
  height: var(--banner-h);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: var(--page-gutter);
  background: var(--color-accent-2);
  color: var(--color-on-accent-2);
  overflow: hidden;
}

.countdown {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  min-width: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-md);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.countdown__time {
  padding: 1px var(--space-2xs);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  background: var(--color-accent);
  color: var(--color-accent-ink);
}
.countdown__time:empty { display: none; }
.countdown__when { display: none; }
.countdown__when .orn { color: var(--color-accent); margin-right: var(--space-3xs); }
@media (min-width: 40rem) { .countdown__when { display: inline; } }

.nav__bar {
  height: var(--bar-h);
  background: var(--color-paper);
  border-bottom: var(--rule-thick) solid var(--color-ink);
}
.nav__inner {
  max-width: var(--page-max);
  height: 100%;
  margin-inline: auto;
  padding-inline: var(--page-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: var(--space-2xs);
  text-decoration: none;
  white-space: nowrap;
}
.brand__deva {
  font-family: var(--font-deva);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-accent-2);
}
.brand__latin {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.375rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.nav__toggle {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  background: var(--color-accent);
  border: var(--rule-thin) solid var(--color-ink);
  box-shadow: var(--shadow-hard-sm);
  cursor: pointer;
}
.nav__toggle .icon-close { display: none; }
.nav__toggle[aria-expanded="true"] .icon-open { display: none; }
.nav__toggle[aria-expanded="true"] .icon-close { display: block; }

/* mobile sheet (base) */
.nav__links {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: grid;
  padding: var(--space-xs) var(--page-gutter) var(--space-lg);
  background: var(--color-paper);
  border-bottom: var(--rule-thick) solid var(--color-ink);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out), visibility 0s linear var(--dur-short);
}
.nav__links.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out), visibility 0s;
}
.nav__link {
  display: flex;
  align-items: center;
  min-height: 52px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-xl);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: var(--rule-thin) solid var(--color-paper-3);
}
.nav__link[aria-current="true"] { color: var(--color-accent-2); }
.nav__link--cta {
  margin-top: var(--space-sm);
  justify-content: center;
  background: var(--color-accent-2);
  color: var(--color-on-accent-2);
  border: var(--rule-thin) solid var(--color-ink);
  box-shadow: var(--shadow-hard);
}
.nav__link--cta[aria-current="true"] { color: var(--color-on-accent-2); }

@media (min-width: 60rem) {
  .nav__toggle { display: none; }
  .nav__links {
    position: static;
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 0;
    background: none;
    border: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }
  .nav__link {
    min-height: 44px;
    font-size: var(--text-lg);
    border-bottom: 3px solid transparent;
    transition: border-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out);
  }
  .nav__link:hover { border-bottom-color: var(--color-ink); }
  .nav__link[aria-current="true"] { border-bottom-color: var(--color-accent-2); }
  .nav__link--cta {
    margin: 0 0 0 var(--space-2xs);
    min-height: 44px;
    padding-inline: var(--space-md);
    border: var(--rule-thin) solid var(--color-ink);
    transition: transform var(--dur-micro) var(--ease-out), box-shadow var(--dur-micro) var(--ease-out);
  }
  .nav__link--cta:hover { border-bottom-color: var(--color-ink); transform: translate(-2px, -2px); box-shadow: var(--shadow-hard-lg); }
  .nav__link--cta:active { transform: translate(2px, 2px); box-shadow: var(--shadow-hard-sm); }
  .nav__link--cta[aria-current="true"] { border-bottom-color: var(--color-ink); }
}

/* ═══ 3 · Hero (Marquee) ═══════════════════════════════ */
.hero { scroll-margin-top: var(--bar-h); }
.hero__inner {
  position: relative;
  max-width: var(--page-max);
  margin-inline: auto;
  padding: var(--space-xl) var(--page-gutter) var(--space-xl);
  display: grid;
  grid-template-areas: "art" "word" "foot" "facts";
  grid-template-rows: 1fr auto auto auto;
  container-type: inline-size;
}
.hero__kulhad {
  grid-area: art;
  justify-self: end;
  align-self: end;
  width: clamp(6.5rem, 22cqi, 15rem);
  height: auto;
  margin-bottom: var(--space-md);
  transform: rotate(6deg);
}
.steam path { fill: none; stroke: var(--color-ink); stroke-width: 5; stroke-linecap: round; }
.steam path {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: steam 3.2s var(--ease-in-out) infinite;
}
.steam path:nth-child(2) { animation-delay: 0.5s; }
.steam path:nth-child(3) { animation-delay: 1s; }
@keyframes steam {
  0%   { opacity: 0; transform: translateY(8px) scaleY(0.8); }
  35%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(-12px) scaleY(1.1); }
}
.kulhad__body { fill: var(--color-clay); stroke: var(--color-ink); stroke-width: 5; stroke-linejoin: round; }
.kulhad__rim { fill: var(--color-clay-dark); stroke: var(--color-ink); stroke-width: 5; }
.kulhad__chai { fill: var(--color-chai); }
.kulhad__band { fill: var(--color-accent); stroke: var(--color-ink); stroke-width: 4; stroke-linejoin: round; }

.hero__word {
  grid-area: word;
  font-size: clamp(4rem, 27.5cqi, 20rem);
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: -0.005em;
  overflow-wrap: anywhere;
  min-width: 0;
  margin-left: -0.04em;
  animation: rise var(--dur-long) var(--ease-out) both;
}
.hero__sticker {
  grid-area: word;
  justify-self: start;
  align-self: start;
  z-index: 1;
  padding: var(--space-3xs) var(--space-sm) var(--space-2xs);
  font-family: var(--font-deva);
  font-size: clamp(1.25rem, 5cqi, 2.5rem);
  line-height: 1.2;
  background: var(--color-accent);
  color: var(--color-ink);
  border: var(--rule-thin) solid var(--color-ink);
  box-shadow: var(--shadow-hard);
  transform: translate(0.4em, -75%) rotate(-7deg);
  animation: pop var(--dur-long) var(--ease-out) 160ms both;
}
.hero__foot {
  grid-area: foot;
  animation: rise var(--dur-long) var(--ease-out) 220ms both;
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: var(--rule-thick) solid var(--color-ink);
}
.hero__quote { margin: 0; }
.hero__quote p {
  max-width: 26ch;
  font-size: var(--text-xl);
  font-style: italic;
  font-weight: 700;
  line-height: 1.25;
}
.hero__quote p::before,
.hero__quote p::after { font-style: normal; }
.hero__quote p::before,
.hero__quote p::after { color: var(--color-accent-2); font-family: var(--font-display); font-weight: 900; }
.hero__quote p::before { content: "\201C"; margin-right: 0.08em; }
.hero__quote p::after { content: "\201D"; margin-left: 0.04em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }

/* date · timings · venue strip */
.hero__facts {
  grid-area: facts;
  animation: rise var(--dur-long) var(--ease-out) 340ms both;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-top: var(--space-lg);
  margin-right: 6px;
  background: var(--color-paper-2);
  border: var(--rule-thin) solid var(--color-ink);
  box-shadow: var(--shadow-hard);
}
.hero__fact {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-sm);
}
.hero__fact + .hero__fact { border-top: var(--rule-thin) solid var(--color-ink); }
.hero__fact dt {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.hero__fact dd {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: right;
}

@media (min-width: 48rem) {
  .hero__inner {
    min-height: calc(100dvh - var(--banner-h) - var(--bar-h));
    grid-template-areas: "space" "word" "foot" "facts";
    grid-template-rows: 1fr auto auto auto;
  }
  .hero__kulhad {
    position: absolute;
    top: var(--space-xl);
    right: var(--page-gutter);
    width: clamp(7rem, 16cqi, 13rem);
    margin: 0;
  }
  .hero__foot { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .hero__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero__fact { flex-direction: column; justify-content: flex-start; gap: var(--space-3xs); padding: var(--space-sm) var(--space-md); }
  .hero__fact + .hero__fact { border-top: 0; border-left: var(--rule-thin) solid var(--color-ink); }
  .hero__fact dd { font-size: var(--text-xl); text-align: left; }
}

@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes pop { from { opacity: 0; transform: translate(0.4em, -60%) rotate(0deg) scale(0.9); } }

/* ═══ 4 · Menu (photo cards) ═════════════════════════ */
.dish-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-lg);
  padding-right: 6px;
}
@media (min-width: 36rem) { .dish-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 60rem) { .dish-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.dish {
  display: flex;
  flex-direction: column;
  background: var(--color-paper-2);
  border: var(--rule-thin) solid var(--color-ink);
  box-shadow: var(--shadow-hard);
}
.dish__photo {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: var(--focus, 50% 50%);
  background: var(--color-paper-3);
  border-bottom: var(--rule-thin) solid var(--color-ink);
}
.dish__body { display: grid; gap: var(--space-2xs); padding: var(--space-sm) var(--space-sm) var(--space-md); }
.dish__head {
  display: grid;
  grid-template-columns: 1.125rem minmax(0, 1fr) auto;
  column-gap: var(--space-xs);
  align-items: center;
}
.dish__name {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.dish__price {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 900;
  line-height: 1;
  color: var(--color-accent-2);
}
.dish__desc { font-size: var(--text-sm); color: var(--color-ink-2); max-width: 40ch; }
.dish .veg { margin-top: 0; }

/* combo: two photos side by side; on wide screens it spans the row with text beside the photos */
.dish__pair {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: var(--rule-thin) solid var(--color-ink);
}
.dish__pair .dish__photo { border-bottom: 0; aspect-ratio: 4 / 5; }
.dish__pair .dish__photo + .dish__photo { border-left: var(--rule-thin) solid var(--color-ink); }
.dish__plus {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin: -1.5rem 0 0 -1.5rem;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 900;
  line-height: 1;
  background: var(--color-accent-2);
  color: var(--color-on-accent-2);
  border: var(--rule-thin) solid var(--color-ink);
  border-radius: var(--radius-pill);
}
.dish__tag {
  justify-self: start;
  padding: var(--space-3xs) var(--space-2xs);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--color-ink);
  color: var(--color-paper);
}
@media (min-width: 60rem) {
  .dish--combo { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
  .dish--combo .dish__pair { border-bottom: 0; border-right: var(--rule-thin) solid var(--color-ink); }
  .dish--combo .dish__photo { height: 20rem; aspect-ratio: auto; }
  .dish--combo .dish__body { align-content: center; padding: var(--space-lg); }
  .dish--combo .dish__name, .dish--combo .dish__price { font-size: var(--text-3xl); }
}

.veg {
  width: 1.125rem;
  height: 1.125rem;
  border: 2px solid var(--color-veg);
  background: radial-gradient(circle, var(--color-veg) 0 3.5px, transparent 4px);
}

/* ═══ 5 · Products · Artisan Store (featured product cards) ═══ */
.shop-list { display: grid; gap: var(--space-xl); padding-right: 6px; }

.shop-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  background: var(--color-paper);
  border: var(--rule-thin) solid var(--color-ink);
  box-shadow: var(--shadow-hard-lg);
}
@media (min-width: 52rem) {
  .shop-item { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
}

.shop-item__media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-bottom: var(--rule-thin) solid var(--color-ink);
  overflow: hidden;
}
@media (min-width: 52rem) {
  .shop-item__media { aspect-ratio: auto; min-height: 100%; border-bottom: 0; border-right: var(--rule-thin) solid var(--color-ink); }
}
.shop-item__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.shop-item__photo.is-missing { display: none; }
/* data-driven photos stay invisible until loaded, so a missing file never flashes a broken icon */
.shop-item__photo:not(.is-loaded),
.dish__photo:not(.is-loaded) { visibility: hidden; }
.shop-item__placeholder {
  padding: var(--space-2xs) var(--space-sm);
  font-weight: 700;
  background: var(--color-paper);
  border: var(--rule-thin) solid var(--color-ink);
}
.shop-item__badge {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  padding: var(--space-3xs) var(--space-xs);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--color-ink);
  color: var(--color-paper);
  transform: rotate(-3deg);
}

.shop-item__body {
  display: grid;
  align-content: center;
  gap: var(--space-sm);
  padding: var(--space-lg) var(--space-md);
}
@media (min-width: 52rem) { .shop-item__body { padding: var(--space-xl) var(--space-xl); } }

.shop-item__kicker {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.shop-item__name {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  min-width: 0;
}
.shop-item__price {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 900;
  line-height: 1;
}
.shop-item__price span {
  display: block;
  margin-top: var(--space-3xs);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-ink-2);
}
.shop-item__desc { max-width: 46ch; }

.shop-item__points {
  display: grid;
  gap: var(--space-2xs);
  padding-block: var(--space-sm);
  border-block: var(--rule-thin) dashed var(--color-ink);
  font-size: var(--text-sm);
}
.shop-item__points li {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr);
  gap: var(--space-2xs);
}
.shop-item__points li::before { content: "❋"; color: var(--color-ink); }

.shop-item__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-2xs); }

/* stall games reuse the shop-item card */
.game-list .shop-item { color: var(--color-ink); }
.game-list :focus-visible { outline-color: var(--color-focus); }
.shop-item__facts { border-top: var(--rule-thick) solid var(--color-ink); }
.shop-item__how-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.shop-item__steps { display: grid; gap: var(--space-2xs); padding-left: 1.25rem; font-size: var(--text-sm); }
.is-placeholder-text { color: var(--color-muted); font-style: normal; }

/* ═══ 6 · Games · quiz ════════════════════════════════ */
.game {
  display: grid;
  justify-items: start;
  gap: var(--space-sm);
  max-width: 48rem;
  margin-right: 6px;
  padding: var(--space-lg) var(--space-md);
  background: var(--color-paper);
  color: var(--color-ink);
  border: var(--rule-thin) solid var(--color-ink);
  box-shadow: var(--shadow-hard-lg);
}
@media (min-width: 40rem) { .game { padding: var(--space-xl) var(--space-xl); } }
.game :focus-visible { outline-color: var(--color-focus); }
.game__title { font-size: var(--text-2xl); font-weight: 800; line-height: 0.95; letter-spacing: 0.02em; }
.game__rule { font-size: var(--text-sm); color: var(--color-ink-2); max-width: 42ch; }

/* progress track: one cell per question */
.quiz__track {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: var(--space-3xs);
  width: 100%;
  list-style: none;
}
.quiz__track li {
  height: 10px;
  background: var(--color-paper-2);
  border: var(--rule-thin) solid var(--color-ink);
}
.quiz__track li.is-current { background: var(--color-paper-3); }
.quiz__track li.is-right { background: var(--color-success); }
.quiz__track li.is-wrong { background: var(--color-accent-2); }

.quiz { display: grid; gap: var(--space-sm); width: 100%; }
.quiz .btn { justify-self: start; min-width: 9rem; }
.quiz__progress {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2xs);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.quiz__level {
  padding: 2px var(--space-2xs);
  color: var(--color-ink);
  border: var(--rule-thin) solid var(--color-ink);
  border-radius: var(--radius-pill);
}
.quiz__level[data-level="Medium"] { background: var(--color-paper-3); }
.quiz__level[data-level="Hard"] { background: var(--color-ink); color: var(--color-paper); }
.quiz__clue { font-size: var(--text-lg); font-weight: 500; max-width: 44ch; min-height: 3.2em; }
.quiz__options { display: grid; gap: var(--space-2xs); }
.quiz__opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  min-height: 48px;
  padding: var(--space-xs) var(--space-sm);
  text-align: left;
  font-weight: 700;
  background: var(--color-paper-2);
  border: var(--rule-thin) solid var(--color-ink);
  cursor: pointer;
  transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}
.quiz__opt:hover:not([disabled]) { background: var(--color-paper-3); }
.quiz__opt:active:not([disabled]) { transform: translateY(1px); }
.quiz__opt[disabled] { cursor: default; color: var(--color-ink); opacity: 1; }
.quiz__opt.is-correct, .quiz__opt.is-correct[disabled] { background: var(--color-success); color: var(--color-on-accent-2); }
.quiz__opt.is-wrong, .quiz__opt.is-wrong[disabled] { background: var(--color-accent-2); color: var(--color-on-accent-2); }
.quiz__opt .mark { font-size: var(--text-sm); white-space: nowrap; }
.quiz__feedback { min-height: 1.6em; font-weight: 500; max-width: 48ch; }
.quiz__feedback b { font-weight: 700; }
.quiz__score {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--text-4xl);
  line-height: 0.9;
  color: var(--color-accent-2);
}

/* ═══ 7 · Team (mentors + filterable member grid) ═════ */
.block-title {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.block-title--spaced { margin-top: var(--space-2xl); }
.block-title + .shop-list,
.block-title + .game { margin-top: var(--space-md); }
.block-title__count {
  padding: 2px var(--space-2xs);
  font-size: var(--text-md);
  background: var(--color-ink);
  color: var(--color-paper);
  border-radius: var(--radius-pill);
}

.mentor-grid { margin: var(--space-md) 0 var(--space-2xl); }

.team-bar { display: grid; gap: var(--space-sm); margin-bottom: var(--space-md); }
.team-filter { display: flex; flex-wrap: wrap; gap: var(--space-2xs); }
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3xs);
  min-height: 40px;
  padding: var(--space-3xs) var(--space-sm);
  font-weight: 700;
  font-size: var(--text-sm);
  white-space: nowrap;
  background: var(--color-paper);
  border: var(--rule-thin) solid var(--color-ink);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out);
}
.chip:hover { background: var(--color-paper-2); }
.chip[aria-pressed="true"] { background: var(--color-ink); color: var(--color-paper); }
.chip__n { font-weight: 500; opacity: 0.75; }
.team-filter__status { min-height: 1.5em; font-size: var(--text-sm); color: var(--color-ink-2); }

.team-grid,
.mentor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-lg) var(--space-md);
  padding-right: 6px;
}
@media (min-width: 40rem) { .team-grid, .mentor-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 60rem) { .team-grid, .mentor-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 72rem) { .team-grid, .mentor-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* member card: photo (or silhouette) with a team tag, then name + full team */
.member {
  display: flex;
  flex-direction: column;
  background: var(--color-paper);
  border: var(--rule-thin) solid var(--color-ink);
  box-shadow: var(--shadow-hard);
}
.member[hidden] { display: none; }
.member__photo {
  position: relative;
  display: grid;
  place-items: end center;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--color-paper-3);
  border-bottom: var(--rule-thin) solid var(--color-ink);
}
.member__silhouette { width: 64%; height: auto; fill: var(--color-paper-2); }
.member__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.member__photo img:not(.is-loaded) { visibility: hidden; }
.member__photo img.is-missing { display: none; }
.member__tag {
  position: absolute;
  top: var(--space-2xs);
  left: var(--space-2xs);
  z-index: 1;
  padding: 2px var(--space-2xs);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  background: var(--color-ink);
  color: var(--color-paper);
}
.member--mentor .member__tag { background: var(--color-accent-2); color: var(--color-on-accent-2); }
.member__body { display: grid; gap: 2px; padding: var(--space-xs) var(--space-sm) var(--space-sm); }
.member__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.member__name.is-placeholder { color: var(--color-muted); }
.member__team { font-size: var(--text-xs); color: var(--color-ink-2); }

/* ═══ 8 · How to find (venue card + map) ═════════════ */
.find {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-xl);
  padding-right: 6px;
}
@media (min-width: 60rem) {
  .find { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: stretch; }
}

.venue {
  display: grid;
  align-content: start;
  gap: var(--space-xs);
  padding: var(--space-lg) var(--space-md);
  background: var(--color-paper);
  border: var(--rule-thin) solid var(--color-ink);
  box-shadow: var(--shadow-hard-lg);
}
@media (min-width: 40rem) { .venue { padding: var(--space-xl); } }
.venue__kicker {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.venue__name {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  min-width: 0;
}
.venue__org { font-weight: 700; }

.venue__facts { margin-top: var(--space-sm); border-top: var(--rule-thick) solid var(--color-ink); }
.fact {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: var(--space-sm);
  padding-block: var(--space-sm);
  border-bottom: var(--rule-thin) solid var(--color-ink);
}
.fact dt {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-lg);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.fact dd { font-weight: 500; }

.venue__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-md); }

.find__map {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 22rem;
  padding: var(--space-md);
  border: var(--rule-thin) solid var(--color-ink);
  box-shadow: var(--shadow-hard-lg);
}
/* the map sits on top; the note underneath only shows if the map is blocked */
.find__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.find__map-fallback {
  padding: var(--space-xs) var(--space-sm);
  font-weight: 700;
  text-align: center;
  background: var(--color-paper);
  border: var(--rule-thin) solid var(--color-ink);
}

/* ═══ 9 · Footer (Ft5 Statement) ═══════════════════════ */
.footer {
  padding-block: var(--section-gap) var(--space-lg);
  background: var(--color-ink);
  color: var(--color-paper);
}
.footer :focus-visible { outline-color: var(--color-focus-on-dark); }
.footer__line {
  font-size: var(--text-4xl);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: 0.01em;
  color: var(--color-accent);
  max-width: 12ch;
  overflow-wrap: anywhere;
  min-width: 0;
}
.ornament-row--footer {
  margin-block: var(--space-xl) var(--space-md);
  color: var(--color-accent);
  border-color: var(--color-ink-2);
}
.footer__meta {
  display: grid;
  gap: var(--space-md);
  align-items: center;
}
.brand--footer .brand__deva { color: var(--color-accent); }
.footer__links { display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-md); }
.footer__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  text-decoration-color: transparent;
  transition: text-decoration-color var(--dur-short) var(--ease-out);
}
.footer__link:hover { text-decoration-color: var(--color-accent); }
.footer__credit { font-size: var(--text-sm); color: var(--color-paper-3); }

@media (min-width: 60rem) {
  .footer__meta { grid-template-columns: auto 1fr auto; }
  .footer__links { justify-content: center; }
}

/* ── Reduced motion ──────────────────────────────────── */
/* ── Motion: card lift on hover ───────────────────────── */
.dish, .shop-item, .member {
  transition: transform var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .dish:hover, .shop-item:hover, .member:hover {
    transform: translate(-3px, -3px);
    box-shadow: 7px 7px 0 var(--color-ink);
  }
}

/* ── Motion: reveal once on scroll (only when JS adds .has-motion) ── */
/* uses `translate` so it never fights the hover `transform` above */
.has-motion .reveal {
  opacity: 0;
  translate: 0 18px;
  transition: opacity 560ms var(--ease-out), translate 560ms var(--ease-out),
    transform var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms), calc(var(--i, 0) * 70ms), 0ms, 0ms;
}
.has-motion .reveal.is-in { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 150ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 150ms !important;
  }
  .hero__word, .hero__sticker, .hero__foot, .hero__facts { animation: none !important; }
  .steam path { animation: none !important; }
  .dish:hover, .shop-item:hover, .member:hover { transform: none; }
}
