/* ==========================================================================
   Dritel Studios — site styles
   Palette pulled from the Dritel logo: night navy, sky blue, sun gold, hill green.
   ========================================================================== */

@font-face {
  font-family: "Outfit";
  src: url("/assets/fonts/outfit.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --night: #050b26;
  --navy: #0b1a4f;
  --royal: #1c4fd0;
  --sky: #2f7cf6;
  --sky-soft: #69b4ff;
  --sun: #ffcb3d;
  --sun-deep: #ff9f1c;
  --leaf: #39b56a;
  --teal: #1fa8a0;
  --violet: #8b5cf6;
  --tile-green: #3fae5a;
  --tile-yellow: #e5b62a;
  --tile-gray: #7a8397;

  --bg: #f5f8ff;
  --bg-alt: #ebf1ff;
  --card: #ffffff;
  --ink: #0c1640;
  --ink-2: #26325c;
  --muted: #5a6788;
  --line: rgba(12, 22, 64, 0.09);
  --shadow-sm: 0 2px 8px rgba(12, 22, 64, 0.06);
  --shadow: 0 18px 50px -18px rgba(12, 22, 64, 0.28);
  --shadow-lg: 0 40px 90px -30px rgba(12, 22, 64, 0.45);

  --radius: 22px;
  --radius-lg: 32px;
  --wrap: 1180px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --font-display: "Outfit", ui-rounded, system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #070d2b;
    --bg-alt: #0b1438;
    --card: #101a45;
    --ink: #eef2ff;
    --ink-2: #c9d3f5;
    --muted: #9aa8d1;
    --line: rgba(200, 214, 255, 0.1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow: 0 18px 50px -18px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 40px 90px -30px rgba(0, 0, 0, 0.8);
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
::selection { background: var(--sun); color: var(--night); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 13px/1 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--sky);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: currentColor; }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::after { content: ""; width: 26px; height: 2px; border-radius: 2px; background: currentColor; }
.h2 { font-size: clamp(36px, 5.2vw, 60px); font-weight: 800; margin-top: 16px; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); margin-top: 18px; }
.grad-sun {
  background: linear-gradient(100deg, #ffe08a 0%, var(--sun) 40%, var(--sun-deep) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.grad-sky {
  background: linear-gradient(100deg, var(--royal), var(--sky) 50%, var(--violet));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--sun); color: var(--night); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { left: 8px; }

/* ---------- buttons ---------- */
.btn {
  --b-bg: var(--sun); --b-fg: var(--night);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; border: 0;
  background: var(--b-bg); color: var(--b-fg);
  font: 700 16px/1 var(--font-display); letter-spacing: 0.01em; text-decoration: none;
  cursor: pointer; position: relative; overflow: hidden; isolation: isolate;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  box-shadow: 0 10px 30px -10px rgba(255, 170, 30, 0.7);
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 0.7s var(--ease);
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -12px rgba(255, 170, 30, 0.8); }
.btn:hover::after { transform: translateX(120%); }
.btn svg { width: 18px; height: 18px; transition: transform 0.35s var(--ease); }
.btn:hover svg.arrow { transform: translateX(4px); }
.btn-ghost {
  --b-bg: rgba(255, 255, 255, 0.1); --b-fg: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.7); }
.btn-dark { --b-bg: var(--ink); --b-fg: var(--bg); box-shadow: var(--shadow); }
.btn-dark:hover { box-shadow: var(--shadow-lg); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 11px 22px 11px 16px; border-radius: 16px;
  background: #000; color: #fff; text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), var(--shadow);
  transition: transform 0.35s var(--ease);
}
.store-btn:hover { transform: translateY(-3px); }
.store-btn svg { width: 26px; height: 26px; }
.store-btn small { display: block; font: 500 11px/1.2 var(--font-body); opacity: 0.75; letter-spacing: 0.02em; }
.store-btn strong { display: block; font: 700 18px/1.15 var(--font-display); }

/* ---------- scroll progress ---------- */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60;
  background: linear-gradient(90deg, var(--sun), var(--sun-deep), var(--sky));
  transform-origin: 0 50%; transform: scaleX(0);
}

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding: 18px 0; transition: padding 0.4s var(--ease), background 0.4s, box-shadow 0.4s;
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav.scrolled {
  padding: 10px 0;
  background: rgba(7, 14, 48, 0.72);
  backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand img { width: 42px; height: 42px; object-fit: contain; filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3)); transition: transform 0.6s var(--ease); }
.brand:hover img { transform: rotate(-8deg) scale(1.06); }
.brand span { font: 800 21px/1 var(--font-display); letter-spacing: -0.01em; }
.brand span em { font-style: normal; font-weight: 500; opacity: 0.7; margin-left: 4px; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 10px 16px; border-radius: 999px;
  color: rgba(255, 255, 255, 0.82); text-decoration: none; font-weight: 500; font-size: 15px;
  transition: color 0.25s, background 0.25s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, 0.1); }
.nav-links .btn { padding: 11px 20px; font-size: 15px; color: var(--night); margin-left: 8px; }
.nav-links .btn:hover { background: var(--sun); }
.menu-toggle {
  display: none; width: 46px; height: 46px; border-radius: 14px; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, 0.12); color: #fff; place-items: center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor;
  position: relative; transition: transform 0.35s var(--ease), background 0.2s;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.nav.open .menu-toggle span { background: transparent; }
.nav.open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav.open .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .menu-toggle { display: grid; }
  .nav-links {
    position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; gap: 8px;
    background: rgba(5, 11, 38, 0.96); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease), visibility 0.4s;
  }
  .nav-links a { font: 700 28px/1 var(--font-display); padding: 14px 24px; }
  .nav-links .btn { font-size: 20px; padding: 16px 30px; margin: 16px 0 0; }
  .nav.open .nav-links { opacity: 1; visibility: visible; }
  .nav.open { background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav-links li { transform: translateY(16px); opacity: 0; transition: transform 0.5s var(--ease), opacity 0.5s; }
  .nav.open .nav-links li { transform: none; opacity: 1; }
  .nav.open .nav-links li:nth-child(2) { transition-delay: 0.05s; }
  .nav.open .nav-links li:nth-child(3) { transition-delay: 0.1s; }
  .nav.open .nav-links li:nth-child(4) { transition-delay: 0.15s; }
  .nav.open .nav-links li:nth-child(5) { transition-delay: 0.2s; }
}

/* ---------- sky hero ---------- */
.sky {
  position: relative; overflow: hidden; color: #fff; isolation: isolate;
  background: linear-gradient(180deg, var(--night) 0%, #0b1f63 36%, var(--royal) 68%, #4f9cf9 100%);
}
.sky-layer { position: absolute; inset: 0; pointer-events: none; will-change: transform; }
.stars i {
  position: absolute; width: var(--s, 2px); height: var(--s, 2px); border-radius: 50%; background: #fff;
  opacity: 0.2; animation: twinkle var(--t, 4s) ease-in-out var(--dl, 0s) infinite;
}
@keyframes twinkle { 50% { opacity: 1; transform: scale(1.4); } }
.sparkle { position: absolute; width: 34px; color: #fff3c4; filter: drop-shadow(0 0 10px rgba(255, 240, 190, 0.9)); animation: sparkle 3.6s ease-in-out infinite; }
@keyframes sparkle { 50% { transform: scale(0.6) rotate(45deg); opacity: 0.6; } }
.sun {
  position: absolute; right: 9%; top: 46%; width: clamp(150px, 18vw, 250px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 40% 38%, #fff6d0 0%, #ffd95a 40%, #ffb21f 78%);
  box-shadow: 0 0 80px 20px rgba(255, 196, 60, 0.45), 0 0 220px 80px rgba(255, 170, 40, 0.22);
  animation: sun-pulse 6s ease-in-out infinite;
}
@keyframes sun-pulse { 50% { box-shadow: 0 0 110px 30px rgba(255, 196, 60, 0.55), 0 0 260px 100px rgba(255, 170, 40, 0.28); } }
.cloud {
  position: absolute; border-radius: 999px; background: #fff; filter: blur(2px); opacity: 0.92;
  animation: drift var(--dur, 40s) linear infinite alternate;
}
.cloud::before, .cloud::after { content: ""; position: absolute; background: inherit; border-radius: 50%; }
.cloud::before { width: 55%; height: 170%; left: 14%; bottom: 30%; }
.cloud::after { width: 40%; height: 130%; right: 12%; bottom: 35%; }
@keyframes drift { to { transform: translateX(var(--dx, 60px)); } }
.hills { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(160px, 26vw, 360px); }
.hills svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.floaters span {
  position: absolute; display: grid; place-items: center;
  width: var(--sz, 54px); aspect-ratio: 1; border-radius: 14px;
  font: 800 calc(var(--sz, 54px) * 0.48) / 1 var(--font-display); color: #fff;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.4);
  animation: float var(--fd, 9s) ease-in-out var(--fdl, 0s) infinite;
}
@keyframes float { 50% { transform: translateY(-22px) rotate(var(--rot, 8deg)); } }

.hero { min-height: 100svh; display: flex; align-items: center; padding: 140px 0 clamp(180px, 24vw, 300px); }
.hero-inner { position: relative; z-index: 2; max-width: 820px; }
.hero h1 { font-size: clamp(46px, 8vw, 96px); font-weight: 800; letter-spacing: -0.035em; margin-top: 26px; }
.hero .lead { color: rgba(255, 255, 255, 0.82); max-width: 600px; font-size: clamp(18px, 1.8vw, 21px); }
.hero .btn-row { margin-top: 38px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 40px; color: rgba(255, 255, 255, 0.78); font-size: 14px; font-weight: 500; }
.hero-badges span { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges svg { width: 18px; height: 18px; color: var(--sun); }
.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; z-index: 3; transform: translateX(-50%);
  width: 28px; height: 46px; border-radius: 16px; border: 2px solid rgba(12, 22, 64, 0.35);
}
.scroll-cue::after {
  content: ""; position: absolute; left: 50%; top: 9px; width: 4px; height: 9px; margin-left: -2px; border-radius: 4px;
  background: rgba(12, 22, 64, 0.5); animation: cue 1.8s var(--ease) infinite;
}
@media (prefers-color-scheme: dark) {
  .scroll-cue { border-color: rgba(255, 255, 255, 0.35); }
  .scroll-cue::after { background: rgba(255, 255, 255, 0.6); }
}
@keyframes cue { 0% { opacity: 0; transform: translateY(-4px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* word tiles (flip on load) */
.tiles { display: flex; gap: 8px; perspective: 600px; }
.tile {
  width: clamp(40px, 5vw, 54px); aspect-ratio: 1; border-radius: 12px; position: relative;
  transform-style: preserve-3d; transition: transform 0.7s var(--ease);
  font: 800 clamp(20px, 2.6vw, 28px) / 1 var(--font-display);
}
.tile b, .tile i {
  position: absolute; inset: 0; display: grid; place-items: center; border-radius: inherit;
  backface-visibility: hidden; -webkit-backface-visibility: hidden; font-style: normal;
}
.tile b { background: rgba(255, 255, 255, 0.08); border: 2px solid rgba(255, 255, 255, 0.28); color: #fff; }
.tile i { transform: rotateX(180deg); color: #fff; background: var(--c, var(--tile-green)); box-shadow: 0 8px 20px -8px var(--c, var(--tile-green)); }
.tile.flipped { transform: rotateX(180deg); }
.tiles:hover .tile { animation: tile-bounce 0.5s var(--ease) calc(var(--i) * 60ms); }
@keyframes tile-bounce { 40% { translate: 0 -8px; } }

/* ---------- reveal on scroll ---------- */
[data-reveal] {
  opacity: 0; transform: translateY(36px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}
[data-reveal="left"] { transform: translateX(-48px); }
[data-reveal="right"] { transform: translateX(48px); }
[data-reveal="zoom"] { transform: scale(0.92); }
[data-reveal].in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* ---------- featured game ---------- */
.feature { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.game-id { display: flex; align-items: center; gap: 18px; margin: 22px 0 6px; }
.game-id img { width: 84px; height: 84px; border-radius: 22px; box-shadow: var(--shadow); }
.game-id h3 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; }
.game-id p { color: var(--muted); font-weight: 600; font-size: 15px; margin-top: 4px; }
.checks { list-style: none; padding: 0; margin: 28px 0 34px; display: grid; gap: 14px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; color: var(--ink-2); }
.checks li::before {
  content: ""; flex: none; width: 26px; height: 26px; border-radius: 8px; margin-top: 1px;
  background: var(--tile-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 16px no-repeat;
  box-shadow: 0 6px 14px -6px var(--tile-green);
}
.checks li:nth-child(2)::before { background-color: var(--tile-yellow); box-shadow: 0 6px 14px -6px var(--tile-yellow); }
.checks li:nth-child(3)::before { background-color: var(--sky); box-shadow: 0 6px 14px -6px var(--sky); }
.checks li:nth-child(4)::before { background-color: var(--violet); box-shadow: 0 6px 14px -6px var(--violet); }
.checks strong { color: var(--ink); }

.phone-stage { position: relative; display: grid; place-items: center; perspective: 1400px; min-height: 560px; }
.phone-glow {
  position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 124, 246, 0.35), rgba(139, 92, 246, 0.18) 45%, transparent 70%);
  filter: blur(20px); animation: glow 8s ease-in-out infinite;
}
@keyframes glow { 50% { transform: scale(1.12); } }
.phone {
  position: relative; width: min(330px, 78%); border-radius: 34px;
  transform-style: preserve-3d; will-change: transform;
  filter: drop-shadow(0 50px 60px rgba(12, 22, 64, 0.35));
}
.chip {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 16px; background: var(--card); color: var(--ink);
  font: 700 14px/1.2 var(--font-display); box-shadow: var(--shadow); border: 1px solid var(--line);
  animation: float 7s ease-in-out infinite; --rot: 0deg; white-space: nowrap;
}
.chip small { display: block; font: 500 12px/1.2 var(--font-body); color: var(--muted); }
.chip .dot { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: #fff; flex: none; }
.chip .dot svg { width: 20px; height: 20px; }
.chip.c1 { left: -2%; top: 16%; }
.chip.c2 { right: -4%; top: 44%; animation-delay: -2.5s; }
.chip.c3 { left: 4%; bottom: 12%; animation-delay: -4.5s; }

/* ---------- stats band ---------- */
.band {
  position: relative; overflow: hidden; color: #fff; border-radius: var(--radius-lg);
  background: radial-gradient(120% 140% at 85% 0%, #2b5ee8 0%, transparent 55%), linear-gradient(135deg, #0b1a4f, #071037);
  padding: clamp(40px, 6vw, 70px); box-shadow: var(--shadow-lg);
}
.band::before {
  content: ""; position: absolute; inset: 0; opacity: 0.5;
  background-image: radial-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1px);
  background-size: 26px 26px; mask-image: linear-gradient(90deg, transparent, #000 60%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%, transparent);
}
.stats { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.stat { text-align: center; }
.stat .num { font: 800 clamp(48px, 6vw, 76px) / 1 var(--font-display); letter-spacing: -0.03em; }
.stat .num sup { font-size: 0.45em; vertical-align: top; position: relative; top: 0.2em; margin-left: 2px; color: var(--sun); }
.stat p { margin-top: 10px; color: rgba(255, 255, 255, 0.72); font-weight: 500; }
.stat:nth-child(1) .num { color: var(--sun); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); row-gap: 40px; } }

/* ---------- marquee of screenshots ---------- */
.marquee-sec { overflow: hidden; }
.marquee { display: flex; gap: 22px; width: max-content; will-change: transform; }
.marquee + .marquee { margin-top: 22px; }
.marquee figure {
  margin: 0; width: clamp(180px, 20vw, 250px); flex: none; border-radius: 26px; overflow: hidden;
  box-shadow: var(--shadow); background: var(--card); border: 1px solid var(--line);
  transition: transform 0.5s var(--ease);
}
.marquee figure:hover { transform: translateY(-8px) scale(1.02); }
.marquee img { width: 100%; height: auto; aspect-ratio: 1290 / 2796; object-fit: cover; }

/* ---------- principle cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  position: relative; padding: 32px 28px; border-radius: var(--radius); overflow: hidden;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(47, 124, 246, 0.13), transparent 45%);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }
.card .ico {
  width: 56px; height: 56px; border-radius: 17px; display: grid; place-items: center; color: #fff;
  background: var(--c, var(--sky)); box-shadow: 0 14px 26px -12px var(--c, var(--sky)); margin-bottom: 24px;
  transition: transform 0.5s var(--ease);
}
.card:hover .ico { transform: rotate(-8deg) scale(1.08); }
.card .ico svg { width: 28px; height: 28px; }
.card h3 { font-size: 22px; font-weight: 700; margin-bottom: 10px; position: relative; }
.card p { color: var(--muted); font-size: 15.5px; position: relative; }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.logo-card {
  position: relative; aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(160deg, #ffffff, #e7efff); box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.logo-card img { width: 64%; position: relative; z-index: 1; filter: drop-shadow(0 20px 30px rgba(12, 22, 64, 0.18)); }
.logo-card .ring {
  position: absolute; border-radius: 50%; border: 1.5px dashed rgba(47, 124, 246, 0.25);
  animation: spin 50s linear infinite;
}
.logo-card .ring:nth-child(1) { width: 86%; aspect-ratio: 1; }
.logo-card .ring:nth-child(2) { width: 112%; aspect-ratio: 1; animation-direction: reverse; animation-duration: 70s; }
@keyframes spin { to { transform: rotate(360deg); } }
.about .lead + .lead { margin-top: 14px; }
.signature { display: flex; gap: 34px; margin-top: 34px; flex-wrap: wrap; }
.signature div strong { display: block; font: 800 22px/1.1 var(--font-display); }
.signature div span { color: var(--muted); font-size: 14px; }

/* ---------- CTA sunrise panel ---------- */
.cta {
  position: relative; overflow: hidden; text-align: center; color: #fff; border-radius: var(--radius-lg);
  padding: clamp(60px, 9vw, 110px) 24px;
  background: linear-gradient(180deg, #0b1f63 0%, var(--royal) 55%, #ff9f5a 100%);
  box-shadow: var(--shadow-lg);
}
.cta .sun-rise {
  position: absolute; left: 50%; bottom: -55%; width: min(520px, 90%); aspect-ratio: 1; border-radius: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, #fff3c4, #ffd34d 40%, #ffae34 70%);
  box-shadow: 0 0 160px 60px rgba(255, 190, 70, 0.5); will-change: transform;
}
.cta > * { position: relative; }
.cta h2 { font-size: clamp(34px, 5vw, 58px); font-weight: 800; }
.cta p { color: rgba(255, 255, 255, 0.85); max-width: 540px; margin: 18px auto 34px; font-size: 18px; }
.cta .btn-dark { --b-bg: #fff; --b-fg: var(--night); }

/* ---------- footer ---------- */
.footer { padding: 80px 0 40px; border-top: 1px solid var(--line); margin-top: clamp(80px, 10vw, 120px); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer .brand { color: var(--ink); }
.footer .brand span em { color: var(--muted); opacity: 1; }
.footer-about { color: var(--muted); font-size: 15px; margin-top: 18px; max-width: 340px; }
.footer h4 { font: 700 14px/1 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer ul a { text-decoration: none; color: var(--ink-2); font-weight: 500; transition: color 0.2s; }
.footer ul a:hover { color: var(--sky); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  margin-top: 60px; padding-top: 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- game page ---------- */
.game-hero { padding: 150px 0 clamp(170px, 22vw, 280px); }
.game-hero .grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center; }
.game-hero .icon-lg { width: 108px; height: 108px; border-radius: 28px; box-shadow: 0 24px 50px -16px rgba(0, 0, 0, 0.6); }
.game-hero h1 { font-size: clamp(44px, 7vw, 84px); font-weight: 800; letter-spacing: -0.035em; margin-top: 26px; }
.game-hero .sub { font: 700 clamp(18px, 2vw, 22px) / 1.2 var(--font-display); color: var(--sun); margin-top: 12px; }
.game-hero .lead { color: rgba(255, 255, 255, 0.84); max-width: 560px; }
.game-hero .btn-row { margin-top: 34px; align-items: center; }
.game-hero .phone { width: min(270px, 70%); margin-inline: auto; border-radius: 30px; filter: drop-shadow(0 50px 70px rgba(0, 0, 0, 0.5)); }

.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.g {
  display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s;
}
.g:hover { transform: translateY(-5px) rotate(-0.6deg); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--c) 50%, transparent); }
.g .gi {
  width: 48px; height: 48px; border-radius: 14px; flex: none; display: grid; place-items: center;
  background: var(--c); color: #0c1640; font: 800 19px/1 var(--font-display);
  box-shadow: 0 10px 20px -10px var(--c);
}
.g h3 { font-size: 17px; font-weight: 700; }
.g p { font-size: 13.5px; color: var(--muted); line-height: 1.4; margin-top: 2px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.split + .split { margin-top: clamp(90px, 12vw, 150px); }
.split.rev .split-media { order: -1; }
.split-media { position: relative; display: grid; place-items: center; }
.split-media::before {
  content: ""; position: absolute; width: 80%; aspect-ratio: 1; border-radius: 40%;
  background: var(--blob, linear-gradient(135deg, rgba(47, 124, 246, 0.22), rgba(139, 92, 246, 0.18)));
  filter: blur(10px); animation: morph 14s ease-in-out infinite;
}
@keyframes morph { 33% { border-radius: 58% 42% 40% 60%; transform: rotate(40deg); } 66% { border-radius: 42% 58% 62% 38%; transform: rotate(-20deg); } }
.shot {
  position: relative; width: min(300px, 76%); border-radius: 34px; overflow: hidden;
  box-shadow: var(--shadow-lg); border: 6px solid #0d1330; background: #0d1330;
}
.shot img { width: 100%; height: auto; }
.split h3 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; margin-top: 14px; }
.split .lead { margin-top: 16px; }
.split .checks { margin-bottom: 0; }

.tabs { display: inline-flex; padding: 5px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); margin-bottom: 36px; }
.tabs button {
  border: 0; background: none; cursor: pointer; padding: 10px 22px; border-radius: 999px;
  font: 700 15px/1 var(--font-display); color: var(--muted); transition: background 0.3s, color 0.3s;
}
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.gallery {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 4px 30px;
  scrollbar-width: thin; -webkit-overflow-scrolling: touch;
}
.gallery[hidden] { display: none; }
.gallery figure { margin: 0; flex: none; scroll-snap-align: start; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.gallery.phone-shots figure { width: clamp(210px, 24vw, 270px); }
.gallery.tablet-shots figure { width: clamp(300px, 40vw, 460px); }
.gallery img { width: 100%; height: auto; }

.privacy-band { display: grid; grid-template-columns: auto 1fr auto; gap: 34px; align-items: center; }
.privacy-band .shield {
  width: 92px; height: 92px; border-radius: 28px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--leaf), var(--teal)); box-shadow: 0 20px 40px -16px var(--leaf);
}
.privacy-band .shield svg { width: 46px; height: 46px; }
.privacy-band h3 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; }
.privacy-band p { color: rgba(255, 255, 255, 0.76); margin-top: 8px; }
.privacy-band .btn-ghost { white-space: nowrap; }
@media (max-width: 760px) { .privacy-band { grid-template-columns: 1fr; text-align: center; justify-items: center; } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq details {
  border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s;
}
.faq details[open] { box-shadow: var(--shadow); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 26px; font: 700 18px/1.3 var(--font-display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--bg-alt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f7cf6' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform 0.4s var(--ease);
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq .ans { padding: 0 26px 24px; color: var(--muted); }
.faq .ans a { color: var(--sky); }

/* ---------- inner pages (support / legal) ---------- */
.page-hero { padding: 150px 0 clamp(120px, 15vw, 200px); }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(42px, 6.5vw, 76px); font-weight: 800; margin-top: 20px; }
.page-hero .lead { color: rgba(255, 255, 255, 0.82); max-width: 620px; }
.page-hero .hills { height: clamp(90px, 12vw, 170px); }
.contact-card {
  display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center;
  padding: 30px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
  margin-top: -80px; position: relative; z-index: 3;
}
.contact-card .ico { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--sky), var(--violet)); }
.contact-card .ico svg { width: 30px; height: 30px; }
.contact-card h2 { font-size: 24px; font-weight: 800; }
.contact-card p { color: var(--muted); margin-top: 4px; }
.contact-card a.mail { color: var(--sky); font-weight: 700; text-decoration: none; }
@media (max-width: 760px) { .contact-card { grid-template-columns: 1fr; text-align: center; justify-items: center; } }

.prose { max-width: 760px; margin-inline: auto; }
.prose .meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: var(--muted); font-size: 15px; margin-bottom: 30px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font: 700 13px/1 var(--font-body); color: #fff; background: var(--leaf); }
.prose h2 { font-size: clamp(22px, 2.4vw, 27px); font-weight: 700; margin: 46px 0 12px; }
.prose p, .prose li { color: var(--ink-2); }
.prose p + p { margin-top: 14px; }
.prose ul { padding-left: 22px; }
.prose li + li { margin-top: 8px; }
.prose a { color: var(--sky); }
.summary-box {
  padding: 26px 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 18px;
}
.summary-box div { display: flex; gap: 12px; align-items: center; font-weight: 600; font-size: 15px; color: var(--ink); }
.summary-box svg { width: 22px; height: 22px; color: var(--leaf); flex: none; }

/* ---------- 404 ---------- */
.lost { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px 0 240px; }
.lost h1 { font-size: clamp(80px, 16vw, 180px); font-weight: 800; letter-spacing: -0.05em; position: relative; z-index: 2; }
.lost p { color: rgba(255, 255, 255, 0.85); font-size: 20px; margin: 10px 0 32px; position: relative; z-index: 2; }
.lost .btn { position: relative; z-index: 2; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .feature, .about, .split, .game-hero .grid { grid-template-columns: 1fr; }
  .split.rev .split-media { order: 0; }
  .phone-stage { min-height: 0; padding: 30px 0; }
  .chip.c1 { left: 0; } .chip.c2 { right: 0; }
  .game-hero .grid > div:last-child { margin-top: 10px; }
  .about .logo-card { max-width: 440px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding-top: 120px; }
  .chip { font-size: 12.5px; padding: 9px 12px; }
  .chip .dot { width: 30px; height: 30px; }
  .hero .sun { right: -12%; top: auto; bottom: 18%; width: 130px; }
  .hero .cloud { display: none; }
  .floaters { opacity: 0.45; }
  .floaters span:nth-child(n+5) { display: none; }
}

/* ---------- reduced motion ---------- */
@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; }
  [data-reveal] { opacity: 1; transform: none; }
}
