/* ===================================================
   Rosie's Duck Grand Prix - Modern Arcade Style
   =================================================== */

:root {
    --primary: #ffd500;
    --primary-dark: #f0a500;
    --brand-red: #cc0000;
    --brand-navy: #1e2749;
    --brand-blue: #0288d1;
    --dark-bg: rgba(15, 18, 32, 0.92);
    --glass-bg: rgba(255, 255, 255, 0.12);
    --glass-border: rgba(255, 255, 255, 0.25);
    --neon-yellow: #ffea00;
    --neon-cyan: #00f0ff;
    --neon-orange: #ff7700;
    --neon-purple: #d500f9;
}

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

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #fff;
}

#game-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* Common UI Screens Layer */
.ui-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    transition: opacity 0.3s ease, visibility 0.3s;
}

.hidden {
    display: none !important;
}

/* ===================================================
   1. TITLE / MENU SCREEN
   =================================================== */
#screen-menu {
    background: radial-gradient(circle at center, rgba(30, 39, 73, 0.75) 0%, rgba(10, 12, 22, 0.94) 100%);
    backdrop-filter: blur(8px);
}

.menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 650px;
    padding: 30px;
    background: var(--dark-bg);
    border: 3px solid var(--primary);
    border-radius: 28px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 213, 0, 0.3);
    animation: menuFloat 4s ease-in-out infinite alternate;
}

@keyframes menuFloat {
    0% { transform: translateY(0); }
    100% { transform: translateY(-10px); }
}

.menu-sponsor-badge {
    background: #ffffff;
    border-radius: 12px;
    padding: 6px 18px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
    margin-bottom: 14px;
    border: 2px solid #e2e8f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.menu-sponsor-logo {
    height: 36px;
    width: auto;
    object-fit: contain;
    display: block;
}

.brand-logo-wrap {
    position: relative;
    margin-bottom: 12px;
}

.brand-logo {
    width: 160px;
    height: auto;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.5));
    border-radius: 16px;
    animation: logoWobble 3s ease-in-out infinite alternate;
}

@keyframes logoWobble {
    0% { transform: rotate(-3deg) scale(1); }
    100% { transform: rotate(3deg) scale(1.04); }
}

.title-main {
    font-size: 42px;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--primary);
    text-shadow: 0 4px 10px rgba(0,0,0,0.8), 0 0 20px rgba(255, 213, 0, 0.6);
    margin-bottom: 4px;
    text-transform: uppercase;
}

.title-sub {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 4px;
    color: #fff;
    background: var(--brand-red);
    padding: 4px 16px;
    border-radius: 20px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.menu-circuit-sponsor {
    margin: 0 0 22px 0;
    font-size: 13px;
    letter-spacing: 1.5px;
    color: #93c5fd;
    font-weight: 700;
    text-transform: uppercase;
}

.menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    max-width: 380px;
}

.arcade-btn {
    position: relative;
    padding: 16px 28px;
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #111;
    background: linear-gradient(180deg, #ffea00 0%, #ff9900 100%);
    border: none;
    border-bottom: 5px solid #cc6600;
    border-radius: 16px;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
    transition: transform 0.1s, box-shadow 0.1s, filter 0.2s;
}

.arcade-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 213, 0, 0.5);
}

.arcade-btn:active {
    transform: translateY(3px);
    border-bottom-width: 2px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.4);
}

.arcade-btn.secondary {
    background: linear-gradient(180deg, #ffffff 0%, #cfd8dc 100%);
    border-bottom-color: #90a4ae;
    color: #263238;
}

.arcade-btn.action-btn {
    background: linear-gradient(180deg, #00e676 0%, #00b0ff 100%);
    border-bottom-color: #0081cb;
    color: #000;
}

.audio-mute-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--dark-bg);
    border: 2px solid var(--primary);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

/* ===================================================
   2. SELECTION SCREEN (Racers & Tracks)
   =================================================== */
#screen-select {
    background: radial-gradient(circle at center, rgba(30, 39, 73, 0.9) 0%, rgba(10, 12, 22, 0.98) 100%);
    padding: 30px;
    overflow-y: auto;
}

.select-container {
    max-width: 1000px;
    width: 100%;
    background: var(--dark-bg);
    border: 2px solid var(--glass-border);
    border-radius: 24px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.select-header {
    text-align: center;
}

.select-header h2 {
    font-size: 32px;
    color: var(--primary);
    text-transform: uppercase;
}

.section-title {
    font-size: 18px;
    color: #90caf9;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.select-card {
    background: rgba(255,255,255,0.06);
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: 16px;
    padding: 14px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.select-card:hover {
    background: rgba(255,255,255,0.12);
    border-color: var(--primary);
    transform: translateY(-4px);
}

.select-card.active {
    background: rgba(255, 213, 0, 0.15);
    border: 2px solid var(--primary);
    box-shadow: 0 0 20px rgba(255, 213, 0, 0.4);
}

.card-avatar {
    font-size: 40px;
    margin-bottom: 6px;
}

.card-avatar img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 50%;
    border: 2px solid var(--primary);
}

.card-title {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 2px;
}

.card-desc {
    font-size: 12px;
    color: #aaa;
    margin-bottom: 8px;
}

/* Stat Bars */
.stat-bars {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #bbb;
}

.stat-track {
    width: 65px;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    background: var(--primary);
}

/* Speed Class Select */
.speed-buttons {
    display: flex;
    gap: 12px;
}

.speed-btn {
    flex: 1;
    padding: 10px;
    background: rgba(255,255,255,0.06);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
}

.speed-btn.active {
    background: var(--brand-red);
    border-color: #ff5252;
    box-shadow: 0 0 15px rgba(204, 0, 0, 0.5);
}

.select-actions {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 10px;
}

/* ===================================================
   3. RACE HUD OVERLAY
   =================================================== */
#screen-hud {
    pointer-events: none;
}

.hud-top-left {
    position: absolute;
    top: 24px;
    left: 24px;
    display: flex;
    align-items: baseline;
    background: var(--dark-bg);
    padding: 10px 22px;
    border-radius: 20px;
    border: 3px solid var(--primary);
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

.pos-num {
    font-size: 48px;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

.pos-suffix {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin-left: 4px;
}

.pos-total {
    font-size: 18px;
    font-weight: 800;
    color: #94a3b8;
    margin-left: 6px;
    opacity: 0.85;
}

.hud-top-center {
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    background: var(--dark-bg);
    padding: 8px 24px;
    border-radius: 20px;
    border: 2px solid var(--glass-border);
}

.lap-counter, .race-timer {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 1px;
}

.lap-counter span:first-child {
    color: #90caf9;
}

.lap-counter span:last-child {
    color: var(--primary);
}

.hud-top-right {
    position: absolute;
    top: 24px;
    right: 24px;
}

/* ===================================================
   COUNTDOWN & STARTING LIGHTS OVERLAY
   =================================================== */
#countdown-overlay {
    position: absolute;
    top: 42%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    z-index: 120;
}

.starting-lights-box {
    display: flex;
    gap: 16px;
    background: rgba(10, 15, 30, 0.92);
    border: 3px solid #334155;
    padding: 10px 24px;
    border-radius: 40px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.85), inset 0 0 10px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
}

.traffic-light {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #1e293b;
    border: 3px solid #0f172a;
    transition: background 0.15s, box-shadow 0.15s, transform 0.15s;
}

.traffic-light.on-red {
    background: #ef4444;
    box-shadow: 0 0 22px #ef4444, 0 0 40px #ef4444;
    transform: scale(1.1);
}

.traffic-light.on-green {
    background: #10b981;
    box-shadow: 0 0 25px #10b981, 0 0 50px #10b981;
    transform: scale(1.15);
}

.countdown-num {
    font-size: 140px;
    font-weight: 900;
    color: #ff3d00;
    text-shadow: 0 0 35px rgba(255, 61, 0, 0.95), 0 5px 15px rgba(0,0,0,0.9);
    line-height: 1;
}

.countdown-go {
    font-size: 150px;
    font-weight: 900;
    color: #00e676;
    text-shadow: 0 0 50px rgba(0, 230, 118, 0.95), 0 5px 20px rgba(0,0,0,0.9);
    line-height: 1;
}

.pulse {
    animation: pulseAnim 0.75s ease-out;
}

@keyframes pulseAnim {
    0% { transform: scale(1.5); opacity: 0; }
    50% { transform: scale(1.0); opacity: 1; }
    100% { transform: scale(0.92); opacity: 0.92; }
}

.item-box-slot {
    width: 86px;
    height: 86px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.25) 0%, rgba(10, 15, 30, 0.95) 100%);
    border: 4px solid var(--primary);
    border-radius: 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.5), inset 0 0 15px rgba(255, 215, 0, 0.2);
    position: relative;
    transition: all 0.2s ease;
}

.item-box-slot.slot-spinning {
    border-color: #00f0ff;
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.8), inset 0 0 20px rgba(0, 240, 255, 0.4);
    animation: slotPulse 0.2s infinite alternate;
}

@keyframes slotPulse {
    0% { transform: scale(1.0); }
    100% { transform: scale(1.08); }
}

#hud-item-icon {
    font-size: 46px;
    line-height: 1;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.6));
}

.item-roulette-spinning {
    animation: rouletteBlur 0.08s infinite alternate;
}

@keyframes rouletteBlur {
    0% { transform: translateY(-4px) scale(0.95); opacity: 0.85; }
    100% { transform: translateY(4px) scale(1.05); opacity: 1; }
}

.item-icon-pop {
    animation: itemPop 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.35);
}

.item-slot-label {
    margin-top: 6px;
    font-size: 11px;
    font-weight: 800;
    color: #ffd700;
    text-align: center;
    background: rgba(10, 15, 30, 0.85);
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 8px;
    padding: 3px 6px;
    letter-spacing: 0.5px;
}

.item-slot-label kbd {
    background: #25283a;
    color: #fff;
    padding: 1px 4px;
    border-radius: 3px;
    font-size: 10px;
}

@keyframes itemPop {
    0% { transform: scale(0.2) rotate(-30deg); }
    60% { transform: scale(1.25) rotate(10deg); }
    100% { transform: scale(1) rotate(0); }
}

/* Minimap Bottom Left */
.hud-bottom-left {
    position: absolute;
    bottom: 24px;
    left: 24px;
}

#minimap-canvas {
    width: 150px;
    height: 150px;
    background: rgba(10, 15, 30, 0.75);
    border: 2px solid var(--glass-border);
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

/* Speedometer Bottom Right */
.hud-bottom-right {
    position: absolute;
    bottom: 24px;
    right: 24px;
}

.speedometer {
    background: var(--dark-bg);
    border: 3px solid var(--primary);
    border-radius: 24px;
    padding: 12px 24px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.6);
}

.speed-val {
    font-size: 42px;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
}

.speed-unit {
    font-size: 14px;
    font-weight: 800;
    color: #90caf9;
    letter-spacing: 2px;
}

/* Big Center Notifications */
.hud-notification {
    position: absolute;
    top: 38%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 64px;
    font-weight: 900;
    color: var(--neon-yellow);
    text-shadow: 0 5px 20px rgba(0,0,0,0.9), 0 0 30px rgba(255, 234, 0, 0.8);
    text-transform: uppercase;
    pointer-events: none;
}

.notif-anim {
    animation: notifZoom 2.2s forwards;
}

@keyframes notifZoom {
    0% { transform: translate(-50%, -50%) scale(0.3); opacity: 0; }
    20% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
    30% { transform: translate(-50%, -50%) scale(1.0); opacity: 1; }
    80% { transform: translate(-50%, -50%) scale(1.0); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.6); opacity: 0; }
}

/* Countdown Overlay */
#countdown-overlay {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.countdown-num {
    font-size: 120px;
    font-weight: 900;
    color: #ff3d00;
    text-shadow: 0 0 30px rgba(255, 61, 0, 0.8);
}

.countdown-go {
    font-size: 130px;
    font-weight: 900;
    color: #00e676;
    text-shadow: 0 0 40px rgba(0, 230, 118, 0.9);
}

.pulse {
    animation: pulseAnim 0.8s ease-out;
}

@keyframes pulseAnim {
    0% { transform: scale(1.6); opacity: 0; }
    50% { transform: scale(1.0); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.9; }
}

/* Broadcast Sponsor Intro Banner (Start of Race) */
.broadcast-banner {
    position: absolute;
    top: 36px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(10, 18, 38, 0.96) 0%, rgba(15, 23, 42, 0.98) 100%);
    border: 3px solid rgba(96, 165, 250, 0.85);
    border-radius: 24px;
    padding: 14px 28px 16px 28px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 35px rgba(96, 165, 250, 0.45);
    backdrop-filter: blur(12px);
    z-index: 100;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    max-width: 680px;
    width: 92%;
    animation: broadcastSlideIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.broadcast-banner.broadcast-fade-out {
    opacity: 0;
    transform: translate(-50%, -40px);
}

@keyframes broadcastSlideIn {
    0% { transform: translate(-50%, -60px); opacity: 0; }
    100% { transform: translate(-50%, 0); opacity: 1; }
}

.broadcast-top-strip {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2.5px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 6px;
    width: 100%;
    justify-content: center;
}

.live-dot {
    width: 9px;
    height: 9px;
    background: #ef4444;
    border-radius: 50%;
    box-shadow: 0 0 10px #ef4444;
    display: inline-block;
    animation: liveBlink 1s infinite;
}

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

.broadcast-sponsor-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.broadcast-sponsor-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 10px 22px 8px 22px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 2px solid #e2e8f0;
    flex: 1;
    max-width: 280px;
}

.broadcast-sponsor-logo {
    height: 42px;
    width: 100%;
    max-width: 220px;
    object-fit: contain;
}

.sponsor-subtag {
    font-size: 10px;
    font-weight: 800;
    color: #334155;
    letter-spacing: 1.2px;
    margin-top: 6px;
    text-transform: uppercase;
}

.broadcast-cross {
    font-size: 20px;
    font-weight: 900;
    color: #93c5fd;
    text-shadow: 0 0 12px rgba(147, 197, 253, 0.9);
}

.broadcast-footer-title {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #f1f5f9;
    text-align: center;
    text-transform: uppercase;
    margin-top: 4px;
}

.broadcast-footer-title strong {
    color: #ffd700;
}

/* ===================================================
   4. PODIUM / RESULTS SCREEN
   =================================================== */
#screen-podium {
    background: radial-gradient(circle at center, rgba(30, 39, 73, 0.85) 0%, rgba(10, 12, 22, 0.96) 100%);
    backdrop-filter: blur(8px);
}

.podium-card {
    max-width: 600px;
    width: 100%;
    background: var(--dark-bg);
    border: 3px solid var(--primary);
    border-radius: 28px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8), 0 0 40px rgba(255, 213, 0, 0.3);
}

.podium-title {
    font-size: 32px;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.podium-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.podium-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.06);
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
}

.podium-row.player-row {
    background: rgba(255, 213, 0, 0.2);
    border: 2px solid var(--primary);
}

.podium-rank {
    color: var(--primary);
    font-size: 18px;
}

.podium-time {
    color: #90caf9;
    font-family: monospace;
}

/* ===================================================
   5. CONTROLS MODAL / GUIDE
   =================================================== */
.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.controls-box {
    background: var(--dark-bg);
    border: 2px solid var(--primary);
    border-radius: 24px;
    padding: 30px;
    max-width: 540px;
    width: 90%;
    text-align: center;
}

.controls-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 20px 0;
    text-align: left;
}

.control-item {
    background: rgba(255,255,255,0.06);
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 14px;
}

.control-item kbd {
    background: #333;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #666;
    color: var(--primary);
    font-weight: bold;
}

/* ===================================================
   6. MOBILE TOUCH CONTROLS
   =================================================== */
#touch-controls {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    height: 160px;
    display: none;
    pointer-events: none;
    z-index: 50;
}

@media (pointer: coarse), (max-width: 800px) {
    #touch-controls {
        display: flex;
        justify-content: space-between;
        padding: 0 20px;
    }
}

.touch-cluster {
    display: flex;
    gap: 12px;
    pointer-events: auto;
    align-items: flex-end;
}

.touch-btn {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    color: #fff;
    font-size: 22px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
    touch-action: manipulation;
}

.touch-btn:active {
    background: rgba(255, 213, 0, 0.6);
    border-color: var(--primary);
}

.touch-btn.big {
    width: 72px;
    height: 72px;
}

/* ===================================================
   7. IN-RACE HUD CONTROLS BAR
   =================================================== */
.hud-bottom-center {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 20;
}

.controls-bar {
    display: flex;
    gap: 8px;
    background: rgba(15, 18, 32, 0.9);
    border: 2px solid var(--glass-border);
    border-radius: 16px;
    padding: 8px 16px;
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.6);
}

.key-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 800;
    color: #ddd;
    background: rgba(255,255,255,0.08);
    padding: 5px 9px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.15);
    transition: all 0.1s ease;
}

.key-badge kbd {
    background: #25283a;
    color: var(--primary);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #555;
    font-size: 11px;
    font-weight: 900;
}

.key-badge.key-active {
    background: rgba(255, 213, 0, 0.4);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-2px) scale(1.06);
    box-shadow: 0 0 12px rgba(255, 213, 0, 0.8);
}

