:root {
    --whole-color: #1a1a1a;
    --secondary-color: #252525;
    --ternary-color: #0f0f0f;
    --alternate-color: #e8e8e8;
    --accent-color: #4a9eff;
    --accent-glow: rgba(74, 158, 255, 0.3);
    --button-bg: #2a2a2a;
    --button-hover: #353535;
    --button-border: #3a3a3a;
    --text-color: #f0f0f0;
    --text-muted: #888888;
    --success-color: #4ade80;
    --danger-color: #f87171;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, var(--whole-color) 0%, #101015 100%);
    font-family: 'Segoe UI', Tahoma, sans-serif;
    color: var(--alternate-color);
    overflow: hidden;
    width: 100vw;
    height: 100vh;
}

.container {
    display: flex;
    width: 100%;
    height: 100%;
}

/* Left Panel */
.left-panel {
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, var(--whole-color) 0%, #121218 100%);
    border-right: 1px solid var(--button-border);
    overflow: hidden;
}

.logo-section {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
    min-height: 100px;
    /* Reduced from 180px */
    position: relative;
}

.logo-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--button-border), transparent);
}

#app-logo {
    max-width: 85%;
    max-height: 150px;
    object-fit: contain;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.5));
    transition: transform 0.3s ease;
}

#app-logo:hover {
    transform: scale(1.02);
}

.controls-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px 15px 10px;
    gap: 4px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Hide scrollbar but keep scroll functionality */
.controls-section::-webkit-scrollbar {
    display: none;
}

.controls-section {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.control-btn {
    width: min(300px, 85%);
    padding: 10px 20px;
    font-size: clamp(12px, 1.4vw, 15px);
    font-weight: 600;
    background: linear-gradient(180deg, var(--button-bg) 0%, #222 100%);
    color: var(--text-color);
    border: 1px solid var(--button-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.control-btn:hover {
    background: linear-gradient(180deg, var(--button-hover) 0%, #2a2a2a 100%);
    border-color: var(--accent-color);
    box-shadow: 0 2px 12px var(--accent-glow);
    transform: translateY(-1px);
}

.control-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.control-btn.active {
    background: linear-gradient(180deg, #1a3a5c 0%, #0f2540 100%);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.control-btn.disabled,
.control-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
}

.control-btn.disabled:hover,
.control-btn:disabled:hover {
    border-color: var(--button-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transform: none;
}

/* Half-width score buttons row */
.scores-btn-row {
    display: flex;
    gap: 6px;
    width: min(300px, 85%);
    flex-shrink: 0;
}

.half-btn {
    flex: 1;
    width: auto !important;
    padding: 12px 8px;
    font-size: clamp(11px, 1.2vw, 13px) !important;
}

/* Scores warning popup */
.scores-warning {
    width: min(300px, 85%);
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 500;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.25);
    border-radius: 6px;
    text-align: center;
    flex-shrink: 0;
    animation: warningSlideIn 0.3s ease;
}

.scores-warning.hidden {
    display: none;
}

@keyframes warningSlideIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Level Buttons - Premium Styling */
.level-btn {
    position: relative;
    overflow: hidden;
}

.level-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: 0.5s;
}

.level-btn:hover::before {
    left: 100%;
}

/* Distance Level - Blue Theme */
#btn-level1 {
    background: linear-gradient(180deg, #1a3a5c 0%, #0f2540 100%);
    border-color: #2a6bc9;
}

#btn-level1:hover {
    background: linear-gradient(180deg, #1f4570 0%, #122d4f 100%);
    border-color: var(--accent-color);
    box-shadow: 0 2px 15px rgba(74, 158, 255, 0.4);
}

#btn-level1.active {
    background: linear-gradient(180deg, #0f2540 0%, #081828 100%);
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(74, 158, 255, 0.5), inset 0 0 10px rgba(74, 158, 255, 0.2);
}

/* Perturbation Level - Purple Theme */
#btn-level2 {
    background: linear-gradient(180deg, #3a2560 0%, #251840 100%);
    border-color: #7c4dff;
}

#btn-level2:hover {
    background: linear-gradient(180deg, #452b72 0%, #2d1e50 100%);
    border-color: #9c7aff;
    box-shadow: 0 2px 15px rgba(124, 77, 255, 0.4);
}

#btn-level2.active {
    background: linear-gradient(180deg, #251840 0%, #150c28 100%);
    border-color: #9c7aff;
    box-shadow: 0 0 20px rgba(124, 77, 255, 0.5), inset 0 0 10px rgba(124, 77, 255, 0.2);
}

/* Flappy Level - Orange/Gold Theme */
#btn-level3 {
    background: linear-gradient(180deg, #5c3a1a 0%, #402510 100%);
    border-color: #fbbf24;
}

#btn-level3:hover {
    background: linear-gradient(180deg, #6e4520 0%, #4f2d14 100%);
    border-color: #fcd34d;
    box-shadow: 0 2px 15px rgba(251, 191, 36, 0.4);
}

#btn-level3.active {
    background: linear-gradient(180deg, #402510 0%, #281508 100%);
    border-color: #fcd34d;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.5), inset 0 0 10px rgba(251, 191, 36, 0.2);
}

.chart-container {
    width: min(300px, 95%);
    flex: 1 1 0;
    min-height: 120px;
    background: var(--ternary-color);
    border-radius: 10px;
    padding: 10px;
    border: 1px solid var(--button-border);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    margin-top: 5px;
    cursor: crosshair;
    transition: transform 0.2s, border-color 0.2s;
    overflow: hidden;
}

.chart-tooltip {
    position: fixed;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid var(--accent-color);
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 11px;
    pointer-events: none;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.chart-container:hover {
    border-color: var(--accent-color);
}

.chart-container:active {
    transform: scale(0.98);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.chart-title {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

.chart-header-actions {
    display: flex;
    gap: 4px;
    align-items: center;
}

.chart-action-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s;
}

.chart-action-btn:hover {
    color: var(--accent-color);
    background: rgba(255, 255, 255, 0.05);
}

/* Export Dropdown */
.export-dropdown {
    position: relative;
}

.export-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
    border: 1px solid var(--button-border);
    border-radius: 6px;
    padding: 4px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 70px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    z-index: 100;
}

.export-menu.hidden {
    display: none;
}

.export-option {
    background: none;
    border: none;
    color: var(--text-color);
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.15s;
}

.export-option:hover {
    background: var(--accent-color);
    color: white;
}

/* Fullscreen Overlay Styles */
.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 10, 15, 0.98);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    padding: 40px;
    backdrop-filter: blur(10px);
}

.fullscreen-overlay.hidden {
    display: none;
}

.fullscreen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.fullscreen-header h2 {
    color: var(--accent-color);
    margin: 0;
    font-size: 24px;
    letter-spacing: 2px;
}

.close-fullscreen-btn {
    background: #e04040;
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background 0.2s;
}

.close-fullscreen-btn:hover {
    background: #ff5050;
    transform: rotate(90deg);
}

.fullscreen-chart-wrapper {
    flex: 1;
    background: #121218;
    border-radius: 15px;
    border: 1px solid #333;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

#fullscreen-chart {
    width: 100%;
    height: 100%;
}

/* Duck Hunt - Teal/Green Outdoor Theme */
#btn-level4 {
    background: linear-gradient(180deg, #1a4a4a 0%, #103030 100%);
    border-color: #4ade80;
}

#btn-level4:hover {
    background: linear-gradient(180deg, #205a5a 0%, #154040 100%);
    border-color: #6ee7b7;
    box-shadow: 0 2px 15px rgba(74, 222, 128, 0.4);
}

#btn-level4.active {
    background: linear-gradient(180deg, #103030 0%, #081a1a 100%);
    border-color: #4ade80;
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.5), inset 0 0 10px rgba(74, 222, 128, 0.2);
}

.input-label {
    font-size: clamp(11px, 1.3vw, 14px);
    font-weight: 500;
    margin-top: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.text-input {
    width: min(300px, 85%);
    padding: 10px 16px;
    font-size: clamp(13px, 1.4vw, 16px);
    font-weight: 500;
    background: var(--ternary-color);
    color: var(--alternate-color);
    border: 1px solid var(--button-border);
    border-radius: 8px;
    outline: none;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.text-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.text-input::placeholder {
    color: var(--text-muted);
}

.live-score {
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 700;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    text-shadow: 0 0 20px var(--accent-glow);
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

.stats-row {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    gap: 15px;
    font-size: clamp(9px, 1vw, 11px);
    color: var(--text-muted);
    padding: 6px 12px;
    background: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(4px);
    border-radius: 6px;
    border: 1px solid var(--button-border);
    pointer-events: none;
    z-index: 10;
}

.stat-item {
    display: flex;
    gap: 6px;
    align-items: center;
}

.stat-label {
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.stat-value {
    color: var(--accent-color);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    min-width: 45px;
}

/* chart-container duplicate removed and consolidated above */
#scores-chart {
    width: 100%;
    height: 100%;
}

/* Right Panel */
.right-panel {
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--whole-color);
    position: relative;
}

.model-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at center, #2a2a30 0%, var(--ternary-color) 100%);
    min-height: 200px;
    position: relative;
    overflow: hidden;
}

.model-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(74, 158, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

#model-canvas {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

.joystick-section {
    height: 180px;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 15px 25px;
    background: linear-gradient(180deg, var(--secondary-color) 0%, var(--ternary-color) 100%);
    border-top: 1px solid var(--button-border);
    position: relative;
    gap: 40px;
}

.joystick-section.game-mode {
    flex: 1;
    height: auto;
    justify-content: center;
    background: var(--whole-color);
}

.joystick-wrapper {
    width: 150px;
    height: 150px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.joystick-section.game-mode .joystick-wrapper {
    width: min(600px, 80vh);
    height: min(600px, 80vh);
}

.joystick-section.game-mode #joystick-canvas {
    border-radius: 0;
}

#joystick-canvas {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.button-indicators {
    display: flex;
    gap: 28px;
    margin-left: 30px;
}

.btn-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.btn-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.12s ease;
    position: relative;
}

/* Base button circles - common dark style */
#a-btn .btn-circle,
#b-btn .btn-circle,
#start-btn .btn-circle,
#kinetrix-btn .btn-circle {
    background: linear-gradient(145deg, #3a3a40 0%, #25252a 50%, #1a1a1f 100%);
    border: 2px solid #4a4a50;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.5),
        0 2px 4px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-icon {
    font-size: 18px;
    font-weight: 700;
    color: #b0b0b8;
    transition: color 0.15s ease;
}

/* Pressed States - Specific Colors */

/* A button - Green */
#a-btn .btn-circle.pressed {
    background: linear-gradient(145deg, #3d9b4a 0%, #2d7a3a 100%);
    border-color: #4db85a;
    box-shadow:
        0 1px 4px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(77, 184, 90, 0.6),
        inset 0 2px 6px rgba(0, 0, 0, 0.3);
    transform: scale(0.92);
}

#a-btn .btn-circle.pressed .btn-icon {
    color: white;
}

/* B button - Red */
#b-btn .btn-circle.pressed {
    background: linear-gradient(145deg, #c44040 0%, #a03030 100%);
    border-color: #e05050;
    box-shadow:
        0 1px 4px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(224, 80, 80, 0.6),
        inset 0 2px 6px rgba(0, 0, 0, 0.3);
    transform: scale(0.92);
}

#b-btn .btn-circle.pressed .btn-icon {
    color: white;
}

/* START button - Blue */
#start-btn .btn-circle.pressed {
    background: linear-gradient(145deg, #1a3a5c 0%, #0f2540 100%);
    border-color: var(--accent-color);
    box-shadow:
        0 1px 4px rgba(0, 0, 0, 0.4),
        0 0 20px var(--accent-glow),
        inset 0 2px 6px rgba(0, 0, 0, 0.3);
    transform: scale(0.92);
}

#start-btn .btn-circle.pressed .btn-icon {
    color: var(--accent-color);
}

/* KINETRIX button - Logo wiggle + Brightness */
#kinetrix-btn .btn-circle {
    background: linear-gradient(145deg, #2a2a2f 0%, #15151a 100%);
}

#kinetrix-btn .btn-circle.pressed {
    filter: brightness(1.4);
    border-color: #ffffff;
    box-shadow:
        0 0 25px rgba(255, 255, 255, 0.2),
        inset 0 2px 6px rgba(0, 0, 0, 0.3);
    transform: scale(0.92);
}

.btn-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    transition: transform 0.2s ease;
}

#kinetrix-btn .btn-circle.pressed .btn-logo {
    animation: wiggle 0.4s ease-in-out infinite;
}

@keyframes wiggle {
    0% {
        transform: rotate(0deg) scale(1.1);
    }

    25% {
        transform: rotate(-10deg) scale(1.1);
    }

    50% {
        transform: rotate(10deg) scale(1.1);
    }

    75% {
        transform: rotate(-10deg) scale(1.1);
    }

    100% {
        transform: rotate(0deg) scale(1.1);
    }
}

.btn-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* View Controls Container (3D toggle + Angle button) */
.view-controls {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.view-btn {
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 700;
    background: linear-gradient(180deg, var(--button-bg) 0%, #222 100%);
    color: var(--text-color);
    border: 1px solid var(--button-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 48px;
    text-align: center;
}

.view-btn:hover {
    border-color: var(--accent-color);
    box-shadow: 0 2px 12px var(--accent-glow);
}

/* 3D Toggle Button - Active (ON) state */
#btn-toggle-3d.active {
    background: linear-gradient(180deg, #1a3a5c 0%, #0f2540 100%);
    border-color: var(--accent-color);
    color: var(--accent-color);
    box-shadow: 0 0 12px var(--accent-glow), inset 0 0 8px rgba(74, 158, 255, 0.15);
}

/* 3D Toggle Button - Inactive (OFF) state */
#btn-toggle-3d:not(.active) {
    background: linear-gradient(180deg, #2a2525 0%, #1a1515 100%);
    border-color: #5a4040;
    color: #888;
    opacity: 0.7;
}

#btn-toggle-3d:not(.active):hover {
    border-color: #7a5050;
    opacity: 0.9;
}

/* Hidden state */
.hidden {
    display: none !important;
}

/* Responsive */
@media (max-height: 750px) {
    .logo-section {
        min-height: 80px;
        padding: 10px;
    }

    #app-logo {
        max-height: 60px;
    }

    .control-btn {
        padding: 10px 16px;
    }

    /* Removed height override - keeping it tall as requested */

    .joystick-section {
        height: 160px;
        min-height: 160px;
    }

    .joystick-wrapper {
        width: 130px;
        height: 130px;
    }
}

@media (max-height: 650px) {

    /* Tighter spacing for small screens */
    .logo-section {
        min-height: 60px;
        padding: 5px;
    }

    #app-logo {
        max-height: 50px;
    }

    .controls-section {
        gap: 4px;
        padding: 5px;
    }

    .control-btn {
        padding: 6px 14px;
    }

    /* Removed height override */

    .stats-row {
        padding: 6px 12px;
    }
}

/* Animations */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.control-btn.loading {
    animation: pulse 1s ease infinite;
}

/* Monkey Ball Level - Orange/Banana Theme */
#btn-level5 {
    background: linear-gradient(180deg, #5a4a1a 0%, #3d3010 100%);
    border-color: #ffa500;
}

#btn-level5:hover {
    background: linear-gradient(180deg, #6e5a20 0%, #4f3d14 100%);
    border-color: #ffb733;
    box-shadow: 0 2px 15px rgba(255, 165, 0, 0.4);
}

#btn-level5.active {
    background: linear-gradient(180deg, #3d3010 0%, #281f08 100%);
    border-color: #ffa500;
    box-shadow: 0 0 20px rgba(255, 165, 0, 0.5), inset 0 0 10px rgba(255, 165, 0, 0.2);
}

/* Monkey Ball Game Container */
.monkeyball-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0b0b10;
    z-index: 100;
}

.monkeyball-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.monkeyball-container.hidden {
    display: none;
}

/* Test Mode Button - Cyan/Teal Theme */
#btn-testmode {
    background: linear-gradient(180deg, #1a4a5c 0%, #0f3040 100%);
    border-color: #00bcd4;
    font-size: clamp(12px, 1.4vw, 15px);
}

#btn-testmode:hover {
    background: linear-gradient(180deg, #205a6e 0%, #154050 100%);
    border-color: #26c6da;
    box-shadow: 0 2px 15px rgba(0, 188, 212, 0.4);
}

#btn-testmode.active {
    background: linear-gradient(180deg, #0f3040 0%, #081a28 100%);
    border-color: #00bcd4;
    box-shadow: 0 0 20px rgba(0, 188, 212, 0.5), inset 0 0 10px rgba(0, 188, 212, 0.2);
}

/* Test Mode Overlay */
.testmode-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 10, 18, 0.96);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(12px);
    animation: testmodeFadeIn 0.5s ease;
}

.testmode-overlay.hidden {
    display: none !important;
}

@keyframes testmodeFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.testmode-content {
    background: linear-gradient(180deg, #1a1a24 0%, #0f0f18 100%);
    border: 1px solid #333;
    border-radius: 16px;
    padding: 40px 50px;
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 188, 212, 0.1);
}

.testmode-title {
    color: #00bcd4;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 30px;
    text-align: center;
    text-shadow: 0 0 20px rgba(0, 188, 212, 0.3);
}

.testmode-results {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 30px;
}

.testmode-req {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
    animation: reqSlideIn 0.4s ease forwards;
    opacity: 0;
    transform: translateY(10px);
}

@keyframes reqSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.testmode-req.pass {
    border-color: rgba(74, 222, 128, 0.3);
    background: rgba(74, 222, 128, 0.05);
}

.testmode-req.fail {
    border-color: rgba(248, 113, 113, 0.3);
    background: rgba(248, 113, 113, 0.05);
}

.testmode-req-icon {
    font-size: 22px;
    flex-shrink: 0;
    margin-top: 2px;
}

.testmode-req-body {
    flex: 1;
}

.testmode-req-id {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #888;
    margin-bottom: 4px;
}

.testmode-req.pass .testmode-req-id {
    color: #4ade80;
}

.testmode-req.fail .testmode-req-id {
    color: #f87171;
}

.testmode-req-desc {
    font-size: 14px;
    color: #ccc;
    line-height: 1.4;
}

.testmode-end-btn {
    display: block;
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    background: linear-gradient(180deg, #1a4a5c 0%, #0f3040 100%);
    color: #00bcd4;
    border: 1px solid #00bcd4;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.2);
}

.testmode-end-btn:hover {
    background: linear-gradient(180deg, #205a6e 0%, #154050 100%);
    box-shadow: 0 4px 20px rgba(0, 188, 212, 0.4);
    transform: translateY(-1px);
}

.testmode-end-btn:active {
    transform: translateY(0);
}