/**
 * COMPOS SPOT THE BALL - GAME STYLES ULTIMATE
 * 
 * EXACT MATCH to Compos.co.uk branding
 * Based on dashboard-ultimate CSS
 * 
 * Color Scheme:
 * - Primary: #FF650E (Orange)
 * - Backgrounds: #000, #0a0a0a, #141414, #1e1e1e, #2a2a2a
 * - Text: #ffffff, #e5e5e5, #b3b3b3, #808080
 * - Accents: Orange gradients, glows, animations
 * 
 * @version 2.0.0
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

/* ============================================================================
   ROOT VARIABLES - EXACT COMPOS BRANDING
   ============================================================================ */

:root {
    /* Brand Colors */
    --stb-orange: #FF650E;
    --stb-orange-light: #FF8B4A;
    --stb-orange-dark: #E5470A;
    --stb-orange-glow: rgba(255, 101, 14, 0.4);
    --stb-orange-subtle: rgba(255, 101, 14, 0.15);
    
    /* Backgrounds - Dark Theme */
    --stb-bg-black: #000000;
    --stb-bg-1: #0a0a0a;
    --stb-bg-2: #141414;
    --stb-bg-3: #1e1e1e;
    --stb-bg-4: #2a2a2a;
    
    /* Text Colors */
    --stb-text-white: #ffffff;
    --stb-text-1: #e5e5e5;
    --stb-text-2: #b3b3b3;
    --stb-text-3: #808080;
    --stb-text-4: #666666;
    
    /* Status Colors */
    --stb-green: #4ade80;
    --stb-green-dark: #22c55e;
    --stb-blue: #3b82f6;
    --stb-purple: #a855f7;
    --stb-red: #ef4444;
    --stb-yellow: #f59e0b;
    
    /* Spacing */
    --stb-space-xs: 8px;
    --stb-space-sm: 16px;
    --stb-space-md: 24px;
    --stb-space-lg: 32px;
    --stb-space-xl: 48px;
    --stb-space-xxl: 64px;
    
    /* Shadows */
    --stb-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.6);
    --stb-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.7);
    --stb-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.8);
    --stb-shadow-orange: 0 8px 24px var(--stb-orange-glow);
    --stb-shadow-orange-lg: 0 12px 48px var(--stb-orange-glow);
    
    /* Borders */
    --stb-radius-sm: 12px;
    --stb-radius-md: 16px;
    --stb-radius-lg: 24px;
    --stb-radius-full: 9999px;
    --stb-border: var(--stb-bg-4);
}

/* ============================================================================
   RESET & BASE STYLES
   ============================================================================ */

.stb-widget,
.stb-widget *,
.stb-widget *::before,
.stb-widget *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.stb-widget {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--stb-bg-black);
    color: var(--stb-text-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================================================
   FULL-SCREEN GAME WIDGET
   ============================================================================ */

.stb-game-fullscreen {
    min-height: 100vh;
    background: linear-gradient(180deg, var(--stb-bg-black) 0%, var(--stb-bg-1) 100%);
    position: relative;
    overflow: hidden;
}

/* Animated background glow */
.stb-game-fullscreen::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--stb-orange-subtle) 0%, transparent 70%);
    animation: stbHeroGlow 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.stb-game-fullscreen::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    animation: stbHeroGlow 12s ease-in-out infinite reverse;
    pointer-events: none;
    z-index: 0;
}

@keyframes stbHeroGlow {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.2) rotate(15deg);
        opacity: 0.6;
    }
}

.stb-game-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--stb-space-lg);
    position: relative;
    z-index: 1;
}

/* ============================================================================
   HERO HEADER - MASSIVE JACKPOT DISPLAY
   ============================================================================ */

.stb-hero {
    background: linear-gradient(135deg, var(--stb-bg-1) 0%, var(--stb-bg-2) 100%);
    border-radius: var(--stb-radius-lg);
    padding: var(--stb-space-xl) var(--stb-space-lg);
    margin-bottom: var(--stb-space-lg);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--stb-border);
    box-shadow: var(--stb-shadow-lg);
}

.stb-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--stb-orange-subtle) 0%, transparent 70%);
    animation: stbHeroGlow 6s ease-in-out infinite;
    pointer-events: none;
}

.stb-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--stb-space-lg);
}

.stb-hero-left {
    flex: 1;
    min-width: 300px;
}

.stb-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--stb-orange), var(--stb-orange-light));
    color: var(--stb-text-white);
    padding: 8px 20px;
    border-radius: var(--stb-radius-full);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--stb-space-sm);
    box-shadow: var(--stb-shadow-orange);
}

.stb-hero-badge.live {
    animation: stbPulse 2s ease-in-out infinite;
}

.stb-hero-badge.live::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--stb-text-white);
    border-radius: 50%;
    animation: stbBlink 1s infinite;
}

@keyframes stbPulse {
    0%, 100% { box-shadow: var(--stb-shadow-orange); }
    50% { box-shadow: var(--stb-shadow-orange-lg); }
}

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

.stb-hero-title {
    font-size: 42px;
    font-weight: 900;
    color: var(--stb-text-white);
    margin: 0 0 12px 0;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.stb-hero-meta {
    display: flex;
    align-items: center;
    gap: var(--stb-space-md);
    flex-wrap: wrap;
}

.stb-difficulty-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: var(--stb-radius-full);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stb-difficulty-easy { background: var(--stb-green); color: #000; }
.stb-difficulty-medium { background: var(--stb-yellow); color: #000; }
.stb-difficulty-hard { background: var(--stb-red); color: #fff; }
.stb-difficulty-extreme { background: var(--stb-purple); color: #fff; }

.stb-sport-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--stb-bg-3);
    color: var(--stb-text-2);
    padding: 6px 14px;
    border-radius: var(--stb-radius-full);
    font-size: 12px;
    font-weight: 600;
}

/* JACKPOT DISPLAY - THE STAR */
.stb-hero-right {
    text-align: center;
}

.stb-jackpot-display {
    background: linear-gradient(135deg, var(--stb-bg-2) 0%, var(--stb-bg-3) 100%);
    border: 2px solid var(--stb-orange);
    border-radius: var(--stb-radius-lg);
    padding: var(--stb-space-lg) var(--stb-space-xl);
    position: relative;
    overflow: hidden;
    box-shadow: var(--stb-shadow-orange);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stb-jackpot-display:hover {
    transform: translateY(-4px);
    box-shadow: var(--stb-shadow-orange-lg);
}

.stb-jackpot-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--stb-orange), var(--stb-orange-light), var(--stb-orange));
    background-size: 200% 100%;
    animation: stbShimmer 2s linear infinite;
}

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

.stb-jackpot-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--stb-text-3);
    margin-bottom: 8px;
}

.stb-jackpot-value {
    font-size: 56px;
    font-weight: 900;
    color: var(--stb-orange);
    line-height: 1;
    text-shadow: 0 4px 20px var(--stb-orange-glow);
    margin-bottom: 8px;
}

.stb-jackpot-gbp {
    font-size: 18px;
    font-weight: 700;
    color: var(--stb-green);
}

/* ============================================================================
   STATS BAR - FLOATING CARDS
   ============================================================================ */

.stb-stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--stb-space-md);
    margin-bottom: var(--stb-space-lg);
}

.stb-stat-card {
    background: linear-gradient(135deg, var(--stb-bg-2) 0%, var(--stb-bg-3) 100%);
    border-radius: var(--stb-radius-md);
    padding: var(--stb-space-md);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--stb-border);
    box-shadow: var(--stb-shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stb-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--stat-color, var(--stb-orange)), transparent);
}

.stb-stat-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--stb-shadow-lg);
    border-color: var(--stat-color, var(--stb-orange));
}

.stb-stat-card.orange { --stat-color: var(--stb-orange); }
.stb-stat-card.green { --stat-color: var(--stb-green); }
.stb-stat-card.blue { --stat-color: var(--stb-blue); }
.stb-stat-card.purple { --stat-color: var(--stb-purple); }

.stb-stat-icon {
    font-size: 36px;
    margin-bottom: 8px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

.stb-stat-value {
    font-size: 32px;
    font-weight: 900;
    color: var(--stb-text-white);
    line-height: 1.1;
}

.stb-stat-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--stb-text-3);
    margin-top: 4px;
}

/* ============================================================================
   GAME AREA - CANVAS & TOOLBAR
   ============================================================================ */

.stb-game-section {
    background: linear-gradient(135deg, var(--stb-bg-1) 0%, var(--stb-bg-2) 100%);
    border-radius: var(--stb-radius-lg);
    overflow: hidden;
    border: 1px solid var(--stb-border);
    box-shadow: var(--stb-shadow-lg);
    margin-bottom: var(--stb-space-lg);
}

/* Toolbar */
.stb-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--stb-space-sm);
    padding: var(--stb-space-sm) var(--stb-space-md);
    background: var(--stb-bg-2);
    border-bottom: 1px solid var(--stb-border);
}

.stb-tools {
    display: flex;
    gap: 6px;
}

.stb-tool {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--stb-bg-3);
    border: 2px solid transparent;
    border-radius: var(--stb-radius-sm);
    cursor: pointer;
    font-size: 20px;
    transition: all 0.2s;
}

.stb-tool:hover {
    background: var(--stb-bg-4);
    border-color: var(--stb-orange);
    transform: translateY(-2px);
}

.stb-tool.active {
    background: linear-gradient(135deg, var(--stb-orange), var(--stb-orange-light));
    border-color: var(--stb-orange);
    box-shadow: var(--stb-shadow-orange);
}

.stb-zoom-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--stb-bg-3);
    padding: 6px 12px;
    border-radius: var(--stb-radius-sm);
}

.stb-zoom-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--stb-text-white);
    cursor: pointer;
    font-size: 18px;
    border-radius: 6px;
    transition: all 0.2s;
}

.stb-zoom-btn:hover {
    background: var(--stb-bg-4);
    color: var(--stb-orange);
}

.stb-zoom-level {
    font-size: 13px;
    font-weight: 700;
    color: var(--stb-text-2);
    min-width: 45px;
    text-align: center;
}

.stb-coords {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 12px;
    color: var(--stb-text-3);
    background: var(--stb-bg-3);
    padding: 8px 14px;
    border-radius: var(--stb-radius-sm);
}

.stb-coord-value {
    color: var(--stb-orange);
    font-weight: 700;
}

.stb-drawing-actions {
    display: flex;
    gap: 8px;
}

.stb-btn-small {
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid var(--stb-border);
    background: var(--stb-bg-3);
    color: var(--stb-text-1);
    border-radius: var(--stb-radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.stb-btn-small:hover {
    background: var(--stb-bg-4);
    border-color: var(--stb-orange);
    color: var(--stb-orange);
}

/* Canvas Container */
.stb-canvas-wrapper {
    position: relative;
    background: var(--stb-bg-black);
    min-height: 500px;
}

.stb-canvas-container {
    position: relative;
    width: 100%;
    cursor: crosshair;
}

.stb-canvas-container canvas {
    display: block;
    max-width: 100%;
}

.stb-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--stb-bg-black);
    z-index: 10;
}

.stb-loading-overlay.hidden {
    display: none;
}

.stb-loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--stb-bg-3);
    border-top-color: var(--stb-orange);
    border-radius: 50%;
    animation: stbSpin 1s linear infinite;
    margin-bottom: var(--stb-space-sm);
}

@keyframes stbSpin {
    to { transform: rotate(360deg); }
}

.stb-loading-text {
    font-size: 14px;
    color: var(--stb-text-3);
}

/* ============================================================================
   INFO BAR - USER STATUS
   ============================================================================ */

.stb-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--stb-space-md);
    padding: var(--stb-space-md);
    background: var(--stb-bg-2);
    border-top: 1px solid var(--stb-border);
}

.stb-info-group {
    display: flex;
    gap: var(--stb-space-lg);
}

.stb-info-item {
    text-align: center;
}

.stb-info-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--stb-text-3);
    margin-bottom: 4px;
}

.stb-info-value {
    font-size: 20px;
    font-weight: 800;
    color: var(--stb-text-white);
}

.stb-info-value.highlight {
    color: var(--stb-orange);
}

.stb-info-value.success {
    color: var(--stb-green);
}

.stb-balance-display {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--stb-bg-3), var(--stb-bg-4));
    padding: 10px 20px;
    border-radius: var(--stb-radius-full);
    border: 1px solid var(--stb-border);
}

.stb-balance-icon {
    font-size: 20px;
}

.stb-balance-amount {
    font-size: 18px;
    font-weight: 800;
    color: var(--stb-green);
}

/* ============================================================================
   PURCHASE PANEL - BOLD & BEAUTIFUL
   ============================================================================ */

.stb-purchase-section {
    background: linear-gradient(135deg, var(--stb-bg-1) 0%, var(--stb-bg-2) 100%);
    border-radius: var(--stb-radius-lg);
    padding: var(--stb-space-lg);
    border: 1px solid var(--stb-border);
    box-shadow: var(--stb-shadow-md);
    margin-bottom: var(--stb-space-lg);
}

.stb-purchase-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--stb-space-md);
    padding-bottom: var(--stb-space-md);
    border-bottom: 2px solid var(--stb-border);
}

.stb-purchase-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--stb-text-white);
}

.stb-purchase-tabs {
    display: flex;
    gap: 8px;
}

.stb-purchase-tab {
    padding: 10px 24px;
    background: var(--stb-bg-3);
    border: 2px solid transparent;
    border-radius: var(--stb-radius-full);
    color: var(--stb-text-2);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.stb-purchase-tab:hover {
    border-color: var(--stb-orange);
    color: var(--stb-text-white);
}

.stb-purchase-tab.active {
    background: linear-gradient(135deg, var(--stb-orange), var(--stb-orange-light));
    border-color: var(--stb-orange);
    color: var(--stb-text-white);
    box-shadow: var(--stb-shadow-orange);
}

/* Quantity Cards */
.stb-quantity-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--stb-space-md);
    margin-bottom: var(--stb-space-md);
}

.stb-quantity-card {
    background: var(--stb-bg-2);
    border: 2px solid var(--stb-border);
    border-radius: var(--stb-radius-md);
    padding: var(--stb-space-md);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stb-quantity-card:hover {
    border-color: var(--stb-orange);
    transform: translateY(-4px);
    box-shadow: var(--stb-shadow-md);
}

.stb-quantity-card.selected {
    border-color: var(--stb-orange);
    background: var(--stb-orange-subtle);
    box-shadow: var(--stb-shadow-orange);
}

.stb-quantity-card.popular::before {
    content: 'POPULAR';
    position: absolute;
    top: 0;
    right: 0;
    background: var(--stb-orange);
    color: var(--stb-text-white);
    font-size: 9px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 0 var(--stb-radius-md) 0 var(--stb-radius-sm);
}

.stb-quantity-amount {
    font-size: 36px;
    font-weight: 900;
    color: var(--stb-text-white);
    line-height: 1;
    margin-bottom: 4px;
}

.stb-quantity-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--stb-text-3);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.stb-quantity-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--stb-orange);
}

.stb-quantity-discount {
    font-size: 11px;
    font-weight: 700;
    color: var(--stb-green);
    margin-top: 4px;
}

.stb-purchase-action {
    display: flex;
    gap: var(--stb-space-md);
    align-items: center;
}

/* ============================================================================
   BUTTONS - BOLD & IMPACTFUL
   ============================================================================ */

.stb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    border: none;
    border-radius: var(--stb-radius-sm);
    font-family: inherit;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.stb-btn-primary {
    background: linear-gradient(135deg, var(--stb-orange), var(--stb-orange-light));
    color: var(--stb-text-white);
    box-shadow: var(--stb-shadow-orange);
}

.stb-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--stb-shadow-orange-lg);
}

.stb-btn-primary:active {
    transform: translateY(-1px);
}

.stb-btn-secondary {
    background: var(--stb-bg-3);
    color: var(--stb-text-white);
    border: 2px solid var(--stb-border);
}

.stb-btn-secondary:hover {
    background: var(--stb-bg-4);
    border-color: var(--stb-orange);
}

.stb-btn-lg {
    padding: 20px 48px;
    font-size: 18px;
}

.stb-btn-block {
    width: 100%;
}

/* ============================================================================
   ENTRIES LIST
   ============================================================================ */

.stb-entries-section {
    background: linear-gradient(135deg, var(--stb-bg-1) 0%, var(--stb-bg-2) 100%);
    border-radius: var(--stb-radius-lg);
    padding: var(--stb-space-lg);
    border: 1px solid var(--stb-border);
    margin-bottom: var(--stb-space-lg);
}

.stb-entries-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--stb-space-md);
}

.stb-entries-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--stb-text-white);
}

.stb-entries-count {
    background: var(--stb-orange);
    color: var(--stb-text-white);
    padding: 4px 12px;
    border-radius: var(--stb-radius-full);
    font-size: 12px;
    font-weight: 800;
}

.stb-entries-list {
    max-height: 300px;
    overflow-y: auto;
}

.stb-entry-item {
    display: flex;
    align-items: center;
    gap: var(--stb-space-sm);
    padding: 12px 16px;
    background: var(--stb-bg-2);
    border-radius: var(--stb-radius-sm);
    margin-bottom: 8px;
    border: 1px solid var(--stb-border);
    transition: all 0.2s;
}

.stb-entry-item:hover {
    border-color: var(--stb-orange);
    background: var(--stb-bg-3);
}

.stb-entry-number {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--stb-orange), var(--stb-orange-light));
    color: var(--stb-text-white);
    border-radius: 50%;
    font-size: 13px;
    font-weight: 800;
}

.stb-entry-coords {
    flex: 1;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 13px;
    color: var(--stb-text-2);
}

.stb-entry-time {
    font-size: 11px;
    color: var(--stb-text-3);
}

.stb-no-entries {
    text-align: center;
    padding: var(--stb-space-xl);
    color: var(--stb-text-3);
}

.stb-no-entries-icon {
    font-size: 48px;
    margin-bottom: var(--stb-space-sm);
    opacity: 0.5;
}

/* ============================================================================
   LIVE ACTIVITY FEED
   ============================================================================ */

.stb-activity-feed {
    background: linear-gradient(135deg, var(--stb-bg-1) 0%, var(--stb-bg-2) 100%);
    border-radius: var(--stb-radius-lg);
    padding: var(--stb-space-lg);
    border: 1px solid var(--stb-border);
    margin-bottom: var(--stb-space-lg);
}

.stb-activity-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: var(--stb-space-md);
}

.stb-activity-dot {
    width: 10px;
    height: 10px;
    background: var(--stb-green);
    border-radius: 50%;
    animation: stbBlink 1.5s infinite;
}

.stb-activity-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--stb-text-2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stb-activity-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stb-activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--stb-bg-2);
    border-radius: var(--stb-radius-sm);
    animation: stbSlideIn 0.3s ease-out;
}

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

.stb-activity-avatar {
    width: 32px;
    height: 32px;
    background: var(--stb-bg-4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.stb-activity-text {
    flex: 1;
    font-size: 13px;
    color: var(--stb-text-2);
}

.stb-activity-text strong {
    color: var(--stb-text-white);
}

.stb-activity-time {
    font-size: 11px;
    color: var(--stb-text-3);
}

/* ============================================================================
   MODAL - CONFIRMATION
   ============================================================================ */

.stb-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--stb-space-md);
}

.stb-modal.active {
    display: flex;
}

.stb-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
}

.stb-modal-content {
    background: linear-gradient(135deg, var(--stb-bg-2), var(--stb-bg-3));
    border-radius: var(--stb-radius-lg);
    max-width: 450px;
    width: 100%;
    position: relative;
    z-index: 2;
    box-shadow: var(--stb-shadow-lg);
    border: 1px solid var(--stb-border);
    animation: stbModalIn 0.3s ease;
    overflow: hidden;
}

@keyframes stbModalIn {
    from {
        transform: translateY(-30px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.stb-modal-header {
    padding: var(--stb-space-lg);
    border-bottom: 2px solid var(--stb-border);
    text-align: center;
}

.stb-modal-icon {
    font-size: 56px;
    margin-bottom: var(--stb-space-sm);
}

.stb-modal-title {
    font-size: 24px;
    font-weight: 900;
    color: var(--stb-text-white);
    margin: 0;
}

.stb-modal-body {
    padding: var(--stb-space-lg);
    text-align: center;
}

.stb-modal-coords {
    display: inline-flex;
    gap: var(--stb-space-md);
    background: var(--stb-bg-1);
    padding: 16px 32px;
    border-radius: var(--stb-radius-md);
    margin-bottom: var(--stb-space-md);
}

.stb-modal-coord {
    text-align: center;
}

.stb-modal-coord-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--stb-text-3);
}

.stb-modal-coord-value {
    font-size: 28px;
    font-weight: 900;
    color: var(--stb-orange);
    font-family: 'Monaco', monospace;
}

.stb-modal-footer {
    display: flex;
    gap: var(--stb-space-sm);
    padding: var(--stb-space-lg);
    border-top: 2px solid var(--stb-border);
}

.stb-modal-footer .stb-btn {
    flex: 1;
}

/* ============================================================================
   TOAST NOTIFICATIONS
   ============================================================================ */

.stb-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--stb-bg-2);
    color: var(--stb-text-white);
    padding: 16px 28px;
    border-radius: var(--stb-radius-md);
    font-size: 15px;
    font-weight: 600;
    z-index: 999999;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--stb-border);
    box-shadow: var(--stb-shadow-lg);
    max-width: 90%;
    text-align: center;
}

.stb-toast.active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.stb-toast.success {
    background: var(--stb-green);
    color: #000;
    border-color: var(--stb-green);
}

.stb-toast.error {
    background: var(--stb-red);
    color: #fff;
    border-color: var(--stb-red);
}

.stb-toast.info {
    background: var(--stb-blue);
    color: #fff;
    border-color: var(--stb-blue);
}

/* ============================================================================
   WINNER CELEBRATION - FULL SCREEN EPIC
   ============================================================================ */

.stb-celebration {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.stb-celebration.active {
    display: flex;
    animation: stbCelebrationIn 0.5s ease;
}

@keyframes stbCelebrationIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.stb-celebration-content {
    text-align: center;
    padding: var(--stb-space-xxl);
    animation: stbBounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes stbBounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

.stb-celebration-icon {
    font-size: 120px;
    animation: stbTrophy 1s ease infinite;
    margin-bottom: var(--stb-space-lg);
}

@keyframes stbTrophy {
    0%, 100% { transform: rotate(-5deg) scale(1); }
    50% { transform: rotate(5deg) scale(1.1); }
}

.stb-celebration-title {
    font-size: 64px;
    font-weight: 900;
    color: var(--stb-orange);
    text-shadow: 0 0 60px var(--stb-orange-glow);
    margin-bottom: var(--stb-space-md);
    letter-spacing: -1px;
}

.stb-celebration-subtitle {
    font-size: 24px;
    color: var(--stb-text-1);
    margin-bottom: var(--stb-space-lg);
}

.stb-celebration-prize {
    font-size: 80px;
    font-weight: 900;
    color: var(--stb-green);
    text-shadow: 0 0 40px rgba(74, 222, 128, 0.5);
    margin-bottom: var(--stb-space-lg);
}

.stb-celebration-distance {
    font-size: 18px;
    color: var(--stb-text-2);
    margin-bottom: var(--stb-space-xl);
}

.stb-celebration-actions {
    display: flex;
    gap: var(--stb-space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* Confetti Canvas */
#stb-confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999998;
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 1024px) {
    .stb-hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .stb-hero-meta {
        justify-content: center;
    }
    
    .stb-quantity-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stb-stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .stb-game-container {
        padding: var(--stb-space-sm);
    }
    
    .stb-hero {
        padding: var(--stb-space-lg) var(--stb-space-md);
    }
    
    .stb-hero-title {
        font-size: 28px;
    }
    
    .stb-jackpot-value {
        font-size: 40px;
    }
    
    .stb-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .stb-tools {
        justify-content: center;
    }
    
    .stb-info-bar {
        flex-direction: column;
        text-align: center;
    }
    
    .stb-info-group {
        justify-content: center;
    }
    
    .stb-quantity-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .stb-celebration-title {
        font-size: 36px;
    }
    
    .stb-celebration-prize {
        font-size: 48px;
    }
    
    .stb-modal-footer {
        flex-direction: column;
    }
}

/* ============================================================================
   HEATMAP OVERLAY
   ============================================================================ */

.stb-heatmap-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s;
}

.stb-heatmap-overlay.active {
    opacity: 0.7;
}

/* ============================================================================
   RESULTS REVEAL
   ============================================================================ */

.stb-results-reveal {
    background: linear-gradient(135deg, var(--stb-bg-1) 0%, var(--stb-bg-2) 100%);
    border-radius: var(--stb-radius-lg);
    overflow: hidden;
    border: 2px solid var(--stb-orange);
    box-shadow: var(--stb-shadow-orange);
}

.stb-results-header {
    background: linear-gradient(135deg, var(--stb-orange), var(--stb-orange-light));
    padding: var(--stb-space-lg);
    text-align: center;
}

.stb-results-title {
    font-size: 28px;
    font-weight: 900;
    color: var(--stb-text-white);
    margin: 0;
}

.stb-results-image {
    position: relative;
}

.stb-results-image img {
    width: 100%;
    display: block;
}

.stb-ball-marker {
    position: absolute;
    width: 40px;
    height: 40px;
    background: var(--stb-orange);
    border: 4px solid var(--stb-text-white);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px var(--stb-orange-glow), 0 0 40px var(--stb-orange-glow);
    animation: stbPulse 1.5s ease-in-out infinite;
}

.stb-results-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--stb-border);
}

.stb-results-stat {
    background: var(--stb-bg-2);
    padding: var(--stb-space-md);
    text-align: center;
}

.stb-results-stat-value {
    font-size: 28px;
    font-weight: 900;
    color: var(--stb-orange);
}

.stb-results-stat-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--stb-text-3);
}

/* ============================================================================
   POOL GRID
   ============================================================================ */

.stb-pools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--stb-space-lg);
}

.stb-pool-card {
    background: linear-gradient(135deg, var(--stb-bg-1) 0%, var(--stb-bg-2) 100%);
    border-radius: var(--stb-radius-lg);
    overflow: hidden;
    border: 1px solid var(--stb-border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stb-pool-card:hover {
    transform: translateY(-8px);
    border-color: var(--stb-orange);
    box-shadow: var(--stb-shadow-orange);
}

.stb-pool-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

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

.stb-pool-badge {
    position: absolute;
    top: 12px;
    left: 12px;
}

.stb-pool-content {
    padding: var(--stb-space-md);
}

.stb-pool-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--stb-text-white);
    margin-bottom: 8px;
}

.stb-pool-jackpot {
    font-size: 32px;
    font-weight: 900;
    color: var(--stb-orange);
    margin-bottom: var(--stb-space-sm);
}

.stb-pool-meta {
    display: flex;
    gap: var(--stb-space-md);
    font-size: 12px;
    color: var(--stb-text-3);
    margin-bottom: var(--stb-space-md);
}

.stb-pool-cta {
    width: 100%;
}

/* ============================================================================
   UTILITY CLASSES
   ============================================================================ */

.stb-text-orange { color: var(--stb-orange) !important; }
.stb-text-green { color: var(--stb-green) !important; }
.stb-text-white { color: var(--stb-text-white) !important; }
.stb-text-muted { color: var(--stb-text-3) !important; }

.stb-hidden { display: none !important; }
.stb-visible { display: block !important; }

.stb-mb-0 { margin-bottom: 0 !important; }
.stb-mb-sm { margin-bottom: var(--stb-space-sm) !important; }
.stb-mb-md { margin-bottom: var(--stb-space-md) !important; }
.stb-mb-lg { margin-bottom: var(--stb-space-lg) !important; }

/* ============================================================================
   NEW STYLES - MATCHING OLD SYSTEM DESIGN
   ============================================================================ */

/* Sport Badge (Colored) */
.stb-sport-badge-colored {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

/* Hero Title - "[SPORT] SPOT THE BALL AI" */
.stb-hero-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--stb-text-white);
    margin: 0 0 4px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stb-hero-subtitle {
    font-size: 14px;
    color: var(--stb-text-3);
    margin-bottom: 16px;
}

/* How To Win Box */
.stb-how-to-win {
    background: var(--stb-bg-3);
    border-left: 4px solid var(--stb-orange);
    padding: 12px 16px;
    border-radius: 0 8px 8px 0;
    font-size: 13px;
    color: var(--stb-text-2);
    line-height: 1.5;
}

.stb-how-to-win-icon {
    margin-right: 8px;
}

/* Simple Stats Bar (DIFFICULTY / TOTAL ENTRIES / CONTRIBUTION) */
.stb-stats-bar-simple {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
    background: var(--stb-bg-2);
    border-radius: var(--stb-radius-lg);
    margin: 16px 0;
    text-align: center;
}

.stb-stat-simple .stb-stat-label {
    font-size: 11px;
    color: var(--stb-text-3);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.stb-stat-simple .stb-stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--stb-text-white);
}

/* Toolbar (Matching Old Design) */
.stb-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: var(--stb-bg-3);
    border-radius: var(--stb-radius-lg);
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.stb-tools {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.stb-tool {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    background: var(--stb-bg-4);
    border: none;
    color: var(--stb-text-2);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.stb-tool:hover {
    background: var(--stb-bg-2);
    color: var(--stb-text-white);
}

.stb-tool.active {
    background: linear-gradient(135deg, var(--stb-orange), var(--stb-orange-light));
    color: white;
}

.stb-tool-icon {
    font-size: 14px;
}

/* Coordinates Bar */
.stb-coords-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 8px 16px;
    background: var(--stb-bg-2);
    font-size: 13px;
    color: var(--stb-text-3);
    margin-top: 2px;
}

.stb-coords-separator {
    color: var(--stb-text-4);
}

/* Instruction Bar */
.stb-instruction-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--stb-bg-3);
    border-radius: var(--stb-radius-lg);
    margin-top: 16px;
    font-size: 13px;
    color: var(--stb-text-2);
    flex-wrap: wrap;
}

.stb-instruction-bar strong {
    color: var(--stb-orange);
}

/* Below Canvas Layout */
.stb-below-canvas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .stb-below-canvas {
        grid-template-columns: 1fr;
    }
}

/* Guesses Panel */
.stb-guesses-panel,
.stb-purchase-panel {
    background: var(--stb-bg-2);
    border-radius: var(--stb-radius-lg);
    padding: 20px;
    border: 1px solid var(--stb-bg-4);
}

.stb-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.stb-panel-header h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--stb-green);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Toggle Switch */
.stb-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--stb-text-3);
    cursor: pointer;
}

.stb-toggle input {
    display: none;
}

.stb-toggle-slider {
    width: 36px;
    height: 20px;
    background: var(--stb-bg-4);
    border-radius: 10px;
    position: relative;
    transition: all 0.2s;
}

.stb-toggle-slider::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: all 0.2s;
}

.stb-toggle input:checked + .stb-toggle-slider {
    background: var(--stb-green);
}

.stb-toggle input:checked + .stb-toggle-slider::after {
    left: 18px;
}

/* Guesses List */
.stb-guesses-list {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 16px;
}

.stb-guess-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--stb-bg-3);
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 13px;
    border-left: 3px solid var(--stb-orange);
}

.stb-guess-number {
    font-weight: 700;
    color: var(--stb-text-white);
}

.stb-guess-coords {
    color: var(--stb-text-2);
}

.stb-guess-distance {
    color: var(--stb-green);
    font-weight: 500;
    margin-left: auto;
}

.stb-no-guesses {
    text-align: center;
    padding: 30px 20px;
    color: var(--stb-text-3);
    font-size: 13px;
}

.stb-guesses-remaining {
    font-size: 14px;
    color: var(--stb-text-2);
}

.stb-guesses-remaining strong {
    font-size: 22px;
    color: var(--stb-green);
}

/* Balance Row */
.stb-balance-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--stb-bg-3);
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--stb-text-2);
}

.stb-balance-row .stb-balance-amount {
    font-size: 20px;
    font-weight: 700;
    color: var(--stb-orange);
}

/* Purchase Options */
.stb-purchase-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.stb-purchase-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 10px;
    background: transparent;
    border: 2px solid var(--stb-green);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.stb-purchase-btn:hover {
    background: rgba(74, 222, 128, 0.1);
    transform: translateY(-2px);
}

.stb-purchase-qty {
    font-size: 28px;
    font-weight: 800;
    color: var(--stb-text-white);
}

.stb-purchase-label {
    font-size: 11px;
    color: var(--stb-text-3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stb-purchase-price {
    font-size: 12px;
    color: var(--stb-orange);
    margin-top: 6px;
}

@media (max-width: 480px) {
    .stb-purchase-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Numbered Guess Markers on Canvas */
.stb-canvas-marker {
    position: absolute;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    border: 2px solid white;
    border-radius: 50%;
    color: white;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.stb-canvas-marker.current-user {
    background: linear-gradient(135deg, #ef4444, #f87171);
}
