/* ============================================================================
   CLAUDE ROYALE - Premium UI
   Glassmorphism | Neon Accents | eSports Aesthetic
   ============================================================================ */

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

:root {
    --primary: #ff6b4a;
    --primary-glow: rgba(255, 107, 74, 0.6);
    --secondary: #ffa726;
    --accent: #00e5ff;
    --accent-glow: rgba(0, 229, 255, 0.5);
    --bg-dark: #0a0a12;
    --bg-darker: #050508;
    --bg-card: rgba(15, 15, 25, 0.85);
    --bg-glass: rgba(255, 255, 255, 0.03);
    --border-glass: rgba(255, 255, 255, 0.08);
    --text: #ffffff;
    --text-dim: #8892a0;
    --danger: #ff3d5a;
    --success: #00e676;
    --purple: #b388ff;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: var(--bg-dark);
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow: hidden;
    color: var(--text);
    line-height: 1.5;
}

/* GPU Compositing */
.gpu-layer {
    transform: translateZ(0);
    will-change: transform, opacity;
    backface-visibility: hidden;
}

/* Glassmorphism Card Base */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
}

/* ============================================================================
   ANIMATED BACKGROUND
   ============================================================================ */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(255, 107, 74, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(0, 229, 255, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(179, 136, 255, 0.04) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
}

/* ============================================================================
   LOADING SCREEN
   ============================================================================ */
#loadingScreen {
    position: fixed;
    inset: 0;
    background: var(--bg-darker);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    opacity: 1;
    transition: opacity 0.6s ease-out;
}

#loadingScreen::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 70%, rgba(255, 107, 74, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 70% 30%, rgba(0, 229, 255, 0.1) 0%, transparent 40%);
    animation: bgPulse 4s ease-in-out infinite;
}

@keyframes bgPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

#loadingScreen.hidden {
    opacity: 0;
    pointer-events: none;
}

#loadingScreen .logo {
    position: relative;
    width: min(550px, 80vw);
    height: auto;
    margin-bottom: 3rem;
    filter: drop-shadow(0 0 40px var(--primary-glow));
    animation: logoFloat 3s ease-in-out infinite;
}

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

.loading-bar-container {
    width: min(320px, 75vw);
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.loading-bar-container::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 3px;
    border: 1px solid rgba(255, 107, 74, 0.3);
}

.loading-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
    background-size: 200% 100%;
    width: 0%;
    border-radius: 3px;
    transition: width 0.4s ease-out;
    animation: shimmer 2s linear infinite;
}

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

#loadingText {
    margin-top: 1.5rem;
    color: var(--text-dim);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 500;
}

/* ============================================================================
   MAIN MENU
   ============================================================================ */
#menu {
    position: fixed;
    inset: 0;
    background: var(--bg-darker);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#menu::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        url('menu-bg.png') center/cover no-repeat,
        radial-gradient(circle at 30% 70%, rgba(255, 107, 74, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(0, 229, 255, 0.15) 0%, transparent 50%);
    opacity: 0.6;
}

#menu::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, var(--bg-darker) 100%);
    opacity: 0.8;
}

#menu.hidden {
    display: none;
}

#menu > * {
    position: relative;
    z-index: 1;
}

.logo {
    width: min(650px, 85vw);
    height: auto;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 30px var(--primary-glow)) drop-shadow(0 0 60px var(--primary-glow));
    animation: logoFloat 3s ease-in-out infinite;
}

.subtitle {
    color: var(--text-dim);
    margin-bottom: 3rem;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 500;
}

.subtitle::before,
.subtitle::after {
    content: '//';
    color: var(--primary);
    margin: 0 0.5rem;
    opacity: 0.6;
}

#nameInput {
    padding: 20px 40px;
    font-size: 1.1rem;
    border: 2px solid rgba(255, 107, 74, 0.3);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    color: var(--text);
    margin-bottom: 1.5rem;
    width: min(380px, 85vw);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    outline: none;
    transition: all 0.3s ease;
}

#nameInput:focus {
    border-color: var(--primary);
    box-shadow:
        0 0 0 4px rgba(255, 107, 74, 0.1),
        0 0 40px rgba(255, 107, 74, 0.2),
        inset 0 0 30px rgba(255, 107, 74, 0.05);
}

#nameInput::placeholder {
    color: var(--text-dim);
    text-transform: none;
    letter-spacing: 1px;
    font-weight: 400;
}

#joinBtn {
    padding: 20px 70px;
    font-size: 1.1rem;
    background: linear-gradient(135deg, var(--primary) 0%, #ff8a65 50%, var(--secondary) 100%);
    background-size: 200% 200%;
    border: none;
    border-radius: 12px;
    color: #000;
    cursor: pointer;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 4px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#joinBtn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

#joinBtn:hover {
    transform: translateY(-3px);
    box-shadow:
        0 10px 40px rgba(255, 107, 74, 0.4),
        0 0 80px rgba(255, 107, 74, 0.2);
    background-position: 100% 100%;
}

#joinBtn:hover::before {
    transform: translateX(100%);
}

#joinBtn:active {
    transform: translateY(-1px);
}

/* ============================================================================
   GAME CONTAINER & CANVAS
   ============================================================================ */
#gameContainer {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

#gameContainer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('menu-bg.png') center/cover no-repeat;
    opacity: 0.4;
    z-index: 0;
    pointer-events: none;
}

#gameCanvas {
    display: block;
    touch-action: none;
    position: relative;
    z-index: 1;
}

/* ============================================================================
   HUD - Heads Up Display
   ============================================================================ */
#hud {
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 100;
    padding: 0;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(20, 20, 35, 0.9), rgba(10, 10, 20, 0.95));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 107, 74, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    min-width: 200px;
    overflow: hidden;
}

#hud::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
}

#roundInfo {
    font-size: 1.4rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    padding: 12px 16px 4px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

#prizeInfo {
    font-size: 0.6rem;
    color: var(--accent);
    padding: 0 16px 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

#prizeInfo::before {
    content: '◆';
    font-size: 0.4rem;
    color: var(--secondary);
}

#healthBar {
    width: 100%;
    height: 6px;
    background: rgba(0, 0, 0, 0.5);
    overflow: hidden;
    position: relative;
}

#healthFill {
    height: 100%;
    background: linear-gradient(90deg, #ff3d5a 0%, #ff6b4a 30%, #ffa726 60%, #00e676 100%);
    width: 100%;
    transition: width 0.3s ease-out;
    position: relative;
}

#healthFill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.3) 0%, transparent 50%);
}

/* Shield Bar */
#shieldBar {
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.5);
    overflow: hidden;
    position: relative;
}

#shieldFill {
    height: 100%;
    background: linear-gradient(90deg, #2980b9, #3498db, #5dade2);
    width: 0%;
    transition: width 0.3s ease-out;
    position: relative;
}

#shieldFill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.4) 0%, transparent 50%);
}

/* Weapon Info */
#weaponInfo {
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

#weaponIcon {
    font-size: 1rem;
}

#weaponName {
    color: var(--secondary);
}

#weaponName.pistol { color: #ffff00; }
#weaponName.shotgun { color: #ff6b4a; }
#weaponName.smg { color: #00e5ff; }
#weaponName.sniper { color: #b388ff; }

#gameInfo {
    padding: 10px 16px 12px;
    background: rgba(0, 0, 0, 0.2);
    font-size: 0.75rem;
    color: var(--text-dim);
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

#gameInfo span {
    color: var(--text);
    font-weight: 700;
}

/* Round Timer */
#roundTimer {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}

/* ============================================================================
   CLAUDE MESSAGES (AI Commentator)
   ============================================================================ */
#claudeMessages {
    position: fixed;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    width: 280px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.claude-msg {
    background: linear-gradient(135deg, rgba(179, 136, 255, 0.1), rgba(20, 20, 35, 0.9));
    backdrop-filter: blur(15px);
    border: 1px solid rgba(179, 136, 255, 0.2);
    border-left: 3px solid var(--purple);
    padding: 10px 14px;
    border-radius: 0 10px 10px 0;
    animation: claudeSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(179, 136, 255, 0.1);
}

.claude-msg .speaker {
    color: var(--purple);
    font-weight: 800;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.claude-msg .speaker::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--purple);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 8px var(--purple);
}

.claude-msg .text {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    font-size: 0.8rem;
    font-weight: 400;
}

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

/* ============================================================================
   LEADERBOARD
   ============================================================================ */
#leaderboard {
    position: fixed;
    bottom: 15px;
    left: 15px;
    background: linear-gradient(145deg, rgba(20, 20, 35, 0.9), rgba(10, 10, 20, 0.95));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 229, 255, 0.1);
    border-radius: 14px;
    padding: 0;
    width: 240px;
    z-index: 100;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

#leaderboard::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--purple), var(--primary));
}

#leaderboard h3 {
    background: linear-gradient(135deg, var(--accent), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    padding: 12px 14px 10px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
}

#leaderboard h3::before {
    content: '◈';
    -webkit-text-fill-color: var(--accent);
    font-size: 0.8rem;
}

#lbEntries {
    padding: 6px 12px 12px;
    min-height: 60px;
}

#lbEntries:empty::after {
    content: 'Waiting for players...';
    display: block;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.7rem;
    padding: 15px;
    font-style: italic;
}

.lb-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 10px;
    font-size: 0.75rem;
    margin-bottom: 4px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.2s ease;
}

.lb-entry:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(3px);
}

.lb-entry .rank {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 6px;
    font-weight: 800;
    font-size: 0.65rem;
    color: #000;
    margin-right: 10px;
}

.lb-entry .name {
    color: var(--text);
    font-weight: 600;
    flex: 1;
    font-size: 0.75rem;
}

.lb-entry .stats {
    color: var(--secondary);
    font-weight: 800;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 3px;
}

.lb-entry .stats::before {
    content: '⚔';
    font-size: 0.7rem;
}

.lb-entry.highlight {
    background: linear-gradient(135deg, rgba(255, 107, 74, 0.15), rgba(255, 167, 38, 0.1));
    border: 1px solid rgba(255, 107, 74, 0.3);
}

.lb-entry.highlight .name {
    color: var(--primary);
    font-weight: 700;
}

#recentWinners {
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 12px 12px;
}

#recentWinners h4 {
    color: var(--success);
    font-size: 0.6rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

#recentWinners h4::before {
    content: '👑';
    font-size: 0.75rem;
}

#winnerEntries:empty::after {
    content: 'No winners yet';
    display: block;
    color: var(--text-dim);
    font-size: 0.65rem;
    font-style: italic;
}

.winner-entry {
    font-size: 0.7rem;
    color: var(--text-dim);
    padding: 5px 8px;
    margin-bottom: 3px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    align-items: center;
    gap: 6px;
}

.winner-entry::before {
    content: '•';
    color: var(--success);
}

/* ============================================================================
   MINIMAP
   ============================================================================ */
#minimap {
    position: fixed;
    bottom: 15px;
    right: 15px;
    width: 150px;
    height: 150px;
    background: linear-gradient(145deg, rgba(20, 20, 35, 0.9), rgba(10, 10, 20, 0.95));
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 107, 74, 0.2);
    border-radius: 50%;
    z-index: 100;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.5),
        0 0 0 3px rgba(10, 10, 20, 0.8),
        inset 0 0 20px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

#minimap::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--primary), var(--secondary), var(--accent), var(--purple), var(--primary));
    opacity: 0.25;
    z-index: -1;
}

#instructions {
    position: fixed;
    bottom: 180px;
    right: 15px;
    color: var(--text-dim);
    font-size: 0.65rem;
    z-index: 100;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    background: linear-gradient(145deg, rgba(20, 20, 35, 0.9), rgba(10, 10, 20, 0.95));
    backdrop-filter: blur(20px);
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
    line-height: 1.8;
    width: 150px;
}

#instructions::before {
    content: 'CONTROLS';
    display: block;
    font-size: 0.55rem;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 6px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-weight: 700;
}

/* ============================================================================
   ARENA WARNING
   ============================================================================ */
#arenaWarning {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 61, 90, 0.15);
    backdrop-filter: blur(20px);
    border: 2px solid var(--danger);
    padding: 28px 60px;
    border-radius: 16px;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--danger);
    display: none;
    z-index: 150;
    text-transform: uppercase;
    letter-spacing: 4px;
}

#arenaWarning.show {
    display: block;
    animation: warningPulse 0.6s ease-in-out infinite;
}

@keyframes warningPulse {
    0%, 100% {
        box-shadow: 0 0 40px rgba(255, 61, 90, 0.4);
    }
    50% {
        box-shadow: 0 0 80px rgba(255, 61, 90, 0.6);
    }
}

/* ============================================================================
   SPECTATOR OVERLAY
   ============================================================================ */
#spectatorOverlay {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.1), rgba(20, 20, 35, 0.95));
    backdrop-filter: blur(25px);
    padding: 16px 50px;
    border-radius: 50px;
    border: 1px solid rgba(0, 229, 255, 0.3);
    display: none;
    z-index: 200;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow:
        0 8px 40px rgba(0, 229, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

#spectatorOverlay.show {
    display: block;
    animation: spectatorPulse 2s ease-in-out infinite;
}

@keyframes spectatorPulse {
    0%, 100% { box-shadow: 0 8px 40px rgba(0, 229, 255, 0.2); }
    50% { box-shadow: 0 8px 60px rgba(0, 229, 255, 0.4); }
}

#spectatorOverlay #spectatorTitle {
    background: linear-gradient(135deg, var(--accent), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
}

#spectatorOverlay #spectatorMessage {
    display: block;
    margin-top: 4px;
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

/* ============================================================================
   ROUND END OVERLAY
   ============================================================================ */
#roundEndOverlay {
    position: fixed;
    inset: 0;
    background: var(--bg-darker);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

#roundEndOverlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 30%, rgba(255, 107, 74, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 30% 70%, rgba(0, 229, 255, 0.1) 0%, transparent 40%);
    animation: bgPulse 3s ease-in-out infinite;
}

#roundEndOverlay > * {
    position: relative;
    z-index: 1;
}

#roundEndOverlay.show {
    display: flex;
}

#roundEndOverlay h1 {
    font-size: clamp(2.5rem, 10vw, 5rem);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 8px;
    font-weight: 900;
}

#roundEndOverlay .winner-name {
    font-size: clamp(1.8rem, 7vw, 3.5rem);
    color: var(--text);
    margin-bottom: 1rem;
    font-weight: 700;
}

#roundEndOverlay .kills {
    font-size: 1.3rem;
    color: var(--text-dim);
    margin-bottom: 2.5rem;
    font-weight: 500;
}

#nextRoundTimer {
    font-size: 1.1rem;
    color: var(--accent);
    margin-bottom: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
}

#walletSection {
    display: none;
    text-align: center;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-glass);
}

#walletSection.show {
    display: block;
    animation: fadeIn 0.4s ease;
}

#walletSection p {
    color: var(--text-dim);
    margin-bottom: 1.5rem;
}

#walletInput {
    padding: 18px 30px;
    font-size: 0.95rem;
    border: 2px solid rgba(255, 107, 74, 0.3);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.4);
    color: var(--text);
    width: min(500px, 90vw);
    text-align: center;
    margin-bottom: 1.5rem;
    outline: none;
    transition: all 0.3s ease;
}

#walletInput:focus {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(255, 107, 74, 0.2);
}

#claimBtn {
    padding: 18px 60px;
    font-size: 1.1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 12px;
    color: #000;
    cursor: pointer;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    transition: all 0.3s ease;
}

#claimBtn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(255, 107, 74, 0.4);
}

/* ============================================================================
   COUNTDOWN
   ============================================================================ */
#countdown {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(6rem, 25vw, 12rem);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    display: none;
    z-index: 300;
    text-shadow: none;
    filter: drop-shadow(0 0 60px var(--primary-glow));
}

#countdown.show {
    display: block;
    animation: countPulse 1s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes countPulse {
    0% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.6;
    }
}

/* ============================================================================
   KILL FEED
   ============================================================================ */
#killFeed {
    position: fixed;
    top: 15px;
    right: 15px;
    width: 260px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.kill-entry {
    background: linear-gradient(135deg, rgba(255, 61, 90, 0.1), rgba(20, 20, 35, 0.9));
    backdrop-filter: blur(15px);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.7rem;
    animation: killSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: 2px solid var(--danger);
    border: 1px solid rgba(255, 61, 90, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(255, 61, 90, 0.1);
}

.kill-entry::before {
    content: '☠';
    font-size: 0.8rem;
    opacity: 0.7;
}

.kill-entry .killer {
    color: var(--primary);
    font-weight: 700;
}

.kill-entry .victim {
    color: var(--text-dim);
}

@keyframes killSlideIn {
    from {
        opacity: 0;
        transform: translateX(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

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

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ============================================================================
   SCROLLBAR
   ============================================================================ */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */
@media (max-width: 1200px) {
    #claudeMessages {
        width: 220px;
        max-height: 160px;
    }

    #leaderboard {
        width: 200px;
    }

    #killFeed {
        width: 220px;
    }
}

@media (max-width: 768px) {
    #leaderboard {
        display: none;
    }

    #instructions {
        display: none;
    }

    #claudeMessages {
        position: fixed;
        top: auto;
        bottom: 80px;
        left: 10px;
        right: 10px;
        transform: none;
        width: auto;
        max-height: 100px;
    }

    #hud {
        left: 10px;
        top: 10px;
        min-width: 180px;
    }

    #hud #roundInfo {
        font-size: 1.2rem;
        padding: 10px 14px 4px;
    }

    #hud #roundTimer {
        font-size: 0.9rem;
        top: 10px;
        right: 14px;
    }

    #hud #prizeInfo {
        padding: 0 14px 8px;
        font-size: 0.55rem;
    }

    #hud #gameInfo {
        padding: 8px 14px 10px;
        font-size: 0.65rem;
    }

    #minimap {
        width: 120px;
        height: 120px;
        bottom: 10px;
        right: 10px;
    }

    #killFeed {
        width: calc(100% - 170px);
        top: 10px;
        right: 10px;
    }

    .kill-entry {
        padding: 8px 12px;
        font-size: 0.75rem;
    }

    #spectatorOverlay {
        padding: 12px 30px;
        font-size: 0.75rem;
    }
}

/* Disable printing */
@media print {
    body { display: none; }
}

/* ============================================================================
   LOBBY SIDEBAR
   ============================================================================ */
#lobby {
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.lobby-player {
    padding: 4px 8px;
    margin: 2px 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    color: #ccc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lobby-more {
    padding: 4px 8px;
    color: #666;
    font-style: italic;
}

#lobbyPlayerList::-webkit-scrollbar {
    width: 4px;
}

#lobbyPlayerList::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

#lobbyPlayerList::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 2px;
}

/* Close button hover */
#closeRoundEnd:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
}

/* Mobile: hide lobby on small screens */
@media (max-width: 768px) {
    #lobby {
        display: none;
    }
}
