/* Retro Pixel Art Stylesheet - Legendary Wizard */
@font-face {
    font-family: 'RetroFont';
    src: url('../assets/fonts/FVF Fernando 08.ttf') format('truetype');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
}

:root {
    --bg-dark: #07090e;
    --panel-bg: rgba(13, 18, 30, 0.94);
    --border-color: #3b82f6;
    --gold: #fbbf24;
    --p1-color: #3b82f6;
    --p2-color: #10b981;
}

body {
    background-color: var(--bg-dark);
    color: #ffffff;
    font-family: 'RetroFont', monospace, sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#app-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at center, #111827 0%, #030712 100%);
}

/* Pixel Canvas Container maintaining 16:9 ratio */
#canvas-wrapper {
    position: relative;
    width: min(98vw, 174.2vh); /* 16:9 widescreen */
    height: min(55.125vw, 98vh);
    background-color: #000;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.95), 0 0 20px rgba(59, 130, 246, 0.35);
    border: 2px solid #1e293b;
    border-radius: 4px;
    overflow: hidden;
}

#gameCanvas {
    width: 100%;
    height: 100%;
    display: block;
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-crisp-edges;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

/* CRT Scanlines Overlay */
.scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        rgba(18, 16, 16, 0) 50%, 
        rgba(0, 0, 0, 0.2) 50%
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 10;
}

/* HUD Overlay */
#game-hud {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 6px 10px;
    z-index: 20;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

.player-hud-card {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid #334155;
    border-radius: 4px;
    padding: 6px 8px;
    min-width: 160px;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.p1-card { border-left: 3px solid var(--p1-color); }
.p2-card { border-left: 3px solid var(--p2-color); }

.hud-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 8px;
    margin-bottom: 4px;
}

.hud-title {
    font-weight: bold;
    font-size: 8px;
}
.p1-card .hud-title { color: #60a5fa; }
.p2-card .hud-title { color: #34d399; }

/* Pixel Art UI Health Bar using assets/ui/hp_frame.png & hp_fill.png */
.bar-container {
    position: relative;
    width: 112px;
    height: 16px;
    margin-bottom: 4px;
}

.bar-fill-hp {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: url('../assets/ui/hp_fill.png') no-repeat left center;
    background-size: 112px 16px;
    image-rendering: pixelated;
    transition: width 0.15s ease-out;
    z-index: 1;
}

.bar-frame-hp {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../assets/ui/hp_frame.png') no-repeat center center;
    background-size: 100% 100%;
    image-rendering: pixelated;
    pointer-events: none;
    z-index: 2; /* Frame sits on top of fill! */
}

/* Pixel Art UI Stamina / EXP Bar using assets/ui/stamina_frame.png & stamina_fill.png */
.bar-fill-exp {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: url('../assets/ui/stamina_fill.png') no-repeat left center;
    background-size: 112px 16px;
    image-rendering: pixelated;
    transition: width 0.15s ease-out;
    z-index: 1;
}

.bar-frame-exp {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../assets/ui/stamina_frame.png') no-repeat center center;
    background-size: 100% 100%;
    image-rendering: pixelated;
    pointer-events: none;
    z-index: 2; /* Frame sits on top of fill! */
}

/* Boss Mega Health Bar */
.boss-hud-container {
    align-self: center;
    width: 65%;
    max-width: 480px;
    background: rgba(15, 23, 42, 0.95);
    border: 2px solid #ef4444;
    border-radius: 6px;
    padding: 6px 12px;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.6), inset 0 0 10px rgba(239, 68, 68, 0.3);
    margin-top: 6px;
    backdrop-filter: blur(4px);
    animation: bossPulse 2s infinite alternate;
}

@keyframes bossPulse {
    from { box-shadow: 0 0 10px rgba(239, 68, 68, 0.5); }
    to { box-shadow: 0 0 22px rgba(239, 68, 68, 0.9); }
}

.boss-hud-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.boss-name {
    font-size: 9px;
    font-weight: bold;
    color: #fca5a5;
    letter-spacing: 0.5px;
    text-shadow: 0 0 6px #dc2626;
}

.boss-hp-text {
    font-size: 8px;
    font-weight: bold;
    color: #ffffff;
}

.boss-bar-container {
    position: relative;
    width: 100%;
    height: 10px;
    background: #450a0a;
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid #7f1d1d;
}

.boss-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ef4444, #f59e0b);
    transition: width 0.15s ease-out;
    box-shadow: 0 0 8px #ef4444;
}

/* Slots for Skills & Passives */
.slots-container {
    display: flex;
    gap: 4px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.slot-icon {
    width: 18px;
    height: 18px;
    background: #0f172a;
    border: 1px solid #475569;
    border-radius: 2px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 9px;
    position: relative;
}

.slot-icon span {
    position: absolute;
    bottom: -1px;
    right: 1px;
    font-size: 6px;
    color: #fbbf24;
}

.slot-empty {
    color: #334155;
}

/* Elemental Slot Border Accents */
.elem-border-fire { border-color: #ff4d00; }
.elem-border-water { border-color: #00b4d8; }
.elem-border-earth { border-color: #b07d62; }
.elem-border-plant { border-color: #55a630; }
.elem-border-lightning { border-color: #00f5d4; }
.elem-border-wind { border-color: #70e000; }
.elem-border-poison { border-color: #9d4edd; }
.elem-border-light { border-color: #ffe600; }
.elem-border-dark { border-color: #7209b7; }
.elem-border-blood { border-color: #ef4444; }
.elem-border-psychic { border-color: #d946ef; }
.elem-border-fairy { border-color: #f472b6; }
.elem-border-fusion { border-color: #f59e0b; }

/* Timer in Center Top */
.timer-card {
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid #334155;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 10px;
    color: #f8fafc;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
}

/* Level Up Modal */
.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 7, 18, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
    backdrop-filter: blur(6px);
}

.modal-content {
    text-align: center;
    max-width: 90%;
}

.modal-header {
    font-size: 11px;
    color: #fde047;
    margin-bottom: 16px;
    text-shadow: 0 0 10px rgba(253, 224, 71, 0.6);
}

.cards-container {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.upgrade-card {
    width: 165px;
    min-height: 190px;
    background: #0f172a;
    border: 2px solid #3b82f6;
    border-radius: 6px;
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    position: relative;
    pointer-events: auto;
}

.upgrade-card:hover {
    transform: translateY(-5px) scale(1.04);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
    border-color: #60a5fa;
}

.card-element-tag {
    font-size: 7px;
    padding: 2px 6px;
    border-radius: 3px;
    background: #1e293b;
    color: #94a3b8;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.card-icon {
    font-size: 26px;
    margin: 6px 0;
}

.card-title {
    font-size: 8px;
    color: #f8fafc;
    margin-bottom: 4px;
    line-height: 1.3;
    text-align: center;
}

.card-level {
    font-size: 7px;
    color: #fbbf24;
    margin-bottom: 6px;
}

.card-desc {
    font-size: 7px;
    color: #94a3b8;
    line-height: 1.4;
    text-align: center;
    flex-grow: 1;
}

.card-key-hint {
    font-size: 7px;
    color: #64748b;
    margin-top: 6px;
    background: #020617;
    padding: 3px 6px;
    border-radius: 2px;
}

/* Elemental Themes for Upgrade Cards */
.elem-fire { border-color: #ea580c; background: linear-gradient(180deg, #1c1917 0%, #451a03 100%); }
.elem-fire:hover { box-shadow: 0 8px 24px rgba(234, 88, 12, 0.5); }
.elem-water { border-color: #0284c7; background: linear-gradient(180deg, #082f49 0%, #0c4a6e 100%); }
.elem-water:hover { box-shadow: 0 8px 24px rgba(2, 132, 199, 0.5); }
.elem-earth { border-color: #b45309; background: linear-gradient(180deg, #1c1917 0%, #451a03 100%); }
.elem-plant { border-color: #16a34a; background: linear-gradient(180deg, #052e16 0%, #14532d 100%); }
.elem-lightning { border-color: #06b6d4; background: linear-gradient(180deg, #083344 0%, #164e63 100%); }
.elem-wind { border-color: #84cc16; background: linear-gradient(180deg, #14532d 0%, #365314 100%); }
.elem-poison { border-color: #9333ea; background: linear-gradient(180deg, #3b0764 0%, #581c87 100%); }
.elem-light { border-color: #eab308; background: linear-gradient(180deg, #422006 0%, #713f12 100%); }
.elem-dark { border-color: #c026d3; background: linear-gradient(180deg, #2e1065 0%, #4a044e 100%); }
.elem-blood { border-color: #dc2626; background: linear-gradient(180deg, #450a0a 0%, #7f1d1d 100%); }
.elem-blood:hover { box-shadow: 0 8px 24px rgba(220, 38, 38, 0.5); }
.elem-psychic { border-color: #c026d3; background: linear-gradient(180deg, #3b0764 0%, #701a75 100%); }
.elem-psychic:hover { box-shadow: 0 8px 24px rgba(217, 70, 239, 0.5); }
.elem-fairy { border-color: #ec4899; background: linear-gradient(180deg, #500724 0%, #831843 100%); }
.elem-fairy:hover { box-shadow: 0 8px 24px rgba(244, 114, 182, 0.5); }
.elem-fusion { border-color: #f59e0b; background: linear-gradient(180deg, #451a03 0%, #78350f 100%); }
.elem-fusion:hover { box-shadow: 0 8px 24px rgba(245, 158, 11, 0.6); }

/* Main Menu Screen */
#main-menu {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #0f172a 0%, #020617 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 150;
    padding: 16px;
}

.game-logo {
    font-size: 13px;
    color: #fde047;
    text-align: center;
    text-shadow: 0 0 14px rgba(253, 224, 71, 0.6), 2px 2px #b45309;
    margin-bottom: 4px;
}

.game-sub {
    font-size: 8px;
    color: #94a3b8;
    margin-bottom: 18px;
}

.menu-skin-section {
    display: flex;
    gap: 16px;
    margin-bottom: 18px;
}

.skin-picker-box {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 4px;
    padding: 8px;
    min-width: 150px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.skin-picker-box label {
    font-size: 7px;
    color: #cbd5e1;
}

.skin-picker-box select {
    background: #1e293b;
    color: #f8fafc;
    border: 1px solid #475569;
    border-radius: 3px;
    padding: 4px;
    font-family: inherit;
    font-size: 8px;
    outline: none;
}

.menu-buttons {
    display: flex;
    gap: 14px;
}

.pixel-btn {
    font-family: inherit;
    font-size: 8px;
    background: #2563eb;
    color: #ffffff;
    border: 2px solid #60a5fa;
    border-radius: 4px;
    padding: 8px 14px;
    cursor: pointer;
    transition: transform 0.1s ease, background-color 0.1s ease;
}

.pixel-btn:hover {
    background: #1d4ed8;
    transform: scale(1.05);
}

.pixel-btn-coop {
    background: #059669;
    border-color: #34d399;
}
.pixel-btn-coop:hover {
    background: #047857;
}

.controls-hint {
    font-size: 7px;
    color: #64748b;
    margin-top: 16px;
    text-align: center;
    line-height: 1.6;
}

.boss-timer-badge {
    display: block;
    font-size: 7px;
    color: #f59e0b;
    margin-top: 2px;
    font-weight: bold;
    text-shadow: 0 0 6px rgba(245, 158, 11, 0.6);
}

.hud-stat-badge {
    font-size: 7px;
    color: #94a3b8;
    background: rgba(30, 41, 59, 0.8);
    padding: 2px 5px;
    border-radius: 3px;
    border: 1px solid #334155;
}
.hud-stat-badge span {
    font-weight: bold;
}
#p1-kills, #p2-kills { color: #f87171; }
#p1-dmg, #p2-dmg { color: #38bdf8; }

.modal-footer {
    margin-top: 14px;
}

.btn-reroll {
    font-family: inherit;
    font-size: 8px;
    background: #7c3aed;
    color: #ffffff;
    border: 2px solid #a78bfa;
    border-radius: 4px;
    padding: 6px 14px;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(167, 139, 250, 0.5);
    transition: transform 0.1s ease, background 0.1s ease, box-shadow 0.1s ease;
    pointer-events: auto;
}
.btn-reroll:hover {
    background: #6d28d9;
    transform: scale(1.05);
    box-shadow: 0 0 16px rgba(167, 139, 250, 0.8);
}
.btn-reroll:disabled {
    background: #334155;
    border-color: #475569;
    color: #94a3b8;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

/* Game Over & Damage Report */
.game-over-content {
    background: rgba(15, 23, 42, 0.96);
    border: 2px solid #ef4444;
    border-radius: 8px;
    padding: 16px 20px;
    max-width: 90%;
    max-height: 90%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.5);
}

.damage-report-container {
    width: 100%;
    margin-bottom: 14px;
}

.report-grid {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.report-player-card {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 5px;
    padding: 8px 12px;
    min-width: 180px;
    text-align: left;
}
.report-p1 { border-top: 3px solid #3b82f6; }
.report-p2 { border-top: 3px solid #10b981; }

.report-player-header {
    display: flex;
    justify-content: space-between;
    font-size: 8px;
    font-weight: bold;
    margin-bottom: 6px;
}

.report-stat-line {
    font-size: 7px;
    color: #cbd5e1;
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between;
}

.report-skill-list {
    margin-top: 6px;
    border-top: 1px dashed #334155;
    padding-top: 4px;
}

.report-skill-item {
    font-size: 6.5px;
    color: #94a3b8;
    display: flex;
    justify-content: space-between;
    margin-bottom: 2px;
}

.dps-bar-bg {
    width: 100%;
    height: 4px;
    background: #1e293b;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 2px;
}
.dps-bar-fill {
    height: 100%;
    background: #38bdf8;
}

/* Skill Lab Button */
.pixel-btn-lab {
    background: linear-gradient(180deg, #7c3aed 0%, #4c1d95 100%);
    border-color: #a855f7;
    box-shadow: 0 4px 0 #3b0764, 0 0 12px rgba(168, 85, 247, 0.4);
    color: #f5d0fe;
}
.pixel-btn-lab:hover {
    background: linear-gradient(180deg, #9333ea 0%, #581c87 100%);
    box-shadow: 0 2px 0 #3b0764, 0 0 16px rgba(168, 85, 247, 0.7);
    color: #ffffff;
}

/* Skill Lab Modal & Container (Transparent Floating HUD) */
.lab-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    filter: none !important;
    pointer-events: none;
    z-index: 100;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.lab-container {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    background: transparent;
    border: none;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: #ffffff;
    font-family: 'RetroFont', monospace, sans-serif;
    pointer-events: none;
}

/* Lab Header */
.lab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 10px;
    background: rgba(15, 23, 42, 0.94);
    border: 1px solid #4338ca;
    border-radius: 6px;
    margin: 4px 6px;
    pointer-events: auto;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}

.lab-title {
    font-size: 8px;
    color: #a5b4fc;
    letter-spacing: 0.5px;
    text-shadow: 0 0 8px rgba(165, 180, 252, 0.5);
}

.lab-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.lab-badge-stat {
    background: #1e1b4b;
    border: 1px solid #4f46e5;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 6.5px;
    color: #38bdf8;
}

.pixel-btn-sm {
    padding: 3px 8px;
    font-size: 6.5px;
}
.pixel-btn-xs {
    padding: 2px 5px;
    font-size: 5.5px;
}

/* Lab Body Split */
.lab-body {
    display: flex;
    justify-content: space-between;
    flex: 1;
    overflow: hidden;
    padding: 0 6px 6px 6px;
    pointer-events: none;
}

/* Left Catalog Panel */
.lab-catalog-panel {
    width: 32%;
    max-width: 290px;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 6px;
    background: rgba(13, 17, 28, 0.92);
    border: 1px solid #334155;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    pointer-events: auto;
}

.lab-search-box input {
    width: 100%;
    background: #0f172a;
    border: 1px solid #334155;
    color: #ffffff;
    padding: 4px 8px;
    font-family: inherit;
    font-size: 7px;
    border-radius: 4px;
    outline: none;
    margin-bottom: 6px;
}
.lab-search-box input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 6px rgba(99, 102, 241, 0.4);
}

.lab-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin-bottom: 6px;
}

.lab-filter-btn {
    background: #1e293b;
    border: 1px solid #334155;
    color: #94a3b8;
    font-family: inherit;
    font-size: 6px;
    padding: 2px 5px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.lab-filter-btn:hover {
    color: #ffffff;
    border-color: #64748b;
}
.lab-filter-btn.active {
    background: #4338ca;
    color: #ffffff;
    border-color: #818cf8;
    box-shadow: 0 0 6px rgba(129, 140, 248, 0.5);
}

.lab-count-hint {
    font-size: 6px;
    color: #64748b;
    margin-bottom: 4px;
}

.lab-grid-container {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-right: 4px;
}

.lab-skill-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid #334155;
    padding: 4px 6px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.lab-skill-card:hover {
    background: rgba(51, 65, 85, 0.9);
    border-color: #64748b;
    transform: translateX(2px);
}
.lab-skill-card.equipped {
    background: rgba(67, 56, 202, 0.4);
    border-color: #818cf8;
}

.lab-card-icon {
    font-size: 11px;
    width: 18px;
    text-align: center;
}

.lab-card-info {
    flex: 1;
    margin-left: 6px;
    display: flex;
    flex-direction: column;
}

.lab-card-name {
    font-size: 6.8px;
    color: #f1f5f9;
    font-weight: bold;
}

.lab-card-elem {
    font-size: 5.5px;
    color: #94a3b8;
    margin-top: 1px;
}

.lab-card-btn {
    background: #334155;
    border: 1px solid #475569;
    color: #e2e8f0;
    font-family: inherit;
    font-size: 5.5px;
    padding: 2px 5px;
    border-radius: 3px;
    cursor: pointer;
}
.lab-skill-card.equipped .lab-card-btn {
    background: #dc2626;
    border-color: #f87171;
    color: #ffffff;
}

/* Right Control Panel */
.lab-controls-panel {
    width: 32%;
    max-width: 290px;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 6px;
    gap: 6px;
    overflow-y: auto;
    background: rgba(13, 17, 28, 0.92);
    border: 1px solid #334155;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    pointer-events: auto;
}

.lab-section {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid #334155;
    border-radius: 6px;
    padding: 5px 7px;
}

.lab-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 7.5px;
    color: #e2e8f0;
    font-weight: bold;
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 3px;
}

.lab-btn-text {
    background: none;
    border: none;
    color: #f87171;
    font-family: inherit;
    font-size: 6px;
    cursor: pointer;
    text-decoration: underline;
}
.lab-btn-text:hover {
    color: #ef4444;
}

.lab-slots-row {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-height: 40px;
}

.lab-empty-hint {
    font-size: 6px;
    color: #64748b;
    font-style: italic;
    padding: 8px 4px;
}

.lab-equipped-slot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #0f172a;
    border: 1px solid #3b82f6;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 6.5px;
}

.slot-icon { font-size: 9px; margin-right: 4px; }
.slot-name { flex: 1; color: #f8fafc; }
.slot-remove {
    color: #ef4444;
    cursor: pointer;
    font-size: 8px;
    padding: 0 3px;
}
.slot-remove:hover { color: #fca5a5; }

.lab-setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 6.5px;
    color: #cbd5e1;
    margin-bottom: 5px;
}

.lab-subhint {
    font-size: 5.5px;
    color: #94a3b8;
}

.lab-slider-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 6.5px;
    color: #cbd5e1;
    margin-bottom: 5px;
    gap: 6px;
}

.lab-slider-row input[type="range"] {
    flex: 1;
    height: 4px;
    accent-color: #6366f1;
    cursor: pointer;
}

.slider-val {
    font-size: 6.5px;
    color: #38bdf8;
    width: 25px;
    text-align: right;
}

.lab-select {
    background: #0f172a;
    border: 1px solid #334155;
    color: #ffffff;
    font-family: inherit;
    font-size: 6px;
    padding: 2px 4px;
    border-radius: 3px;
    outline: none;
}

.hidden {
    display: none !important;
}
