/* ═══════════════════════════════════════════════════════
   ALPHADEEPLOL DRAFT — PREMIUM HEXTECH DESIGN SYSTEM
   ═══════════════════════════════════════════════════════ */

/* --- FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Palette */
    --hex-dark: #010A13;
    --hex-bg: #0A1428;
    --hex-panel: rgba(10, 20, 45, 0.55);
    --hex-surface: rgba(15, 28, 55, 0.6);
    --hex-border: rgba(30, 35, 50, 0.6);

    /* Gold Spectrum */
    --gold-1: #C8AA6E;
    --gold-2: #F0E6D2;
    --gold-3: #785A28;
    --gold-dim: rgba(200, 170, 110, 0.15);
    --gold-glow: rgba(200, 170, 110, 0.35);

    /* Team Colors */
    --blue-1: #0AC8B9;
    --blue-2: #0A9396;
    --blue-glow: rgba(10, 200, 185, 0.5);
    --blue-soft: rgba(10, 200, 185, 0.08);

    --red-1: #E84057;
    --red-2: #C9344A;
    --red-glow: rgba(232, 64, 87, 0.5);
    --red-soft: rgba(232, 64, 87, 0.08);

    /* Text */
    --text-primary: #F0E6D2;
    --text-secondary: #8C8573;
    --text-muted: #5B5A56;

    /* Fonts */
    --font-heading: 'Beaufort for LOL', 'Inter', serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    /* Effects */
    --glass-blur: blur(16px);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

body {
    background-color: var(--hex-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    height: 100vh;
    overflow: hidden;
    user-select: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- ANIMATED BACKGROUND --- */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 10%, rgba(10, 200, 185, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 70% 50% at 80% 90%, rgba(232, 64, 87, 0.05) 0%, transparent 60%),
        radial-gradient(ellipse 90% 70% at 50% 50%, rgba(120, 90, 40, 0.04) 0%, transparent 50%),
        linear-gradient(180deg, #0A1428 0%, #060E1A 40%, #0A0F1A 100%);
    z-index: -2;
    animation: bgShift 20s ease-in-out infinite alternate;
}

@keyframes bgShift {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.85;
    }

    100% {
        opacity: 1;
    }
}

/* Ambient particles overlay */
.bg-particles {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.bg-particles::before,
.bg-particles::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    animation: float 12s ease-in-out infinite;
}

.bg-particles::before {
    width: 300px;
    height: 300px;
    top: -50px;
    left: 10%;
    background: radial-gradient(circle, rgba(10, 200, 185, 0.05) 0%, transparent 70%);
    animation-duration: 15s;
}

.bg-particles::after {
    width: 400px;
    height: 400px;
    bottom: -100px;
    right: 5%;
    background: radial-gradient(circle, rgba(232, 64, 87, 0.04) 0%, transparent 70%);
    animation-duration: 18s;
    animation-delay: -5s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -20px) scale(1.05);
    }

    66% {
        transform: translate(-20px, 15px) scale(0.95);
    }
}

/* ═══════════════════════════════════════════════════════
   APP LAYOUT
   ═══════════════════════════════════════════════════════ */
#app {
    display: grid;
    grid-template-columns: 300px 1fr 300px;
    grid-template-rows: 72px 1fr 90px;
    height: 100vh;
    width: 100vw;
    position: relative;
}

/* ═══════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════ */
header {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 20;
    background: linear-gradient(180deg,
            rgba(10, 20, 40, 0.9) 0%,
            rgba(10, 20, 40, 0.4) 100%);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(200, 170, 110, 0.15);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

/* Gold ornamental line under header */
header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--gold-1) 30%,
            var(--gold-2) 50%,
            var(--gold-1) 70%,
            transparent 100%);
    opacity: 0.5;
}

/* Brand Title */
header span {
    position: absolute;
    left: 32px;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--gold-1);
    text-transform: uppercase;
    opacity: 0.7;
    text-shadow: 0 0 20px rgba(200, 170, 110, 0.2);
}

/* Turn Indicator */
.turn-indicator {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    color: var(--gold-2);
    letter-spacing: 3px;
    padding: 8px 48px;
    text-align: center;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
    position: relative;
    background: none;
    min-width: 400px;
}

.turn-indicator::before,
.turn-indicator::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-3));
}

.turn-indicator::before {
    right: 100%;
    background: linear-gradient(90deg, transparent, var(--gold-3));
}

.turn-indicator::after {
    left: 100%;
    background: linear-gradient(90deg, var(--gold-3), transparent);
}

/* ═══════════════════════════════════════════════════════
   TEAM SIDEBARS
   ═══════════════════════════════════════════════════════ */
.team-panel {
    grid-row: 2 / 3;
    display: flex;
    flex-direction: column;
    padding: 20px 16px;
    gap: 10px;
    position: relative;
    background: linear-gradient(180deg,
            var(--hex-panel) 0%,
            rgba(6, 14, 28, 0.7) 100%);
    backdrop-filter: blur(8px);
}

/* Blue side left border glow */
.team-panel.blue {
    border-right: 1px solid rgba(10, 200, 185, 0.08);
    box-shadow: inset -1px 0 40px rgba(10, 200, 185, 0.03);
}

/* Red side right border glow */
.team-panel.red {
    border-left: 1px solid rgba(232, 64, 87, 0.08);
    box-shadow: inset 1px 0 40px rgba(232, 64, 87, 0.03);
}

/* Team Headers */
.team-panel h3 {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    margin: 4px 0 14px 0;
    letter-spacing: 5px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 12px;
}

.team-panel h3::after {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    border-radius: 1px;
}

.team-panel.blue h3 {
    color: var(--blue-1);
    text-shadow: 0 0 20px rgba(10, 200, 185, 0.3);
}

.team-panel.blue h3::after {
    background: linear-gradient(90deg, transparent, var(--blue-1), transparent);
    box-shadow: 0 0 10px var(--blue-glow);
}

.team-panel.red h3 {
    color: var(--red-1);
    text-shadow: 0 0 20px rgba(232, 64, 87, 0.3);
}

.team-panel.red h3::after {
    background: linear-gradient(90deg, transparent, var(--red-1), transparent);
    box-shadow: 0 0 10px var(--red-glow);
}

/* ═══════════════════════════════════════════════════════
   CHAMPION SLOTS
   ═══════════════════════════════════════════════════════ */
.slot {
    height: 76px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(40, 45, 60, 0.4);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    position: relative;
    padding: 0;
    transition: all var(--transition-smooth);
    overflow: hidden;
    clip-path: polygon(12px 0, 100% 0, 100% 100%, 0 100%, 0 12px);
}

.slot::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.01), transparent);
    pointer-events: none;
}

.slot:hover {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(60, 65, 80, 0.5);
}

/* Role Badge */
.slot-role {
    font-family: var(--font-body);
    font-size: 9px;
    font-weight: 600;
    color: var(--text-muted);
    position: absolute;
    top: 6px;
    right: 8px;
    z-index: 5;
    background: rgba(0, 0, 0, 0.5);
    padding: 2px 6px;
    border-radius: 3px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Champion Portrait in Slot */
.slot img {
    height: 100%;
    width: auto;
    position: absolute;
    left: -10px;
    top: 0;
    mask-image: linear-gradient(to right, black 30%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 30%, transparent 100%);
    opacity: 0;
    transform: scale(1.15) translateX(-10px);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: brightness(1.1) saturate(1.1);
}

.slot.filled img {
    opacity: 1;
    transform: scale(1.05) translateX(0);
}

/* Champion Name in Slot */
.slot span:last-child {
    margin-left: 85px;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--gold-2);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
}

/* Active Turn Slot */
.slot.active-turn {
    border-color: rgba(200, 170, 110, 0.3);
    background: linear-gradient(90deg, rgba(200, 170, 110, 0.06), transparent);
    box-shadow:
        inset 0 0 30px rgba(200, 170, 110, 0.05),
        0 0 15px rgba(200, 170, 110, 0.05);
    animation: slotPulse 2s ease-in-out infinite;
}

@keyframes slotPulse {

    0%,
    100% {
        box-shadow: inset 0 0 30px rgba(200, 170, 110, 0.05), 0 0 10px rgba(200, 170, 110, 0.03);
    }

    50% {
        box-shadow: inset 0 0 30px rgba(200, 170, 110, 0.1), 0 0 20px rgba(200, 170, 110, 0.08);
    }
}

.slot.active-turn::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, transparent, var(--gold-1), transparent);
    box-shadow: 0 0 12px var(--gold-1);
    animation: slotEdgeGlow 1.5s ease-in-out infinite alternate;
}

@keyframes slotEdgeGlow {
    0% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

/* Filled slot blue/red team tint */
.team-panel.blue .slot.filled {
    border-color: rgba(10, 200, 185, 0.15);
    background: linear-gradient(90deg, rgba(10, 200, 185, 0.05), transparent);
}

.team-panel.red .slot.filled {
    border-color: rgba(232, 64, 87, 0.15);
    background: linear-gradient(90deg, rgba(232, 64, 87, 0.05), transparent);
}

/* ═══════════════════════════════════════════════════════
   CENTER PICK AREA
   ═══════════════════════════════════════════════════════ */
.pick-area {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    display: flex;
    flex-direction: column;
    padding: 20px 28px;
    gap: 16px;
    overflow: hidden;
}

/* ═══════════════════════════════════════════════════════
   BANS STRIP
   ═══════════════════════════════════════════════════════ */
.bans-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
    background: rgba(1, 10, 19, 0.6);
    border: 1px solid rgba(40, 45, 60, 0.3);
    border-radius: var(--radius-md);
    padding: 0 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

/* Top and bottom gold accent lines */
.bans-container::before,
.bans-container::after {
    content: '';
    position: absolute;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-3), transparent);
    opacity: 0.4;
}

.bans-container::before {
    top: 0;
}

.bans-container::after {
    bottom: 0;
}

.bans-container>div:nth-child(2) {
    font-family: var(--font-heading);
    color: var(--text-muted);
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.ban-slot {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(50, 50, 60, 0.5);
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.4);
    filter: grayscale(100%) brightness(0.5);
    transition: all var(--transition-smooth);
    position: relative;
}

.ban-slot:hover {
    filter: grayscale(30%) brightness(0.8);
    border-color: var(--red-2);
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(232, 64, 87, 0.2);
}

/* Red X overlay on banned champions */
.ban-slot::after {
    content: '✕';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red-1);
    font-size: 20px;
    font-weight: 700;
    opacity: 0.6;
    text-shadow: 0 0 8px var(--red-glow);
    pointer-events: none;
}

/* ═══════════════════════════════════════════════════════
   FILTERS & SEARCH
   ═══════════════════════════════════════════════════════ */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(40, 45, 60, 0.2);
}

.role-filters {
    display: flex;
    gap: 6px;
}

.role-filter {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all var(--transition-fast);
    position: relative;
    padding: 6px 14px;
    border-radius: 20px;
    background: transparent;
    border: 1px solid transparent;
}

.role-filter:hover {
    color: var(--gold-2);
    background: rgba(200, 170, 110, 0.05);
}

.role-filter.active {
    color: var(--gold-1);
    background: rgba(200, 170, 110, 0.1);
    border-color: rgba(200, 170, 110, 0.2);
    text-shadow: 0 0 10px rgba(200, 170, 110, 0.3);
}

/* Search Input */
#chk-search {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(40, 45, 60, 0.4);
    color: var(--gold-2);
    padding: 10px 18px;
    width: 260px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 400;
    border-radius: 24px;
    transition: all var(--transition-smooth);
    letter-spacing: 0.3px;
}

#chk-search::placeholder {
    color: var(--text-muted);
    font-weight: 300;
}

#chk-search:focus {
    border-color: rgba(200, 170, 110, 0.3);
    box-shadow:
        0 0 0 3px rgba(200, 170, 110, 0.06),
        0 0 20px rgba(200, 170, 110, 0.05);
    outline: none;
    background: rgba(0, 0, 0, 0.4);
}

/* ═══════════════════════════════════════════════════════
   CHAMPION GRID
   ═══════════════════════════════════════════════════════ */
.champ-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 10px;
    padding: 8px 4px;
    overflow-y: auto;

    /* Custom Scrollbar */
    scrollbar-width: thin;
    scrollbar-color: var(--gold-3) transparent;
}

.champ-grid::-webkit-scrollbar {
    width: 5px;
}

.champ-grid::-webkit-scrollbar-track {
    background: transparent;
}

.champ-grid::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--gold-3), rgba(120, 90, 40, 0.3));
    border-radius: 4px;
}

/* Champion Card */
.champ-card {
    width: 72px;
    height: 72px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(40, 45, 60, 0.35);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.champ-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg,
            transparent 60%,
            rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.champ-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
    display: block;
}

.champ-card:hover {
    border-color: var(--gold-1);
    transform: translateY(-4px) scale(1.05);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(200, 170, 110, 0.3),
        0 0 20px rgba(200, 170, 110, 0.1);
    z-index: 10;
}

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

.champ-card:hover img {
    transform: scale(1.12);
}

.champ-card:active {
    transform: translateY(-2px) scale(1.02);
    transition-duration: 0.1s;
}

/* ═══════════════════════════════════════════════════════
   FOOTER / CONTROLS
   ═══════════════════════════════════════════════════════ */
.controls {
    grid-column: 1 / -1;
    grid-row: 3 / 4;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 32px;
    background: linear-gradient(180deg,
            rgba(6, 10, 20, 0.85) 0%,
            rgba(1, 10, 19, 0.95) 100%);
    backdrop-filter: blur(16px);
    border-top: 1px solid rgba(200, 170, 110, 0.1);
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.4);
}

/* AI Stats Panel */
.brain-stats {
    width: 420px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.brain-stats>div:first-child {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    color: var(--blue-1);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-shadow: 0 0 15px rgba(10, 200, 185, 0.2);
}

/* Suggestion Bars */
.bar-container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    color: var(--text-secondary);
}

.prob-bar {
    flex: 1;
    height: 3px;
    background: rgba(30, 35, 50, 0.6);
    border-radius: 2px;
    overflow: hidden;
}

.prob-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.5s ease-out, background 0.4s ease, box-shadow 0.4s ease;
}

.prob-fill.team-blue {
    background: linear-gradient(90deg, var(--blue-2), var(--blue-1));
    box-shadow: 0 0 8px var(--blue-glow);
}

.prob-fill.team-red {
    background: linear-gradient(90deg, var(--red-2), var(--red-1));
    box-shadow: 0 0 8px var(--red-glow);
}

/* ═══════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════ */
.action-btn {
    background: linear-gradient(180deg,
            rgba(200, 170, 110, 0.12) 0%,
            rgba(200, 170, 110, 0.04) 100%);
    border: 1px solid rgba(200, 170, 110, 0.35);
    color: var(--gold-1);
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    padding: 12px 28px;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
}

/* Shine sweep */
.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(240, 230, 210, 0.08),
            transparent);
    transition: left 0.6s ease;
}

.action-btn:hover {
    background: linear-gradient(180deg,
            rgba(200, 170, 110, 0.2) 0%,
            rgba(200, 170, 110, 0.08) 100%);
    border-color: var(--gold-1);
    color: var(--gold-2);
    box-shadow:
        0 0 20px rgba(200, 170, 110, 0.15),
        inset 0 1px 0 rgba(240, 230, 210, 0.1);
    transform: translateY(-1px);
}

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

.action-btn:active {
    transform: scale(0.97) translateY(0);
    transition-duration: 0.1s;
}

/* ═══════════════════════════════════════════════════════
   MODALS & OVERLAYS
   ═══════════════════════════════════════════════════════ */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(1, 6, 14, 0.88);
    backdrop-filter: blur(20px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    flex-direction: column;
}

.modal-box {
    background: linear-gradient(180deg,
            rgba(14, 26, 52, 0.95) 0%,
            rgba(9, 20, 40, 0.95) 100%);
    border: 1px solid rgba(200, 170, 110, 0.25);
    border-radius: var(--radius-lg);
    padding: 48px;
    width: 480px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    align-items: center;
    position: relative;
    box-shadow:
        0 0 60px rgba(0, 0, 0, 0.6),
        0 0 120px rgba(200, 170, 110, 0.04),
        inset 0 1px 0 rgba(240, 230, 210, 0.05);
    animation: modalEnter 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes modalEnter {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Corner decorations */
.modal-box::before,
.modal-box::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: var(--gold-3);
    border-style: solid;
    opacity: 0.6;
}

.modal-box::before {
    top: 8px;
    left: 8px;
    border-width: 1px 0 0 1px;
    border-radius: 2px 0 0 0;
}

.modal-box::after {
    bottom: 8px;
    right: 8px;
    border-width: 0 1px 1px 0;
    border-radius: 0 0 2px 0;
}

.modal-box h1 {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    color: var(--gold-2);
    margin: 0;
    text-shadow: 0 0 20px rgba(200, 170, 110, 0.25);
    letter-spacing: 5px;
    padding-bottom: 16px;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(200, 170, 110, 0.12);
    position: relative;
}

/* Gold glow line under title */
.modal-box h1::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-1), transparent);
    opacity: 0.4;
}

/* Setting Rows */
.setting-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
    padding: 4px 0;
}

.setting-row label {
    font-family: var(--font-heading);
    color: var(--gold-1);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
}

/* Select Dropdowns */
select {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(40, 45, 60, 0.5);
    color: var(--gold-2);
    padding: 10px 16px;
    font-size: 14px;
    font-family: var(--font-body);
    font-weight: 500;
    width: 240px;
    outline: none;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23C8AA6E' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

select:hover {
    border-color: rgba(200, 170, 110, 0.3);
    background-color: rgba(0, 0, 0, 0.5);
}

select:focus {
    border-color: rgba(200, 170, 110, 0.4);
    box-shadow: 0 0 0 2px rgba(200, 170, 110, 0.08);
}

/* ═══════════════════════════════════════════════════════
   LOADER
   ═══════════════════════════════════════════════════════ */
.loader-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(200, 170, 110, 0.1);
    border-top: 3px solid var(--gold-1);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    box-shadow:
        0 0 20px rgba(200, 170, 110, 0.15),
        inset 0 0 20px rgba(200, 170, 110, 0.05);
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

#loading-text {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--gold-2);
    letter-spacing: 3px;
    margin-top: 20px;
    animation: loadPulse 1.5s ease-in-out infinite;
}

@keyframes loadPulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

/* ═══════════════════════════════════════════════════════
   ROLE DIALOG
   ═══════════════════════════════════════════════════════ */
.role-dialog {
    display: none;
    background: linear-gradient(180deg,
            rgba(14, 26, 52, 0.97) 0%,
            rgba(9, 20, 40, 0.97) 100%);
    border: 1px solid rgba(200, 170, 110, 0.3);
    border-radius: var(--radius-lg);
    padding: 28px 36px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 200;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.7),
        0 0 80px rgba(200, 170, 110, 0.05);
    backdrop-filter: blur(20px);
}

.role-dialog.active {
    display: flex;
    animation: modalEnter 0.3s ease-out;
}

.role-dialog h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--gold-2);
    letter-spacing: 2px;
    margin: 0;
}

.role-options {
    display: flex;
    gap: 10px;
}

.role-btn {
    width: 56px;
    height: 56px;
    border: 1px solid rgba(40, 45, 60, 0.5);
    border-radius: var(--radius-md);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    color: var(--gold-1);
    cursor: pointer;
    transition: all var(--transition-fast);
    background: rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

.role-btn:hover {
    border-color: var(--gold-1);
    background: rgba(200, 170, 110, 0.12);
    transform: translateY(-2px);
    box-shadow:
        0 4px 16px rgba(200, 170, 110, 0.1),
        0 0 0 1px rgba(200, 170, 110, 0.15);
}

.role-btn:active {
    transform: translateY(0) scale(0.96);
    transition-duration: 0.1s;
}

/* Cancel button in role dialog */
.role-dialog>button {
    background: transparent;
    border: 1px solid rgba(80, 80, 90, 0.3);
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    padding: 8px 24px;
    border-radius: 20px;
    cursor: pointer;
    transition: all var(--transition-fast);
    letter-spacing: 0.5px;
}

.role-dialog>button:hover {
    border-color: rgba(200, 170, 110, 0.2);
    color: var(--gold-2);
    background: rgba(200, 170, 110, 0.05);
}

/* ═══════════════════════════════════════════════════════
   END OVERLAY
   ═══════════════════════════════════════════════════════ */
#end-overlay h1 {
    font-family: var(--font-heading);
    font-size: 56px;
    font-weight: 700;
    letter-spacing: 6px;
    text-shadow: 0 0 40px currentColor;
    animation: winnerGlow 2s ease-in-out infinite alternate;
}

@keyframes winnerGlow {
    0% {
        text-shadow: 0 0 30px currentColor;
    }

    100% {
        text-shadow: 0 0 60px currentColor, 0 0 100px currentColor;
    }
}

#end-overlay h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    color: var(--gold-2);
    letter-spacing: 4px;
    margin-bottom: 20px;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE FINE-TUNING
   ═══════════════════════════════════════════════════════ */
@media (max-width: 1400px) {
    #app {
        grid-template-columns: 260px 1fr 260px;
    }

    .slot span:last-child {
        font-size: 14px;
    }

    .champ-card {
        width: 64px;
        height: 64px;
    }

    .champ-grid {
        grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
    }
}

@media (max-width: 1200px) {
    #app {
        grid-template-columns: 220px 1fr 220px;
    }

    .slot {
        height: 66px;
    }

    .slot span:last-child {
        font-size: 12px;
        margin-left: 70px;
    }
}