/* =========================================================
   OPL-AI Games – site styles
   Palette taken from the studio logo: cyan · pink · violet · amber
   ========================================================= */

/* ---------- Fonts (self-hosted, no third-party requests) ---------- */
@font-face { font-family: "Chakra Petch"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/chakra-petch-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Chakra Petch"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/chakra-petch-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Chakra Petch"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/chakra-petch-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Chakra Petch"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/chakra-petch-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Chakra Petch"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/chakra-petch-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Chakra Petch"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/chakra-petch-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

/* ---------- Tokens ---------- */
:root {
    --bg: #07061a;
    --bg-2: #0c0a24;
    --bg-3: #120f33;
    --surface: rgba(255, 255, 255, .035);
    --surface-2: rgba(255, 255, 255, .065);
    --border: rgba(255, 255, 255, .09);
    --border-strong: rgba(255, 255, 255, .16);
    --text: #f1eeff;
    --muted: #a7a2c9;
    --faint: #6f6a92;

    --cyan: #22d3ee;
    --pink: #f43f9e;
    --violet: #8b5cf6;
    --amber: #fbbf24;
    --green: #34d399;

    --grad: linear-gradient(95deg, var(--cyan) 0%, var(--violet) 40%, var(--pink) 70%, var(--amber) 100%);
    --grad-soft: linear-gradient(135deg, rgba(34, 211, 238, .18), rgba(139, 92, 246, .18) 45%, rgba(244, 63, 158, .16));

    --font-display: "Chakra Petch", "Segoe UI", system-ui, sans-serif;
    --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --container: 1180px;
    --header-h: 72px;
    --shadow: 0 20px 50px -20px rgba(0, 0, 0, .7);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; }
code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .88em; background: var(--surface-2); padding: .1em .4em; border-radius: 6px; }
::selection { background: rgba(139, 92, 246, .5); color: #fff; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; left: 16px; top: -60px; z-index: 200;
    background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 600; text-decoration: none;
    transition: top .2s;
}
.skip-link:focus { top: 12px; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.text-gradient {
    background: var(--grad);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
    --btn-h: 46px;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    height: var(--btn-h); padding: 0 22px;
    border-radius: 999px; border: 1px solid transparent;
    font-family: var(--font-display); font-weight: 600; font-size: 1rem; letter-spacing: .02em;
    text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: transform .18s ease, box-shadow .2s ease, background-color .2s, border-color .2s, color .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-lg { --btn-h: 54px; padding: 0 28px; font-size: 1.05rem; }
.btn-sm { --btn-h: 40px; padding: 0 16px; font-size: .92rem; }

.btn-primary {
    color: #0b0920;
    background: linear-gradient(95deg, var(--cyan), #a78bfa 55%, var(--pink));
    box-shadow: 0 10px 30px -10px rgba(139, 92, 246, .8), inset 0 1px 0 rgba(255, 255, 255, .4);
}
.btn-primary:hover { box-shadow: 0 16px 40px -10px rgba(244, 63, 158, .75), inset 0 1px 0 rgba(255, 255, 255, .4); }
.btn-outline { border-color: var(--border-strong); background: rgba(255, 255, 255, .03); color: var(--text); }
.btn-outline:hover { border-color: var(--cyan); background: rgba(34, 211, 238, .08); }
.btn-ghost { color: var(--text); background: var(--surface-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, .11); }

.icon-btn {
    display: inline-grid; place-items: center;
    width: 42px; height: 42px; border-radius: 12px;
    border: 1px solid var(--border); background: var(--surface);
    color: var(--text); cursor: pointer; text-decoration: none;
    transition: border-color .2s, background-color .2s, color .2s;
}
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn:hover { border-color: var(--pink); color: #fff; background: rgba(244, 63, 158, .1); }

.link-btn {
    background: none; border: 0; padding: 0; cursor: pointer;
    color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.3);
}
.link-btn:hover { color: var(--text); text-decoration-color: currentColor; }

/* Store button (badge-style) */
.store-btn {
    display: inline-flex; align-items: center; gap: 10px;
    min-height: 48px; padding: 8px 18px 8px 14px;
    border-radius: 12px; border: 1px solid var(--border-strong);
    background: #000; color: #fff;
    font-weight: 600; font-size: .95rem; line-height: 1.2; text-decoration: none;
    transition: transform .18s, border-color .2s, box-shadow .2s;
}
.store-btn svg { width: 22px; height: 22px; flex: none; }
a.store-btn:hover { transform: translateY(-2px); border-color: var(--cyan); box-shadow: 0 10px 30px -12px rgba(34, 211, 238, .7); }
.store-btn.is-soon { background: transparent; color: var(--muted); border-style: dashed; cursor: default; }
.store-btn-sm { white-space: nowrap; min-height: 40px; padding: 6px 14px 6px 11px; font-size: .86rem; border-radius: 10px; width: 100%; justify-content: center; }
.store-btn-sm svg { width: 18px; height: 18px; }

/* Pills / chips / status */
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-display); font-weight: 600; font-size: .82rem;
    letter-spacing: .22em; text-transform: uppercase; color: var(--cyan);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--grad); }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 12px; border-radius: 999px; font-size: .82rem; font-weight: 500;
    background: var(--surface-2); border: 1px solid var(--border); color: var(--muted);
}
.chip svg { width: 14px; height: 14px; }

.status {
    display: inline-flex; align-items: center; gap: 8px; width: fit-content;
    padding: 4px 12px; border-radius: 999px;
    font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
    border: 1px solid currentColor;
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-live { color: var(--green); background: rgba(52, 211, 153, .08); }
.status-live::before { box-shadow: 0 0 0 0 rgba(52, 211, 153, .7); animation: pulse 2s infinite; }
.status-testing { color: var(--amber); background: rgba(251, 191, 36, .08); }
.status-soon { color: var(--muted); }

.pill { padding: 4px 12px; border-radius: 999px; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.pill-on { color: var(--green); background: rgba(52, 211, 153, .1); }

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); }
    70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    height: var(--header-h);
    background: rgba(7, 6, 26, .55);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border-bottom: 1px solid transparent;
    transition: border-color .3s, background-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--border); background: rgba(7, 6, 26, .82); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { width: 44px; height: 44px; }
.brand-text { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: .02em; }
.brand-dash { color: var(--violet); }
.brand-sub { font-weight: 500; color: var(--muted); }

.main-nav { display: flex; gap: 6px; margin-left: auto; }
.main-nav a {
    position: relative; padding: 8px 14px; border-radius: 10px;
    font-weight: 500; font-size: .95rem; color: var(--muted); text-decoration: none;
    transition: color .2s, background-color .2s;
}
.main-nav a:hover { color: var(--text); background: var(--surface-2); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.lang-switch {
    display: flex; padding: 3px; gap: 2px;
    border: 1px solid var(--border); border-radius: 12px; background: var(--surface);
}
.lang-switch a {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 10px; border-radius: 9px;
    font-size: .8rem; font-weight: 600; letter-spacing: .04em; color: var(--muted); text-decoration: none;
    transition: background-color .2s, color .2s;
}
.lang-switch img { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; }
.lang-switch a:hover { color: var(--text); }
.lang-switch a.is-active { background: rgba(139, 92, 246, .22); color: #fff; }

.menu-toggle { display: none; }
.burger { display: grid; gap: 4px; width: 18px; }
.burger span { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s, opacity .2s; }
.menu-toggle[aria-expanded="true"] .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .burger span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    position: relative; isolation: isolate; overflow: hidden;
    padding: clamp(48px, 8vw, 110px) 0 clamp(64px, 9vw, 130px);
    margin-top: calc(var(--header-h) * -1);
    padding-top: calc(var(--header-h) + clamp(40px, 7vw, 90px));
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.orb-cyan { width: 480px; height: 480px; background: var(--cyan); left: -160px; top: 10%; opacity: .28; }
.orb-pink { width: 520px; height: 520px; background: var(--pink); right: -140px; top: 30%; opacity: .26; }
.orb-violet { width: 640px; height: 640px; background: var(--violet); left: 35%; top: -260px; opacity: .32; }
.grid-floor {
    position: absolute; left: -10%; right: -10%; bottom: -2px; height: 46%;
    background-image:
        linear-gradient(rgba(139, 92, 246, .22) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, .22) 1px, transparent 1px);
    background-size: 56px 56px;
    transform: perspective(500px) rotateX(62deg);
    transform-origin: bottom;
    mask-image: linear-gradient(to top, #000 10%, transparent 85%);
    -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 85%);
}

.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(32px, 5vw, 72px); }
.hero-copy { display: grid; gap: 22px; justify-items: start; }
.hero-title { font-size: clamp(2.6rem, 6.2vw, 4.6rem); font-weight: 700; line-height: 1.02; letter-spacing: -.02em; }
.hero-title span { display: block; }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero-platforms { list-style: none; display: flex; flex-wrap: wrap; gap: 20px; margin-top: 10px; color: var(--faint); font-size: .9rem; font-weight: 500; }
.hero-platforms li { display: inline-flex; align-items: center; gap: 8px; }
.hero-platforms svg { width: 18px; height: 18px; color: var(--muted); }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 380px; }
.logo-stage { position: relative; width: min(100%, 420px); aspect-ratio: 1; display: grid; place-items: center; }
.logo-stage img { position: relative; width: 100%; filter: drop-shadow(0 0 40px rgba(139, 92, 246, .45)); animation: float 7s ease-in-out infinite; }
.logo-ring {
    position: absolute; inset: 6%;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--cyan), var(--violet), var(--pink), var(--amber), var(--cyan));
    filter: blur(46px); opacity: .45;
    animation: spin 14s linear infinite;
}
.float-shape { position: absolute; width: 44px; height: 44px; opacity: .8; animation: drift 9s ease-in-out infinite; }
.fs-1 { color: var(--cyan); top: 4%; left: 6%; }
.fs-2 { color: var(--pink); top: 10%; right: 4%; width: 36px; animation-delay: -2s; }
.fs-3 { color: var(--violet); bottom: 10%; left: 2%; width: 34px; animation-delay: -4s; }
.fs-4 { color: var(--amber); bottom: 4%; right: 10%; animation-delay: -6s; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drift { 0%, 100% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(8px, -16px) rotate(14deg); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(72px, 10vw, 128px) 0; }
.section-alt { background: linear-gradient(180deg, transparent, var(--bg-2) 12%, var(--bg-2) 88%, transparent); }
.section-head { display: grid; gap: 14px; justify-items: center; text-align: center; max-width: 720px; margin: 0 auto clamp(40px, 6vw, 64px); }
.section-title { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 700; }
.section-lead { color: var(--muted); font-size: 1.08rem; }

/* ---------- Games showcase ---------- */
.showcase { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); gap: 24px; }
.showcase-card {
    position: relative; display: grid; grid-template-columns: 200px 1fr; gap: 28px;
    padding: 28px; border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
    border: 1px solid var(--border);
    overflow: hidden;
    transition: border-color .3s, transform .3s;
}
.showcase-card::before {
    content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
    background: var(--grad-soft); transition: opacity .3s;
}
.showcase-card:hover { border-color: var(--border-strong); transform: translateY(-4px); }
.showcase-card:hover::before { opacity: 1; }
.showcase-card[data-game="racesalt"] { --accent: #ff7a1a; }
.showcase-card[data-game="halzom"] { --accent: #7ed957; }
.showcase-art { position: relative; align-self: start; }
.showcase-art::after {
    content: ""; position: absolute; inset: 14% 10% -6%; z-index: -1;
    background: var(--accent, var(--violet)); filter: blur(36px); opacity: .45; border-radius: 30%;
}
.showcase-art img { width: 100%; border-radius: 22%; box-shadow: var(--shadow); }
.showcase-body { display: grid; gap: 10px; align-content: start; }
.showcase-name { font-size: 2rem; font-weight: 700; margin-top: 4px; }
.showcase-genre { font-family: var(--font-display); color: var(--accent, var(--cyan)); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: .9rem; margin-top: -6px; }
.showcase-tagline { font-weight: 600; color: var(--text); }
.showcase-desc { color: var(--muted); font-size: .96rem; }
.showcase-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

/* ---------- Stores ---------- */
.stores { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.store-panel {
    --store: var(--violet);
    display: flex; flex-direction: column; gap: 22px;
    padding: 24px; border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, .03);
    border: 1px solid var(--border);
    position: relative; overflow: hidden;
}
.store-panel::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
    background: var(--store); opacity: .9;
}
.store-googleplay { --store: linear-gradient(90deg, #00d26a, #00b3ff, #ffcc00, #ff3a44); --store-tint: rgba(0, 210, 106, .14); --store-color: #34d399; }
.store-appstore { --store: linear-gradient(90deg, #4fa3ff, #b06bff); --store-tint: rgba(79, 163, 255, .14); --store-color: #7cb8ff; }
.store-steam { --store: linear-gradient(90deg, #1b2838, #66c0f4); --store-tint: rgba(102, 192, 244, .12); --store-color: #66c0f4; }

.store-head { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; }
.store-head h3 { font-size: 1.35rem; font-weight: 700; }
.store-head p { color: var(--muted); font-size: .88rem; }
.store-icon {
    display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px;
    background: var(--store-tint); border: 1px solid var(--border); color: var(--store-color);
}
.store-icon svg { width: 28px; height: 28px; }
.store-count {
    align-self: start; padding: 4px 10px; border-radius: 999px;
    font-size: .75rem; font-weight: 600; white-space: nowrap;
    color: var(--store-color); background: var(--store-tint);
}

.store-games { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; flex: 1; }
.game-card {
    display: grid; justify-items: center; align-content: start; gap: 6px; text-align: center;
    padding: 18px 14px 14px; border-radius: var(--radius);
    background: var(--bg-3); border: 1px solid var(--border);
    transition: border-color .25s, transform .25s;
}
.game-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.game-card img { width: 84px; height: 84px; border-radius: 22%; margin-bottom: 6px; box-shadow: 0 10px 24px -10px rgba(0,0,0,.8); }
.game-card.is-soon img { filter: saturate(.75); }
.game-card h4 { font-size: 1.08rem; font-weight: 700; }
.game-card p { color: var(--muted); font-size: .82rem; margin-bottom: 8px; }
.game-card .store-btn { margin-top: auto; }

.store-empty {
    flex: 1; display: grid; justify-items: center; align-content: center; gap: 10px; text-align: center;
    padding: 28px 18px; border-radius: var(--radius);
    border: 1.5px dashed var(--border-strong);
    background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(255,255,255,.015) 14px 28px);
}
.store-empty-icon { width: 46px; height: 46px; color: var(--store-color); opacity: .85; }
.store-empty h4 { font-size: 1.1rem; }
.store-empty p { color: var(--muted); font-size: .88rem; max-width: 28em; margin-bottom: 6px; }

/* ---------- Studio ---------- */
.studio { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.studio-copy { display: grid; gap: 16px; }
.studio-copy p { color: var(--muted); font-size: 1.05rem; }
.values { list-style: none; display: grid; gap: 14px; }
.value {
    display: grid; grid-template-columns: auto 1fr; column-gap: 18px; row-gap: 2px; align-items: center;
    padding: 20px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
}
.value-icon { grid-row: span 2; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; }
.value-icon svg { width: 24px; height: 24px; }
.vi-cyan { color: var(--cyan); background: rgba(34, 211, 238, .12); }
.vi-pink { color: var(--pink); background: rgba(244, 63, 158, .12); }
.vi-amber { color: var(--amber); background: rgba(251, 191, 36, .12); }
.value h3 { font-size: 1.12rem; }
.value p { color: var(--muted); font-size: .94rem; }

/* ---------- Contact ---------- */
.section-contact { padding-top: 0; }
.contact-card {
    position: relative; overflow: hidden; isolation: isolate;
    display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
    padding: clamp(28px, 5vw, 56px); border-radius: 28px;
    background: linear-gradient(135deg, #15103b, #0e0b29 55%, #1d0f30);
    border: 1px solid var(--border-strong);
}
.contact-card::before {
    content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; padding: 1px;
    background: var(--grad); opacity: .5;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
}
.contact-copy { display: grid; gap: 14px; }
.contact-links { display: grid; gap: 14px; }
.contact-link {
    display: flex; align-items: center; gap: 16px;
    padding: 18px 20px; border-radius: var(--radius);
    background: rgba(255,255,255,.04); border: 1px solid var(--border);
    text-decoration: none; transition: border-color .2s, transform .2s, background-color .2s;
}
.contact-link:hover { border-color: var(--border-strong); background: rgba(255,255,255,.07); transform: translateX(4px); }
.contact-link small { display: block; color: var(--muted); font-size: .82rem; }
.contact-link strong { display: block; font-family: var(--font-display); font-size: 1.15rem; word-break: break-all; }
.contact-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; flex: none; }
.contact-icon svg { width: 24px; height: 24px; }
.ci-cyan { color: var(--cyan); background: rgba(34, 211, 238, .12); }
.ci-pink { color: #fff; background: linear-gradient(135deg, #f9ce34, #ee2a7b 50%, #6228d7); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: #050414; padding-top: 56px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1fr; gap: 32px; padding-bottom: 40px; }
.footer-brand { display: grid; gap: 14px; align-content: start; }
.footer-brand p { color: var(--muted); font-size: .92rem; max-width: 28em; }
.footer-social { display: flex; gap: 10px; }
.footer-title { font-size: .82rem; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; font-weight: 600; }
.footer-links { list-style: none; display: grid; gap: 10px; font-size: .94rem; }
.footer-links a, .footer-links .link-btn { color: var(--muted); text-decoration: none; transition: color .2s; text-align: left; }
.footer-links a:hover, .footer-links .link-btn:hover { color: var(--text); }
.footer-bottom { display: grid; gap: 8px; padding: 22px 0 32px; border-top: 1px solid var(--border); color: var(--faint); font-size: .84rem; }
.footer-tm { font-size: .76rem; }

/* ---------- Legal pages ---------- */
.legal-hero { padding: clamp(48px, 7vw, 88px) 0 32px; background: radial-gradient(800px 300px at 20% 0%, rgba(139,92,246,.22), transparent 70%); }
.legal-hero .container { display: grid; gap: 12px; }
.legal-title { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.legal-meta { color: var(--muted); font-size: .92rem; }
.legal-layout { display: grid; grid-template-columns: 240px 1fr; gap: clamp(28px, 5vw, 64px); padding-bottom: 80px; align-items: start; }
.legal-nav { position: sticky; top: calc(var(--header-h) + 24px); }
.legal-nav ul { list-style: none; display: grid; gap: 4px; padding: 10px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.legal-nav a, .legal-nav .link-btn {
    display: block; width: 100%; text-align: left; padding: 10px 14px; border-radius: 10px;
    color: var(--muted); text-decoration: none; font-size: .94rem; font-weight: 500;
}
.legal-nav a:hover, .legal-nav .link-btn:hover { background: var(--surface-2); color: var(--text); }
.legal-nav a.is-active { background: rgba(139, 92, 246, .2); color: #fff; }

.prose { max-width: 760px; color: #d7d3ef; font-size: 1.01rem; }
.prose > * + * { margin-top: 1em; }
.prose .lead { font-size: 1.12rem; color: var(--text); }
.prose h2 { font-size: 1.45rem; color: var(--text); margin-top: 2.2em; padding-top: .2em; }
.prose h3 { font-size: 1.12rem; color: var(--text); margin-top: 1.6em; }
.prose ul { padding-left: 1.25em; display: grid; gap: .45em; }
.prose li::marker { color: var(--violet); }
.prose a { color: var(--cyan); text-underline-offset: 3px; }
.prose a:hover { color: #fff; }
.prose strong { color: var(--text); }
.prose .link-btn { color: var(--cyan); }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.prose table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.prose th, .prose td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.prose th { background: var(--surface-2); color: var(--text); font-weight: 600; white-space: nowrap; }
.prose tr:last-child td { border-bottom: 0; }

/* ---------- Status pages ---------- */
.status-page { padding: clamp(80px, 14vw, 160px) 0; text-align: center; }
.status-inner { display: grid; gap: 16px; justify-items: center; max-width: 560px; }
.status-code { font-family: var(--font-display); font-weight: 700; font-size: clamp(5rem, 16vw, 9rem); line-height: 1; }
.status-inner h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
.status-inner p { color: var(--muted); }
.status-inner .btn { margin-top: 10px; }

/* ---------- Cookie consent ---------- */
.cookie-banner {
    position: fixed; z-index: 150; left: 16px; right: 16px; bottom: 16px;
    max-width: 1080px; margin-inline: auto;
    border-radius: 20px; border: 1px solid var(--border-strong);
    background: rgba(16, 13, 42, .94);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8);
    animation: slideUp .45s cubic-bezier(.2, .8, .2, 1);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-inner { display: flex; align-items: center; gap: 24px; padding: 20px 22px; }
.cookie-banner-text { display: flex; gap: 14px; align-items: flex-start; flex: 1; }
.cookie-icon { width: 30px; height: 30px; color: var(--amber); flex: none; margin-top: 2px; }
.cookie-banner h2 { font-size: 1.05rem; margin-bottom: 4px; }
.cookie-banner p { color: var(--muted); font-size: .9rem; line-height: 1.55; }
.cookie-banner a { color: var(--cyan); }
.cookie-banner-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; flex: none; }

.cookie-dialog {
    width: min(100% - 32px, 560px); padding: 0; border: 1px solid var(--border-strong); border-radius: 22px;
    background: #110e2c; color: var(--text); box-shadow: 0 40px 100px -20px rgba(0,0,0,.9);
}
.cookie-dialog::backdrop { background: rgba(3, 2, 12, .7); backdrop-filter: blur(4px); }
.cookie-dialog[open] { animation: pop .25s ease-out; }
.cookie-dialog-body { display: grid; gap: 16px; padding: 24px; }
.cookie-dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cookie-dialog-head h2 { font-size: 1.35rem; }
.cookie-dialog .muted { font-size: .92rem; }
.cookie-option {
    display: flex; justify-content: space-between; align-items: center; gap: 18px;
    padding: 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border);
}
.cookie-option h3 { font-size: 1rem; font-family: var(--font-body); font-weight: 600; }
.cookie-option p { color: var(--muted); font-size: .86rem; margin-top: 2px; }
.cookie-dialog-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-top: 4px; }
.cookie-dialog-link { font-size: .86rem; text-align: right; }
.cookie-dialog-link a { color: var(--cyan); }

.switch { position: relative; flex: none; width: 50px; height: 28px; cursor: pointer; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.switch-track { position: absolute; inset: 0; border-radius: 999px; background: #2b2750; border: 1px solid var(--border-strong); transition: background-color .2s; }
.switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked + .switch-track { background: linear-gradient(90deg, var(--violet), var(--pink)); }
.switch input:checked + .switch-track::after { transform: translateX(22px); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--cyan); outline-offset: 2px; }

.toast {
    position: fixed; z-index: 160; left: 50%; bottom: 24px; transform: translateX(-50%);
    padding: 12px 20px; border-radius: 12px; background: #1d1946; border: 1px solid var(--border-strong);
    font-size: .92rem; box-shadow: var(--shadow); animation: slideUp .3s ease-out;
}
.toast[hidden] { display: none; }

@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.toast { animation-name: toastIn; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .stores { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    :root { --header-h: 64px; }
    .menu-toggle { display: inline-grid; }
    .main-nav {
        position: fixed; left: 0; right: 0; top: var(--header-h);
        flex-direction: column; gap: 4px; padding: 16px 20px 24px;
        background: rgba(7, 6, 26, .97); border-bottom: 1px solid var(--border);
        backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
        transform: translateY(-8px); opacity: 0; visibility: hidden;
        transition: opacity .2s, transform .2s, visibility .2s;
    }
    .main-nav.is-open { transform: none; opacity: 1; visibility: visible; }
    .main-nav a { padding: 14px 12px; font-size: 1.05rem; }
    .header-actions { margin-left: auto; }

    .hero-inner { grid-template-columns: 1fr; text-align: center; }
    .hero-copy { justify-items: center; }
    .hero-actions, .hero-platforms { justify-content: center; }
    .hero-visual { order: -1; min-height: 0; }
    .logo-stage { width: min(72vw, 320px); }
    .eyebrow::before { display: none; }

    .studio { grid-template-columns: 1fr; }
    .contact-card { grid-template-columns: 1fr; }
    .legal-layout { grid-template-columns: 1fr; }
    .legal-nav { position: static; }
    .legal-nav ul { display: flex; flex-wrap: wrap; }
    .legal-nav li { flex: 1 1 auto; }
    .legal-nav a, .legal-nav .link-btn { text-align: center; }

    .cookie-banner-inner { flex-direction: column; align-items: stretch; gap: 16px; }
    .cookie-banner-actions { justify-content: stretch; }
    .cookie-banner-actions .btn { flex: 1 1 auto; }
}

@media (max-width: 600px) {
    .brand-text { font-size: 1.05rem; }
    .brand-sub { display: none; }
    .lang-switch a { padding: 6px 8px; }
    .header-actions > .icon-btn:not(.menu-toggle) { display: none; }

    .showcase-card { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 24px 20px; }
    .showcase-art { width: 150px; }
    .showcase-body { justify-items: center; }
    .chips, .showcase-actions { justify-content: center; }
    .store-panel { padding: 20px 16px; }
    .store-games { gap: 10px; }
    .game-card { padding: 16px 10px 12px; }
    .game-card img { width: 72px; height: 72px; }
    .store-btn-sm { font-size: .8rem; padding: 6px 8px; gap: 6px; }
    .footer-grid { grid-template-columns: 1fr; }
    .cookie-dialog-actions .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .js .reveal { opacity: 1; transform: none; }
}
