/* ===== INDIA · A Living Museum — shared styles (mobile-first) =====
   Theme: navy exhibition board, gold lettering, parchment cards,
   fairy lights, lotus motifs and an ornate folk-art border.        */
:root {
  --navy: #13203f;
  --navy-2: #1c2c56;
  --gold: #e0b04b;
  --gold-light: #f8dc8e;
  --parchment: #fbf0d9;
  --parchment-2: #f1dfb6;
  --ink: #3a2414;
  --ink-soft: #6e5038;
  --maroon: #8e1b2b;
  --saffron: #e8772e;
  --pink: #e8457a;
  --teal: #13837a;
  --green: #2f7d32;
  --radius: 12px;
  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --fancy: "Cinzel Decorative", "Cinzel", Georgia, serif;
  --body: "Lora", Georgia, "Times New Roman", serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--parchment);
  font: 17px/1.6 var(--body);
  background-color: var(--navy);
  /* faint starry pattern like the board's backdrop */
  background-image:
    radial-gradient(circle at 20% 30%, rgba(248, 220, 142, .10) 0 1px, transparent 2px),
    radial-gradient(circle at 70% 80%, rgba(248, 220, 142, .08) 0 1px, transparent 2px),
    radial-gradient(ellipse at top, var(--navy-2), var(--navy) 70%);
  background-size: 90px 90px, 130px 130px, 100% 100%;
  background-attachment: fixed;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-light); }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* ---------- Fairy lights ---------- */
.lights {
  height: 14px;
  background:
    radial-gradient(circle, #fffbe6 0 2.5px, #ffd45c 3.5px, rgba(255, 196, 64, .55) 5px, rgba(255, 196, 64, 0) 7px) 0 50% / 28px 14px repeat-x,
    linear-gradient(transparent 6px, rgba(224, 176, 75, .5) 6px 7px, transparent 7px);
  animation: twinkle 2.4s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .65; } to { opacity: 1; } }

/* ---------- Ornate folk-art band (like the board's painted frame) ---------- */
.band {
  height: 12px;
  background:
    repeating-linear-gradient(90deg,
      var(--maroon) 0 10px, var(--gold) 10px 13px, var(--teal) 13px 23px,
      var(--gold) 23px 26px, var(--pink) 26px 36px, var(--gold) 36px 39px);
  border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
}

/* ---------- Header ---------- */
.hero { text-align: center; padding: 22px 0 0; position: relative; }
.lotus { width: 74px; height: auto; margin: 0 auto 4px; filter: drop-shadow(0 0 10px rgba(255, 170, 90, .55)); }
.hero h1 { margin: 0; line-height: 1; }
.hero .india {
  display: block;
  font-family: var(--fancy); font-weight: 700;
  font-size: clamp(3rem, 15vw, 5.6rem); letter-spacing: .06em;
  background: linear-gradient(180deg, #fff3c4 0%, var(--gold-light) 35%, var(--gold) 65%, #b07a1e 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 14px rgba(248, 220, 142, .45));
}
.hero .museum {
  display: block; margin-top: 6px;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.35rem, 6vw, 2.3rem); letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold-light);
}
.ribbon {
  display: inline-block; margin: 14px auto 0; padding: 7px 34px;
  background: linear-gradient(var(--parchment), var(--parchment-2));
  color: var(--ink); font-family: var(--display); font-weight: 600;
  font-size: clamp(.72rem, 3vw, .95rem); letter-spacing: .03em; text-wrap: balance;
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 50%, 100% 100%, 0 100%, 14px 50%);
}
.hero p.intro { margin: 14px auto 0; max-width: 34em; color: var(--parchment-2); font-style: italic; }
.skyline {
  height: 70px; margin-top: 12px;
  background: url("../images/skyline.svg") center bottom / auto 100% repeat-x;
  opacity: .9;
}

/* ---------- Plaque headings ---------- */
.plaque {
  display: table; margin: 26px auto 6px; padding: 8px 26px;
  background: linear-gradient(var(--parchment), var(--parchment-2));
  color: var(--maroon); font-family: var(--display); font-weight: 700;
  font-size: clamp(1.15rem, 4.8vw, 1.6rem); text-align: center;
  border: 2px solid var(--gold); border-radius: 8px;
  box-shadow: 0 0 0 4px var(--navy), 0 0 0 6px var(--gold), 0 6px 18px rgba(0, 0, 0, .4);
}
.plaque-sub { text-align: center; color: var(--parchment-2); margin: 10px 0 0; font-size: .95rem; }

/* ---------- Search + filters ---------- */
.tools {
  position: sticky; top: 0; z-index: 5; padding: 12px 0;
  background: rgba(19, 32, 63, .94); backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(224, 176, 75, .4);
}
.search {
  width: 100%; padding: 12px 16px; font: 1rem var(--body);
  border-radius: 999px; border: 2px solid var(--gold);
  background: var(--parchment); color: var(--ink);
}
.search::placeholder { color: var(--ink-soft); }
.chips { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  border: 1.5px solid var(--gold); background: transparent; color: var(--gold-light);
  padding: 6px 15px; border-radius: 999px; font: 600 .85rem var(--display);
  cursor: pointer; white-space: nowrap; letter-spacing: .02em;
}
.chip[aria-pressed="true"] { background: var(--gold); color: var(--navy); }

/* ---------- Monument cards ---------- */
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); margin-top: 18px; }
.card {
  position: relative; display: block; text-decoration: none; color: var(--ink);
  background: linear-gradient(var(--parchment), var(--parchment-2));
  border: 2px solid var(--gold); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .35);
  transition: transform .15s, box-shadow .15s;
}
.card:hover, .card:focus-visible { transform: translateY(-3px); box-shadow: 0 0 0 2px var(--gold-light), 0 0 22px rgba(248, 220, 142, .35); }
.card img {
  width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  background: var(--parchment-2); border-bottom: 3px solid var(--gold);
}
.card div { padding: 9px 11px 11px; }
.card strong { display: block; font: 700 .95rem/1.25 var(--display); color: var(--maroon); }
.card span { font-size: .8rem; color: var(--ink-soft); }
.card .ut {
  font: 700 .62rem var(--display); color: #fff; background: var(--teal);
  padding: 1px 6px; border-radius: 4px; margin-left: 5px; vertical-align: 1px;
}
.empty { color: var(--parchment-2); padding: 30px 0; text-align: center; }

/* ---------- Footer ---------- */
footer { text-align: center; color: var(--parchment-2); font-size: .85rem; padding: 34px 0 0; }
footer .skyline { margin-top: 18px; height: 54px; opacity: .55; }
footer .made-by { margin-top: 6px; }
footer .disclaimer { max-width: 40em; margin: 12px auto 0; font-size: .75rem; line-height: 1.45; opacity: .8; }
footer .band { margin-top: 0; }

/* ---------- Monument page ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; }
.back {
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
  font: 700 .9rem var(--display); color: var(--navy);
  padding: 8px 16px; border-radius: 999px; background: linear-gradient(var(--gold-light), var(--gold));
}
.brand {
  text-decoration: none; text-align: right; line-height: 1.05;
  font: 700 .95rem var(--fancy); color: var(--gold-light);
}
.brand small { display: block; font: 600 .62rem var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }

.photo { margin: 0; padding: 6px; background: linear-gradient(135deg, var(--gold-light), var(--gold) 50%, #a8741d); border-radius: 14px; }
.photo img { width: 100%; height: auto; max-height: 60vh; object-fit: cover; border-radius: 9px; }
.credit { font-size: .72rem; color: var(--parchment-2); opacity: .8; padding: 6px 2px 0; margin: 0; }
.credit a { color: inherit; }

.title {
  margin: 18px 0 6px; text-align: center;
  font: 700 clamp(1.8rem, 7vw, 2.7rem)/1.15 var(--display); letter-spacing: .02em;
  color: var(--gold-light); text-shadow: 0 0 18px rgba(248, 220, 142, .35);
}
.where { margin: 0 0 20px; text-align: center; }
.badge {
  display: inline-block; font: 700 .75rem var(--display); letter-spacing: .03em;
  padding: 4px 12px; border-radius: 999px; margin: 3px;
  background: var(--parchment); color: var(--maroon); border: 1.5px solid var(--gold);
}
.badge.unesco { background: var(--teal); color: #fff; border-color: var(--gold-light); }

.panel {
  position: relative; color: var(--ink);
  background: linear-gradient(var(--parchment), var(--parchment-2));
  border: 2px solid var(--gold); border-radius: var(--radius);
  box-shadow: inset 0 0 0 4px var(--parchment), inset 0 0 0 5px rgba(224, 176, 75, .7), 0 8px 22px rgba(0, 0, 0, .35);
  padding: 20px 18px 16px; margin-bottom: 20px;
}
.panel h2 {
  margin: 0 0 14px; text-align: center;
  font: 700 1.25rem var(--display); color: var(--maroon);
}
.panel h2::after {
  content: ""; display: block; width: 90px; height: 3px; margin: 8px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.facts-table { margin: 0; display: grid; grid-template-columns: 1fr; gap: 10px; }
.facts-table div { border-bottom: 1px dashed rgba(142, 27, 43, .25); padding-bottom: 8px; }
.facts-table div:last-child { border-bottom: 0; }
.facts-table dt { font: 700 .72rem var(--display); text-transform: uppercase; letter-spacing: .08em; color: var(--teal); }
.facts-table dd { margin: 2px 0 0; }
@media (min-width: 720px) { .facts-table { grid-template-columns: 1fr 1fr; } }

.fun { list-style: none; padding: 0; margin: 0; counter-reset: fact; }
.fun li { counter-increment: fact; position: relative; padding: 4px 0 14px 48px; }
.fun li::before {
  content: counter(fact); position: absolute; left: 0; top: 1px;
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #c0343f, var(--maroon));
  color: var(--gold-light); border: 2px solid var(--gold);
  font: 700 .95rem var(--display);
}

.pager { display: flex; justify-content: space-between; gap: 10px; margin: 4px 0 6px; }
.pager a {
  flex: 1; text-decoration: none; color: var(--ink);
  background: linear-gradient(var(--parchment), var(--parchment-2));
  border: 2px solid var(--gold); border-radius: 10px; padding: 9px 12px;
  font: 700 .88rem var(--display);
}
.pager a small { display: block; font: 600 .7rem var(--body); color: var(--ink-soft); }
.pager a.next { text-align: right; }

/* ---------- Navigation ---------- */
.mainnav { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; padding: 12px 10px 0; }
.mainnav a {
  display: inline-flex; align-items: center; gap: 4px; text-decoration: none;
  padding: 6px 10px; border-radius: 999px; border: 1.5px solid var(--gold);
  font: 700 .72rem var(--display); color: var(--gold-light);
}
.mainnav a[aria-current="page"] { background: var(--gold); color: var(--navy); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; cursor: pointer; text-decoration: none; text-align: center;
  padding: 11px 22px; border-radius: 999px; border: 0;
  background: linear-gradient(var(--gold-light), var(--gold)); color: var(--navy);
  font: 700 1rem var(--display); box-shadow: 0 4px 12px rgba(0, 0, 0, .35);
}
.btn:disabled { opacity: .5; cursor: default; }
.btn.secondary { background: transparent; color: var(--gold-light); border: 1.5px solid var(--gold); box-shadow: none; }
.center { text-align: center; }

/* ---------- Map of India ---------- */
.map-box { position: relative; max-width: 560px; margin: 16px auto 0; }
.map-box svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .45)); }
.map-box path { stroke: var(--navy); stroke-width: .9; cursor: pointer; transition: filter .15s; }
.map-box path:hover { filter: brightness(1.12); }
.map-box path.sel { stroke: #fff; stroke-width: 2.4; filter: brightness(1.15) drop-shadow(0 0 6px #fff6c9); }
.map-box path:focus { outline: none; stroke: #fff; stroke-width: 2.4; }
.map-box text {
  font: 700 9px var(--display); fill: #2b1a0c; text-anchor: middle; pointer-events: none;
  paint-order: stroke; stroke: rgba(255, 255, 255, .7); stroke-width: 2.2px;
}
.compass { position: absolute; right: 4%; top: 3%; width: 15%; max-width: 70px; opacity: .9; pointer-events: none; }
.map-pick { display: block; width: 100%; max-width: 560px; margin: 12px auto 0; padding: 10px 14px; border-radius: 999px; border: 2px solid var(--gold); background: var(--parchment); color: var(--ink); font: 1rem var(--body); }
.map-info { max-width: 560px; margin: 14px auto 0; }
.map-info .panel { margin: 0; }
.mini { display: flex; gap: 10px; align-items: center; text-decoration: none; color: var(--ink); padding: 8px 0; border-top: 1px dashed rgba(142, 27, 43, .25); }
.mini:first-of-type { border-top: 0; }
.mini img { width: 84px; height: 63px; object-fit: cover; border-radius: 8px; border: 2px solid var(--gold); flex: none; }
.mini strong { display: block; font: 700 1rem var(--display); color: var(--maroon); }
.mini span { font-size: .85rem; color: var(--ink-soft); }

/* ---------- Quiz pieces (shared by games) ---------- */
.game { max-width: 620px; margin: 0 auto; }
.scorebar { display: flex; justify-content: space-between; align-items: center; margin: 14px 0 10px; font: 700 .9rem var(--display); color: var(--gold-light); }
.progress { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .15); overflow: hidden; margin-bottom: 14px; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--saffron), var(--gold-light)); transition: width .3s; }
.quiz-photo { padding: 5px; background: linear-gradient(135deg, var(--gold-light), var(--gold) 50%, #a8741d); border-radius: 14px; }
.quiz-photo img { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; border-radius: 9px; }
.question { font: 700 1.2rem/1.35 var(--display); color: var(--gold-light); text-align: center; margin: 16px 0 12px; }
.options { display: grid; gap: 10px; }
@media (min-width: 560px) { .options { grid-template-columns: 1fr 1fr; } }
.opt {
  cursor: pointer; text-align: left; padding: 12px 14px; border-radius: 12px;
  border: 2px solid var(--gold); background: linear-gradient(var(--parchment), var(--parchment-2));
  color: var(--ink); font: 600 1rem/1.3 var(--body);
}
.opt.correct { background: #d6f5d6; border-color: var(--green); color: #14421a; }
.opt.wrong { background: #fbd5d5; border-color: #b42318; color: #6b1010; }
.opt:disabled { cursor: default; }
.feedback { margin-top: 14px; }
.feedback .panel { margin-bottom: 12px; }
.result { text-align: center; }
.result .stars { font-size: 2.4rem; letter-spacing: .1em; }
.result .score { font: 700 2.4rem var(--fancy); color: var(--gold-light); margin: 6px 0; }

/* ---------- Match the Tradition ---------- */
.match { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.match .col { display: grid; gap: 10px; align-content: start; }
.tile {
  cursor: pointer; padding: 10px; border-radius: 12px; min-height: 64px; text-align: center;
  border: 2px solid var(--gold); background: linear-gradient(var(--parchment), var(--parchment-2));
  color: var(--ink); font: 600 .92rem/1.25 var(--body);
}
.tile small { display: block; font: 700 .65rem var(--display); color: var(--teal); text-transform: uppercase; letter-spacing: .06em; }
.tile.state { font-family: var(--display); font-weight: 700; color: var(--maroon); }
.tile.picked { box-shadow: 0 0 0 3px #fff, 0 0 16px var(--gold-light); }
.tile.done { background: #d6f5d6; border-color: var(--green); color: #14421a; cursor: default; }
.tile.shake { animation: shake .35s; border-color: #b42318; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

/* ---------- Spin & Answer ---------- */
.wheel-box { position: relative; width: min(300px, 80vw); margin: 18px auto 6px; }
.wheel {
  width: 100%; aspect-ratio: 1; border-radius: 50%; border: 6px solid var(--gold);
  box-shadow: 0 0 0 4px var(--navy), 0 0 0 7px var(--gold-light), 0 10px 24px rgba(0, 0, 0, .45);
  transition: transform 3s cubic-bezier(.17, .67, .2, 1); position: relative;
}
.wheel span {
  position: absolute; left: 50%; top: 50%; width: 46%; transform-origin: 0 50%;
  font: 700 .72rem var(--display); color: #2b1a0c; text-align: right; padding-right: 10px;
}
.wheel-pointer {
  position: absolute; left: 50%; top: -14px; transform: translateX(-50%); z-index: 2;
  width: 0; height: 0; border-left: 14px solid transparent; border-right: 14px solid transparent;
  border-top: 26px solid var(--maroon); filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .5));
}
.wheel-hub {
  position: absolute; left: 50%; top: 50%; width: 18%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--gold-light), var(--gold));
  border: 3px solid var(--navy);
}
.category { text-align: center; font: 700 1rem var(--display); color: var(--gold-light); min-height: 1.5em; }

/* ---------- Heritage Passport ---------- */
.passport-cover {
  max-width: 560px; margin: 16px auto 0; padding: 20px 18px; text-align: center; border-radius: 14px;
  background: linear-gradient(160deg, #6b1422, #3e0b14); border: 3px solid var(--gold);
  box-shadow: inset 0 0 0 5px #4e0f19, inset 0 0 0 6px var(--gold), 0 10px 24px rgba(0, 0, 0, .45);
}
.passport-cover h2 { margin: 0; font: 700 1.5rem var(--fancy); color: var(--gold-light); }
.passport-cover p { margin: 6px 0 0; color: var(--parchment-2); }
.passport-cover .count { font: 700 2.6rem var(--fancy); color: var(--gold-light); margin-top: 6px; }
.prize {
  max-width: 560px; margin: 14px auto 0; padding: 14px; text-align: center; border-radius: 12px;
  background: linear-gradient(var(--gold-light), var(--gold)); color: var(--navy); font-weight: 600;
}
.prize strong { display: block; font: 700 1.25rem var(--display); }
.stamps { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); margin-top: 18px; }
.stamp {
  aspect-ratio: 1; border-radius: 50%; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  padding: 10px; text-decoration: none; font: 700 .64rem/1.15 var(--display);
  border: 2px dashed rgba(248, 220, 142, .35); color: rgba(248, 220, 142, .45);
}
.stamp.got {
  border: 3px double var(--maroon); color: var(--maroon); background: var(--parchment);
  transform: rotate(-8deg); box-shadow: 0 0 0 3px var(--parchment), 0 0 0 5px var(--maroon);
}
.stamp.got:nth-child(even) { transform: rotate(7deg); border-color: var(--teal); color: var(--teal); box-shadow: 0 0 0 3px var(--parchment), 0 0 0 5px var(--teal); }
.stamp em { display: block; font: 600 .58rem var(--body); font-style: normal; opacity: .8; margin-top: 2px; }

/* stamp notice on monument pages */
.stamp-toast {
  display: flex; gap: 10px; align-items: center; margin: 0 0 18px; padding: 10px 14px; border-radius: 12px;
  background: linear-gradient(160deg, #6b1422, #3e0b14); border: 2px solid var(--gold); color: var(--parchment);
  text-decoration: none; font-size: .92rem;
}
.stamp-toast b { color: var(--gold-light); font-family: var(--display); }
.stamp-toast .ico { font-size: 1.6rem; }

/* ---------- Living Traditions ---------- */
.trad-panel { margin-top: 20px; }
.trad-panel .lead { margin: -4px 0 12px; text-align: center; color: var(--ink-soft); font-size: .95rem; }
.trad-panel .hint { white-space: nowrap; font: 700 .7rem var(--display); color: var(--teal); }
.trad-panel h3 { margin: 18px 0 8px; font: 700 1rem var(--display); color: var(--maroon); }
.trad-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: 138px; gap: 12px;
  overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x mandatory;
  scrollbar-width: thin; scrollbar-color: var(--gold) transparent;
}
.trad { scroll-snap-align: start; text-decoration: none; color: var(--ink); text-align: center; }
.trad img, .trad-icon {
  width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 10px;
  border: 3px solid var(--gold); box-shadow: 0 3px 8px rgba(60, 30, 10, .25); background: var(--parchment-2);
}
.trad-icon { display: grid; place-items: center; font-size: 3.4rem; background: radial-gradient(circle, #fff6dc, var(--parchment-2)); }
.trad strong { display: block; margin-top: 6px; font: 700 .85rem/1.2 var(--display); color: var(--maroon); }
.trad span { font-size: .75rem; color: var(--ink-soft); }
button.trad { font: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button.trad:hover img, button.trad:focus-visible img { border-color: var(--maroon); transform: translateY(-2px); }
button.trad img { transition: transform .15s; }
button.trad:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 10px; }

/* fact card that pops up when a tradition's picture is tapped */
.trad-card {
  width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); padding: 0; overflow: auto;
  background: linear-gradient(var(--parchment), var(--parchment-2)); color: var(--ink);
  border: 3px solid var(--gold); border-radius: 16px; box-shadow: 0 0 0 4px var(--maroon), 0 20px 50px rgba(0, 0, 0, .6);
}
.trad-card::backdrop { background: rgba(10, 16, 36, .75); }
.trad-card > img, .trad-card > .trad-icon { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.trad-card > .trad-icon { display: grid; aspect-ratio: 16 / 9; border: 0; border-radius: 0; box-shadow: none; }
.trad-card .trad-icon.big { font-size: 5rem; }
.trad-card .card-body { padding: 14px 18px 16px; }
.trad-card h2 { margin: 0; font: 700 1.3rem/1.2 var(--display); color: var(--maroon); text-align: center; }
.trad-card .badges { text-align: center; margin: 8px 0 14px; }
.trad-card .credit { color: var(--ink-soft); text-align: center; }
.trad-card .close {
  position: sticky; top: 8px; float: right; margin: 8px 8px -44px 0; z-index: 3;
  width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--gold);
  background: var(--navy); color: var(--gold-light); font-size: 1rem; cursor: pointer;
}
.scripts { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.scripts div { text-align: center; padding: 8px 4px; border-radius: 10px; background: rgba(255, 255, 255, .55); border: 1px solid rgba(224, 176, 75, .6); }
.scripts b { display: block; font: 600 1.3rem/1.4 "Noto Sans", "Nirmala UI", system-ui, sans-serif; color: var(--maroon); }
.scripts span { font: 700 .66rem var(--display); color: var(--teal); text-transform: uppercase; letter-spacing: .05em; }
.chips-static { display: flex; flex-wrap: wrap; gap: 6px; }
.chips-static span { padding: 3px 10px; border-radius: 999px; font-size: .82rem; background: var(--maroon); color: var(--parchment); }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding: 4px 0 8px 30px; }
.ticks li::before {
  content: "✦"; position: absolute; left: 4px; top: 4px; color: var(--saffron); font-weight: 700;
}
.ticks.green li::before { content: "✔"; color: #fff; background: var(--green); width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; left: 0; top: 6px; }
.credits { margin-top: 22px; color: var(--parchment-2); font-size: .78rem; }
.credits summary { cursor: pointer; font: 700 .85rem var(--display); color: var(--gold-light); }
.credits p { margin: 4px 0; opacity: .85; }
.credits a { color: inherit; }
.trad-preview { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-top: 16px; }
.trad-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.trad-three .trad strong { font-size: .78rem; }
.trad-three .trad-icon { font-size: 2.4rem; }
/* ---------- Festive light borders (like the fairy lights on the board) ----------
   Add class="lit" to any framed box. Two sets of bulbs twinkle in turn. */
.lit { position: relative; }
.lit::before, .lit::after {
  content: ""; position: absolute; inset: 1px; pointer-events: none; z-index: 2; border-radius: inherit;
  --bulb: radial-gradient(circle, #fffbe6 0 2px, #ffd45c 3px, rgba(255, 196, 64, .55) 4.5px, rgba(255, 196, 64, 0) 7px);
  background:
    var(--bulb) 0 0 / 28px 14px repeat-x,
    var(--bulb) 0 100% / 28px 14px repeat-x,
    var(--bulb) 0 0 / 14px 28px repeat-y,
    var(--bulb) 100% 0 / 14px 28px repeat-y;
  animation: bulbs 1.6s ease-in-out infinite alternate;
}
.lit::after {
  background-position: 14px 0, 14px 100%, 0 14px, 100% 14px;   /* the in-between bulbs */
  animation-delay: -1.6s;
}
@keyframes bulbs { from { opacity: .35; } to { opacity: 1; } }

/* framed navy panel shared by the board-style sections */
.board-frame {
  max-width: 760px; margin: 0 auto; padding: 22px 16px 18px;
  background: linear-gradient(var(--navy-2), var(--navy));
  border: 3px solid var(--gold); border-radius: 16px;
  box-shadow: inset 0 0 0 6px var(--navy), inset 0 0 0 8px var(--maroon), inset 0 0 0 10px var(--gold), 0 12px 28px rgba(0, 0, 0, .5);
}
.board-frame > .plaque:first-child { margin-top: 4px; }
.board-frame.wide { max-width: 1100px; }
.board-frame .trad-panel:last-child { margin-bottom: 4px; }
/* phones: a slimmer frame with smaller bulbs, so the content gets more room */
@media (max-width: 480px) {
  .board-frame {
    padding: 14px 10px 12px; border-width: 2px; border-radius: 12px;
    box-shadow: inset 0 0 0 3px var(--navy), inset 0 0 0 4px var(--maroon), inset 0 0 0 5px var(--gold), 0 8px 18px rgba(0, 0, 0, .45);
  }
  /* smaller bulbs on every lit box: frames, heritage box and title arch */
  .lit::before, .lit::after {
    --bulb: radial-gradient(circle, #fffbe6 0 1.5px, #ffd45c 2.2px, rgba(255, 196, 64, .55) 3.2px, rgba(255, 196, 64, 0) 5px);
    background-size: 20px 10px, 20px 10px, 10px 20px, 10px 20px;
  }
  .lit::after { background-position: 10px 0, 10px 100%, 0 10px, 100% 10px; }
}
#map, #traditions { margin-top: 26px; }
@media (min-width: 900px) { #traditions .board-frame { max-width: 1100px; } }

/* title arch at the top, like the board's arched header */
.title-arch {
  max-width: 640px; margin: 34px auto 0; padding: 30px 18px 22px;
  background: radial-gradient(ellipse at top, #24366a, var(--navy) 75%);
  border: 3px solid var(--gold); border-radius: 50% 50% 18px 18px / 70px 70px 18px 18px;
  box-shadow: inset 0 0 0 6px var(--navy), inset 0 0 0 8px var(--maroon), 0 0 30px rgba(248, 220, 142, .18);
}
.title-arch .lotus { margin-top: -62px; }

/* ---------- Our Heritage, Our Identity (board's left panel) ---------- */
#heritage { margin-top: 26px; }
.heritage-board {
  position: relative; max-width: 760px; margin: 0 auto; padding: 22px 14px 0; overflow: hidden;
  background: linear-gradient(var(--navy-2), var(--navy));
  border: 3px solid var(--gold); border-radius: 16px;
  box-shadow: inset 0 0 0 6px var(--navy), inset 0 0 0 8px var(--maroon), inset 0 0 0 10px var(--gold), 0 12px 28px rgba(0, 0, 0, .5);
}
.board-title {
  display: table; margin: 0 auto 18px; padding: 10px 28px; transform: rotate(-2deg); text-align: center;
  font: 700 clamp(1.4rem, 6vw, 1.9rem)/1.15 var(--fancy); color: var(--maroon);
  background: linear-gradient(#fff8e6, var(--parchment-2)); border: 3px double var(--maroon); border-radius: 14px;
  box-shadow: 0 0 0 3px var(--parchment), 0 0 0 5px var(--gold), 0 6px 16px rgba(0, 0, 0, .4);
}
.heritage-list { display: grid; gap: 12px; padding: 0 4px; }
.heritage-row {
  display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--ink);
  padding: 10px; border-radius: 10px;
  background: linear-gradient(#fff8e6, var(--parchment-2)); border: 2px solid var(--gold);
  box-shadow: inset 0 0 0 3px var(--parchment), inset 0 0 0 4px rgba(224, 176, 75, .6), 0 4px 10px rgba(0, 0, 0, .35);
  transition: transform .15s;
}
.heritage-row:hover, .heritage-row:focus-visible { transform: translateX(4px); }
.heritage-row > img, .book-art {
  flex: none; width: 104px; height: 84px; object-fit: cover; border-radius: 8px;
  border: 3px solid var(--gold); box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
}
.heritage-row h3 { margin: 0 0 2px; font: 700 1.05rem/1.2 var(--display); color: var(--maroon); }
.heritage-row p { margin: 0; font-size: .86rem; line-height: 1.4; }
.heritage-row .count { display: inline-block; margin-top: 4px; font: 700 .72rem var(--display); color: var(--teal); letter-spacing: .03em; }
/* open-book tile for Languages & Literature */
.book-art {
  display: grid; grid-template-columns: 1fr 1fr; place-items: center; padding: 6px;
  background: linear-gradient(90deg, #fffaf0 0 48%, #d8c49a 49% 51%, #fffaf0 52%);
  font: 700 1.25rem/1 "Noto Sans", "Nirmala UI", system-ui, sans-serif; color: var(--maroon);
}
.book-art span:nth-child(even) { color: var(--teal); }
.board-skyline { margin: 16px -14px 0; height: 46px; opacity: .55; }
@media (min-width: 900px) {
  .heritage-board { max-width: 1100px; }
  .heritage-list { grid-template-columns: repeat(5, 1fr); }
  .heritage-row { flex-direction: column; text-align: center; }
  .heritage-row > img, .book-art { width: 100%; height: 110px; }
  .heritage-row:hover, .heritage-row:focus-visible { transform: translateY(-3px); }
}

/* ---------- Explore & Play (board style) ---------- */
.play-section { margin-top: 34px; }
.play-sign {
  display: table; margin: 0 auto; padding: 10px 30px 12px; transform: rotate(-3deg);
  background: linear-gradient(#fff8e6, var(--parchment-2)); border: 4px double var(--maroon); border-radius: 22px;
  box-shadow: 0 0 0 4px var(--parchment), 0 0 0 7px var(--gold), 0 0 0 9px var(--maroon), 0 10px 24px rgba(0, 0, 0, .45);
  text-align: center; line-height: 1;
}
.play-sign span { display: block; font: 700 clamp(2rem, 9vw, 3rem) var(--fancy); color: var(--maroon); }
.play-sign span + span { margin-top: 4px; }
.play-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); margin-top: 30px; }
@media (min-width: 900px) { .play-grid { grid-template-columns: repeat(5, 1fr); } }
.play-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px;
  text-decoration: none; color: var(--ink); padding: 14px 10px 12px;
  background: linear-gradient(#fff8e6, var(--parchment-2)); border: 2px solid var(--gold); border-radius: 10px;
  box-shadow: inset 0 0 0 4px var(--parchment), inset 0 0 0 5px rgba(224, 176, 75, .7), 0 6px 16px rgba(0, 0, 0, .4);
  transition: transform .15s;
}
a.play-card:hover, a.play-card:focus-visible { transform: translateY(-3px) rotate(-1deg); }
.play-card h3 { margin: 0; font: 700 1rem/1.15 var(--display); color: var(--ink); }
.play-card p { margin: 0; font-size: .78rem; color: var(--ink-soft); }
.ill { position: relative; width: 100%; height: 110px; }
/* stacked monument photo cards */
.ill-guess img {
  position: absolute; width: 58%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; left: 21%; top: 14px;
  border: 3px solid #fff; border-radius: 6px; box-shadow: 0 3px 8px rgba(0, 0, 0, .35);
}
.ill-guess img:nth-child(1) { transform: rotate(-12deg) translate(-14px, 4px); }
.ill-guess img:nth-child(2) { transform: rotate(9deg) translate(14px, 2px); }
.ill-guess img:nth-child(3) { transform: translateY(-4px); }
/* two tradition cards */
.ill-match img {
  position: absolute; width: 44%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; top: 2px;
  border: 3px solid #fff; border-radius: 6px; box-shadow: 0 3px 8px rgba(0, 0, 0, .35);
}
.ill-match img:first-child { left: 6%; transform: rotate(-6deg); }
.ill-match img:last-child { right: 6%; transform: rotate(6deg); }
/* mini spinning wheel */
.mini-wheel {
  position: absolute; left: 50%; top: 8px; width: 96px; height: 96px; margin-left: -48px; border-radius: 50%;
  background: conic-gradient(#f9a8d4 0 60deg, #fdba74 0 120deg, #fde047 0 180deg, #86efac 0 240deg, #93c5fd 0 300deg, #c4b5fd 0);
  border: 5px solid #b07a3a; box-shadow: 0 0 0 2px var(--gold), 0 4px 10px rgba(0, 0, 0, .35);
  animation: slowspin 12s linear infinite;
}
.mini-wheel::after { content: ""; position: absolute; inset: 38%; border-radius: 50%; background: var(--gold); border: 2px solid var(--navy); }
.ill-spin i {
  position: absolute; left: 50%; top: 0; margin-left: -8px; width: 0; height: 0;
  border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 16px solid var(--maroon);
}
@keyframes slowspin { to { transform: rotate(360deg); } }
/* passport book + rubber stamp */
.ill-pass .book {
  position: absolute; left: 14%; top: 4px; width: 56%; height: 100px; transform: rotate(-4deg);
  background: linear-gradient(160deg, #7a1a28, #4a0d16); border-radius: 4px 8px 8px 4px;
  box-shadow: inset 6px 0 0 rgba(0, 0, 0, .25), inset 0 0 0 3px #5a111c, inset 0 0 0 4px var(--gold), 0 4px 10px rgba(0, 0, 0, .4);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.ill-pass .book b { font: 700 .62rem/1.1 var(--display); color: var(--gold-light); letter-spacing: .04em; text-transform: uppercase; }
.ill-pass .book img { width: 36px; height: auto; }
.ill-pass .rubber { position: absolute; right: 8%; bottom: 4px; width: 34px; height: 46px; }
.ill-pass .rubber::before {
  content: ""; position: absolute; left: 9px; top: 0; width: 16px; height: 26px; border-radius: 8px 8px 3px 3px;
  background: linear-gradient(90deg, #6b3b1f, #a8673a, #6b3b1f);
}
.ill-pass .rubber span {
  position: absolute; left: 0; bottom: 0; width: 34px; height: 20px; border-radius: 4px;
  background: linear-gradient(#c08a4a, #8a5a2b); box-shadow: inset 0 -5px 0 #8e1b2b;
}
/* prizes */
.prize-card { grid-column: 1 / -1; background: linear-gradient(#fff3f6, #f8dbe4); }
@media (min-width: 900px) { .prize-card { grid-column: auto; } }
.prize-card h3 span {
  display: inline-block; padding: 5px 18px; color: #fff; font-size: .95rem;
  background: linear-gradient(#e8457a, #b8235a); border: 2px solid var(--gold);
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 50%, 100% 100%, 0 100%, 10px 50%);
}
.gifts { font-size: 2.6rem; line-height: 1.1; letter-spacing: .1em; white-space: nowrap; }
.gifts span { display: inline-block; font-size: 3.2rem; transform: translateY(-6px); }
@media (min-width: 900px) {
  .gifts { font-size: 1.9rem; letter-spacing: 0; }
  .gifts span { font-size: 2.4rem; }
  .prize-card p { font-size: .8rem; }
}
.prize-card p { font-size: .85rem; color: var(--ink); }

@media (max-width: 420px) {
  .mainnav { gap: 4px; padding: 10px 6px 0; }
  .mainnav a { padding: 5px 8px; font-size: .66rem; }
  .mainnav a span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .lights { animation: none; }
  .card { transition: none; }
  .wheel { transition-duration: .01s; }
  .tile.shake { animation: none; }
  .mini-wheel { animation: none; }
  .lit::before, .lit::after { animation: none; }
  a.play-card { transition: none; }
}
