/* ==============================================
   WINFLOW PREMIUM EFFECTS - AAA VISUAL SYSTEM
   Motion Design + 3D Depth + Micro-interactions
   ============================================== */

/* ---------------------------------------------
   GLOBAL 3D DEPTH ENHANCEMENTS
   --------------------------------------------- */

/* Deeper, more cinematic background */
body {
    background: 
        radial-gradient(ellipse 100% 100% at 50% 0%, rgba(0, 20, 40, 0.3) 0%, transparent 50%),
        linear-gradient(180deg, #010103 0%, #030308 50%, #020205 100%);
}

/* Enhanced vignette for cinematic feel */
.bg-vignette {
    background: radial-gradient(
        ellipse 70% 50% at center,
        transparent 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
}

/* Stronger grid perspective */
.bg-grid-3d {
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    transform: perspective(400px) rotateX(65deg) translateY(-30%);
    opacity: 0.6;
}

/* ---------------------------------------------
   PAGE TRANSITIONS - NEXT.JS FEEL
   --------------------------------------------- */

.page {
    transform-origin: center center;
    transition: 
        opacity 500ms cubic-bezier(.2,.8,.2,1),
        transform 500ms cubic-bezier(.2,.8,.2,1),
        filter 500ms cubic-bezier(.2,.8,.2,1),
        visibility 0ms 500ms;
    filter: blur(0px);
}

.page:not(.active) {
    opacity: 0;
    transform: scale(0.96) translateY(30px);
    filter: blur(8px);
}

.page.active {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0px);
    transition: 
        opacity 500ms cubic-bezier(.2,.8,.2,1),
        transform 500ms cubic-bezier(.2,.8,.2,1),
        filter 500ms cubic-bezier(.2,.8,.2,1),
        visibility 0ms;
}

/* Staggered children animation */
.page.active .format-card-3d {
    animation: cardReveal 600ms cubic-bezier(.2,.8,.2,1) backwards;
}

.page.active .format-card-3d:nth-child(1) { animation-delay: 100ms; }
.page.active .format-card-3d:nth-child(2) { animation-delay: 150ms; }
.page.active .format-card-3d:nth-child(3) { animation-delay: 200ms; }
.page.active .format-card-3d:nth-child(4) { animation-delay: 250ms; }
.page.active .format-card-3d:nth-child(5) { animation-delay: 300ms; }

@keyframes cardReveal {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.9) rotateX(10deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotateX(0deg);
    }
}

/* ---------------------------------------------
   COMPETITIONS PAGE - PREMIUM HEADER
   --------------------------------------------- */

.competitions-page {
    padding-top: var(--space-xl);
    perspective: 1200px;
}

.competitions-header {
    position: relative;
    text-align: center;
    margin-bottom: var(--space-2xl);
    padding: var(--space-xl) 0;
}

.competitions-header .header-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 150px;
    background: radial-gradient(ellipse, rgba(0, 212, 255, 0.15) 0%, transparent 70%);
    filter: blur(40px);
    pointer-events: none;
}

.competitions-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    font-family: var(--font-display);
    font-size: clamp(32px, 8vw, 48px);
    font-weight: 900;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-sm);
}

.competitions-title .title-icon {
    font-size: 0.9em;
    animation: trophyFloat 3s ease-in-out infinite;
}

@keyframes trophyFloat {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-8px) rotate(5deg); }
}

.competitions-title .title-text {
    background: linear-gradient(135deg, var(--cyan) 0%, var(--magenta) 50%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 0 30px rgba(0, 212, 255, 0.5));
}

.competitions-subtitle {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
}

/* ---------------------------------------------
   FORMAT CARDS SHOWCASE - 3D GRID
   --------------------------------------------- */

.formats-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    max-width: 1400px;
    margin: 0 auto var(--space-2xl);
    padding: 0 var(--space-md);
    perspective: 1000px;
}

@media (min-width: 1200px) {
    .formats-showcase {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 768px) {
    .formats-showcase {
        grid-template-columns: 1fr;
        max-width: 380px;
    }
}

/* ---------------------------------------------
   FORMAT CARD 3D - PREMIUM COMPONENT
   --------------------------------------------- */

.format-card-3d {
    position: relative;
    border-radius: var(--radius-xl);
    background: linear-gradient(145deg, rgba(15, 15, 25, 0.9) 0%, rgba(8, 8, 15, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
    cursor: pointer;
    transform-style: preserve-3d;
    transform: translateZ(0);
    transition: all 400ms cubic-bezier(.2,.8,.2,1);
    min-height: 380px;
}

/* Depth layer (shadow beneath) */
.format-card-3d .card-depth-layer {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.5),
        0 20px 80px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: box-shadow 400ms cubic-bezier(.2,.8,.2,1);
}

/* Glow layer (colored halo) */
.format-card-3d .card-glow-layer {
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: radial-gradient(
        ellipse 80% 50% at 50% 100%,
        var(--glow-color, rgba(0, 212, 255, 0.2)) 0%,
        transparent 60%
    );
    opacity: 0.3;
    transition: opacity 400ms ease;
    pointer-events: none;
}

/* Content container */
.format-card-3d .card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-xl) var(--space-lg);
    text-align: center;
    height: 100%;
}

/* Shine effect (specular highlight) */
.format-card-3d .card-shine {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.02) 50%,
        transparent 100%
    );
    pointer-events: none;
    opacity: 0.6;
    transition: opacity 300ms ease;
}

/* Hover state - 3D lift */
.format-card-3d:hover {
    transform: translateY(-8px) translateZ(20px) scale(1.02);
}

.format-card-3d:hover .card-depth-layer {
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 40px 100px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.format-card-3d:hover .card-glow-layer {
    opacity: 0.6;
}

.format-card-3d:hover .card-shine {
    opacity: 1;
}

/* Active state - pressed */
.format-card-3d:active {
    transform: translateY(-2px) translateZ(5px) scale(0.98);
    transition: all 100ms ease;
}

/* ---------------------------------------------
   CARD STATUS BADGES
   --------------------------------------------- */

.format-card-3d .card-status {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-status.live {
    background: rgba(0, 255, 136, 0.15);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: var(--green);
}

.card-status.live .status-dot {
    width: 6px;
    height: 6px;
    background: var(--green);
    border-radius: 50%;
    animation: statusPulse 1.5s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.card-status.locked {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

.card-status.event {
    background: rgba(255, 51, 102, 0.15);
    border: 1px solid rgba(255, 51, 102, 0.3);
    color: var(--red);
    animation: eventGlow 2s ease-in-out infinite;
}

@keyframes eventGlow {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 51, 102, 0.3); }
    50% { box-shadow: 0 0 20px rgba(255, 51, 102, 0.5); }
}

/* Popular/Event badges */
.card-badge {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.card-badge.popular {
    background: linear-gradient(135deg, var(--gold) 0%, #ff8800 100%);
    color: var(--bg-void);
    box-shadow: 0 4px 15px rgba(255, 200, 0, 0.4);
}

.card-badge.event {
    background: linear-gradient(135deg, var(--red) 0%, var(--magenta) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 51, 102, 0.4);
    animation: badgeShine 3s ease-in-out infinite;
}

@keyframes badgeShine {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3); }
}

/* ---------------------------------------------
   CARD CONTENT ELEMENTS
   --------------------------------------------- */

.card-tier {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.2em;
    margin-top: var(--space-lg);
    margin-bottom: var(--space-xs);
}

.card-name {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: var(--space-xs);
    background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Format-specific colors */
[data-format="A20"] .card-name { filter: drop-shadow(0 0 20px rgba(0, 255, 136, 0.5)); }
[data-format="A50"] .card-name { filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.5)); }
[data-format="A100"] .card-name { filter: drop-shadow(0 0 20px rgba(153, 102, 255, 0.5)); }
[data-format="A500"] .card-name { filter: drop-shadow(0 0 20px rgba(255, 200, 0, 0.5)); }
[data-format="A1000"] .card-name { filter: drop-shadow(0 0 20px rgba(255, 51, 102, 0.5)); }

.card-arena-name {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

/* Prize display */
.card-prize {
    display: flex;
    align-items: baseline;
    gap: var(--space-xs);
    margin-bottom: var(--space-sm);
}

.card-prize .prize-icon {
    font-size: 20px;
}

.card-prize .prize-amount {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--gold);
    text-shadow: 0 0 20px rgba(255, 200, 0, 0.4);
}

.card-prize .prize-label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
}

/* Entry price */
.card-entry {
    display: flex;
    align-items: baseline;
    gap: var(--space-xs);
    margin-bottom: var(--space-lg);
    padding: var(--space-sm) var(--space-md);
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
}

.card-entry .entry-price {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.card-entry .entry-label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
}

/* Top rewards mini display */
.card-top-rewards {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.top-reward {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.top-reward .rank {
    font-size: 16px;
}

.top-reward .amount {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
}

.top-reward.gold .amount { color: var(--gold); }
.top-reward.silver .amount { color: #c0c0c0; }
.top-reward.bronze .amount { color: #cd7f32; }

/* CTA Button */
.card-cta {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    width: 100%;
    max-width: 180px;
    padding: var(--space-md) var(--space-xl);
    margin-top: auto;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    overflow: hidden;
    transition: all 300ms cubic-bezier(.2,.8,.2,1);
}

.card-cta .cta-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 300ms ease;
}

.card-cta .cta-arrow {
    transition: transform 300ms ease;
}

.card-cta:hover {
    border-color: var(--cyan);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
}

.card-cta:hover .cta-bg {
    opacity: 1;
}

.card-cta:hover .cta-arrow {
    transform: translateX(4px);
}

.card-cta.primary {
    background: linear-gradient(135deg, var(--cyan) 0%, #0099cc 100%);
    border: none;
    color: var(--bg-void);
}

.card-cta.primary:hover {
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.5);
    transform: scale(1.02);
}

/* Unlock info for locked cards */
.card-unlock-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: auto;
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    font-size: 12px;
    color: var(--text-muted);
}

/* ---------------------------------------------
   LOCKED CARDS OVERLAY
   --------------------------------------------- */

.format-card-3d.locked {
    cursor: default;
}

.format-card-3d.locked .card-content {
    opacity: 0.6;
}

.format-card-3d.locked .locked-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    z-index: 10;
    opacity: 0;
    transition: opacity 300ms ease;
}

.format-card-3d.locked:hover .locked-overlay {
    opacity: 1;
}

.locked-overlay .lock-icon {
    font-size: 48px;
    animation: lockWiggle 0.5s ease-in-out;
}

@keyframes lockWiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

/* Featured card ring */
.featured-ring {
    position: absolute;
    inset: -3px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--cyan), var(--magenta), var(--cyan));
    background-size: 200% 200%;
    z-index: -1;
    opacity: 0.6;
    animation: ringRotate 4s linear infinite;
}

@keyframes ringRotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.format-card-3d.featured {
    transform: scale(1.02);
}

.format-card-3d.featured:hover {
    transform: translateY(-12px) translateZ(30px) scale(1.05);
}

/* Event particles */
.event-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.event-particles::before,
.event-particles::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--red);
    border-radius: 50%;
    animation: particleFloat 3s ease-in-out infinite;
}

.event-particles::before {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.event-particles::after {
    bottom: 30%;
    right: 25%;
    animation-delay: 1.5s;
}

@keyframes particleFloat {
    0%, 100% { opacity: 0; transform: translateY(0) scale(0); }
    50% { opacity: 1; transform: translateY(-20px) scale(1); }
}

/* ---------------------------------------------
   FORMATS FOOTER STATS
   --------------------------------------------- */

.formats-footer {
    display: flex;
    justify-content: center;
    gap: var(--space-2xl);
    flex-wrap: wrap;
    padding: var(--space-xl);
    margin-top: var(--space-xl);
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    border-top: 1px solid var(--glass-border);
}

.footer-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
}

.footer-stat .stat-value {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.footer-stat .stat-label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-stat.highlight .stat-value {
    color: var(--gold);
    text-shadow: 0 0 30px rgba(255, 200, 0, 0.5);
}

/* ---------------------------------------------
   NAVBAR DOCK - BREATHING ANIMATION
   --------------------------------------------- */

.navbar-dock {
    animation: dockFloat 6s ease-in-out infinite;
}

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

.dock-container {
    transition: all 300ms cubic-bezier(.2,.8,.2,1);
}

/* Dock item interaction */
.dock-item {
    transition: all 200ms cubic-bezier(.2,.8,.2,1);
}

.dock-item:hover {
    transform: translateY(-4px) scale(1.05);
}

.dock-item:active {
    transform: translateY(2px) scale(0.95);
    transition: all 80ms ease;
}

.dock-item.active {
    transform: translateY(-2px);
}

.dock-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--cyan);
    border-radius: var(--radius-full);
    box-shadow: 0 0 15px var(--cyan);
}

/* Logo pulse enhancement */
.dock-logo {
    animation: logoBreathe 4s ease-in-out infinite;
}

@keyframes logoBreathe {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.03); filter: brightness(1.1); }
}

.logo-core {
    box-shadow: 
        0 0 30px var(--cyan),
        0 0 60px rgba(0, 212, 255, 0.4),
        0 0 100px rgba(0, 212, 255, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

/* ---------------------------------------------
   BUTTON MICRO-INTERACTIONS
   --------------------------------------------- */

.cta-primary,
.cta-secondary,
.btn-primary,
.btn-secondary {
    position: relative;
    overflow: hidden;
    transition: all 300ms cubic-bezier(.2,.8,.2,1);
}

.cta-primary::before,
.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 400ms ease, height 400ms ease;
}

.cta-primary:active::before,
.btn-primary:active::before {
    width: 300px;
    height: 300px;
}

.cta-primary:hover,
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 10px 30px rgba(0, 212, 255, 0.4),
        0 0 0 1px rgba(0, 212, 255, 0.3);
}

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

/* Secondary button hover */
.cta-secondary:hover,
.btn-secondary:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--cyan);
    transform: translateY(-2px);
}

/* ---------------------------------------------
   NUMBER POP ANIMATION
   --------------------------------------------- */

@keyframes numberPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.number-pop {
    animation: numberPop 200ms cubic-bezier(.2,.8,.2,1);
}

/* Score increment animation */
@keyframes scoreIncrement {
    0% { 
        transform: scale(1);
        text-shadow: 0 0 20px var(--cyan);
    }
    30% { 
        transform: scale(1.15);
        text-shadow: 0 0 40px var(--cyan), 0 0 60px var(--cyan);
    }
    100% { 
        transform: scale(1);
        text-shadow: 0 0 20px var(--cyan);
    }
}

.score-increment {
    animation: scoreIncrement 300ms cubic-bezier(.2,.8,.2,1);
}

/* ---------------------------------------------
   CARD TILT EFFECT (subtle)
   --------------------------------------------- */

.format-card-3d {
    --tilt-x: 0deg;
    --tilt-y: 0deg;
    transform: perspective(1000px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateZ(0);
}

/* Applied via JS on mousemove */

/* ---------------------------------------------
   RESPONSIVE ADJUSTMENTS
   --------------------------------------------- */

@media (max-width: 768px) {
    .competitions-title {
        font-size: 28px;
    }
    
    .formats-showcase {
        gap: var(--space-md);
    }
    
    .format-card-3d {
        min-height: 340px;
    }
    
    .card-name {
        font-size: 40px;
    }
    
    .formats-footer {
        gap: var(--space-lg);
    }
    
    .footer-stat .stat-value {
        font-size: 24px;
    }
}

/* ---------------------------------------------
   GAME HUD PREMIUM ENHANCEMENT
   --------------------------------------------- */

.game-hud {
    position: relative;
    z-index: 10;
}

/* HUD Card premium styling */
.hud-card {
    position: relative;
    background: linear-gradient(
        145deg,
        rgba(10, 10, 20, 0.85) 0%,
        rgba(5, 5, 12, 0.95) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 300ms cubic-bezier(.2,.8,.2,1);
}

.hud-card:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Score display - HERO element */
.hud-score .hud-value {
    font-size: 28px;
    font-weight: 900;
    background: linear-gradient(180deg, #fff 0%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 15px rgba(0, 212, 255, 0.5));
    transition: all 200ms ease;
}

.hud-score.score-flash .hud-value {
    filter: drop-shadow(0 0 30px rgba(0, 212, 255, 0.8)) brightness(1.3);
    transform: scale(1.1);
}

/* Combo display - color progression */
.hud-combo .hud-value {
    font-weight: 800;
    transition: all 200ms cubic-bezier(.2,.8,.2,1);
}

.hud-combo[data-combo="1"] .hud-value { color: var(--text-primary); }
.hud-combo[data-combo="2"] .hud-value { 
    color: var(--cyan); 
    text-shadow: 0 0 20px var(--cyan);
}
.hud-combo[data-combo="3"] .hud-value { 
    color: var(--magenta); 
    text-shadow: 0 0 20px var(--magenta);
    animation: comboGlow 500ms ease-in-out;
}
.hud-combo[data-combo="4"] .hud-value { 
    color: var(--gold); 
    text-shadow: 0 0 25px var(--gold);
    animation: comboGlow 500ms ease-in-out;
}
.hud-combo[data-combo="5"] .hud-value { 
    color: var(--red); 
    text-shadow: 0 0 30px var(--red);
    animation: comboGlow 500ms ease-in-out, comboPulse 1s ease-in-out infinite;
}

@keyframes comboGlow {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

@keyframes comboPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Envois display - life indicator */
.hud-envois .hud-value {
    font-weight: 700;
    transition: all 200ms ease;
}

.hud-envois.low .hud-value {
    color: var(--orange) !important;
    animation: envoisWarning 1s ease-in-out infinite;
}

.hud-envois.critical .hud-value {
    color: var(--red) !important;
    animation: envoisCritical 0.5s ease-in-out infinite;
}

@keyframes envoisWarning {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@keyframes envoisCritical {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.1); }
}

/* Lives orbs enhancement */
.life-orb {
    width: 14px;
    height: 14px;
    background: linear-gradient(145deg, var(--cyan) 0%, #0099cc 100%);
    box-shadow: 
        0 0 10px var(--cyan),
        0 0 20px rgba(0, 212, 255, 0.4),
        inset 0 2px 3px rgba(255, 255, 255, 0.4);
    transition: all 300ms cubic-bezier(.2,.8,.2,1);
}

.life-orb.lost {
    background: linear-gradient(145deg, var(--red) 0%, #990022 100%);
    opacity: 0.3;
    box-shadow: none;
    transform: scale(0.8);
}

.life-orb.losing {
    animation: lifeLose 400ms ease-out forwards;
}

@keyframes lifeLose {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(0.8); opacity: 0.3; }
}

/* Timer display */
.hud-timer .hud-value {
    font-family: var(--font-mono);
    letter-spacing: 0.05em;
}

/* ---------------------------------------------
   GAME ARENA PREMIUM
   --------------------------------------------- */

.game-wrapper {
    box-shadow: 
        0 0 0 1px rgba(0, 212, 255, 0.1),
        0 0 60px rgba(0, 0, 0, 0.6),
        0 0 100px rgba(0, 0, 0, 0.4),
        inset 0 0 80px rgba(0, 212, 255, 0.03),
        inset 0 0 150px rgba(0, 0, 0, 0.5);
}

.arena-glow {
    background: radial-gradient(
        ellipse 60% 40% at 50% 100%,
        rgba(0, 212, 255, 0.15) 0%,
        transparent 60%
    );
    animation: arenaGlowPulse 4s ease-in-out infinite;
}

@keyframes arenaGlowPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Arena corners - more visible */
.arena-corner {
    border-width: 3px;
    opacity: 0.5;
    box-shadow: 0 0 10px var(--cyan);
}

/* ---------------------------------------------
   GAME OVERLAY PREMIUM
   --------------------------------------------- */

.game-overlay {
    background: 
        radial-gradient(ellipse 50% 40% at 50% 50%, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.9) 100%);
}

.overlay-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--cyan) 0%, var(--magenta) 50%, var(--gold) 100%);
    box-shadow: 
        0 0 40px var(--cyan),
        0 0 80px rgba(0, 212, 255, 0.4),
        0 0 120px rgba(0, 212, 255, 0.2);
    animation: overlayIconPulse 2s ease-in-out infinite;
}

@keyframes overlayIconPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 40px var(--cyan), 0 0 80px rgba(0, 212, 255, 0.4);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 0 60px var(--cyan), 0 0 100px rgba(0, 212, 255, 0.5);
    }
}

.overlay-title {
    font-size: 40px;
    letter-spacing: 0.1em;
    background: linear-gradient(180deg, #fff 0%, var(--cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------------------------------------------
   GAME OVER MODAL PREMIUM
   --------------------------------------------- */

#game-over-modal .modal-content {
    background: linear-gradient(
        180deg,
        rgba(15, 15, 25, 0.98) 0%,
        rgba(8, 8, 15, 0.99) 100%
    );
    border: 1px solid rgba(0, 212, 255, 0.2);
    box-shadow: 
        0 0 0 1px rgba(0, 212, 255, 0.1),
        0 30px 80px rgba(0, 0, 0, 0.8),
        0 0 100px rgba(0, 212, 255, 0.1);
}

/* Score display - HERO */
.score-display {
    padding: var(--space-xl) 0;
}

.score-main .score-value {
    font-size: 64px;
    background: linear-gradient(180deg, #fff 0%, var(--cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 30px rgba(0, 212, 255, 0.6));
    animation: finalScoreReveal 800ms cubic-bezier(.2,.8,.2,1) forwards;
}

@keyframes finalScoreReveal {
    0% { 
        opacity: 0;
        transform: scale(0.5) translateY(20px);
        filter: blur(10px);
    }
    100% { 
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: drop-shadow(0 0 30px rgba(0, 212, 255, 0.6)) blur(0);
    }
}

.score-best .score-value {
    font-size: 32px;
    color: var(--gold);
    text-shadow: 0 0 20px rgba(255, 200, 0, 0.5);
}

.score-divider {
    background: linear-gradient(180deg, transparent 0%, var(--glass-border) 50%, transparent 100%);
}

/* Stats grid premium */
.stats-grid .stat-item {
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.03) 0%,
        rgba(0, 0, 0, 0.2) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 300ms ease;
}

.stats-grid .stat-item:hover {
    background: rgba(0, 212, 255, 0.05);
    border-color: rgba(0, 212, 255, 0.2);
}

.stats-grid .stat-val {
    font-size: 22px;
    color: var(--text-primary);
}

/* Competition result highlight */
.competition-result {
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        rgba(0, 212, 255, 0.1) 0%,
        rgba(153, 102, 255, 0.1) 100%
    );
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.competition-result::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 100%
    );
    animation: resultShine 2s ease-in-out infinite;
}

@keyframes resultShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Modal CTA buttons */
#game-over-modal .cta-primary {
    font-size: 16px;
    padding: var(--space-lg) var(--space-2xl);
    background: linear-gradient(135deg, var(--cyan) 0%, #0099cc 100%);
    box-shadow: 
        0 8px 30px rgba(0, 212, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

#game-over-modal .cta-primary:hover {
    box-shadow: 
        0 12px 40px rgba(0, 212, 255, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* ---------------------------------------------
   LEADERBOARD PREMIUM
   --------------------------------------------- */

/* Leaderboard tabs */
.leaderboard-tabs {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    padding: var(--space-sm);
    background: var(--glass-bg);
    border-radius: var(--radius-xl);
    overflow-x: auto;
}

.leaderboard-tab {
    flex-shrink: 0;
    padding: var(--space-sm) var(--space-lg);
    background: transparent;
    border: none;
    border-radius: var(--radius-lg);
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 200ms ease;
}

.leaderboard-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.leaderboard-tab.active {
    color: var(--bg-void);
    background: var(--cyan);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
}

/* Format-specific tab colors */
.leaderboard-tab[data-format="A20"].active { background: var(--green); box-shadow: 0 4px 15px rgba(0, 255, 136, 0.4); }
.leaderboard-tab[data-format="A50"].active { background: var(--cyan); }
.leaderboard-tab[data-format="A100"].active { background: var(--purple); box-shadow: 0 4px 15px rgba(153, 102, 255, 0.4); }
.leaderboard-tab[data-format="A500"].active { background: var(--gold); box-shadow: 0 4px 15px rgba(255, 200, 0, 0.4); }
.leaderboard-tab[data-format="A1000"].active { background: var(--red); box-shadow: 0 4px 15px rgba(255, 51, 102, 0.4); }

/* Leaderboard rows premium */
.leaderboard-table tr {
    transition: all 200ms ease;
}

.leaderboard-table tbody tr:hover {
    background: rgba(0, 212, 255, 0.05);
}

/* Top 3 special styling */
.leaderboard-table tbody tr:nth-child(1) {
    background: linear-gradient(90deg, rgba(255, 200, 0, 0.1) 0%, transparent 100%);
}

.leaderboard-table tbody tr:nth-child(2) {
    background: linear-gradient(90deg, rgba(192, 192, 192, 0.1) 0%, transparent 100%);
}

.leaderboard-table tbody tr:nth-child(3) {
    background: linear-gradient(90deg, rgba(205, 127, 50, 0.1) 0%, transparent 100%);
}

/* Rank badges */
.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
}

.rank-badge.gold {
    background: linear-gradient(145deg, var(--gold) 0%, #cc9900 100%);
    color: var(--bg-void);
    box-shadow: 0 4px 15px rgba(255, 200, 0, 0.4);
}

.rank-badge.silver {
    background: linear-gradient(145deg, #c0c0c0 0%, #909090 100%);
    color: var(--bg-void);
    box-shadow: 0 4px 15px rgba(192, 192, 192, 0.4);
}

.rank-badge.bronze {
    background: linear-gradient(145deg, #cd7f32 0%, #996633 100%);
    color: var(--bg-void);
    box-shadow: 0 4px 15px rgba(205, 127, 50, 0.4);
}

/* Champion badge */
.champion-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 2px 8px;
    background: linear-gradient(135deg, var(--gold) 0%, #ff8800 100%);
    border-radius: var(--radius-full);
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    color: var(--bg-void);
    text-transform: uppercase;
}

/* Rank movement indicator */
.rank-movement {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    margin-left: var(--space-sm);
}

.rank-movement.up {
    color: var(--green);
}

.rank-movement.down {
    color: var(--red);
}

.rank-movement.up::before {
    content: '▲';
    margin-right: 2px;
}

.rank-movement.down::before {
    content: '▼';
    margin-right: 2px;
}

/* ---------------------------------------------
   LEADERBOARD PAGE PREMIUM
   --------------------------------------------- */

.leaderboard-page {
    max-width: 900px;
}

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

.leaderboard-header .page-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
}

.leaderboard-header .title-icon {
    font-size: 32px;
}

.leaderboard-header .title-text {
    font-family: var(--font-display);
    font-size: clamp(28px, 6vw, 36px);
    font-weight: 800;
    background: linear-gradient(135deg, var(--cyan) 0%, var(--magenta) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Leaderboard tabs styling */
.leaderboard-tabs {
    display: flex;
    gap: var(--space-xs);
    margin-bottom: var(--space-xl);
    padding: var(--space-xs);
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-xl);
    border: 1px solid var(--glass-border);
    overflow-x: auto;
    scrollbar-width: none;
}

.leaderboard-tabs::-webkit-scrollbar {
    display: none;
}

.leaderboard-tab {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    background: transparent;
    border: none;
    border-radius: var(--radius-lg);
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 200ms cubic-bezier(.2,.8,.2,1);
    white-space: nowrap;
}

.leaderboard-tab .tab-icon {
    font-size: 12px;
}

.leaderboard-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.leaderboard-tab.active {
    color: var(--bg-void);
    background: var(--cyan);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
}

/* Format-specific colors */
.leaderboard-tab[data-format="A20"].active { 
    background: var(--green); 
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.4); 
}
.leaderboard-tab[data-format="A50"].active { 
    background: var(--cyan); 
}
.leaderboard-tab[data-format="A100"].active { 
    background: var(--purple); 
    box-shadow: 0 4px 15px rgba(153, 102, 255, 0.4); 
}
.leaderboard-tab[data-format="A500"].active { 
    background: var(--gold); 
    box-shadow: 0 4px 15px rgba(255, 200, 0, 0.4); 
}
.leaderboard-tab[data-format="A1000"].active { 
    background: var(--red); 
    box-shadow: 0 4px 15px rgba(255, 51, 102, 0.4); 
}

/* Live indicator */
.leaderboard-live-indicator {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
}

.leaderboard-live-indicator .live-dot {
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    animation: statusPulse 1.5s ease-in-out infinite;
}

.leaderboard-live-indicator .live-text {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    color: var(--green);
    letter-spacing: 0.1em;
}

/* Table styling */
.leaderboard-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 var(--space-xs);
}

.leaderboard-table th {
    padding: var(--space-sm) var(--space-md);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

.leaderboard-table th.col-rank { width: 80px; }
.leaderboard-table th.col-score { text-align: right; }
.leaderboard-table th.col-prize { text-align: right; }

.leaderboard-table td {
    padding: var(--space-md);
    background: rgba(0, 0, 0, 0.2);
    transition: all 200ms ease;
}

.leaderboard-table tr:first-child td:first-child { border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
.leaderboard-table tr:first-child td:last-child { border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
.leaderboard-table tr td:first-child { border-radius: var(--radius-md) 0 0 var(--radius-md); }
.leaderboard-table tr td:last-child { border-radius: 0 var(--radius-md) var(--radius-md) 0; }

.leaderboard-table tbody tr:hover td {
    background: rgba(0, 212, 255, 0.08);
}

/* Top 3 rows */
.leaderboard-table tr.rank-gold td {
    background: linear-gradient(90deg, rgba(255, 200, 0, 0.15) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.leaderboard-table tr.rank-silver td {
    background: linear-gradient(90deg, rgba(192, 192, 192, 0.12) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.leaderboard-table tr.rank-bronze td {
    background: linear-gradient(90deg, rgba(205, 127, 50, 0.12) 0%, rgba(0, 0, 0, 0.2) 100%);
}

/* Rank badges */
.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
}

.rank-badge.gold {
    background: linear-gradient(145deg, var(--gold) 0%, #cc9900 100%);
    color: var(--bg-void);
    box-shadow: 0 4px 15px rgba(255, 200, 0, 0.4);
}

.rank-badge.silver {
    background: linear-gradient(145deg, #e0e0e0 0%, #a0a0a0 100%);
    color: var(--bg-void);
    box-shadow: 0 4px 15px rgba(192, 192, 192, 0.4);
}

.rank-badge.bronze {
    background: linear-gradient(145deg, #cd7f32 0%, #996633 100%);
    color: var(--bg-void);
    box-shadow: 0 4px 15px rgba(205, 127, 50, 0.4);
}

.rank-number {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    padding-left: var(--space-sm);
}

/* Player name */
.player-name {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Champion badge */
.champion-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: var(--space-sm);
    padding: 2px 8px;
    background: linear-gradient(135deg, var(--gold) 0%, #ff8800 100%);
    border-radius: var(--radius-full);
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    color: var(--bg-void);
    text-transform: uppercase;
    animation: badgeGlow 2s ease-in-out infinite;
}

@keyframes badgeGlow {
    0%, 100% { box-shadow: 0 2px 10px rgba(255, 200, 0, 0.3); }
    50% { box-shadow: 0 2px 20px rgba(255, 200, 0, 0.5); }
}

/* Score cell */
.score-cell {
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 600;
    color: var(--cyan);
    text-align: right;
}

/* Prize cell */
.prize-cell {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    text-align: right;
}

.prize-cell.gold { color: var(--gold); text-shadow: 0 0 10px rgba(255, 200, 0, 0.3); }
.prize-cell.silver { color: #c0c0c0; }
.prize-cell.bronze { color: #cd7f32; }
.prize-cell.ticket { color: var(--cyan); font-size: 12px; }

/* Your rank summary */
.your-rank-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--glass-border);
}

.rank-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-md);
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-lg);
    text-align: center;
}

.rank-card .rank-label {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-xs);
}

.rank-card .rank-value {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.rank-card.highlight {
    background: rgba(255, 200, 0, 0.1);
    border: 1px solid rgba(255, 200, 0, 0.2);
}

.rank-card.highlight .rank-value {
    color: var(--gold);
    text-shadow: 0 0 20px rgba(255, 200, 0, 0.4);
}

@media (max-width: 600px) {
    .your-rank-summary {
        grid-template-columns: 1fr;
    }
    
    .leaderboard-table th,
    .leaderboard-table td {
        padding: var(--space-sm);
    }
    
    .champion-badge {
        display: none;
    }
}

/* ---------------------------------------------
   HOME PAGE - Startup Tech Feel
   --------------------------------------------- */

.hero-tagline-main {
    font-family: var(--font-display);
    font-size: clamp(24px, 5vw, 36px);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.05em;
    margin-bottom: var(--space-xs);
}

.hero-tagline-sub {
    font-size: clamp(14px, 3vw, 18px);
    color: var(--text-muted);
    margin-bottom: var(--space-xl);
}

/* Live Stats on Hero */
.hero-live-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
    padding: var(--space-md) var(--space-xl);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(10px);
}

.live-stat {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.live-indicator {
    display: flex;
    align-items: center;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    animation: statusPulse 1.5s ease-in-out infinite;
}

.live-stat .stat-value {
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 700;
    color: var(--cyan);
}

.live-stat .stat-label {
    font-size: 12px;
    color: var(--text-muted);
}

.live-stat-divider {
    width: 1px;
    height: 24px;
    background: var(--glass-border);
}

@media (max-width: 600px) {
    .hero-live-stats {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .live-stat-divider {
        width: 60%;
        height: 1px;
    }
}

/* Proof Cards - Tech Style */
.section-proof {
    padding: var(--space-2xl) 0;
}

.proof-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.proof-card {
    position: relative;
    padding: var(--space-xl);
    background: linear-gradient(145deg, rgba(10, 10, 20, 0.8) 0%, rgba(5, 5, 12, 0.9) 100%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    text-align: center;
    transition: all 300ms cubic-bezier(.2,.8,.2,1);
}

.proof-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.proof-icon-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-lg);
}

.proof-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(153, 102, 255, 0.2) 100%);
    border-radius: var(--radius-lg);
}

.proof-icon svg {
    width: 28px;
    height: 28px;
    color: var(--cyan);
}

.proof-card h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.proof-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.proof-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--radius-full);
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--cyan);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Arena Teaser Section */
.section-arenas-teaser {
    padding: var(--space-2xl) 0;
}

.arenas-mini-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-md);
    margin: var(--space-xl) 0;
}

.arena-mini-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-lg);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 200ms ease;
}

.arena-mini-card:hover {
    transform: translateY(-2px);
    border-color: var(--cyan);
}

.arena-mini-card.locked {
    opacity: 0.6;
}

.arena-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
}

.arena-badge.green { background: var(--green); color: var(--bg-void); }
.arena-badge.blue { background: var(--cyan); color: var(--bg-void); }
.arena-badge.purple { background: var(--purple); color: white; }
.arena-badge.gold { background: var(--gold); color: var(--bg-void); }

.arena-format {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
}

.arena-name {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: var(--space-xs);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 200ms ease;
}

.btn-ghost:hover {
    border-color: var(--cyan);
    color: var(--cyan);
}

/* Trust Section */
.section-trust {
    padding: var(--space-2xl) 0;
}

.trust-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin: var(--space-xl) 0;
}

.trust-link {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all 200ms ease;
}

.trust-link:hover {
    border-color: var(--cyan);
    background: rgba(0, 212, 255, 0.05);
}

.trust-icon {
    font-size: 24px;
}

.trust-text {
    display: flex;
    flex-direction: column;
}

.trust-text strong {
    font-size: 14px;
    color: var(--text-primary);
}

.trust-text small {
    font-size: 12px;
    color: var(--text-muted);
}

.trust-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: rgba(255, 200, 0, 0.05);
    border: 1px solid rgba(255, 200, 0, 0.1);
    border-radius: var(--radius-lg);
    font-size: 12px;
    color: var(--text-muted);
}

.note-icon {
    font-size: 16px;
}

/* ---------------------------------------------
   COMPETITION WINDOW STATUS
   --------------------------------------------- */

.competition-window-status {
    margin-bottom: var(--space-xl);
    padding: var(--space-md) var(--space-lg);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
}

.window-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
}

.window-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.window-timer {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.timer-icon {
    font-size: 14px;
}

.window-timer .timer-value {
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 700;
    color: var(--cyan);
}

.window-progress {
    margin-top: var(--space-sm);
}

.progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--cyan) 0%, var(--magenta) 100%);
    border-radius: var(--radius-full);
    transition: width 1s ease;
}

/* Free Entry Badge */
.card-entry.free {
    margin: var(--space-md) 0;
}

.entry-badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: linear-gradient(135deg, var(--green) 0%, #00cc6a 100%);
    border-radius: var(--radius-full);
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    color: var(--bg-void);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Players Count in Cards */
.card-players {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    margin: var(--space-sm) 0;
    font-size: 14px;
    color: var(--text-muted);
}

.players-icon {
    font-size: 14px;
}

.players-count {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--text-primary);
}

/* Dashboard Format Badge */
.dash-format {
    display: flex;
    align-items: center;
}

.format-badge {
    padding: var(--space-xs) var(--space-md);
    background: linear-gradient(135deg, var(--cyan) 0%, var(--magenta) 100%);
    border-radius: var(--radius-full);
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    color: white;
}

/* Dock badge for LIVE */
.dock-badge-live {
    position: absolute;
    top: 2px;
    right: 4px;
    padding: 2px 6px;
    background: var(--green);
    border-radius: var(--radius-full);
    font-family: var(--font-mono);
    font-size: 8px;
    font-weight: 700;
    color: var(--bg-void);
    animation: badgePop 300ms ease-out;
}

/* ---------------------------------------------
   BADGES COLLECTION
   --------------------------------------------- */

.badges-collection {
    margin-top: var(--space-xl);
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-md);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 200ms ease;
}

.badge-item:not(.locked) {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(153, 102, 255, 0.1) 100%);
    border-color: rgba(0, 212, 255, 0.3);
}

.badge-item:not(.locked):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.2);
}

.badge-item.locked {
    opacity: 0.4;
    filter: grayscale(1);
}

.badge-icon {
    font-size: 32px;
    margin-bottom: var(--space-sm);
}

.badge-name {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
}

.badges-empty {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    margin-top: var(--space-md);
}

/* ---------------------------------------------
   ANONYMOUS PLAY MODE
   --------------------------------------------- */

.anonymous-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: rgba(255, 200, 0, 0.1);
    border: 1px solid rgba(255, 200, 0, 0.2);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    font-size: 13px;
    color: var(--gold);
}

.anonymous-banner .banner-icon {
    font-size: 16px;
}

.anonymous-banner .banner-link {
    color: var(--cyan);
    text-decoration: underline;
    cursor: pointer;
}

/* Local leaderboard notice */
.local-leaderboard-notice {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-md);
    background: rgba(0, 212, 255, 0.1);
    border-radius: var(--radius-md);
    font-size: 12px;
    color: var(--cyan);
    margin-bottom: var(--space-md);
}

.local-leaderboard-notice::before {
    content: 'ℹ️';
}

/* ---------------------------------------------
   PERFORMANCE MODE - Reduced Effects
   --------------------------------------------- */

.performance-mode .bg-particles,
.performance-mode .bg-nebula,
.performance-mode .hero-orb {
    display: none !important;
}

.performance-mode * {
    animation-duration: 0ms !important;
}

.performance-mode .card-glow-layer,
.performance-mode .hud-glow {
    opacity: 0.3;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .bg-particles,
    .bg-nebula,
    .hero-orb {
        display: none !important;
    }
}
