:root {
    --bg-color: #020617;
    --snake-white: #ffffff;
    --accent: #10b981;
    --danger: #f43f5e;
}

body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--bg-color);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    cursor: crosshair;
}

canvas {
    display: block;
}

.ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 20px;
    box-sizing: border-box;
    z-index: 5;
    transition: opacity 0.3s ease;
}

.ui-layer.hidden {
    opacity: 0;
}

.stats-bar {
    display: flex;
    justify-content: space-between;
    color: white;
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.right-hud {
    position: absolute;
    top: 60px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    pointer-events: none;
    z-index: 150;
}

.leaderboard {
    background: rgba(0, 0, 0, 0.4);
    padding: 12px;
    border-radius: 8px;
    color: white;
    font-size: 0.75rem;
    min-width: 150px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: auto;
}

.leaderboard h3 {
    margin: 0;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    padding: 4px 0;
    cursor: pointer;
    flex-grow: 1;
    user-select: none;
}

.leaderboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(16, 185, 129, 0.3);
    margin-bottom: 8px;
}

.leaderboard.minimized #leaderboardList {
    display: none;
}

.leaderboard.minimized {
    min-width: 100px;
}

.leaderboard.minimized .leaderboard-header {
    border-bottom: none;
    margin-bottom: 0;
}

.collapse-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 5px;
    line-height: 1;
    transition: color 0.2s;
}

.collapse-btn:hover {
    color: white;
}

.collapse-btn.hidden {
    display: none;
}

.leaderboard-icon {
    background: rgba(0, 0, 0, 0.4);
    padding: 10px;
    border-radius: 8px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: auto;
    cursor: pointer;
    transition: background 0.2s;
}

.leaderboard-icon:hover {
    background: rgba(0, 0, 0, 0.6);
}

.leaderboard-icon.hidden {
    display: none;
}

.hamburger-icon {
    width: 20px;
    height: 14px;
    position: relative;
    border-top: 2px solid white;
    border-bottom: 2px solid white;
}

.hamburger-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: white;
    top: 50%;
    transform: translateY(-50%);
}

.leaderboard-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2px;
    font-family: monospace;
}

.leaderboard-row.is-player {
    color: var(--accent);
    font-weight: bold;
}

.leaderboard-row.is-hunter {
    color: var(--danger);
}

.debug-stats {
    margin-top: 5px;
    font-family: monospace;
    font-size: 0.8rem;
    color: #94a3b8;
    background: rgba(0, 0, 0, 0.3);
    padding: 6px 10px;
    border-radius: 4px;
    width: fit-content;
    pointer-events: none;
    border-left: 3px solid var(--accent);
}

#buffArea {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    pointer-events: none;
}

#buffArea.hidden {
    display: none;
}

.buff {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    padding: 3px 10px;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    width: fit-content;
}

.buff .icon {
    font-size: 0.85rem;
}

.buff .timer {
    font-family: monospace;
    font-weight: 800;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 0.65rem;
    margin-left: 4px;
}

.buff-icon {
    font-weight: bold;
    font-size: 0.8rem;
}

#speedBoostVal {
    font-weight: bold;
}

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    z-index: 20;
    pointer-events: auto;
    backdrop-filter: blur(12px);
    text-align: center;
    overflow-y: auto;
    padding: 60px 15px 40px 15px;
    box-sizing: border-box;
}

.overlay .btn-secondary,
.popup-overlay .btn-secondary {
    width: 100%;
    max-width: 400px;
    padding: 12px;
    font-size: 1rem;
    font-weight: 800;
}

.popup-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(30, 10, 10, 0.95);
    border: 2px solid #ef4444;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.5);
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    text-align: center;
}

.popup-overlay.hidden {
    display: none !important;
}

.overlay.hidden {
    display: none !important;
}

#pauseOverlay,
#gameOverOverlay {
    justify-content: center;
    padding: 20px;
}

.logo-main {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 900;
    margin: 0;
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #064e3b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -2px;
}

.start-header {
    margin-bottom: 30px;
}

.start-columns {
    display: flex;
    gap: 40px;
    width: 100%;
    max-width: 900px;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
}

.start-column {
    flex: 1;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 320px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.column-title {
    color: white;
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 2px solid var(--accent);
    /* Default to green for Single Player */
    padding-bottom: 8px;
    width: 100%;
}

/* Multiplayer specific title color */
.start-column:last-child .column-title {
    border-bottom-color: #3b82f6;
}

.column-subtitle {
    color: #64748b;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 15px 0 8px 0;
}

.conn-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #ef4444;
    border-radius: 50%;
    margin-left: 8px;
    vertical-align: middle;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.conn-dot.orange {
    background: #f59e0b;
    box-shadow: 0 0 8px #f59e0b;
    animation: conn-pulse 1s infinite alternate;
}

.conn-dot.green {
    background: #10b981;
    box-shadow: 0 0 5px #10b981;
}

.conn-dot.red {
    background: #ef4444;
}

@keyframes conn-pulse {
    from {
        opacity: 1;
    }

    to {
        opacity: 0.5;
    }
}

.btn-mp-host {
    background: #3b82f6 !important;
    width: auto !important;
    min-width: 180px;
    margin: 15px auto !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 25px;
    transition: all 0.3s ease;
}

.btn-mp-host.offline {
    background: #1e3a8a !important;
    /* Darker, dim blue */
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-mp-plus {
    background: rgba(255, 255, 255, 0.2);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    line-height: 1;
}

.lobby-list-container {
    width: 100%;
    margin-top: 20px;
    border: 2px solid #3b82f6;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
    box-sizing: border-box;
}

.lobby-list {
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 5px;
}

.lobby-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
}

.lobby-item:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--accent);
    transform: translateX(4px);
}

.lobby-info {
    text-align: left;
}

.lobby-host-name {
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    display: block;
}

.lobby-meta {
    color: white;
    font-size: 0.7rem;
}

.lobby-player-count {
    background: var(--accent);
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 10px;
}

.lobby-empty-text {
    color: #475569;
    font-size: 0.75rem;
    font-style: italic;
    margin-top: 10px;
}

.btn-start-mp {
    max-width: 500px !important;
    background: linear-gradient(to right, #10b981, #3b82f6) !important;
    font-size: 1.2rem !important;
    padding: 15px !important;
}

.version-label {
    color: #475569;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    width: 100%;
    max-width: 800px;
    margin-bottom: 20px;
}

.setting-box {
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: left;
}

.setting-box.full {
    grid-column: span 4;
}

.setting-box.half {
    grid-column: span 2;
}

.setting-box label {
    display: block;
    color: #64748b;
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    padding: 0 4px;
    margin-top: 4px;
    color: #94a3b8;
    font-size: 0.65rem;
    font-weight: 700;
}

.setting-box .val {
    float: right;
    color: #cbd5e1;
    font-family: monospace;
    font-size: 0.75rem;
}

.select-input,
.text-input {
    width: 100%;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 6px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    outline: none;
    box-sizing: border-box;
}

.text-input {
    cursor: text;
}

.text-input:disabled {
    background: rgba(15, 23, 42, 0.5);
    color: #475569;
    border-color: rgba(255, 255, 255, 0.05);
    cursor: not-allowed;
    opacity: 0.5;
}


.input-prefix-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.input-prefix {
    color: #94a3b8;
    font-weight: 800;
    font-size: 1rem;
    user-select: none;
}

.sub-setting-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 600;
}

.sub-setting-row .text-input {
    width: 50px;
    padding: 2px 5px;
    text-align: center;
}

input[type=range] {
    width: 100%;
    accent-color: #10b981;
    cursor: pointer;
    margin: 4px 0;
}

.btn-main {
    width: 100%;
    max-width: 400px;
    padding: 12px;
    font-size: 1rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 8px;
}

.btn-main:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 20px;
    border-radius: 6px;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
}

.shortcut-pill {
    background: rgba(255, 255, 255, 0.05);
    padding: 1px 4px;
    border-radius: 3px;
    color: #10b981;
    font-weight: bold;
}

.checkbox-container {
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 0.75rem;
    margin-top: 4px;
}

.checkbox-container input {
    cursor: pointer;
}

.setting-disabled {
    opacity: 0.35;
    pointer-events: none;
    filter: grayscale(0.5);
}

/* Pill Switch UI */
.pill-switch {
    position: relative;
    display: flex;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 20px;
    padding: 2px;
    width: 120px;
    height: 28px;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.1);
}

.pill-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 58px;
    height: 24px;
    background: var(--accent);
    border-radius: 18px;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
    z-index: 1;
}

.pill-option {
    flex: 1;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    color: #64748b;
    transition: color 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
    pointer-events: none;
}

.pill-option.active {
    color: white;
}

/* Virtual Joystick */
#virtualJoystick {
    position: absolute;
    width: 240px;
    height: 240px;
    background: transparent;
    border: 2px solid black;
    border-radius: 50%;
    pointer-events: none;
    display: none;
    z-index: 100;
    transform: translate(-50%, -50%);
}

#joystickKnob {
    position: absolute;
    width: 80px;
    height: 80px;
    background: #10b981;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.start-setting {
    margin: 15px 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 600;
}

.mobile-controls {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: row;
    gap: 12px;
    z-index: 150;
    pointer-events: auto;
}

.mobile-btn {
    width: 60px;
    height: 60px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: none !important;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent !important;
    opacity: 0.7;
    appearance: none !important;
    -webkit-appearance: none !important;
    padding: 0;
    margin: 0;
    outline: none !important;
}

/* Pause Icon: Two Vertical Bars */
.pause-icon-bars {
    display: flex;
    gap: 6px;
    height: 22px;
    pointer-events: none;
}

.pause-icon-bars::before,
.pause-icon-bars::after {
    content: '';
    width: 5px;
    height: 100%;
    background: white;
    border-radius: 2px;
}

/* Fullscreen Icon: Minimalist Corners */
.fullscreen-icon-corners {
    width: 22px;
    height: 22px;
    position: relative;
    pointer-events: none;
    background:
        /* Top Left */
        linear-gradient(to right, white 2.5px, transparent 2.5px) 0 0,
        linear-gradient(to bottom, white 2.5px, transparent 2.5px) 0 0,
        /* Top Right */
        linear-gradient(to left, white 2.5px, transparent 2.5px) 100% 0,
        linear-gradient(to bottom, white 2.5px, transparent 2.5px) 100% 0,
        /* Bottom Left */
        linear-gradient(to right, white 2.5px, transparent 2.5px) 0 100%,
        linear-gradient(to top, white 2.5px, transparent 2.5px) 0 100%,
        /* Bottom Right */
        linear-gradient(to left, white 2.5px, transparent 2.5px) 100% 100%,
        linear-gradient(to top, white 2.5px, transparent 2.5px) 100% 100%;
    background-repeat: no-repeat;
    background-size: 7px 7px;
    /* Clear "L" shape at each corner */
}



.mobile-btn:active {
    transform: scale(1.25);
    opacity: 1;
}


/* Multiplayer Player List (Side Minimap) */
body.minimap-hidden .player-list {
    bottom: 20px;
}

.player-list {
    position: absolute;
    bottom: 190px;
    /* Above minimap + padding */
    right: 20px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    border-radius: 8px;
    padding: 8px 12px;
    min-width: 120px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.75rem;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 200px;
    overflow-y: auto;
    pointer-events: none;
}

.player-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    font-family: monospace;
}

.player-ping {
    opacity: 0.5;
    font-size: 0.65rem;
}

.player-list-item.larger {
    color: #a855f7;
}

.player-list-item.local {
    color: #ffffff;
    font-weight: bold;
}

.hidden {
    display: none !important;
}


.reset-trigger {
    cursor: pointer;
    user-select: none;
    transition: color 0.2s;
}

.reset-trigger:hover {
    color: #38bdf8;
}

.play-counter {
    margin-top: 20px;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 600;
    pointer-events: none;
    letter-spacing: 0.5px;
    background: rgba(0, 0, 0, 0.2);
    padding: 6px 16px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.mp-status-bar {
    position: absolute;
    top: 52px;
    left: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    pointer-events: none;
    z-index: 1001;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 3px 12px;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    transform-origin: top left;
    transform: scale(0.65);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mp-status-bar.hidden {
    opacity: 0;
    transform: scale(0.4) translateY(-20px);
    display: flex !important;
}

.mp-status-type {
    font-weight: 900;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1.2;
}

.mp-status-type.host {
    color: #60a5fa;
    text-shadow: 0 0 15px rgba(96, 165, 250, 0.7);
}

.mp-status-type.joined {
    color: #34d399;
    text-shadow: 0 0 15px rgba(52, 211, 153, 0.7);
}

.mp-session-id {
    color: #94a3b8;
    font-size: 0.7rem;
    font-weight: 700;
    margin-top: 2px;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.8;
}

.mp-toast {
    position: absolute;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(244, 63, 94, 0.95);
    color: white;
    padding: 10px 28px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 900;
    z-index: 2000;
    pointer-events: none;
    box-shadow: 0 4px 25px rgba(244, 63, 94, 0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    letter-spacing: 1.5px;
}

.mp-toast.show {
    opacity: 1;
    transform: translate(-50%, 15px);
}

/* Snake Designer Styles */
.designer-icon-btn {
    width: 80px;
    height: 40px;

    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.designer-icon-btn:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--accent);
    transform: scale(1.05);
}

.designer-card {
    background: rgba(15, 23, 42, 0.9);
    border: 2px solid var(--accent);
    border-radius: 16px;
    padding: 30px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 0 40px rgba(16, 185, 129, 0.2);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.designer-title {
    margin: 0;
    color: white;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.designer-preview-container {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

#designerPreviewCanvas {
    width: 100%;
    height: auto;
    display: block;
}

.color-palette-label {
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
    text-align: left;
}

.color-palette {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.color-swatch {
    aspect-ratio: 1;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    background-clip: padding-box;
}

.custom-color-row {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 20px;
}

#customColorSlot {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.rgb-slider-group {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.slider-field {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #94a3b8;
    font-size: 0.7rem;
    font-weight: 900;
}

.slider-field input[type="range"] {
    flex-grow: 1;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    outline: none;
}

.slider-field input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.color-swatch:hover {
    transform: scale(1.15);
    z-index: 1;
}

.color-swatch.active {
    border-color: white;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.designer-actions {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.designer-actions .btn-designer {
    padding: 8px 16px;
    font-size: 0.9em;
    min-width: 80px;
    margin: 0;
}

.password-setting-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}

.airliner-toggle-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 80px;
}

.airliner-toggle-container label {
    margin: 0;
    font-size: 0.65rem;
    opacity: 0.6;
}

.airliner-toggle {
    width: 60px;
    height: 40px;
    background: #1e293b;
    border: 2px solid #334155;
    border-radius: 6px;
    position: relative;
    cursor: pointer;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.5), 0 2px 0 #0f172a;
    transition: all 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.airliner-toggle:active {
    transform: translateY(2px);
    box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.7);
}

.airliner-status {
    display: none;
    /* Hide status text as padlock takes over */
}


.airliner-icon {
    color: #475569;
    transition: color 0.2s, filter 0.2s;
}

.airliner-toggle.active {
    background: #334155;
    border-color: #facc15;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5), 0 0 15px rgba(250, 204, 21, 0.2);
}

.airliner-toggle.active .airliner-status {
    color: #facc15;
    text-shadow: 0 0 5px rgba(250, 204, 21, 0.5);
}

.airliner-toggle.active .airliner-icon {
    color: #facc15;
    filter: drop-shadow(0 0 5px rgba(250, 204, 21, 0.5));
}

.password-input-wrapper {
    flex: 1;
}

.password-input-wrapper input {
    width: 100%;
    letter-spacing: 2px;
}

.lobby-meta-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lobby-padlock {
    color: #facc15;
    filter: drop-shadow(0 0 5px rgba(250, 204, 21, 0.4));
    display: flex;
    align-items: center;
    opacity: 0.9;
}

/* Powerups Modal & Triggers */
.modal-trigger {
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: rgba(16, 185, 129, 0.3);
    transition: all 0.2s;
}

.modal-trigger:hover {
    color: var(--accent);
    text-decoration-color: var(--accent);
}

.powerups-card {
    max-width: 450px;
    padding: 30px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.powerup-settings-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.powerup-setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 15px;
    border-radius: 8px;
}

.powerup-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 120px;
}

.powerup-info label {
    font-weight: 700;
    font-size: 0.9rem;
    color: white;
}

.powerup-sample {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.powerup-sample.firework {
    background: #ef4444;
    box-shadow: 0 0 15px #ef4444;
}

.powerup-sample.magnet {
    background: #3b82f6;
    box-shadow: 0 0 15px #3b82f6;
}

.powerup-sample.shield {
    background: #10b981;
    box-shadow: 0 0 15px #10b981;
}

.slider-with-labels {
    position: relative;
    padding-top: 20px;
    margin-top: 5px;
}

.slider-notch-labels {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.powerup-sample.tornado {
    background: radial-gradient(circle at 30% 30%, #94a3b8, #475569);
    box-shadow: 0 0 10px rgba(148, 163, 184, 0.5);
    position: relative;
    overflow: hidden;
}

.powerup-sample.tornado::after {
    content: "🌪️";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
