/* Desitopia: a desi games playground in a stamp-album style (after pkapil.com), on hand-drawn textile paper */
:root {
  --futura: Futura, "Futura PT", Jost, "Century Gothic", sans-serif;
  --paper: #f3ead8;
  --paper-deep: #e8dcc3;
  --surface: rgba(255, 250, 240, 0.88);
  --stamp-paper: #fffaf0;
  --ink: #2a2118;
  --muted: #6b5d48;
  --line: #d9cbb0;
  --accent: #c2471f;
  --brand-orange: #e4572e;
  --brand-teal: #14917c;
  --brand-yellow: #f2b01e;
  --postmark: rgba(40, 32, 26, 0.55);
  --stamp-filter: none;
  --shadow: rgba(60, 40, 20, 0.28);
  --motif: rgba(120, 82, 40, 0.13);
  --sketch: rgba(110, 85, 55, 0.32);
  --nav-h: 68px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #18150f;
    --paper-deep: #100e0a;
    --surface: rgba(32, 28, 21, 0.88);
    --stamp-paper: #ece2cf;
    --ink: #f1e8d6;
    --muted: #b4a68d;
    --line: #3b3428;
    --accent: #f08a5d;
    --brand-orange: #f2794c;
    --brand-teal: #4cc9b0;
    --brand-yellow: #f6c45a;
    --postmark: rgba(30, 24, 18, 0.6);
    --stamp-filter: brightness(0.82) saturate(0.9);
    --shadow: rgba(0, 0, 0, 0.55);
    --motif: rgba(224, 190, 140, 0.075);
    --sketch: rgba(224, 196, 150, 0.2);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --paper: #18150f;
  --paper-deep: #100e0a;
  --surface: rgba(32, 28, 21, 0.88);
  --stamp-paper: #ece2cf;
  --ink: #f1e8d6;
  --muted: #b4a68d;
  --line: #3b3428;
  --accent: #f08a5d;
  --brand-orange: #f2794c;
  --brand-teal: #4cc9b0;
  --brand-yellow: #f6c45a;
  --postmark: rgba(30, 24, 18, 0.6);
  --stamp-filter: brightness(0.82) saturate(0.9);
  --shadow: rgba(0, 0, 0, 0.55);
  --motif: rgba(224, 190, 140, 0.075);
  --sketch: rgba(224, 196, 150, 0.2);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse at 50% 0%, transparent 40%, var(--paper-deep) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .27 0 0 0 0 .18 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"),
    var(--paper);
  background-attachment: fixed;
  color: var(--ink);
  font: 16px/1.6 var(--futura);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 20;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
}

.skip:focus { top: 12px; }

.defs { position: absolute; }

/* Textile paper */
.textile {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  color: var(--motif);
  filter: url(#wobble);
}

/* Perforated stamp edge */
.perf {
  display: inline-block;
  position: relative;
  padding: 7px;
  background: var(--stamp-paper);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    radial-gradient(circle 3.2px, #0000 96%, #000) -5px -5px / 10px 10px round;
  mask:
    linear-gradient(#000 0 0) content-box,
    radial-gradient(circle 3.2px, #0000 96%, #000) -5px -5px / 10px 10px round;
}

.perf img {
  display: block;
  width: 100%;
  height: auto;
  filter: var(--stamp-filter);
}

/* Parallax album of heritage stamps */
.album {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.track {
  position: absolute;
  inset: 0 0 auto;
  will-change: transform;
}

.track .perf {
  position: absolute;
  transform: rotate(var(--tilt));
}

.track.far { opacity: 0.45; filter: blur(1px) saturate(0.85); }
.track.mid { opacity: 0.75; filter: drop-shadow(0 4px 6px var(--shadow)); }
.track.near { opacity: 1; filter: drop-shadow(0 10px 14px var(--shadow)); }

.pm {
  position: absolute;
  top: 8%;
  right: -28%;
  width: 78%;
  overflow: visible;
  fill: none;
  stroke: var(--postmark);
  stroke-width: 2.4;
  transform: rotate(-14deg);
}

.pm text {
  fill: var(--postmark);
  stroke: none;
  font: 700 11px var(--futura);
  letter-spacing: 0.08em;
}

.pm .pm-arc { font-size: 8px; letter-spacing: 0.14em; }

.veil {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 60% 75% at 45% 45%, color-mix(in srgb, var(--paper) 75%, transparent) 0%, transparent 100%);
}

.topnav, .hero, main, footer { position: relative; z-index: 1; }

/* ---------- Logo as a rectangular stamp ---------- */
.logo-stamp {
  width: 280px;
  padding: 8px;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    radial-gradient(circle 3.6px, #0000 96%, #000) -5.5px -5.5px / 11px 11px round;
  mask:
    linear-gradient(#000 0 0) content-box,
    radial-gradient(circle 3.6px, #0000 96%, #000) -5.5px -5.5px / 11px 11px round;
}

.logo-frame {
  display: block;
  padding: 8px 10px 6px;
  background: #fcf3e3;
  border: 1.5px solid #1d5e63;
  box-shadow: inset 0 0 0 3px #fcf3e3, inset 0 0 0 4px rgba(29, 94, 99, 0.35);
}

.logo-frame img { filter: none; }

.logo-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px dashed rgba(29, 94, 99, 0.4);
  color: #1d5e63;
  font: 700 9px/1 var(--futura);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.logo-stamp.small { width: 112px; padding: 5px; }
.logo-stamp.small .logo-frame { padding: 3px 5px; border-width: 1px; box-shadow: none; }
.is-dark .logo-stamp { filter: brightness(0.93); }

.hero-logo {
  display: inline-block;
  margin-bottom: 22px;
  filter: drop-shadow(0 12px 18px var(--shadow));
  transform: rotate(-2deg);
}

/* ---------- Top navigation ---------- */
.topnav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--nav-h);
  padding: 0 24px;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  flex: none;
  filter: drop-shadow(0 3px 5px var(--shadow));
  transform: rotate(-2deg);
  transition: transform 0.2s;
}

.brand:hover { transform: rotate(0) scale(1.04); }
.brand:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }

.nav-links {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}

.nav-links ul {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links ul a {
  display: block;
  padding: 8px 11px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}

.nav-links ul a:hover, .nav-links ul a:focus-visible { color: var(--ink); background: color-mix(in srgb, var(--ink) 8%, transparent); }
.nav-links ul a.active { color: var(--ink); box-shadow: inset 0 -2px 0 var(--brand-orange); border-radius: 0; }

.nav-tools { display: flex; align-items: center; gap: 8px; flex: none; }

.style-switch {
  display: flex;
  padding: 3px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
}

.style-switch button {
  padding: 5px 12px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font: 600 13px/1 var(--futura);
  cursor: pointer;
}

.style-switch button:hover { color: var(--ink); }
.style-switch button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.theme-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px 7px 9px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: none;
  color: var(--ink);
  font: 600 13px/1 var(--futura);
  cursor: pointer;
}

.theme-toggle:hover { border-color: var(--ink); }
.style-switch button:focus-visible, .theme-toggle:focus-visible, .menu-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.theme-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.theme-toggle .i-moon { display: none; }
.is-dark .theme-toggle .i-moon { display: block; }
.is-dark .theme-toggle .i-sun { display: none; }

.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  margin-left: auto;
  padding: 0 10px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: none;
  cursor: pointer;
}

.menu-btn > span:not(.visually-hidden) {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s, opacity 0.2s;
}

.menu-btn[aria-expanded="true"] > span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] > span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  max-width: 1120px;
  min-height: calc(92vh - var(--nav-h));
  margin: 0 auto;
  padding: 48px 24px 130px;
}

.hero-text { text-shadow: 0 0 18px var(--paper), 0 0 6px var(--paper); }

.eyebrow, .feature-label {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font: 700 clamp(44px, 6.6vw, 82px) / 1 var(--futura);
  letter-spacing: -0.03em;
}

h1 .c1 { color: var(--brand-orange); }
h1 .c2 { color: var(--brand-teal); }

.lead {
  max-width: 40ch;
  margin: 22px 0 0;
  color: var(--muted);
  font: 400 clamp(18px, 2vw, 20px) / 1.55 var(--futura);
}

.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.cta {
  display: inline-block;
  padding: 12px 22px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.cta:hover, .cta:focus-visible { background: var(--ink); color: var(--paper); }
.cta.solid { background: var(--brand-orange); border-color: var(--brand-orange); color: #fff8ee; text-shadow: none; }
.cta.solid:hover, .cta.solid:focus-visible { background: var(--ink); border-color: var(--ink); color: var(--paper); transform: translateY(-1px); }
.cta.quiet { border-color: transparent; }
.cta.quiet:hover, .cta.quiet:focus-visible { border-color: var(--ink); background: none; color: var(--ink); }

.langs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 28px 0 0;
  text-shadow: none;
}

.langs span {
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

/* ---------- Teaser ticket ---------- */
.teaser { display: flex; flex-direction: column; align-items: center; gap: 14px; }

.ticket {
  width: min(380px, 100%);
  filter: drop-shadow(0 18px 24px var(--shadow));
  transform: rotate(1.5deg);
}

.ticket-band, .ticket-body { background: var(--stamp-paper); }

.ticket-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ticket-band span {
  padding: 6px 12px;
  background: var(--cat, var(--brand-orange));
  color: #fff8ee;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ticket-band .t-score { background: #2a2118; }

.ticket {
  padding: 10px;
  background: var(--stamp-paper);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    radial-gradient(circle 4px, #0000 96%, #000) -6px -6px / 12px 12px round;
  mask:
    linear-gradient(#000 0 0) content-box,
    radial-gradient(circle 4px, #0000 96%, #000) -6px -6px / 12px 12px round;
  color: #2a2118;
}

.ticket-band { padding: 10px 12px 0; }
.ticket-body { padding: 14px 14px 16px; }
.ticket .feature-label { color: #9c3d2a; margin-bottom: 6px; }

.t-q { margin: 0 0 14px; font: 600 19px/1.35 var(--futura); }

.t-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.t-opts button {
  min-height: 46px;
  padding: 8px 10px;
  border: 1.5px solid #d9cbb0;
  border-radius: 10px;
  background: #fffdf7;
  color: #2a2118;
  font: 600 15px/1.25 var(--futura);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.t-opts button:hover:not(:disabled) { border-color: #2a2118; transform: translateY(-1px); }
.t-opts button:focus-visible { outline: 2px solid #9c3d2a; outline-offset: 2px; }
.t-opts button:disabled { cursor: default; }
.t-opts button.right { border-color: #1f8a5a; background: #dff2e6; }
.t-opts button.wrong { border-color: #c2471f; background: #f9e0d6; }

.t-result { min-height: 24px; margin: 12px 0 0; color: #6b5d48; font-size: 14px; }

.t-next {
  margin-top: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: #9c3d2a;
  font: 600 15px var(--futura);
  cursor: pointer;
}

.t-next:hover, .t-next:focus-visible { text-decoration: underline; }
.teaser-note { margin: 0; color: var(--muted); font-size: 13px; text-align: center; }

/* Hand-drawn monument skyline along the bottom of the hero */
.skyline {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(1200px, 100vw);
  height: auto;
  transform: translateX(-50%);
  color: var(--sketch);
  pointer-events: none;
  z-index: -1;
  filter: url(#wobble);
}

.skyline .s, .skyline .d, .skyline .l, .skyline .p, .skyline .w {
  fill: none;
  stroke: currentColor;
  stroke-width: 0.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skyline .f { fill: currentColor; }
.skyline .h, .skyline .sun { display: none; }

/* ---------- Panels ---------- */
main { max-width: 1120px; margin: 0 auto; padding: 0 24px 48px; }

.panel {
  margin-bottom: 40px;
  padding: 40px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 24px 60px -30px var(--shadow);
}

h2 { margin: 0; font: 600 32px/1.2 var(--futura); letter-spacing: -0.01em; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
}

.count { color: var(--accent); font-weight: 600; }
.section-lead { max-width: 62ch; margin: 10px 0 0; color: var(--muted); }
.note { margin: 18px 0 0; color: var(--muted); font-size: 13px; }

/* Game worlds, edged like stamps */
.worlds {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 26px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.worlds > li {
  filter: drop-shadow(0 6px 10px var(--shadow));
  transition: transform 0.2s, filter 0.2s;
}

.worlds > li:hover {
  transform: translateY(-4px) rotate(-0.6deg);
  filter: drop-shadow(0 14px 18px var(--shadow));
}

.worlds article {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding: 10px 10px 22px;
  background: var(--stamp-paper);
  color: #2a2118;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    radial-gradient(circle 3.6px, #0000 96%, #000) -6px -6px / 12px 12px round;
  mask:
    linear-gradient(#000 0 0) content-box,
    radial-gradient(circle 3.6px, #0000 96%, #000) -6px -6px / 12px 12px round;
}

.band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 6px;
  padding: 9px 14px;
  background: var(--band);
  color: #fff8ea;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.band span:last-child { font-size: 22px; letter-spacing: 0; line-height: 1; }

.worlds h3 { margin: 4px 14px 0; font: 600 23px/1.25 var(--futura); }
.worlds article > p:not(.band) { margin: 0 14px; color: #6b5d48; }

.bullets {
  display: grid;
  gap: 4px;
  margin: 6px 14px 0;
  padding: 12px 0 0 0;
  border-top: 1px dashed #d9cbb0;
  list-style: none;
  font-size: 14.5px;
}

.bullets li { position: relative; padding-left: 18px; }
.bullets li::before { content: ''; position: absolute; left: 2px; top: 0.55em; width: 7px; height: 7px; border-radius: 50%; background: var(--band); }

.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: auto 14px 0;
  padding: 10px 0 0;
  list-style: none;
}

.stack li {
  padding: 3px 9px;
  border: 1px solid #d9cbb0;
  border-radius: 999px;
  color: #6b5d48;
  font: 500 11.5px/1.3 ui-monospace, "SFMono-Regular", Consolas, monospace;
}

/* Featured game (Movies & Entertainment) */
.game-feature {
  --band: #d9532a;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  margin-top: 28px;
}

.game-logo {
  display: block;
  filter: drop-shadow(0 14px 20px var(--shadow));
  transform: rotate(-3deg);
  transition: transform 0.25s;
}

.game-logo:hover { transform: rotate(0) scale(1.03); }
.game-logo:focus-visible { outline: 2px solid var(--accent); outline-offset: 8px; border-radius: 4px; }
.game-logo .perf { width: 230px; padding: 9px; }

/* Movie Quiz lockup, matching the quiz app's own header mark */
.mq-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  aspect-ratio: 1;
  background: #121117;
}
.mq-mark {
  width: 42%;
  aspect-ratio: 1;
  border-radius: 22%;
  background: conic-gradient(from 200deg, #ff7a2e, #db2777, #8b70ff, #ff7a2e);
  box-shadow: 0 10px 24px -8px rgba(255, 122, 46, 0.55);
}
.mq-name {
  font: 700 1.5rem/1 "Plus Jakarta Sans", "Jost", system-ui, sans-serif;
  color: #f5f3ef;
  letter-spacing: -0.01em;
}

.game-body {
  padding: 10px 10px 22px;
  background: var(--stamp-paper);
  color: #2a2118;
  filter: drop-shadow(0 6px 10px var(--shadow));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    radial-gradient(circle 3.6px, #0000 96%, #000) -6px -6px / 12px 12px round;
  mask:
    linear-gradient(#000 0 0) content-box,
    radial-gradient(circle 3.6px, #0000 96%, #000) -6px -6px / 12px 12px round;
}

.game-body h3 { margin: 10px 14px 4px; font: 600 26px/1.2 var(--futura); }
.game-body > p:not(.band) { margin: 0 14px; color: #6b5d48; }
.game-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 18px 14px 0; }
.game-cta .cta.solid:hover, .game-cta .cta.solid:focus-visible { background: #2a2118; border-color: #2a2118; color: #fff8ee; }
.game-url { color: #9c3d2a; font-weight: 600; font-size: 14px; }

.next-up { margin-top: 30px; padding-top: 20px; border-top: 1px dashed var(--line); }
.next-up h3 { margin: 0; font: 600 18px/1.3 var(--futura); }
.next-up .stack { margin: 8px 0 0; padding: 0; }
.next-up .stack li { border-color: var(--line); color: var(--muted); }

.nav-links ul a.ext { color: var(--accent); }

/* Leaderboard */
.lb-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 28px;
  margin-top: 26px;
}

.lb { margin: 0; padding: 0; list-style: none; }

.lb li {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px 6px;
  border-top: 1px solid var(--line);
}

.lb li:first-child { border-top: 0; }

.rank {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 2px solid var(--postmark);
  border-radius: 50%;
  color: var(--muted);
  font-weight: 700;
}

.lb li:nth-child(1) .rank { border-color: var(--brand-yellow); color: var(--ink); background: color-mix(in srgb, var(--brand-yellow) 25%, transparent); }
.lb li:nth-child(2) .rank { border-color: var(--brand-teal); }
.lb li:nth-child(3) .rank { border-color: var(--brand-orange); }

.who { display: flex; flex-direction: column; font-weight: 600; font-size: 17px; line-height: 1.3; }
.who small { color: var(--muted); font-size: 13px; font-weight: 500; }
.pts { color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }

.places { display: grid; gap: 10px; align-content: start; margin: 0; padding: 0; list-style: none; }

.places li {
  padding: 10px 14px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  font-size: 14.5px;
}

.places b { display: block; color: var(--ink); font-size: 15px; }

/* Why Desitopia */
.why {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.why li { position: relative; padding: 18px 18px 16px 18px; border: 1px solid var(--line); border-radius: 14px; }

.pmk {
  position: absolute;
  top: -14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--paper);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  transform: rotate(-12deg);
  box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 4px var(--accent);
}

.why h3 { margin: 0 0 4px; font: 600 20px/1.3 var(--futura); }
.why p { margin: 0; color: var(--muted); font-size: 15px; }

.audience { margin-top: 30px; }
.audience h3 { margin: 0 0 4px; font: 600 20px/1.3 var(--futura); }
.audience p { margin: 0; color: var(--muted); }

/* Sari-border strip */
.border-strip {
  height: 46px;
  margin-top: 30px;
  border-top: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='42'%3E%3Cg fill='none' stroke='%23e4572e' stroke-width='1.4' stroke-linecap='round'%3E%3Cpath d='M22 33C16 28 14 20 22 9C30 20 28 28 22 33Z'/%3E%3Cpath d='M22 33C14 33 8 28 6 21C13 21 19 26 22 33ZM22 33C30 33 36 28 38 21C31 21 25 26 22 33Z'/%3E%3C/g%3E%3Cg fill='%2314917c'%3E%3Ccircle cx='2' cy='6' r='1.6'/%3E%3Ccircle cx='2' cy='36' r='1.6'/%3E%3Ccircle cx='42' cy='6' r='1.6'/%3E%3Ccircle cx='42' cy='36' r='1.6'/%3E%3C/g%3E%3C/svg%3E") center / 44px 42px repeat-x;
}

/* ---------- Footer ---------- */
footer { padding: 8px 24px 40px; color: var(--muted); font-size: 13px; text-align: center; }
footer p { margin: 0 0 6px; }

.foot-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin-bottom: 14px; }
.foot-nav a { color: var(--ink); font-weight: 600; font-size: 14px; text-decoration: none; }
.foot-nav a:hover, .foot-nav a:focus-visible { color: var(--accent); }
.foot-tag { color: var(--ink); font-weight: 600; font-size: 15px; }

/* Credits: small and folded away, for licence information only */
.credits { max-width: 760px; margin: 10px auto 0; text-align: left; font-size: 12px; line-height: 1.5; }
.credits summary { width: max-content; margin: 0 auto; color: var(--muted); cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
.credits summary:hover { color: var(--ink); }
.credits[open] summary { margin-bottom: 10px; }
.credits[open] { padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.credits a { color: inherit; }
.photo-credits { columns: 2 260px; gap: 24px; margin: 8px 0 0; padding: 0; list-style: none; }
.photo-credits li { break-inside: avoid; margin-bottom: 3px; }
[data-style="art"] .when-photo, [data-style="photo"] .when-art, [data-style="art"] .photo-credits { display: none; }

/* ---------- Photo stamps: a real photograph inside the same two-colour frame ---------- */
.perf:has(> .pstamp) { container-type: inline-size; }

.pstamp {
  display: block;
  position: relative;
  aspect-ratio: 100 / 124;
  padding: 5cqw 5cqw 0;
  background: #fbf5e6;
  outline: 1px solid var(--ink-c);
  outline-offset: -5cqw;
  font-family: var(--futura);
  color: #fbf5e6;
}

.pstamp img {
  display: block;
  width: 100%;
  height: 73.4%;
  object-fit: cover;
  filter: var(--stamp-filter) sepia(0.12);
  background: color-mix(in srgb, var(--ink-c) 20%, #fbf5e6);
}

.pstamp .pv, .pstamp .pc {
  position: absolute;
  top: 7cqw;
  padding: 1cqw 2.4cqw;
  background: rgba(251, 245, 230, 0.88);
  color: var(--ink-c);
  font-weight: 700;
  line-height: 1;
}

.pstamp .pv { left: 7cqw; font-size: 8.5cqw; }
.pstamp .pc { right: 7cqw; font-size: 5cqw; letter-spacing: 0.04em; padding-top: 1.8cqw; padding-bottom: 1.8cqw; }

.pstamp .pb {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 18.5%;
  background: var(--ink-c);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
}

.pstamp .pb b { font-size: 6.2cqw; letter-spacing: 0.04em; line-height: 1.2; }
.pstamp .pb i { font-size: 4.2cqw; font-style: normal; font-weight: 500; letter-spacing: 0.08em; opacity: 0.85; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .menu-btn { display: flex; }

  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 14px 16px 18px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -20px var(--shadow);
  }

  .nav-links.open { display: flex; }
  .nav-links ul { flex-direction: column; }
  .nav-links ul a { padding: 10px 12px; font-size: 17px; border-radius: 10px; }
  .nav-tools { flex-wrap: wrap; }
}

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 44px; min-height: 0; padding: 36px 16px 100px; }
  .logo-stamp { width: 230px; }
  .lb-wrap { grid-template-columns: 1fr; }
  .game-feature { grid-template-columns: 1fr; justify-items: center; gap: 24px; }
  .game-logo .perf { width: 180px; }
  .mq-name { font-size: 1.2rem; }
}

@media (max-width: 760px) {
  /* The nav already shows the logo stamp; skip the big one on phones */
  .hero-logo { display: none; }

  .topnav { padding: 0 16px; }
  main { padding: 0 16px 40px; }
  .panel { padding: 26px 20px; }
  h2 { font-size: 26px; }
  .worlds { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
