/* =====================================================================
   GAMEZPANEL — app.css
   One stylesheet for the whole public site.
   Change the look by editing the TOKENS in section 01 first.

   NAMING RULES (keep it simple)
   - Components are plain words:      .card  .btn  .tag  .score  .hero
   - Parts use a dash:                 .card-media  .card-body  .card-title
   - Variants use a dash too:          .btn-primary  .score-lg  .card-poster
   - States use "is-":                 .is-active  .is-open  .is-visible
   - Utilities are short & obvious:    .text-muted  .mt-2  .center  .hide-mobile

   CONTENTS
   01 Tokens .............. colors, fonts, sizes (edit these!)
   02 Base ................ reset, body, links, images
   03 Layout .............. container, section, grid, row, stack
   04 Typography .......... headings, eyebrow, lead, gradient text
   05 Buttons ............. .btn + variants
   06 Tags & chips ........ .tag  .chip  .filterbar
   07 Score ............... .score (ring) + sizes + tiers
   08 Cards ............... .card  .card-poster  .card-wide
   09 Navbar .............. .navbar
   10 Hero (home) ......... .hero
   11 Ticker .............. .ticker
   12 Rail ................ horizontal scroller
   13 Ranking ............. top-rated list
   14 Genres .............. .genre tiles
   15 CTA band ............ .cta
   16 Page hero ........... .page-hero (inner pages)
   17 Game page ........... .game-hero  .game-layout  .gallery  .article  .share
   18 Forms & auth ........ .form  .field  .input  .auth
   19 Pager ............... .pager
   20 Footer .............. .footer
   21 Empty / error ....... .empty  .error-page
   22 Utilities ........... spacing, text, display
   23 Animations .......... .reveal, keyframes
   24 Responsive .......... breakpoints
   ===================================================================== */


/* ---------------------------------------------------------------------
   01 TOKENS
   --------------------------------------------------------------------- */
:root {
    /* Colors — backgrounds */
    --bg: #06060b;
    --bg-soft: #0b0c14;
    --surface: #11121c;
    --surface-2: #181a27;
    --surface-3: #222436;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.16);

    /* Colors — text */
    --text: #f1f2ff;
    --text-soft: #c3c6dc;
    --muted: #8a8fa8;

    /* Colors — brand */
    --primary: #b8ff3c;          /* acid lime: main action color */
    --primary-ink: #0a0d02;      /* text on top of primary */
    --accent: #8b5cf6;           /* violet */
    --cyan: #22d3ee;
    --hot: #ff3d81;              /* pink/red */
    --gold: #ffc53d;
    --gradient: linear-gradient(100deg, var(--primary) 0%, var(--cyan) 50%, var(--accent) 100%);
    --gradient-hot: linear-gradient(100deg, var(--hot), var(--accent));

    /* Score tiers */
    --score-high: var(--primary);
    --score-mid: var(--gold);
    --score-low: var(--hot);

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

    /* Sizes */
    --container: 1320px;
    --gutter: clamp(16px, 4vw, 40px);
    --section-y: clamp(64px, 9vw, 120px);
    --nav-h: 72px;

    /* Shape */
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --radius-pill: 999px;

    /* Effects */
    --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8);
    --glow: 0 0 0 1px rgba(184, 255, 60, 0.35), 0 10px 40px -8px rgba(184, 255, 60, 0.45);
    --glow-accent: 0 10px 40px -10px rgba(139, 92, 246, 0.65);
    --blur: blur(18px) saturate(140%);
    --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
    --speed: 0.35s;
}


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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Ambient background: soft glows + faint grid, fixed behind everything */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(900px 600px at 85% -10%, rgba(139, 92, 246, 0.18), transparent 60%),
        radial-gradient(700px 500px at -10% 30%, rgba(34, 211, 238, 0.10), transparent 60%),
        radial-gradient(800px 600px at 50% 120%, rgba(184, 255, 60, 0.07), transparent 60%),
        var(--bg);
}
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

img, video, iframe { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; transition: color var(--speed) var(--ease); }
a:hover { color: var(--primary); }

button { font: inherit; color: inherit; cursor: pointer; }

ul, ol { margin: 0; padding: 0; }

::selection { background: var(--primary); color: var(--primary-ink); }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

.main { min-height: 60vh; }


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

.section { padding-block: var(--section-y); position: relative; }
.section-tight { padding-block: calc(var(--section-y) * 0.6); }
.section-dark { background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.45) 20%, rgba(0, 0, 0, 0.45) 80%, transparent); }

/* Section heading: title on the left, link/text on the right */
.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.section-head p { max-width: 440px; margin: 0; color: var(--muted); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row-between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 12px; }


/* ---------------------------------------------------------------------
   04 TYPOGRAPHY
   --------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.01em;
    color: var(--text);
}
h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); text-transform: uppercase; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); text-transform: uppercase; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

/* Small label above a heading */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--primary);
}
.eyebrow::before {
    content: "";
    width: 26px;
    height: 2px;
    background: currentColor;
    box-shadow: 0 0 12px currentColor;
}

.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--text-soft); max-width: 640px; }

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.outline-text {
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.35);
}


/* ---------------------------------------------------------------------
   05 BUTTONS
   <a class="btn btn-primary">  <button class="btn btn-outline btn-sm">
   --------------------------------------------------------------------- */
.btn {
    --btn-bg: var(--surface-2);
    --btn-color: var(--text);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 24px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--btn-bg);
    color: var(--btn-color);
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease), background var(--speed) var(--ease), border-color var(--speed) var(--ease), color var(--speed) var(--ease);
}
.btn:hover { color: var(--btn-color); transform: translateY(-2px); border-color: var(--primary); }
.btn:active { transform: translateY(0); }
.btn .fa { font-size: 1.05em; }

.btn-primary {
    --btn-bg: var(--primary);
    --btn-color: var(--primary-ink);
    border-color: transparent;
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}
.btn-primary:hover { box-shadow: var(--glow); filter: brightness(1.08); }

.btn-outline { --btn-bg: transparent; }
.btn-ghost { --btn-bg: rgba(255, 255, 255, 0.06); border-color: transparent; backdrop-filter: var(--blur); }
.btn-ghost:hover { --btn-bg: rgba(255, 255, 255, 0.12); }

.btn-sm { min-height: 38px; padding: 0 16px; font-size: 0.8rem; }
.btn-lg { min-height: 58px; padding: 0 34px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-icon { width: 44px; min-height: 44px; padding: 0; border-radius: 50%; }


/* ---------------------------------------------------------------------
   06 TAGS & CHIPS
   .tag  = small label on a card     .chip = clickable filter pill
   --------------------------------------------------------------------- */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: var(--blur);
    color: var(--text);
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1.2;
}
.tag-primary { background: var(--primary); color: var(--primary-ink); }
.tag-accent { background: rgba(139, 92, 246, 0.22); color: #d4c6ff; }
.tag-hot { background: rgba(255, 61, 129, 0.2); color: #ff9cc0; }
.tag-live::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--hot);
    box-shadow: 0 0 10px var(--hot);
    animation: pulse 1.4s infinite;
}

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--text-soft);
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all var(--speed) var(--ease);
}
.chip:hover { border-color: var(--primary); color: var(--text); }
.chip.is-active { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }

/* Filter bar (reviews pages): genre picker + search + count
   <div class="filterbar"> .genre-picker  .filter-search  .filter-meta </div> */
.filterbar {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(24, 26, 39, 0.85), rgba(17, 18, 28, 0.85));
    backdrop-filter: var(--blur);
    box-shadow: var(--shadow);
}
.dropdown-toggle.filter-toggle { gap: 12px; min-width: 230px; min-height: 56px; padding: 8px 16px 8px 8px; border-radius: var(--radius); background: var(--surface-2); text-align: left; transition: border-color var(--speed); }
.genre-picker { z-index: 2; } /* keeps the open menu above the search box */
.filter-toggle:hover, .genre-picker.is-open .filter-toggle { border-color: var(--primary); }
.filter-icon { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 10px; background: rgba(184, 255, 60, 0.12); color: var(--primary); font-size: 1.05rem; }
.filter-text { display: flex; flex-direction: column; line-height: 1.2; }
.filter-text small { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.filter-text strong { font-family: var(--font-display); font-size: 1rem; color: var(--text); }
.filter-caret { margin-left: auto; color: var(--muted); transition: transform var(--speed) var(--ease); }
.genre-picker.is-open .filter-caret { transform: rotate(180deg); color: var(--primary); }

.dropdown-menu.genre-menu { left: 0; right: auto; background: #12131d; width: min(640px, calc(100vw - 2 * var(--gutter))); padding: 14px; }
.genre-menu-head { display: flex; justify-content: space-between; align-items: center; padding: 2px 6px 12px; margin-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.genre-menu .genre-menu-head a { padding: 0; color: var(--primary); letter-spacing: 0.1em; }
.genre-menu .genre-menu-head a:hover { background: none; text-decoration: underline; }
.genre-menu-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; max-height: min(420px, 60vh); overflow-y: auto; }
.genre-menu-grid a { font-size: 0.9rem; }
.genre-menu-grid a .fa { width: 18px; text-align: center; color: var(--muted); transition: color var(--speed); }
.genre-menu-grid a:hover .fa { color: var(--primary); }
.genre-menu .genre-menu-grid a.is-active { background: rgba(184, 255, 60, 0.12); color: var(--primary); font-weight: 600; }
.genre-menu-grid a.is-active .fa { color: var(--primary); }

.filter-search { position: relative; flex: 1; min-width: 0; }
.filter-search .fa { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.filter-search .input { min-height: 56px; padding-left: 46px; border-radius: var(--radius); background: rgba(6, 6, 11, 0.5); }

.filter-meta { display: flex; align-items: center; gap: 10px; padding: 0 8px; white-space: nowrap; }
.filter-count { color: var(--muted); font-size: 0.88rem; }
.filter-count b { font-family: var(--font-display); font-size: 1.1rem; color: var(--text); }
.filter-clear { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--radius-pill); background: var(--primary); color: var(--primary-ink); font-size: 0.82rem; font-weight: 600; }
.filter-clear:hover { color: var(--primary-ink); box-shadow: var(--glow); }
.filter-clear .fa-times { opacity: 0.7; }


/* ---------------------------------------------------------------------
   07 SCORE (1–10 ring)
   <div class="score score-high" style="--score:8"><span>8</span></div>
   Sizes: .score-sm  .score-lg  .score-xl
   --------------------------------------------------------------------- */
.score {
    --score: 0;
    --score-color: var(--score-high);
    --size: 56px;
    position: relative;
    flex: none;
    display: grid;
    place-items: center;
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    background:
        radial-gradient(closest-side, rgba(8, 9, 14, 0.92) 78%, transparent 80%),
        conic-gradient(var(--score-color) calc(var(--score) * 10%), rgba(255, 255, 255, 0.12) 0);
    box-shadow: 0 0 24px -6px var(--score-color);
}
.score span {
    font-family: var(--font-display);
    font-size: calc(var(--size) * 0.4);
    font-weight: 700;
    line-height: 1;
    color: var(--text);
}
.score small { display: block; font-size: 0.55em; color: var(--muted); }

.score-high { --score-color: var(--score-high); }
.score-mid { --score-color: var(--score-mid); }
.score-low { --score-color: var(--score-low); }

.score-sm { --size: 42px; }
.score-lg { --size: 84px; }
.score-xl { --size: 140px; }
.score-xl span { font-size: 3.4rem; }


/* ---------------------------------------------------------------------
   08 CARDS
   .card          = image on top, text below
   .card-poster   = tall image with text over it
   .card-wide     = 16:9 image with text over it
   --------------------------------------------------------------------- */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    transition: transform var(--speed) var(--ease), border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
    isolation: isolate;
}
.card:hover { transform: translateY(-6px); border-color: rgba(184, 255, 60, 0.45); box-shadow: var(--shadow), var(--glow-accent); color: inherit; }

.card-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--surface-2);
}
.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease), opacity 0.6s var(--ease);
}
.card:hover .card-media img { transform: scale(1.07); }
.card-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(6, 6, 11, 0.85));
}

/* things pinned on top of the media */
.card-top { position: absolute; top: 14px; left: 14px; right: 14px; z-index: 2; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.card-bottom { position: absolute; bottom: 14px; left: 14px; right: 14px; z-index: 2; }

.card-body { display: flex; flex-direction: column; gap: 8px; padding: 20px; flex: 1; }
.card-title { font-size: 1.3rem; line-height: 1.15; }
.card-title-lg { font-size: clamp(1.8rem, 3vw, 2.6rem); text-transform: uppercase; }
.card-text {
    margin: 0;
    color: var(--muted);
    font-size: 0.93rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-meta { display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 10px; color: var(--muted); font-size: 0.82rem; }
.card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary);
}
.card-link .fa { transition: transform var(--speed) var(--ease); }
.card:hover .card-link .fa { transform: translateX(5px); }

/* Poster: text over a tall image */
.card-poster { aspect-ratio: 3 / 4; justify-content: flex-end; }
.card-poster .card-media { position: absolute; inset: 0; aspect-ratio: auto; }
.card-poster .card-media::after { background: linear-gradient(180deg, rgba(6, 6, 11, 0.1) 30%, rgba(6, 6, 11, 0.95)); }
.card-poster .card-body { position: relative; z-index: 2; flex: none; }

/* Wide: text over a 16:9 image */
.card-wide { aspect-ratio: 16 / 9; justify-content: flex-end; }
.card-wide .card-media { position: absolute; inset: 0; aspect-ratio: auto; }
.card-wide .card-media::after { background: linear-gradient(180deg, transparent 20%, rgba(6, 6, 11, 0.95)); }
.card-wide .card-body { position: relative; z-index: 2; flex: none; }

/* Bento grid: first card big, the rest fill around it (Home > Latest reviews) */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.bento > * { min-width: 0; }
.bento > .card, .bento > div > .card { height: 100%; }
.bento-main { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; min-height: 520px; }

/* Release date block on poster cards */
.release-date { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; font-family: var(--font-display); }
.release-date strong { font-size: 2.6rem; line-height: 1; color: var(--primary); }
.release-date span { font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-soft); }

/* Slideshow inside card media (All Games hover effect) */
.slides img { position: absolute; inset: 0; opacity: 0; }
.slides img.is-active { opacity: 1; }
.slides-dots { position: absolute; z-index: 2; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 5px; }
.slides-dots i { width: 18px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.35); transition: background var(--speed); }
.slides-dots i.is-active { background: var(--primary); }


/* ---------------------------------------------------------------------
   09 NAVBAR
   --------------------------------------------------------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--nav-h);
    transition: background var(--speed) var(--ease), border-color var(--speed) var(--ease), backdrop-filter var(--speed);
    border-bottom: 1px solid transparent;
}
.navbar.is-scrolled,
.navbar.is-solid {
    background: rgba(6, 6, 11, 0.78);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border-bottom-color: var(--line);
}
.navbar-inner { height: 100%; display: flex; align-items: center; gap: 32px; }

.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--text); }
.logo:hover { color: var(--text); }
.logo img { width: 38px; height: 38px; object-fit: contain; filter: drop-shadow(0 0 10px rgba(184, 255, 60, 0.4)); }
.logo-text { font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; }
.logo-text b { color: var(--primary); font-weight: 700; }

.navbar-inner > nav { margin-right: auto; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-links a {
    position: relative;
    display: block;
    padding: 10px 14px;
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-soft);
}
.nav-links a::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 4px;
    height: 2px;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
    transform: scaleX(0);
    transition: transform var(--speed) var(--ease);
}
.nav-links a:hover,
.nav-links a.is-active { color: var(--text); }
.nav-links a:hover::after,
.nav-links a.is-active::after { transform: scaleX(1); }

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

/* Account dropdown */
.dropdown { position: relative; }
.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 6px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-pill);
    background: var(--surface);
    font-weight: 600;
}
.avatar {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient);
    color: var(--primary-ink);
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
}
.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 200px;
    padding: 8px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: rgba(17, 18, 28, 0.96);
    backdrop-filter: var(--blur);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all 0.2s var(--ease);
}
.dropdown.is-open .dropdown-menu { opacity: 1; visibility: visible; transform: none; }
.dropdown-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--text-soft); }
.dropdown-menu a:hover { background: var(--surface-2); color: var(--text); }

/* Mobile burger */
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    display: block;
    width: 20px;
    height: 2px;
    margin: auto;
    background: var(--text);
    position: relative;
    transition: transform var(--speed) var(--ease), background var(--speed);
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.navbar.is-open .nav-toggle span { background: transparent; }
.navbar.is-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.navbar.is-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

.page-offset { padding-top: var(--nav-h); }


/* ---------------------------------------------------------------------
   10 HERO (home page slider)
   --------------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: min(100vh, 920px);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    isolation: isolate;
}
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s var(--ease), visibility 1s;
}
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-size: cover;
    background-position: center;
    transform: scale(1.12);
    transition: transform 7s linear;
}
.hero-slide.is-active .hero-bg { transform: scale(1); }
.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(6, 6, 11, 0.95) 0%, rgba(6, 6, 11, 0.6) 45%, rgba(6, 6, 11, 0.1) 100%),
        linear-gradient(0deg, var(--bg) 0%, transparent 45%);
}
.hero-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 210px;
    padding-top: calc(var(--nav-h) + 40px);
}
.hero-content > * { max-width: 760px; }
.hero-title { margin: 6px 0 18px; font-size: clamp(2.8rem, 7.5vw, 6.4rem); line-height: 0.92; text-shadow: 0 10px 40px rgba(0, 0, 0, 0.6); }
.hero-text { font-size: clamp(1rem, 1.5vw, 1.2rem); color: var(--text-soft); max-width: 560px; }
.hero-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 18px; }

/* slide content animates in */
.hero-slide .hero-content > * { opacity: 0; transform: translateY(30px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.hero-slide.is-active .hero-content > * { opacity: 1; transform: none; }
.hero-slide.is-active .hero-content > *:nth-child(2) { transition-delay: 0.1s; }
.hero-slide.is-active .hero-content > *:nth-child(3) { transition-delay: 0.2s; }
.hero-slide.is-active .hero-content > *:nth-child(4) { transition-delay: 0.3s; }

/* thumbnails along the bottom */
.hero-thumbs {
    position: absolute;
    z-index: 5;
    left: 0;
    right: 0;
    bottom: 40px;
}
.hero-thumbs-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.hero-thumb {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(17, 18, 28, 0.55);
    backdrop-filter: var(--blur);
    text-align: left;
    overflow: hidden;
    transition: border-color var(--speed), background var(--speed);
}
.hero-thumb img { width: 64px; height: 44px; flex: none; border-radius: 6px; object-fit: cover; }
.hero-thumb-title { font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; line-height: 1.2; color: var(--text-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-thumb:hover, .hero-thumb.is-active { border-color: var(--line-strong); background: rgba(34, 36, 54, 0.75); }
.hero-thumb.is-active .hero-thumb-title { color: var(--text); }
.hero-thumb-bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--gradient); }
.hero-thumb.is-active .hero-thumb-bar { animation: progress var(--hero-delay, 7s) linear forwards; }

.hero-empty { display: grid; place-items: center; min-height: 70vh; text-align: center; }


/* ---------------------------------------------------------------------
   11 TICKER (scrolling strip)
   --------------------------------------------------------------------- */
.ticker {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-block: 1px solid var(--line);
    background: var(--primary);
    color: var(--primary-ink);
    transform: rotate(-1.2deg);
    margin-block: 20px;
    width: 104%;
    margin-left: -2%;
}
.ticker-track { display: flex; flex: none; gap: 48px; padding: 14px 24px; animation: marquee 40s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { display: inline-flex; align-items: center; gap: 14px; font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; }
.ticker-item::after { content: "\2726"; margin-left: 34px; font-size: 0.9rem; }
.ticker-item b { opacity: 0.6; }


/* ---------------------------------------------------------------------
   12 RAIL (horizontal scroller)
   --------------------------------------------------------------------- */
.rail-wrap { position: relative; }
.rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(280px, 1fr);
    gap: 22px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 8px;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail-controls { display: flex; gap: 10px; }


/* ---------------------------------------------------------------------
   13 RANKING (top rated)
   --------------------------------------------------------------------- */
.ranking { display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; }
.ranking-feature { aspect-ratio: auto; min-height: 520px; }
.ranking-feature .card-title { font-size: clamp(1.8rem, 3vw, 2.8rem); text-transform: uppercase; }
.ranking-list { display: flex; flex-direction: column; gap: 14px; counter-reset: rank 1; }
.rank-item {
    display: grid;
    grid-template-columns: auto 120px 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 12px 18px 12px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    counter-increment: rank;
    transition: all var(--speed) var(--ease);
}
.rank-item::before {
    content: "0" counter(rank);
    order: -1;
    width: 48px;
    text-align: center;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 1.2px var(--muted);
    transition: all var(--speed);
}
.rank-item:hover { border-color: rgba(184, 255, 60, 0.45); background: var(--surface-2); transform: translateX(6px); color: inherit; }
.rank-item:hover::before { color: var(--primary); -webkit-text-stroke-color: var(--primary); }
.rank-item img { width: 120px; height: 72px; object-fit: cover; border-radius: var(--radius-sm); }
.rank-item h3 { font-size: 1.1rem; margin-bottom: 4px; }
.rank-item p { margin: 0; color: var(--muted); font-size: 0.85rem; }
.rank-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 2;
    font-family: var(--font-display);
    font-size: 5rem;
    font-weight: 700;
    line-height: 0.8;
    color: var(--primary);
    text-shadow: 0 0 40px rgba(184, 255, 60, 0.6);
}


/* ---------------------------------------------------------------------
   14 GENRES
   --------------------------------------------------------------------- */
.genres { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.genre {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    overflow: hidden;
    transition: all var(--speed) var(--ease);
}
.genre .fa {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--primary);
    font-size: 1.2rem;
    transition: all var(--speed) var(--ease);
}
.genre-name { font-family: var(--font-display); font-weight: 600; font-size: 1rem; line-height: 1.2; }
.genre::after {
    content: "";
    position: absolute;
    inset: auto -40% -60% auto;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(184, 255, 60, 0.35), transparent 70%);
    opacity: 0;
    transition: opacity var(--speed);
}
.genre:hover { border-color: rgba(184, 255, 60, 0.4); transform: translateY(-4px); color: var(--text); }
.genre:hover::after { opacity: 1; }
.genre:hover .fa { background: var(--primary); color: var(--primary-ink); box-shadow: var(--glow); }


/* ---------------------------------------------------------------------
   15 CTA BAND
   --------------------------------------------------------------------- */
.cta {
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 40px;
    padding: clamp(32px, 6vw, 72px);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(600px 300px at 100% 0%, rgba(139, 92, 246, 0.45), transparent 70%),
        radial-gradient(500px 300px at 0% 100%, rgba(184, 255, 60, 0.18), transparent 70%),
        var(--surface);
    overflow: hidden;
}
.cta::before {
    content: "GG";
    position: absolute;
    right: -20px;
    bottom: -80px;
    font-family: var(--font-display);
    font-size: 22rem;
    font-weight: 700;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.07);
    pointer-events: none;
}
.cta-features { display: grid; gap: 14px; list-style: none; position: relative; }
.cta-features li { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: var(--radius); background: rgba(6, 6, 11, 0.5); border: 1px solid var(--line); }
.cta-features .fa { color: var(--primary); font-size: 1.3rem; margin-top: 2px; width: 22px; text-align: center; }
.cta-features strong { display: block; font-family: var(--font-display); font-size: 1.05rem; }
.cta-features span { color: var(--muted); font-size: 0.9rem; }


/* ---------------------------------------------------------------------
   16 PAGE HERO (top of inner pages)
   --------------------------------------------------------------------- */
.page-hero {
    position: relative;
    padding: calc(var(--nav-h) + clamp(50px, 8vw, 110px)) 0 clamp(40px, 6vw, 70px);
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}
.page-hero::before {
    content: attr(data-word);
    position: absolute;
    right: -0.05em;
    bottom: -0.25em;
    font-family: var(--font-display);
    font-size: clamp(8rem, 22vw, 20rem);
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.06);
    pointer-events: none;
    white-space: nowrap;
}
.page-hero-bg { position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: center; opacity: 0.25; mask-image: linear-gradient(180deg, black, transparent); }
.page-hero h1 { margin-bottom: 16px; }


/* ---------------------------------------------------------------------
   17 GAME PAGE
   --------------------------------------------------------------------- */
.game-hero {
    position: relative;
    min-height: 78vh;
    display: flex;
    align-items: flex-end;
    padding: calc(var(--nav-h) + 60px) 0 56px;
    isolation: isolate;
    overflow: hidden;
}
.game-hero-bg { position: absolute; inset: -40px; z-index: -2; background-size: cover; background-position: center; filter: saturate(1.15); animation: slowZoom 20s ease-in-out infinite alternate; }
.game-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(0deg, var(--bg) 2%, rgba(6, 6, 11, 0.55) 50%, rgba(6, 6, 11, 0.35) 100%),
        linear-gradient(90deg, rgba(6, 6, 11, 0.85), transparent 70%);
}
.game-hero-inner { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 40px; width: 100%; }
.game-hero h1 { font-size: clamp(2.8rem, 7vw, 6rem); line-height: 0.92; margin: 10px 0 16px; text-shadow: 0 10px 40px rgba(0, 0, 0, 0.6); }
.game-hero .lead { margin-bottom: 0; }

.game-facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 26px; }
.fact { display: flex; flex-direction: column; gap: 2px; }
.fact-label { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.fact-value { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }

.verdict-box { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 28px; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: rgba(17, 18, 28, 0.6); backdrop-filter: var(--blur); text-align: center; }
.verdict-word { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; }

.game-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; }
.game-main { display: flex; flex-direction: column; gap: 48px; min-width: 0; }
.game-sidebar { position: sticky; top: calc(var(--nav-h) + 20px); display: flex; flex-direction: column; gap: 18px; }

.panel { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.panel-title { margin-bottom: 16px; font-size: 0.82rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); font-family: var(--font-display); font-weight: 600; }

/* Video */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-strong); box-shadow: var(--shadow); background: #000; }
.video iframe, .video img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 140px; gap: 12px; }
.gallery a { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); }
.gallery a:first-child { grid-column: span 2; grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease), filter var(--speed); }
.gallery a::after { content: "\f00e"; font-family: FontAwesome; position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.6rem; color: #fff; background: rgba(6, 6, 11, 0.5); opacity: 0; transition: opacity var(--speed); }
.gallery a:hover img { transform: scale(1.08); }
.gallery a:hover::after { opacity: 1; }

/* Review article */
.quote { position: relative; margin: 0; padding: 28px 32px; border-left: 3px solid var(--primary); border-radius: 0 var(--radius) var(--radius) 0; background: linear-gradient(90deg, rgba(184, 255, 60, 0.08), transparent); font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 1.9rem); font-weight: 600; line-height: 1.3; }
.article { display: flex; flex-direction: column; gap: 40px; counter-reset: chapter; }
.article-section { counter-increment: chapter; }
.article-section h2 { display: flex; align-items: baseline; gap: 16px; margin-bottom: 18px; font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.article-section h2::before { content: counter(chapter, decimal-leading-zero); font-size: 0.9rem; color: var(--primary); letter-spacing: 0.1em; }
.article-section p { color: var(--text-soft); font-size: 1.08rem; line-height: 1.85; white-space: pre-line; }

/* Store buttons */
.stores { display: flex; flex-direction: column; gap: 10px; }
.store {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--surface-2);
    font-weight: 600;
    transition: all var(--speed) var(--ease);
}
.store img { width: 28px; height: 28px; object-fit: contain; }
.store small { display: block; font-size: 0.72rem; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.12em; }
.store .fa-external-link { margin-left: auto; color: var(--muted); }
.store:hover { border-color: var(--primary); transform: translateX(4px); color: var(--text); }

/* Share buttons */
.share { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.share-btn {
    display: grid;
    place-items: center;
    height: 46px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    font-size: 1.1rem;
    transition: all var(--speed) var(--ease);
}
.share-btn:hover { transform: translateY(-3px); color: var(--primary-ink); background: var(--primary); border-color: var(--primary); }

/* Link list */
.link-list { display: flex; flex-direction: column; gap: 8px; list-style: none; }
.link-list a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text-soft); font-size: 0.9rem; word-break: break-all; }
.link-list a:hover { color: var(--text); background: var(--surface-3); }
.link-list .fa { color: var(--primary); flex: none; }

/* Player score (stars) */
.stars { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.stars input { position: absolute; opacity: 0; pointer-events: none; }
.stars label { cursor: pointer; font-size: 1.55rem; line-height: 1; color: rgba(255, 255, 255, 0.22); transition: color 0.15s, transform 0.15s; }
.stars label:hover, .stars label:hover ~ label,
.stars input:checked ~ label { color: var(--primary); text-shadow: 0 0 12px rgba(184, 255, 60, 0.6); }
.stars label:hover { transform: scale(1.2); }
.stars-result { margin-top: 12px; font-size: 0.9rem; color: var(--muted); }
.stars-result b { color: var(--text); font-family: var(--font-display); }


/* ---------------------------------------------------------------------
   18 FORMS & AUTH
   --------------------------------------------------------------------- */
.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-soft); }
.label small { color: var(--muted); text-transform: none; letter-spacing: 0; font-weight: 500; }
.input {
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: rgba(6, 6, 11, 0.6);
    color: var(--text);
    font: inherit;
    transition: border-color var(--speed), box-shadow var(--speed);
    color-scheme: dark;
}
.input::placeholder { color: var(--muted); }
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(184, 255, 60, 0.15); }

.radio-group { display: flex; gap: 10px; flex-wrap: wrap; }
.radio { position: relative; }
.radio input { position: absolute; opacity: 0; }
.radio span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: rgba(6, 6, 11, 0.6); cursor: pointer; transition: all var(--speed); }
.radio input:checked + span { border-color: var(--primary); color: var(--primary); background: rgba(184, 255, 60, 0.08); }
.radio input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }

.alert { padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid; font-size: 0.92rem; }
.alert-success { border-color: rgba(184, 255, 60, 0.4); background: rgba(184, 255, 60, 0.08); color: #dcff9c; }
.alert-error { border-color: rgba(255, 61, 129, 0.4); background: rgba(255, 61, 129, 0.08); color: #ffb3cf; }

.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-art { position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: calc(var(--nav-h) + 40px) var(--gutter) 64px; overflow: hidden; isolation: isolate; }
.auth-art-bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; animation: slowZoom 20s ease-in-out infinite alternate; }
.auth-art::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(6, 6, 11, 0.95), rgba(6, 6, 11, 0.2) 70%), linear-gradient(90deg, transparent 60%, var(--bg)); }
.auth-art h1 { font-size: clamp(2.6rem, 5vw, 4.6rem); margin-bottom: 16px; }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: calc(var(--nav-h) + 30px) var(--gutter) 50px; }
.auth-card { width: 100%; max-width: 460px; }
.auth-card h2 { font-size: 2.4rem; margin-bottom: 6px; }
.auth-alt { margin: 0; text-align: center; color: var(--muted); font-size: 0.92rem; }
.auth-alt a { color: var(--primary); font-weight: 600; }
.auth-stats { display: flex; gap: 32px; margin-top: 28px; }
.auth-stats strong { display: block; font-family: var(--font-display); font-size: 2rem; line-height: 1; color: var(--primary); }
.auth-stats span { font-size: 0.82rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; }
.g-recaptcha { transform-origin: left top; }


/* ---------------------------------------------------------------------
   19 PAGER
   --------------------------------------------------------------------- */
.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 56px; list-style: none; }
.pager a {
    display: grid;
    place-items: center;
    min-width: 46px;
    height: 46px;
    padding: 0 12px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
    font-family: var(--font-display);
    font-weight: 700;
    transition: all var(--speed) var(--ease);
}
.pager a:hover { border-color: var(--primary); color: var(--primary); }
.pager a.is-active { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); box-shadow: var(--glow); }


/* ---------------------------------------------------------------------
   20 FOOTER
   --------------------------------------------------------------------- */
.footer { position: relative; margin-top: 40px; border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-soft), #030306); overflow: hidden; }
.footer::before { content: ""; position: absolute; top: 0; left: 10%; right: 10%; height: 1px; background: var(--gradient); box-shadow: 0 0 30px 2px rgba(184, 255, 60, 0.4); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-block: 72px 48px; }
.footer-about { color: var(--muted); max-width: 340px; margin-top: 18px; }
.footer-title { margin-bottom: 18px; font-size: 0.82rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.footer-links { display: flex; flex-direction: column; gap: 10px; list-style: none; }
.footer-links a { color: var(--text-soft); }
.footer-links a:hover { color: var(--primary); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; }
.footer-word { font-family: var(--font-display); font-weight: 700; font-size: clamp(4rem, 15vw, 14rem); line-height: 0.8; text-align: center; text-transform: uppercase; letter-spacing: -0.02em; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.07); user-select: none; margin-bottom: -0.12em; }
.socials { display: flex; gap: 10px; margin-top: 22px; }


/* ---------------------------------------------------------------------
   21 EMPTY / ERROR
   --------------------------------------------------------------------- */
.empty { padding: 56px 24px; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); text-align: center; color: var(--muted); }
.empty .fa { display: block; margin-bottom: 14px; font-size: 2.2rem; color: var(--accent); }

.error-page { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: calc(var(--nav-h) + 40px) var(--gutter) 60px; }
.error-code { font-family: var(--font-display); font-size: clamp(7rem, 22vw, 15rem); font-weight: 700; line-height: 0.85; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; animation: glitch 3s infinite; }


/* Content blocks (about / privacy) */
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 18px; }
.prose p { color: var(--text-soft); font-size: 1.05rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-strong); box-shadow: var(--shadow); }
.frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(184, 255, 60, 0.15), transparent 40%, rgba(139, 92, 246, 0.25)); }

.info-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); transition: border-color var(--speed), transform var(--speed) var(--ease); }
.info-card:hover { border-color: rgba(184, 255, 60, 0.35); transform: translateY(-4px); }
.info-card .fa { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 20px; border-radius: 12px; background: rgba(184, 255, 60, 0.1); color: var(--primary); font-size: 1.3rem; }
.info-card h3 { margin-bottom: 12px; }
.info-card p, .info-card li { color: var(--muted); font-size: 0.95rem; }
.info-card ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.info-card li { position: relative; padding-left: 20px; }
.info-card li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 8px; height: 2px; background: var(--primary); }
.info-card a { color: var(--primary); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.stat { padding: 30px; background: var(--surface); }
.stat strong { display: block; font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1; margin-bottom: 8px; }
.stat span { color: var(--muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.14em; }

.toc { display: flex; flex-direction: column; gap: 4px; list-style: none; }
.toc a { display: block; padding: 8px 12px; border-left: 2px solid var(--line); color: var(--muted); font-size: 0.92rem; }
.toc a:hover { color: var(--text); border-left-color: var(--primary); }


/* ---------------------------------------------------------------------
   22 UTILITIES
   --------------------------------------------------------------------- */
.text-muted { color: var(--muted); }
.text-soft { color: var(--text-soft); }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-hot { color: var(--hot); }
.center { text-align: center; }
.text-sm { font-size: 0.85rem; }
.text-lg { font-size: 1.15rem; }
.mx-auto { margin-inline: auto; }
.ml-auto { margin-left: auto; }
.self-start { align-self: flex-start; }
.upper { text-transform: uppercase; }
.font-display { font-family: var(--font-display); }

.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; } .mt-5 { margin-top: 64px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 40px; } .mb-5 { margin-bottom: 64px; }

.w-full { width: 100%; }
.relative { position: relative; }
.hidden { display: none !important; }
.hidden-desktop { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }


/* ---------------------------------------------------------------------
   23 ANIMATIONS
   Add class="reveal" to anything to fade it up when scrolled into view.
   --------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

@keyframes marquee { to { transform: translateX(-100%); } }
@keyframes progress { from { width: 0; } to { width: 100%; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
@keyframes slowZoom { from { transform: scale(1); } to { transform: scale(1.1); } }
@keyframes glitch {
    0%, 92%, 100% { transform: none; filter: none; }
    93% { transform: translate(-4px, 2px) skewX(-6deg); filter: hue-rotate(60deg); }
    95% { transform: translate(4px, -2px) skewX(6deg); filter: hue-rotate(-60deg); }
    97% { transform: translate(-2px, 0); }
}

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


/* ---------------------------------------------------------------------
   24 RESPONSIVE
   --------------------------------------------------------------------- */
@media (max-width: 1100px) {
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .game-layout { grid-template-columns: 1fr; }
    .game-sidebar { position: static; display: grid; grid-template-columns: repeat(2, 1fr); }
    .ranking { grid-template-columns: 1fr; }
    .ranking-feature { min-height: 420px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-thumbs-list { grid-template-columns: repeat(5, 74px); justify-content: start; }
    .hero-thumb { padding: 5px; }
    .hero-thumb-title { display: none; }
    .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
    .filterbar { flex-wrap: wrap; }
    .genre-picker, .filter-toggle { width: 100%; }
    .filter-search { flex-basis: 100%; }
    .filter-meta { width: 100%; justify-content: space-between; padding: 4px 6px; }
    .dropdown-menu.genre-menu { width: 100%; }
    .genre-menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    :root { --nav-h: 64px; }
    .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nav-toggle { display: block; margin-left: auto; }
    .navbar-inner { gap: 12px; }
    .nav-links {
        position: fixed;
        top: var(--nav-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px var(--gutter) 24px;
        background: rgba(6, 6, 11, 0.97);
        backdrop-filter: var(--blur);
        border-bottom: 1px solid var(--line);
        transform: translateY(-120%);
        transition: transform 0.4s var(--ease);
        z-index: -1;
    }
    .navbar.is-open .nav-links { transform: none; }
    .navbar.is-open { background: rgba(6, 6, 11, 0.97); }
    .nav-links a { padding: 16px 0; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
    .nav-links a::after { display: none; }
    .nav-actions .btn-outline { display: none; }
    .hide-mobile { display: none !important; }
    .hidden-desktop { display: block !important; }
    .cta, .split, .auth { grid-template-columns: 1fr; }
    .auth-art { min-height: 46vh; padding-bottom: 30px; }
    .auth-art::after { background: linear-gradient(0deg, var(--bg), rgba(6, 6, 11, 0.3)); }
    .auth-panel { padding-top: 20px; }
    .game-hero-inner { grid-template-columns: 1fr; }
    .verdict-box { flex-direction: row; justify-self: start; }
    .gallery { grid-template-columns: repeat(2, 1fr); }
    .rank-item { grid-template-columns: auto 1fr auto; }
    .rank-item img { display: none; }
}

@media (max-width: 560px) {
    .grid-2, .grid-3, .grid-4, .bento { grid-template-columns: 1fr; }
    .bento-main { grid-column: auto; min-height: 420px; }
    .field-row { grid-template-columns: 1fr; }
    .game-sidebar { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-content { padding-bottom: 140px; }
    .hero-thumbs { bottom: 24px; }
    .hero-thumbs-list { grid-template-columns: repeat(5, 1fr); gap: 8px; }
    .hero-thumb img { width: 100%; height: 36px; }
    .rail { grid-auto-columns: 82%; }
    .g-recaptcha { transform: scale(0.9); }
    .stats { grid-template-columns: 1fr 1fr; }
    .stat { padding: 20px; }
}
