/* ==========================================================================
   BlaqBit Games — Shared Base Styles
   Tokens, reset, header/footer, and reusable components.
   Loaded on every page. Page-specific styles live in their own file.
   ========================================================================== */

:root {
    color-scheme: dark;

    /* Dark Cozy Color Palette */
    --bg-primary: #1a1625;
    --bg-surface: #25212f;
    --bg-surface-elevated: #302b3d;
    --border-subtle: rgba(199, 125, 255, 0.1);
    --border-highlight: rgba(199, 125, 255, 0.2);

    /* Accent Colors - Playful & Warm */
    --accent-primary: #c77dff;
    --accent-secondary: #ffa94d;
    --accent-tertiary: #7bed9f;
    --accent-pink: #ff6b9d;
    --accent-blue: #c77dff;
    --accent-amber: #ffa94d;
    --accent-itch: #fa5c5c;

    /* Text Colors */
    --text-primary: #f0e9ff;
    --text-secondary: #b8adc7;
    --text-muted: #8a7f99;

    /* Shadows & Glows */
    --border-soft: rgba(199, 125, 255, 0.15);
    --shadow-glow: 0 8px 32px rgba(199, 125, 255, 0.2);
    --shadow-float: 0 12px 48px rgba(0, 0, 0, 0.4);

    /* Spacing Scale */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 40px;
    --space-xl: 64px;
    --space-2xl: 96px;
    --space-3xl: 128px;

    /* Animation Easing */
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth: cubic-bezier(0.4, 0.0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --ease-out: cubic-bezier(0.33, 1, 0.68, 1);

    /* Typography */
    --font-display: 'Fredoka', 'Nunito', 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --sans: var(--font-body);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    min-height: 100%;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.75;
    transition: background-color 400ms var(--ease-smooth), color 400ms var(--ease-smooth);
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 3px;
    border-radius: 4px;
}

.wrapper {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ---------- Header / Nav ---------- */
header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(26, 22, 37, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: none;
    opacity: 1;
    pointer-events: all;
    transition: background-color 300ms var(--ease-smooth),
                border-color 300ms var(--ease-smooth),
                box-shadow 300ms var(--ease-smooth);
}

header.is-scrolled {
    background: rgba(26, 22, 37, 0.92);
    border-bottom-color: rgba(199, 125, 255, 0.2);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

header.visible,
header.initial {
    opacity: 1;
    pointer-events: all;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 0 var(--space-md);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
}

.brand-logo {
    width: 32px;
    height: 32px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-highlight);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out);
}

.brand-logo:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-glow);
}

.brand-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    list-style: none;
}

.nav-links a {
    position: relative;
    text-decoration: none;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 400ms var(--ease-smooth);
}

.nav-links a.active {
    color: var(--text-primary);
}

.nav-links a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -4px;
    height: 2px;
    background: var(--accent-primary);
    transition: right 400ms var(--ease-out);
}

.nav-links a:not(.nav-cta):hover::after,
.nav-links a.active::after {
    right: 0;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-cta {
    background: var(--bg-surface-elevated);
    color: var(--text-primary) !important;
    padding: 8px 18px;
    border-radius: 50px;
    border: 1px solid var(--border-highlight);
    transition: border-color 400ms var(--ease-smooth), background-color 400ms var(--ease-smooth), transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out);
}

.nav-cta:hover {
    border-color: var(--accent-primary);
    background: var(--bg-surface);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* ---------- Hero (shared skeleton) ---------- */
.hero {
    padding: 120px 0 80px;
    text-align: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(199, 125, 255, 0.12);
    border: 1px solid rgba(199, 125, 255, 0.28);
    border-radius: 9999px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 24px;
    animation: float 3s ease-in-out infinite;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-primary);
    flex-shrink: 0;
    animation: pulse 2s ease-in-out infinite;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.hero p {
    max-width: 600px;
    margin: 0 auto 32px;
    color: var(--text-secondary);
    font-size: clamp(1rem, 1.8vw, 1.125rem);
    line-height: 1.7;
}

/* One quiet entrance for the hero block only — not repeated per-section. */
.hero-animate {
    animation: fadeInUp 0.8s var(--ease-smooth) both;
}

/* Entrance animations */
.reveal-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 600ms var(--ease-smooth), transform 600ms var(--ease-smooth);
}

.reveal-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Buttons & Status ---------- */
.btn-play {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent-secondary);
    color: #1a1105;
    padding: 12px 24px;
    border-radius: 50px;
    border: none;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 400ms var(--ease-smooth);
    position: relative;
    overflow: hidden;
}

.btn-play::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.btn-play:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-glow);
    background: #ffb366;
}

.btn-play:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-itch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent-itch);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 50px;
    border: none;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 400ms var(--ease-smooth);
    position: relative;
    overflow: hidden;
}

.btn-itch:hover {
    transform: translateY(-3px) scale(1.05);
    background: #ff6b6b;
    box-shadow: 0 10px 30px rgba(250, 92, 92, 0.4);
}

.btn-itch:active {
    transform: translateY(-1px) scale(0.98);
}

.text-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-highlight);
    transition: all 300ms var(--ease-smooth);
}

.text-link:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--text-secondary);
    padding: 12px 20px;
    border-radius: 50px;
    border: 1px solid var(--border-highlight);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 400ms var(--ease-smooth);
}

.btn-secondary:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: all 300ms var(--ease-smooth);
}

.pill:hover {
    border-color: var(--border-highlight);
    transform: translateY(-1px);
}

.status-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-dot.live {
    background: var(--accent-secondary);
    box-shadow: 0 0 8px var(--accent-secondary);
    animation: pulse 2s ease-in-out infinite;
}

.status-dot.progress {
    background: var(--accent-primary);
}

/* ---------- Section header ---------- */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 48px;
}

.section-header h3 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.2;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

/* ---------- Card grid (pillars / feature cards) ---------- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
}

.pillar-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-top: 3px solid var(--accent-primary);
    border-radius: 16px;
    padding: 32px 24px;
    transition: all 400ms var(--ease-smooth);
    position: relative;
}

.pillar-card:hover {
    transform: translateY(-4px) rotate(0.5deg);
    box-shadow: var(--shadow-float);
    border-top-color: var(--accent-secondary);
}

.pillar-card h4 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.pillar-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.65;
}

/* ---------- Game card (used on the homepage listing) ---------- */
.game-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 40px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
    box-shadow: var(--shadow-float);
    transition: all 400ms var(--ease-smooth);
    position: relative;
    overflow: hidden;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(199, 125, 255, 0.08), transparent 50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 400ms var(--ease-smooth);
}

.game-card:hover::before {
    opacity: 1;
}

.game-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow), var(--shadow-float);
}

.game-card--wip {
    border-style: dashed;
    box-shadow: none;
}

.game-info h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.8vw, 2rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

.game-info p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 24px;
    line-height: 1.7;
}

.game-card--wip .game-info p {
    margin-bottom: 0;
}

.feature-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.game-visual {
    display: flex;
    justify-content: center;
    animation: float 4s ease-in-out infinite;
}

/* ---------- Puzzle grid diagram (reused across pages) ---------- */
.puzzle-box {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-highlight);
    border-radius: 12px;
    padding: 20px;
    width: 100%;
    max-width: 300px;
    box-shadow: var(--shadow-float);
    transition: all 400ms var(--ease-smooth);
}

.puzzle-box:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-glow), var(--shadow-float);
}

.puzzle-box--wip {
    border-style: dashed;
    box-shadow: none;
}

.puzzle-meta {
    display: flex;
    justify-content: space-between;
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 14px;
}

.puzzle-matrix {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    aspect-ratio: 1;
}

.cell {
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--mono);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: all 300ms var(--ease-smooth);
}

.cell:hover {
    transform: scale(1.05);
    border-color: var(--border-highlight);
}

.cell.boxed-amber {
    background: rgba(255, 169, 77, 0.2);
    border: 1.5px solid var(--accent-secondary);
    color: var(--accent-secondary);
}

.cell.boxed-blue {
    background: rgba(199, 125, 255, 0.2);
    border: 1.5px solid var(--accent-primary);
    color: var(--accent-primary);
}

.cell.wip-cell {
    background: transparent;
    border: 1.5px dashed var(--border-highlight);
}

/* One-time reveal for grid cells on load — not a looping animation. */
.puzzle-animate .cell {
    animation: cellPop 0.6s var(--ease-bounce) both;
    animation-delay: calc(0.2s + var(--i) * 30ms);
}

/* ---------- Footer ---------- */
footer {
    margin-top: auto;
    border-top: 1px solid var(--border-subtle);
    background: rgba(26, 22, 37, 0.6);
    padding: 48px 0 28px;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: var(--space-md);
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-subtle);
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 260px;
    margin-top: 8px;
    line-height: 1.6;
}

.footer-links-group {
    display: flex;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.footer-links-group h5 {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.footer-links-group ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links-group a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 300ms var(--ease-smooth);
}

.footer-links-group a:hover {
    color: var(--accent-primary);
    transform: translateX(3px);
}

.muted-item {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-bottom {
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.8rem;
}

/* ---------- Motion ---------- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes cellPop {
    from { opacity: 0; transform: scale(0.85); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.15); }
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 0.6;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(-20px); }
}

@keyframes staggerFade {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Morphing button effect */
.btn-play.morphing-effect,
.btn-itch.morphing-effect,
.btn-secondary.morphing-effect,
.nav-cta.morphing-effect,
.preview-tab-btn.morphing-effect {
    animation: buttonMorph 0.4s var(--ease-bounce) both;
}

/* Star particle effects on scroll threshold */
.header-particles {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    overflow: visible;
    pointer-events: none;
    z-index: 101;
}

.star-particle {
    position: absolute;
    bottom: -2px;
    background: radial-gradient(circle, var(--accent-primary) 0%, rgba(199, 125, 255, 0.4) 60%, transparent 100%);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
}

@keyframes buttonMorph {
    0% {
        transform: scale(1) translateY(0);
        box-shadow: 0 0 0 rgba(199, 125, 255, 0);
    }
    50% {
        transform: scale(0.95) translateY(-3px);
        box-shadow: 0 8px 25px rgba(199, 125, 255, 0.5);
    }
    100% {
        transform: scale(1) translateY(0);
        box-shadow: 0 4px 15px rgba(199, 125, 255, 0.3);
    }
}

@keyframes starBurstDown {
    0% {
        opacity: 0;
        transform: translateY(-2px) scale(0.3);
    }
    30% {
        opacity: 0.9;
        transform: translateY(4px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(16px) scale(0.2);
    }
}

@keyframes starBurstUp {
    0% {
        opacity: 0;
        transform: translateY(6px) scale(0.3);
    }
    30% {
        opacity: 0.9;
        transform: translateY(-2px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-14px) scale(0.2);
    }
}

/* Floating utility */
.float-element {
    animation: float 4s ease-in-out infinite;
}

/* Reveal on scroll utility */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 600ms var(--ease-smooth), transform 600ms var(--ease-smooth);
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-item > *:nth-child(1) { animation-delay: 0.1s; }
.reveal-item > *:nth-child(2) { animation-delay: 0.2s; }
.reveal-item > *:nth-child(3) { animation-delay: 0.3s; }
.reveal-item > *:nth-child(4) { animation-delay: 0.4s; }
.reveal-item > *:nth-child(5) { animation-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    .star-particle,
    .header-particles {
        animation: none !important;
        display: none !important;
    }
}

/* ---------- Legal Prose (Privacy Policy & Terms) ---------- */
.legal-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 50px 0 80px;
}

.legal-header {
    margin-bottom: 36px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-subtle);
}

.legal-header h1 {
    font-family: var(--mono);
    font-size: clamp(1.8rem, 3.5vw, 2.3rem);
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.25;
}

.legal-meta {
    font-family: var(--mono);
    font-size: 0.82rem;
    color: var(--text-muted);
}

.legal-content {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.75;
}

.legal-content h2 {
    font-family: var(--mono);
    font-size: 1.2rem;
    color: var(--text-primary);
    margin: 36px 0 12px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.legal-content h3 {
    font-family: var(--mono);
    font-size: 1.02rem;
    color: var(--text-primary);
    margin: 22px 0 8px;
}

.legal-content p {
    margin-bottom: 16px;
}

.legal-content ul, .legal-content ol {
    margin: 12px 0 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legal-content li {
    padding-left: 4px;
}

.legal-content strong {
    color: var(--text-primary);
}

.legal-content a {
    color: var(--accent-blue);
    text-decoration: none;
    border-bottom: 1px solid rgba(91, 155, 217, 0.35);
    transition: border-color 0.2s var(--ease);
}

.legal-content a:hover {
    border-color: var(--accent-blue);
}

/* Mobile Hamburger Toggle */
.mobile-menu-btn {
    display: none;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-highlight);
    border-radius: 50px;
    color: var(--text-primary);
    padding: 8px 16px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    align-items: center;
    justify-content: center;
    transition: all 300ms var(--ease-smooth);
}

.mobile-menu-btn:hover {
    background: var(--bg-surface);
    transform: scale(1.05);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .hero {
        padding: 80px 0 60px;
    }

    .game-card {
        grid-template-columns: 1fr;
        padding: 28px;
        gap: 24px;
    }

    .game-visual {
        order: -1;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 12px);
        left: 0;
        right: 0;
        background: rgba(26, 22, 37, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid var(--border-soft);
        border-radius: 16px;
        flex-direction: column;
        padding: 20px;
        gap: 12px;
        box-shadow: var(--shadow-float);
        z-index: 100;
        animation: slideIn 400ms var(--ease-smooth);
    }

    .nav-links.nav-open {
        display: flex;
    }

    header {
        position: sticky;
        top: 0;
        left: 0;
        width: 100%;
        opacity: 1;
        pointer-events: all;
    }
}

/* ---------- Breadcrumb Navigation ---------- */
.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 16px 0 8px;
    margin: 0;
}

.breadcrumb li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb li:not(:last-child)::after {
    content: '/';
    color: var(--text-muted);
    opacity: 0.5;
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 200ms var(--ease-smooth);
}

.breadcrumb a:hover {
    color: var(--accent-primary);
}

.breadcrumb [aria-current="page"] {
    color: var(--text-primary);
    font-weight: 500;
}
