/* ════════════════════════════════════════════════
   UNLOCK WHEEL — UI
   Design: Health-Tech Split Panel
════════════════════════════════════════════════ */

/* Unit Test Buttons */
.unit-test-section {
    position: fixed;
    top: 10px;
    left: 10px;
    padding: 10px;
    background: rgba(240, 240, 240, 0.95);
    border-radius: 8px;
    z-index: 10001;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.unit-test-section label {
    display: block;
    font-weight: bold;
    margin-bottom: 12px;
    font-size: 14px;
}
.unit-test-section .unit-test-btns {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.unit-test-btn {
    padding: 14px 20px;
    background: #c5228f;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}
.btn2 {
    padding: 14px 20px;
    background: #22c55e;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --green:        #22c55e;
    --green-glow:   rgba(34, 197, 94, 0.35);
    --green-dim:    rgba(34, 197, 94, 0.1);
    --blue:         #3b82f6;
    --blue-dim:     rgba(59, 130, 246, 0.12);
    --amber:        #fbbf24;
    --amber-dim:    rgba(251, 191, 36, 0.12);
    --bg:           #2d3748;
    --surface:      #ffffff;
    --surface-2:    #f8fafc;
    --surface-3:    #f0f4f9;
    --border:       rgba(0, 0, 0, 0.08);
    --text:         #0f1420;
    --text-2:       #475569;
    --text-3:       #64748b;
    --shadow:       0 48px 140px rgba(0, 0, 0, 0.1);
}

body {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: 'Segoe UI', 'Microsoft JhengHei', 'PingFang SC', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── Background ──────────────────────────────── */
#introScreen {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    overflow: hidden;
    background: var(--bg);
    animation: movingBg 10s linear infinite;
    will-change: background;
    backface-visibility: hidden;
}

@keyframes movingBg {
    0% {
        background:
            radial-gradient(ellipse 65% 50% at 8% 5%,  rgba(34, 197, 94, 0.35) 0%, transparent 55%),
            radial-gradient(ellipse 55% 45% at 95% 98%, rgba(59, 130, 246, 0.35) 0%, transparent 50%),
            radial-gradient(ellipse 40% 35% at 55% 50%, rgba(251,191,36, 0.25) 0%, transparent 60%),
            var(--bg);
    }
    2% {
        background:
            radial-gradient(ellipse 65% 50% at 8.5% 5.5%,  rgba(34, 197, 94, 0.35) 0%, transparent 55%),
            radial-gradient(ellipse 55% 45% at 94.5% 97%, rgba(59, 130, 246, 0.35) 0%, transparent 50%),
            radial-gradient(ellipse 40% 35% at 55.3% 50.3%, rgba(251,191,36, 0.25) 0%, transparent 60%),
            var(--bg);
    }
    4% {
        background:
            radial-gradient(ellipse 65% 50% at 9% 6%,  rgba(34, 197, 94, 0.35) 0%, transparent 55%),
            radial-gradient(ellipse 55% 45% at 94% 96%, rgba(59, 130, 246, 0.35) 0%, transparent 50%),
            radial-gradient(ellipse 40% 35% at 55.6% 50.6%, rgba(251,191,36, 0.25) 0%, transparent 60%),
            var(--bg);
    }
    6% {
        background:
            radial-gradient(ellipse 65% 50% at 9.5% 6.5%,  rgba(34, 197, 94, 0.35) 0%, transparent 55%),
            radial-gradient(ellipse 55% 45% at 93.5% 95%, rgba(59, 130, 246, 0.35) 0%, transparent 50%),
            radial-gradient(ellipse 40% 35% at 55.9% 50.9%, rgba(251,191,36, 0.25) 0%, transparent 60%),
            var(--bg);
    }
    8% {
        background:
            radial-gradient(ellipse 65% 50% at 10% 7%,  rgba(34, 197, 94, 0.35) 0%, transparent 55%),
            radial-gradient(ellipse 55% 45% at 93% 94%, rgba(59, 130, 246, 0.35) 0%, transparent 50%),
            radial-gradient(ellipse 40% 35% at 56.2% 51.2%, rgba(251,191,36, 0.25) 0%, transparent 60%),
            var(--bg);
    }
    10% {
        background:
            radial-gradient(ellipse 65% 50% at 10.5% 7.5%,  rgba(34, 197, 94, 0.35) 0%, transparent 55%),
            radial-gradient(ellipse 55% 45% at 92.5% 93%, rgba(59, 130, 246, 0.35) 0%, transparent 50%),
            radial-gradient(ellipse 40% 35% at 56.5% 51.5%, rgba(251,191,36, 0.25) 0%, transparent 60%),
            var(--bg);
    }
    12% {
        background:
            radial-gradient(ellipse 65% 50% at 11% 8%,  rgba(34, 197, 94, 0.35) 0%, transparent 55%),
            radial-gradient(ellipse 55% 45% at 92% 92%, rgba(59, 130, 246, 0.35) 0%, transparent 50%),
            radial-gradient(ellipse 40% 35% at 56.8% 51.8%, rgba(251,191,36, 0.25) 0%, transparent 60%),
            var(--bg);
    }
    14% {
        background:
            radial-gradient(ellipse 65% 50% at 12% 9%,  rgba(34, 197, 94, 0.35) 0%, transparent 55%),
            radial-gradient(ellipse 55% 45% at 91.5% 91%, rgba(59, 130, 246, 0.35) 0%, transparent 50%),
            radial-gradient(ellipse 40% 35% at 57.1% 52.1%, rgba(251,191,36, 0.25) 0%, transparent 60%),
            var(--bg);
    }
    16% {
        background:
            radial-gradient(ellipse 65% 50% at 13% 10%,  rgba(34, 197, 94, 0.35) 0%, transparent 55%),
            radial-gradient(ellipse 55% 45% at 91% 90%, rgba(59, 130, 246, 0.35) 0%, transparent 50%),
            radial-gradient(ellipse 40% 35% at 57.4% 52.4%, rgba(251,191,36, 0.25) 0%, transparent 60%),
            var(--bg);
    }
    18% {
        background:
            radial-gradient(ellipse 65% 50% at 14% 11%,  rgba(34, 197, 94, 0.35) 0%, transparent 55%),
            radial-gradient(ellipse 55% 45% at 90% 89%, rgba(59, 130, 246, 0.35) 0%, transparent 50%),
            radial-gradient(ellipse 40% 35% at 57.7% 52.7%, rgba(251,191,36, 0.25) 0%, transparent 60%),
            var(--bg);
    }
    20% {
        background:
            radial-gradient(ellipse 65% 50% at 15% 12%,  rgba(34, 197, 94, 0.35) 0%, transparent 55%),
            radial-gradient(ellipse 55% 45% at 89% 88%, rgba(59, 130, 246, 0.35) 0%, transparent 50%),
            radial-gradient(ellipse 40% 35% at 58% 53%, rgba(251,191,36, 0.25) 0%, transparent 60%),
            var(--bg);
    }
    22% {
        background:
            radial-gradient(ellipse 65% 50% at 16% 13%,  rgba(34, 197, 94, 0.35) 0%, transparent 55%),
            radial-gradient(ellipse 55% 45% at 87.5% 86.5%, rgba(59, 130, 246, 0.35) 0%, transparent 50%),
            radial-gradient(ellipse 40% 35% at 58.5% 53.5%, rgba(251,191,36, 0.25) 0%, transparent 60%),
            var(--bg);
    }
    25% {
        background:
            radial-gradient(ellipse 65% 50% at 16% 12%,  rgba(34, 197, 94, 0.35) 0%, transparent 55%),
            radial-gradient(ellipse 55% 45% at 85% 85%, rgba(59, 130, 246, 0.35) 0%, transparent 50%),
            radial-gradient(ellipse 40% 35% at 61% 54%, rgba(251,191,36, 0.25) 0%, transparent 60%),
            var(--bg);
    }
    28% {
        background:
            radial-gradient(ellipse 65% 50% at 17% 13%,  rgba(34, 197, 94, 0.35) 0%, transparent 55%),
            radial-gradient(ellipse 55% 45% at 84% 84%, rgba(59, 130, 246, 0.35) 0%, transparent 50%),
            radial-gradient(ellipse 40% 35% at 61.5% 54%, rgba(251,191,36, 0.25) 0%, transparent 60%),
            var(--bg);
    }
    30% {
        background:
            radial-gradient(ellipse 65% 50% at 18% 14%,  rgba(34, 197, 94, 0.35) 0%, transparent 55%),
            radial-gradient(ellipse 55% 45% at 83% 83%, rgba(59, 130, 246, 0.35) 0%, transparent 50%),
            radial-gradient(ellipse 40% 35% at 62% 54%, rgba(251,191,36, 0.25) 0%, transparent 60%),
            var(--bg);
    }
    32% {
        background:
            radial-gradient(ellipse 65% 50% at 19% 15%,  rgba(34, 197, 94, 0.35) 0%, transparent 55%),
            radial-gradient(ellipse 55% 45% at 82.5% 82%, rgba(59, 130, 246, 0.35) 0%, transparent 50%),
            radial-gradient(ellipse 40% 35% at 62.5% 54%, rgba(251,191,36, 0.25) 0%, transparent 60%),
            var(--bg);
    }
    34% {
        background:
            radial-gradient(ellipse 65% 50% at 20% 16%,  rgba(34, 197, 94, 0.35) 0%, transparent 55%),
            radial-gradient(ellipse 55% 45% at 82% 81%, rgba(59, 130, 246, 0.35) 0%, transparent 50%),
            radial-gradient(ellipse 40% 35% at 63% 54%, rgba(251,191,36, 0.25) 0%, transparent 60%),
            var(--bg);
    }
    36% {
        background:
            radial-gradient(ellipse 65% 50% at 21% 17%,  rgba(34, 197, 94, 0.35) 0%, transparent 55%),
            radial-gradient(ellipse 55% 45% at 81.5% 80.5%, rgba(59, 130, 246, 0.35) 0%, transparent 50%),
            radial-gradient(ellipse 40% 35% at 63.5% 54%, rgba(251,191,36, 0.25) 0%, transparent 60%),
            var(--bg);
    }
    38% {
        background:
            radial-gradient(ellipse 65% 50% at 22% 18%,  rgba(34, 197, 94, 0.35) 0%, transparent 55%),
            radial-gradient(ellipse 55% 45% at 81% 80%, rgba(59, 130, 246, 0.35) 0%, transparent 50%),
            radial-gradient(ellipse 40% 35% at 64% 54%, rgba(251,191,36, 0.25) 0%, transparent 60%),
            var(--bg);
    }
    40% {
        background:
            radial-gradient(ellipse 65% 50% at 23% 19%,  rgba(34, 197, 94, 0.35) 0%, transparent 55%),
            radial-gradient(ellipse 55% 45% at 80.5% 79.5%, rgba(59, 130, 246, 0.35) 0%, transparent 50%),
            radial-gradient(ellipse 40% 35% at 64.5% 54%, rgba(251,191,36, 0.25) 0%, transparent 60%),
            var(--bg);
    }
    45% {
        background:
            radial-gradient(ellipse 65% 50% at 24% 19.5%,  rgba(34, 197, 94, 0.35) 0%, transparent 55%),
            radial-gradient(ellipse 55% 45% at 80% 80%, rgba(59, 130, 246, 0.35) 0%, transparent 50%),
            radial-gradient(ellipse 40% 35% at 64.7% 54%, rgba(251,191,36, 0.25) 0%, transparent 60%),
            var(--bg);
    }
    50% {
        background:
            radial-gradient(ellipse 65% 50% at 25% 20%,  rgba(34, 197, 94, 0.35) 0%, transparent 55%),
            radial-gradient(ellipse 55% 45% at 80% 80%, rgba(59, 130, 246, 0.35) 0%, transparent 50%),
            radial-gradient(ellipse 40% 35% at 65% 55%, rgba(251,191,36, 0.25) 0%, transparent 60%),
            var(--bg);
    }
    55% {
        background:
            radial-gradient(ellipse 65% 50% at 24% 19.5%,  rgba(34, 197, 94, 0.35) 0%, transparent 55%),
            radial-gradient(ellipse 55% 45% at 85% 85%, rgba(59, 130, 246, 0.35) 0%, transparent 50%),
            radial-gradient(ellipse 40% 35% at 63% 54%, rgba(251,191,36, 0.25) 0%, transparent 60%),
            var(--bg);
    }
    60% {
        background:
            radial-gradient(ellipse 65% 50% at 21% 17%,  rgba(34, 197, 94, 0.35) 0%, transparent 55%),
            radial-gradient(ellipse 55% 45% at 87% 87%, rgba(59, 130, 246, 0.35) 0%, transparent 50%),
            radial-gradient(ellipse 40% 35% at 62% 54%, rgba(251,191,36, 0.25) 0%, transparent 60%),
            var(--bg);
    }
    65% {
        background:
            radial-gradient(ellipse 65% 50% at 18% 15%,  rgba(34, 197, 94, 0.35) 0%, transparent 55%),
            radial-gradient(ellipse 55% 45% at 89% 88%, rgba(59, 130, 246, 0.35) 0%, transparent 50%),
            radial-gradient(ellipse 40% 35% at 61% 53%, rgba(251,191,36, 0.25) 0%, transparent 60%),
            var(--bg);
    }
    70% {
        background:
            radial-gradient(ellipse 65% 50% at 16% 13%,  rgba(34, 197, 94, 0.35) 0%, transparent 55%),
            radial-gradient(ellipse 55% 45% at 91% 91%, rgba(59, 130, 246, 0.35) 0%, transparent 50%),
            radial-gradient(ellipse 40% 35% at 60% 52%, rgba(251,191,36, 0.25) 0%, transparent 60%),
            var(--bg);
    }
    75% {
        background:
            radial-gradient(ellipse 65% 50% at 14% 11%,  rgba(34, 197, 94, 0.35) 0%, transparent 55%),
            radial-gradient(ellipse 55% 45% at 92% 92%, rgba(59, 130, 246, 0.35) 0%, transparent 50%),
            radial-gradient(ellipse 40% 35% at 59% 51%, rgba(251,191,36, 0.25) 0%, transparent 60%),
            var(--bg);
    }
    80% {
        background:
            radial-gradient(ellipse 65% 50% at 12% 9%,  rgba(34, 197, 94, 0.35) 0%, transparent 55%),
            radial-gradient(ellipse 55% 45% at 93% 94%, rgba(59, 130, 246, 0.35) 0%, transparent 50%),
            radial-gradient(ellipse 40% 35% at 58% 51%, rgba(251,191,36, 0.25) 0%, transparent 60%),
            var(--bg);
    }
    85% {
        background:
            radial-gradient(ellipse 65% 50% at 10% 7%,  rgba(34, 197, 94, 0.35) 0%, transparent 55%),
            radial-gradient(ellipse 55% 45% at 94% 96%, rgba(59, 130, 246, 0.35) 0%, transparent 50%),
            radial-gradient(ellipse 40% 35% at 57% 50%, rgba(251,191,36, 0.25) 0%, transparent 60%),
            var(--bg);
    }
    90% {
        background:
            radial-gradient(ellipse 65% 50% at 9% 6%,  rgba(34, 197, 94, 0.35) 0%, transparent 55%),
            radial-gradient(ellipse 55% 45% at 95% 97%, rgba(59, 130, 246, 0.35) 0%, transparent 50%),
            radial-gradient(ellipse 40% 35% at 56% 50%, rgba(251,191,36, 0.25) 0%, transparent 60%),
            var(--bg);
    }
    95% {
        background:
            radial-gradient(ellipse 65% 50% at 8.5% 5.5%,  rgba(34, 197, 94, 0.35) 0%, transparent 55%),
            radial-gradient(ellipse 55% 45% at 95.5% 98%, rgba(59, 130, 246, 0.35) 0%, transparent 50%),
            radial-gradient(ellipse 40% 35% at 55.5% 50%, rgba(251,191,36, 0.25) 0%, transparent 60%),
            var(--bg);
    }
    100% {
        background:
            radial-gradient(ellipse 65% 50% at 8% 5%,  rgba(34, 197, 94, 0.35) 0%, transparent 55%),
            radial-gradient(ellipse 55% 45% at 95% 98%, rgba(59, 130, 246, 0.35) 0%, transparent 50%),
            radial-gradient(ellipse 40% 35% at 55% 50%, rgba(251,191,36, 0.25) 0%, transparent 60%),
            var(--bg);
    }
}

/* Subtle grid overlay */
#introScreen::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,0,0,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

#introScreen.hidden {
    display: none;
}

/* ── Main Card ───────────────────────────────── */
.intro-container {
    position: relative;
    z-index: 1;
    display: flex;
    width: min(1160px, calc(100vw - 32px));
    max-height: calc(100vh - 40px);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,0.07);
    animation: slideUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ── Brand Panel (Left) ──────────────────────── */
.brand-side {
    position: relative;
    flex: 0 0 377px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 26px;
    padding: 44px 10px;
    background:
        radial-gradient(ellipse 110% 70% at 50% 0%, rgba(34,197,94,0.15) 0%, transparent 65%),
        linear-gradient(175deg, #e8f5f0 0%, #e0f2ee 55%, #d8ede9 100%);
    border-right: 1px solid rgba(34, 197, 94, 0.1);
    overflow: hidden;
    flex-shrink: 0;
}

/* Decorative rings */
.brand-side::before {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 1px solid rgba(34, 197, 94, 0.08);
    pointer-events: none;
}

.brand-side::after {
    content: '';
    position: absolute;
    bottom: -140px;
    right: -140px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: 1px solid rgba(34, 197, 94, 0.05);
    pointer-events: none;
}

.intro-company {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    max-width: 340px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 6px 24px rgba(34, 197, 94, 0.28));
    animation: float 3.5s ease-in-out infinite;
}

.brand-divider {
    position: relative;
    z-index: 1;
    width: 40px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, var(--green), transparent);
}

.brand-info {
    position: relative;
    z-index: 1;
    text-align: center;
}

.brand-info-title {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 5px;
}

.brand-info-sub {
    font-size: 13px;
    color: var(--text-2);
    font-weight: 400;
}

.brand-stats {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 18px 20px;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.1);
    border-radius: 14px;
}

.brand-stat {
    flex: 1;
    text-align: center;
}

.brand-stat-sep {
    width: 1px;
    height: 36px;
    background: rgba(34, 197, 94, 0.12);
    flex-shrink: 0;
}

.brand-stat-num {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--green);
    line-height: 1;
    margin-bottom: 5px;
    letter-spacing: -0.02em;
}

.brand-stat-label {
    font-size: 14px;
    color: var(--text-2);
    letter-spacing: 0.04em;
}

/* ── Content Panel (Right) ───────────────────── */
.content-side {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 36px 40px;
    background: var(--surface);
    overflow-y: auto;
}

/* Header */
.header-meta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 12px;
    background: var(--green-dim);
    border: 1px solid rgba(34, 197, 94, 0.15);
    border-radius: 999px;
    color: var(--green);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.header-meta::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
    animation: blink 2.4s ease infinite;
    flex-shrink: 0;
}

.intro-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 4px;
}

.intro-title {
    font-size: clamp(26px, 3.4vw, 50px);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.035em;
    color: var(--text);
}

.intro-version-inline {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    background: var(--surface-3);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-2);
    font-size: 25px;
    font-weight: 600;
    font-family: 'Consolas', 'Courier New', monospace;
    letter-spacing: 0.04em;
}

/* Description */
.intro-description {
    color: var(--text-2);
    font-size: 16px;
    line-height: 1.9;
}

/* Feature Cards */
.intro-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feature-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 5px 16px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-left: 3px solid var(--green);
    border-radius: 11px;
    transition: background 0.2s ease, border-color 0.2s ease;
    cursor: default;
}

.feature-card:nth-child(2) { border-left-color: var(--blue); }
.feature-card:nth-child(3) { border-left-color: var(--amber); }

.feature-card:hover {
    background: var(--surface-3);
    border-top-color:    rgba(255,255,255,0.11);
    border-right-color:  rgba(255,255,255,0.11);
    border-bottom-color: rgba(255,255,255,0.11);
}

.feature-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    font-size: 16px;
    background: var(--green-dim);
    color: var(--green);
}

.feature-card:nth-child(2) .feature-icon {
    background: var(--blue-dim);
    color: var(--blue);
}

.feature-card:nth-child(3) .feature-icon {
    background: var(--amber-dim);
    color: var(--amber);
}

.feature-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    color: var(--text-3);
    margin-bottom: 2px;
}

.feature-card strong {
    display: block;
    color: var(--text);
    font-size: 13.5px;
    font-weight: 600;
}

/* Emergency Scenarios Section */
.emergency-scenarios {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.scenario-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.08) 0%, rgba(59, 130, 246, 0.08) 100%);
    border: 2px solid rgba(34, 197, 94, 0.2);
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.scenario-card:hover {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(59, 130, 246, 0.15) 100%);
    border-color: var(--green);
    transform: translateY(-2px);
}

.scenario-icon {
    font-size: 28px;
    display: block;
    line-height: 1;
}

.scenario-name {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    text-align: center;
}

/* Mode Section */
.mode-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-3);
    margin-bottom: 10px;
}

.mode-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* Sensitivity Numeric Input */
.sensitivity-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    width: fit-content;
}

.sensitivity-increase-btn,
.sensitivity-decrease-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    background: var(--surface-3);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.sensitivity-increase-btn:hover,
.sensitivity-decrease-btn:hover {
    background: var(--green-dim);
    border-color: rgba(34, 197, 94, 0.3);
    color: var(--green);
    transform: translateY(-2px);
}

.sensitivity-increase-btn:active,
.sensitivity-decrease-btn:active {
    transform: translateY(0);
}

.sensitivity-input {
    width: 70px;
    height: 40px;
    padding: 8px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    transition: all 0.2s ease;
}

.sensitivity-input:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

/* Remove spinner arrows from number input */
.sensitivity-input::-webkit-outer-spin-button,
.sensitivity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.sensitivity-input[type=number] {
    -moz-appearance: textfield;
}

.mode-btn {
    position: relative;
    min-height: 72px;
    padding: 14px 18px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-2);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    cursor: pointer;
    text-align: left;
    overflow: hidden;
    transition: all 0.22s ease;
}

.mode-btn span {
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: var(--text-3);
    margin-top: 3px;
}

.mode-btn:hover {
    background: var(--surface-3);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--text);
    transform: translateY(-2px);
}

.mode-btn:hover span { color: var(--text-2); }

.mode-btn.active {
    background: linear-gradient(135deg,
        rgba(34, 197, 94, 0.1) 0%,
        rgba(34, 197, 94, 0.08) 100%);
    border-color: rgba(34, 197, 94, 0.38);
    color: var(--text);
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.12) inset;
    transform: translateY(-2px);
}

.mode-btn.active span { color: rgba(34, 197, 94, 0.65); }

.mode-btn.active::after {
    content: '\2713';
    position: absolute;
    top: 12px;
    right: 14px;
    font-size: 12px;
    color: var(--green);
    font-weight: 800;
}

/* Footer */
.intro-footer {
    /* display: flex; */
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: auto;
    padding-top: 4px;
}

.start-button {
    align-self: flex-start;
    padding: 19px 83px;
    background: var(--green);
    border: none;
    border-radius: 11px;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.06em;
    cursor: pointer;
    box-shadow: 0 8px 28px var(--green-glow);
    transition: all 0.22s ease;
    position: relative;
    overflow: hidden;
}

.start-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 0%, rgba(255,255,255,0.18) 50%, transparent 100%);
    transform: translateX(-110%);
    transition: transform 0.52s ease;
}

.start-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(34, 197, 94, 0.5);
    background: #16a34a;
}

.start-button:hover::before { transform: translateX(110%); }
.start-button:active { transform: translateY(0); }

.intro-note {
    flex: 1 1 180px;
    color: var(--text-3);
    font-size: 13px;
    line-height: 1.65;
}

/* ── Animations ──────────────────────────────── */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(22px) scale(0.99); }
    to   { opacity: 1; transform: translateY(0)   scale(1);    }
}

@keyframes float {
    0%, 100% { transform: translateY(0);   }
    50%       { transform: translateY(-9px); }
}

@keyframes blink {
    0%, 100% { opacity: 1;   }
    50%       { opacity: 0.3; }
}

/* ════════════════════════════════════════════════
   GAME CONTAINER
════════════════════════════════════════════════ */
#gameContainer {
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
    display: none;
}

#gameContainer.active {
    display: block;
}

#myCanvasDiv {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#myCanvas {
    display: block;
    background: #fff;
}

/* ════════════════════════════════════════════════
   WHEEL DIRECTION POPUP
════════════════════════════════════════════════ */
.wheel-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.wheel-popup-card {
    background: #fff;
    border-radius: 20px;
    padding: 36px 40px;
    max-width: 520px;
    width: calc(100% - 40px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.4);
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.wheel-popup-title {
    font-size: 22px;
    font-weight: 800;
    color: #d97706;
    margin: 0;
    text-align: center;
}

.wheel-popup-desc {
    font-size: 16px;
    color: #374151;
    text-align: center;
    margin: 0;
    line-height: 1.6;
}

.wheel-popup-img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    object-fit: contain;
}

.wheel-popup-btn {
    padding: 14px 36px;
    background: var(--green);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 6px 20px var(--green-glow);
}

.wheel-popup-btn:hover {
    background: #16a34a;
    transform: translateY(-2px);
}

.wheel-checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    padding: 0;
}

.checkbox-input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--green);
}

.checkbox-label {
    font-size: 14px;
    color: #6b7280;
    cursor: pointer;
    user-select: none;
}

.checkbox-label:hover {
    color: #374151;
}

/* ════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════ */
@media (max-width: 880px) {
    .intro-container {
        flex-direction: column;
        width: min(100vw - 20px, 560px);
        max-height: calc(100vh - 24px);
        border-radius: 20px;
    }

    .brand-side {
        flex: 0 0 auto;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        padding: 24px 24px 20px;
        border-right: none;
        border-bottom: 1px solid rgba(34, 197, 94, 0.1);
        gap: 16px;
    }

    .brand-side::before,
    .brand-side::after { display: none; }

    .brand-divider { display: none; }

    .intro-company {
        max-width: 170px;
        animation: none;
    }

    .brand-stats { width: auto; padding: 12px 18px; }

    .content-side { padding: 24px 24px 28px; gap: 16px; }

    .intro-title { font-size: 26px; }
}

@media (max-width: 520px) {
    .intro-container { width: calc(100vw - 14px); border-radius: 16px; }

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

    .intro-footer { flex-direction: column; }

    .start-button { width: 100%; }

    .intro-note { max-width: none; }

    .intro-description { font-size: 14px; line-height: 1.8; }
}










