/* ========================================
   RetroSix Splash Page
   Visual cues from cleanscreen.retrosix.co.uk
   ======================================== */

:root {
    /* Core palette - electric/neon retro gaming aesthetic */
    --cyan: #00acec;
    --cyan-glow: rgba(0, 172, 236, 0.4);
    --cyan-subtle: rgba(0, 172, 236, 0.1);
    --magenta: #e91e8c;
    --magenta-glow: rgba(233, 30, 140, 0.4);
    --yellow: #ffff00;
    --green: #00ff88;
    --green-glow: rgba(0, 255, 136, 0.3);

    /* Backgrounds */
    --bg-primary: #0a0a12;
    --bg-card: rgba(16, 16, 32, 0.7);
    --bg-card-hover: rgba(20, 20, 45, 0.85);

    /* Text */
    --text-primary: #f0f0f5;
    --text-secondary: rgba(240, 240, 245, 0.6);
    --text-muted: rgba(240, 240, 245, 0.35);

    /* Borders */
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(0, 172, 236, 0.3);

    /* Sizing */
    --max-width: 960px;
    --card-radius: 16px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    cursor: none !important;
}

/* Hide default cursor everywhere */
*, *::before, *::after {
    cursor: none !important;
}

/* ========== Particle Canvas ========== */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ========== CRT Scanlines Overlay ========== */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
}

/* ========== CRT Rolling Scanbar ========== */
.crt-scanbar {
    position: fixed;
    left: 0;
    right: 0;
    height: 150px;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(0, 172, 236, 0.03) 20%,
        rgba(0, 172, 236, 0.07) 50%,
        rgba(0, 172, 236, 0.03) 80%,
        transparent 100%
    );
    animation: scanbar-roll 8s linear infinite;
    filter: blur(2px);
}

.crt-scanbar-secondary {
    position: fixed;
    left: 0;
    right: 0;
    height: 80px;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(233, 30, 140, 0.02) 30%,
        rgba(233, 30, 140, 0.04) 50%,
        rgba(233, 30, 140, 0.02) 70%,
        transparent 100%
    );
    animation: scanbar-roll 12s linear infinite reverse;
    filter: blur(3px);
}

@keyframes scanbar-roll {
    0% { top: -150px; }
    100% { top: 100vh; }
}

/* ========== CRT Vignette ========== */
.crt-vignette {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(
        ellipse at center,
        transparent 50%,
        rgba(0, 0, 0, 0.3) 80%,
        rgba(0, 0, 0, 0.6) 100%
    );
}

/* ========== Mouse Glow ========== */
.mouse-glow-outer {
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(
        circle,
        rgba(0, 172, 236, 0.35) 0%,
        rgba(0, 172, 236, 0.15) 30%,
        rgba(0, 172, 236, 0.04) 50%,
        transparent 70%
    );
    filter: blur(30px);
    mix-blend-mode: color-dodge;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mouse-glow-inner {
    position: fixed;
    width: 192px;
    height: 192px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(
        circle,
        rgba(0, 172, 236, 0.7) 0%,
        rgba(0, 172, 236, 0.35) 30%,
        transparent 60%
    );
    filter: blur(10px);
    mix-blend-mode: screen;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* ========== Custom Pixel Cursor ========== */
.pixel-cursor-container {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
}

.pixel-cursor-layer {
    position: absolute;
    top: 0;
    left: 0;
}

.pixel-cursor-layer.chromatic {
    animation: cursor-glitch 0.5s steps(10) infinite;
    will-change: transform;
    mix-blend-mode: screen;
}

.cursor-pixel {
    position: absolute;
    width: 3px;
    height: 3px;
}

@keyframes cursor-glitch {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-2px, 1px); }
    20% { transform: translate(2px, -1px); }
    30% { transform: translate(-1px, 2px); }
    40% { transform: translate(1px, -2px); }
    50% { transform: translate(-2px, -1px); }
    60% { transform: translate(2px, 1px); }
    70% { transform: translate(0, 2px); }
    80% { transform: translate(-1px, -1px); }
    90% { transform: translate(1px, 0); }
}

/* Glitch pixels that spawn from cursor movement */
.glitch-pixel {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: screen;
    animation: glitch-pixel-fade 0.4s ease-out forwards;
    will-change: transform, opacity;
}

@keyframes glitch-pixel-fade {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
}

/* Mouse trail particles */
.crt-particle {
    position: fixed;
    pointer-events: none;
    z-index: 1;
    border-radius: 50%;
    animation: crt-particle-float 0.8s ease-out forwards;
    will-change: transform, opacity;
    mix-blend-mode: screen;
}

.crt-trail {
    position: fixed;
    pointer-events: none;
    z-index: 1;
    border-radius: 50%;
    animation: crt-trail-fade 0.5s ease-out forwards;
    will-change: transform, opacity;
    mix-blend-mode: screen;
}

@keyframes crt-particle-float {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: var(--start-opacity);
    }
    100% {
        transform: translate(calc(-50% + var(--drift-x)), calc(-50% + var(--drift-y))) scale(0.2);
        opacity: 0;
    }
}

@keyframes crt-trail-fade {
    0% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0;
    }
}

/* ========== Music Toggle ========== */
.music-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 100;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(16, 16, 32, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.music-toggle:hover {
    border-color: var(--cyan);
    color: var(--cyan);
    box-shadow: 0 0 20px var(--cyan-glow);
    transform: scale(1.1);
}

.music-toggle.playing {
    border-color: rgba(0, 172, 236, 0.3);
    color: var(--cyan);
    animation: music-pulse 2s ease-in-out infinite;
}

@keyframes music-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 172, 236, 0); }
    50% { box-shadow: 0 0 0 8px rgba(0, 172, 236, 0.08); }
}

.music-icon {
    display: block;
}

/* ========== Container ========== */
.container {
    position: relative;
    z-index: 2;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== Hero / Header ========== */
.hero {
    text-align: center;
    padding: 80px 0 48px;
    animation: fadeInDown 0.8s ease-out;
}

.logo-container {
    margin-bottom: 24px;
}

.logo {
    width: 200px;
    height: auto;
    filter: drop-shadow(0 0 30px var(--cyan-glow));
    animation: logoPulse 4s ease-in-out infinite;
}

.tagline {
    font-family: 'Orbitron', monospace;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 16px;
    text-shadow: 0 0 20px var(--cyan-glow);
}

.subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.8;
    max-width: 440px;
    margin: 0 auto;
}

/* ========== Section ========== */
.stores-section {
    margin-bottom: 48px;
}

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: 'Orbitron', monospace;
}

.official-badge {
    background: linear-gradient(135deg, var(--cyan), #0088cc);
    color: #fff;
    box-shadow: 0 0 16px var(--cyan-glow);
}

.reseller-badge {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
}

/* ========== Store Cards Grid ========== */
.stores-grid {
    display: grid;
    gap: 16px;
}

.official-grid {
    grid-template-columns: 1fr 1fr;
}

.reseller-grid {
    grid-template-columns: 1fr 1fr 1fr;
}

/* ========== Store Card - Base ========== */
.store-card {
    position: relative;
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--card-radius);
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.store-card:hover {
    transform: translateY(-4px);
    background: var(--bg-card-hover);
}

.card-content {
    position: relative;
    padding: 28px 24px;
    z-index: 1;
}

/* ========== Card Glow Effect ========== */
.card-glow {
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: var(--card-radius);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
    pointer-events: none;
}

.primary-card .card-glow {
    background: linear-gradient(135deg,
        var(--cyan-glow) 0%,
        transparent 40%,
        transparent 60%,
        var(--magenta-glow) 100%
    );
}

.secondary-card .card-glow {
    background: linear-gradient(135deg,
        rgba(0, 172, 236, 0.2) 0%,
        transparent 50%,
        rgba(0, 172, 236, 0.15) 100%
    );
}

.store-card:hover .card-glow {
    opacity: 1;
}

/* ========== Primary Card - Cyan/Magenta glow ========== */
.primary-card {
    border-color: rgba(0, 172, 236, 0.15);
    background: linear-gradient(135deg,
        rgba(0, 172, 236, 0.05) 0%,
        var(--bg-card) 50%,
        rgba(233, 30, 140, 0.03) 100%
    );
}

.primary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan), var(--magenta));
    z-index: 2;
}

.primary-card:hover {
    border-color: rgba(0, 172, 236, 0.35);
    box-shadow:
        0 8px 32px rgba(0, 172, 236, 0.18),
        0 0 60px rgba(0, 172, 236, 0.06),
        inset 0 0 30px rgba(0, 172, 236, 0.03);
}

.primary-card:hover .card-arrow {
    color: var(--cyan);
}

/* ========== Secondary Card - Blue/Pink glow ========== */
.secondary-card {
    border-color: rgba(77, 120, 255, 0.08);
}

.secondary-card .card-glow {
    background: linear-gradient(135deg,
        rgba(77, 120, 255, 0.2) 0%,
        transparent 40%,
        transparent 60%,
        rgba(233, 30, 140, 0.15) 100%
    );
}

.secondary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #4d78ff, #e91e8c);
    z-index: 2;
    opacity: 0.6;
}

.secondary-card:hover {
    border-color: rgba(233, 30, 140, 0.25);
    box-shadow:
        0 8px 28px rgba(233, 30, 140, 0.12),
        0 0 50px rgba(233, 30, 140, 0.04),
        inset 0 0 30px rgba(233, 30, 140, 0.02);
}

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

.secondary-card:hover .card-arrow {
    color: #e91e8c;
}

.secondary-card:hover .store-url {
    color: #e91e8c;
}

/* ========== Reseller Card - Base ========== */
.reseller-card .card-content {
    padding: 20px;
}

.reseller-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.35s ease;
}

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

/* ========== SilentModding - Austria - Warm red/orange ========== */
.reseller-austria::before {
    background: linear-gradient(90deg, #ed2939, #ff6b3b);
}

.reseller-austria:hover {
    border-color: rgba(237, 41, 57, 0.25);
    box-shadow:
        0 6px 24px rgba(237, 41, 57, 0.12),
        0 0 40px rgba(237, 41, 57, 0.04),
        inset 0 0 24px rgba(237, 41, 57, 0.02);
}

.reseller-austria:hover .card-arrow {
    color: #ed2939;
}

.reseller-austria:hover .store-url {
    color: #ed2939;
}

/* ========== RetroReiZ - Germany - Gold/amber ========== */
.reseller-germany::before {
    background: linear-gradient(90deg, #ffcc00, #ff9900);
}

.reseller-germany:hover {
    border-color: rgba(255, 204, 0, 0.25);
    box-shadow:
        0 6px 24px rgba(255, 204, 0, 0.1),
        0 0 40px rgba(255, 204, 0, 0.04),
        inset 0 0 24px rgba(255, 204, 0, 0.02);
}

.reseller-germany:hover .card-arrow {
    color: #ffcc00;
}

.reseller-germany:hover .store-url {
    color: #ffcc00;
}

/* ========== Magitek - Canada - Teal/green ========== */
.reseller-canada::before {
    background: linear-gradient(90deg, #00cc88, #00e5a0);
}

.reseller-canada:hover {
    border-color: rgba(0, 204, 136, 0.25);
    box-shadow:
        0 6px 24px rgba(0, 204, 136, 0.1),
        0 0 40px rgba(0, 204, 136, 0.04),
        inset 0 0 24px rgba(0, 204, 136, 0.02);
}

.reseller-canada:hover .card-arrow {
    color: #00cc88;
}

.reseller-canada:hover .store-url {
    color: #00cc88;
}

/* ========== Flag ========== */
.store-flag {
    margin-bottom: 16px;
}

.flag-icon {
    width: 40px;
    height: 20px;
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.reseller-card .flag-icon {
    width: 32px;
    height: 16px;
}

/* ========== Store Info ========== */
.store-name {
    font-family: 'Orbitron', monospace;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.primary-card .store-name {
    background: linear-gradient(135deg, #fff, var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.secondary-card .store-name {
    color: var(--text-primary);
}

.reseller-card .store-name {
    font-size: 15px;
    color: var(--text-primary);
}

.store-url {
    font-size: 13px;
    color: var(--cyan);
    font-weight: 500;
    margin-bottom: 8px;
    opacity: 0.8;
}

.reseller-card .store-url {
    font-size: 12px;
    margin-bottom: 0;
}

.store-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 300;
}

.store-region {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========== Recommended Tag ========== */
.recommended-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 5px 12px;
    background: rgba(0, 255, 136, 0.08);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: var(--green);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: 'Orbitron', monospace;
}

/* US recommended pill - blue variant */
.recommended-us {
    background: rgba(0, 136, 255, 0.08);
    border-color: rgba(0, 136, 255, 0.25);
    color: #4da6ff;
}

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

.pulse-dot-blue {
    background: #4da6ff;
    box-shadow: 0 0 8px rgba(0, 136, 255, 0.4);
}

/* ========== Card Arrow ========== */
.card-arrow {
    position: absolute;
    top: 24px;
    right: 24px;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.reseller-card .card-arrow {
    top: 20px;
    right: 20px;
}

.store-card:hover .card-arrow {
    transform: translate(2px, -2px);
}

/* ========== Links Section Title - centered & stacked ========== */
.links-title {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

/* ========== Links Badge ========== */
.links-badge {
    background: linear-gradient(135deg, var(--magenta), #b0157a);
    color: #fff;
    box-shadow: 0 0 16px var(--magenta-glow);
}

/* ========== Useful Links Grid ========== */
.links-grid {
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
}

/* ========== Link Icon Button ========== */
.link-icon-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.link-icon-btn:hover {
    color: var(--cyan);
}

.link-icon-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1.5px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: relative;
    overflow: visible;
}

.link-icon-circle::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan-glow), transparent 60%, var(--magenta-glow));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.link-icon-btn:hover .link-icon-circle {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-4px) scale(1.05);
    box-shadow:
        0 8px 24px rgba(0, 172, 236, 0.12),
        0 0 40px rgba(0, 172, 236, 0.04),
        inset 0 0 20px rgba(0, 172, 236, 0.03);
}

.link-icon-btn:hover .link-icon-circle::before {
    opacity: 1;
}

.link-svg {
    width: 36px;
    height: 36px;
}

/* ========== Rich Tooltip Card ========== */
.link-tooltip-card {
    position: absolute;
    bottom: calc(100% + 16px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    width: 220px;
    padding: 14px 16px 12px;
    background: rgba(14, 14, 28, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.5),
        0 0 1px rgba(255, 255, 255, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
    z-index: 50;
    overflow: hidden;
}

/* Top accent bar */
.tooltip-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    border-radius: 12px 12px 0 0;
}

/* Arrow / caret */
.link-tooltip-card::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: rgba(14, 14, 28, 0.92);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tooltip-title {
    display: block;
    font-family: 'Orbitron', monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.tooltip-desc {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-secondary);
}

.link-icon-btn:hover .link-tooltip-card {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Live ping animation on the broadcast icon */
.live-ping {
    animation: live-ping 1.5s ease-out infinite;
}

@keyframes live-ping {
    0% {
        r: 3.5;
        opacity: 0.8;
    }
    100% {
        r: 8;
        opacity: 0;
    }
}

/* Link icon staggered entrance */
.link-icon-btn {
    opacity: 0;
    animation: linkEnter 0.5s ease-out forwards;
}

.link-icon-btn:nth-child(1) { animation-delay: 0.8s; }
.link-icon-btn:nth-child(2) { animation-delay: 0.9s; }
.link-icon-btn:nth-child(3) { animation-delay: 1.0s; }
.link-icon-btn:nth-child(4) { animation-delay: 1.1s; }
.link-icon-btn:nth-child(5) { animation-delay: 1.2s; }
.link-icon-btn:nth-child(6) { animation-delay: 1.3s; }

@keyframes linkEnter {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ========== Footer ========== */
.footer {
    text-align: center;
    padding: 48px 0 32px;
    color: var(--text-muted);
    font-size: 12px;
    letter-spacing: 0.5px;
}

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

@keyframes logoPulse {
    0%, 100% {
        filter: drop-shadow(0 0 20px var(--cyan-glow));
    }
    50% {
        filter: drop-shadow(0 0 40px var(--cyan-glow)) drop-shadow(0 0 60px rgba(0, 172, 236, 0.15));
    }
}

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

/* Card staggered entrance */
.store-card {
    opacity: 0;
    animation: cardEnter 0.6s ease-out forwards;
}

.official-grid .store-card:nth-child(1) { animation-delay: 0.2s; }
.official-grid .store-card:nth-child(2) { animation-delay: 0.35s; }
.reseller-grid .store-card:nth-child(1) { animation-delay: 0.5s; }
.reseller-grid .store-card:nth-child(2) { animation-delay: 0.6s; }
.reseller-grid .store-card:nth-child(3) { animation-delay: 0.7s; }

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

/* Section entrance */
.stores-section {
    opacity: 0;
    animation: sectionEnter 0.6s ease-out forwards;
}

.official-section { animation-delay: 0.1s; }
.resellers-section { animation-delay: 0.4s; }
.links-section { animation-delay: 0.65s; }

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

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

    .logo {
        width: 160px;
    }

    .tagline {
        font-size: 12px;
        letter-spacing: 4px;
    }

    .subtitle {
        font-size: 14px;
    }

    .official-grid {
        grid-template-columns: 1fr;
    }

    .reseller-grid {
        grid-template-columns: 1fr;
    }

    .store-name {
        font-size: 18px;
    }

    .section-title {
        font-size: 11px;
    }

    .links-grid {
        gap: 20px;
    }

    .link-icon-circle {
        width: 60px;
        height: 60px;
    }

    .link-svg {
        width: 30px;
        height: 30px;
    }

    .link-tooltip-card {
        width: 180px;
        padding: 12px 14px 10px;
    }

    .tooltip-title {
        font-size: 10px;
    }

    .tooltip-desc {
        font-size: 11px;
    }

    /* Show default cursor on touch devices */
    body, *, *::before, *::after {
        cursor: auto !important;
    }

    .pixel-cursor-container,
    .mouse-glow-outer,
    .mouse-glow-inner {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 40px 0 28px;
    }

    .logo {
        width: 140px;
    }

    .card-content {
        padding: 20px;
    }

    .store-name {
        font-size: 16px;
    }
}

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

    #particle-canvas,
    .crt-scanbar,
    .crt-scanbar-secondary,
    .pixel-cursor-container,
    .mouse-glow-outer,
    .mouse-glow-inner {
        display: none;
    }

    body, *, *::before, *::after {
        cursor: auto !important;
    }
}

/* Focus styles */
.store-card:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 2px;
}

.music-toggle:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 2px;
}

.link-icon-btn:focus-visible .link-icon-circle {
    outline: 2px solid var(--cyan);
    outline-offset: 2px;
}
