/* ==========================================================================
   GameVira — design system
   Dark arena aesthetic: near-black base, electric-cyan accent, square glass
   panels with hairline borders, Chakra Petch display type, Manrope body.
   No inline styles anywhere (strict CSP: style-src 'self').
   ========================================================================== */

/* ---- Fonts (self-hosted, SIL OFL — see assets/fonts) --------------------- */
@font-face { font-family: "Chakra Petch"; font-style: normal; font-weight: 400; font-display: swap;
    src: url("../fonts/chakra-petch-400-latin.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: 400; font-display: swap;
    src: url("../fonts/chakra-petch-400-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: 500; font-display: swap;
    src: url("../fonts/chakra-petch-500-latin.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-500-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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-600-latin.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-600-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: "Manrope"; font-style: normal; font-weight: 400 700; font-display: swap;
    src: url("../fonts/manrope-latin.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: "Manrope"; font-style: normal; font-weight: 400 700; font-display: swap;
    src: url("../fonts/manrope-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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 {
    --black: #0a0d12;
    --black-2: #0d1118;
    --panel: rgba(255, 255, 255, 0.05);
    --panel-2: rgba(255, 255, 255, 0.1);
    --line: rgba(255, 255, 255, 0.1);
    --line-strong: rgba(255, 255, 255, 0.24);
    --white: #ffffff;
    --text: #dbe0e1;
    --muted: #9f9f9f;
    --primary: #04d3f7;
    --primary-soft: rgba(4, 211, 247, 0.14);
    --magenta: #d63ab7;
    --violet: #7c4dff;
    --danger: #ff5d6c;
    --danger-soft: rgba(255, 93, 108, 0.12);
    --success: #34d399;
    --success-soft: rgba(52, 211, 153, 0.12);
    --warning: #fbbf24;

    --font-head: "Chakra Petch", "Segoe UI", system-ui, sans-serif;
    --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;

    --container: 1460px;
    --container-narrow: 1020px;
    --gutter: 30px;
    --section-y: 150px;
    --header-h: 120px;
    --blur: blur(10px);
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---- Reset / base ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--black);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.3px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
main { flex: 1; display: block; }
main:focus { outline: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
ul, ol { padding: 0; }
address { font-style: normal; }
code {
    font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
    font-size: 0.88em;
    padding: 0.1em 0.4em;
    background: var(--panel-2);
    color: var(--white);
}
a { color: var(--primary); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-weight: 500;
    color: var(--white);
    line-height: 1.2;
    letter-spacing: 0;
    text-wrap: balance;
}
h1 { font-size: 60px; }
h2 { font-size: 48px; }
h3 { font-size: 28px; line-height: 1.3; }
h4 { font-size: 22px; line-height: 1.3; }
p { text-wrap: pretty; }

::selection { background: var(--primary); color: var(--black); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

.icon { width: 1.25em; height: 1.25em; flex: none; }
.icon--accent { color: var(--primary); }
.text-accent { color: var(--primary); }
.muted { color: var(--muted); }
.lead { font-size: 18px; line-height: 1.6; color: var(--text); }
.link-muted { color: var(--muted); font-size: 15px; }
.link-muted:hover { color: var(--white); }

.sr-only {
    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: -100px; z-index: 1000;
    padding: 12px 22px;
    background: var(--primary); color: var(--black);
    font-weight: 700;
}
.skip-link:focus { top: 16px; color: var(--black); text-decoration: none; }
[hidden] { display: none !important; }

/* ---- Layout -------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }

.section { position: relative; padding-block: var(--section-y); }
.section--tight { padding-block: 60px var(--section-y); }
.section--flush-top { padding-top: 0; }
.section--player { padding-block: 10px 80px; }
.section--cta { padding-block: 0 var(--section-y); }
.section--contact { padding-top: 0; margin-top: -40px; z-index: 2; }

.section-head { position: relative; z-index: 2; margin-bottom: 50px; }
.section-head h2 { margin: 0; }
.section-head--split {
    display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
    gap: 24px 40px;
}
.section-head--center { text-align: center; }
.section-lead { max-width: 620px; margin: 16px auto 0; color: var(--text); font-size: 18px; }
.section-foot { display: flex; justify-content: center; margin-top: 50px; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    margin-bottom: 14px;
    color: var(--primary);
    font-family: var(--font-head);
    font-size: 15px; font-weight: 600;
    letter-spacing: 0.14em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.section-head--center .eyebrow::after,
.page-hero .eyebrow::after,
.hero .eyebrow::after { content: ""; width: 22px; height: 1px; background: currentColor; }

.panel {
    position: relative;
    background: var(--panel);
    border: 1px solid var(--line);
    -webkit-backdrop-filter: var(--blur);
    backdrop-filter: var(--blur);
    padding: 30px;
}
.panel__head {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 16px; margin-bottom: 24px;
}
.panel__title {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 12px;
    font-size: 24px; line-height: 1.25;
}
.panel__head .panel__title { margin: 0; }
.panel > p + p { margin-top: 10px; }
.panel--danger { border-color: rgba(255, 93, 108, 0.4); }
.panel--danger .panel__title { color: var(--danger); }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 40px;
    border: 1px solid transparent;
    border-radius: 0;
    font-family: var(--font-body);
    font-size: 16px; font-weight: 600; line-height: 1.4;
    letter-spacing: 0.2px;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.btn:hover { text-decoration: none; }
.btn .icon { width: 18px; height: 18px; }
.btn--primary { background: var(--primary); color: var(--black); }
.btn--primary:hover { background: var(--panel-2); color: var(--white); }
.btn--glass {
    background: var(--panel);
    border-color: var(--line);
    color: var(--white);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.btn--glass:hover { background: var(--panel-2); border-color: var(--line-strong); color: var(--white); }
.btn--danger { background: transparent; border-color: rgba(255, 93, 108, 0.55); color: var(--danger); }
.btn--danger:hover { background: var(--danger-soft); color: #ffb3ba; }
.btn--sm { padding: 10px 22px; font-size: 15px; }
.btn--xs { padding: 6px 14px; font-size: 13px; }
.btn--block { width: 100%; }

/* ---- Brand --------------------------------------------------------------- */
.brand {
    display: inline-flex; align-items: center;
    color: var(--white);
    font-family: var(--font-head);
    font-size: 30px; font-weight: 600; line-height: 1;
    letter-spacing: 0.06em;
}
.brand:hover { color: var(--white); text-decoration: none; }
.brand__accent {
    color: var(--primary);
    text-shadow: 0 0 18px rgba(4, 211, 247, 0.55);
}

/* ---- Header -------------------------------------------------------------- */
.site-header { position: relative; z-index: 50; padding-block: 36px; }
.site-header__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
}
.site-nav__list { display: flex; align-items: center; gap: 6px; list-style: none; }
.site-nav__link {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px;
    color: var(--white);
    font-size: 17px; font-weight: 500;
    transition: color 0.3s ease;
}
.site-nav__link:hover,
.site-nav__link.is-active { color: var(--primary); text-decoration: underline; text-underline-offset: 6px; }
.site-nav__mobile { display: none; }
.site-header__actions { display: flex; align-items: center; justify-content: flex-end; gap: 22px; }
.site-header__signin { color: var(--white); font-size: 17px; }
.site-header__signin:hover, .site-header__signin.is-active { color: var(--primary); }
.site-header__actions .btn { padding: 13px 30px; }

.nav-toggle {
    display: none;
    justify-self: end;
    width: 48px; height: 48px;
    align-items: center; justify-content: center;
    background: var(--panel);
    border: 1px solid var(--line);
    color: var(--muted);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] { border-color: var(--white); color: var(--white); }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

/* Account dropdown (native <details>; JS adds outside-click/Escape closing) */
.account-menu { position: relative; }
.account-menu__toggle {
    display: flex; align-items: center; gap: 12px;
    padding: 7px 16px 7px 7px;
    background: var(--panel);
    border: 1px solid var(--line);
    color: var(--white);
    cursor: pointer;
    list-style: none;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    transition: border-color 0.3s ease, background-color 0.3s ease;
}
.account-menu__toggle::-webkit-details-marker { display: none; }
.account-menu__toggle:hover, .account-menu[open] .account-menu__toggle { background: var(--panel-2); border-color: var(--line-strong); }
.account-menu__avatar {
    display: grid; place-items: center;
    width: 36px; height: 36px;
    background: var(--primary); color: var(--black);
    font-family: var(--font-head); font-size: 17px; font-weight: 600;
}
.account-menu__name { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.account-menu__chevron { width: 16px; height: 16px; color: var(--muted); transition: transform 0.3s ease; }
.account-menu[open] .account-menu__chevron { transform: rotate(180deg); }
.account-menu__panel {
    position: absolute; right: 0; top: calc(100% + 12px);
    width: 240px;
    padding: 8px;
    background: rgba(13, 17, 24, 0.96);
    border: 1px solid var(--line);
    -webkit-backdrop-filter: var(--blur);
    backdrop-filter: var(--blur);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.account-menu__email {
    padding: 10px 12px 12px; margin-bottom: 6px;
    border-bottom: 1px solid var(--line);
    color: var(--muted); font-size: 13px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.account-menu__link {
    display: flex; align-items: center; gap: 10px;
    width: 100%; padding: 10px 12px;
    background: none; border: 0;
    color: var(--text); font-size: 15px; font-weight: 500; text-align: left;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.account-menu__link .icon { width: 18px; height: 18px; color: var(--muted); }
.account-menu__link:hover { background: var(--panel-2); color: var(--white); text-decoration: none; }
.account-menu__link:hover .icon { color: var(--primary); }
.account-menu__link--danger:hover, .account-menu__link--danger:hover .icon { color: var(--danger); }

/* ---- Flash messages / alerts ----------------------------------------------- */
.flash-stack { position: relative; z-index: 40; display: grid; gap: 10px; margin-bottom: 20px; }
.alert {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 14px 18px;
    border: 1px solid;
    font-size: 15px; font-weight: 600; line-height: 1.45;
    -webkit-backdrop-filter: var(--blur);
    backdrop-filter: var(--blur);
}
.alert .icon { width: 20px; height: 20px; margin-top: 1px; }
.alert--success { background: var(--success-soft); border-color: rgba(52, 211, 153, 0.45); color: #b5f5dc; }
.alert--error { background: var(--danger-soft); border-color: rgba(255, 93, 108, 0.45); color: #ffc2c8; }
.alert--info { background: var(--primary-soft); border-color: rgba(4, 211, 247, 0.4); color: #bff4fd; }
.form .alert, .auth__panel .alert, .contact-form .alert { margin-bottom: 20px; }

/* ---- Hero ------------------------------------------------------------------ */
.hero {
    position: relative;
    overflow: hidden;
    margin-top: calc(-1 * var(--header-h));
    padding: calc(var(--header-h) + 170px) 0 180px;
    text-align: center;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.hero__shade-top {
    position: absolute; left: 0; right: 0; top: -100px;
    height: 230px;
    background: var(--black);
    filter: blur(50px);
}
.hero__shade {
    position: absolute; inset: -1% 0 0;
    background: linear-gradient(180deg, rgba(10, 13, 18, 0.25) 0%, rgba(10, 13, 18, 0.35) 45%, var(--black) 100%);
}
.hero__content { position: relative; z-index: 2; }
.hero__title { margin-bottom: 22px; font-size: 90px; line-height: 1.08; }
.hero__lead {
    max-width: 75%;
    margin-inline: auto;
    color: var(--white);
    font-size: 20px; line-height: 1.5;
}
.hero__actions {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
    gap: 14px 30px;
    margin-top: 50px;
}
.hero--page { padding: calc(var(--header-h) + 120px) 0 140px; }
.hero--page .hero__title { font-size: 80px; }
.hero--contact { padding-bottom: 120px; }

/* ---- Inner page hero ---------------------------------------------------------- */
.page-hero { position: relative; padding-top: 10px; }
.page-hero__box {
    position: relative;
    overflow: hidden;
    padding: 56px 40px;
    background: var(--panel);
    border: 1px solid var(--line);
    text-align: center;
}
.page-hero__box::before {
    content: "";
    position: absolute; inset: 0;
    background:
        radial-gradient(600px 220px at 15% 0%, rgba(214, 58, 183, 0.16), transparent 70%),
        radial-gradient(600px 240px at 85% 100%, rgba(4, 211, 247, 0.14), transparent 70%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 64px);
    pointer-events: none;
}
.page-hero__box > * { position: relative; }
.page-hero__title { font-size: 60px; }
.page-hero__lead { max-width: 680px; margin: 14px auto 0; font-size: 18px; color: var(--text); }
.page-hero__meta { margin-top: 14px; color: var(--muted); font-size: 14px; }

/* ---- Perk strip (marquee) -------------------------------------------------------- */
.strip { position: relative; z-index: 2; }
.strip__inner {
    display: grid;
    grid-template-columns: auto 1px minmax(0, 1fr);
    align-items: center;
    gap: 50px;
}
.strip__title { font-size: 28px; white-space: nowrap; }
.strip__divider { width: 1px; height: 60px; background: linear-gradient(180deg, transparent, var(--primary), transparent); }
.marquee {
    position: relative;
    display: flex;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
    display: flex; flex: none; align-items: center;
    gap: 70px;
    padding-right: 70px;
    list-style: none;
    animation: marquee 38s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
    display: inline-flex; align-items: center; gap: 12px;
    color: var(--muted);
    font-family: var(--font-head);
    font-size: 19px; font-weight: 500;
    white-space: nowrap;
}
.marquee__item .icon { width: 26px; height: 26px; color: var(--text); }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---- Tabs ---------------------------------------------------------------------- */
.tabs {
    display: flex;
    min-width: 0;
    max-width: 100%;
    background: var(--black);
    border: 1px solid var(--line);
}
.tabs__link {
    display: inline-flex; align-items: center; gap: 8px;
    margin-top: -1px;
    padding: 19px 22px 18px;
    border-top: 1px solid var(--line);
    color: var(--text);
    font-size: 15px; font-weight: 600;
    white-space: nowrap;
    transition: border-color 0.3s ease, color 0.3s ease;
}
.tabs__link .icon { width: 18px; height: 18px; }
.tabs__link:hover { border-top-color: var(--primary); color: var(--white); text-decoration: none; }
.tabs__link.is-active { border-top-color: var(--primary); color: var(--white); box-shadow: inset 0 1px 0 var(--primary); }
.tabs__count {
    display: inline-grid; place-items: center;
    min-width: 24px; height: 22px;
    padding: 0 6px;
    background: var(--panel-2);
    color: var(--muted);
    font-size: 12px; font-weight: 700;
}
.tabs__link.is-active .tabs__count { background: var(--primary); color: var(--black); }
.tabs--scroll {
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--line-strong) transparent;
}
.tabs--admin { margin-top: 30px; overflow-x: auto; }

.segmented { display: inline-flex; margin-bottom: 30px; border: 1px solid var(--line); background: var(--panel); }
.segmented__link {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 12px 20px;
    color: var(--text); font-weight: 600; font-size: 15px;
}
.segmented__link:hover { color: var(--white); text-decoration: none; background: var(--panel-2); }
.segmented__link.is-active { background: var(--primary); color: var(--black); }
.segmented__link.is-active .tabs__count { background: rgba(10, 13, 18, 0.2); color: var(--black); }

/* ---- Card grids ------------------------------------------------------------------- */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.card-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.feature-grid--lead { margin-bottom: 60px; }

/* ---- Artwork backgrounds (used when an image is missing or for locked cards) ---- */
.art { background-color: var(--black-2); }
.art--cyan { background-image: radial-gradient(120% 90% at 20% 10%, rgba(4, 211, 247, 0.55), transparent 60%), linear-gradient(135deg, #082a33, #0a0d12); }
.art--violet { background-image: radial-gradient(120% 90% at 80% 15%, rgba(124, 77, 255, 0.6), transparent 60%), linear-gradient(135deg, #170f33, #0a0d12); }
.art--magenta { background-image: radial-gradient(120% 90% at 25% 20%, rgba(214, 58, 183, 0.6), transparent 60%), linear-gradient(135deg, #2c0a28, #0a0d12); }
.art--amber { background-image: radial-gradient(120% 90% at 75% 20%, rgba(251, 191, 36, 0.5), transparent 60%), linear-gradient(135deg, #2f1d05, #0a0d12); }
.art--lime { background-image: radial-gradient(120% 90% at 30% 15%, rgba(132, 204, 22, 0.5), transparent 60%), linear-gradient(135deg, #142407, #0a0d12); }
.art--blue { background-image: radial-gradient(120% 90% at 70% 10%, rgba(59, 130, 246, 0.6), transparent 60%), linear-gradient(135deg, #0b1a3a, #0a0d12); }

/* ---- Game card (members) ------------------------------------------------------------ */
.game-card {
    position: relative;
    display: flex; flex-direction: column;
    padding: 16px;
    background: var(--panel);
    border: 1px solid var(--line);
    color: var(--text);
    transition: border-color 0.3s ease, transform 0.3s var(--ease), background-color 0.3s ease;
}
.game-card:hover { border-color: var(--muted); transform: translateY(-3px); text-decoration: none; color: var(--text); }
.game-card__media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 2;
}
.game-card__media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}
.game-card:hover .game-card__media img { transform: scale(1.06); }
.game-card__initial {
    position: absolute; inset: 0;
    display: grid; place-items: center;
    color: rgba(255, 255, 255, 0.88);
    font-family: var(--font-head); font-size: 64px; font-weight: 600;
}
.game-card__shade {
    position: absolute; inset: -1%;
    background: linear-gradient(180deg, transparent 45%, rgba(10, 13, 18, 0.85) 100%);
    opacity: 0.75;
    transition: opacity 0.3s ease;
}
.game-card:hover .game-card__shade { opacity: 1; }
.game-card__play {
    position: absolute; right: 14px; bottom: 14px;
    display: grid; place-items: center;
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--white); color: var(--black);
    opacity: 0; transform: translateY(8px) scale(0.9);
    transition: opacity 0.3s ease, transform 0.3s var(--ease);
}
.game-card__play .icon { width: 20px; height: 20px; margin-left: 2px; }
.game-card:hover .game-card__play, .game-card:focus-visible .game-card__play { opacity: 1; transform: none; }
.game-card__body { padding: 18px 4px 4px; }
.game-card__category { margin-bottom: 4px; color: var(--primary); font-size: 14px; font-weight: 600; }
.game-card__title { font-size: 22px; line-height: 1.25; }

.game-card--feature { padding: 24px; }
.game-card--feature .game-card__media { aspect-ratio: 16 / 9; }
.game-card--feature .game-card__shade { background: linear-gradient(180deg, transparent 25%, var(--black) 100%); opacity: 0.95; }
.game-card--feature .game-card__body {
    position: absolute; left: 24px; right: 24px; bottom: 24px;
    padding: 0 30px 26px;
    pointer-events: none;
}
.game-card--feature .game-card__title { font-size: 30px; }
.game-card--feature .game-card__play { top: 40px; right: 40px; bottom: auto; width: 56px; height: 56px; }

/* ---- Locked catalogue preview (guests: decorative, contains no game data) ------------- */
.locked { position: relative; }
.locked__grid { filter: saturate(0.85); }
.locked__grid > :nth-child(n + 4) { opacity: 0.55; }
.locked-card { padding: 16px; background: var(--panel); border: 1px solid var(--line); }
.locked-card__media {
    position: relative;
    overflow: hidden;
    display: grid; place-items: center;
    aspect-ratio: 3 / 2;
}
.locked-card__media::after {
    content: "";
    position: absolute; inset: 0;
    background:
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 22px),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 22px);
}
.locked-card__shape {
    position: absolute;
    width: 92px; height: 92px;
    border: 3px solid rgba(255, 255, 255, 0.35);
    filter: blur(1.5px);
    opacity: 0.8;
}
.locked-card__shape--circle { border-radius: 50%; top: 18%; left: 16%; }
.locked-card__shape--square { transform: rotate(18deg); top: 22%; right: 16%; }
.locked-card__shape--triangle {
    border: 0;
    width: 0; height: 0;
    border-left: 52px solid transparent;
    border-right: 52px solid transparent;
    border-bottom: 90px solid rgba(255, 255, 255, 0.22);
    top: 16%; right: 20%;
}
.locked-card__shape--cross { border: 0; top: 20%; left: 18%; }
.locked-card__shape--cross::before,
.locked-card__shape--cross::after {
    content: "";
    position: absolute; left: 50%; top: 0;
    width: 4px; height: 100%;
    background: rgba(255, 255, 255, 0.35);
    transform: rotate(45deg);
}
.locked-card__shape--cross::after { transform: rotate(-45deg); }
.locked-card__lock {
    position: relative; z-index: 1;
    display: grid; place-items: center;
    width: 64px; height: 64px;
    background: rgba(10, 13, 18, 0.55);
    border: 1px solid var(--line-strong);
    color: var(--white);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.locked-card__lock .icon { width: 26px; height: 26px; }
.locked-card__body { display: grid; gap: 10px; padding: 18px 4px 4px; }
.badge {
    display: inline-flex; align-items: center; gap: 6px;
    justify-self: start;
    width: max-content;
    padding: 4px 10px;
    background: var(--panel-2);
    color: var(--text);
    font-size: 13px; font-weight: 600;
}
.badge--accent { background: var(--primary-soft); color: var(--primary); }
.skeleton { display: block; height: 12px; background: linear-gradient(90deg, var(--panel-2), rgba(255, 255, 255, 0.04)); }
.skeleton--title { width: 70%; height: 20px; }
.skeleton--text { width: 45%; }
.locked__panel {
    position: absolute; left: 50%; top: 50%;
    z-index: 3;
    width: min(560px, calc(100% - 40px));
    padding: 44px 40px;
    background: rgba(10, 13, 18, 0.78);
    border: 1px solid var(--line-strong);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    text-align: center;
    transform: translate(-50%, -50%);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.locked__icon {
    display: inline-grid; place-items: center;
    width: 60px; height: 60px; margin-bottom: 20px;
    background: var(--primary); color: var(--black);
}
.locked__icon .icon { width: 26px; height: 26px; }
.locked__title { margin-bottom: 12px; font-size: 30px; }
.locked__panel p { color: var(--text); }
.locked__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 28px; }

/* ---- Showcase ("press play") -------------------------------------------------------- */
.showcase { padding: 40px; background: var(--panel); border: 1px solid var(--line); }
.showcase__frame { position: relative; overflow: hidden; display: grid; place-items: center; aspect-ratio: 16 / 7; }
.showcase__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.showcase__shade { position: absolute; inset: 0; background: radial-gradient(60% 70% at 50% 50%, transparent 30%, rgba(10, 13, 18, 0.55) 100%); }
.play-button {
    position: relative; z-index: 2;
    display: grid; place-items: center;
    width: 84px; height: 84px;
    border-radius: 50%;
    background: var(--white); color: var(--black);
    box-shadow: 0 0 0 14px rgba(255, 255, 255, 0.12), 0 0 0 28px rgba(255, 255, 255, 0.05);
    transition: transform 0.3s var(--ease), box-shadow 0.3s ease;
}
.play-button .icon { width: 30px; height: 30px; margin-left: 4px; }
.play-button:hover { color: var(--black); transform: scale(1.08); box-shadow: 0 0 0 18px rgba(4, 211, 247, 0.2), 0 0 0 36px rgba(4, 211, 247, 0.07); }
.showcase__caption {
    position: absolute; left: 30px; bottom: 26px; z-index: 2;
    display: flex; align-items: center; gap: 12px;
    color: var(--white);
    font-family: var(--font-head); font-size: 24px;
}
.showcase__caption span {
    padding: 4px 10px;
    background: var(--primary); color: var(--black);
    font-family: var(--font-body); font-size: 13px; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase;
}

/* ---- About split + stats ------------------------------------------------------------- */
.about { overflow: hidden; }
.about__pattern {
    position: absolute; inset: 0; z-index: 0;
    background:
        radial-gradient(700px 420px at 75% 30%, rgba(214, 58, 183, 0.12), transparent 70%),
        repeating-linear-gradient(90deg, transparent 0 140px, rgba(124, 77, 255, 0.07) 140px 141px, transparent 141px 190px, rgba(214, 58, 183, 0.06) 190px 214px, transparent 214px 330px);
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 20%, #000 70%, transparent);
    mask-image: linear-gradient(180deg, transparent, #000 20%, #000 70%, transparent);
    pointer-events: none;
}
.split {
    position: relative; z-index: 2;
    display: grid;
    grid-template-columns: 0.75fr 1fr;
    align-items: center;
    gap: 120px;
    width: 90%;
    margin: 0 auto 100px;
}
.split__media img { width: 100%; border: 1px solid var(--line); }
.split__body h2 { margin-bottom: 22px; }
.split__body .lead { margin-bottom: 14px; }
.split__body > p { margin-bottom: 14px; }
.check-list {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 30px;
    margin: 30px 0 46px;
    list-style: none;
}
.check-list li { display: flex; align-items: flex-start; gap: 12px; color: var(--white); font-size: 19px; }
.check-list .icon { width: 18px; height: 18px; margin-top: 4px; color: var(--primary); }

.stats {
    position: relative; z-index: 2;
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    gap: 50px;
}
.stat { display: flex; flex-direction: column-reverse; align-items: center; gap: 10px; text-align: center; }
.stat__value {
    margin: 0;
    color: var(--white);
    font-family: var(--font-head);
    font-size: 80px; font-weight: 500; line-height: 1.05;
}
.stat__value span { color: var(--primary); }
.stat__label { color: var(--text); font-size: 20px; }
.stats__divider { width: 1px; background: var(--line); }

/* ---- Steps & value cards ---------------------------------------------------------------- */
.steps {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
    list-style: none;
    counter-reset: none;
}
.step {
    position: relative;
    padding: 36px 30px 32px;
    background: var(--panel);
    border: 1px solid var(--line);
    transition: border-color 0.3s ease;
}
.step:hover { border-color: var(--line-strong); }
.step__num {
    display: block;
    margin-bottom: 26px;
    color: transparent;
    font-family: var(--font-head);
    font-size: 64px; font-weight: 600; line-height: 1;
    -webkit-text-stroke: 1px var(--primary);
}
.step__title { margin-bottom: 10px; font-size: 26px; }
.step p { color: var(--text); }

.value-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; }
.value-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.value-card { padding: 34px 30px; background: var(--panel); border: 1px solid var(--line); transition: border-color 0.3s ease; }
.value-card:hover { border-color: var(--line-strong); }
.value-card__icon {
    display: grid; place-items: center;
    width: 54px; height: 54px; margin-bottom: 24px;
    background: var(--primary-soft);
    border: 1px solid rgba(4, 211, 247, 0.35);
    color: var(--primary);
}
.value-card__icon .icon { width: 26px; height: 26px; }
.value-card h3 { margin-bottom: 10px; font-size: 24px; }
.value-card p { color: var(--text); }

.info-panel {
    display: flex; align-items: flex-start; gap: 24px;
    margin-top: 40px;
    padding: 34px;
    background: var(--panel);
    border: 1px solid var(--line);
}
.info-panel__icon {
    display: grid; place-items: center; flex: none;
    width: 54px; height: 54px;
    background: var(--primary); color: var(--black);
}
.info-panel__icon .icon { width: 24px; height: 24px; }
.info-panel h2 { margin-bottom: 8px; font-size: 26px; }
.info-panel p + p { margin-top: 6px; }

/* ---- FAQ accordion ------------------------------------------------------------------------ */
.faq-list { display: grid; gap: 20px; }
.faq-item { background: var(--panel); border: 1px solid var(--line); transition: border-color 0.3s ease; }
.faq-item[open] { border-color: var(--line-strong); }
.faq-item__question {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 16px;
    padding: 26px 30px;
    color: var(--white);
    font-family: var(--font-head);
    font-size: 22px; font-weight: 500; line-height: 1.3;
    cursor: pointer;
    list-style: none;
}
.faq-item__question::-webkit-details-marker { display: none; }
.faq-item__question:hover { color: var(--primary); }
.faq-item__icon { flex: none; margin-top: 3px; color: var(--primary); transition: transform 0.3s var(--ease); }
.faq-item__icon .icon { width: 20px; height: 20px; }
.faq-item[open] .faq-item__icon { transform: rotate(45deg); }
.faq-item__answer { padding: 0 30px 28px; color: var(--text); line-height: 1.65; }
.faq-item__answer p + p { margin-top: 10px; }

/* ---- CTA panel ------------------------------------------------------------------------------ */
.cta-panel {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 0.75fr 1fr;
    align-items: stretch;
    background: var(--panel);
    border: 1px solid var(--line);
}
.cta-panel__body { display: flex; flex-direction: column; justify-content: center; padding: 60px 50px; }
.cta-panel__body h2 { margin-bottom: 16px; }
.cta-panel__body p { font-size: 18px; color: var(--text); }
.cta-panel__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.cta-panel__media { position: relative; min-height: 340px; margin: -1px -1px -1px 0; }
.cta-panel__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---- Forms ----------------------------------------------------------------------------------- */
.form { display: grid; gap: 20px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 6px; }
.form__actions--split { justify-content: space-between; }
.field { display: grid; gap: 8px; align-content: start; }
.field__label { color: var(--white); font-size: 15px; font-weight: 600; }
.field__optional { color: var(--muted); font-weight: 500; }
.field__input {
    width: 100%;
    min-height: 52px;
    padding: 12px 18px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 0;
    color: var(--white);
    font-size: 16px; font-weight: 500;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
}
.field__input::placeholder { color: var(--muted); }
.field__input:hover { border-color: var(--line-strong); }
.field__input:focus { outline: none; border-color: var(--primary); background: rgba(4, 211, 247, 0.04); }
.field__input[aria-invalid="true"] { border-color: rgba(255, 93, 108, 0.7); }
.field__input--textarea { min-height: 200px; resize: vertical; line-height: 1.5; }
.field__input--short { min-height: 110px; }
.field__input--select {
    padding-right: 44px;
    background-color: var(--black-2);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239f9f9f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 18px;
}
.field__input--file { padding: 12px; font-size: 15px; }
.field__input--file::file-selector-button {
    margin-right: 14px; padding: 8px 16px;
    background: var(--panel-2); border: 1px solid var(--line); color: var(--white);
    font-weight: 600; cursor: pointer;
}
.field__control { position: relative; }
.field__control .field__input { padding-right: 56px; }
.field__toggle {
    position: absolute; right: 6px; top: 50%;
    display: grid; place-items: center;
    width: 42px; height: 42px;
    background: none; border: 0;
    color: var(--muted);
    transform: translateY(-50%);
}
.field__toggle:hover, .field__toggle[aria-pressed="true"] { color: var(--primary); }
.no-js .field__toggle { display: none; }
.field__hint { color: var(--muted); font-size: 14px; }
.field__error { color: #ff9aa4; font-size: 14px; font-weight: 600; }
.field--check { display: flex; align-items: flex-start; gap: 12px; }
.field--check label { color: var(--text); font-size: 15px; line-height: 1.5; }
.check {
    flex: none;
    width: 22px; height: 22px; margin-top: 1px;
    background: var(--panel);
    border: 1px solid var(--line-strong);
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}
.check:checked {
    background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0d12' 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 / 15px no-repeat;
    border-color: var(--primary);
}
.check[aria-invalid="true"] { border-color: rgba(255, 93, 108, 0.7); }
/* Bot trap: visually removed, still in the form */
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Auth pages ---------------------------------------------------------------------------- */
.auth {
    position: relative;
    overflow: hidden;
    margin-top: calc(-1 * var(--header-h));
    padding: calc(var(--header-h) + 40px) 0 120px;
    min-height: 760px;
}
.auth__media { position: absolute; inset: 0; }
.auth__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.auth__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 13, 18, 0.55), rgba(10, 13, 18, 0.8) 60%, var(--black)); }
.auth__panel {
    position: relative; z-index: 2;
    width: min(540px, 100%);
    margin: 0 auto;
    padding: 50px;
    background: rgba(10, 13, 18, 0.55);
    border: 1px solid var(--line);
    -webkit-backdrop-filter: var(--blur);
    backdrop-filter: var(--blur);
}
.auth__panel--wide { width: min(680px, 100%); }
.auth__title { margin-bottom: 8px; font-size: 44px; }
.auth__lead { margin-bottom: 30px; color: var(--text); font-size: 17px; }
.auth__alt { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); text-align: center; }

/* ---- Games catalogue ------------------------------------------------------------------------- */
.toolbar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-bottom: 50px; }
.search {
    position: relative;
    display: flex; align-items: center; gap: 10px;
    padding: 6px;
    background: var(--panel);
    border: 1px solid var(--line);
    transition: border-color 0.3s ease;
}
.search:focus-within { border-color: var(--primary); }
.search__icon { position: absolute; left: 22px; width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.search__input {
    flex: 1; min-width: 0;
    height: 46px;
    padding: 0 16px 0 50px;
    background: none; border: 0;
    color: var(--white);
    font-size: 17px;
}
.search__input:focus { outline: none; }
.search__input::placeholder { color: var(--muted); }
.search__input::-webkit-search-cancel-button { filter: invert(0.6); }
.list-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 26px; }
.list-head__title { font-size: 32px; }
.list-head__count { color: var(--muted); }
.empty-state {
    display: grid; justify-items: center; gap: 16px;
    padding: 60px 30px;
    background: var(--panel);
    border: 1px dashed var(--line-strong);
    color: var(--text);
    text-align: center;
}

/* ---- Player ------------------------------------------------------------------------------------ */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; color: var(--muted); font-size: 14px; }
.breadcrumb a { color: var(--text); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb [aria-current] { color: var(--white); }
.player-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.player-head .eyebrow { margin-bottom: 8px; }
.player-head__title { font-size: 54px; line-height: 1.1; }
.player-head__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.player { padding: 20px; background: var(--panel); border: 1px solid var(--line); }
.player__stage {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    max-height: 80vh;
    margin-inline: auto;
    background: #000;
}
.player__stage:fullscreen { width: 100vw; height: 100vh; max-height: none; aspect-ratio: auto; }
.player__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.player__loading {
    position: absolute; inset: 0; z-index: 2;
    display: grid; place-content: center; justify-items: center; gap: 18px;
    background: radial-gradient(60% 60% at 50% 50%, #0f1a22, #000);
    color: var(--muted);
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.player__loading.is-hidden { opacity: 0; visibility: hidden; }
.player__message {
    position: absolute; inset: 0;
    display: grid; place-content: center; justify-items: center; gap: 12px;
    padding: 30px;
    text-align: center;
}
.player__message .icon { width: 40px; height: 40px; color: var(--danger); }
.player__message h2 { font-size: 30px; }
.spinner {
    width: 54px; height: 54px;
    border: 3px solid rgba(4, 211, 247, 0.18);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.player-info { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; margin-top: 30px; }
.player-info p { color: var(--text); }
.meta-list { display: flex; flex-wrap: wrap; gap: 12px 26px; margin-top: 20px; list-style: none; color: var(--muted); font-size: 15px; }
.meta-list li { display: inline-flex; align-items: center; gap: 8px; }
.meta-list .icon { width: 18px; height: 18px; color: var(--primary); }
.report { margin-top: 20px; }
.report > summary { list-style: none; width: max-content; }
.report > summary::-webkit-details-marker { display: none; }
.report[open] > summary { background: var(--panel-2); border-color: var(--line-strong); }
.report__form { margin-top: 20px; }

/* In-frame message (launch errors) */
.frame-message { display: grid; place-items: center; min-height: 100vh; padding: 20px; background: radial-gradient(60% 60% at 50% 50%, #0f1a22, #000); }
.frame-message__box { max-width: 420px; text-align: center; }
.frame-message__icon { width: 44px; height: 44px; margin: 0 auto 16px; color: var(--primary); }
.frame-message h1 { margin-bottom: 8px; font-size: 28px; }
.frame-message p { margin-bottom: 20px; color: var(--text); }

/* ---- Profile ------------------------------------------------------------------------------------ */
.profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; align-items: start; }
.profile-grid__wide { grid-column: 1 / -1; }
.profile-grid .panel > .muted { margin-bottom: 22px; }
.profile-card__head { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; }
.profile-card__head .panel__title { margin-bottom: 2px; }
.profile-card__avatar {
    display: grid; place-items: center; flex: none;
    width: 64px; height: 64px;
    background: var(--primary); color: var(--black);
    font-family: var(--font-head); font-size: 30px; font-weight: 600;
}
.detail-list { display: grid; gap: 0; margin-bottom: 26px; border-top: 1px solid var(--line); }
.detail-list > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.detail-list dt { color: var(--muted); }
.detail-list dd { color: var(--white); text-align: right; }
.danger-zone > summary { list-style: none; width: max-content; }
.danger-zone > summary::-webkit-details-marker { display: none; }
.danger-zone__form { margin-top: 22px; }

/* ---- Contact ---------------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 0.5fr; gap: 30px; align-items: stretch; }
.contact-info { display: grid; gap: 30px; }
.contact-card {
    display: grid; justify-items: center; align-content: center; gap: 8px;
    text-align: center;
}
.contact-card__icon {
    display: grid; place-items: center;
    width: 46px; height: 46px; margin-bottom: 6px;
    background: var(--primary-soft); color: var(--primary);
}
.contact-card__icon .icon { width: 22px; height: 22px; }
.contact-card__title { font-size: 24px; }
.contact-card a, .contact-card address, .contact-card p { color: var(--white); }
.contact-card a { text-decoration: underline; text-underline-offset: 3px; }

/* ---- Legal pages ------------------------------------------------------------------------------- */
.prose { max-width: 860px; margin: 0 auto; color: var(--text); font-size: 17px; line-height: 1.75; }
.prose > * + * { margin-top: 18px; }
.prose h2 { margin-top: 52px; font-size: 30px; line-height: 1.25; }
.prose h2 + * { margin-top: 14px; }
.prose ul, .prose ol { display: grid; gap: 10px; padding-left: 24px; }
.prose li::marker { color: var(--primary); }
.prose strong { color: var(--white); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose__related { margin-top: 52px !important; padding-top: 26px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }

/* ---- Admin --------------------------------------------------------------------------------------- */
.admin-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-bottom: 30px; }
.admin-stat {
    display: grid; gap: 6px;
    padding: 26px;
    background: var(--panel);
    border: 1px solid var(--line);
    color: var(--text);
    transition: border-color 0.3s ease, transform 0.3s var(--ease);
}
.admin-stat:hover { border-color: var(--muted); transform: translateY(-2px); color: var(--text); text-decoration: none; }
.admin-stat__icon { color: var(--primary); }
.admin-stat__icon .icon { width: 26px; height: 26px; }
.admin-stat__value { color: var(--white); font-family: var(--font-head); font-size: 50px; line-height: 1.1; }
.admin-stat__value small { color: var(--muted); font-size: 24px; }
.admin-stat__label { color: var(--muted); font-size: 15px; }
.admin-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; margin-bottom: 30px; }
.admin-tools .panel > .muted { margin-bottom: 20px; font-size: 15px; }
.admin-tools .detail-list { margin-bottom: 14px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { padding: 14px 16px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
.table th {
    background: var(--panel);
    color: var(--muted);
    font-size: 12px; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    white-space: nowrap;
}
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: rgba(255, 255, 255, 0.02); }
.table td { color: var(--text); }
.table a { color: var(--white); }
.table a:hover { color: var(--primary); }
.table__actions { white-space: nowrap; text-align: right !important; }
.table__actions form { display: inline-block; margin-left: 6px; }
.table__thumb { display: block; width: 96px; aspect-ratio: 3 / 2; overflow: hidden; }
.table__thumb img { width: 100%; height: 100%; object-fit: cover; }
.table__sub { display: block; color: var(--muted); font-size: 13px; }
.status {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 13px; font-weight: 700;
    text-transform: capitalize;
    white-space: nowrap;
}
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status--active { color: var(--success); }
.status--suspended { color: var(--danger); }
.status--draft { color: var(--muted); }
.status--open { color: var(--warning); }

.inbox-list { display: grid; gap: 20px; }
.inbox-item.is-handled { opacity: 0.6; }
.inbox-item__head { display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; margin-bottom: 14px; }
.inbox-item__title { font-size: 22px; }
.inbox-item__title a { color: var(--white); }
.inbox-item__meta { grid-column: 1; color: var(--muted); font-size: 14px; }
.inbox-item__head .status { grid-column: 2; grid-row: 1; }
.inbox-item__body { padding: 16px 18px; margin-bottom: 18px; background: rgba(0, 0, 0, 0.25); border-left: 2px solid var(--primary); color: var(--text); white-space: normal; }
.inbox-item__actions { display: flex; gap: 10px; }

/* ---- Admin → System ------------------------------------------------------------------------------ */
.system-banner {
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 24px; padding: 16px 20px;
    border: 1px solid; font-weight: 600;
    transition: background-color 0.3s ease;
}
.system-banner span { flex: 1; }
.system-banner .icon { width: 20px; height: 20px; }
.system-banner:hover { text-decoration: none; }
.system-banner--ok { background: var(--success-soft); border-color: rgba(52, 211, 153, 0.45); color: #b5f5dc; }
.system-banner--ok:hover { background: rgba(52, 211, 153, 0.2); color: #b5f5dc; }
.system-banner--warn { background: rgba(251, 191, 36, 0.1); border-color: rgba(251, 191, 36, 0.45); color: #fde68a; }
.system-banner--warn:hover { background: rgba(251, 191, 36, 0.18); color: #fde68a; }
.settings-note { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 30px; }
.settings-note .panel__title { margin-bottom: 8px; }
.settings-note__icon {
    display: grid; place-items: center; flex: none;
    width: 50px; height: 50px;
    background: var(--primary); color: var(--black);
}
.settings-note__icon .icon { width: 24px; height: 24px; }
.checklist { display: grid; list-style: none; border-top: 1px solid var(--line); }
.checklist__item {
    display: grid; grid-template-columns: auto 1fr; gap: 16px;
    padding: 16px 4px;
    border-bottom: 1px solid var(--line);
}
.checklist__icon {
    display: grid; place-items: center;
    width: 30px; height: 30px; margin-top: 2px;
}
.checklist__icon .icon { width: 18px; height: 18px; }
.checklist__item--ok .checklist__icon { background: var(--success-soft); color: var(--success); }
.checklist__item--warn .checklist__icon { background: rgba(251, 191, 36, 0.12); color: var(--warning); }
.checklist__item--fail .checklist__icon { background: var(--danger-soft); color: var(--danger); }
.checklist__label { color: var(--white); font-weight: 700; }
.checklist__detail { color: var(--text); font-size: 15px; overflow-wrap: anywhere; }
.checklist__fix { display: flex; gap: 8px; margin-top: 6px; color: var(--primary); font-size: 15px; font-weight: 600; }
.checklist__fix .icon { width: 16px; height: 16px; margin-top: 3px; }
.probe-results { margin-top: 20px; }
.probe-results code { overflow-wrap: anywhere; }

/* ---- Error page --------------------------------------------------------------------------------- */
.error-page {
    position: relative;
    overflow: hidden;
    margin-top: calc(-1 * var(--header-h));
    padding: calc(var(--header-h) + 80px) 0 140px;
    min-height: 80vh;
    display: grid; align-items: center;
}
.error-page__media { position: absolute; inset: 0; }
.error-page__media img { width: 100%; height: 100%; object-fit: cover; }
.error-page__shade { position: absolute; inset: 0; background: rgba(10, 13, 18, 0.72); }
.error-page__box {
    position: relative; z-index: 2;
    width: min(650px, 100%);
    margin: 0 auto;
    padding: 60px;
    background: var(--panel);
    border: 1px solid var(--line);
    -webkit-backdrop-filter: var(--blur);
    backdrop-filter: var(--blur);
    text-align: center;
}
.error-page__code { color: var(--primary); font-family: var(--font-head); font-size: 110px; font-weight: 500; line-height: 1; text-shadow: 0 0 40px rgba(4, 211, 247, 0.35); }
.error-page__title { margin: 14px 0 10px; font-size: 36px; }
.error-page__text { color: var(--text); }
.error-page__debug { margin-top: 20px; padding: 14px; overflow-x: auto; background: rgba(0, 0, 0, 0.45); color: #ffc2c8; font-size: 13px; text-align: left; white-space: pre-wrap; }
.error-page__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 30px; }

/* ---- Footer ---------------------------------------------------------------------------------------- */
.site-footer { position: relative; overflow: hidden; padding: 150px 0 40px; background: var(--black); }
.site-footer__art {
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, var(--black) 8%, rgba(10, 13, 18, 0.82) 42%, var(--black)),
        radial-gradient(900px 400px at 15% 70%, rgba(214, 58, 183, 0.22), transparent 70%),
        radial-gradient(900px 420px at 85% 60%, rgba(4, 211, 247, 0.16), transparent 70%),
        repeating-linear-gradient(90deg, transparent 0 120px, rgba(124, 77, 255, 0.08) 120px 121px, transparent 121px 170px, rgba(214, 58, 183, 0.07) 170px 196px, transparent 196px 300px);
}
.site-footer__inner { position: relative; z-index: 2; }
.site-footer__grid { display: grid; grid-template-columns: 0.75fr 1fr; gap: 50px; }
.site-footer__brand p { max-width: 440px; margin-top: 24px; color: var(--text); }
.site-footer__pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; list-style: none; }
.site-footer__pills li {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px;
    background: var(--panel);
    border: 1px solid var(--line);
    color: var(--white); font-size: 14px;
}
.site-footer__pills .icon { width: 16px; height: 16px; color: var(--primary); }
.site-footer__links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.site-footer__title { margin-bottom: 22px; font-size: 24px; }
.site-footer__links ul { display: grid; gap: 14px; list-style: none; }
.site-footer__link { color: var(--text); font-size: 16px; }
.site-footer__link:hover { color: var(--primary); }
.site-footer__bottom {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 40px;
    margin-top: 60px; padding-top: 40px;
    border-top: 1px solid var(--panel);
    color: var(--muted); font-size: 14px;
}

/* ---- Cookie notice --------------------------------------------------------------------------------- */
.cookie-notice {
    position: fixed; left: 24px; bottom: 24px; z-index: 90;
    display: grid; grid-template-columns: auto 1fr; gap: 14px 16px; align-items: start;
    width: min(440px, calc(100% - 48px));
    padding: 22px;
    background: rgba(13, 17, 24, 0.94);
    border: 1px solid var(--line-strong);
    -webkit-backdrop-filter: var(--blur);
    backdrop-filter: var(--blur);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.cookie-notice__icon { width: 28px; height: 28px; color: var(--primary); }
.cookie-notice p { color: var(--text); font-size: 14px; line-height: 1.55; }
.cookie-notice .btn { grid-column: 2; justify-self: start; }

/* ---- Reveal-on-scroll (only when JS runs; content is visible without it) ------------------------------ */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js [data-reveal].is-revealed { opacity: 1; transform: none; }

/* ---- Responsive -------------------------------------------------------------------------------------- */
@media (min-width: 1440px) {
    .hero__title { font-size: 96px; }
}
@media (max-width: 1199px) {
    :root { --section-y: 120px; }
    h1 { font-size: 52px; }
    h2 { font-size: 42px; }
    .hero__title { font-size: 72px; }
    .hero--page .hero__title { font-size: 64px; }
    .split { gap: 70px; width: 100%; }
    .stats { gap: 30px; }
    .stat__value { font-size: 64px; }
    .card-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .steps, .value-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
    :root { --section-y: 100px; --header-h: 104px; --gutter: 24px; }
    .site-header { padding-block: 28px; }
    .site-header__inner { grid-template-columns: 1fr auto; }
    .site-header__actions { display: none; }
    .nav-toggle { display: inline-flex; }
    .site-nav {
        position: absolute; left: var(--gutter); right: var(--gutter); top: calc(100% - 14px);
        display: none;
        padding: 14px 18px 18px;
        background: rgba(13, 17, 24, 0.97);
        border: 1px solid var(--line);
        -webkit-backdrop-filter: var(--blur);
        backdrop-filter: var(--blur);
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
    }
    .site-nav.is-open { display: block; }
    .no-js .site-nav { position: static; display: block; grid-column: 1 / -1; padding: 10px 0 0; background: none; border: 0; box-shadow: none; }
    .no-js .nav-toggle { display: none; }
    .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
    .site-nav__link { display: flex; padding: 12px 4px; border-bottom: 1px solid var(--line); }
    .site-nav__mobile { display: grid; gap: 10px; margin-top: 16px; }
    .site-nav__mobile .site-nav__link { border-bottom: 0; padding: 8px 4px; }
    .site-nav__mobile .site-nav__link .icon { width: 18px; height: 18px; color: var(--primary); }

    .hero { padding: calc(var(--header-h) + 110px) 0 130px; }
    .hero__title { font-size: 60px; }
    .hero__lead { max-width: 100%; font-size: 18px; }
    .hero__actions { margin-top: 36px; }
    .hero--page .hero__title { font-size: 54px; }
    .page-hero__title { font-size: 48px; }

    .strip__inner { grid-template-columns: 1fr; gap: 24px; }
    .strip__divider { display: none; }
    .strip__title { text-align: center; }

    .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
    .card-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .feature-grid { grid-template-columns: 1fr; }
    .split { grid-template-columns: 1fr; gap: 50px; margin-bottom: 70px; }
    .split__media { max-width: 520px; }
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
    .stats__divider { display: none; }
    .cta-panel { grid-template-columns: 1fr; }
    .cta-panel__media { min-height: 300px; margin: 0; }
    .contact-grid, .player-info, .profile-grid, .admin-tools { grid-template-columns: 1fr; }
    .site-footer { padding-top: 110px; }
    .site-footer__grid { grid-template-columns: 1fr; }
    .locked__grid > :nth-child(n + 5) { display: none; }
}
@media (max-width: 767px) {
    :root { --section-y: 80px; --gutter: 20px; }
    h1 { font-size: 42px; }
    h2 { font-size: 34px; }
    h3 { font-size: 24px; }
    .hero__title { font-size: 46px; line-height: 1.1; }
    .hero--page .hero__title { font-size: 42px; }
    .hero__actions .btn { flex: 1 1 100%; }
    .page-hero__box { padding: 40px 22px; }
    .page-hero__title { font-size: 38px; }
    .section-head { margin-bottom: 34px; }
    .section-head--split { align-items: flex-start; }
    .tabs { width: 100%; overflow-x: auto; }
    .card-grid { grid-template-columns: 1fr; }
    /* Game lists: two compact columns on phones */
    .card-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .card-grid--4 .game-card { padding: 8px; }
    .card-grid--4 .game-card__body { padding: 10px 2px 4px; }
    .card-grid--4 .game-card__category { font-size: 12px; }
    .card-grid--4 .game-card__title { font-size: 16px; }
    .card-grid--4 .game-card__play { display: none; }
    /* Featured games: a swipeable strip instead of a tall stack */
    .feature-grid--lead {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: 84%;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        margin-bottom: 40px;
        padding-bottom: 6px;
    }
    .feature-grid--lead > * { scroll-snap-align: start; }
    .game-card--feature { padding: 14px; }
    .game-card--feature .game-card__title { font-size: 22px; }
    .game-card--feature .game-card__body { left: 14px; right: 14px; bottom: 14px; padding: 0 14px 12px; }
    .game-card--feature .game-card__play { top: 26px; right: 26px; width: 46px; height: 46px; }
    .search .btn { padding-inline: 16px; }
    .locked__grid > :nth-child(n + 3) { display: none; }
    .locked__panel { position: relative; left: auto; top: auto; width: 100%; margin-top: 24px; padding: 34px 24px; transform: none; }
    .showcase { padding: 16px; }
    .showcase__frame { aspect-ratio: 4 / 3; }
    .showcase__caption { left: 16px; bottom: 16px; font-size: 18px; }
    .check-list { grid-template-columns: 1fr; }
    .check-list li { font-size: 17px; }
    .stat__value { font-size: 46px; }
    .stat__label { font-size: 16px; }
    .steps, .value-grid, .value-grid--3 { grid-template-columns: 1fr; }
    .faq-item__question { padding: 22px; font-size: 19px; }
    .faq-item__answer { padding: 0 22px 22px; }
    .cta-panel__body { padding: 40px 24px; }
    .form__row { grid-template-columns: 1fr; }
    .auth__panel { padding: 34px 22px; }
    .auth__title { font-size: 36px; }
    .player { padding: 10px; }
    .player__stage { aspect-ratio: 4 / 3; }
    .player-head__title { font-size: 38px; }
    .panel { padding: 24px 20px; }
    .info-panel { flex-direction: column; padding: 26px 22px; }
    .site-footer__links { grid-template-columns: 1fr 1fr; gap: 30px; }
    .admin-stats { grid-template-columns: 1fr; }
    .error-page__box { padding: 40px 22px; }
    .error-page__code { font-size: 84px; }
    .cookie-notice { left: 12px; bottom: 12px; width: calc(100% - 24px); }
    .btn { padding-inline: 28px; }
}
@media (max-width: 479px) {
    .brand { font-size: 26px; }
    .hero__title { font-size: 38px; }
    .stats { grid-template-columns: 1fr; }
    .site-footer__links { grid-template-columns: 1fr; }
    .marquee__track { gap: 44px; padding-right: 44px; }
}

/* ---- Reduced motion ------------------------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .marquee { -webkit-mask-image: none; mask-image: none; }
    .marquee__track { animation: none; flex-wrap: wrap; justify-content: center; row-gap: 18px; }
    .marquee__track[aria-hidden="true"] { display: none; }
    .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---- Print ---------------------------------------------------------------------------------------------- */
@media print {
    .site-header, .site-footer, .cookie-notice, .hero__media, .auth__media { display: none !important; }
    body { background: #fff; color: #000; }
    h1, h2, h3, .prose, .prose strong { color: #000; }
}
