/* ==========================================================================
   VOIDCALL - MAIN DESIGN SYSTEM & TOKENS
   Theme: Cosmic Void Tactical Chess Battler
   ========================================================================== */

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

:root {
    --font-heading: 'Cinzel', serif, system-ui;
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Void Palette */
    --bg-void-dark: #040308;
    --bg-void-deep: #0a0718;
    --bg-surface: rgba(18, 14, 38, 0.75);
    --bg-surface-glass: rgba(26, 20, 54, 0.65);
    --border-glass: rgba(160, 130, 255, 0.25);
    --border-glass-hover: rgba(190, 160, 255, 0.5);

    /* Element Accents */
    --fire-glow: #ff4500;
    --fire-border: #ff6b35;
    --water-glow: #00d4ff;
    --water-border: #00b4d8;
    --light-glow: #ffd700;
    --light-border: #ffea70;
    --air-glow: #00f59b;
    --air-border: #52b788;
    --shadow-glow: #b5179e;
    --shadow-border: #7209b7;
    --earth-glow: #ff9e00;
    --earth-border: #d4a373;

    /* Player Colors */
    --p1-cyan: #00f2fe;
    --p1-glow: rgba(0, 242, 254, 0.5);
    --p2-crimson: #ff2a6d;
    --p2-glow: rgba(255, 42, 109, 0.5);

    /* Combat / Alert Colors */
    --mana-color: #05d9e8;
    --mana-glow: rgba(5, 217, 232, 0.6);
    --danger-red: #ff3366;
    --gold-accent: #ffb703;
    --gold-glow: rgba(255, 183, 3, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    height: 100%;
    min-height: 100vh;
    background: var(--bg-void-dark);
    color: #ffffff;
    font-family: var(--font-body);
    overflow: hidden;
    position: relative;
}

/* Background Cosmic Void Canvas */
#voidCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

/* Radial Vignette & Nebula Gradient */
.void-nebula-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: 
        radial-gradient(circle at 15% 15%, rgba(138, 43, 226, 0.18) 0%, transparent 45%),
        radial-gradient(circle at 85% 85%, rgba(0, 212, 255, 0.15) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(255, 42, 109, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at center, transparent 40%, rgba(4, 3, 8, 0.95) 100%);
    z-index: 1;
    pointer-events: none;
}

/* App Root Container */
#app {
    position: relative;
    z-index: 2;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Screen Transitions */
.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform: scale(0.98);
    pointer-events: none;
}

.screen.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    pointer-events: auto;
}

/* Glassmorphism Panel Utility */
.glass-panel {
    background: var(--bg-surface-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.45);
}

/* Futuristic / Epic Buttons */
.btn-void {
    font-family: var(--font-heading);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 800;
    font-size: 14px;
    padding: 12px 24px;
    border-radius: 12px;
    border: 1px solid var(--border-glass);
    background: linear-gradient(135deg, rgba(30, 24, 60, 0.8) 0%, rgba(45, 30, 90, 0.8) 100%);
    color: #ffffff;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

.btn-void:hover::before {
    left: 100%;
}

.btn-void:hover {
    transform: translateY(-2px);
    border-color: var(--border-glass-hover);
    box-shadow: 0 8px 25px rgba(160, 130, 255, 0.3);
}

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

.btn-void.btn-primary {
    background: linear-gradient(135deg, #7928ca 0%, #ff0080 100%);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(255, 0, 128, 0.4);
}

.btn-void.btn-primary:hover {
    box-shadow: 0 8px 30px rgba(255, 0, 128, 0.6);
}

.btn-void.btn-cyan {
    background: linear-gradient(135deg, #0072ff 0%, #00f2fe 100%);
    box-shadow: 0 4px 20px rgba(0, 242, 254, 0.4);
}

.btn-void.btn-cyan:hover {
    box-shadow: 0 8px 30px rgba(0, 242, 254, 0.6);
}

/* Badge styling */
.badge {
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Scrollbar reset */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(10, 8, 20, 0.5);
}
::-webkit-scrollbar-thumb {
    background: rgba(160, 130, 255, 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(160, 130, 255, 0.6);
}
