/* =====================================================================
   ALTAN GAMES - site.css
   Studio base: ink + gold. Each game owns a colour world via [data-game].
   ===================================================================== */

@font-face {
  font-family: "Chakra Petch";
  src: url("/assets/fonts/ChakraPetch-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Chakra Petch";
  src: url("/assets/fonts/ChakraPetch-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #090a14;
  --ink-2: #0f1120;
  --ink-3: #171a2d;
  --line: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.18);
  --text: #eef0f8;
  --soft: #d3d6e4;
  --muted: #a3a8c0;
  --gold: #ffbe3c;
  --gold-2: #ff8220;
  --gold-hi: #ffd666;

  /* theme slots (studio defaults) */
  --accent: var(--gold);
  --accent-2: var(--gold-2);
  --on-accent: #1a0e00;
  --theme-bg: #0c0d1b;
  --theme-bg-2: #2a1d10;
  --glow: rgba(255, 190, 60, 0.35);
  --focus: 50% 50%;
  --hero-focus: var(--focus);

  --font-display: "Chakra Petch", "Segoe UI", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 44px);
  --hh: 68px;
  --r-sm: 12px;
  --r: 20px;
  --r-lg: 28px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --space: clamp(72px, 10vw, 144px);
}

[data-game="yildiz-rotasi"] {
  --accent: #3ee6ff;
  --accent-2: #ff5ad9;
  --on-accent: #05061a;
  --theme-bg: #0c0a2a;
  --theme-bg-2: #2b1f80;
  --glow: rgba(62, 230, 255, 0.32);
  --focus: 52% 45%;
}
[data-game="kervan"] {
  --accent: #ff9a3d;
  --accent-2: #f6d59a;
  --on-accent: #220c00;
  --theme-bg: #1a0909;
  --theme-bg-2: #6e2019;
  --glow: rgba(255, 140, 50, 0.34);
  --focus: 58% 60%;
}
[data-game="top-cambazi"] {
  --accent: #ff4fb4;
  --accent-2: #3ff0ff;
  --accent-3: #ffe44d;
  --on-accent: #1d0322;
  --theme-bg: #12042a;
  --theme-bg-2: #45107a;
  --glow: rgba(255, 79, 180, 0.36);
  --focus: 74% 45%;
  --hero-focus: 100% 45%;
  --art-focus: 8% 50%;
}

/* ---------------------------------------------------------------- reset */
*,
*::before,
*::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hh) + 16px);
  background: var(--ink);
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; line-height: 1.08; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }
main { display: block; outline: none; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

.ico { width: 1.15em; height: 1.15em; flex: none; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container-narrow {
  width: 100%;
  max-width: calc(760px + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--gold);
  color: #1a0e00;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: none; }

/* ---------------------------------------------------------------- type */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
}
.eyebrow--theme { color: var(--accent); }
.eyebrow--theme::before { background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

.display {
  font-size: clamp(2.7rem, min(7.4vw, 9.4vh), 6.8rem);
  line-height: 0.95;
  letter-spacing: -0.015em;
  max-width: 15ch;
  background: linear-gradient(175deg, #ffffff 35%, #ffe2a0 70%, #ffb13c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.06em;
}
.display--md { font-size: clamp(2.4rem, 5.6vw, 4.8rem); }
.h-section {
  font-size: clamp(1.9rem, 4.2vw, 3.3rem);
  letter-spacing: -0.01em;
  color: #fff;
}
.h-section--sm { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 20px; }
.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.6;
  color: var(--soft);
  max-width: 60ch;
}
.section-head { display: grid; gap: 16px; margin-bottom: clamp(32px, 5vw, 56px); }

.prose p { color: var(--soft); line-height: 1.78; max-width: 68ch; }
.prose p + p { margin-top: 1.1em; }
.prose .lead { color: #fff; margin-bottom: 1.4em; }

/* ---------------------------------------------------------------- buttons */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-top: 30px; }
.actions--center { justify-content: center; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s, border-color 0.25s;
}
.btn .ico { transition: transform 0.25s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover .ico { transform: translateX(3px); }
.btn--gold {
  background: linear-gradient(135deg, var(--gold-hi), var(--gold) 45%, var(--gold-2));
  color: #1a0e00;
  box-shadow: 0 10px 34px -10px rgba(255, 150, 40, 0.7);
}
.btn--gold:hover { box-shadow: 0 16px 44px -10px rgba(255, 150, 40, 0.85); }
.btn--ghost {
  border-color: var(--line-2);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { border-color: rgba(255, 255, 255, 0.45); background: rgba(255, 255, 255, 0.08); }
.btn--theme {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--on-accent);
  box-shadow: 0 12px 36px -12px var(--glow);
}
.btn--theme:hover { box-shadow: 0 18px 48px -12px var(--glow); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { box-shadow: 0 14px 34px -12px rgba(0, 0, 0, 0.6); }

.round-btn {
  display: inline-grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s, transform 0.2s var(--ease);
}
.round-btn:hover:not(:disabled) { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.round-btn:disabled { opacity: 0.35; cursor: default; }

/* store button (own artwork, not the official badge) */
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 8px 20px 8px 16px;
  border-radius: 14px;
  background: #05060c;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  text-decoration: none;
  line-height: 1.1;
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
}
a.store-btn:hover { transform: translateY(-2px); border-color: #fff; box-shadow: 0 12px 30px -12px var(--glow); }
.store-btn .play-glyph { width: 24px; height: 26px; }
.store-btn__text { display: grid; gap: 3px; }
.store-btn__small { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.store-btn__big { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; }
.store-btn--soon { border-style: dashed; border-color: rgba(255, 255, 255, 0.3); background: rgba(5, 6, 12, 0.72); cursor: default; }
.store-btn--soon .play-glyph { filter: saturate(0.75); opacity: 0.85; }
.store-btn--lg { min-height: 60px; padding-inline: 18px 24px; }
.store-btn--lg .store-btn__big { font-size: 1.12rem; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: rgba(9, 10, 20, 0.66);
  border: 1px solid var(--line-2);
  color: #fff;
  backdrop-filter: blur(8px);
}
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }
.status--live .status__dot { background: #43f59b; box-shadow: 0 0 0 4px rgba(67, 245, 155, 0.22); }
.status--soon .status__dot { animation: pulse 2.2s ease-in-out infinite; }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  color: #fff;
  background: color-mix(in srgb, var(--accent) 10%, rgba(255, 255, 255, 0.03));
  border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
}

.app-icon {
  border-radius: 22%;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.12);
  flex: none;
  object-fit: cover;
}

/* ---------------------------------------------------------------- header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
  background: linear-gradient(180deg, rgba(9, 10, 20, 0.72), rgba(9, 10, 20, 0));
}
.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(9, 10, 20, 0.78);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
}
.site-header__inner {
  max-width: calc(1440px + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
  height: var(--hh);
  display: flex;
  align-items: center;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  margin-right: auto;
  border-radius: 10px;
}
.logo-mark { width: 38px; height: 38px; filter: drop-shadow(0 4px 14px rgba(255, 150, 40, 0.35)); }
.brand__word { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; letter-spacing: 0.16em; }
.brand__word span { color: var(--gold); margin-left: 0.4em; }
.brand--lg .logo-mark { width: 48px; height: 48px; }
.brand--lg .brand__word { font-size: 1.3rem; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav__link {
  position: relative;
  padding: 10px 14px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--soft);
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}
.nav__link:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.nav__link[aria-current="page"] { color: #fff; }
.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: #fff;
  text-decoration: none;
  transition: border-color 0.2s, background-color 0.2s;
}
.lang-switch:hover { border-color: var(--gold); background: rgba(255, 190, 60, 0.08); }
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.05);
  font-family: var(--font-display);
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 860px) {
  .brand__word { font-size: 1rem; }
  /* without JS: nav becomes a scrollable row under the brand */
  html:not(.js) { --hh: 112px; }
  html:not(.js) .site-header__inner { flex-wrap: wrap; height: auto; min-height: var(--hh); padding-block: 10px; gap: 6px; }
  html:not(.js) .nav { width: 100%; overflow-x: auto; scrollbar-width: none; }
  html:not(.js) .nav__link { white-space: nowrap; }

  .js .nav-toggle:not([hidden]) { display: inline-flex; }
  .js .nav {
    position: fixed;
    inset: var(--hh) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px var(--gutter) 28px;
    background: rgba(9, 10, 20, 0.97);
    border-bottom: 1px solid var(--line);
    max-height: calc(100dvh - var(--hh));
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0s 0.25s;
  }
  .js .is-open .nav { visibility: visible; opacity: 1; transform: none; transition: opacity 0.25s, transform 0.25s var(--ease); }
  .js .nav__link { font-size: 1.35rem; padding: 14px 8px; border-radius: 12px; border-bottom: 1px solid var(--line); }
  .js .nav__link[aria-current="page"]::after { left: 8px; right: auto; width: 32px; bottom: 8px; }
  .js .lang-switch { margin: 16px 0 0; align-self: flex-start; font-size: 1.05rem; padding: 12px 18px; }
}

/* ---------------------------------------------------------------- sky / starfield (CSS only) */
.sky { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.sky::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 55% at 82% 8%, rgba(255, 160, 50, 0.22), transparent 70%),
    radial-gradient(55% 60% at 8% 30%, rgba(92, 60, 220, 0.24), transparent 70%),
    radial-gradient(70% 50% at 50% 100%, rgba(255, 80, 160, 0.1), transparent 70%),
    linear-gradient(180deg, #0b0c1c, var(--ink));
}
.sky__stars {
  position: absolute;
  inset: -50% 0 0;
  background-image:
    radial-gradient(1.2px 1.2px at 20px 30px, #fff, transparent),
    radial-gradient(1px 1px at 120px 80px, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1.4px 1.4px at 170px 150px, rgba(255, 220, 160, 0.9), transparent),
    radial-gradient(1px 1px at 60px 190px, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1px 1px at 230px 40px, rgba(170, 220, 255, 0.8), transparent);
  background-size: 260px 220px;
  opacity: 0.55;
  animation: drift 120s linear infinite;
}
.sky__stars--2 { background-size: 380px 340px; opacity: 0.35; animation-duration: 200s; transform: scale(1.4); }
.sky__sun {
  position: absolute;
  width: clamp(320px, 46vw, 720px);
  aspect-ratio: 1;
  right: -8%;
  top: -18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 200, 90, 0.32), rgba(255, 130, 32, 0.12) 45%, transparent 70%);
  filter: blur(10px);
  animation: breathe 9s ease-in-out infinite;
}
@keyframes drift { to { transform: translateY(50%); } }
@keyframes breathe { 50% { transform: scale(1.08); opacity: 0.8; } }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent) 6%, transparent); } }

/* ---------------------------------------------------------------- home hero */
.hero-home {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(28px, 4vh, 52px);
  padding: calc(var(--hh) + clamp(24px, 5vh, 72px)) 0 clamp(24px, 4vh, 48px);
  overflow: hidden;
}
.hero-home__lead { margin-top: 20px; }
.hero-home .actions { margin-top: 26px; }

.showcase {
  display: flex;
  gap: 14px;
  width: 100%;
  max-width: calc(1440px + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
  height: clamp(300px, 42vh, 540px);
}
.showcase__panel {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--r-lg);
  color: #fff;
  text-decoration: none;
  isolation: isolate;
  background: var(--theme-bg);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 30px 80px -40px rgba(0, 0, 0, 0.9);
  transition: flex-grow 0.7s var(--ease), box-shadow 0.4s;
}
.showcase:not(:hover):not(:focus-within) .showcase__panel:first-child { flex-grow: 1.7; }
.showcase__panel:hover,
.showcase__panel:focus-visible { flex-grow: 2; box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 60%, transparent), 0 30px 90px -30px var(--glow); }
.showcase__panel:focus-visible { outline-offset: 4px; }
.showcase__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus);
  z-index: -2;
  transform: scale(1.04);
  transition: transform 1.2s var(--ease), filter 0.6s;
  filter: saturate(0.9) brightness(0.86);
}
.showcase__panel:hover .showcase__img,
.showcase__panel:focus-visible .showcase__img { transform: scale(1.09); filter: saturate(1.08) brightness(1); }
.showcase__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(0deg, color-mix(in srgb, var(--theme-bg) 96%, transparent) 0%, color-mix(in srgb, var(--theme-bg) 70%, transparent) 30%, transparent 64%),
    linear-gradient(180deg, rgba(9, 10, 20, 0.45), transparent 26%);
}
.showcase__num {
  position: absolute;
  top: 18px;
  left: 22px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.showcase__body {
  position: absolute;
  inset: auto 0 0 0;
  display: grid;
  justify-items: start;
  gap: 8px;
  padding: clamp(18px, 2.2vw, 30px);
}
.showcase__icon { width: 60px; height: 60px; margin-bottom: 6px; }
.showcase__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.1vw, 2.1rem);
  line-height: 1.05;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
}
.showcase__tag { color: var(--soft); font-size: 0.98rem; max-width: 34ch; line-height: 1.45; }
.showcase__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s, transform 0.4s var(--ease);
}
.showcase__panel:hover .showcase__cta,
.showcase__panel:focus-visible .showcase__cta,
.showcase:not(:hover):not(:focus-within) .showcase__panel:first-child .showcase__cta { opacity: 1; transform: none; }
@media (hover: none) { .showcase__cta { opacity: 1; transform: none; } }

@media (max-width: 1100px) and (min-width: 761px) {
  .showcase__tag { display: none; }
  .showcase__panel:hover .showcase__tag,
  .showcase__panel:focus-visible .showcase__tag,
  .showcase:not(:hover):not(:focus-within) .showcase__panel:first-child .showcase__tag { display: block; }
}
@media (max-width: 760px) {
  .hero-home { min-height: auto; justify-content: flex-start; }
  .showcase {
    height: auto;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
    padding-bottom: 6px;
  }
  .showcase::-webkit-scrollbar { display: none; }
  .showcase__panel,
  .showcase:not(:hover):not(:focus-within) .showcase__panel:first-child {
    flex: 0 0 80%;
    height: 400px;
    scroll-snap-align: start;
  }
  .showcase__panel:hover { flex-grow: 0; }
}

/* ---------------------------------------------------------------- games intro */
.games-intro { padding-top: var(--space); padding-bottom: clamp(8px, 2vw, 24px); display: grid; gap: 18px; }
.games-intro .eyebrow { margin-bottom: 0; }

/* ---------------------------------------------------------------- per-game feature section (home) */
.feature-game {
  position: relative;
  isolation: isolate;
  padding-block: clamp(72px, 10vw, 150px);
  overflow: clip;
}
.feature-game__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(55% 65% at 28% 45%, color-mix(in srgb, var(--theme-bg-2) 75%, transparent), transparent 72%),
    linear-gradient(180deg, var(--ink) 0%, var(--theme-bg) 16%, var(--theme-bg) 84%, var(--ink) 100%);
}
.feature-game.is-flipped .feature-game__bg {
  background:
    radial-gradient(55% 65% at 72% 45%, color-mix(in srgb, var(--theme-bg-2) 75%, transparent), transparent 72%),
    linear-gradient(180deg, var(--ink) 0%, var(--theme-bg) 16%, var(--theme-bg) 84%, var(--ink) 100%);
}
.feature-game__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.6;
  pointer-events: none;
}
/* world motifs */
[data-game="yildiz-rotasi"] .feature-game__bg::before,
.page-game[data-game="yildiz-rotasi"] .band::before {
  background-image:
    radial-gradient(1.3px 1.3px at 30px 40px, #fff, transparent),
    radial-gradient(1px 1px at 140px 110px, rgba(120, 230, 255, 0.9), transparent),
    radial-gradient(1.4px 1.4px at 220px 60px, rgba(255, 140, 230, 0.8), transparent),
    radial-gradient(1px 1px at 90px 200px, #fff, transparent);
  background-size: 260px 240px;
  mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
}
[data-game="kervan"] .feature-game__bg::before {
  background:
    radial-gradient(circle at 50% 120%, rgba(255, 170, 80, 0.28) 0 18%, transparent 19%),
    repeating-linear-gradient(172deg, transparent 0 46px, rgba(246, 213, 154, 0.05) 46px 48px);
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 80%, transparent);
}
[data-game="top-cambazi"] .feature-game__bg::before {
  background: repeating-conic-gradient(from 0deg at 50% 110%, rgba(255, 79, 180, 0.08) 0 6deg, transparent 6deg 14deg);
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 75%, transparent);
}

.feature-game__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(36px, 5.5vw, 88px);
  align-items: center;
}
.feature-game.is-flipped .feature-game__media { order: 2; }
.feature-game__media { position: relative; }
.feature-game__art {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--theme-bg-2);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 50px 120px -40px var(--glow), 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}
.feature-game__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, transparent 50%, color-mix(in srgb, var(--theme-bg) 55%, transparent));
}
.feature-game__img { width: 100%; height: 100%; object-fit: cover; object-position: var(--art-focus, var(--focus)); }

.has-landscape .feature-game__shots {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: -11% 7% 0;
}
.has-landscape .feature-game__shot--2 { transform: translateY(22px); }
.has-portrait .feature-game__media { padding-bottom: 12%; }
.has-portrait .feature-game__shots {
  position: absolute;
  right: 5%;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  gap: 14px;
}
.has-portrait.is-flipped .feature-game__shots { right: auto; left: 5%; }
.has-portrait .feature-game__shot { width: clamp(92px, 11vw, 158px); }
.has-portrait .feature-game__shot--2 { transform: translateY(-26px); }

.frame { margin: 0; overflow: hidden; aspect-ratio: var(--ar); background: #05060c; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame--wide {
  border-radius: 14px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16), 0 24px 50px -18px rgba(0, 0, 0, 0.85);
}
.frame--phone {
  border-radius: 22px;
  padding: 5px;
  background: linear-gradient(160deg, #2a2b3a, #0b0b12);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 24px 50px -16px rgba(0, 0, 0, 0.9), 0 0 40px -10px var(--glow);
}
.frame--phone img { border-radius: 17px; }

.feature-game__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px; margin-bottom: 26px; }
.feature-game__icon { width: 72px; height: 72px; }
.feature-game__count { font-family: var(--font-display); font-weight: 600; color: var(--muted); letter-spacing: 0.12em; font-size: 0.9rem; }
.feature-game__name {
  font-size: clamp(2.3rem, 4.8vw, 4.4rem);
  line-height: 0.98;
  color: #fff;
  text-shadow: 0 0 60px var(--glow);
}
.feature-game__tagline {
  margin-top: 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.1rem, 1.7vw, 1.45rem);
  color: var(--accent);
  line-height: 1.3;
}
.feature-game__summary { margin-top: 18px; color: var(--soft); line-height: 1.7; max-width: 56ch; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; }
.stat { display: flex; flex-direction: column-reverse; gap: 6px; padding: 4px 18px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__value {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 2.8vw, 2.5rem);
  line-height: 1;
  background: linear-gradient(135deg, #fff 10%, var(--accent) 60%, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.05em;
}
.stat__label { font-size: 0.86rem; color: var(--muted); line-height: 1.35; }
.stats--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 0; margin-top: 30px; }
.stats--compact .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
.stats--band { gap: 0; }
.stats--band .stat { padding: 8px clamp(14px, 3vw, 40px); }
.stats--band .stat__value { font-size: clamp(2rem, 4.4vw, 3.6rem); }
.stats--band .stat__label { font-size: 0.95rem; }

/* ---------------------------------------------------------------- values */
.values { position: relative; padding-block: var(--space); }
.values__grid { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.value {
  position: relative;
  padding: 30px 26px 32px;
  border-radius: var(--r);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), border-color 0.35s;
}
.value:hover { transform: translateY(-4px); border-color: rgba(255, 190, 60, 0.4); }
.value__glyph {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  color: var(--gold);
  background: rgba(255, 190, 60, 0.1);
  margin-bottom: 22px;
}
.value__glyph svg { width: 30px; height: 30px; }
.value__title { font-size: 1.3rem; margin-bottom: 10px; color: #fff; }
.value p { color: var(--soft); font-size: 0.98rem; line-height: 1.65; }

/* ---------------------------------------------------------------- FAQ */
.faq-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  gap: clamp(28px, 5vw, 80px);
  padding-block: var(--space);
}
.faq-section__head { align-self: start; position: sticky; top: calc(var(--hh) + 28px); }
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 4px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  line-height: 1.35;
  color: #fff;
  border-radius: 8px;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::marker { content: ""; }
.faq__q:hover { color: var(--accent); }
.faq__icon { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); }
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease);
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__icon { background: var(--accent); border-color: transparent; color: var(--on-accent); }
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__a { padding: 0 4px 24px; }
.faq__a p { color: var(--soft); line-height: 1.75; max-width: 70ch; }

/* ---------------------------------------------------------------- CTA */
.cta,
.contact { padding-bottom: var(--space); }
.contact { padding-top: clamp(24px, 4vw, 48px); }
.cta__card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: clamp(24px, 3vw, 40px);
  padding: clamp(44px, 7vw, 96px) clamp(22px, 5vw, 72px);
  text-align: center;
  color: #1a0e00;
  background: linear-gradient(135deg, #ffd666 0%, #ffbe3c 40%, #ff8220 100%);
  box-shadow: 0 40px 120px -40px rgba(255, 140, 30, 0.6);
}
.cta__glow {
  position: absolute;
  inset: -40% -10% auto auto;
  width: 60%;
  aspect-ratio: 1;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.55), transparent 65%);
}
.cta__card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(115deg, transparent 0 22px, rgba(255, 255, 255, 0.08) 22px 24px);
}
.cta__title { font-size: clamp(2rem, 5.2vw, 4rem); color: #160b00; max-width: 18ch; margin-inline: auto; }
.cta__text { margin: 18px auto 0; max-width: 56ch; font-size: clamp(1.02rem, 1.4vw, 1.18rem); line-height: 1.6; color: #2b1700; }
.cta__mail { font-family: var(--font-display); font-weight: 700; color: #160b00; font-size: 1.05rem; text-decoration: underline; text-underline-offset: 0.25em; word-break: break-all; }
.cta__card :focus-visible { outline-color: #160b00; }

/* ---------------------------------------------------------------- footer */
.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-top: 1px solid var(--line);
  padding-top: clamp(56px, 8vw, 96px);
  background: linear-gradient(180deg, var(--ink), #06070e);
}
.site-footer__glow {
  position: absolute;
  z-index: -1;
  width: 70%;
  height: 300px;
  left: 50%;
  top: -180px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(255, 170, 50, 0.13), transparent 70%);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(0, 1.7fr);
  gap: clamp(28px, 4vw, 56px);
}
.site-footer__brand { display: grid; justify-items: start; gap: 18px; align-content: start; }
.site-footer__tagline { color: var(--muted); max-width: 32ch; }
.footer-mail,
.footer-lang {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
}
.footer-mail:hover,
.footer-lang:hover { color: var(--gold); }
.site-footer__h {
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  font-weight: 600;
}
.site-footer__col ul { list-style: none; display: grid; gap: 10px; }
.site-footer__col a { color: var(--soft); text-decoration: none; border-radius: 6px; }
.site-footer__col a:hover { color: #fff; text-decoration: underline; }
.footer-legal { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; }
.footer-legal__name { font-family: var(--font-display); font-weight: 600; color: #fff; margin-bottom: 8px; }
.footer-legal ul { gap: 6px; font-size: 0.94rem; }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: clamp(40px, 6vw, 72px);
  padding-block: 26px 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
.to-top { color: var(--soft); text-decoration: none; border-radius: 6px; }
.to-top:hover { color: var(--gold); }

/* ---------------------------------------------------------------- breadcrumbs */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 0.9rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin: 0 10px; opacity: 0.5; }
.crumbs a { color: var(--soft); text-decoration: none; border-radius: 4px; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs [aria-current] { color: #fff; }

/* ---------------------------------------------------------------- game page */
.g-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(92vh, 920px);
  min-height: min(92svh, 920px);
  display: flex;
  padding: calc(var(--hh) + 20px) 0 clamp(48px, 7vw, 96px);
  background: var(--theme-bg);
}
.g-hero__art { position: absolute; inset: 0 0 0 auto; width: 66%; z-index: -2; }
.g-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--hero-focus);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 38%);
  animation: heroIn 1.6s var(--ease) both;
}
@keyframes heroIn { from { transform: scale(1.06); opacity: 0.3; } }
.g-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, var(--theme-bg) 0%, color-mix(in srgb, var(--theme-bg) 88%, transparent) 34%, transparent 62%),
    linear-gradient(0deg, var(--ink) 0%, color-mix(in srgb, var(--ink) 40%, transparent) 22%, transparent 45%),
    linear-gradient(180deg, rgba(9, 10, 20, 0.6), transparent 22%),
    radial-gradient(40% 60% at 10% 80%, var(--glow), transparent 70%);
}
.g-hero__inner { display: flex; flex-direction: column; gap: 32px; }
.g-hero__content { margin-top: auto; max-width: 640px; }
.g-hero__icon { width: 96px; height: 96px; margin-bottom: 26px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15), 0 20px 60px -10px var(--glow); }
.g-hero__title {
  font-size: clamp(2.6rem, 6.2vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: -0.015em;
  color: #fff;
  text-shadow: 0 0 80px var(--glow), 0 4px 30px rgba(0, 0, 0, 0.5);
}
.g-hero__tagline {
  margin-top: 18px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  line-height: 1.3;
  color: var(--accent);
  max-width: 34ch;
}
.chips--hero .chip { background: rgba(9, 10, 20, 0.5); backdrop-filter: blur(6px); }

@media (max-width: 959px) {
  .g-hero { flex-direction: column; min-height: 0; padding-top: var(--hh); }
  .g-hero__art { position: relative; inset: auto; width: 100%; aspect-ratio: 16 / 9; max-height: 56vh; }
  .g-hero__img {
    object-position: 50% 50%;
    -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  }
  .g-hero__scrim { background: radial-gradient(60% 40% at 20% 70%, var(--glow), transparent 70%), linear-gradient(0deg, var(--ink), transparent 40%); }
  .g-hero__inner { margin-top: -18px; gap: 22px; }
  .g-hero__content { margin-top: 0; }
  .g-hero__icon { width: 80px; height: 80px; margin-top: -44px; margin-bottom: 20px; position: relative; }
  .g-hero .crumbs { order: 2; }
  /* Top Cambazı kapağında yazı görselin içinde: mobilde yazısız sağ yarıyı göster */
  .g-hero[data-game="top-cambazi"] .g-hero__art, [data-game="top-cambazi"] .g-hero__art { aspect-ratio: 5 / 4; }
  [data-game="top-cambazi"] .g-hero__img {
    object-position: 100% 50%;
    -webkit-mask-image: linear-gradient(90deg, transparent 14%, #000 46%);
    mask-image: linear-gradient(90deg, transparent 14%, #000 46%);
  }
}

.band {
  position: relative;
  isolation: isolate;
  padding-block: clamp(32px, 5vw, 56px);
  border-block: 1px solid var(--line);
  background: linear-gradient(90deg, color-mix(in srgb, var(--theme-bg-2) 40%, transparent), color-mix(in srgb, var(--theme-bg) 50%, transparent));
}
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.6; }

.g-story {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr);
  gap: clamp(28px, 5vw, 80px);
  padding-block: var(--space) calc(var(--space) * 0.7);
}
.g-story__head { align-self: start; position: sticky; top: calc(var(--hh) + 28px); }
.g-story__body .lead { font-size: clamp(1.2rem, 1.9vw, 1.5rem); line-height: 1.5; }

.g-features { position: relative; padding-block: calc(var(--space) * 0.5) var(--space); }
.g-features .h-section { margin-bottom: clamp(28px, 4vw, 48px); }
.feat-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px; }
@media (min-width: 761px) { .feat-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.feat {
  position: relative;
  padding: 30px 28px 32px;
  border-radius: var(--r);
  background: linear-gradient(165deg, color-mix(in srgb, var(--theme-bg-2) 32%, rgba(255, 255, 255, 0.03)), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.feat:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, transparent); box-shadow: 0 30px 60px -36px var(--glow); }
.feat__num { display: block; font-family: var(--font-display); font-weight: 700; color: var(--accent); letter-spacing: 0.1em; font-size: 0.9rem; margin-bottom: 18px; }
.feat__title { font-size: 1.35rem; color: #fff; margin-bottom: 12px; }
.feat p { color: var(--soft); line-height: 1.65; font-size: 0.98rem; }
.feat__list { list-style: none; display: grid; gap: 8px; margin-top: 16px; }
.feat__list li { position: relative; padding-left: 20px; color: var(--soft); font-size: 0.95rem; line-height: 1.5; }
.feat__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

/* gallery */
.g-gallery { padding-block: calc(var(--space) * 0.4) var(--space); overflow: hidden; }
.g-gallery__head { margin-bottom: clamp(24px, 3vw, 40px); }
.gallery { position: relative; }
.gallery__track {
  --pad: max(var(--gutter), calc((100vw - var(--container)) / 2));
  list-style: none;
  display: flex;
  gap: clamp(14px, 2vw, 24px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--pad);
  padding: 10px var(--pad) 24px;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--accent) 60%, transparent) transparent;
  overscroll-behavior-x: contain;
  border-radius: 4px;
}
.gallery__track::-webkit-scrollbar { height: 6px; }
.gallery__track::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--accent) 60%, transparent); border-radius: 6px; }
.gallery__slide { flex: 0 0 auto; scroll-snap-align: start; }
.gallery__slide.is-landscape { width: min(760px, 84vw); }
.gallery__slide.is-portrait { width: clamp(210px, 62vw, 290px); }
.gallery__link {
  position: relative;
  display: block;
  aspect-ratio: var(--ar);
  border-radius: 18px;
  overflow: hidden;
  background: #05060c;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 28px 60px -30px rgba(0, 0, 0, 0.9);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.is-portrait .gallery__link {
  border-radius: 28px;
  padding: 6px;
  background: linear-gradient(160deg, #2b2c3c, #0a0a12);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 30px 60px -26px rgba(0, 0, 0, 0.9), 0 0 50px -16px var(--glow);
}
.gallery__link img { width: 100%; height: 100%; object-fit: cover; }
.is-portrait .gallery__link img { border-radius: 22px; }
.gallery__link:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 60%, transparent), 0 36px 70px -30px var(--glow); }
.gallery__zoom {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(9, 10, 20, 0.7);
  color: #fff;
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.25s;
}
.gallery__link:hover .gallery__zoom,
.gallery__link:focus-visible .gallery__zoom { opacity: 1; }
.gallery__nav {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 8px auto 0;
  padding-inline: var(--gutter);
}

/* facts + legal */
.g-info {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  padding-bottom: calc(var(--space) * 0.6);
}
.facts { margin: 0; border-top: 1px solid var(--line); }
.facts__row {
  display: grid;
  grid-template-columns: minmax(120px, 0.7fr) minmax(0, 1.3fr);
  gap: 16px;
  padding: 16px 2px;
  border-bottom: 1px solid var(--line);
}
.facts dt { color: var(--muted); font-size: 0.95rem; }
.facts dd { margin: 0; color: #fff; font-weight: 600; }
.g-info__legal,
.about__facts {
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--r);
  background: linear-gradient(165deg, color-mix(in srgb, var(--theme-bg-2) 35%, rgba(255, 255, 255, 0.03)), rgba(255, 255, 255, 0.015));
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
}
.g-info__legal .store-btn { margin-top: 22px; }

.doc-links { list-style: none; display: grid; gap: 10px; }
.doc-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: border-color 0.2s, background-color 0.2s, transform 0.2s var(--ease);
}
.doc-link > .ico:first-child { color: var(--accent); }
.doc-link span { flex: 1; }
.doc-link > .ico:last-child { color: var(--muted); transition: transform 0.2s var(--ease), color 0.2s; }
.doc-link:hover { border-color: color-mix(in srgb, var(--accent) 55%, transparent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.doc-link:hover > .ico:last-child { transform: translateX(3px); color: var(--accent); }

/* other games / cards */
.others { padding-bottom: var(--space); }
.others .h-section { margin-bottom: clamp(24px, 3vw, 40px); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.game-card {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  background: linear-gradient(170deg, var(--theme-bg-2), var(--theme-bg) 60%);
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s;
}
.game-card:hover,
.game-card:focus-within { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 50%, transparent); box-shadow: 0 40px 80px -40px var(--glow); }
.game-card__link { display: block; color: #fff; text-decoration: none; border-radius: var(--r); }
.game-card__link:focus-visible { outline-offset: -3px; }
.game-card__art { aspect-ratio: 16 / 9; overflow: hidden; }
.game-card__img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus); transition: transform 0.8s var(--ease); }
.game-card:hover .game-card__img { transform: scale(1.05); }
.game-card__body { display: flex; align-items: center; gap: 16px; padding: 18px 20px 22px; margin-top: -34px; position: relative; }
.game-card__icon { width: 56px; height: 56px; }
.game-card__body > div { flex: 1; min-width: 0; padding-top: 26px; }
.game-card__name { font-size: 1.25rem; color: #fff; }
.game-card__tag { color: var(--soft); font-size: 0.92rem; margin-top: 4px; line-height: 1.4; }
.game-card__go { flex: none; display: grid; place-items: center; width: 40px; height: 40px; margin-top: 26px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--accent); transition: background-color 0.2s, color 0.2s; }
.game-card:hover .game-card__go { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.game-card .status { position: absolute; top: 14px; right: 14px; pointer-events: none; }

/* ---------------------------------------------------------------- page hero (about, hub) */
.p-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--hh) + clamp(28px, 5vw, 56px)) 0 clamp(56px, 8vw, 110px);
}
.p-hero__inner { display: grid; gap: 0; }
.p-hero .crumbs { margin-bottom: clamp(32px, 5vw, 64px); }
.p-hero .lead { margin-top: 24px; }

.about {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
  padding-bottom: var(--space);
}
.about__text p:first-child { font-size: clamp(1.15rem, 1.7vw, 1.35rem); color: #fff; line-height: 1.6; }

.hub { padding-bottom: var(--space); }
.hub__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.hub-card {
  padding: 26px;
  border-radius: var(--r);
  background: linear-gradient(170deg, color-mix(in srgb, var(--theme-bg-2) 60%, transparent), var(--theme-bg));
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
}
.hub-card__head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.hub-card__head .app-icon { width: 56px; height: 56px; }
.hub-card__name { font-size: 1.3rem; }
.hub-card__name a { text-decoration: none; color: #fff; border-radius: 6px; }
.hub-card__name a:hover { color: var(--accent); }
.hub-card__pkg { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 0.8rem; color: var(--muted); margin-top: 4px; word-break: break-all; }
.hub__note {
  margin-top: clamp(40px, 6vw, 72px);
  padding: clamp(24px, 4vw, 44px);
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

/* ---------------------------------------------------------------- legal document */
.page-legal { background: var(--ink); }
.legal-page { padding-top: calc(var(--hh) + 28px); padding-bottom: var(--space); position: relative; isolation: isolate; }
.legal-page::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 420px;
  z-index: -1;
  background: radial-gradient(60% 100% at 50% 0%, color-mix(in srgb, var(--theme-bg-2) 70%, transparent), transparent 75%);
}
.legal-page__top { display: grid; gap: 18px; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s, background-color 0.2s;
}
.back-link:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.legal-switch {
  position: sticky;
  top: var(--hh);
  z-index: 20;
  margin-top: 24px;
  padding-block: 10px;
  background: rgba(9, 10, 20, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-block: 1px solid var(--line);
}
.legal-switch__inner {
  display: flex;
  gap: 8px;
  max-width: calc(760px + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.legal-switch a {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--soft);
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.legal-switch a:hover,
.legal-switch a.is-active { background: var(--accent); color: var(--on-accent); border-color: transparent; }

.legal { padding-top: clamp(32px, 5vw, 56px); font-size: 1.02rem; }
.legal section { scroll-margin-top: calc(var(--hh) + 80px); }
.legal section + section { margin-top: clamp(56px, 8vw, 96px); padding-top: clamp(40px, 6vw, 64px); border-top: 1px solid var(--line-2); }
.legal h1,
.legal .legal-h1 { font-size: clamp(2rem, 4.6vw, 2.9rem); color: #fff; line-height: 1.1; margin-bottom: 14px; }
.legal h2:not(.legal-h1),
.legal h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); color: #fff; margin: 2.2em 0 0.7em; line-height: 1.25; }
.legal h4 { font-size: 1.12rem; color: #fff; margin: 1.8em 0 0.5em; }
.legal p,
.legal li { color: var(--soft); line-height: 1.75; }
.legal p + p { margin-top: 0.9em; }
.legal p.meta {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  margin-bottom: 1.6em;
}
.legal ul,
.legal ol { padding-left: 1.4em; margin: 0.8em 0 1em; display: grid; gap: 0.45em; }
.legal ul li::marker { color: var(--accent); }
.legal ol li::marker { color: var(--accent); font-weight: 700; }
.legal a { color: var(--accent); text-decoration: underline; word-break: break-word; }
.legal a:hover { color: #fff; }
.legal strong { color: #fff; }
.legal .table-wrap {
  margin: 1.2em 0 1.4em;
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.02);
  -webkit-overflow-scrolling: touch;
}
.legal table { width: 100%; min-width: 600px; border-collapse: collapse; font-size: 0.92rem; }
.legal th,
.legal td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); line-height: 1.5; }
.legal th { background: color-mix(in srgb, var(--accent) 12%, var(--ink-2)); color: #fff; font-family: var(--font-display); font-weight: 600; white-space: nowrap; }
.legal td { color: var(--soft); }
.legal tr:last-child td { border-bottom: 0; }
.legal tbody tr:nth-child(even) td { background: rgba(255, 255, 255, 0.02); }
.legal-page__foot { margin-top: clamp(48px, 7vw, 80px); }
.legal-foot {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 20px 22px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.legal-foot .app-icon { width: 48px; height: 48px; }
.legal-foot__name { font-family: var(--font-display); font-weight: 700; color: #fff; }
.legal-foot__links { font-size: 0.94rem; color: var(--muted); margin-top: 4px; }
.legal-foot__links a { color: var(--soft); }
.legal-foot__links a:hover { color: var(--accent); }

/* ---------------------------------------------------------------- 404 */
.nf {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 86vh;
  display: grid;
  align-items: center;
  padding: calc(var(--hh) + 40px) 0 80px;
}
.nf__code {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(6rem, 22vw, 15rem);
  line-height: 0.85;
  background: linear-gradient(180deg, #fff 10%, var(--gold) 60%, var(--gold-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 20px 60px rgba(255, 150, 40, 0.35));
}
.nf__cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); margin-top: 40px; }
.nf__col { display: grid; gap: 16px; justify-items: start; align-content: start; }
.nf__title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); color: #fff; }
.nf__col p { color: var(--soft); }
.nf__col .btn { margin-top: 8px; }
.nf__games { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 56px; }
.nf__games a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px 8px 8px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
}
.nf__games a:hover { border-color: var(--accent); }
.nf__games .app-icon { width: 40px; height: 40px; border-radius: 50%; }

/* ---------------------------------------------------------------- lightbox */
.lightbox {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(5, 6, 12, 0.94);
  color: #fff;
  overflow: hidden;
}
.lightbox::backdrop { background: rgba(5, 6, 12, 0.7); }
.lightbox[open] { display: grid; place-items: center; animation: fadeIn 0.25s ease; }
.lightbox__figure { margin: 0; display: grid; justify-items: center; gap: 14px; padding: 72px 72px 40px; max-width: 100%; }
.lightbox__img {
  max-width: min(92vw, 1400px);
  max-height: calc(100dvh - 150px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 30px 100px -20px rgba(0, 0, 0, 0.9);
}
.lightbox__cap { color: var(--soft); font-size: 0.95rem; text-align: center; max-width: 70ch; }
.lightbox__count { font-family: var(--font-display); color: var(--accent); margin-right: 10px; }
.lightbox__close { position: absolute; top: 16px; right: 16px; }
.lightbox__prev,
.lightbox__next { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: 16px; }
.lightbox__next { right: 16px; }
@media (max-width: 700px) {
  .lightbox__figure { padding: 64px 12px 96px; }
  .lightbox__prev,
  .lightbox__next { top: auto; bottom: 22px; transform: none; }
  .lightbox__prev { left: calc(50% - 62px); }
  .lightbox__next { right: calc(50% - 62px); }
}
@keyframes fadeIn { from { opacity: 0; } }
html.lb-open { overflow: hidden; }

/* ---------------------------------------------------------------- reveal (only when JS has armed it) */
.reveal-on [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(32px); }
.reveal-on [data-reveal] { transition: opacity 0.9s var(--ease) var(--d, 0ms), transform 0.9s var(--ease) var(--d, 0ms); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .values__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand,
  .site-footer__legal { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .feature-game__grid { grid-template-columns: minmax(0, 1fr); }
  .feature-game.is-flipped .feature-game__media { order: 0; }
  .faq-section,
  .g-story,
  .g-info,
  .about { grid-template-columns: minmax(0, 1fr); }
  .faq-section__head,
  .g-story__head { position: static; }
  .stats--band { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 0; }
  .stats--band .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .nf__cols { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  :root { --hh: 62px; }
  html:not(.js) { --hh: 108px; }
  .values__grid { grid-template-columns: minmax(0, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .brand__word { letter-spacing: 0.12em; }
  .logo-mark { width: 34px; height: 34px; }
  .has-landscape .feature-game__shots { margin-inline: 4%; gap: 10px; }
  .has-portrait .feature-game__shot { width: 26vw; }
  .stats--compact .stat { padding-inline: 14px; }
  .actions .btn,
  .actions .store-btn { flex: 1 1 auto; justify-content: center; }
  .facts__row { grid-template-columns: 1fr; gap: 4px; }
  .legal-foot { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal-on [data-reveal]:not(.is-in) { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .legal-switch, .gallery__nav, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
  .legal p, .legal li, .legal td { color: #000; }
}
