/* ==========================================================
   Pixelon Games — pixelongame.com
   ========================================================== */

:root {
  --bg: #0d0b1e;
  --bg-2: #110e26;
  --surface: #17142e;
  --surface-2: #1f1a3d;
  --border: #2e2858;
  --text: #f1eeff;
  --muted: #a59fc9;
  --faint: #6f68a0;

  --pink: #ff4d8d;
  --pink-d: #c2306a;
  --cyan: #3ee6ff;
  --yellow: #ffd447;
  --green: #5cf28a;
  --purple: #8b5cff;
  --purple-d: #5b3bc4;
  --orange: #ff8a3d;

  /* from the Pixelon logo */
  --brand-violet: #7c5ae4;
  --brand-indigo: #2d2a6e;
  --brand-grad: linear-gradient(90deg, #9b64e7, #c94bb0 35%, #ef5b6d 68%, #f5a049);
  --brand-warm: linear-gradient(90deg, #d04fae, #ef5b6d 55%, #f5a049);

  --font-pixel: 'Pixelify Sans', ui-monospace, 'Cascadia Mono', monospace;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-brand: 'Red Hat Display', var(--font-body);

  --container: 1160px;
  --gutter: 24px;
  --header-h: 68px;
  --n: 6px;                                   /* pixel notch size */
  --px: clamp(3px, 0.24vw + 1.6px, 5px);      /* landscape pixel size */
  --teeth: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 4' shape-rendering='crispEdges'%3E%3Cpath fill='%23110e26' d='M3 0h2v1H3zM2 1h4v1H2zM1 2h6v1H1zM0 3h8v1H0z'/%3E%3C/svg%3E");
}

/* ---------- language switching ---------- */
html:not([data-lang="tr"]) [data-l="tr"],
html[data-lang="tr"] [data-l="en"] { display: none !important; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; color-scheme: dark; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: #8ff0ff; }
h1, h2, h3, h4 { font-family: var(--font-pixel); font-weight: 700; line-height: 1.12; margin: 0 0 .5em; letter-spacing: .01em; text-wrap: balance; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
::selection { background: var(--pink); color: var(--bg); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--yellow); color: var(--bg); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* stepped "pixel" corners */
.notch {
  clip-path: polygon(
    0 var(--n), var(--n) var(--n), var(--n) 0,
    calc(100% - var(--n)) 0, calc(100% - var(--n)) var(--n), 100% var(--n),
    100% calc(100% - var(--n)), calc(100% - var(--n)) calc(100% - var(--n)), calc(100% - var(--n)) 100%,
    var(--n) 100%, var(--n) calc(100% - var(--n)), 0 calc(100% - var(--n))
  );
}
.pixelated { image-rendering: pixelated; image-rendering: crisp-edges; }

/* ---------- buttons ---------- */
.btn {
  --n: 4px;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .85em 1.4em;
  font-family: var(--font-pixel); font-size: 1.12rem; font-weight: 600; line-height: 1.2;
  color: var(--bg); background: var(--pink); background-image: var(--brand-warm);
  border: 0; cursor: pointer; text-decoration: none;
  box-shadow: inset -4px -4px 0 rgba(0, 0, 0, .28), inset 4px 4px 0 rgba(255, 255, 255, .28);
  transition: transform .1s steps(2), filter .15s;
}
.btn:hover { color: var(--bg); filter: brightness(1.08); transform: translateY(-2px); }
.btn:active { transform: translateY(2px); box-shadow: inset 4px 4px 0 rgba(0, 0, 0, .28); }
.btn:focus-visible { outline-offset: -7px; outline-color: var(--bg); outline-width: 2px; outline-style: dashed; }
.btn--ghost { background: rgba(31, 26, 61, .85); background-image: none; color: var(--text); box-shadow: inset 0 0 0 2px var(--border), inset -4px -4px 0 rgba(0, 0, 0, .25); }
.btn--ghost:hover { color: var(--text); }
.btn--ghost:focus-visible { outline-color: var(--yellow); }
.btn svg { width: 1em; height: 1em; flex: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 10, 28, .78);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 2px solid transparent;
  transition: border-color .2s, background-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--border); background: rgba(13, 11, 30, .9); }
.header-inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none; white-space: nowrap; }
.brand:hover { color: var(--text); }
.brand-mark { width: 42px; height: auto; transition: transform .25s steps(3); }
.brand:hover .brand-mark { transform: translateY(-2px) scale(1.05); }
.wordmark { font-family: var(--font-brand); font-weight: 750; font-size: 1.7rem; letter-spacing: -.02em; line-height: 1; color: var(--text); }
.wm-i { position: relative; }
.wm-i::before {
  content: ""; position: absolute; left: calc(50% + .01em); top: .22em; width: .125em; height: .125em;
  transform: translateX(-50%); background: linear-gradient(#c75aac, #9d4ca5); border-radius: .015em;
}
.nav { margin-left: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-family: var(--font-pixel); font-size: 1.1rem; color: var(--muted); text-decoration: none; padding: 6px 0; position: relative; }
.nav-links a:hover, .nav-links a[aria-current="page"], .nav-links a.is-active { color: var(--text); }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--brand-grad); transform: scaleX(0); transform-origin: left; transition: transform .2s steps(4); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after, .nav-links a.is-active::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: inline-flex; box-shadow: inset 0 0 0 2px var(--border); padding: 2px; }
.lang-switch button { font-family: var(--font-pixel); font-weight: 600; font-size: .95rem; background: transparent; color: var(--muted); border: 0; padding: 5px 10px; cursor: pointer; line-height: 1.2; }
.lang-switch button:hover { color: var(--text); }
.lang-switch button[aria-pressed="true"] { background: var(--pink); color: var(--bg); }
.menu-toggle { display: none; width: 42px; height: 42px; padding: 0; border: 0; background: var(--surface-2); box-shadow: inset 0 0 0 2px var(--border); color: var(--text); cursor: pointer; align-items: center; justify-content: center; }
.menu-toggle svg { width: 20px; height: 20px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: calc(var(--header-h) - 2px);
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-2); border-bottom: 2px solid var(--border);
    padding: 8px var(--gutter) 16px;
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { display: block; padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 1.2rem; }
  .nav-links li:last-child a { border-bottom: 0; }
  .nav-links a::after { display: none; }
}

/* ==========================================================
   HERO — a little game title screen
   ========================================================== */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(40px, 6vw, 80px) 0 calc(var(--px) * 38 + 24px);
  min-height: min(calc(100svh - var(--header-h)), 920px);
  display: flex; align-items: center;
}
.sky {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(70% 55% at 80% 30%, rgba(255, 233, 168, .07), transparent 70%),
    linear-gradient(180deg, #0b0a1c 0%, #110d2a 38%, #1d1340 62%, #2f1a55 82%, #3c1e5e 100%);
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.land { position: absolute; left: 0; right: 0; bottom: 0; overflow: hidden; }
.land > div {
  position: absolute; top: 0; bottom: 0; left: 0;
  width: calc(100% + var(--tile));
  background-repeat: repeat-x; background-position: left bottom; background-size: var(--tile) 100%;
  image-rendering: pixelated; image-rendering: crisp-edges;
  animation: drift var(--dur) linear infinite;
  will-change: transform;
}
.land--far  { height: calc(var(--px) * 48); --tile: calc(var(--px) * 160); --dur: 200s; }
.land--mid  { height: calc(var(--px) * 36); --tile: calc(var(--px) * 160); --dur: 110s; }
.land--near { height: calc(var(--px) * 20); --tile: calc(var(--px) * 160); --dur: 55s; }
.land--far > div  { background-image: url(../img/land-far.svg); }
.land--mid > div  { background-image: url(../img/land-mid.svg); }
.land--near > div { background-image: url(../img/land-near.svg); }
@keyframes drift { to { transform: translateX(calc(-1 * var(--tile))); } }
.scanlines {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(180deg, rgba(0, 0, 0, .22) 0 1px, transparent 1px 4px);
}

.hero-inner { position: relative; display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: 40px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-pixel); font-size: 1rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); margin-bottom: 20px; }
.eyebrow .blink { width: 10px; height: 10px; background: var(--green); animation: blink 1.2s steps(1) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.hero h1 { font-size: clamp(2.5rem, 5.2vw, 4.5rem); margin-bottom: 24px; text-shadow: 0 4px 0 rgba(0, 0, 0, .35); }
.hero h1 .hl {
  display: inline-block; color: var(--pink); text-shadow: none;
  background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(5px 5px 0 var(--brand-indigo));
}
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: #c3bde3; max-width: 34em; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 32px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; list-style: none; padding: 0; margin: 0; font-family: var(--font-pixel); color: var(--muted); font-size: 1rem; }
.hero-meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta li::before { content: ""; width: 8px; height: 8px; background: var(--yellow); }

.hero-art { position: relative; display: flex; justify-content: center; align-items: center; min-height: 340px; }
.moon { position: absolute; top: -6%; right: -2%; width: 46%; z-index: -1; }
.moon::before { content: ""; position: absolute; inset: -70%; background: radial-gradient(circle, rgba(255, 226, 150, .28) 0, rgba(255, 226, 150, .08) 35%, transparent 62%); }
.moon img { position: relative; width: 100%; height: auto; }
.hero-scene { width: min(380px, 100%); height: auto; animation: float 5s steps(10) infinite; filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .45)); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.hero-sparkle { position: absolute; width: 22px; animation: twinkle 2.4s steps(1) infinite; }
.hero-sparkle.s1 { left: 4%; top: 18%; }
.hero-sparkle.s2 { right: 2%; bottom: 20%; width: 16px; animation-delay: -1.2s; }
@keyframes twinkle { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .15; transform: scale(.6); } }

.scroll-cue { position: absolute; left: 50%; bottom: calc(var(--px) * 20 + 14px); transform: translateX(-50%); display: grid; place-items: center; gap: 6px; font-family: var(--font-pixel); font-size: .8rem; letter-spacing: .2em; color: var(--muted); text-decoration: none; }
.scroll-cue svg { width: 14px; height: 14px; animation: cue 1.4s steps(2) infinite; }
.scroll-cue:hover { color: var(--text); }
@keyframes cue { 50% { transform: translateY(4px); } }

/* ---------- marquee ---------- */
.marquee { position: relative; background: var(--bg-2); border-bottom: 2px solid var(--border); overflow: hidden; padding: 16px 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee-set { display: flex; align-items: center; gap: 30px; padding-right: 30px; font-family: var(--font-pixel); font-size: 1.3rem; font-weight: 600; letter-spacing: .12em; color: var(--faint); white-space: nowrap; }
.marquee-set i { width: 10px; height: 10px; flex: none; background: var(--pink); }
.marquee-set i:nth-of-type(4n + 2) { background: var(--cyan); }
.marquee-set i:nth-of-type(4n + 3) { background: var(--yellow); }
.marquee-set i:nth-of-type(4n + 4) { background: var(--green); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: clamp(80px, 10vw, 128px) 0; position: relative; }
.section--alt { background: var(--bg-2); z-index: 1; }
.section--alt::before, .section--alt::after, .site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; height: 12px;
  background: var(--teeth) repeat-x; background-size: 24px 12px;
}
.section--alt::before, .site-footer::before { top: -12px; }
.section--alt::after { bottom: -12px; transform: scaleY(-1); }
.section-head { max-width: 660px; margin-bottom: 52px; }
.section-head p { color: var(--muted); font-size: 1.12rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-pixel); font-size: .95rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); margin-bottom: 14px; }
.kicker::before { content: ""; width: 18px; height: 4px; background: currentColor; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.1rem); }

/* features */
.features { padding: clamp(64px, 8vw, 96px) 0 0; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { --n: 8px; background: var(--surface); box-shadow: inset 0 0 0 2px var(--border); padding: 30px 28px 28px; position: relative; }
.feature::after { content: ""; position: absolute; left: 28px; top: 0; width: 40px; height: 4px; background: var(--c, var(--pink)); }
.feature img { width: 56px; height: 48px; object-fit: contain; object-position: left bottom; margin-bottom: 20px; }
.feature h3 { font-size: 1.45rem; margin-bottom: .35em; }
.feature p { color: var(--muted); margin: 0; font-size: 1rem; }

/* games */
.games-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.game-card { --n: 8px; display: flex; flex-direction: column; background: var(--surface); box-shadow: inset 0 0 0 2px var(--border); transition: transform .15s steps(3), box-shadow .15s; }
.game-card:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 2px var(--pink); }
.game-thumb { position: relative; aspect-ratio: 8 / 5; background: var(--bg); overflow: hidden; }
.game-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s steps(3); }
.game-card:hover .game-thumb img { transform: scale(1.04); }
.game-thumb .status { --n: 3px; position: absolute; left: 12px; bottom: 12px; font-family: var(--font-pixel); font-size: .85rem; font-weight: 600; letter-spacing: .04em; padding: 4px 10px; background: var(--yellow); color: var(--bg); }
.game-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.game-genre { font-family: var(--font-pixel); color: var(--cyan); font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }
.game-body h3 { font-size: 1.65rem; margin-bottom: .4em; }
.game-body p { color: var(--muted); font-size: 1rem; }
.game-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.store-soon, .chip { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-pixel); font-weight: 600; font-size: .92rem; color: var(--text); padding: 7px 12px; background: var(--surface-2); box-shadow: inset 0 0 0 2px var(--border); }
.chip { color: var(--muted); }
.store-soon svg { width: 13px; height: 13px; color: var(--green); }
.games-note { margin-top: 28px; color: var(--faint); font-size: .95rem; }

/* process / level map */
.levels { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.level { position: relative; text-align: center; }
.level:not(:last-child)::after {
  content: ""; position: absolute; top: 46px; left: calc(50% + 58px); width: calc(100% + 28px - 116px); height: 4px;
  background: repeating-linear-gradient(90deg, var(--border) 0 10px, transparent 10px 18px);
}
.level-node { --n: 8px; position: relative; width: 96px; height: 96px; margin: 0 auto 22px; display: grid; place-items: center; background: var(--surface-2); box-shadow: inset 0 0 0 3px var(--c), inset -6px -6px 0 rgba(0, 0, 0, .25); }
.level-node img { width: 46px; height: 46px; object-fit: contain; }
.level-no { display: inline-block; font-family: var(--font-pixel); font-weight: 700; font-size: .9rem; letter-spacing: .08em; padding: 2px 10px; margin-bottom: 10px; background: var(--c); color: var(--bg); }
.level h3 { font-size: 1.35rem; margin-bottom: .4em; }
.level p { color: var(--muted); font-size: 1rem; margin: 0 auto; max-width: 22em; }

/* about */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
.about-copy p { color: var(--muted); font-size: 1.1rem; }
.about-copy p strong { color: var(--text); font-weight: 600; }
.principles { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.principles li { display: flex; gap: 14px; align-items: flex-start; }
.principles li::before { content: ""; flex: none; width: 12px; height: 12px; margin-top: .5em; background: var(--pink); box-shadow: 4px 4px 0 var(--purple-d); }
.principles b { font-family: var(--font-pixel); font-weight: 600; font-size: 1.15rem; display: block; color: var(--text); }
.principles span { color: var(--muted); }
.facts { --n: 8px; background: var(--surface); box-shadow: inset 0 0 0 2px var(--border); padding: 28px; }
.facts-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.facts-head img { width: 52px; height: auto; flex: none; }
.facts h3 { font-size: 1.3rem; color: var(--yellow); margin: 0 0 2px; }
.facts-head p { margin: 0; color: var(--faint); font-size: .92rem; line-height: 1.4; }
.facts dl { margin: 0; display: grid; }
.facts dl div { display: grid; grid-template-columns: 6.5em 1fr; gap: 12px; padding: 12px 0; border-top: 1px dashed var(--border); }
.facts dt { color: var(--faint); font-size: .95rem; }
.facts dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }

/* faq */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.faq-grid .section-head { position: sticky; top: calc(var(--header-h) + 32px); margin-bottom: 0; }
.faq-list { display: grid; gap: 12px; }
.faq { --n: 6px; background: var(--surface); box-shadow: inset 0 0 0 2px var(--border); transition: box-shadow .15s; }
.faq[open] { box-shadow: inset 0 0 0 2px var(--cyan); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; font-family: var(--font-pixel); font-weight: 600; font-size: 1.18rem; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus-visible { outline-offset: -6px; }
.faq summary:hover { color: #fff; }
.faq summary i { flex: none; position: relative; width: 16px; height: 16px; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; background: var(--pink); }
.faq summary i::before { left: 0; right: 0; top: 6px; height: 4px; }
.faq summary i::after { top: 0; bottom: 0; left: 6px; width: 4px; }
.faq[open] summary i::after { display: none; }
.faq[open] summary i::before { background: var(--cyan); }
.faq-body { padding: 0 22px 22px; color: var(--muted); }
.faq-body p { margin: 0; }

/* contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-card { --n: 8px; display: flex; flex-direction: column; background: var(--surface); box-shadow: inset 0 0 0 2px var(--border); padding: 28px 26px; color: var(--text); text-decoration: none; transition: transform .15s steps(3), box-shadow .15s; }
a.contact-card:hover { color: var(--text); transform: translateY(-4px); box-shadow: inset 0 0 0 2px var(--cyan); }
.contact-card img { width: 48px; height: 40px; object-fit: contain; object-position: left bottom; margin-bottom: 18px; }
.contact-card h3 { font-size: 1.35rem; margin-bottom: .35em; }
.contact-card p { color: var(--muted); font-size: 1rem; margin: 0; }
.contact-card .email { font-family: var(--font-pixel); font-weight: 600; font-size: 1.2rem; color: var(--cyan); margin: 4px 0 10px; overflow-wrap: anywhere; }
.contact-card .more { margin-top: auto; padding-top: 16px; font-family: var(--font-pixel); color: var(--cyan); font-weight: 600; }
.contact-card--primary { box-shadow: inset 0 0 0 2px var(--pink); background: linear-gradient(160deg, rgba(255, 77, 141, .14), var(--surface) 60%); }

/* ---------- footer ---------- */
.site-footer { position: relative; background: var(--bg-2); padding: 64px 0 28px; margin-top: 12px; font-size: .98rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { color: var(--muted); max-width: 26em; margin-top: 16px; }
.footer-brand .brand-mark { width: 48px; }
.footer-brand .wordmark { font-size: 1.95rem; }
.site-footer h4 { font-size: 1.05rem; color: var(--text); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer ul a { color: var(--muted); text-decoration: none; }
.site-footer ul a:hover { color: var(--text); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 22px; border-top: 1px solid var(--border); color: var(--faint); font-size: .88rem; }
.footer-bottom p { margin: 0; }

/* ---------- legal pages ---------- */
.page-hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 84px) 0 clamp(32px, 5vw, 48px); background: linear-gradient(180deg, #0b0a1c, #1a1238); border-bottom: 2px solid var(--border); }
.page-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px); background-size: 32px 32px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); mask-image: linear-gradient(90deg, transparent, #000 60%); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); margin-bottom: 12px; }
.page-hero p { color: var(--muted); margin: 0; }
.page-hero-art { position: absolute; right: max(24px, calc(50% - 556px)); bottom: -2px; width: 112px; z-index: 1; }
.breadcrumb { font-family: var(--font-pixel); font-size: 1rem; margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); }
.legal { padding: clamp(40px, 6vw, 64px) 0 clamp(72px, 9vw, 110px); }
.legal .container { max-width: 900px; }
.legal--toc .container { max-width: var(--container); }
.legal-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; align-items: start; }
.legal-grid .toc { position: sticky; top: calc(var(--header-h) + 24px); margin: 0; max-height: calc(100vh - var(--header-h) - 48px); overflow: auto; }
.legal-body { max-width: 760px; }
.legal article { font-size: 1.04rem; }
.legal h2 { font-size: clamp(1.45rem, 3vw, 1.8rem); margin-top: 2.2em; padding-top: .2em; color: var(--text); }
.legal-body > h2:first-child, .legal article > h2:first-child { margin-top: 0; }
.legal h3 { font-size: 1.25rem; margin-top: 1.6em; color: var(--yellow); }
.legal p, .legal li { color: #d4cff0; }
.legal ul, .legal ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.legal li { margin-bottom: .45em; }
.legal li::marker { color: var(--pink); }
.legal strong { color: var(--text); }
.callout { --n: 6px; background: var(--surface); box-shadow: inset 0 0 0 2px var(--border); padding: 20px 22px; margin: 0 0 1.6em; }
.callout p:last-child { margin-bottom: 0; }
.callout--accent { box-shadow: inset 0 0 0 2px var(--pink); background: linear-gradient(160deg, rgba(255, 77, 141, .12), var(--surface) 60%); }
.steps { counter-reset: step; list-style: none; padding: 0 !important; display: grid; gap: 12px; }
.steps li { counter-increment: step; position: relative; padding-left: 48px; margin: 0; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 32px; height: 32px; display: grid; place-items: center; font-family: var(--font-pixel); font-weight: 700; background: var(--pink); color: var(--bg); box-shadow: inset -3px -3px 0 rgba(0, 0, 0, .25); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 1.6em; }
.two-col .callout { margin: 0; }
.two-col h3 { margin-top: 0; }
.two-col ul { margin-bottom: 0; }
.toc { --n: 6px; background: var(--surface); box-shadow: inset 0 0 0 2px var(--border); padding: 20px 22px; margin-bottom: 2.4em; }
.toc b { font-family: var(--font-pixel); font-size: 1.1rem; display: block; margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 1.4em; }
.toc li { margin-bottom: 4px; }
.toc a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.toc a:hover { color: var(--cyan); }
.toc a.is-active { color: var(--text); font-weight: 600; }
.table-wrap { overflow-x: auto; margin-bottom: 1.4em; }
.legal table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; color: #d4cff0; }
.legal th { font-family: var(--font-pixel); color: var(--text); font-size: 1rem; background: var(--surface); }

/* ---------- 404 ---------- */
.notfound { min-height: calc(100vh - var(--header-h)); display: grid; place-items: center; text-align: center; padding: 64px 0; }
.notfound .big { font-family: var(--font-pixel); font-weight: 700; font-size: clamp(5rem, 18vw, 9rem); line-height: 1; color: var(--pink); text-shadow: 8px 8px 0 var(--purple-d); margin-bottom: 12px; }
.notfound img { width: 120px; margin: 0 auto 24px; animation: float 2.4s steps(6) infinite; }
.notfound p { color: var(--muted); max-width: 28em; margin-inline: auto; margin-bottom: 28px; }

/* ---------- scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s steps(6), transform .6s steps(6); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .levels { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .level:nth-child(2)::after { display: none; }
}
@media (max-width: 980px) {
  .hero { min-height: 0; }
  .hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .hero-art { order: -1; min-height: 0; }
  .hero-scene { width: min(260px, 62vw); }
  .moon { width: 34%; right: 6%; }
  .scroll-cue { display: none; }
  .games-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .faq-grid { grid-template-columns: 1fr; gap: 40px; }
  .faq-grid .section-head { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .legal-grid { grid-template-columns: 1fr; gap: 0; }
  .legal-grid .toc { position: static; max-height: none; margin-bottom: 2.4em; }
  .legal-body { max-width: none; }
  .page-hero-art { display: none; }
}
@media (max-width: 720px) {
  :root { --gutter: 16px; --header-h: 62px; }
  .brand { gap: 9px; }
  .brand-mark { width: 36px; }
  .wordmark { font-size: 1.45rem; }
  .features-grid, .games-grid, .contact-grid, .two-col { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 auto; }
  .facts dl div { grid-template-columns: 1fr; gap: 2px; }
  .levels { grid-template-columns: 1fr; row-gap: 32px; }
  .level { display: grid; grid-template-columns: 76px 1fr; gap: 0 18px; text-align: left; align-items: start; }
  .level-node { width: 76px; height: 76px; margin: 0; grid-row: span 3; }
  .level-node img { width: 38px; height: 38px; }
  .level-no { justify-self: start; }
  .level p { margin: 0; }
  .level:not(:last-child)::after, .level:nth-child(2)::after {
    display: block; top: 88px; left: 36px; width: 4px; height: calc(100% - 64px);
    background: repeating-linear-gradient(180deg, var(--border) 0 10px, transparent 10px 18px);
  }
  .marquee-set { font-size: 1.1rem; }
}
@media (max-width: 380px) {
  .wordmark { font-size: 1.3rem; }
  .brand-mark { width: 32px; }
  .lang-switch button { padding: 5px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
}
