/* ==========================================================================
   BEETZARENA  —  STYLESHEET
   --------------------------------------------------------------------------
   Table of Contents
     01. Design Tokens (CSS Variables)
     02. Base Elements
     03. Utility Classes
     04. Screens & Transitions
     05. Panels
     06. Form Inputs
     07. Buttons
     08. Hardware Fader
     09. Genre / Style Tags
     10. Server Cards & Roster
     11. Settings Rows & Loader
     12. Emoji Picker
     13. Chat (Discord-style)
     14. Session Brief
     15. Match / Battle Screen
     16. Sample Cards & Upload Zone
     17. Avatar System
     18. Modifier Drag-and-Drop
     19. Legacy Modifier Checkboxes
     20. Social Links
   ========================================================================== */


/* ==========================================================================
   01. DESIGN TOKENS
   ========================================================================== */
:root {
    color-scheme: dark;
    --bg-dark: #0b0b0e;
    --panel-dark: #121216;
    --panel-border: #22222a;
    --neon-cyan: #00d2ff;
    --neon-pink: #ff0055;
    --neon-orange: #ffb300;
    --text-main: #e0e0e0;
}


/* ==========================================================================
   02. BASE ELEMENTS
   ========================================================================== */
body {
    margin: 0;
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

h1 {
    font-size: 3rem;
    letter-spacing: 5px;
    margin-bottom: 20px;
}


/* ==========================================================================
   03. UTILITY CLASSES
   ========================================================================== */
.accent-pink {
    color: var(--neon-pink);
}

.accent-cyan {
    color: var(--neon-cyan);
}

.hidden {
    display: none !important;
}


/* ==========================================================================
   04. SCREENS & TRANSITIONS
   ========================================================================== */
.screen {
    display: none;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

    .screen.active {
        display: flex;
    }

    .screen.modal {
        display: none;
    }

        .screen.modal.active {
            display: flex;
        }

.fade-in {
    animation: fadeIn .3s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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


/* ==========================================================================
   05. PANELS
   ========================================================================== */
.clean-panel {
    background-color: var(--panel-dark);
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
    display: flex;
    flex-direction: column;
}

.hub-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.profile-hub-btn {
    margin-top: 18px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 1px solid #333;
    color: #aaa;
    border-radius: 6px;
    padding: 10px 18px;
    font-weight: bold;
    letter-spacing: 2px;
    cursor: pointer;
    transition: .2s;
}

    .profile-hub-btn:hover {
        border-color: var(--neon-cyan);
        color: var(--neon-cyan);
        background: rgba(0, 210, 255, .05);
    }

.profile-hub-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid currentColor;
    border-radius: 4px;
    font-family: monospace;
    font-size: .7rem;
}

.mode-select-panel {
    width: min(860px, 92vw);
    padding: 24px;
}

.game-mode-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.game-mode-card {
    min-height: 156px;
    text-align: left;
    background: #0b0b0e;
    border: 1px solid var(--panel-border);
    color: var(--text-main);
    border-radius: 6px;
    padding: 18px;
    cursor: pointer;
    transition: .18s;
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 16px;
    align-items: start;
}

    .game-mode-card:hover {
        border-color: var(--neon-cyan);
        transform: translateY(-2px);
        box-shadow: 0 0 18px rgba(0, 210, 255, .1);
    }

.game-mode-title {
    display: block;
    color: #fff;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.game-mode-icon {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    background: rgba(0, 210, 255, .05);
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-weight: 900;
    letter-spacing: 1px;
}

.game-mode-copy {
    min-width: 0;
}

.game-mode-desc {
    display: block;
    color: #888;
    line-height: 1.45;
    font-size: .88rem;
}

.game-mode-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

    .game-mode-chips span {
        border: 1px solid #2a2a35;
        color: #777;
        border-radius: 4px;
        padding: 3px 7px;
        font-size: .68rem;
        font-weight: bold;
        letter-spacing: .8px;
    }

.mode-back-btn {
    background: transparent;
    border: 1px solid #333;
    color: #aaa;
    border-radius: 4px;
    padding: 8px 14px;
    font-weight: bold;
    letter-spacing: 1.5px;
    cursor: pointer;
}

    .mode-back-btn:hover {
        border-color: var(--neon-cyan);
        color: var(--neon-cyan);
    }

#game-mode-screen .close-btn {
    display: none;
}

.mode-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    padding: 12px;
    border: 1px solid var(--panel-border);
    border-radius: 6px;
    background: #0b0b0e;
    color: var(--neon-cyan);
    font-weight: bold;
    letter-spacing: 1.5px;
}

.active-room-screen {
    width: 100%;
    max-width: 1400px;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
    align-self: stretch;
}

.active-room-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    width: 100%;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--panel-border);
    margin-bottom: 20px;
    box-sizing: border-box;
}

.active-room-title {
    width: min(500px, 56vw) !important;
    max-width: 100%;
}

.active-room-layout {
    display: grid;
    grid-template-columns: minmax(190px, .85fr) minmax(340px, 1.55fr) minmax(210px, .9fr);
    gap: 20px;
    width: 100%;
    height: min(75vh, calc(100vh - 190px));
    min-height: 560px;
    box-sizing: border-box;
}

.roster-panel,
.chat-panel,
.session-panel {
    min-width: 0;
    min-height: 0;
}

@media (max-width: 1100px) {
    body {
        align-items: flex-start;
    }

    .active-room-layout {
        grid-template-columns: minmax(180px, 240px) minmax(360px, 1fr);
        height: auto;
        min-height: 0;
    }

    .session-panel {
        grid-column: 1 / -1;
        max-height: 430px;
    }

    .chat-panel {
        min-height: 640px;
    }

    .speaker-avatar {
        width: clamp(150px, 25vw, 220px);
        height: clamp(150px, 25vw, 220px);
    }
}

@media (max-width: 760px) {
    .active-room-screen {
        padding: 14px;
    }

    .active-room-header {
        align-items: stretch;
        flex-direction: column;
    }

    .active-room-title {
        width: 100% !important;
        font-size: 1.8rem !important;
    }

    .active-room-layout {
        grid-template-columns: 1fr;
    }

    .session-panel {
        grid-column: auto;
    }

    .chat-panel {
        min-height: 620px;
    }

    .chat-display {
        grid-template-rows: minmax(150px, 1fr) minmax(160px, 38%);
    }

    .speaker-stage {
        padding-left: 16px;
    }

    .speaker-avatar {
        width: 150px;
        height: 150px;
    }

    .speaker-bubble {
        max-width: min(240px, 64%);
        margin-left: -28px;
        margin-top: 44px;
    }

    .game-mode-grid {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================================
   06. FORM INPUTS
   ========================================================================== */
.modern-input {
    background: #000;
    border: 1px solid #333;
    color: white;
    padding: 12px;
    font-size: .95rem;
    outline: none;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
    transition: .2s;
}

    .modern-input:focus {
        border-color: var(--neon-cyan);
    }

    .modern-input:disabled {
        background: #0b0b0e;
        color: #888;
        cursor: not-allowed;
    }


/* ==========================================================================
   07. BUTTONS
   ========================================================================== */
.btn-primary {
    background-color: var(--neon-pink);
    color: #fff;
    border: none;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: .2s;
    letter-spacing: 1px;
}

    .btn-primary:hover {
        background-color: #ff3377;
        transform: translateY(-1px);
    }

.btn-cyan {
    background-color: var(--neon-cyan);
    color: #000;
}

    .btn-cyan:hover {
        background-color: #33dbff;
    }

.btn-ghost {
    background: transparent;
    color: #888;
    border: 1px solid #444;
    padding: 10px 20px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: .2s;
}

    .btn-ghost:hover {
        color: #fff;
        border-color: #888;
    }

.divider {
    text-align: center;
    color: #555;
    margin: 15px 0;
    font-size: .8rem;
    letter-spacing: 2px;
}

.close-btn {
    cursor: pointer;
    color: #888;
    font-size: 1.2rem;
    transition: .2s;
}

    .close-btn:hover {
        color: #fff;
    }

.copy-btn {
    background: #1f1f27;
    border: 1px solid #333;
    color: #aaa;
    border-radius: 4px;
    padding: 6px 10px;
    cursor: pointer;
    transition: .2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .copy-btn:hover {
        background: #333;
        color: #fff;
    }


/* ==========================================================================
   08. HARDWARE FADER
   ========================================================================== */
.fader-container {
    position: relative;
    width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
    background: #0b0b0e;
    border: 1px solid var(--panel-border);
    border-radius: 4px;
    padding: 0 15px;
    box-sizing: border-box;
}

.fader-ticks {
    position: absolute;
    left: 15px;
    right: 15px;
    top: 0;
    bottom: 0;
    pointer-events: none;
}

.fader-tick {
    position: absolute;
    width: 1px;
    background: #3a3a3a;
    top: 50%;
    transform: translate(-50%, -50%);
}

    .fader-tick.major {
        background: #555;
    }

.hardware-fader {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: #111;
    border: 1px solid #2a2a2a;
    border-radius: 3px;
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, .9);
    outline: none;
    z-index: 1;
    cursor: pointer;
}

    .hardware-fader::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 18px;
        height: 38px;
        background-image: linear-gradient(to right, transparent 40%, rgba(255, 255, 255, .55) 40%, rgba(255, 255, 255, .55) 60%, transparent 60%), linear-gradient(180deg, #3a3a3a 0%, #1e1e1e 100%);
        border: 1px solid #111;
        border-radius: 3px;
        cursor: pointer;
        box-shadow: 0 4px 10px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .12);
        transition: box-shadow .15s;
    }

        .hardware-fader::-webkit-slider-thumb:hover {
            box-shadow: 0 4px 14px rgba(0, 0, 0, .95), 0 0 6px rgba(0, 210, 255, .3), inset 0 1px 0 rgba(255, 255, 255, .15);
        }

    .hardware-fader::-moz-range-thumb {
        width: 18px;
        height: 38px;
        background: linear-gradient(180deg, #3a3a3a 0%, #1e1e1e 100%);
        border: 1px solid #111;
        border-radius: 3px;
        cursor: pointer;
        box-shadow: 0 4px 10px rgba(0, 0, 0, .9);
    }

    .hardware-fader:disabled {
        cursor: not-allowed;
    }

    /* Colored fader track variants */
    .hardware-fader.fader-orange {
        accent-color: var(--neon-orange);
    }

    .hardware-fader.fader-pink {
        accent-color: var(--neon-pink);
    }

    .hardware-fader.fader-cyan {
        accent-color: var(--neon-cyan);
    }


/* ==========================================================================
   09. GENRE / STYLE TAGS
   ========================================================================== */
.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    background: #0b0b0e;
    padding: 15px;
    border: 1px solid #22222a;
    border-radius: 6px;
    max-height: 120px;
    overflow-y: auto;
}

.style-tag {
    background: #1a1a20;
    border: 1px solid #333;
    color: #888;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: .8rem;
    cursor: pointer;
    transition: all .2s;
    user-select: none;
}

    .style-tag:hover:not(.readonly) {
        background: #2a2a35;
        color: #fff;
    }

    .style-tag.active {
        background: rgba(0, 210, 255, .1);
        border-color: var(--neon-cyan);
        color: var(--neon-cyan);
        box-shadow: 0 0 10px rgba(0, 210, 255, .2);
    }

    .style-tag.readonly {
        cursor: default;
    }


/* ==========================================================================
   10. SERVER CARDS & ROSTER
   ========================================================================== */
.server-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0b0b0e;
    border: 1px solid var(--panel-border);
    padding: 15px 20px;
    margin-bottom: 12px;
    border-radius: 6px;
    transition: .2s;
}

    .server-card:hover {
        border-color: var(--neon-cyan);
        transform: translateX(5px);
    }

.roster-player {
    padding: 12px 10px;
    border-bottom: 1px solid var(--panel-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.status-dot {
    width: 10px;
    height: 10px;
    background: #444;
    border-radius: 50%;
}

    .status-dot.host {
        background: var(--neon-pink);
        box-shadow: 0 0 8px var(--neon-pink);
    }

.host-badge {
    border: 1px solid var(--neon-pink);
    color: var(--neon-pink);
    padding: 3px 8px;
    font-size: .65rem;
    border-radius: 4px;
    font-weight: bold;
}


/* ==========================================================================
   11. SETTINGS ROWS & LOADER
   ========================================================================== */
.setting-row {
    margin-bottom: 15px;
}

    .setting-row label {
        display: block;
        margin-bottom: 8px;
        font-size: .85rem;
        color: #888;
        font-weight: bold;
    }

.beat-loader {
    display: grid;
    grid-template-columns: repeat(3, 20px);
    gap: 8px;
    width: max-content;
    padding: 13px;
    margin: 20px auto;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    background: #08080b;
    box-shadow: 0 0 22px rgba(0, 245, 255, .08), inset 0 0 20px rgba(255, 255, 255, .03);
}

.beat-loader span {
    width: 20px;
    height: 20px;
    border: 1px solid #262633;
    border-radius: 5px;
    background: linear-gradient(145deg, #181822, #07070a);
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, .05), inset 0 -4px 8px rgba(0, 0, 0, .55);
    animation: padPulse var(--pad-speed, 1.35s) steps(1, end) infinite;
    animation-delay: var(--pad-delay, 0s);
}

.beat-loader span:nth-child(1) { --pad-color: var(--neon-pink); --pad-delay: -.18s; --pad-speed: 1.1s; }
.beat-loader span:nth-child(2) { --pad-color: var(--neon-cyan); --pad-delay: -.83s; --pad-speed: 1.45s; }
.beat-loader span:nth-child(3) { --pad-color: #ffd23f; --pad-delay: -.36s; --pad-speed: 1.25s; }
.beat-loader span:nth-child(4) { --pad-color: #a8ff3e; --pad-delay: -.67s; --pad-speed: 1.6s; }
.beat-loader span:nth-child(5) { --pad-color: var(--neon-cyan); --pad-delay: -.08s; --pad-speed: 1.85s; }
.beat-loader span:nth-child(6) { --pad-color: var(--neon-pink); --pad-delay: -1.12s; --pad-speed: 1.4s; }
.beat-loader span:nth-child(7) { --pad-color: #ffd23f; --pad-delay: -.51s; --pad-speed: 1.75s; }
.beat-loader span:nth-child(8) { --pad-color: var(--neon-pink); --pad-delay: -.94s; --pad-speed: 1.2s; }
.beat-loader span:nth-child(9) { --pad-color: #a8ff3e; --pad-delay: -.27s; --pad-speed: 1.55s; }

@keyframes padPulse {
    0%, 12% {
        border-color: var(--pad-color);
        background: var(--pad-color);
        box-shadow: 0 0 12px var(--pad-color), 0 0 28px rgba(255, 255, 255, .14), inset 0 0 10px rgba(255, 255, 255, .35);
        transform: translateY(-1px);
    }

    13%, 100% {
        border-color: #262633;
        background: linear-gradient(145deg, #181822, #07070a);
        box-shadow: inset 0 2px 4px rgba(255, 255, 255, .05), inset 0 -4px 8px rgba(0, 0, 0, .55);
        transform: translateY(0);
    }
}


/* ==========================================================================
   12. EMOJI PICKER
   ========================================================================== */
.emoji-btn {
    background: transparent;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: .2s;
}

    .emoji-btn:hover {
        background: #222;
        border-color: var(--neon-cyan);
        transform: translateY(-2px);
    }

emoji-picker {
    --background: #121216;
    --border-color: #22222a;
    --border-radius: 8px;
    --indicator-color: var(--neon-cyan);
    --indicator-height: 2px;
    --input-border-color: #333;
    --input-border-radius: 4px;
    --input-font-color: #e0e0e0;
    --input-placeholder-color: #555;
    --outline-color: var(--neon-cyan);
    --num-columns: 8;
    height: 360px;
    width: 340px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .8);
    border: 1px solid #22222a;
    border-radius: 8px;
}


/* ==========================================================================
   13. CHAT
   ========================================================================== */
.chat-display {
    flex: 1;
    min-height: 0;
    display: block;
    overflow: hidden;
    background: #0b0b0e;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    margin-bottom: 10px;
}

.chat-log {
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    padding: 12px;
}

.speaker-stage {
    display: none !important;
}

.speaker-stage.hidden {
    display: none;
}

.speaker-avatar {
    width: clamp(150px, 19vw, 220px);
    height: clamp(150px, 19vw, 220px);
    flex-shrink: 0;
    border: 0;
    border-radius: 0;
    overflow: hidden;
    background: transparent;
    image-rendering: pixelated;
}

.speaker-bubble {
    position: relative;
    align-self: flex-start;
    margin-top: clamp(56px, 8vw, 100px);
    margin-left: clamp(-62px, -5vw, -24px);
    width: fit-content;
    max-width: min(320px, 70%);
    min-width: 48px;
    min-height: 0;
    padding: 10px 16px;
    border: 2px solid #fff;
    border-radius: 18px;
    color: #111;
    background: #fff;
    box-shadow: 0 0 18px rgba(255, 255, 255, .16);
    font-size: .95rem;
    line-height: 1.35;
    text-align: center;
    word-break: break-word;
}

    .speaker-bubble:before {
        content: '';
        position: absolute;
        left: 15%;
        top: 58%;
        transform: translateY(-50%) rotate(-28deg);
        width: 0;
        height: 0;
        background: transparent;
        border-style: solid;
        border-width: 8px 80px 8px 0;
        border-color: transparent #fff transparent transparent;
    }

.match-chat-panel {
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.match-chat-display {
    min-height: 380px;
    height: calc(100vh - 220px);
}

.match-content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 18px;
    align-items: start;
}

.match-main-column {
    min-width: 0;
}

.dc-msg-group {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.dc-avatar {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: #1a1a22;
    border: 1px solid #333;
    cursor: pointer;
}

    .dc-avatar svg {
        display: block;
    }

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

.dc-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 3px;
}

.dc-username {
    font-weight: bold;
    font-size: .9rem;
    color: var(--neon-cyan);
    cursor: pointer;
}

    .dc-username:hover {
        text-decoration: underline;
    }

.dc-timestamp {
    font-size: .72rem;
    color: #444;
}

.dc-text {
    font-size: .9rem;
    color: #ddd;
    line-height: 1.45;
    word-break: break-word;
}

.dc-msg-continuation {
    padding-left: 46px;
    margin-bottom: 4px;
}

    .dc-msg-continuation .dc-text {
        color: #ccc;
    }

.dc-system-msg {
    color: #555;
    font-style: italic;
    font-size: .82rem;
    font-family: 'Courier New', monospace;
    margin-bottom: 6px;
    padding-left: 4px;
}


/* ==========================================================================
   14. SESSION BRIEF (Non-Host)
   ========================================================================== */
.brief-block {
    padding: 14px 0;
    border-bottom: 1px solid #1a1a20;
}

    .brief-block:last-child {
        border-bottom: none;
    }

.brief-label {
    font-size: .7rem;
    letter-spacing: 2px;
    color: #555;
    font-weight: bold;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.brief-value {
    font-size: 1rem;
    font-weight: bold;
    color: #fff;
    letter-spacing: 1px;
}

    .brief-value.cyan {
        color: var(--neon-cyan);
    }

    .brief-value.pink {
        color: var(--neon-pink);
    }

    .brief-value.orange {
        color: var(--neon-orange);
    }


/* ==========================================================================
   15. MATCH / BATTLE SCREEN
   ========================================================================== */
.match-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 0 24px;
    border-bottom: 1px solid #1a1a20;
    margin-bottom: 24px;
    gap: 20px;
}

.match-room-title {
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 4px;
    color: var(--neon-pink);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.match-info-sub {
    font-size: .9rem;
    color: var(--neon-cyan);
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.match-mods-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.match-mod-tag {
    background: rgba(255, 0, 85, .08);
    border: 1px solid rgba(255, 0, 85, .3);
    color: var(--neon-pink);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: .75rem;
    letter-spacing: .5px;
}

/* Countdown */
.countdown-wrap {
    text-align: right;
    flex-shrink: 0;
}

.countdown-phase-label {
    font-size: .7rem;
    letter-spacing: 3px;
    color: #555;
    font-weight: bold;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.countdown-display {
    font-size: 3.5rem;
    font-weight: 900;
    font-family: monospace;
    color: var(--neon-cyan);
    letter-spacing: 4px;
    text-shadow: 0 0 30px rgba(0, 210, 255, .5);
    line-height: 1;
}

    .countdown-display.urgent {
        color: var(--neon-pink);
        text-shadow: 0 0 30px rgba(255, 0, 85, .5);
    }

.countdown-sub {
    font-size: .75rem;
    color: #444;
    letter-spacing: 2px;
    margin-top: 6px;
}


/* ==========================================================================
   16. SAMPLE CARDS & UPLOAD ZONE
   ========================================================================== */
.sample-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.sample-card {
    background: #0e0e14;
    border: 1px solid #1e1e2a;
    border-radius: 8px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: border-color .2s;
    cursor: grab;
}

    .sample-card:hover {
        border-color: #333;
    }

.sample-card-label {
    font-size: .72rem;
    letter-spacing: 2px;
    color: #666;
    font-weight: bold;
    text-transform: uppercase;
}

.sample-waveform {
    width: 100%;
    height: 52px;
    border-radius: 4px;
    overflow: hidden;
}

.sample-card-name {
    font-size: .85rem;
    font-weight: bold;
    color: #ddd;
    letter-spacing: .5px;
}

.sample-dl-btn {
    background: transparent;
    border: 1px solid #2a2a35;
    color: #666;
    border-radius: 4px;
    padding: 5px 8px;
    font-size: .72rem;
    cursor: pointer;
    transition: .2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    letter-spacing: 1px;
    font-weight: bold;
}

    .sample-dl-btn:hover {
        border-color: var(--neon-cyan);
        color: var(--neon-cyan);
        background: rgba(0, 210, 255, .05);
    }

/* Upload zone */
.upload-zone {
    border: 1px solid #1e1e2a;
    border-radius: 8px;
    background: #0a0a10;
    padding: 20px;
}

.upload-drop-area {
    border: 2px dashed #2a2a35;
    border-radius: 6px;
    padding: 28px;
    text-align: center;
    transition: border-color .2s, background .2s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .upload-drop-area.drag-over {
        border-color: var(--neon-cyan);
        background: rgba(0, 210, 255, .04);
    }

.upload-cta {
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 2px;
    color: #fff;
    margin-bottom: 6px;
}

.upload-sub {
    font-size: .8rem;
    color: #555;
    letter-spacing: 1px;
}

.upload-zone-label {
    font-size: .7rem;
    letter-spacing: 3px;
    color: #444;
    font-weight: bold;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.track-wave-player {
    display: grid;
    grid-template-columns: 42px 1fr 90px;
    gap: 12px;
    align-items: center;
    background: #050508;
    border: 1px solid #1a1a22;
    border-radius: 6px;
    padding: 10px 12px;
}

#upload-preview {
    position: relative;
}

.wave-play-btn {
    width: 42px;
    height: 34px;
    border: 1px solid #2a2a35;
    border-radius: 4px;
    background: #0f0f15;
    color: #fff;
    font-size: .65rem;
    font-weight: bold;
    cursor: pointer;
}

    .wave-play-btn:hover {
        border-color: var(--neon-cyan);
        color: var(--neon-cyan);
    }

#track-ready-btn.active {
    background: var(--neon-pink);
    box-shadow: 0 0 18px rgba(255, 0, 85, .35);
}

#btn-lobby-ready.active {
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    box-shadow: 0 0 18px rgba(0, 210, 255, .2);
}

.uploaded-waveform-vis {
    height: 80px;
    overflow: hidden;
    cursor: pointer;
}

.uploaded-waveform-vis svg .wave-bar {
    transition: fill .08s linear, opacity .08s linear;
}

.wave-time {
    color: #aaa;
    font-family: monospace;
    font-size: .85rem;
    text-align: right;
}

.upload-action-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
}

.upload-ready-status {
    color: #555;
    font-size: .75rem;
    letter-spacing: 1px;
    margin-top: 10px;
}

.listening-panel {
    position: relative;
    margin: 16px 0 20px;
    padding: 16px;
    border: 1px solid #20202a;
    border-radius: 8px;
    background: #0b0b10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    overflow: hidden;
}

.listening-kicker {
    color: #555;
    font-size: .7rem;
    letter-spacing: 3px;
    font-weight: bold;
}

.listening-title {
    color: #fff;
    font-weight: bold;
    letter-spacing: 1px;
    margin-top: 4px;
}

.listening-sub {
    color: #666;
    font-size: .78rem;
    margin-top: 5px;
}

.reaction-dock {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 10px 0 0;
}

.reaction-dock button {
    width: 42px;
    height: 34px;
    border-radius: 6px;
    border: 1px solid #2a2a35;
    background: #101018;
    font-size: 1.15rem;
    cursor: pointer;
}

.reaction-dock.hidden {
    display: none;
}

    .reaction-dock button:hover {
        border-color: var(--neon-pink);
        transform: translateY(-1px);
    }

.floating-reactions {
    pointer-events: none;
    position: absolute;
    left: 54px;
    right: 102px;
    top: 26px;
    height: 92px;
    overflow: hidden;
}

.floating-reaction {
    position: absolute;
    bottom: 0;
    font-size: 1.6rem;
    transform: translateX(-50%);
    animation: floatReaction 1.6s ease-out forwards;
}

@keyframes floatReaction {
    0% { transform: translate(-50%, 0) scale(.8); opacity: 0; }
    15% { opacity: 1; }
    100% { transform: translate(-50%, -86px) scale(1.25); opacity: 0; }
}

.score-panel,
.winner-panel {
    margin: 16px 0 20px;
    padding: 16px;
    border: 1px solid #20202a;
    border-radius: 8px;
    background: #0b0b10;
}

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

.score-timer {
    color: var(--neon-pink);
    font-family: monospace;
    font-weight: bold;
    font-size: 1.25rem;
}

.score-list {
    display: grid;
    gap: 10px;
}

.score-row {
    display: grid;
    grid-template-columns: minmax(170px, 1fr) auto 104px;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid #1d1d28;
    border-radius: 6px;
    background: #07070b;
}

.score-name {
    color: #fff;
    font-weight: bold;
    letter-spacing: .5px;
}

.score-owner {
    color: #666;
    font-size: .75rem;
    margin-top: 3px;
}

.live-score-card {
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #1d1d28;
    border-radius: 999px;
    background: #07070b;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
}

.live-score-card.hidden {
    display: none;
}

.live-score-label {
    color: #555;
    font-size: .62rem;
    letter-spacing: 2px;
    font-weight: bold;
    white-space: nowrap;
}

.vibe-vote {
    display: flex;
    justify-content: center;
    gap: 7px;
    flex-wrap: wrap;
}

.vibe-token {
    min-width: 54px;
    height: 38px;
    padding: 0 9px;
    border: 1px solid #282836;
    border-radius: 7px;
    background: linear-gradient(135deg, #101018, #08080c);
    color: #777;
    font-size: .66rem;
    font-weight: bold;
    letter-spacing: .8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1px;
    transition: border-color .12s, color .12s, background .12s, transform .12s;
}

.vibe-token:hover {
    border-color: var(--neon-cyan);
    color: #fff;
}

.vibe-token.active {
    border-color: var(--neon-pink);
    background: linear-gradient(135deg, rgba(0, 210, 255, .18), rgba(255, 0, 85, .24));
    color: #fff;
    box-shadow: 0 0 14px rgba(255, 0, 85, .2), inset 0 0 12px rgba(0, 210, 255, .08);
    transform: translateY(-1px);
}

.vibe-number {
    color: #f4f4f8;
    font-family: monospace;
    font-size: .95rem;
    line-height: 1;
}

.vibe-word {
    color: #777;
    font-size: .52rem;
    letter-spacing: .8px;
    line-height: 1;
}

.vibe-token.active .vibe-word,
.vibe-token.active .vibe-number {
    color: #fff;
}

.score-value {
    color: var(--neon-cyan);
    font-family: monospace;
    font-weight: bold;
    text-align: right;
}

.winner-panel {
    text-align: center;
    border-color: rgba(0, 210, 255, .35);
    box-shadow: 0 0 28px rgba(0, 210, 255, .08);
}

.winner-title {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 2px;
    margin-top: 8px;
}

.winner-sub {
    color: var(--neon-cyan);
    margin-top: 6px;
    font-family: monospace;
}

.results-track-list {
    display: grid;
    gap: 10px;
    margin-top: 18px;
    text-align: left;
}

.result-track-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border: 1px solid #1d1d28;
    border-radius: 7px;
    background: #07070b;
}

.result-track-row .btn-ghost {
    padding: 8px 14px;
    margin: 0;
    font-size: .72rem;
}

.results-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
}

@media (max-width: 760px) {
    .match-content-layout {
        grid-template-columns: 1fr;
    }

    .match-chat-display {
        height: min(46vh, 430px);
    }

    .score-row {
        grid-template-columns: 1fr;
    }

    .live-score-card {
        grid-template-columns: 1fr;
        border-radius: 8px;
    }

    .score-value {
        text-align: left;
    }
}


/* ==========================================================================
   17. AVATAR SYSTEM
   ========================================================================== */
.avatar-ctrl-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.avatar-ctrl-label {
    font-size: .7rem;
    letter-spacing: 2px;
    color: #555;
    font-weight: bold;
    text-transform: uppercase;
}

.skin-swatch {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: .15s;
}

    .skin-swatch:hover {
        border-color: #fff;
        transform: scale(1.1);
    }

    .skin-swatch.active {
        border-color: var(--neon-cyan);
    }

.color-picker {
    width: 40px;
    height: 32px;
    border: 1px solid #333;
    border-radius: 4px;
    cursor: pointer;
    background: none;
    padding: 2px;
}

.custom-color-picker {
    width: 32px;
    height: 32px;
    padding: 0;
    border: 2px solid #333;
    border-radius: 5px;
    background:
        linear-gradient(45deg, rgba(255, 255, 255, .18) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, .18) 75%),
        linear-gradient(45deg, rgba(255, 255, 255, .18) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, .18) 75%),
        conic-gradient(#ff0055, #ffd23f, #a8ff3e, #00d2ff, #8d5cff, #ff0055);
    background-position: 0 0, 6px 6px, 0 0;
    background-size: 12px 12px, 12px 12px, 100% 100%;
    overflow: hidden;
}

    .custom-color-picker:hover {
        border-color: #fff;
        transform: scale(1.08);
    }

    .custom-color-picker::-webkit-color-swatch-wrapper {
        padding: 0;
    }

    .custom-color-picker::-webkit-color-swatch {
        border: 0;
        opacity: 0;
    }

    .custom-color-picker::-moz-color-swatch {
        border: 0;
        opacity: 0;
    }

.pixel-option-stepper {
    display: grid;
    grid-template-columns: 34px minmax(120px, 1fr) 34px;
    align-items: center;
    width: 100%;
    max-width: 260px;
    border: 1px solid #2a2a35;
    background: #09090d;
    box-shadow: inset 0 0 0 2px #050507;
}

.pixel-arrow-btn {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 0;
    background: #14141c;
    color: var(--neon-cyan);
    font-size: .85rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: inset -2px -2px 0 #050507, inset 2px 2px 0 rgba(255, 255, 255, .08);
}

    .pixel-arrow-btn:hover {
        color: #000;
        background: var(--neon-cyan);
    }

.pixel-option-label {
    min-width: 0;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    color: #fff;
    font-size: .78rem;
    font-weight: bold;
    letter-spacing: 1.5px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-left: 1px solid #20202a;
    border-right: 1px solid #20202a;
    font-family: 'Courier New', monospace;
}

/* Body Shape chips (Character Creator) */
.body-shape-btn {
    background: transparent;
    border: 1px solid #333;
    color: #888;
    padding: 8px 18px;
    border-radius: 4px;
    font-size: .8rem;
    font-weight: bold;
    letter-spacing: 2px;
    cursor: pointer;
    transition: .15s;
}

    .body-shape-btn:hover {
        border-color: #666;
        color: #fff;
    }

    .body-shape-btn.active {
        border-color: var(--neon-cyan);
        color: var(--neon-cyan);
        background: rgba(0, 210, 255, .07);
        box-shadow: 0 0 12px rgba(0, 210, 255, .15);
    }


/* ==========================================================================
   18. MODIFIER DRAG-AND-DROP
   ========================================================================== */
.mod-enable-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.mod-toggle-btn {
    background: transparent;
    border: 1px solid #444;
    color: #666;
    padding: 4px 14px;
    font-size: .75rem;
    font-weight: bold;
    letter-spacing: 1.5px;
    border-radius: 4px;
    cursor: pointer;
    transition: .2s;
}

    .mod-toggle-btn.active {
        border-color: var(--neon-cyan);
        color: var(--neon-cyan);
        background: rgba(0, 210, 255, .07);
    }

.modifier-layout {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.modifier-source-panel {
    flex: 1;
    background: #0a0a0f;
    border: 1px solid #222;
    border-radius: 6px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 80px;
}

.modifier-source-label {
    font-size: .65rem;
    letter-spacing: 2px;
    color: #444;
    font-weight: bold;
    margin-bottom: 4px;
}

.modifier-chip {
    background: #1a1a24;
    border: 1px solid #333;
    color: #aaa;
    padding: 6px 10px;
    border-radius: 5px;
    font-size: .8rem;
    cursor: grab;
    user-select: none;
    transition: border-color .15s, color .15s, transform .1s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

    .modifier-chip:hover {
        border-color: var(--neon-cyan);
        color: #fff;
    }

    .modifier-chip.dragging {
        opacity: .4;
    }

    .modifier-chip .chip-remove {
        color: #555;
        font-size: .75rem;
        cursor: pointer;
        line-height: 1;
        transition: color .15s;
    }

        .modifier-chip .chip-remove:hover {
            color: var(--neon-pink);
        }

.modifier-drop-zone {
    flex: 1;
    background: #0a0a0f;
    border: 1px dashed #2a2a35;
    border-radius: 6px;
    padding: 10px;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: border-color .2s, background .2s;
}

    .modifier-drop-zone.drag-over {
        border-color: var(--neon-cyan);
        background: rgba(0, 210, 255, .04);
    }

.modifier-drop-hint {
    font-size: .7rem;
    color: #333;
    letter-spacing: 2px;
    text-align: center;
    font-weight: bold;
    margin: auto;
}

.modifier-drop-zone .modifier-chip {
    background: rgba(0, 210, 255, .07);
    border-color: rgba(0, 210, 255, .25);
    color: #ccc;
}


/* ==========================================================================
   19. LEGACY MODIFIER CHECKBOXES (kept for safety)
   ========================================================================== */
.mod-checkbox-label {
    background: #111;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: .85rem;
    color: #aaa;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #333;
    cursor: pointer;
    transition: .2s;
}

    .mod-checkbox-label:hover {
        border-color: #555;
        color: #fff;
    }


/* ==========================================================================
   20. SOCIAL LINKS
   ========================================================================== */
.social-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.social-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .65rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: .5px;
}
