/*
   Cinematic dark theme.
   - Deep indigo-black background (not pure black), depth from lighter surface layers.
   - Imagery is always shown at native sharpness inside frames/tiles, never stretched full-bleed.
   - Brand colours from the logo (blue → violet) and wordmark (yellow), softened for dark UI.
*/
:root {
   --bg: #0c0e1a;
   --bg-2: #10131f;
   --bg-deep: #090b14;
   --surface: #161a2b;
   --surface-2: #1d2236;
   --surface-3: #272d45;
   --border: rgba(255, 255, 255, .06);
   --border-2: rgba(255, 255, 255, .11);
   --text: #e9ebf5;
   --text-2: #aeb3c9;
   --muted: #7d839d;
   --blue: #5aa6f0;
   --violet: #8c7cf0;
   --yellow: #f5cd4d;
   --grad: linear-gradient(135deg, #4f9df0, #8373ec);
   --ease: cubic-bezier(.2, .7, .2, 1);
   --radius: 22px;
   --font-display: "Fredoka", "Inter", system-ui, sans-serif;
   --font-body: "Inter", system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Noto Sans JP", "Noto Sans KR", "Noto Sans SC", sans-serif;
   color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
/* anchor scrolling is done in site.js; scroll-padding matches its offset (72px header + 24px) for native jumps */
html { scroll-padding-top: 96px; scrollbar-color: var(--surface-3) var(--bg); }
body {
   margin: 0;
   min-height: 100vh;
   display: flex;
   flex-direction: column;
   background: var(--bg);
   color: var(--text);
   font-family: var(--font-body);
   font-size: 16px;
   line-height: 1.65;
   -webkit-font-smoothing: antialiased;
   overflow-x: hidden;
}
::selection { background: rgba(90, 166, 240, .35); color: #fff; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 999px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #3a4266; }
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; margin: 0 0 .5em; font-weight: 600; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
svg.stroke { fill: none !important; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.accent {
   background: linear-gradient(90deg, #f8d762, #f3b93b);
   -webkit-background-clip: text; background-clip: text; color: transparent;
}
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* ---------- header ---------- */
.site-header {
   position: fixed; top: 0; left: 0; right: 0; z-index: 100;
   transition: background .3s, box-shadow .3s;
}
.site-header.scrolled, .site-header.open {
   background: rgba(12, 14, 26, .8);
   backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
   box-shadow: 0 1px 0 var(--border);
}
.nav { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 36px; height: 36px; transition: transform .45s cubic-bezier(.3, 1.6, .5, 1); }
.brand:hover img { transform: rotate(-14deg) scale(1.08); }
.brand-text { font-family: var(--font-display); font-size: 1.18rem; font-weight: 600; white-space: nowrap; }
.brand-text em { font-style: normal; color: var(--yellow); }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
   text-decoration: none; color: var(--text-2); font-weight: 600; font-size: .93rem;
   padding: 8px 14px; border-radius: 999px; transition: background .2s, color .2s;
}
.nav-links a:hover { background: rgba(255, 255, 255, .06); color: var(--text); }
.nav-links a.active { background: rgba(255, 255, 255, .08); color: var(--text); }
.lang-select {
   display: flex; align-items: center; gap: 4px;
   background: rgba(255, 255, 255, .05); border: 1px solid var(--border-2); border-radius: 999px;
   padding: 0 12px; height: 40px; transition: border-color .2s, background .2s;
}
.lang-select:hover { background: rgba(255, 255, 255, .08); }
.lang-select svg { width: 16px; fill: var(--muted); flex: none; }
.lang-select select {
   appearance: none; background: transparent; border: 0; color: var(--text);
   font: 600 .88rem var(--font-body); padding: 0 4px; height: 100%; cursor: pointer; outline: none;
}
.lang-select select option { background: var(--bg-2); }
.lang-select:focus-within { border-color: var(--blue); }
.menu-btn { display: none; }

/* ---------- buttons ---------- */
.btn {
   display: inline-flex; align-items: center; justify-content: center; gap: 10px;
   padding: 14px 26px; border-radius: 14px; font: 600 1.02rem var(--font-display); letter-spacing: .01em;
   text-decoration: none; border: 0; cursor: pointer;
   transition: transform .15s, box-shadow .25s, background .2s;
}
.btn svg { width: 19px; height: 19px; flex: none; fill: currentColor; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn-primary {
   color: #fff; background: var(--grad);
   box-shadow: 0 10px 30px -10px rgba(110, 130, 240, .7), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn-primary:hover { box-shadow: 0 14px 36px -10px rgba(110, 130, 240, .95), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-ghost { color: var(--text); background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--border-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.btn-yellow {
   color: #2e2200; background: linear-gradient(180deg, #f9d968, #f0c233);
   box-shadow: 0 10px 30px -10px rgba(240, 194, 51, .6), inset 0 1px 0 rgba(255, 255, 255, .4);
}
.btn-yellow:hover { box-shadow: 0 14px 36px -10px rgba(240, 194, 51, .85), inset 0 1px 0 rgba(255, 255, 255, .4); }

.eyebrow {
   display: inline-flex; align-items: center; gap: 8px;
   font-weight: 700; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase;
   color: var(--blue); margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 140px 0 56px; overflow: hidden; isolation: isolate; }
.hero-glow {
   position: absolute; inset: 0; z-index: -1; pointer-events: none;
   mask-image: linear-gradient(180deg, #000 55%, transparent); -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent);
   background:
      radial-gradient(520px 420px at 78% 38%, rgba(140, 124, 240, .22), transparent 70%),
      radial-gradient(480px 380px at 60% 70%, rgba(90, 166, 240, .16), transparent 70%),
      radial-gradient(420px 300px at 5% 10%, rgba(90, 166, 240, .08), transparent 70%);
}
.hero::before {
   content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
   background-image:
      linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
   background-size: 56px 56px;
   mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 20%, transparent 75%);
   -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 20%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); font-weight: 700; letter-spacing: -.01em; }
.hero .lead { font-size: 1.12rem; color: var(--text-2); max-width: 520px; margin: 20px 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-icons { display: flex; gap: 12px; margin-top: 40px; }
.hero-icons a {
   display: block; width: 56px; height: 56px; border-radius: 16px; overflow: hidden;
   box-shadow: 0 0 0 1px var(--border-2), 0 10px 20px -8px rgba(0, 0, 0, .8);
   transition: transform .3s cubic-bezier(.3, 1.6, .5, 1), box-shadow .3s;
}
.hero-icons a:hover { transform: translateY(-6px) rotate(-6deg); box-shadow: 0 0 0 2px rgba(255, 255, 255, .5), 0 14px 24px -8px rgba(0, 0, 0, .8); }

/* 3D stage; --rx/--ry/--tx/--ty are driven by the pointer (see tilt() in site.js) */
.hero-stage { position: relative; aspect-ratio: 16 / 11; perspective: 1600px; --rx: 0deg; --ry: 0deg; --tx: 0px; --ty: 0px; }
.device, .stage-card { position: absolute; border-radius: 22px; overflow: hidden; }
.device {
   left: 4%; right: 4%; top: 12%;
   padding: 9px; background: #07080f;
   box-shadow: 0 0 0 1px var(--border-2), 0 40px 80px -30px rgba(0, 0, 0, .95), 0 0 80px -20px rgba(120, 120, 240, .35);
   transform: rotateY(calc(-10deg + var(--ry))) rotateX(calc(4deg + var(--rx)));
   transition: transform .6s var(--ease);
}
.device::after {
   content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
   background: linear-gradient(115deg, rgba(255, 255, 255, .1) 0%, rgba(255, 255, 255, 0) 32%);
}
.device-screen { position: relative; aspect-ratio: 20 / 9; border-radius: 15px; overflow: hidden; background: #000; }
/* Screenshots are 20:9 (store caption strip already cropped out of the files).
   Cross-fade: the previous slide stays fully visible underneath while the next one fades in on top. */
.device-screen img, .tile-media img {
   position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
   opacity: 0; z-index: 0; transition: opacity .9s ease;
}
.device-screen img.prev, .tile-media img.prev { opacity: 1; z-index: 1; transition: none; }
.device-screen img.active, .tile-media img.active { opacity: 1; z-index: 2; }
.stage-card {
   width: 52%; aspect-ratio: 20 / 9;
   box-shadow: 0 0 0 1px var(--border-2), 0 24px 50px -20px rgba(0, 0, 0, .9);
   filter: brightness(.55) saturate(.9);
   translate: var(--tx) var(--ty);
   transition: translate .7s var(--ease);
}
.stage-card img { width: 100%; height: 100%; object-fit: cover; }
.stage-card.back-1 { right: -4%; top: -2%; transform: rotate(6deg); }
.stage-card.back-2 { left: -2%; bottom: 0; transform: rotate(-7deg); }
.chip {
   position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px;
   padding: 10px 16px; border-radius: 14px; font-size: .88rem; font-weight: 600;
   background: rgba(22, 26, 43, .85); border: 1px solid var(--border-2);
   backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
   box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .8);
   translate: calc(var(--tx) * -1.4) calc(var(--ty) * -1.4);
   transition: translate .7s var(--ease);
   animation: bob 5s ease-in-out infinite;
}
.chip svg { width: 18px; height: 18px; fill: var(--yellow); }
.chip b { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; }
.chip span { color: var(--text-2); }
.chip-platforms { left: -4%; top: 6%; }
.chip-platforms svg { color: var(--blue); }
.chip-free { right: 0; bottom: 6%; animation-delay: -2.5s; }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* soft light following the cursor (position set by spotlight() in site.js) */
.spot { position: relative; }
.spot::after {
   content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
   background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .06), transparent 50%);
   opacity: 0; transition: opacity .35s;
}
.spot:hover::after { opacity: 1; }

/* ---------- keyword ticker (between hero and games): one quiet, low-contrast line ---------- */
.ticker {
   overflow: hidden; padding: 18px 0;
   border-block: 1px solid var(--border);
   mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
   -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
.ticker-track { display: flex; align-items: center; width: max-content; animation: ticker 80s linear infinite; }
/* margins instead of flex gap so the doubled sequence is exactly twice as wide as one copy */
.ticker-track > * { flex: none; margin-right: 26px; }
.ticker-track span { font: 500 .88rem/1 var(--font-display); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; color: var(--muted); }
.ticker-track svg { width: 9px; height: 9px; fill: var(--violet); opacity: .7; }
@keyframes ticker { to { transform: translateX(-50%); } }
.ticker + section { padding-top: 88px; }

/* ---------- sections ---------- */
section { padding: 104px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head .eyebrow::after { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
.section-head p { color: var(--text-2); font-size: 1.05rem; }

/* ---------- games: featured banner + three cards ----------
   Every tile shows its 20:9 screenshot whole (or nearly), so nothing is blown up by a tall crop. */
.games-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.tile {
   position: relative; overflow: hidden; isolation: isolate;
   display: flex; flex-direction: column;
   border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
   transition: transform .35s cubic-bezier(.3, 1.3, .5, 1), border-color .3s, box-shadow .3s;
}
.tile:hover { transform: translateY(-5px); border-color: var(--border-2); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); }
.tile-media { position: relative; z-index: 0; aspect-ratio: 20 / 9; overflow: hidden; }
.tile-media img { transition: opacity .9s ease, transform .8s ease; }
.tile:hover .tile-media img.active { transform: scale(1.03); }
.tile-media::after {
   content: ""; position: absolute; inset: 0; z-index: 3; /* above the cross-fading images */
   background: linear-gradient(180deg, rgba(22, 26, 43, 0) 62%, var(--surface) 100%);
}
.tile-body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 0 22px 22px; margin-top: -34px; position: relative; }
.tile-icon {
   width: 60px; height: 60px; border-radius: 16px; flex: none;
   box-shadow: 0 0 0 1px rgba(255, 255, 255, .25), 0 10px 20px -8px rgba(0, 0, 0, .8);
   transition: transform .35s cubic-bezier(.3, 1.6, .5, 1);
}
.tile:hover .tile-icon { transform: rotate(-6deg) scale(1.05); }
.tile-text h3 { font-size: 1.15rem; margin: 0; }
.tile-text p { color: var(--text-2); font-size: .9rem; margin: 6px 0 0; }
.tile .play-btn { width: 100%; margin-top: auto; }

/* featured: full-width banner, the whole screenshot behind a scrim on the left */
.tile-featured { grid-column: 1 / -1; aspect-ratio: 20 / 9; justify-content: flex-end; }
.tile-featured .tile-media { position: absolute; inset: 0; z-index: -1; aspect-ratio: auto; }
.tile-featured .tile-media::after {
   background:
      linear-gradient(180deg, rgba(12, 14, 26, .45) 0%, rgba(12, 14, 26, 0) 22%),
      linear-gradient(90deg, rgba(12, 14, 26, .94) 0%, rgba(12, 14, 26, .78) 28%, rgba(12, 14, 26, 0) 60%);
}
.tile-featured .tile-body { flex: none; margin: 0; padding: 44px; max-width: 560px; gap: 16px; }
.tile-featured .tile-icon { width: 84px; height: 84px; border-radius: 22px; }
.tile-featured .tile-text h3 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); text-shadow: 0 2px 12px rgba(0, 0, 0, .6); }
.tile-featured .tile-text p { font-size: 1rem; }
.tile-featured .play-btn { width: auto; margin-top: 4px; }
.badge {
   position: absolute; top: 20px; left: 20px;
   padding: 6px 14px; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
   background: rgba(12, 14, 26, .7); border: 1px solid var(--border-2); color: var(--yellow);
   backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.dots {
   position: absolute; bottom: 24px; right: 24px; display: flex; gap: 6px;
   padding: 7px 9px; border-radius: 999px; background: rgba(12, 14, 26, .55);
   backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.dots button {
   width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
   background: rgba(255, 255, 255, .35); transition: width .3s, background .3s;
}
.dots button:hover { background: rgba(255, 255, 255, .7); }
.dots button.active { width: 24px; background: #fff; }
.play-btn {
   display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: none;
   padding: 11px 16px; border-radius: 12px;
   background: rgba(255, 255, 255, .1); color: #fff; text-decoration: none; font-weight: 600; font-size: .88rem;
   box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
   backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
   transition: background .25s, box-shadow .25s;
}
.play-btn svg { width: 16px; fill: currentColor; }
.tile:hover .play-btn, .play-btn:hover { background: var(--blue); box-shadow: none; }

/* ---------- gallery: two opposite marquee rows ---------- */
.gallery { overflow: hidden; background: var(--bg-2); }
.marquee {
   mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
   -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee + .marquee { margin-top: 18px; }
.marquee-track { display: flex; gap: 18px; width: max-content; animation: marquee 90s linear infinite; }
.marquee-track.reverse { animation-direction: reverse; animation-duration: 105s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track a {
   flex: none; display: block; width: 400px; aspect-ratio: 20 / 9;
   border-radius: 16px; overflow: hidden; border: 1px solid var(--border-2);
   transition: transform .3s var(--ease), border-color .3s;
}
.marquee-track a:hover { transform: scale(1.03); border-color: rgba(255, 255, 255, .25); }
.marquee-track img { width: 100%; height: 100%; object-fit: cover; }
@keyframes marquee { to { transform: translateX(calc(-50% - 9px)); } }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-grid h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
.about-grid p { color: var(--text-2); }
.values { display: grid; gap: 14px; }
.value {
   display: flex; gap: 18px; padding: 22px; border-radius: var(--radius);
   background: var(--surface); border: 1px solid var(--border);
   transition: transform .3s cubic-bezier(.3, 1.4, .5, 1), background .3s, border-color .3s;
}
.value:hover { transform: translateX(6px); background: var(--surface-2); border-color: var(--border-2); }
.value .ico { flex: none; width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; }
.value:nth-child(1) .ico { background: rgba(90, 166, 240, .14); stroke: var(--blue); }
.value:nth-child(2) .ico { background: rgba(140, 124, 240, .16); stroke: var(--violet); }
.value:nth-child(3) .ico { background: rgba(245, 205, 77, .14); stroke: var(--yellow); }
.value .ico svg { width: 24px; height: 24px; fill: none; stroke: inherit; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.value h3 { font-size: 1.12rem; margin-bottom: 4px; }
.value p { margin: 0; font-size: .93rem; color: var(--muted); }

/* ---------- contact ---------- */
#contact { padding-top: 24px; padding-bottom: 96px; }
.cta {
   position: relative; overflow: hidden; isolation: isolate;
   display: flex; align-items: center; justify-content: space-between; gap: 32px 48px; flex-wrap: wrap;
   padding: 64px; border-radius: 32px; background: var(--surface);
   border: 1px solid var(--border-2);
}
.cta::before {
   content: ""; position: absolute; inset: 0; z-index: -2;
   background:
      radial-gradient(520px 280px at 0% 0%, rgba(90, 166, 240, .22), transparent 70%),
      radial-gradient(520px 320px at 100% 100%, rgba(140, 124, 240, .26), transparent 70%);
}
/* orbit rings framing the call to action, each with a small glowing "planet" */
.cta-orbits { position: absolute; z-index: -1; right: -130px; top: 50%; width: 540px; aspect-ratio: 1; translate: 0 -50%; pointer-events: none; }
.cta-orbits span { position: absolute; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .07); animation: orbit 40s linear infinite; }
.cta-orbits span:nth-child(1) { inset: 0; }
.cta-orbits span:nth-child(2) { inset: 80px; animation-duration: 28s; animation-direction: reverse; }
.cta-orbits span:nth-child(3) { inset: 160px; animation-duration: 20s; }
.cta-orbits span::after {
   content: ""; position: absolute; top: 50%; left: -4px; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%;
   background: var(--yellow); box-shadow: 0 0 14px 2px rgba(245, 205, 77, .7);
}
.cta-orbits span:nth-child(2)::after { background: var(--blue); box-shadow: 0 0 14px 2px rgba(90, 166, 240, .7); }
.cta-orbits span:nth-child(3)::after { background: var(--violet); box-shadow: 0 0 14px 2px rgba(140, 124, 240, .7); }
@keyframes orbit { to { rotate: 360deg; } }
.cta h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 8px; }
.cta p { max-width: 540px; margin: 0; color: var(--text-2); }
.cta-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cta-mail { color: var(--text-2); font-size: .9rem; text-decoration: none; transition: color .2s; }
.cta-mail:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- footer ---------- */
.site-footer { background: var(--bg-deep); padding-top: 64px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { font-size: 1.02rem; color: var(--text); margin-bottom: 14px; }
.footer-grid a { display: block; text-decoration: none; color: var(--muted); margin-bottom: 8px; font-size: .93rem; transition: color .2s; }
.footer-grid a:hover { color: var(--text); }
.footer-grid .brand { display: inline-flex; margin-bottom: 14px; }
.footer-brand p { max-width: 320px; margin: 0 0 10px; font-size: .93rem; }
.footer-grid a.footer-mail { display: inline-flex; align-items: center; gap: 8px; }
.footer-mail svg { width: 16px; height: 16px; }
.footer-grid a.store-btn {
   display: flex; width: fit-content; align-items: center; gap: 10px; margin-top: 14px;
   padding: 10px 16px; border-radius: 12px; background: #000; color: #fff;
   border: 1px solid var(--border-2); font-weight: 600; font-size: .88rem;
   transition: border-color .2s, transform .2s;
}
.store-btn svg { width: 18px; fill: #fff; }
.footer-grid a.store-btn:hover { border-color: rgba(255, 255, 255, .35); transform: translateY(-2px); }
.footer-bottom {
   display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
   border-top: 1px solid var(--border); margin-top: 48px; padding: 22px 0 28px; color: var(--muted); font-size: .85rem;
}
.to-top {
   display: inline-flex; align-items: center; gap: 6px; padding: 6px 0;
   background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer; transition: color .2s;
}
.to-top svg { width: 15px; height: 15px; transition: transform .2s; }
.to-top:hover { color: var(--text); }
.to-top:hover svg { transform: translateY(-2px); }

/* ---------- legal pages ---------- */
.legal { padding: 120px 0 96px; }
.legal-layout { display: grid; grid-template-columns: 220px minmax(0, 820px); gap: 56px; justify-content: center; align-items: start; }
.legal-aside { position: sticky; top: 104px; }
.back-link { display: inline-block; margin-bottom: 32px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .93rem; transition: color .2s; }
.back-link:hover { color: var(--text); }
.toc-title { margin: 0 0 12px; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.legal-toc { display: flex; flex-direction: column; border-left: 1px solid var(--border-2); }
.legal-toc a {
   margin-left: -1px; padding: 6px 0 6px 16px; border-left: 2px solid transparent;
   color: var(--muted); text-decoration: none; font-size: .88rem; line-height: 1.4;
   transition: color .2s, border-color .2s;
}
.legal-toc a:hover { color: var(--text); }
.legal-toc a.active { color: var(--text); border-left-color: var(--blue); }
.legal-other {
   display: inline-block; margin-top: 28px; padding: 10px 14px; border-radius: 12px;
   background: var(--surface); border: 1px solid var(--border);
   color: var(--text-2); text-decoration: none; font-size: .88rem; font-weight: 600; transition: color .2s, border-color .2s;
}
.legal-other:hover { color: var(--text); border-color: var(--border-2); }
.legal-card {
   padding: clamp(24px, 5vw, 56px);
   background: var(--surface); border: 1px solid var(--border); border-radius: 28px;
}
.legal-card h1 { font-size: clamp(2rem, 4vw, 2.7rem); font-weight: 700; margin-bottom: .3em; }
.legal-card .updated {
   display: inline-block; color: var(--text-2); font-size: .88rem;
   background: var(--surface-2); padding: 4px 14px; border-radius: 999px; margin-bottom: 20px;
}
.legal-card h2 { font-size: 1.3rem; margin-top: 2em; }
.legal-card p { color: var(--text-2); }
.legal-card strong { color: var(--text); font-weight: 600; }
.legal-card a { color: var(--blue); }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 180px 0 96px; }
.notfound .big {
   font-family: var(--font-display); font-size: clamp(6rem, 18vw, 10rem); font-weight: 700; line-height: 1;
   background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.notfound p { color: var(--muted); margin-bottom: 30px; }
.notfound .hero-icons { justify-content: center; margin-top: 56px; }

/* ---------- motion ---------- */
@keyframes rise { from { opacity: 0; translate: 0 24px; } }
@keyframes stage-in { from { opacity: 0; translate: 0 40px; scale: .96; } }
.js .hero-copy > * { animation: rise .9s var(--ease) both; }
.js .hero-copy > :nth-child(2) { animation-delay: .08s; }
.js .hero-copy > :nth-child(3) { animation-delay: .16s; }
.js .hero-copy > :nth-child(4) { animation-delay: .24s; }
.js .hero-copy > :nth-child(5) { animation-delay: .32s; }
.js .hero-stage { animation: stage-in 1.1s .15s var(--ease) both; }
.js .reveal { opacity: 0; translate: 0 20px; transition: opacity .7s ease, translate .7s var(--ease); }
.js .reveal.in { opacity: 1; translate: none; }
.js .stagger > * { opacity: 0; }
.js .stagger.in > * { opacity: 1; animation: rise .8s var(--ease) both; }
.js .stagger.in > :nth-child(2) { animation-delay: .1s; }
.js .stagger.in > :nth-child(3) { animation-delay: .2s; }
.js .stagger.in > :nth-child(4) { animation-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
   .js .hero-copy > *, .js .hero-stage { animation: none; }
   .js .reveal { opacity: 1; translate: none; transition: none; }
   .js .stagger > *, .js .stagger.in > * { opacity: 1; animation: none; }
   .chip, .cta-orbits span, .ticker-track { animation: none; }
   .device, .stage-card, .chip { transition: none; }
   /* static, scrollable gallery instead of the moving marquee */
   .marquee { overflow-x: auto; padding-bottom: 14px; scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent; }
   .marquee::-webkit-scrollbar { height: 8px; }
   .marquee::-webkit-scrollbar-track { background: transparent; }
   .marquee::-webkit-scrollbar-thumb { background: var(--surface-3); border: 0; }
   .marquee-track { animation: none; padding-inline: 5vw; }
   .marquee-track .dup { display: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
   .hero-grid { grid-template-columns: 1fr; gap: 56px; }
   .hero-stage { max-width: 640px; width: 100%; margin: 0 auto; }
   .tile-featured { aspect-ratio: auto; min-height: 420px; }
   .tile-featured .tile-body { padding: 32px; }
   .about-grid { grid-template-columns: 1fr; gap: 40px; }
   .footer-grid { grid-template-columns: 1fr 1fr; }
   .footer-grid > :first-child { grid-column: 1 / -1; }
   .legal-layout { grid-template-columns: minmax(0, 820px); gap: 0; }
   .legal-aside { position: static; }
   .toc-title, .legal-toc, .legal-other { display: none; }
   .back-link { margin-bottom: 20px; }
   .cta-actions { align-items: flex-start; }
}
/* tablets: the three cards become rows, screenshot on the left and text on the right */
@media (min-width: 721px) and (max-width: 1000px) {
   .games-grid { grid-template-columns: 1fr; }
   .tile:not(.tile-featured) { flex-direction: row; }
   .tile:not(.tile-featured) .tile-media { flex: none; width: 48%; aspect-ratio: auto; min-height: 200px; }
   .tile:not(.tile-featured) .tile-media::after { background: linear-gradient(90deg, rgba(22, 26, 43, 0) 72%, var(--surface) 100%); }
   .tile:not(.tile-featured) .tile-body {
      margin: 0; padding: 22px 24px; justify-content: center;
      display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px 16px;
   }
   .tile:not(.tile-featured) .tile-icon { width: 56px; height: 56px; }
   .tile:not(.tile-featured) .play-btn { grid-column: 1 / -1; margin-top: 0; }
}
@media (max-width: 720px) {
   section { padding: 76px 0; }
   .hero { padding: 108px 0 24px; }
   .hero-icons a { width: 50px; height: 50px; border-radius: 14px; }
   .chip { padding: 8px 12px; font-size: .8rem; }
   .chip-platforms { left: 0; top: 0; }
   .ticker { padding: 14px 0; }
   .ticker-track span { font-size: .78rem; }
   .ticker-track > * { margin-right: 20px; }
   .ticker + section { padding-top: 64px; }
   .hero { padding-bottom: 40px; }
   .games-grid { grid-template-columns: 1fr; }
   /* phones: the featured game becomes a card like the others (image on top, text below) */
   .tile-featured { min-height: 0; }
   .tile-featured .tile-media { position: relative; z-index: 0; aspect-ratio: 20 / 9; }
   .tile-featured .tile-media::after { background: linear-gradient(180deg, rgba(12, 14, 26, .45) 0%, rgba(12, 14, 26, 0) 30%, rgba(12, 14, 26, 0) 62%, var(--surface) 100%); }
   .tile-body, .tile-featured .tile-body { padding: 0 20px 20px; margin-top: -30px; max-width: none; gap: 14px; }
   .tile-icon, .tile-featured .tile-icon { width: 64px; height: 64px; border-radius: 17px; }
   .tile-featured .tile-text h3 { font-size: 1.4rem; }
   .tile-featured .tile-text p { font-size: .9rem; }
   .play-btn, .tile-featured .play-btn { width: 100%; }
   .dots { top: 14px; right: 14px; bottom: auto; padding: 6px 8px; }
   .marquee-track { gap: 12px; animation-name: marquee-sm; }
   .marquee + .marquee { margin-top: 12px; }
   .marquee-track a { width: 280px; }
   .nav { gap: 10px; }
   .menu-btn {
      display: grid; gap: 5px; place-content: center; width: 40px; height: 40px;
      border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid var(--border-2); cursor: pointer;
   }
   .menu-btn span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s; }
   .site-header.open .menu-btn span:first-child { transform: translateY(3.5px) rotate(45deg); }
   .site-header.open .menu-btn span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
   .nav-links {
      position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0;
      background: var(--bg); border-bottom: 1px solid var(--border);
      padding: 8px 16px 16px; display: none;
   }
   .site-header.open .nav-links { display: flex; }
   .nav-links a { padding: 12px 8px; font-size: 1rem; }
   .lang-select { margin-left: auto; }
   .lang-select select { max-width: 96px; }
   .cta { padding: 40px 24px; border-radius: 26px; }
   .cta-orbits { width: 420px; right: -220px; }
   .footer-bottom { flex-direction: column-reverse; align-items: flex-start; }
}
@keyframes marquee-sm { to { transform: translateX(calc(-50% - 6px)); } }
@media (max-width: 440px) {
   .site-header .brand-text { display: none; }
}
