/* ==========================================================================
   QUANTUM TRAINING SIMULATOR STYLESHEET (Mobile-First Sci-Fi Aesthetics)
   ========================================================================== */

#panel-simulator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.98) 0%, rgba(2, 6, 23, 1) 100%);
    z-index: 9999;
    display: none;
    flex-direction: column;
    overflow-y: auto;
    font-family: 'Rajdhani', sans-serif;
    color: #f8fafc;
    box-sizing: border-box;
    padding: 12px;
}

#panel-simulator.active {
    display: flex;
    animation: simFadeIn 0.25s ease-out;
}

@keyframes simFadeIn {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

/* Header & Close Button */
.sim-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(56, 189, 248, 0.3);
    margin-bottom: 10px;
    flex-shrink: 0;
}

.sim-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sim-title-group h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 900;
    margin: 0;
    background: linear-gradient(90deg, #38bdf8 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

.sim-btn-close {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.6);
    color: #fca5a5;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.15s ease;
}

.sim-btn-close:active {
    transform: scale(0.92);
}

/* Sub-Screens Container */
.sim-subscreen {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

/* Mode Selection Container (2x2 Grid + 1x1 Duel Hero Card) */
.sim-modes-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.sim-grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.sim-card-compact {
    background: rgba(15, 23, 42, 0.85);
    border-radius: 12px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    min-height: 120px;
}

.sim-card-compact:active {
    transform: scale(0.96);
}

.sim-card-compact.mode-blitz {
    border: 1px solid rgba(236, 72, 153, 0.5);
    background: linear-gradient(145deg, rgba(236, 72, 153, 0.15) 0%, rgba(15, 23, 42, 0.95) 100%);
}

.sim-card-compact.mode-tower {
    border: 1px solid rgba(56, 189, 248, 0.5);
    background: linear-gradient(145deg, rgba(56, 189, 248, 0.15) 0%, rgba(15, 23, 42, 0.95) 100%);
}

.sim-card-compact.mode-anomaly {
    border: 1px solid rgba(245, 158, 11, 0.5);
    background: linear-gradient(145deg, rgba(245, 158, 11, 0.15) 0%, rgba(15, 23, 42, 0.95) 100%);
}

.sim-card-compact.mode-fusion {
    border: 1px solid rgba(168, 85, 247, 0.5);
    background: linear-gradient(145deg, rgba(168, 85, 247, 0.15) 0%, rgba(15, 23, 42, 0.95) 100%);
}

.sim-badge-tag {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.58rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    align-self: flex-start;
}

.tag-speed { background: rgba(236, 72, 153, 0.25); color: #f472b6; border: 1px solid rgba(236, 72, 153, 0.5); }
.tag-endurance { background: rgba(56, 189, 248, 0.25); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.5); }
.tag-precision { background: rgba(245, 158, 11, 0.25); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.5); }
.tag-fusion { background: rgba(168, 85, 247, 0.25); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.5); }
.tag-multiplayer { background: rgba(16, 185, 129, 0.25); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.5); }

.sim-compact-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}

.sim-compact-header i {
    font-size: 1.1rem;
}

.mode-blitz .sim-compact-header i { color: #ec4899; }
.mode-tower .sim-compact-header i { color: #38bdf8; }
.mode-anomaly .sim-compact-header i { color: #f59e0b; }
.mode-fusion .sim-compact-header i { color: #a855f7; }

.sim-compact-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mode-blitz .sim-compact-title { color: #f472b6; }
.mode-tower .sim-compact-title { color: #38bdf8; }
.mode-anomaly .sim-compact-title { color: #fbbf24; }
.mode-fusion .sim-compact-title { color: #c084fc; }

.sim-compact-desc {
    font-size: 0.65rem;
    color: #94a3b8;
    line-height: 1.2;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sim-compact-stat {
    font-size: 0.62rem;
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 700;
    color: #e2e8f0;
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: space-between;
}

.sim-compact-stat span {
    color: #fbbf24;
    font-weight: 800;
}

/* 1x1 Full-Width Duel Hero Card */
.sim-card-duel-hero {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.18) 0%, rgba(6, 182, 212, 0.15) 50%, rgba(15, 23, 42, 0.95) 100%);
    border: 1px solid rgba(16, 185, 129, 0.5);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.sim-card-duel-hero:active {
    transform: scale(0.98);
}

.sim-duel-hero-left {
    flex: 1;
    min-width: 0;
}

.sim-duel-hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.88rem;
    font-weight: 900;
    color: #34d399;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.sim-duel-hero-desc {
    font-size: 0.68rem;
    color: #cbd5e1;
    line-height: 1.2;
    margin-bottom: 4px;
}

.sim-btn-duel-cta {
    background: linear-gradient(135deg, #10b981, #059669);
    border: 1px solid #34d399;
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    font-weight: 900;
    padding: 8px 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
    cursor: pointer;
}

/* Anomaly & Fusion Custom Elements inside Arena */
.anomaly-box, .fusion-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.anomaly-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.92rem;
    color: #f8fafc;
    background: rgba(0, 0, 0, 0.4);
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.anomaly-step-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.anomaly-step-row {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 8px 12px;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.95rem;
    color: #e2e8f0;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 6px;
}

.step-badge {
    background: rgba(56, 189, 248, 0.25);
    border: 1px solid #38bdf8;
    color: #38bdf8;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 800;
    font-size: 0.82rem;
    margin-right: 4px;
    flex-shrink: 0;
}

.anomaly-instruction, .fusion-instruction {
    font-size: 0.78rem;
    color: #cbd5e1;
    font-family: 'Rajdhani', sans-serif;
    font-style: italic;
    text-align: center;
    margin-top: 4px;
}

.fusion-equation {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.45rem;
    font-weight: 900;
    color: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.5);
    padding: 16px 12px;
    border-radius: 12px;
    border: 1.5px solid rgba(168, 85, 247, 0.5);
    transition: all 0.25s ease;
}

.fusion-slot {
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.18);
    border: 2px dashed #fbbf24;
    padding: 4px 10px;
    border-radius: 8px;
    min-width: 44px;
    text-align: center;
    transition: all 0.2s ease;
    font-size: 1.25rem;
}

.fusion-slot.filled {
    background: rgba(56, 189, 248, 0.3) !important;
    border: 2px solid #38bdf8 !important;
    color: #f0f9ff !important;
    text-shadow: 0 0 12px #38bdf8 !important;
    font-size: 1.5rem !important;
}

.fusion-slot.slot-pulse {
    animation: slotPulse 1s infinite alternate;
}

@keyframes slotPulse {
    from { border-color: #fbbf24; box-shadow: 0 0 6px rgba(245, 158, 11, 0.4); }
    to { border-color: #f59e0b; box-shadow: 0 0 16px rgba(245, 158, 11, 0.8); }
}

.fusion-target {
    color: #34d399;
    font-size: 1.6rem;
    font-weight: 900;
}

.op-key-btn {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.98));
    border: 1.5px solid rgba(255, 255, 255, 0.22);
    border-radius: 14px;
    min-height: 68px;
    transition: all 0.1s ease;
}

.op-key-btn:active {
    transform: scale(0.94);
    background: rgba(56, 189, 248, 0.2);
}

.op-reset-btn:active {
    transform: scale(0.96);
}

/* LEADERBOARD CONTAINER & FILTER CONTROLS */
.sim-leaderboard-box {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 12px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 220px;
}

.sim-lb-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    padding-bottom: 6px;
}

.sim-lb-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    font-weight: 800;
    color: #fde047;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Category Tabs (Blitz, Tower, Duel) */
.sim-cat-tabs {
    display: flex;
    gap: 4px;
    width: 100%;
    margin-bottom: 8px;
}

.sim-cat-btn {
    flex: 1;
    padding: 6px 4px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #94a3b8;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 800;
    font-family: 'Chakra Petch', sans-serif;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
}

.sim-cat-btn.active {
    background: rgba(56, 189, 248, 0.25);
    border-color: #38bdf8;
    color: #38bdf8;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.3);
}

/* Scope Filters (Global vs Server) */
.sim-scope-tabs {
    display: flex;
    gap: 4px;
}

.sim-scope-btn {
    padding: 3px 8px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #94a3b8;
    border-radius: 4px;
    font-size: 0.62rem;
    font-weight: 700;
    cursor: pointer;
}

.sim-scope-btn.active {
    background: rgba(245, 158, 11, 0.25);
    border-color: #f59e0b;
    color: #fbbf24;
}

/* Leaderboard Table */
.sim-table-wrap {
    flex: 1;
    overflow-y: auto;
    max-height: 250px;
}

.sim-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.72rem;
}

.sim-table th {
    color: #64748b;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sim-table td {
    padding: 6px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.sim-lb-row-me {
    background: rgba(56, 189, 248, 0.12) !important;
    border-left: 2px solid #38bdf8;
}

.sim-rank-badge {
    font-weight: 900;
    font-size: 0.75rem;
    padding: 2px 4px;
    border-radius: 4px;
}

.rank-gold { color: #fde047; text-shadow: 0 0 6px rgba(253, 224, 71, 0.6); }
.rank-silver { color: #e2e8f0; text-shadow: 0 0 6px rgba(226, 232, 240, 0.6); }
.rank-bronze { color: #f97316; text-shadow: 0 0 6px rgba(249, 115, 22, 0.6); }
.sim-rank-num { color: #64748b; font-weight: 700; }

.sim-server-tag {
    font-size: 0.6rem;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.3);
    padding: 1px 4px;
    border-radius: 4px;
    color: #94a3b8;
    font-family: 'Chakra Petch', sans-serif;
}

/* ==========================================================================
   ARENA GAMEPLAY SCREEN (BLITZ / TOWER / DUEL)
   ========================================================================== */
#sim-screen-arena {
    display: none;
    flex-direction: column;
    height: 100%;
}

.sim-arena-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(15, 23, 42, 0.9);
    border-radius: 10px;
    border: 1px solid rgba(56, 189, 248, 0.3);
    margin-bottom: 12px;
}

.sim-hud-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    font-weight: 800;
}

.sim-hud-timer {
    color: #f472b6;
}

.sim-hud-timer.pulse-danger {
    color: #ef4444;
    animation: dangerPulse 0.5s infinite alternate;
}

@keyframes dangerPulse {
    from { transform: scale(1); text-shadow: 0 0 5px #ef4444; }
    to { transform: scale(1.1); text-shadow: 0 0 15px #ef4444; }
}

.sim-hud-combo {
    color: #fbbf24;
}

.sim-hud-combo.combo-fever {
    color: #ec4899;
    text-shadow: 0 0 10px #ec4899;
    animation: feverJitter 0.2s infinite;
}

@keyframes feverJitter {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(2deg) scale(1.05); }
    100% { transform: rotate(-2deg); }
}

/* Question Prompt Box */
.sim-prompt-box {
    flex: 1;
    background: rgba(2, 6, 23, 0.88);
    border: 1.5px solid rgba(56, 189, 248, 0.45);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 12px;
    margin-bottom: 12px;
    position: relative;
    box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.85), 0 0 15px rgba(56, 189, 248, 0.15);
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.sim-prompt-text {
    width: 100%;
    box-sizing: border-box;
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.75rem, 6.5vw, 2.4rem);
    font-weight: 900;
    color: #f8fafc;
    text-align: center;
    letter-spacing: 1px;
    text-shadow: 0 0 16px rgba(56, 189, 248, 0.6);
    word-break: break-word;
}

.sim-prompt-text .katex {
    font-size: 1.3em;
}

/* Typography Resets when containing complex widgets */
.sim-prompt-text .anomaly-box {
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: normal;
    text-shadow: none;
    font-weight: normal;
    font-size: 0.95rem;
    text-align: left;
}

.sim-prompt-text .anomaly-box .katex {
    font-size: 1.15em;
}

.sim-prompt-text .fusion-box {
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: normal;
    text-shadow: none;
}

.sim-prompt-text.anim-pop {
    animation: popPrompt 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popPrompt {
    from { opacity: 0; transform: scale(0.85); }
    to { opacity: 1; transform: scale(1); }
}

.math-num { color: #f8fafc; }
.math-op { color: #38bdf8; margin: 0 4px; }
.math-sup { font-size: 0.6em; vertical-align: super; color: #ec4899; }

/* 2x2 Tactical Multiple-Choice Grid */
.sim-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
}

.sim-opt-btn {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.95));
    border: 1.5px solid rgba(56, 189, 248, 0.45);
    color: #f8fafc;
    border-radius: 14px;
    padding: 12px 10px;
    font-family: 'Orbitron', 'Chakra Petch', sans-serif;
    cursor: pointer;
    box-shadow: 0 4px 0 0 rgba(2, 6, 23, 1), 0 0 10px rgba(56, 189, 248, 0.1);
    transition: all 0.1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 62px;
    box-sizing: border-box;
    overflow: hidden;
}

.sim-opt-btn span {
    font-size: clamp(1.15rem, 5vw, 1.55rem);
    font-weight: 800;
    line-height: 1.15;
    word-break: break-word;
    display: block;
    letter-spacing: 0.5px;
}

.sim-opt-btn .katex {
    font-size: 1.35em;
    font-weight: 800;
}

.sim-opt-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 0 rgba(2, 6, 23, 1);
}

.sim-opt-btn.correct {
    background: #059669 !important;
    border-color: #10b981 !important;
    box-shadow: 0 0 20px #10b981 !important;
}

.sim-opt-btn.wrong {
    background: #dc2626 !important;
    border-color: #ef4444 !important;
    box-shadow: 0 0 20px #ef4444 !important;
}

/* Floating Feedback & Shake */
.sim-float-feedback {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    font-weight: 900;
    pointer-events: none;
    animation: floatUp 1.2s forwards;
}

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

.shake {
    animation: arenaShake 0.35s ease;
}

@keyframes arenaShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}

/* ==========================================================================
   GAME OVER MODAL
   ========================================================================== */
.sim-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 15px;
    box-sizing: border-box;
}

.sim-modal-card {
    background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
    border: 1.5px solid rgba(56, 189, 248, 0.5);
    border-radius: 16px;
    padding: 20px;
    width: 100%;
    max-width: 360px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
}

.sim-modal-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 900;
    color: #38bdf8;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.sim-modal-main-val {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: #fbbf24;
    text-shadow: 0 0 15px rgba(251, 191, 36, 0.6);
    margin: 8px 0 15px 0;
}

.sim-substats-grid {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
}

.sim-substat-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px;
    flex: 1;
}

.substat-label {
    display: block;
    font-size: 0.65rem;
    color: #94a3b8;
    text-transform: uppercase;
}

.substat-val {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    color: #f8fafc;
}

.sim-modal-actions {
    display: flex;
    gap: 8px;
}

.btn-modal-sim {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    border: none;
}

.btn-modal-retry {
    background: #0284c7;
    color: #fff;
}

.btn-modal-exit {
    background: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
}

/* ==========================================================================
   DAILY ARCADE REWARD TRACKER BOX (MODEL 1 + 3 + 4)
   ========================================================================== */
.sim-daily-reward-box {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 1.5px solid rgba(251, 191, 36, 0.4);
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(251, 191, 36, 0.08);
}

.sim-daily-reward-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.sim-daily-reward-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.82rem;
    font-weight: 900;
    color: #fde047;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sim-daily-reset-tag {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    color: #94a3b8;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.sim-daily-progress-wrap {
    margin-bottom: 8px;
}

.sim-daily-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.68rem;
    color: #cbd5e1;
    margin-bottom: 4px;
}

.sim-daily-progress-track {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.sim-daily-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #fde047);
    border-radius: 6px;
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.6);
}

.sim-daily-bonus-row {
    display: flex;
    gap: 6px;
}

.sim-daily-bonus-badge {
    flex: 1;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 6px;
    padding: 4px 6px;
    font-size: 0.64rem;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
}

.sim-bonus-status {
    font-size: 0.58rem;
    font-weight: 800;
    font-family: 'Orbitron', sans-serif;
    padding: 1px 4px;
    border-radius: 3px;
}

.sim-bonus-status.ready {
    background: rgba(16, 185, 129, 0.25);
    color: #34d399;
    border: 1px solid #10b981;
    animation: statusGlow 1.5s infinite alternate;
}

.sim-bonus-status.claimed {
    background: rgba(148, 163, 184, 0.2);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

@keyframes statusGlow {
    from { opacity: 0.7; }
    to { opacity: 1; text-shadow: 0 0 6px #34d399; }
}

/* Modal Coin Reward Card */
.sim-modal-coin-card {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(251, 191, 36, 0.5);
    border-radius: 10px;
    padding: 8px 12px;
    margin-bottom: 12px;
    text-align: center;
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.2);
}

.sim-modal-coin-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
    margin-bottom: 2px;
}

.sim-modal-coin-val {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.15rem;
    font-weight: 900;
    color: #fde047;
    text-shadow: 0 0 10px rgba(253, 224, 71, 0.7);
}

.sim-modal-coin-desc {
    font-size: 0.66rem;
    color: #94a3b8;
    font-family: 'Chakra Petch', sans-serif;
}

/* ==========================================================================
   MULTIPLAYER VERSUS ARENA (2-4 PLAYERS & COIN WAGER)
   ========================================================================== */
.versus-config-tabs {
    display: flex;
    gap: 4px;
    margin-top: 4px;
}

.versus-config-btn {
    flex: 1;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #94a3b8;
    border-radius: 6px;
    padding: 6px 2px;
    font-size: 0.7rem;
    font-weight: 700;
    font-family: 'Chakra Petch', sans-serif;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
}

.versus-config-btn.active {
    background: rgba(16, 185, 129, 0.25);
    border-color: #10b981;
    color: #34d399;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

/* 4 Players Waiting Slots Grid */
.versus-slots-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
    margin-bottom: 12px;
}

.versus-slot-card {
    background: rgba(15, 23, 42, 0.9);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    position: relative;
    box-sizing: border-box;
}

.versus-slot-card.filled {
    border-color: #38bdf8;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(15, 23, 42, 0.95));
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

.versus-slot-card.host {
    border-color: #fbbf24;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(15, 23, 42, 0.95));
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}

.versus-slot-card.empty {
    border: 1.5px dashed rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.2);
    color: #64748b;
}

.versus-slot-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1.5px solid #38bdf8;
    object-fit: cover;
    margin-bottom: 4px;
}

.versus-slot-name {
    font-size: 0.68rem;
    font-weight: 800;
    color: #f8fafc;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.versus-slot-tag {
    font-size: 0.55rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 800;
    padding: 1px 4px;
    border-radius: 3px;
    margin-top: 2px;
}

.tag-host { background: rgba(251, 191, 36, 0.25); color: #fbbf24; border: 1px solid #fbbf24; }
.tag-ready { background: rgba(16, 185, 129, 0.25); color: #34d399; border: 1px solid #10b981; }

/* Real-time In-Game Scoreboard in Arena Topbar */
.versus-live-scoreboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(65px, 1fr));
    gap: 4px;
    width: 100%;
}

.versus-live-player-badge {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 3px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.versus-live-player-badge.me {
    border-color: #38bdf8;
    background: rgba(56, 189, 248, 0.15);
}

.versus-live-name {
    font-size: 0.6rem;
    font-weight: 700;
    color: #cbd5e1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.versus-live-score {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.72rem;
    font-weight: 900;
    color: #fbbf24;
}
