/* RevelBoard - Main Stylesheet */

:root {
    /* Color Palette */
    --color-background: #000000;
    --color-surface: #0a0a0a;
    --color-primary: #FF006E;
    --color-secondary: #00F5FF;
    --color-accent: #FFBE0B;
    --color-purple: #8338EC;
    --color-text: #FFFFFF;
    --color-text-muted: #E0E0E0;
    
    /* Game Type Colors */
    --color-local-primary: #FFBE0B;
    --color-local-glow: rgba(255, 190, 11, 0.3);
    --color-local-border: rgba(255, 190, 11, 0.4);
    
    --color-online-primary: #00F5FF;
    --color-online-glow: rgba(0, 245, 255, 0.3);
    --color-online-border: rgba(0, 245, 255, 0.4);
    
    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-xxl: 48px;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-sm: 14px;
    --font-size-base: 18px;
    --font-size-lg: 20px;
    --font-size-xl: 28px;
    --font-size-xxl: 36px;
    --font-size-hero: 50px;
    
    /* Animation - Faster for responsiveness */
    --transition-fast: 100ms ease;
    --transition-base: 150ms ease;
    --transition-slow: 250ms ease;
    
    /* Shadows */
    --shadow-glow-primary: 0 0 20px rgba(255, 0, 110, 0.5);
    --shadow-glow-secondary: 0 0 20px rgba(0, 245, 255, 0.5);
    --shadow-glow-accent: 0 0 20px rgba(255, 190, 11, 0.5);
    --shadow-glow-purple: 0 0 20px rgba(131, 56, 236, 0.5);
    --shadow-neon-primary: 0 0 30px rgba(255, 0, 110, 0.8), 0 0 60px rgba(255, 0, 110, 0.4);
    --shadow-neon-secondary: 0 0 30px rgba(0, 245, 255, 0.8), 0 0 60px rgba(0, 245, 255, 0.4);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-primary), var(--color-purple));
    --gradient-secondary: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
    --gradient-dark: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    --gradient-iridescent: linear-gradient(90deg, #FF006E, #00F5FF, #FFBE0B, #8338EC, #FF006E);
    --gradient-mesh: radial-gradient(at 40% 20%, var(--color-primary) 0px, transparent 50%),
                     radial-gradient(at 80% 80%, var(--color-secondary) 0px, transparent 50%),
                     radial-gradient(at 20% 80%, var(--color-purple) 0px, transparent 50%);
    
    /* Glassmorphism */
    --glass-background: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-blur: blur(10px);
    --glass-blur-heavy: blur(20px);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Utility Classes */
.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;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 1);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    z-index: 1000;
    padding: var(--spacing-md);
    overflow-y: auto;
}

.modal-content {
    background: var(--glass-background);
    backdrop-filter: var(--glass-blur-heavy);
    -webkit-backdrop-filter: var(--glass-blur-heavy);
    border-radius: 16px;
    padding: var(--spacing-xl);
    max-width: 500px;
    width: 100%;
    border: 1px solid var(--glass-border);
    animation: modalSlideIn 0.3s ease-out;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    margin: auto 0;
}

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

.modal-content h2 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-xl);
}

.modal-content ul {
    list-style: none;
    margin: var(--spacing-md) 0;
}

.modal-content ul li {
    padding: var(--spacing-sm) 0;
    padding-left: var(--spacing-lg);
    position: relative;
}

.modal-content ul li::before {
    content: "•";
    color: var(--color-accent);
    position: absolute;
    left: 0;
}

.checkbox-container {
    display: flex;
    align-items: center;
    margin: var(--spacing-lg) 0;
    cursor: pointer;
}

.checkbox-container input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: var(--spacing-sm);
    cursor: pointer;
}

/* Button Styles */
.btn {
    background: none;
    border: none;
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: 50px;
    font-size: var(--font-size-base);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-purple));
    color: white;
    box-shadow: var(--shadow-glow-primary);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s ease;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 0, 110, 0.4), var(--shadow-neon-primary);
}

.btn-primary:hover:not(:disabled)::before {
    transform: translate(-50%, -50%) scale(2);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-text);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* App Container */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.app-header {
    padding: var(--spacing-lg) var(--spacing-md) 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    position: relative;
}

.app-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-iridescent);
    opacity: 0.5;
}

.logo-container {
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.logo {
    font-family: 'Barriecito', cursive;
    font-size: calc(var(--font-size-hero) * 1.1);
    font-weight: 400;
    display: inline-block;
    max-width: 100%;
    position: relative;
    background: linear-gradient(92deg, #ff3ccf 0%, #b24bff 27%, #6a2bff 50%, #3f74ef 73%, #17d9ec 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 3px rgba(0,0,0,0.25);
    filter: saturate(1.25) drop-shadow(0 3px 8px rgba(0,0,0,0.5)) drop-shadow(0 0 22px rgba(140,90,255,0.35));
    animation: logo-glow 3s ease-in-out infinite alternate;
}

.logo-gloss {
    position: absolute;
    left: 0;
    top: 0;
    pointer-events: none;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    line-height: inherit;
    background: linear-gradient(180deg,
        rgba(255,255,255,0.95) 0%,
        rgba(255,255,255,0.60) 15%,
        rgba(255,255,255,0.14) 31%,
        rgba(255,255,255,0) 46%,
        rgba(255,255,255,0) 88%,
        rgba(255,255,255,0.22) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.logo .tm {
    font-size: 26px;
    vertical-align: super;
    line-height: 0;
}

@media (max-width: 768px) {
    .logo .tm {
        font-size: 23px;
    }
}


@keyframes logo-glow {
    from {
        filter: saturate(1.25) drop-shadow(0 3px 8px rgba(0,0,0,0.5)) drop-shadow(0 0 22px rgba(140,90,255,0.35));
    }
    to {
        filter: saturate(1.25) drop-shadow(0 3px 8px rgba(0,0,0,0.5)) drop-shadow(0 0 32px rgba(140,90,255,0.55));
    }
}

.tagline {
    font-family: 'Quicksand', sans-serif;
    color: #d5d8de;
    font-size: 17.5px;
    margin-top: -4px;
    font-style: normal;
    letter-spacing: 0.4px;
}

.header-stats {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.live-counter {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--glass-background);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Stats Button Styles */
.stats-button {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 25px;
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    position: relative;
    overflow: hidden;
}

.stats-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: all var(--transition-slow);
    opacity: 0;
}

.stats-button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 0, 110, 0.2);
}

.stats-button:hover::before {
    width: 200%;
    height: 200%;
    opacity: 0.1;
}

.stats-button:active {
    transform: translateY(0);
}

/* Sound Toggle Button */
.sound-toggle-btn.muted {
    color: rgba(255, 255, 255, 0.3);
}

/* Games Container - HORIZONTAL LAYOUT */
.games-container {
    flex: 1;
    padding: var(--spacing-xl) var(--spacing-md);
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    background-image: url('../images/sky.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.games-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.games-container > * {
    position: relative;
    z-index: 1;
}

/* Games Layout - HORIZONTAL */
.games-layout {
    display: flex;
    gap: var(--spacing-xl);
    align-items: flex-start;
    margin-bottom: var(--spacing-xl);
}

/* Game Sections */
.game-section {
    display: flex;
    flex-direction: column;
}

.game-section-local {
    flex: 1;
    min-width: 300px;
}

.game-section-online {
    flex: 2;
    min-width: 600px;
}

/* Games Grid */
.games-grid-local {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

.games-grid-online {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
}

/* Game Card Styles with Color Coding */
.game-card {
    display: none;
}

/* Local Game Cards - Subtle Pink Glow */
.game-card-local {
    border-color: var(--color-local-border);
    box-shadow: 0 0 8px var(--color-local-glow),
                0 8px 32px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.game-card-local:hover:not(.coming-soon) {
    transform: translateY(-4px);
    border-color: var(--color-local-primary);
    box-shadow: 0 0 15px var(--color-local-glow),
                0 12px 40px rgba(255, 0, 110, 0.2);
}

/* Online Game Cards - Subtle Blue Glow */
.game-card-online {
    border-color: var(--color-online-border);
    box-shadow: 0 0 8px var(--color-online-glow),
                0 8px 32px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.game-card-online:hover:not(.coming-soon) {
    transform: translateY(-4px);
    border-color: var(--color-online-primary);
    box-shadow: 0 0 15px var(--color-online-glow),
                0 12px 40px rgba(0, 245, 255, 0.2);
}

.game-card:hover:not(.coming-soon) {
    transform: translateY(-2px);
    border-color: var(--card-color, var(--glass-border));
    box-shadow: inset 4px 0 0 0 var(--card-color), 0 4px 20px var(--card-color-dim, rgba(0,0,0,0.2));
}

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

.game-card:active:not(:disabled):not(.coming-soon) {
    transform: translateY(-2px);
}

.game-card.coming-soon {
    opacity: 0.6;
    cursor: not-allowed;
}

.game-card.coming-soon:hover {
    transform: none;
    box-shadow: 0 0 8px var(--color-local-glow),
                0 8px 32px rgba(0, 0, 0, 0.1);
}

.game-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--card-color, #fff);
}

.game-icon-box .icon-large {
    width: 24px;
    height: 24px;
}

.game-card-content {
    flex: 1;
    min-width: 0;
}

.game-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--color-text);
}

.game-description {
    color: var(--color-text-muted);
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
}

.game-arrow {
    color: var(--card-color, rgba(255, 255, 255, 0.3));
    font-size: 22px;
    font-weight: 300;
    flex-shrink: 0;
    opacity: 0.6;
}

.game-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--spacing-md);
}

.player-count {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

.game-badge {
    padding: var(--spacing-xs) var(--spacing-md);
    background: var(--gradient-primary);
    border-radius: 20px;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: white;
    position: relative;
    overflow: hidden;
}

.game-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.game-card:hover .game-badge::before {
    left: 100%;
}

.coming-soon .game-badge {
    background: rgba(255, 255, 255, 0.1);
}

/* Game Legend */
.game-legend {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: var(--glass-background);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    box-shadow: 0 0 6px currentColor;
}

.legend-local {
    background: var(--color-local-primary);
    color: var(--color-local-primary);
}

.legend-online {
    background: var(--color-online-primary);
    color: var(--color-online-primary);
}

/* Footer Styles */
.app-footer {
    padding: 8px var(--spacing-md) 16px;
    text-align: center;
    border-top: none;
    background: none;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(180, 160, 200, 0.45);
    text-decoration: none;
    font-size: 13px;
    transition: color var(--transition-base);
}

.footer-links a:hover {
    color: rgba(180, 160, 200, 0.7);
}

.copyright {
    color: rgba(180, 160, 200, 0.3);
    font-size: 11px;
}

.copyright a {
    color: rgba(180, 160, 200, 0.4);
    text-decoration: none;
}

.copyright a:hover {
    color: rgba(180, 160, 200, 0.6);
}

/* ============================================
   RevelBoard — Late Night Neon Cards
   ============================================ */
.pb-separator {
    height: 1px;
    background: linear-gradient(90deg, transparent, #ff2d92, #00d4ff, #b464ff, transparent);
    opacity: 0.6;
}

.pb-cards-section {
    position: relative;
    background: transparent;
    padding: 4px 20px 20px;
}

.pb-cards-container {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}

.pb-card {
    flex: 1;
    max-width: 420px;
    flex-direction: column;
    align-items: flex-start;
    min-height: 400px;
    padding: 28px;
    justify-content: flex-start;
}

.pb-card .pb-card-top-row {
    width: 100%;
    justify-content: center;
}

.pb-card .pb-card-title {
    font-family: 'Quicksand', sans-serif;
    font-size: 24.5px;
    font-weight: 700;
    margin-bottom: 10px;
    margin-top: 20px;
    width: 100%;
    text-align: center;
}

.pb-card--rather .pb-card-title {
    text-align: left;
    white-space: nowrap;
}

.pb-card .pb-card-number {
    display: none;
}

.pb-card .pb-card-desc {
    font-family: 'Quicksand', sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

.pb-card .pb-card-content {
    flex: 1;
}

/* Icon strip above CTA */
.pb-card-icons-strip {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    justify-content: center;
    margin-bottom: 12px;
    opacity: 0.4;
}

.pb-card-icons-strip svg {
    width: 18px;
    height: 18px;
    fill: none;
}

.pb-card-icons-strip svg.sm {
    width: 13px;
    height: 13px;
}

.pb-card--truth .pb-card-icons-strip svg { stroke: #ff2d92; stroke-width: 2; }
.pb-card--rather .pb-card-icons-strip svg { stroke: #00d4ff; stroke-width: 2.2; }
.pb-card--likely .pb-card-icons-strip svg { stroke: #b464ff; stroke-width: 2.2; }

.pb-card-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

.pb-card-cta-text {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
}

.pb-card-cta-arrow {
    font-size: 18px;
}

.pb-card-chevron {
    display: none;
}

.pb-card-desc-short {
    display: none;
    font-family: 'Quicksand', sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.4;
    margin: 0;
}

.pb-card-mobile-arrow {
    display: none;
    font-size: 20px;
    flex-shrink: 0;
}

.pb-card {
    position: relative;
    border-radius: 16px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.pb-card:hover { transform: translateY(-2px); }

.pb-card-accent {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
}

.pb-card-icon {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pb-card-icon svg { width: 34px; height: 34px; fill: none; }

.pb-card-top-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
}

.pb-card-content { flex: 1; }

.pb-card-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.pb-card-title {
    font-size: 17px;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: -0.3px;
    margin: 0;
}

.pb-card-number {
    font-family: 'JetBrains Mono', 'IBM Plex Mono', 'Courier New', monospace;
    font-size: 9px;
    letter-spacing: 1.5px;
    padding: 2px 6px;
    border-radius: 4px;
}

.pb-card-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.4;
    margin: 0;
}

.pb-card-chevron { font-size: 20px; }

/* Card 1: Truth or Dare (pink) */
.pb-card--truth {
    background: linear-gradient(160deg, rgba(255, 45, 146, 0.2) 0%, rgba(20, 5, 15, 0.95) 60%);
    border: 0.5px solid rgba(255, 45, 146, 0.35);
}
.pb-card--truth .pb-card-accent { background: linear-gradient(180deg, #ff2d92, #ff8c42); }
.pb-card--truth .pb-card-icon {
    background: linear-gradient(135deg, rgba(255, 45, 146, 0.15), rgba(255, 140, 66, 0.15));
    border: 0.5px solid rgba(255, 45, 146, 0.5);
}
.pb-card--truth .pb-card-icon svg {
    stroke: #ff2d92; stroke-width: 2;
    filter: drop-shadow(0 0 6px rgba(255, 45, 146, 0.8));
}
.pb-card--truth .pb-card-number { color: #ff2d92; background: rgba(255, 45, 146, 0.15); }
.pb-card--truth .pb-card-chevron { color: #ff2d92; filter: drop-shadow(0 0 6px rgba(255, 45, 146, 0.6)); }
.pb-card--truth .pb-card-cta-arrow { color: #ff2d92; }
.pb-card--truth:hover { border-color: rgba(255, 45, 146, 0.55); }

/* Card 2: Would You Rather? (cyan) */
.pb-card--rather {
    background: linear-gradient(160deg, rgba(0, 212, 255, 0.15) 0%, rgba(5, 10, 20, 0.95) 60%);
    border: 0.5px solid rgba(0, 212, 255, 0.35);
}
.pb-card--rather .pb-card-accent { background: linear-gradient(180deg, #00d4ff, #b464ff); }
.pb-card--rather .pb-card-icon {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(180, 100, 255, 0.15));
    border: 0.5px solid rgba(0, 212, 255, 0.5);
}
.pb-card--rather .pb-card-icon svg {
    stroke: #00d4ff; stroke-width: 2.2;
    stroke-linecap: round; stroke-linejoin: round;
    filter: drop-shadow(0 0 6px rgba(0, 212, 255, 0.8));
}
.pb-card--rather .pb-card-number { color: #00d4ff; background: rgba(0, 212, 255, 0.15); }
.pb-card--rather .pb-card-chevron { color: #00d4ff; filter: drop-shadow(0 0 6px rgba(0, 212, 255, 0.6)); }
.pb-card--rather .pb-card-cta-arrow { color: #00d4ff; }
.pb-card--rather:hover { border-color: rgba(0, 212, 255, 0.55); }

/* Card 3: Who's Most Likely To? (purple) */
.pb-card--likely {
    background: linear-gradient(160deg, rgba(180, 100, 255, 0.15) 0%, rgba(15, 5, 20, 0.95) 60%);
    border: 0.5px solid rgba(180, 100, 255, 0.35);
}
.pb-card--likely .pb-card-accent { background: linear-gradient(180deg, #b464ff, #ff2d92); }
.pb-card--likely .pb-card-icon {
    background: linear-gradient(135deg, rgba(180, 100, 255, 0.15), rgba(255, 45, 146, 0.15));
    border: 0.5px solid rgba(180, 100, 255, 0.5);
}
.pb-card--likely .pb-card-icon svg {
    stroke: #b464ff; stroke-width: 2.2;
    filter: drop-shadow(0 0 6px rgba(180, 100, 255, 0.8));
}
.pb-card--likely .pb-card-icon svg circle:last-child { fill: #b464ff; }
.pb-card--likely .pb-card-number { color: #b464ff; background: rgba(180, 100, 255, 0.15); }
.pb-card--likely .pb-card-chevron { color: #b464ff; filter: drop-shadow(0 0 6px rgba(180, 100, 255, 0.6)); }
.pb-card--likely .pb-card-cta-arrow { color: #b464ff; }
.pb-card--likely:hover { border-color: rgba(180, 100, 255, 0.55); }

/* Mobile overrides for neon cards */
@media (max-width: 768px) {
    .pb-cards-container {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        max-width: none;
        width: 100%;
    }

    .pb-card {
        flex: none;
        max-width: none !important;
        width: 100% !important;
        flex-direction: row;
        align-items: center;
        min-height: auto;
        padding: 22px 20px 22px 22px;
        gap: 16px;
        box-sizing: border-box;
    }

    .pb-card-top-row {
        display: contents;
    }

    .pb-card-number {
        display: none;
    }

    .pb-card-cta {
        display: none;
    }

    .pb-card-icons-strip {
        display: none;
    }

    .pb-card .pb-card-title {
        font-size: 19px;
        font-weight: 500;
        margin-top: 0;
        margin-bottom: 5px;
        letter-spacing: -0.3px;
        text-align: left;
        width: auto;
    }

    .pb-card--rather .pb-card-title {
        white-space: normal;
    }

    .pb-card .pb-card-desc {
        display: none;
    }

    .pb-card .pb-card-desc-short {
        display: block;
        font-size: 13px;
        color: rgba(255, 255, 255, 0.6);
        line-height: 1.5;
        letter-spacing: 0;
    }

    .pb-card-mobile-arrow {
        display: block;
        font-size: 24px;
        font-weight: 400;
        line-height: 1;
        opacity: 1;
    }

    .pb-card--truth .pb-card-mobile-arrow { color: #ff2d92; filter: drop-shadow(0 0 8px rgba(255, 45, 146, 0.9)); }
    .pb-card--rather .pb-card-mobile-arrow { color: #00d4ff; filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.9)); }
    .pb-card--likely .pb-card-mobile-arrow { color: #b464ff; filter: drop-shadow(0 0 8px rgba(180, 100, 255, 0.9)); }

    .pb-card-icon {
        width: 54px;
        height: 54px;
        border-radius: 13px;
    }

    .pb-card-icon svg {
        width: 26px;
        height: 26px;
    }

    .tagline {
        font-size: 14px;
        margin-top: -12px;
        color: #e2e5ec;
    }

    .pb-cards-section {
        padding-bottom: 4px;
    }

    .games-container {
        padding-bottom: 8px;
    }
}

/* Lucide Icons Styles */
.icon-small {
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 4px;
}

.icon-medium {
    width: 24px;
    height: 24px;
    display: inline-block;
    vertical-align: middle;
}

.icon-large {
    width: 48px;
    height: 48px;
    display: inline-block;
    stroke-width: 2;
}

/* Ensure icons inherit color and are visible */
[data-lucide] {
    color: currentColor;
    stroke: currentColor;
}

.game-icon .icon-large {
    color: var(--color-primary);
    filter: drop-shadow(0 0 10px currentColor);
    transition: all var(--transition-base);
}

.game-card:hover:not(.coming-soon) .game-icon .icon-large {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 20px currentColor);
}

.live-counter .icon-small {
    color: var(--color-accent);
    animation: flame-flicker 2s ease-in-out infinite;
}

@keyframes flame-flicker {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.1) rotate(-5deg); }
    50% { transform: scale(0.95); }
    75% { transform: scale(1.05) rotate(5deg); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    :root {
        --font-size-hero: 46px;
        --font-size-xxl: 32px;
        --font-size-xl: 24px;
        --font-size-lg: 18px;
        --font-size-base: 16px;
    }
    
    .modal-content {
        padding: var(--spacing-lg);
    }
    
    /* MOBILE: Switch to vertical layout */
    .games-layout {
        flex-direction: column;
        gap: var(--spacing-xxl);
    }
    
    .game-section-local,
    .game-section-online {
        flex: 1;
        min-width: auto;
    }
    
    /* Smaller headers on mobile - REMOVED (no longer needed) */
    
    .games-container {
        flex: 0 0 auto !important;
        padding: var(--spacing-lg) var(--spacing-md) 24px;
    }

    /* MOBILE: Both grids as 2 columns */
    .games-grid-local,
    .games-grid-online {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
    }

    .game-legend {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }

    .footer-links {
        flex-direction: row;
        gap: var(--spacing-md);
        font-size: 15px;
    }

    .app-footer {
        padding-top: var(--spacing-md);
    }

    .app-header {
        padding-bottom: 14px;
    }

}

/* Very small screens */
@media (max-width: 480px) {
    .games-grid-online {
        grid-template-columns: 1fr;
    }
    
    /* Play Together stays 2 columns even on small screens */
    .games-grid-local {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-button .stats-label {
        display: none;
    }
    
    .header-stats {
        gap: var(--spacing-sm);
    }
    
    .game-legend {
        padding: var(--spacing-md);
    }
    
    .legend-item {
        justify-content: center;
    }
}

/* Age Verification Styles */
.age-verification-section {
    background: rgba(255, 0, 110, 0.1);
    border: 1px solid var(--color-primary);
    border-radius: 12px;
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.age-input-group {
    display: flex;
    gap: var(--spacing-sm);
    margin: var(--spacing-md) 0;
}

.age-input-group select {
    flex: 1;
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--color-text);
    font-size: var(--font-size-base);
}

.age-input-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(255, 0, 110, 0.2);
}

.age-warning {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    text-align: center;
    margin-top: var(--spacing-md);
    transition: all 0.3s ease;
}

.terms-section {
    max-height: 300px;
    overflow-y: auto;
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    margin-bottom: var(--spacing-lg);
}

.terms-content h3 {
    color: var(--color-secondary);
    font-size: var(--font-size-lg);
    margin: var(--spacing-md) 0 var(--spacing-sm) 0;
}

.terms-content ul {
    margin-left: var(--spacing-lg);
}

.terms-content a {
    color: var(--color-primary);
    text-decoration: underline;
}

.attribution {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    opacity: 0.7;
    margin-top: var(--spacing-md);
}

.attribution a {
    color: var(--color-text-muted);
    text-decoration: underline;
}

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

/* Login Modal */
.login-modal {
    background:
        radial-gradient(ellipse 60% 35% at 0% 15%, rgba(255, 183, 77, 0.08), transparent 70%),
        radial-gradient(ellipse 50% 25% at 0% 50%, rgba(255, 160, 60, 0.06), transparent 70%),
        radial-gradient(ellipse 60% 35% at 0% 85%, rgba(255, 183, 77, 0.08), transparent 70%),
        radial-gradient(ellipse 60% 35% at 100% 15%, rgba(255, 183, 77, 0.08), transparent 70%),
        radial-gradient(ellipse 50% 25% at 100% 50%, rgba(255, 160, 60, 0.06), transparent 70%),
        radial-gradient(ellipse 60% 35% at 100% 85%, rgba(255, 183, 77, 0.08), transparent 70%),
        #08051a !important;
}

.login-content {
    background: #0a0a14 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 24px !important;
    max-width: 420px !important;
    padding: 28px 24px !important;
    text-align: center;
    position: relative;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    max-height: 95vh;
    margin: 10px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    z-index: 1;
}

.login-content::-webkit-scrollbar {
    display: none;
}

@media (max-width: 768px) {
    .login-content {
        padding: 22px 20px !important;
        margin: 8px;
        max-height: 98vh;
    }

    .login-icon-wrapper {
        width: 48px;
        height: 48px;
        margin-bottom: 12px;
    }

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

    .login-title {
        font-size: 20px;
        margin-bottom: 4px;
    }

    .login-tagline {
        font-size: 12px;
        margin-bottom: 18px;
    }

    .input-group {
        margin-bottom: 10px;
    }

    .input-field {
        padding: 11px 14px;
        font-size: 14px;
    }

    .login-btn-primary {
        padding: 12px;
        font-size: 15px;
    }

    .login-btn-guest {
        padding: 12px;
        font-size: 14px;
    }

    .login-divider {
        margin: 10px 0;
    }

    .login-switch {
        font-size: 12px;
    }
}

.login-content::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 80px;
    background: radial-gradient(ellipse, rgba(255, 45, 146, 0.15), transparent 70%);
    pointer-events: none;
}

.login-close {
    position: static;
    float: right;
    margin: -8px -4px 8px 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

.login-icon-wrapper {
    margin: 0 auto 16px;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 45, 146, 0.2), rgba(180, 100, 255, 0.2));
    border: 1px solid rgba(255, 45, 146, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(255, 45, 146, 0.2);
}

.login-icon {
    font-size: 28px;
}

.login-title {
    background: linear-gradient(135deg, #ff2d92, #b464ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 6px;
}

.login-tagline {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    margin: 0 0 24px;
}

/* Auth Tabs */
.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tab-button {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 15px;
    -webkit-tap-highlight-color: transparent;
}

.tab-button.active {
    color: white;
    border-bottom-color: #ff2d92;
}

.tab-button:hover:not(.active) {
    color: rgba(255, 255, 255, 0.7);
}

.input-group {
    text-align: left;
    margin-bottom: 14px;
}

.input-label {
    font-size: 10px;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 6px;
    display: block;
}

.input-field {
    width: 100%;
    padding: 13px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.input-field:focus {
    outline: none;
    border-color: #ff2d92;
    background: rgba(255, 45, 146, 0.04);
}

.input-field::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.auth-form {
    margin-top: 16px;
}

.login-btn-primary {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #ff2d92, #b464ff);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(255, 45, 146, 0.3);
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.login-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(255, 45, 146, 0.4);
}

.login-switch {
    text-align: center;
    margin: 14px 0 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.login-switch a {
    color: #ff2d92;
    text-decoration: none;
    font-weight: 500;
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0;
    color: rgba(255, 255, 255, 0.3);
    font-size: 11px;
    letter-spacing: 1px;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.login-btn-guest {
    width: 100%;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.login-btn-guest:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}

/* User Dropdown Menu */
.user-dropdown {
    position: relative;
    display: inline-block;
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--glass-background);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 8px;
    min-width: 160px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.user-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 14px;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.dropdown-divider {
    height: 1px;
    background: var(--glass-border);
    margin: 8px 0;
}

.dropdown-username {
    padding: 8px 16px;
    font-weight: 600;
    color: var(--color-primary);
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 8px;
}

/* Stats Modal Styles */
.stats-modal {
    background:
        radial-gradient(ellipse 60% 35% at 0% 15%, rgba(255, 183, 77, 0.08), transparent 70%),
        radial-gradient(ellipse 50% 25% at 0% 50%, rgba(255, 160, 60, 0.06), transparent 70%),
        radial-gradient(ellipse 60% 35% at 0% 85%, rgba(255, 183, 77, 0.08), transparent 70%),
        radial-gradient(ellipse 60% 35% at 100% 15%, rgba(255, 183, 77, 0.08), transparent 70%),
        radial-gradient(ellipse 50% 25% at 100% 50%, rgba(255, 160, 60, 0.06), transparent 70%),
        radial-gradient(ellipse 60% 35% at 100% 85%, rgba(255, 183, 77, 0.08), transparent 70%),
        #08051a !important;
}

@keyframes statsStarTwinkle {
    0%, 100% { opacity: 0.15; transform: scale(0.8); }
    50% { opacity: 0.6; transform: scale(1.3); }
}

@keyframes statsStarFloat {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 0.5; }
    90% { opacity: 0.3; }
    100% { transform: translateY(-120px) translateX(20px); opacity: 0; }
}

.stats-modal .modal-content {
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 24px;
    padding-bottom: 24px;
    background: #0f0a1e !important;
    position: relative;
    border: 1px solid rgba(255, 183, 77, 0.12) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5) !important;
}

.stats-modal .modal-content::-webkit-scrollbar {
    display: none;
}

.stats-modal .modal-content::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    height: 160px;
    background: radial-gradient(ellipse, rgba(255, 183, 77, 0.08), transparent 70%);
    pointer-events: none;
}

.stats-modal .modal-content::after {
    content: '';
    position: absolute;
    bottom: 30%;
    right: -60px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(229, 62, 62, 0.05), transparent 70%);
    pointer-events: none;
}

.stats-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 0;
    border-bottom: none;
}

.stats-header-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ffc857 0%, #ff8c42 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stats-header-text {
    display: flex;
    flex-direction: column;
}

.stats-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: -0.3px;
}

.stats-header-subtitle {
    font-size: 12px;
    color: rgba(255, 200, 87, 0.8);
    margin-top: 2px;
}

.stats-header-buttons {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.stats-header-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    position: static;
    font-size: 14px;
}

.stats-header-btn:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
}

.stats-header-btn.close-button {
    position: static;
    width: 36px;
    height: 36px;
}

.close-button {
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all var(--transition-base);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 8px;
    right: 8px;
}

.close-button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text);
    transform: rotate(90deg);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 24px;
}

.stat-card {
    background: linear-gradient(160deg, rgba(255, 200, 87, 0.1), rgba(255, 200, 87, 0.03));
    padding: 16px 8px 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 200, 87, 0.22);
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 50px;
    height: 50px;
    background: radial-gradient(circle, rgba(255, 200, 87, 0.1), transparent 70%);
    pointer-events: none;
}

.stat-card:nth-child(2) {
    background: linear-gradient(160deg, rgba(255, 140, 66, 0.12), rgba(255, 140, 66, 0.04));
    border-color: rgba(255, 140, 66, 0.3);
}

.stat-card:nth-child(2)::before {
    width: 55px;
    height: 55px;
    background: radial-gradient(circle, rgba(255, 140, 66, 0.14), transparent 70%);
}

.stat-card:nth-child(3) {
    background: linear-gradient(160deg, rgba(229, 62, 62, 0.1), rgba(229, 62, 62, 0.03));
    border-color: rgba(229, 62, 62, 0.25);
}

.stat-card:nth-child(3)::before {
    background: radial-gradient(circle, rgba(229, 62, 62, 0.1), transparent 70%);
}

.stat-card {
    cursor: default;
}

.stat-icon {
    font-size: 28px;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 4px;
}

.stat-value {
    font-size: 28px;
    font-weight: 500;
    color: #ffffff;
    line-height: 1;
    letter-spacing: -0.5px;
}

.stat-sublabel {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 4px;
}

.stats-section {
    margin-bottom: 24px;
}

.stats-section-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 12px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.favorites-section {
    border: 1px solid rgba(255, 183, 77, 0.12);
    border-radius: 16px;
    padding: 16px;
}

.stats-separator {
    height: 1px;
    background: rgba(255, 183, 77, 0.12);
    margin: 20px 0 14px;
}

.stats-achievements-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.stats-achievements-header .stats-section-title {
    margin-bottom: 0;
}

.achievements-count {
    font-size: 13px;
    color: #ffc857;
    font-weight: 500;
}

.achievements-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.stats-achievements-header {
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    padding: 4px 0;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.stats-achievements-header:hover {
    background: rgba(255, 183, 77, 0.05);
}

.achievements-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid rgba(255, 183, 77, 0.3);
    font-size: 8px;
    transition: all 0.2s ease;
}

.stats-achievements-header:hover .achievements-arrow {
    border-color: rgba(255, 183, 77, 0.6);
    background: rgba(255, 183, 77, 0.1);
}

.achievements-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 10px;
}

.recently-unlocked {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 183, 77, 0.1);
}

.recently-label {
    font-size: 10px;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.45);
    margin-right: 6px;
}

.recent-badge {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: linear-gradient(135deg, rgba(255, 200, 87, 0.12), rgba(255, 140, 66, 0.06));
    border: 1px solid rgba(255, 200, 87, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.achievements-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffc857, #ff8c42);
    border-radius: 2px;
    transition: width 0.4s ease;
}

/* Favorite cards */
.favorite-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    margin-bottom: 8px;
    position: relative;
    overflow: hidden;
}

.favorite-card::before {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 70px;
    height: 70px;
    pointer-events: none;
}

.favorite-card-gold {
    background: linear-gradient(135deg, rgba(255, 183, 77, 0.1), rgba(255, 183, 77, 0.03));
    border: 1px solid rgba(255, 183, 77, 0.22);
}

.favorite-card-gold::before {
    background: radial-gradient(circle, rgba(255, 183, 77, 0.1), transparent 70%);
}

.favorite-card-copper {
    background: linear-gradient(135deg, rgba(232, 112, 78, 0.1), rgba(232, 112, 78, 0.03));
    border: 1px solid rgba(232, 112, 78, 0.22);
}

.favorite-card-copper::before {
    background: radial-gradient(circle, rgba(232, 112, 78, 0.1), transparent 70%);
}

.favorite-card-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(255, 183, 77, 0.2), rgba(255, 200, 87, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.favorite-icon-copper {
    background: linear-gradient(135deg, rgba(232, 112, 78, 0.2), rgba(232, 112, 78, 0.08));
}

.favorite-card-text {
    flex: 1;
}

.favorite-card-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 2px;
}

.favorite-card-value {
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
}

.favorite-card-pill {
    font-size: 11px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 100px;
    flex-shrink: 0;
}

.favorite-pill-gold {
    background: rgba(255, 183, 77, 0.18);
    border: 1px solid rgba(255, 183, 77, 0.25);
    color: #ffe0b3;
}

.favorite-pill-copper {
    background: rgba(232, 112, 78, 0.18);
    border: 1px solid rgba(232, 112, 78, 0.25);
    color: #f8c9b6;
}

.achievement-hint {
    font-style: italic;
    font-size: 12px;
    color: rgba(255, 200, 87, 0.7);
    text-align: center;
    margin: 24px 0 20px;
}

/* Badge rows (replacing single grid) */
.badges-rows-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: var(--spacing-md);
}

.badges-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

/* Keep old grid as fallback */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

/* Game badges sections */
.game-badges-section {
    margin-bottom: var(--spacing-xl);
}

.game-badges-title {
    font-size: var(--font-size-md);
    margin-bottom: var(--spacing-md);
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.game-badges-section:last-child {
    margin-bottom: 0;
}

.achievement-item {
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
}

.achievement-item.unlocked {
    background: linear-gradient(135deg, rgba(255, 200, 87, 0.12), rgba(255, 140, 66, 0.06));
    border-color: #ffc857;
    box-shadow: 0 0 12px rgba(255, 200, 87, 0.15);
}

.achievement-item.locked {
    opacity: 0.35;
    filter: grayscale(100%);
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

.achievement-item:hover {
    transform: scale(1.05);
}

.achievement-item {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    font-family: inherit;
}

/* Active badge states */
.achievement-item.active.unlocked {
    border: 2px solid #ffc857;
    background: linear-gradient(135deg, rgba(255, 200, 87, 0.2), rgba(255, 140, 66, 0.12));
    box-shadow: 0 0 20px rgba(255, 200, 87, 0.35);
    opacity: 1;
}

.achievement-item.active.locked {
    border: 2px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
    opacity: 0.7;
    filter: none;
}

/* Arrow under active badge */
.badge-arrow {
    position: absolute;
    bottom: -11px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #ffc857;
    z-index: 2;
}

/* Badge detail panel */
.badge-panel {
    border-radius: 14px;
    padding: 14px 14px 16px;
    margin-bottom: 10px;
    grid-column: 1 / -1;
    position: relative;
    overflow: hidden;
    animation: panelSlideDown 200ms ease-out;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.badge-panel-unlocked {
    background: linear-gradient(135deg, rgba(255, 183, 77, 0.1), rgba(255, 183, 77, 0.03));
    border: 1px solid rgba(255, 183, 77, 0.3);
}

.badge-panel-locked {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.badge-panel-hotspot {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 183, 77, 0.12), transparent 70%);
    pointer-events: none;
}

.badge-panel-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.badge-panel-header {
    flex-shrink: 0;
}

.badge-panel-emoji {
    font-size: 48px;
    line-height: 1;
    position: relative;
}

.badge-panel-body {
    flex: 1;
    min-width: 0;
}

.badge-panel-emoji-locked {
    opacity: 0.5;
}

.badge-panel-lock-icon {
    position: absolute;
    bottom: 0;
    right: -2px;
    font-size: 14px;
}

.badge-panel-name {
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    line-height: 1.2;
}

.badge-panel-name-locked {
    color: rgba(255, 255, 255, 0.8);
}

.badge-panel-status {
    font-size: 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 500;
    margin-top: 3px;
    margin-bottom: 8px;
}

.badge-panel-status-unlocked {
    color: #ffc857;
}

.badge-panel-status-locked {
    color: rgba(255, 255, 255, 0.5);
}

.badge-panel-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin-bottom: 12px;
}

.badge-panel-date-section {
    padding-top: 10px;
    border-top: 1px solid rgba(255, 183, 77, 0.15);
}

.badge-panel-date-label {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.badge-panel-date {
    font-size: 11px;
    color: #ffffff;
    margin-top: 2px;
}

.badge-panel-hint {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.badge-panel-aside {
    display: none;
}

@keyframes panelSlideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        max-height: 300px;
        transform: translateY(0);
    }
}

/* Desktop Stats Layout */
@media (min-width: 769px) {
    .stats-modal .modal-content {
        max-width: 800px;
        max-height: 95vh;
        padding: 28px 36px 16px;
    }

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

    /* Stat cards — desktop layout */
    .stat-card {
        padding: 20px;
        text-align: left;
    }

    .stat-card .stat-icon {
        font-size: 30px;
        margin-bottom: 2px;
        display: inline-block;
        vertical-align: middle;
    }

    .stat-card .stat-label {
        font-size: 13px;
        display: inline-block;
        vertical-align: middle;
        margin-left: 8px;
        margin-bottom: 0;
    }

    .stat-card .stat-value {
        font-size: 46px;
        margin-top: 10px;
    }

    /* Stat cards — bigger on desktop */
    .stat-card .stat-icon {
        font-size: 34px;
    }

    .stat-card .stat-label {
        font-size: 15px;
    }

    .stat-card .stat-value {
        font-size: 52px;
    }

    .stat-card .stat-sublabel {
        font-size: 14px;
        display: inline;
        margin-left: 6px;
    }

    /* Favorites side by side */
    .stats-section {
        overflow: hidden;
    }

    .stats-section-title {
        font-size: 18px;
    }

    .favorite-card {
        width: calc(50% - 6px) !important;
        float: left;
        margin-bottom: 0 !important;
    }

    .favorite-card + .favorite-card {
        margin-left: 12px;
    }

    .favorite-card-label {
        font-size: 11px;
    }

    .favorite-card-value {
        font-size: 16px;
    }

    .favorite-card-pill {
        font-size: 13px;
    }

    /* Badges — fill available space */
    .badges-rows-container {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(80px, 100px));
        gap: 8px;
    }

    .badges-row {
        display: contents;
    }

    .achievement-item {
        border-radius: 14px;
    }

    /* Achievements section with border */
    .achievements-section {
        border: 1px solid rgba(255, 183, 77, 0.15);
        border-radius: 16px;
        padding: 24px;
    }

    .achievements-count {
        font-size: 15px;
    }

    .recently-label {
        font-size: 12px;
    }

    .recent-badge {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }

    /* Header bigger */
    .stats-header h2 {
        font-size: 28px;
    }

    .stats-header-icon {
        width: 50px;
        height: 50px;
        border-radius: 14px;
    }

    .stats-header-icon svg {
        width: 28px;
        height: 28px;
    }

    .stats-header-btn {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }

    .stats-header-subtitle {
        font-size: 15px;
    }

    .stats-header-subtitle {
        font-size: 14px;
    }

    /* Badge detail panel — horizontal layout on desktop */
    .badge-panel {
        gap: 20px;
        padding: 20px 24px;
        align-items: center;
    }

    .badge-panel-close {
        display: none;
    }

    .badge-panel-header {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .badge-panel-emoji {
        font-size: 64px;
    }

    .badge-panel-body {
        flex: 1;
        min-width: 0;
    }

    .badge-panel-body .badge-panel-status,
    .badge-panel-body .badge-panel-date-section,
    .badge-panel-body .badge-panel-hint {
        display: none;
    }

    .badge-panel-name {
        font-size: 18px;
        margin-bottom: 4px;
    }

    .badge-panel-desc {
        margin-bottom: 0;
        font-size: 13px;
    }

    .badge-panel-date-section {
        border-top: none;
        padding-top: 0;
    }

    .badge-panel-aside {
        display: block;
        flex-shrink: 0;
        text-align: right;
        white-space: nowrap;
    }

    .badge-panel-aside .badge-panel-status {
        margin-bottom: 4px;
    }

    .badge-panel-aside .badge-panel-date-section {
        border-top: none;
        padding-top: 0;
    }

    .badge-panel-aside .badge-panel-hint {
        border-top: none;
        padding-top: 4px;
    }
}

/* Settings Dropdown in Stats Footer */
.stats-footer {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 8px;
}

.settings-dropdown {
    position: relative;
    display: inline-block;
}

.settings-trigger {
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    font-size: 12px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 8px;
}

.settings-trigger:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.05);
}

.settings-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: rgba(20, 20, 25, 0.98);
    backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 8px;
    min-width: 160px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.settings-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(12px);
}

.dropdown-item-danger {
    color: #ff6b6b;
}

.dropdown-item-danger:hover {
    background: rgba(255, 0, 0, 0.1);
}

/* Fix for button elements inside settings dropdown */
.settings-dropdown-menu {
    background: #1a1a1f !important;
}

.settings-dropdown-menu .dropdown-item {
    background: transparent !important;
    border: none;
    color: #ff6b6b;
    width: 100%;
    text-align: left;
}

.settings-dropdown-menu .dropdown-item:hover {
    background: rgba(255, 0, 0, 0.15) !important;
}

/* Stats Modal - Mobile compact */
@media (max-width: 768px) {
    .stats-modal .modal-content {
        padding: 18px;
        padding-bottom: 12px;
        max-height: 100vh;
        border: 1px solid rgba(255, 183, 77, 0.12);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    }

    .stats-header {
        margin-bottom: 16px;
    }

    .stats-header-icon {
        width: 40px;
        height: 40px;
    }

    .stats-header-icon svg {
        width: 21px;
        height: 21px;
    }

    .stats-header h2 {
        font-size: 21px;
    }

    .stats-grid {
        gap: 7px;
        margin-bottom: 16px;
    }

    .stat-card {
        padding: 13px 7px 11px;
        border-radius: 13px;
    }

    .stat-icon {
        font-size: 25px;
        margin-bottom: 5px;
    }

    .stat-label {
        font-size: 11px;
        margin-bottom: 3px;
    }

    .stat-value {
        font-size: 25px;
    }

    .stat-sublabel {
        font-size: 10px;
    }

    .stats-section {
        margin-bottom: 16px;
    }

    .stats-section-title {
        font-size: 14px;
        margin-bottom: 9px;
    }

    .favorite-card {
        padding: 11px 13px;
        margin-bottom: 7px;
    }

    .favorite-card-icon {
        width: 36px;
        height: 36px;
    }

    .favorite-card-label {
        font-size: 10px;
    }

    .favorite-card-value {
        font-size: 14px;
    }

    .favorite-card-pill {
        font-size: 11px;
        padding: 4px 9px;
    }

    .stats-separator {
        margin: 13px 0 11px;
    }

    .achievements-section {
        padding: 13px !important;
        border: 1px solid rgba(255, 183, 77, 0.12);
        border-radius: 16px;
    }

    .achievements-progress-bar {
        margin-top: 9px;
    }

    .recently-unlocked {
        margin-top: 9px;
        padding-top: 9px;
    }

    .recent-badge {
        width: 34px;
        height: 34px;
        font-size: 19px;
    }

    .achievement-hint {
        margin: 15px 0 11px;
        font-size: 12px;
    }
}

/* Achievement Popup Styles */
.achievement-popup {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(10, 10, 10, 0.95) 100%);
    border: 2px solid #FF006E;
    border-radius: 20px;
    padding: 24px;
    min-width: 300px;
    max-width: 360px;
    transform: translateX(450px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 10000;
    box-shadow: 0 0 40px rgba(255, 0, 110, 0.4);
    cursor: pointer;
}

.achievement-popup.show {
    transform: translateX(0);
    opacity: 1;
}

.achievement-popup.hide {
    transform: translateX(450px) scale(0.8);
    opacity: 0;
}

.achievement-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.achievement-icon {
    font-size: 56px;
    line-height: 1;
}

.achievement-text h3 {
    color: #FFD700;
    margin: 0 0 6px 0;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.achievement-text h4 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 4px 0;
    background: linear-gradient(135deg, #FF006E, #00F5FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.achievement-text p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 14px;
    line-height: 1.4;
}

/* Achievement Icon Wrapper & Sparkles */
.achievement-icon-wrapper {
    position: relative;
    display: inline-block;
}

.achievement-sparkles {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.achievement-sparkles .sparkle {
    position: absolute;
    font-size: 16px;
    animation: sparkleFloat 1.5s ease-in-out infinite;
}

.achievement-sparkles .sparkle:nth-child(1) {
    top: -20px;
    left: -10px;
    animation-delay: 0s;
}

.achievement-sparkles .sparkle:nth-child(2) {
    top: -15px;
    right: -15px;
    animation-delay: 0.3s;
}

.achievement-sparkles .sparkle:nth-child(3) {
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0.6s;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

/* Glassmorphism Fallback */
@supports not (backdrop-filter: blur(10px)) {
    .modal-content,
    .game-card,
    .live-counter,
    .game-legend {
        background: rgba(10, 10, 10, 0.9);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    }
}

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

/* Mobile responsive for achievement popup */
@media (max-width: 480px) {
    .achievement-popup {
        top: 10px;
        right: 10px;
        left: 10px;
        min-width: unset;
        max-width: unset;
    }
    
    .achievement-content {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================
   BADGE SYSTEM - STYLE 2: ICON CIRCLES
   Add this to your style.css file
   ========================================== */

   .badges-collection {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.badge-circle-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.2s;
}

.badge-circle-container:hover {
    transform: translateY(-4px);
}

.badge-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.badge-circle:hover {
    transform: scale(1.1) rotate(5deg);
}

/* BRONZE TIER */
.badge-circle.bronze {
    background: linear-gradient(135deg, #CD7F32, #8B5A2B);
    border: 3px solid #CD7F32;
    box-shadow: 
        0 0 20px rgba(205, 127, 50, 0.4),
        inset 0 2px 10px rgba(255, 255, 255, 0.2);
}

.badge-circle.bronze:hover {
    box-shadow: 0 0 30px rgba(205, 127, 50, 0.7);
}

/* SILVER TIER */
.badge-circle.silver {
    background: linear-gradient(135deg, #E0E0E0, #A8A8A8);
    border: 3px solid #C0C0C0;
    box-shadow: 
        0 0 25px rgba(192, 192, 192, 0.5),
        inset 0 2px 10px rgba(255, 255, 255, 0.3);
}

.badge-circle.silver:hover {
    box-shadow: 0 0 35px rgba(192, 192, 192, 0.8);
}

/* GOLD TIER */
.badge-circle.gold {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border: 3px solid #FFD700;
    box-shadow: 
        0 0 30px rgba(255, 215, 0, 0.6),
        inset 0 2px 10px rgba(255, 255, 255, 0.3);
}

.badge-circle.gold:hover {
    box-shadow: 0 0 45px rgba(255, 215, 0, 0.9);
}

/* DIAMOND TIER (ANIMATED) */
.badge-circle.diamond {
    background: linear-gradient(135deg, #B9F2FF, #00F5FF, #8A2BE2);
    border: 3px solid #B9F2FF;
    box-shadow: 0 0 35px rgba(185, 242, 255, 0.8);
    animation: diamond-glow 3s infinite;
}

@keyframes diamond-glow {
    0%, 100% { 
        box-shadow: 0 0 35px rgba(185, 242, 255, 0.8);
    }
    50% { 
        box-shadow: 0 0 50px rgba(255, 0, 255, 1);
    }
}

/* LOCKED STATE */
.badge-circle-container.locked .badge-circle {
    opacity: 0.3;
    filter: grayscale(100%);
    background: linear-gradient(135deg, #333, #222);
    border-color: #555;
    box-shadow: none;
}

.badge-circle-container.locked:hover .badge-circle {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.badge-circle-container.locked .badge-name {
    opacity: 0.5;
}

/* BADGE ICON */
.badge-icon {
    font-size: 36px;
    position: relative;
    z-index: 1;
}

/* LOCK OVERLAY */
.badge-lock {
    position: absolute;
    font-size: 20px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

/* BADGE TIER LABEL */
.badge-tier {
    font-size: 10px;
    text-transform: uppercase;
    opacity: 0.6;
    margin-bottom: 4px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* BADGE NAME */
.badge-name {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    max-width: 100px;
}

/* ACHIEVEMENT HINT */
.achievement-hint {
    text-align: center;
    opacity: 0.7;
    font-size: 14px;
    margin-top: 16px;
    font-style: italic;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .badges-collection {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 12px;
    }
    
    .badge-circle {
        width: 70px;
        height: 70px;
    }
    
    .badge-icon {
        font-size: 30px;
    }
    
    .badge-name {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .badges-collection {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        gap: 10px;
    }
    
    .badge-circle {
        width: 60px;
        height: 60px;
    }
    
    .badge-icon {
        font-size: 26px;
    }
}

/* ==============================================
   SIMPLE 3-COLUMN GRID LAYOUT
   ============================================== */

/* Remove old section-based layout */
.games-layout {
    display: block;
}

.game-section,
.game-section-local,
.game-section-online {
    display: none;
}

/* New simple games grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Desktop - logo centering */
@media (min-width: 769px) {
    .logo {
        margin: 0 auto;
    }
}

/* Desktop - comfortable 3 columns */
@media (min-width: 769px) {
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        margin-top: 15px;
    }
}

/* Tablet - 3 columns, smaller gap and font */
@media (min-width: 480px) and (max-width: 768px) {
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .game-card {
        padding: 1.5rem;
    }

    .game-card .game-title {
        font-size: 19px;
    }

    .game-card .game-description {
        font-size: 16px;
    }
}

/* Mobile - 1 column (cards stacked, compact) */
@media (max-width: 479px) {
    .games-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 0 1rem;
    }

    .game-card {
        padding: 1rem 1.25rem;
        min-height: auto;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }

    .game-card .game-icon {
        font-size: 48px;
        height: 48px;
        min-width: 48px;
        margin-bottom: 0;
        transition: transform 0.3s ease;
    }

    .game-card .icon-large {
        width: 48px;
        height: 48px;
    }

    .game-card:active .game-icon,
    .game-card:hover .game-icon {
        transform: rotate(-10deg) scale(1.1);
    }

    .game-card-content {
        display: flex;
        flex-direction: column;
        text-align: left;
    }

    .game-card .game-title {
        font-size: 19px;
        margin-bottom: 0.25rem;
    }

    .game-card .game-description {
        font-size: 15px;
        line-height: 1.4;
        margin-bottom: 0;
    }

    .game-card .game-stats {
        font-size: 10px;
        flex-direction: column;
        gap: 0.25rem;
        align-items: flex-start;
    }

    .game-card .game-badge {
        font-size: 9px;
        padding: 2px 6px;
    }

    .game-card .player-count .icon-small {
        width: 12px;
        height: 12px;
    }

    /* Ensure touch targets are accessible */
    .game-card {
        touch-action: manipulation;
    }
}

/* Hide game legend (no longer needed) */
.game-legend {
    display: none;
}

/* Welcome Popup - kompaktniejszy i ładniejszy */
.welcome-popup-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 8px 20px 24px 20px;
}

.welcome-popup-content .achievement-icon-wrapper {
    position: relative;
    margin-bottom: 16px;
}

.welcome-icon {
    font-size: 56px;
    position: relative;
    filter: drop-shadow(0 0 30px rgba(255, 0, 110, 0.8)) drop-shadow(0 0 60px rgba(131, 56, 236, 0.5));
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        filter: drop-shadow(0 0 25px rgba(255, 0, 110, 0.7)) drop-shadow(0 0 50px rgba(131, 56, 236, 0.4));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 40px rgba(255, 0, 110, 1)) drop-shadow(0 0 70px rgba(131, 56, 236, 0.6));
        transform: scale(1.05);
    }
}

.welcome-header {
    color: var(--color-primary, #FF006E);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 0 0 6px 0;
}

.welcome-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.2;
    background: linear-gradient(135deg, #FF006E, #00F5FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-subtitle {
    color: #888888;
    font-size: 13px;
    margin: 0 0 20px 0;
}

.welcome-buttons {
    display: flex;
    gap: 10px;
    width: 100%;
    justify-content: center;
}

.welcome-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.welcome-btn:hover {
    transform: translateY(-2px);
}

.welcome-btn-primary {
    background: linear-gradient(135deg, #FF006E, #8338EC);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 0, 110, 0.4);
}

.welcome-btn-primary:hover {
    box-shadow: 0 6px 20px rgba(255, 0, 110, 0.5);
}

.welcome-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #AAAAAA;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.welcome-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
}

@media (max-width: 480px) {
    .welcome-popup-content {
        padding: 4px 16px 20px 16px;
    }

    .welcome-icon {
        font-size: 48px;
        margin-bottom: 8px;
    }

    .welcome-title {
        font-size: 20px;
    }

    .welcome-buttons {
        flex-direction: column;
    }

    .welcome-btn {
        width: 100%;
    }
}