/* ========================================
   OUTLAST TCG - Premium Experience
   ======================================== */

:root {
    --black: #000000;
    --bg-void: #030304;
    --bg-deep: #070709;
    --bg-dark: #0c0d10;
    --bg-surface: #121318;
    --bg-elevated: #1a1b22;
    --bg-hover: #22242d;
    
    --border-subtle: rgba(255, 255, 255, 0.05);
    --border-default: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);
    
    --gold: #d4a843;
    --gold-bright: #f0c14b;
    --gold-dim: #b8922e;
    --gold-glow: rgba(212, 168, 67, 0.5);
    --gold-subtle: rgba(212, 168, 67, 0.1);
    
    --horde: #34d399;
    --horde-glow: rgba(52, 211, 153, 0.4);
    --void: #a78bfa;
    --void-glow: rgba(167, 139, 250, 0.4);
    --mind: #60a5fa;
    --mind-glow: rgba(96, 165, 250, 0.4);
    --frenzy: #f87171;
    --frenzy-glow: rgba(248, 113, 113, 0.4);
    
    --white: #ffffff;
    --text-primary: #f0f0f5;
    --text-secondary: #9c9caa;
    --text-muted: #5c5c66;
    
    --font-display: 'Cinzel', Georgia, 'Times New Roman', serif;
    --font-body: 'Rajdhani', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-5xl: 8rem;
    
    --max-width: 1200px;
    --max-width-narrow: 800px;
    --nav-height: 72px;
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --duration: 0.3s;
}

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

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

body {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-void);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

::selection {
    background: var(--gold);
    color: var(--black);
}

a { color: inherit; text-decoration: none; }

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
    color: inherit;
}

ul, ol { list-style: none; }
img, video { max-width: 100%; height: auto; display: block; }

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    background: var(--gold);
    color: var(--black);
    font-weight: 600;
    border-radius: var(--radius-sm);
    z-index: 9999;
}

.skip-link:focus { top: var(--space-md); }

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.15;
    color: var(--white);
    letter-spacing: 0.01em;
}

.text-gradient {
    background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 40%, var(--gold-dim) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gold { color: var(--gold); }
.text-secondary { color: var(--text-secondary); }

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    transition: background var(--duration), border-color var(--duration);
}

.navbar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(3, 3, 4, 0.97) 0%, rgba(3, 3, 4, 0.85) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    opacity: 0;
    transition: opacity var(--duration);
}

.navbar.scrolled::before { opacity: 1; }
.navbar.scrolled { border-bottom: 1px solid var(--border-subtle); }

.nav-container {
    position: relative;
    max-width: var(--max-width);
    height: 100%;
    margin: 0 auto;
    padding: 0 var(--space-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    z-index: 1001;
}

.logo-mark {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 100%);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--black);
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--white);
}

.logo-subtitle { display: none; }

.nav-menu {
    display: none;
    align-items: center;
    gap: var(--space-xs);
}

.nav-link {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    transition: color var(--duration), background var(--duration);
}

.nav-link:hover { color: var(--white); }
.nav-link.active { color: var(--gold); }
.nav-cta { margin-left: var(--space-sm); }

.nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-right: -12px;
    z-index: 1001;
}

.hamburger {
    width: 22px;
    height: 2px;
    background: var(--white);
    position: relative;
    transition: background 0.2s;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--white);
    transition: transform 0.3s var(--ease);
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.nav-toggle.active .hamburger { background: transparent; }
.nav-toggle.active .hamburger::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active .hamburger::after { transform: translateY(-7px) rotate(-45deg); }

.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--duration), visibility var(--duration);
}

.nav-overlay.active { opacity: 1; visibility: visible; }

.nav-mobile {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 380px;
    height: 100vh;
    height: 100dvh;
    background: var(--bg-dark);
    border-left: 1px solid var(--border-subtle);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
}

.nav-mobile.active { transform: translateX(0); }

.nav-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg) var(--space-xl);
    border-bottom: 1px solid var(--border-subtle);
}

.nav-mobile-close {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    transition: color var(--duration), background var(--duration);
}

.nav-mobile-close:hover { color: var(--white); background: var(--bg-hover); }

.nav-mobile-body {
    flex: 1;
    padding: var(--space-lg);
    overflow-y: auto;
}

.nav-mobile-link {
    display: flex;
    align-items: center;
    padding: var(--space-md) var(--space-md);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    transition: color var(--duration), background var(--duration);
}

.nav-mobile-link:hover { color: var(--white); background: var(--bg-hover); }
.nav-mobile-link.active { color: var(--gold); background: var(--gold-subtle); }

.nav-mobile-footer {
    padding: var(--space-xl);
    border-top: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

@media (min-width: 1024px) {
    .nav-toggle, .nav-mobile, .nav-overlay { display: none !important; }
    .nav-menu { display: flex; }
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.8rem 1.75rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    border-radius: var(--radius-md);
    transition: all var(--duration) var(--ease);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 100%);
    color: var(--black);
    box-shadow: 0 4px 24px rgba(212, 168, 67, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--duration);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(212, 168, 67, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-primary:hover::before { opacity: 1; }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-strong);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--gold);
    color: var(--gold);
    box-shadow: 0 0 20px rgba(212, 168, 67, 0.1);
}

.btn-lg { padding: 1rem 2.5rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* ========================================
   Hero - Maximum Impact
   ======================================== */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 120% 60% at 50% -10%, rgba(212, 168, 67, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 80% 80% at 15% 100%, rgba(139, 92, 246, 0.08) 0%, transparent 45%),
        radial-gradient(ellipse 80% 80% at 85% 100%, rgba(52, 211, 153, 0.06) 0%, transparent 45%),
        radial-gradient(ellipse 50% 50% at 50% 50%, rgba(212, 168, 67, 0.04) 0%, transparent 60%);
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(212, 168, 67, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 168, 67, 0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 80% 70% at center, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at center, black 0%, transparent 70%);
}

.hero-bg-noise {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.025;
}

/* Glow orbs */
.hero::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    right: -100px;
    top: 50%;
    transform: translateY(-50%);
    background: radial-gradient(circle, rgba(212, 168, 67, 0.1) 0%, transparent 60%);
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    border-radius: 50%;
    animation: float linear infinite;
}

@keyframes float {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 1; transform: translateY(90vh) scale(1); }
    90% { opacity: 0.8; }
    100% { transform: translateY(-100px) scale(0.5); opacity: 0; }
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: calc(var(--nav-height) + var(--space-3xl)) var(--space-xl) var(--space-3xl);
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-content {
        grid-template-columns: 1.1fr 0.9fr;
        padding-top: var(--nav-height);
        padding-bottom: 0;
        min-height: 100vh;
    }
}

.hero-text { text-align: center; }

@media (min-width: 1024px) {
    .hero-text { text-align: left; }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 6px 16px;
    background: linear-gradient(135deg, rgba(212, 168, 67, 0.15) 0%, rgba(212, 168, 67, 0.05) 100%);
    border: 1px solid rgba(212, 168, 67, 0.25);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: var(--space-xl);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 8px var(--gold-glow);
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--gold-glow); }
    50% { opacity: 0.4; box-shadow: 0 0 16px var(--gold-glow); }
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 700;
    line-height: 1;
    margin-bottom: var(--space-xl);
    letter-spacing: -0.02em;
}

.hero-title-line { display: block; }

.hero-title .text-gradient {
    text-shadow: 0 0 60px rgba(212, 168, 67, 0.3);
    filter: drop-shadow(0 0 30px rgba(212, 168, 67, 0.15));
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: var(--space-2xl);
    max-width: 520px;
}

@media (min-width: 1024px) {
    .hero-description { margin-left: 0; margin-right: 0; }
}

@media (max-width: 1023px) {
    .hero-description { margin-left: auto; margin-right: auto; }
}

.hero-cta { display: flex; flex-direction: column; gap: var(--space-md); }

@media (min-width: 480px) {
    .hero-cta { flex-direction: row; justify-content: center; }
}

@media (min-width: 1024px) {
    .hero-cta { justify-content: flex-start; }
}

.hero-stats {
    display: flex;
    gap: var(--space-3xl);
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-subtle);
    justify-content: center;
}

@media (min-width: 1024px) {
    .hero-stats { justify-content: flex-start; }
}

.hero-stat { text-align: center; }
@media (min-width: 1024px) { .hero-stat { text-align: left; } }

.hero-stat-value {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: var(--space-xs);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-cards {
    position: relative;
    width: 300px;
    height: 420px;
    perspective: 1200px;
}

@media (min-width: 768px) {
    .hero-cards { width: 380px; height: 520px; }
}

.hero-card {
    position: absolute;
    width: 200px;
    height: 280px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}

@media (min-width: 768px) {
    .hero-card { width: 250px; height: 350px; }
}

.hero-card img { width: 100%; height: 100%; object-fit: cover; }

.hero-card-1 {
    left: 0;
    top: 50%;
    transform: translateY(-50%) rotate(-12deg) translateZ(0);
    z-index: 1;
    border: 2px solid var(--horde);
    box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.7), 0 0 30px -10px var(--horde-glow);
}

.hero-card-2 {
    right: 0;
    top: 50%;
    transform: translateY(-50%) rotate(12deg) translateZ(0);
    z-index: 2;
    border: 2px solid var(--void);
    box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.7), 0 0 30px -10px var(--void-glow);
}

.hero-card-3 {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) translateZ(0);
    z-index: 3;
    border: 2px solid var(--gold);
    box-shadow: 0 30px 80px -15px rgba(0, 0, 0, 0.8), 0 0 40px -10px var(--gold-glow);
}

.hero-cards:hover .hero-card-1 {
    transform: translateY(-50%) rotate(-18deg) translateX(-25px) scale(0.95);
    box-shadow: 0 25px 70px -15px rgba(0, 0, 0, 0.7), 0 0 40px -5px var(--horde-glow);
}

.hero-cards:hover .hero-card-2 {
    transform: translateY(-50%) rotate(18deg) translateX(25px) scale(0.95);
    box-shadow: 0 25px 70px -15px rgba(0, 0, 0, 0.7), 0 0 40px -5px var(--void-glow);
}

.hero-cards:hover .hero-card-3 {
    transform: translate(-50%, -55%) scale(1.08);
    box-shadow: 0 40px 100px -15px rgba(0, 0, 0, 0.8), 0 0 60px -5px var(--gold-glow);
}

.hero-card-glow {
    position: absolute;
    inset: -80px;
    background: radial-gradient(ellipse at center, var(--gold-glow) 0%, transparent 55%);
    filter: blur(50px);
    opacity: 0.5;
    z-index: 0;
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.05); }
}

/* Countdown */
.countdown-section { margin-top: var(--space-xl); }

.countdown-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
    text-align: center;
}

@media (min-width: 1024px) { .countdown-label { text-align: left; } }

.countdown-timer {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
}

@media (min-width: 1024px) {
    .countdown-timer { justify-content: flex-start; }
}

.countdown-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.countdown-value { display: flex; gap: 3px; }

.countdown-digit {
    width: 34px;
    height: 50px;
    background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-dark) 100%);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

@media (min-width: 768px) {
    .countdown-digit { width: 42px; height: 58px; font-size: 1.8rem; }
}

.countdown-unit {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-top: 6px;
}

.countdown-separator {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--gold-dim);
    align-self: flex-start;
    padding-top: 12px;
    animation: separatorBlink 2s ease-in-out infinite;
}

@keyframes separatorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ========================================
   Page Layout
   ======================================== */
.page-content { padding-top: var(--nav-height); }

.page-hero {
    padding: var(--space-5xl) var(--space-xl) var(--space-4xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 100% 70% at 50% 0%, rgba(212, 168, 67, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-void) 100%);
    z-index: 0;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--gold-dim) 50%, transparent 100%);
    opacity: 0.3;
}

.page-hero-content {
    position: relative;
    z-index: 1;
    max-width: var(--max-width-narrow);
    margin: 0 auto;
}

.page-hero h1 {
    font-size: clamp(2.25rem, 6vw, 3.5rem);
    margin-bottom: var(--space-lg);
}

.page-hero p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.container-narrow { max-width: var(--max-width-narrow); }

.section { padding: var(--space-5xl) var(--space-xl); }

.section-header { text-align: center; margin-bottom: var(--space-3xl); }

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: var(--space-md);
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: var(--space-md);
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Decorative dividers */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--border-subtle) 20%, var(--gold-dim) 50%, var(--border-subtle) 80%, transparent 100%);
    opacity: 0.5;
    margin: 0 auto;
    max-width: 600px;
}

/* ========================================
   Cards Gallery
   ======================================== */
.cards-section { padding: var(--space-4xl) var(--space-xl); }

.card-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
    margin-bottom: var(--space-3xl);
}

.filter-btn {
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-secondary);
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: 100px;
    transition: all var(--duration);
}

.filter-btn:hover { color: var(--white); border-color: var(--border-strong); }

.filter-btn.active {
    color: var(--black);
    background: var(--gold);
    border-color: var(--gold);
    box-shadow: 0 4px 16px rgba(212, 168, 67, 0.3);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    max-width: var(--max-width);
    margin: 0 auto;
}

@media (min-width: 640px) { .cards-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-xl); } }
@media (min-width: 1024px) { .cards-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1280px) { .cards-grid { grid-template-columns: repeat(5, 1fr); } }

.card-item {
    cursor: pointer;
    transition: transform 0.5s var(--ease-out);
}

.card-item:hover { transform: translateY(-16px) scale(1.03); }
.card-item.hidden { display: none; }

.card-frame {
    position: relative;
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-default);
    transition: border-color var(--duration), box-shadow 0.5s var(--ease-out);
}

.card-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.85) 100%);
    z-index: 1;
    opacity: 0;
    transition: opacity var(--duration);
}

.card-item:hover .card-frame::before { opacity: 1; }

.card-frame.horde { border-color: rgba(52, 211, 153, 0.2); }
.card-frame.horde:hover { border-color: var(--horde); box-shadow: 0 24px 80px -20px rgba(52, 211, 153, 0.35); }

.card-frame.void { border-color: rgba(167, 139, 250, 0.2); }
.card-frame.void:hover { border-color: var(--void); box-shadow: 0 24px 80px -20px rgba(167, 139, 250, 0.35); }

.card-frame.mind { border-color: rgba(96, 165, 250, 0.2); }
.card-frame.mind:hover { border-color: var(--mind); box-shadow: 0 24px 80px -20px rgba(96, 165, 250, 0.35); }

.card-frame.frenzy { border-color: rgba(248, 113, 113, 0.2); }
.card-frame.frenzy:hover { border-color: var(--frenzy); box-shadow: 0 24px 80px -20px rgba(248, 113, 113, 0.35); }

.card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 63/88;
    background: var(--bg-dark);
}

.card-image img { width: 100%; height: 100%; object-fit: cover; }

.card-skeleton {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--bg-dark) 0%, var(--bg-surface) 50%, var(--bg-dark) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-md);
    z-index: 2;
    transform: translateY(100%);
    transition: transform var(--duration) var(--ease);
}

.card-item:hover .card-info { transform: translateY(0); }

.card-name {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 2px;
}

.card-faction {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.card-frame.horde .card-faction { color: var(--horde); }
.card-frame.void .card-faction { color: var(--void); }
.card-frame.mind .card-faction { color: var(--mind); }
.card-frame.frenzy .card-faction { color: var(--frenzy); }

.no-cards-message { grid-column: 1 / -1; text-align: center; padding: var(--space-4xl); color: var(--text-muted); }
.no-cards-message.hidden { display: none; }

/* ========================================
   Content Blocks
   ======================================== */
.content-section { padding: var(--space-4xl) var(--space-xl); }

.content-grid {
    display: grid;
    gap: var(--space-xl);
    max-width: var(--max-width-narrow);
    margin: 0 auto;
}

/* Info Block - elevated design */
.info-block {
    background: linear-gradient(180deg, var(--bg-surface) 0%, rgba(18, 19, 24, 0.6) 100%);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    position: relative;
    transition: border-color var(--duration), transform var(--duration);
}

.info-block:hover {
    border-color: var(--border-strong);
    transform: translateY(-2px);
}

.info-block h2 {
    font-size: 1.25rem;
    color: var(--gold);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border-subtle);
}

.info-block p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.info-block p:last-child { margin-bottom: 0; }

.info-block ul {
    margin: var(--space-md) 0;
    padding-left: var(--space-lg);
}

.info-block li {
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
    position: relative;
    padding-left: var(--space-md);
}

.info-block li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 5px;
    height: 5px;
    background: var(--gold);
    border-radius: 50%;
}

.info-block a { color: var(--gold); transition: color var(--duration); }
.info-block a:hover { color: var(--gold-bright); }

/* Feature Card - dramatic */
.feature-card {
    background: linear-gradient(180deg, var(--bg-surface) 0%, rgba(18, 19, 24, 0.5) 100%);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    transition: border-color var(--duration), transform var(--duration), box-shadow var(--duration);
}

.feature-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-6px);
    box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.5);
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-lg);
    color: var(--gold);
}

.feature-card h3 { font-size: 1.25rem; margin-bottom: var(--space-md); }
.feature-card p { color: var(--text-secondary); line-height: 1.7; }

/* Prose */
.prose {
    max-width: var(--max-width-narrow);
    margin: 0 auto;
}

.prose h2 {
    font-size: 1.5rem;
    color: var(--gold);
    margin: var(--space-3xl) 0 var(--space-lg);
}

.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--text-secondary); line-height: 1.8; margin-bottom: var(--space-lg); }
.prose strong { color: var(--text-primary); }

.prose ul {
    margin: var(--space-lg) 0;
    padding-left: var(--space-xl);
    list-style: disc;
}

.prose li { color: var(--text-secondary); margin-bottom: var(--space-sm); line-height: 1.7; }
.prose a { color: var(--gold); transition: color var(--duration); }
.prose a:hover { color: var(--gold-bright); }

/* ========================================
   How to Play - Premium Layout
   ======================================== */

/* Quick start banner */
.rules-intro {
    max-width: var(--max-width-narrow);
    margin: 0 auto var(--space-4xl);
    text-align: center;
}

.rules-intro p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Table of contents */
.rules-toc {
    max-width: var(--max-width-narrow);
    margin: 0 auto var(--space-4xl);
    background: linear-gradient(180deg, var(--bg-surface) 0%, rgba(18, 19, 24, 0.4) 100%);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
}

.rules-toc h2 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gold);
    margin-bottom: var(--space-lg);
}

.rules-toc-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-sm);
}

@media (min-width: 640px) {
    .rules-toc-grid { grid-template-columns: 1fr 1fr; }
}

.rules-toc-link {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 600;
    transition: color var(--duration), background var(--duration);
}

.rules-toc-link:hover {
    color: var(--white);
    background: var(--bg-hover);
}

.rules-toc-num {
    width: 28px;
    height: 28px;
    background: var(--bg-hover);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gold);
    flex-shrink: 0;
}

/* Section with number */
.rules-section {
    max-width: var(--max-width-narrow);
    margin: 0 auto var(--space-4xl);
    scroll-margin-top: calc(var(--nav-height) + var(--space-xl));
}

.rules-section:last-of-type { margin-bottom: 0; }

.rules-section-header {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border-subtle);
}

.rules-section-num {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dim) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--black);
    flex-shrink: 0;
}

.rules-section-header h2 {
    font-size: 1.5rem;
    color: var(--white);
    margin: 0;
}

.rules-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.rules-section p:last-child { margin-bottom: 0; }
.rules-section strong { color: var(--text-primary); }

.rules-section ul {
    margin: var(--space-md) 0;
    padding-left: var(--space-lg);
}

.rules-section li {
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
    position: relative;
    padding-left: var(--space-md);
    line-height: 1.7;
}

.rules-section li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 5px;
    height: 5px;
    background: var(--gold);
    border-radius: 50%;
}

/* Card type cards in how to play */
.card-types-grid {
    display: grid;
    gap: var(--space-lg);
    margin: var(--space-xl) 0;
}

@media (min-width: 640px) {
    .card-types-grid { grid-template-columns: 1fr 1fr; }
}

.card-type-item {
    background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-dark) 100%);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: border-color var(--duration), transform var(--duration);
}

.card-type-item:hover {
    border-color: var(--gold-dim);
    transform: translateY(-4px);
}

.card-type-icon {
    width: 40px;
    height: 40px;
    margin-bottom: var(--space-md);
    color: var(--gold);
}

.card-type-item h3 {
    font-size: 1.1rem;
    margin-bottom: var(--space-sm);
    color: var(--gold);
}

.card-type-item p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* Turn phases visual */
.phase-list {
    margin: var(--space-xl) 0;
}

.phase-item {
    display: flex;
    gap: var(--space-lg);
    padding: var(--space-lg) 0;
    border-bottom: 1px solid var(--border-subtle);
}

.phase-item:last-child { border-bottom: none; }

.phase-num {
    width: 36px;
    height: 36px;
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gold);
    flex-shrink: 0;
}

.phase-content h3 {
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--white);
}

.phase-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Quick reference box */
.quick-ref {
    background: linear-gradient(135deg, rgba(212, 168, 67, 0.08) 0%, rgba(212, 168, 67, 0.02) 100%);
    border: 1px solid rgba(212, 168, 67, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    margin: var(--space-xl) 0;
}

.quick-ref h3 {
    font-size: 1.1rem;
    color: var(--gold);
    margin-bottom: var(--space-lg);
}

.quick-ref-grid {
    display: grid;
    gap: var(--space-md);
}

@media (min-width: 640px) {
    .quick-ref-grid { grid-template-columns: 1fr 1fr; }
}

.quick-ref-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid rgba(212, 168, 67, 0.1);
}

.quick-ref-item:last-child { border-bottom: none; }

.quick-ref-label {
    font-weight: 600;
    color: var(--text-secondary);
}

.quick-ref-value {
    font-weight: 700;
    color: var(--white);
}

/* ========================================
   World Cards
   ======================================== */
.world-grid {
    display: grid;
    gap: var(--space-lg);
}

@media (min-width: 768px) {
    .world-grid { grid-template-columns: repeat(2, 1fr); }
}

.world-card {
    background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-dark) 100%);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    transition: border-color 0.4s, transform 0.4s var(--ease-out), box-shadow 0.4s;
}

.world-card:hover {
    transform: translateY(-8px);
}

.world-card.horde { border-color: rgba(52, 211, 153, 0.2); }
.world-card.horde:hover { border-color: var(--horde); box-shadow: 0 20px 60px -20px var(--horde-glow); }

.world-card.void { border-color: rgba(167, 139, 250, 0.2); }
.world-card.void:hover { border-color: var(--void); box-shadow: 0 20px 60px -20px var(--void-glow); }

.world-card.mind { border-color: rgba(96, 165, 250, 0.2); }
.world-card.mind:hover { border-color: var(--mind); box-shadow: 0 20px 60px -20px var(--mind-glow); }

.world-card.frenzy { border-color: rgba(248, 113, 113, 0.2); }
.world-card.frenzy:hover { border-color: var(--frenzy); box-shadow: 0 20px 60px -20px var(--frenzy-glow); }

.world-card-icon { width: 48px; height: 48px; margin-bottom: var(--space-lg); }

.world-card h3 { font-size: 1.25rem; margin-bottom: var(--space-md); }
.world-card.horde h3 { color: var(--horde); }
.world-card.void h3 { color: var(--void); }
.world-card.mind h3 { color: var(--mind); }
.world-card.frenzy h3 { color: var(--frenzy); }

.world-card p { color: var(--text-secondary); line-height: 1.7; }

/* ========================================
   FAQ
   ======================================== */
.faq-list {
    max-width: var(--max-width-narrow);
    margin: 0 auto;
    display: grid;
    gap: var(--space-md);
}

.faq-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--duration);
}

.faq-item[open] { border-color: var(--border-strong); }

.faq-item summary {
    padding: var(--space-lg) var(--space-xl);
    cursor: pointer;
    font-weight: 600;
    color: var(--text-primary);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background var(--duration), color var(--duration);
}

.faq-item summary:hover { background: var(--bg-hover); }
.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-muted);
    transition: transform var(--duration), color var(--duration);
}

.faq-item[open] summary::after { transform: rotate(45deg); color: var(--gold); }

.faq-item p {
    padding: 0 var(--space-xl) var(--space-xl);
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.faq-item a { color: var(--gold); }

/* ========================================
   News Grid
   ======================================== */
.news-grid {
    display: grid;
    gap: var(--space-xl);
    max-width: var(--max-width);
    margin: 0 auto;
}

@media (min-width: 768px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .news-grid { grid-template-columns: repeat(3, 1fr); } }

.news-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color var(--duration), transform 0.4s var(--ease-out), box-shadow 0.4s;
}

.news-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-6px);
    box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.5);
}

.news-image {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-surface) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-image svg { width: 48px; height: 48px; opacity: 0.15; color: var(--gold); }

.news-content { padding: var(--space-xl); }

.news-date {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
}

.news-card h3 { font-size: 1.15rem; margin: var(--space-sm) 0 var(--space-md); }
.news-card p { color: var(--text-secondary); line-height: 1.6; }

/* ========================================
   Glossary
   ======================================== */
.glossary-list {
    max-width: var(--max-width-narrow);
    margin: 0 auto;
    display: grid;
    gap: var(--space-xl);
}

.glossary-item {
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--border-subtle);
}

.glossary-item:last-child { border-bottom: none; padding-bottom: 0; }

.glossary-term {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: var(--space-sm);
}

.glossary-definition { color: var(--text-secondary); line-height: 1.7; }

/* ========================================
   Modal
   ======================================== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--duration), visibility var(--duration);
}

.modal.active { opacity: 1; visibility: visible; }
.modal[aria-hidden="true"] { pointer-events: none; }

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    cursor: pointer;
}

.modal-content {
    position: relative;
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    max-width: 440px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.92) translateY(20px);
    transition: transform 0.4s var(--ease-out);
}

.modal.active .modal-content { transform: scale(1) translateY(0); }

.modal-close {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border-radius: var(--radius-md);
    transition: color var(--duration), background var(--duration);
}

.modal-close:hover { color: var(--white); background: var(--bg-hover); }

.modal-header { text-align: center; margin-bottom: var(--space-xl); }
.modal-title { font-size: 1.5rem; margin-bottom: var(--space-sm); }
.modal-subtitle { color: var(--text-secondary); }

.form-group { margin-bottom: var(--space-lg); }

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.form-input {
    width: 100%;
    padding: var(--space-md);
    background: var(--bg-dark);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--duration), box-shadow var(--duration);
}

.form-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-subtle);
}

.form-input::placeholder { color: var(--text-muted); }

.form-submit { width: 100%; margin-top: var(--space-md); }

.form-message { margin-top: var(--space-md); font-size: 0.9rem; text-align: center; }
.form-message.success { color: var(--horde); }
.form-message.error { color: var(--frenzy); }

/* Card Modal */
.modal-card-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    align-items: center;
    text-align: center;
}

.modal-card-image {
    width: 200px;
    aspect-ratio: 63/88;
    background: var(--bg-dark);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.6);
}

.modal-card-image img { width: 100%; height: 100%; object-fit: cover; }
.modal-card-name { font-size: 1.5rem; }

.modal-card-meta { display: flex; gap: var(--space-lg); justify-content: center; }

.modal-faction {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.modal-faction.horde { color: var(--horde); }
.modal-faction.void { color: var(--void); }
.modal-faction.mind { color: var(--mind); }
.modal-faction.frenzy { color: var(--frenzy); }

.modal-type { font-size: 0.85rem; color: var(--text-muted); }
.modal-stats { font-weight: 700; color: var(--gold); }
.modal-flavor { color: var(--text-secondary); font-style: italic; line-height: 1.7; }

@media (min-width: 640px) {
    .modal-card-content { flex-direction: row; text-align: left; align-items: flex-start; }
    .modal-card-image { flex-shrink: 0; }
    .modal-card-meta { justify-content: flex-start; }
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--border-subtle);
}

.footer-main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--space-4xl) var(--space-xl);
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
}

@media (min-width: 768px) {
    .footer-main { grid-template-columns: 2fr 1fr 1fr 2fr; }
}

.footer-brand p { color: var(--text-secondary); margin-top: var(--space-md); max-width: 280px; }

.footer-heading {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: var(--space-lg);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.footer-links { display: flex; flex-direction: column; gap: var(--space-md); }
.footer-links a { color: var(--text-secondary); transition: color var(--duration); }
.footer-links a:hover { color: var(--white); }

.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--space-xl);
    border-top: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    align-items: center;
    text-align: center;
}

@media (min-width: 640px) {
    .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}

.footer-bottom p { color: var(--text-muted); font-size: 0.85rem; }
.footer-social a { color: var(--text-secondary); transition: color var(--duration); }
.footer-social a:hover { color: var(--gold); }

/* ========================================
   Error Page
   ======================================== */
.error-page {
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
    text-align: center;
}

.error-code {
    font-family: var(--font-display);
    font-size: clamp(6rem, 20vw, 12rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    filter: drop-shadow(0 0 60px var(--gold-glow));
}

.error-title { font-size: 1.5rem; margin: var(--space-md) 0; }
.error-description { color: var(--text-secondary); margin-bottom: var(--space-2xl); }

/* ========================================
   Utilities
   ======================================== */
.hidden { display: none !important; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ========================================
   Scroll Reveal
   ======================================== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

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