/* ============================================================
   besto4games.online — MOBILE-FIRST PREMIUM DARK THEME
   ============================================================
   Base styles = mobile. Scale UP with min-width queries.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Outfit:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* ======================== TOKENS ======================== */
:root {
    --bg:             #030303;
    --bg-card:        rgba(12, 12, 12, 0.75);
    --bg-card-hover:  rgba(18, 18, 18, 0.85);
    --bg-modal:       rgba(0, 0, 0, 0.92);

    --accent:         #39FF14;
    --accent-dim:     #2ecc0f;
    --accent-glow:    rgba(57, 255, 20, 0.30);
    --accent-soft:    rgba(57, 255, 20, 0.10);
    --accent-hard:    rgba(57, 255, 20, 0.55);

    --text:           #eaeaea;
    --text-2:         #8a8a8a;
    --text-3:         #4a4a4a;

    --border:         rgba(255, 255, 255, 0.06);
    --border-accent:  rgba(57, 255, 20, 0.20);

    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 18px;
    --r-xl: 24px;
    --r-full: 100px;

    --blur: 20px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --nav-h: 56px;
}

/* ======================== RESET ======================== */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    scroll-padding-top: var(--nav-h);
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Subtle grid bg */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        linear-gradient(rgba(57,255,20,0.012) 1px, transparent 1px),
        linear-gradient(90deg, rgba(57,255,20,0.012) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.accent { color: var(--accent); }
.text-green { color: var(--accent) !important; }
.muted { color: var(--text-3); font-weight: 400; font-size: 0.85em; }

/* ======================== LAYOUT ======================== */
.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ======================== BUTTONS ======================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: none;
    border-radius: var(--r-full);
    padding: 14px 28px;
    cursor: pointer;
    transition: transform 0.25s var(--ease), box-shadow 0.3s ease, background 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn--primary {
    color: #000;
    background: var(--accent);
    box-shadow: 0 0 24px var(--accent-soft);
}
.btn--primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px var(--accent-glow);
}
.btn--primary:active { transform: scale(0.97); }

.btn--outline {
    color: var(--text);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
}
.btn--outline:hover {
    background: rgba(255,255,255,0.1);
    transform: scale(1.03);
}

.btn--sm { padding: 10px 22px; font-size: 0.78rem; }
.btn--lg { padding: 18px 36px; font-size: 1rem; letter-spacing: 2px; }
.btn--full { width: 100%; }

.btn--pulse {
    animation: pulse 2.5s ease-in-out infinite;
}
.btn--pulse::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: var(--r-full);
    background: var(--accent);
    filter: blur(16px);
    opacity: 0.35;
    z-index: -1;
    animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 20px var(--accent-soft); }
    50%      { box-shadow: 0 0 40px var(--accent-glow); }
}

/* ======================== NAVBAR ======================== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    z-index: 1000;
    background: rgba(3, 3, 3, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: background 0.4s, box-shadow 0.4s;
}
.navbar.is-scrolled {
    background: rgba(3, 3, 3, 0.95);
    box-shadow: 0 2px 24px rgba(0,0,0,0.6);
}

.navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.navbar__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.navbar__logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 0.7rem;
    color: #000;
    background: var(--accent);
    border-radius: 6px;
    padding: 4px 8px;
    letter-spacing: 1px;
    line-height: 1;
}

.navbar__name {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: -0.5px;
}

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

.navbar__count {
    display: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid var(--border-accent);
    border-radius: var(--r-full);
    padding: 4px 12px;
}

.navbar__cta {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-2);
    transition: color 0.3s;
}
.navbar__cta:hover { color: var(--accent); }

/* ======================== HERO ======================== */
.hero {
    position: relative;
    min-height: 55vh;
    display: flex;
    align-items: flex-end;
    padding-top: var(--nav-h);
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
}

.hero__bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: brightness(0.3) saturate(1.2);
    animation: slowZoom 25s ease-in-out infinite alternate;
}

@keyframes slowZoom {
    0%   { transform: scale(1.0); }
    100% { transform: scale(1.12); }
}

.hero__gradient {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(3,3,3,0.3) 0%, rgba(3,3,3,0.1) 30%, rgba(3,3,3,0.55) 65%, var(--bg) 100%),
        linear-gradient(90deg, rgba(3,3,3,0.6) 0%, transparent 60%);
}

.hero__body {
    position: relative;
    z-index: 2;
    padding: 24px 12px 24px;
}

.hero__badge {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid var(--border-accent);
    border-radius: var(--r-full);
    padding: 6px 16px;
    margin-bottom: 16px;
    animation: fadeUp 0.7s var(--ease) both;
}

.hero__title {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 1.35rem;
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
    animation: fadeUp 0.7s 0.1s var(--ease) both;
}

.hero__sub {
    font-size: 0.78rem;
    color: var(--text-2);
    line-height: 1.5;
    margin-bottom: 16px;
    max-width: 520px;
    animation: fadeUp 0.7s 0.2s var(--ease) both;
}

.hero__btns {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    animation: fadeUp 0.7s 0.3s var(--ease) both;
}

.hero__metrics {
    display: flex;
    gap: 24px;
    animation: fadeUp 0.7s 0.4s var(--ease) both;
}

.metric {
    display: flex;
    flex-direction: column;
}
.metric strong {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
}
.metric span {
    font-size: 0.65rem;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

/* ======================== TRUST STRIP ======================== */
.trust-strip {
    position: relative;
    z-index: 1;
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
}

.trust-strip__inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.trust-item__icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.trust-item__text strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
}

.trust-item__text span {
    font-size: 0.75rem;
    color: var(--text-3);
}

/* ======================== SECTION ======================== */
.section-heading {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    text-align: center;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

.section-sub {
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-2);
    margin-bottom: 16px;
}

/* ======================== STEPS ======================== */
.steps {
    position: relative;
    z-index: 1;
    padding: 32px 0;
}

/* Footer-positioned steps: more compact on mobile */
.steps--footer {
    padding: 28px 0 8px;
    border-top: 1px solid var(--border);
}

.steps--footer .section-heading {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.steps--footer .section-sub {
    font-size: 0.75rem;
    margin-bottom: 20px;
}

.steps__grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.step {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 28px 24px;
    text-align: center;
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    transition: transform 0.4s var(--ease), border-color 0.3s;
    overflow: hidden;
}

/* Compact steps inside footer on mobile */
.steps--footer .step {
    padding: 16px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}
.steps--footer .step__icon {
    font-size: 1.4rem;
    margin-bottom: 0;
    flex-shrink: 0;
}
.steps--footer .step h3 {
    font-size: 0.85rem;
    margin-bottom: 2px;
}
.steps--footer .step p {
    font-size: 0.72rem;
    line-height: 1.4;
}
.steps--footer .step__num {
    font-size: 1.8rem;
}
.step:hover {
    transform: translateY(-4px);
    border-color: var(--border-accent);
}

.step__num {
    position: absolute;
    top: 12px;
    right: 16px;
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 2.5rem;
    color: rgba(57,255,20,0.05);
    line-height: 1;
}

.step__icon { font-size: 2rem; margin-bottom: 12px; }

.step h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 6px;
}

.step p {
    font-size: 0.82rem;
    color: var(--text-2);
    line-height: 1.5;
}

/* ======================== CATALOG / GRID ======================== */
.catalog {
    position: relative;
    z-index: 1;
    padding: 16px 0 32px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

/* ======================== CARD ======================== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    text-decoration: none;
    padding: 10px;
    transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.15);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.card__img {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 10px;
    border: 1px solid var(--border);
}

.card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--ease);
}
.card:hover .card__img img {
    transform: scale(1.05);
}

.card__img-fade {
    display: none;
}

.card__badge {
    position: absolute;
    top: 6px;
    right: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    font-weight: 700;
    color: #000;
    background: var(--accent);
    border-radius: 6px;
    padding: 2px 7px;
    z-index: 2;
}

.card__body {
    padding: 0;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card__title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    line-height: 1.3;
    margin-bottom: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s;
}
.card:hover .card__title { color: var(--accent); }

.card__desc {
    display: none;
}

.card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 4px;
}

.tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.55rem;
    font-weight: 600;
    color: var(--text-2);
    background: none;
    border: none;
    padding: 0;
    letter-spacing: 0.3px;
}

.card__cta {
    display: none;
}

/* ======================== BREADCRUMB ======================== */
.breadcrumb {
    padding: calc(var(--nav-h) + 14px) 0 0;
    font-size: 0.78rem;
    color: var(--text-3);
}
.breadcrumb a {
    color: var(--text-2);
    transition: color 0.3s;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb__sep { margin: 0 6px; }
.breadcrumb__current {
    color: var(--text-2);
    max-width: 220px;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
}

/* ======================== GAME HERO ======================== */
.game-hero {
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    margin-top: 12px;
    border-radius: var(--r-lg);
    margin-left: 16px;
    margin-right: 16px;
}

.game-hero__bg {
    position: absolute;
    inset: 0;
    border-radius: var(--r-lg);
    overflow: hidden;
}
.game-hero__bg-img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: brightness(0.25) saturate(1.2) blur(2px);
    transform: scale(1.08);
}
.game-hero__gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(3,3,3,0.2) 0%, rgba(3,3,3,0.65) 55%, rgba(3,3,3,0.96) 100%);
}

.game-hero__body {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 24px 20px;
}

.game-hero__row {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.game-hero__cover {
    width: 100px;
    height: 100px;
    border-radius: var(--r-md);
    overflow: hidden;
    border: 2px solid var(--border-accent);
    box-shadow: 0 0 20px var(--accent-soft), 0 8px 24px rgba(0,0,0,0.5);
    flex-shrink: 0;
    animation: fadeUp 0.5s var(--ease) both;
}
.game-hero__cover img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.game-hero__info {
    animation: fadeUp 0.5s 0.08s var(--ease) both;
}

.game-hero__label {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid var(--border-accent);
    border-radius: var(--r-full);
    padding: 4px 14px;
    margin-bottom: 10px;
}

.game-hero__title {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 1.2rem;
    line-height: 1.2;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

/* Stars */
.game-hero__stars {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.stars { display: flex; gap: 1px; }
.star { font-size: 0.9rem; }
.star--on { color: #FFD700; text-shadow: 0 0 6px rgba(255,215,0,0.3); }
.star--half { color: #FFD700; opacity: 0.5; }
.star--off { color: var(--text-3); }
.game-hero__rating-val {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-2);
}

/* Pills */
.game-hero__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.pill {
    display: flex;
    flex-direction: column;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 6px 12px;
    min-width: 70px;
}
.pill--green .pill__val { color: var(--accent); }
.pill__label {
    font-size: 0.58rem;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 600;
}
.pill__val {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
}

/* ======================== GAME CONTENT LAYOUT ======================== */
.game-content {
    padding-top: 24px;
    padding-bottom: 80px;
}

.game-grid-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.game-grid-layout__main { min-width: 0; }

/* ======================== PANEL ======================== */
.panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    padding: 24px 20px;
    margin-bottom: 20px;
}

.panel__heading {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.panel__heading::before {
    content: '';
    width: 3px;
    height: 18px;
    background: var(--accent);
    border-radius: 3px;
    box-shadow: 0 0 8px var(--accent-glow);
}

.panel p {
    color: var(--text-2);
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 12px;
}
.panel p:last-child { margin-bottom: 0; }

/* Features */
.feature-list { list-style: none; }
.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.88rem;
    color: var(--text-2);
    line-height: 1.55;
}
.feature-list li:last-child { border-bottom: none; padding-bottom: 0; }
.feature-list li::before {
    content: '✦';
    color: var(--accent);
    font-size: 0.8rem;
    margin-top: 2px;
    text-shadow: 0 0 6px var(--accent-glow);
    flex-shrink: 0;
}

/* ======================== DOWNLOAD CARD (sidebar) ======================== */
.dl-card {
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: var(--r-lg);
    padding: 24px 20px;
    backdrop-filter: blur(var(--blur));
    box-shadow: 0 0 30px var(--accent-soft);
}

.dl-card__head {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    text-align: center;
    margin-bottom: 8px;
}

.dl-card__stars {
    display: flex;
    justify-content: center;
    gap: 2px;
    margin-bottom: 16px;
}

.dl-card .btn { margin-bottom: 16px; position: relative; }

.dl-card__meta { display: flex; flex-direction: column; }
.dl-card__row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.82rem;
}
.dl-card__row:last-child { border-bottom: none; }
.dl-card__row span:first-child { color: var(--text-3); }
.dl-card__row span:last-child { font-weight: 600; }

.dl-card__note {
    margin-top: 14px;
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-3);
    font-style: italic;
}

/* ======================== REVIEWS ======================== */
.review {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}
.review:last-of-type { border-bottom: none; }

.review__avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--accent-soft);
    border: 1px solid var(--border-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.78rem;
    color: var(--accent);
    flex-shrink: 0;
}

.review__body { flex-grow: 1; min-width: 0; }
.review__head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}
.review__head strong { font-size: 0.85rem; }
.review__head time {
    font-size: 0.7rem;
    color: var(--text-3);
    font-family: 'JetBrains Mono', monospace;
}
.review__body p {
    font-size: 0.84rem;
    color: var(--text-2);
    line-height: 1.55;
}

/* Review form */
.review-form {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.review-form__title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
}

.review-form input,
.review-form textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    color: var(--text);
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    resize: vertical;
}
.review-form input::placeholder,
.review-form textarea::placeholder { color: var(--text-3); }
.review-form input:focus,
.review-form textarea:focus {
    border-color: var(--border-accent);
    box-shadow: 0 0 12px var(--accent-soft);
}
.review-form textarea { min-height: 90px; }
.review-form .btn { align-self: flex-start; }

/* ======================== MOBILE DOWNLOAD BAR ======================== */
.mobile-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 999;
    background: rgba(3,3,3,0.96);
    border-top: 1px solid var(--border-accent);
    backdrop-filter: blur(16px);
    padding: 10px 16px;
    transform: translateY(100%);
    transition: transform 0.4s var(--ease);
}
.mobile-bar.is-visible { transform: translateY(0); }

.mobile-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.mobile-bar__info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.mobile-bar__info strong {
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mobile-bar__info span {
    font-size: 0.65rem;
    color: var(--text-3);
}

/* ======================== MODAL ======================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-modal);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s, visibility 0.35s;
}
.modal-overlay.is-active { opacity: 1; visibility: visible; }

.modal-box {
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: var(--r-xl);
    padding: 36px 24px;
    max-width: 420px;
    width: 92%;
    text-align: center;
    box-shadow: 0 0 60px var(--accent-soft);
    transform: scale(0.93) translateY(16px);
    transition: transform 0.45s var(--ease);
}
.modal-overlay.is-active .modal-box {
    transform: scale(1) translateY(0);
}

.modal-box__title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 6px;
}
.modal-box__sub {
    font-size: 0.82rem;
    color: var(--text-2);
    margin-bottom: 28px;
}

.progress-wrap { margin-bottom: 20px; }
.progress-track {
    width: 100%; height: 5px;
    background: rgba(255,255,255,0.06);
    border-radius: var(--r-full);
    overflow: hidden;
}
.progress-fill {
    height: 100%; width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent-dim));
    border-radius: var(--r-full);
    box-shadow: 0 0 10px var(--accent-glow);
    transition: width 0.4s ease;
}
.progress-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--accent);
    margin-top: 12px;
    min-height: 18px;
}

.modal-unlock { display: none; }
.modal-unlock.is-visible {
    display: block;
    animation: fadeUp 0.5s var(--ease) both;
}
.modal-unlock p {
    font-size: 0.82rem;
    color: var(--text-2);
    margin-bottom: 20px;
}

.btn-unlock {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #000;
    background: var(--accent);
    border: none;
    border-radius: var(--r-full);
    padding: 16px 36px;
    cursor: pointer;
    animation: pulse 2s ease-in-out infinite;
    transition: transform 0.3s var(--ease), box-shadow 0.3s;
    text-decoration: none;
}
.btn-unlock:hover { transform: scale(1.05); box-shadow: 0 0 50px var(--accent-hard); }

.modal-close {
    position: absolute;
    top: 12px; right: 16px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-3);
    cursor: pointer;
    transition: color 0.3s;
    z-index: 10;
}
.modal-close:hover { color: var(--text); }

/* ======================== TOAST ======================== */
.toast {
    position: fixed;
    bottom: 24px; right: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: var(--r-md);
    padding: 14px 20px;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 600;
    box-shadow: 0 0 24px var(--accent-soft);
    backdrop-filter: blur(12px);
    z-index: 10000;
    transform: translateX(120%);
    transition: transform 0.45s var(--ease);
}
.toast.is-visible { transform: translateX(0); }

/* ======================== FAB (scroll-to-top) ======================== */
.fab {
    position: fixed;
    bottom: 24px; right: 16px;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    color: var(--accent);
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 998;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(12px);
    box-shadow: 0 0 16px var(--accent-soft);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: all 0.4s var(--ease);
}
.fab.is-visible {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.fab:hover {
    background: var(--accent-soft);
    box-shadow: 0 0 24px var(--accent-glow);
}

/* ======================== ERROR PAGE ======================== */
.error-page {
    text-align: center;
    padding: calc(var(--nav-h) + 80px) 0 80px;
}
.error-page__code {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 5rem;
    color: var(--accent);
    text-shadow: 0 0 40px var(--accent-glow);
    line-height: 1;
    margin-bottom: 12px;
}
.error-page__msg {
    font-size: 1rem;
    color: var(--text-2);
    margin-bottom: 28px;
}

/* ======================== FOOTER ======================== */
.footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px 0 32px;
    border-top: 1px solid var(--border);
}

.footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.footer__brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1rem;
}

.footer__copy {
    font-size: 0.7rem;
    color: var(--text-3);
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.5px;
}
.footer__copy a {
    color: var(--accent);
    transition: text-shadow 0.3s;
}
.footer__copy a:hover { text-shadow: 0 0 8px var(--accent-glow); }

/* ======================== ANIMATIONS ======================== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ==========================================================
   RESPONSIVE — MOBILE-FIRST (min-width = scale UP)
   ========================================================== */

/* ---- TABLET (≥600px) ---- */
@media (min-width: 600px) {
    .container { padding: 0 24px; }

    .card {
        padding: 12px;
    }

    .grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }

    .steps__grid {
        flex-direction: row;
    }

    .steps--footer .step {
        flex-direction: column;
        text-align: center;
    }

    .hero__btns {
        flex-direction: row;
    }

    .hero__title {
        font-size: 2.2rem;
    }

    .hero__body {
        padding: 40px 20px 36px;
    }

    .hero__sub {
        font-size: 0.88rem;
    }

    .card__body {
        padding: 2px 0 0;
    }

    .card__title {
        font-size: 0.85rem;
    }

    .card__desc {
        display: -webkit-box;
        font-size: 0.72rem;
        color: var(--text-2);
        line-height: 1.4;
        margin-bottom: 6px;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .tag {
        font-size: 0.55rem;
    }

    .card__cta {
        display: flex;
        font-family: 'JetBrains Mono', monospace;
        font-size: 0.6rem;
        font-weight: 700;
        color: var(--accent);
        text-transform: uppercase;
        letter-spacing: 1px;
        align-items: center;
        gap: 4px;
        margin-top: auto;
    }

    .section-heading {
        font-size: 1.35rem;
    }

    .section-sub {
        font-size: 0.82rem;
        margin-bottom: 24px;
    }

    .game-hero__row {
        flex-direction: row;
        align-items: flex-end;
    }

    .game-hero__cover {
        width: 130px;
        height: 130px;
    }

    .game-hero__title {
        font-size: 1.5rem;
    }

    .navbar__count {
        display: block;
    }
}

/* ---- DESKTOP (≥900px) ---- */
@media (min-width: 900px) {
    :root {
        --nav-h: 64px;
    }

    .grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }

    .hero {
        min-height: 85vh;
    }

    .hero__body {
        padding: 64px 24px 56px;
    }

    .hero__title {
        font-size: 2.8rem;
    }

    .hero__sub {
        font-size: 0.92rem;
        line-height: 1.65;
    }

    .catalog {
        padding: 40px 0 56px;
    }

    .card__body {
        padding: 4px 0 0;
    }

    .card__title {
        font-size: 0.9rem;
    }

    .card__desc {
        font-size: 0.76rem;
        line-height: 1.5;
    }

    .tag {
        font-size: 0.56rem;
    }

    .section-heading {
        font-size: 1.4rem;
    }

    .section-sub {
        font-size: 0.85rem;
        margin-bottom: 32px;
    }

    .game-hero {
        min-height: 380px;
        margin-left: 24px;
        margin-right: 24px;
    }

    .game-hero__body {
        padding: 36px 32px;
    }

    .game-hero__cover {
        width: 160px;
        height: 160px;
    }

    .game-hero__title {
        font-size: 1.8rem;
    }

    .panel {
        padding: 32px 28px;
    }

    .game-grid-layout {
        flex-direction: row;
    }

    .game-grid-layout__main {
        flex: 1;
    }

    .game-grid-layout__side {
        width: 340px;
        flex-shrink: 0;
        position: sticky;
        top: calc(var(--nav-h) + 24px);
    }

    .card {
        padding: 14px;
    }

    .mobile-bar {
        display: none !important;
    }
}

/* ---- LARGE (≥1100px) ---- */
@media (min-width: 1100px) {
    .grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 22px;
    }

    .hero__title {
        font-size: 3.2rem;
    }

    .game-hero__title {
        font-size: 2rem;
    }
}
