html, body, #root {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    overflow: hidden;
    color: #F8FAFC;
    background-color: #0B0F19; 
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

#app {
    position: relative;
    width: 100%;
    height: 100%;
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    touch-action: none;
    background: radial-gradient(circle at 50% 45%, #182238 0%, #0B0F19 100%);
}

#game-container {
    width: 100%;
    height: 100%;
    touch-action: none;
}

#game-container canvas {
    touch-action: none;
    display: block;
}

#hud {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    font-family: inherit;
}

#hud button,
#hud a,
#hud input,
#hud [role="button"],
#hud .interactive {
    pointer-events: auto;
}

/* ----------------------------------------------------
   TOAST FEEDBACK
---------------------------------------------------- */
.toast-banner {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    min-width: 290px;
    max-width: 90%;
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(8px);
    border: 1px solid #F59E0B;
    border-radius: 12px;
    padding: 10px 16px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(245, 158, 11, 0.3);
    animation: toastSlideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.toast-banner.toast-success {
    border-color: #10B981;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.25);
}

.toast-banner.toast-warning {
    border-color: #F59E0B;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.25);
}

.toast-banner.toast-danger {
    border-color: #EF4444;
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.25);
}

.toast-text {
    font-size: 13px;
    font-weight: 700;
    color: #FFFFFF;
}

.toast-slang {
    font-size: 11px;
    font-style: italic;
    color: #FDE047;
    margin-top: 2px;
}

@keyframes toastSlideDown {
    from {
        opacity: 0;
        transform: translate(-50%, -20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0) scale(1);
    }
}

/* ----------------------------------------------------
   SETUP & AVATAR SELECTION SCREEN
---------------------------------------------------- */
.overlay-screen {
    position: absolute;
    inset: 0;
    pointer-events: auto;
    background: linear-gradient(180deg, rgba(11, 15, 25, 0.97) 0%, rgba(20, 29, 47, 0.98) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 16px;
    box-sizing: border-box;
    overflow-y: auto;
    z-index: 50;
}

.brand-header {
    text-align: center;
    margin-bottom: 14px;
}

.brand-tag {
    display: inline-block;
    font-size: 10px;
    letter-spacing: 2px;
    color: #F59E0B;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    padding: 3px 10px;
    border-radius: 999px;
    font-weight: 800;
    margin-bottom: 6px;
}

.brand-title {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 1px;
    margin: 0;
    color: #FFFFFF;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.brand-highlight {
    color: #F59E0B;
    background: linear-gradient(90deg, #F59E0B, #FBBF24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-subtitle {
    font-size: 10.5px;
    font-weight: 700;
    color: #94A3B8;
    letter-spacing: 1.5px;
    margin-top: 4px;
}

.setup-card-box {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.setup-instruction {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #CBD5E1;
    text-align: center;
}

.avatar-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.avatar-choice-card {
    background: rgba(30, 41, 59, 0.85);
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 12px 14px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.avatar-choice-card:hover {
    transform: translateY(-2px);
    background: rgba(30, 41, 59, 1);
}

.avatar-choice-card.selected {
    box-shadow: 0 0 18px rgba(245, 158, 11, 0.35);
    background: rgba(40, 53, 76, 0.95);
}

.avatar-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.avatar-circle-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.avatar-name {
    font-size: 15px;
    font-weight: 800;
    color: #FFFFFF;
}

.avatar-title {
    font-size: 11px;
    font-weight: 600;
    color: #94A3B8;
}

.avatar-stat-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.stat-pill {
    font-size: 11px;
    font-weight: 700;
    background: rgba(15, 23, 42, 0.7);
    padding: 4px 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-pill.cash {
    color: #FCD34D;
    border: 1px solid rgba(252, 211, 77, 0.3);
}

.stat-pill.salary {
    color: #38BDF8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.stat-pill.ige {
    color: #34D399;
    border: 1px solid rgba(52, 211, 153, 0.3);
}

.avatar-perk {
    font-size: 11.5px;
    line-height: 1.35;
    color: #E2E8F0;
    margin-bottom: 6px;
}

.avatar-quote {
    font-size: 10.5px;
    font-style: italic;
    color: #94A3B8;
}

.victory-hint-box {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 11.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #E2E8F0;
}

.hint-icon {
    font-size: 22px;
}

.gold-text {
    color: #F59E0B;
    font-weight: 800;
}

.emerald-text {
    color: #10B981;
    font-weight: 800;
}

.primary-action-btn {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: #0F172A;
    font-weight: 900;
    font-size: 14px;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 12px;
    padding: 14px 20px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.15s ease, filter 0.15s ease;
}

.primary-action-btn:active {
    transform: scale(0.98);
}

.primary-action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(0.8);
}

.enter-game-btn {
    margin-top: 6px;
    font-size: 15px;
    padding: 16px 20px;
}

/* ----------------------------------------------------
   PLAYING HUD
---------------------------------------------------- */
.playing-hud-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px 12px;
    box-sizing: border-box;
}

.top-hud-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 8px 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.player-badge-compact {
    display: flex;
    align-items: center;
    gap: 6px;
    border-left: 3px solid #F59E0B;
    padding-left: 6px;
}

.badge-avatar-mini {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.badge-info {
    display: flex;
    flex-direction: column;
}

.badge-name {
    font-size: 11px;
    font-weight: 800;
    color: #FFFFFF;
    white-space: nowrap;
}

.badge-laps {
    font-size: 9px;
    font-weight: 700;
    color: #94A3B8;
}

.dual-meters-cluster {
    display: flex;
    gap: 8px;
    align-items: center;
}

.meter-card {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(30, 41, 59, 0.7);
    padding: 4px 8px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.meter-icon {
    font-size: 13px;
    font-weight: 900;
}

.meter-card.cash-meter .meter-icon {
    color: #F59E0B;
}

.meter-card.ige-meter .meter-icon {
    color: #10B981;
}

.meter-content {
    display: flex;
    flex-direction: column;
}

.meter-label {
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #94A3B8;
}

.meter-value {
    font-size: 11.5px;
    font-weight: 800;
    color: #FFFFFF;
}

.ige-progress-track {
    width: 58px;
    height: 5px;
    background: rgba(15, 23, 42, 0.9);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 2px;
}

.ige-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #10B981, #34D399);
    transition: width 0.3s ease;
}

.quick-actions-bar {
    display: flex;
    gap: 4px;
}

.hud-icon-btn {
    background: rgba(30, 41, 59, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    color: #FFFFFF;
    transition: background 0.15s ease;
}

.hud-icon-btn:hover {
    background: rgba(51, 65, 85, 1);
}

/* TURN STATUS TICKER */
.turn-status-ticker {
    align-self: center;
    margin-top: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    animation: pulseTicker 2s infinite ease-in-out;
}

.turn-status-ticker.human-turn {
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid #F59E0B;
    color: #FDE047;
}

.turn-status-ticker.ai-turn {
    background: rgba(30, 41, 59, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #CBD5E1;
}

.turn-indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10B981;
    animation: blinkDot 1s infinite alternate;
}

.last-roll-badge {
    background: #0F172A;
    color: #38BDF8;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 10px;
}

@keyframes blinkDot {
    from { opacity: 0.3; }
    to { opacity: 1; }
}

@keyframes pulseTicker {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* BOTTOM HUD ACTION ZONE */
.bottom-action-zone {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    margin-bottom: 4px;
}

.live-log-box {
    width: 100%;
    max-width: 460px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 6px 12px;
    font-size: 10.5px;
    color: #E2E8F0;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.log-prefix {
    color: #F59E0B;
    font-weight: 800;
}

.big-roll-btn {
    width: 100%;
    max-width: 340px;
    padding: 16px 24px;
    font-size: 16px;
    border-radius: 14px;
    box-shadow: 0 6px 22px rgba(245, 158, 11, 0.5);
    cursor: pointer;
}

.btn-shortcut {
    font-size: 11px;
    opacity: 0.8;
}

/* ----------------------------------------------------
   MODALS & OVERLAYS
---------------------------------------------------- */
.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    z-index: 80;
    pointer-events: auto;
    animation: fadeInModal 0.2s ease-out;
}

.modal-content {
    width: 100%;
    max-width: 400px;
    background: #1E293B;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
    animation: popUpModal 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes popUpModal {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header-strip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: #FFFFFF;
}

.modal-header-strip.danger {
    background: #DC2626;
}

.tile-icon-large {
    font-size: 32px;
}

.district-tag {
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 1.5px;
    opacity: 0.9;
}

.tile-title {
    margin: 2px 0 0;
    font-size: 17px;
    font-weight: 900;
}

.tile-yoruba-sub {
    font-size: 11px;
    font-style: italic;
    opacity: 0.85;
}

.modal-body {
    padding: 16px;
}

.tile-desc {
    font-size: 12.5px;
    line-height: 1.45;
    color: #CBD5E1;
    margin: 0 0 14px;
}

.property-specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.spec-card {
    background: #0F172A;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 8px;
    text-align: center;
}

.spec-label {
    font-size: 9.5px;
    color: #94A3B8;
    margin-bottom: 4px;
}

.spec-value {
    font-size: 12px;
    font-weight: 800;
}

.spec-value.gold { color: #F59E0B; }
.spec-value.green { color: #10B981; }
.spec-value.purple { color: #A855F7; }

.perk-applied-badge {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid #F59E0B;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 700;
    color: #FDE047;
    margin-bottom: 10px;
    text-align: center;
}

.insufficient-funds-alert {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid #EF4444;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 700;
    color: #FCA5A5;
    margin-bottom: 10px;
    text-align: center;
}

.modal-footer-dual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 12px 16px 16px;
}

.secondary-action-btn {
    background: rgba(51, 65, 85, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #E2E8F0;
    font-weight: 800;
    font-size: 13px;
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.secondary-action-btn:hover {
    background: rgba(71, 85, 105, 1);
}

.modal-footer-single {
    padding: 12px 16px 16px;
}

.continue-btn {
    width: 100%;
}

/* CARD POPUP STYLING */
.card-popup-modal.card-ajala {
    border-color: #8B5CF6;
}

.card-popup-modal.card-life {
    border-color: #10B981;
}

.card-badge-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #0F172A;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-type-icon {
    font-size: 30px;
}

.card-type-tag {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #F59E0B;
}

.card-yoruba-title {
    margin: 2px 0 0;
    font-size: 16px;
    font-weight: 900;
    color: #FFFFFF;
}

.card-english-title {
    font-size: 11.5px;
    color: #94A3B8;
}

.card-desc-text {
    font-size: 13px;
    line-height: 1.45;
    color: #F1F5F9;
    margin-bottom: 12px;
}

.card-effects-summary {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.effect-pill {
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 800;
}

.effect-pill.positive {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid #10B981;
    color: #34D399;
}

.effect-pill.negative {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid #EF4444;
    color: #F87171;
}

.effect-pill.move {
    background: rgba(56, 189, 248, 0.2);
    border: 1px solid #38BDF8;
    color: #7DD3FC;
}

.card-flavor-box {
    font-size: 11px;
    font-style: italic;
    color: #FDE047;
    background: rgba(15, 23, 42, 0.6);
    padding: 8px 12px;
    border-radius: 8px;
}

/* HAZARD CHOICES */
.danfo-desc {
    font-size: 12.5px;
    color: #CBD5E1;
    margin-bottom: 14px;
}

.hazard-choices-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hazard-choice-btn {
    background: #0F172A;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 12px;
    text-align: left;
    cursor: pointer;
    transition: all 0.15s ease;
}

.hazard-choice-btn:hover {
    background: #1E293B;
    border-color: #F59E0B;
}

.hazard-choice-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.choice-title {
    font-size: 12.5px;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 2px;
}

.choice-sub {
    font-size: 10.5px;
    color: #94A3B8;
}

/* LEADERBOARD MODAL */
.leaderboard-modal {
    max-width: 420px;
}

.leaderboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: #0F172A;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.leaderboard-header h2 {
    font-size: 14px;
    font-weight: 800;
    margin: 0;
    color: #F59E0B;
}

.modal-close-btn {
    background: transparent;
    border: none;
    color: #94A3B8;
    font-size: 16px;
    cursor: pointer;
}

.leaderboard-list {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.leader-row {
    background: #0F172A;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 4px solid #F59E0B;
    border-radius: 10px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.leader-row.is-human {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(245, 158, 11, 0.5);
}

.leader-rank {
    font-size: 12px;
    font-weight: 900;
    color: #F59E0B;
}

.leader-avatar-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.leader-info {
    flex: 1;
}

.leader-name {
    font-size: 12px;
    font-weight: 800;
    color: #FFFFFF;
}

.leader-stats {
    font-size: 10px;
    color: #94A3B8;
    margin-top: 2px;
}

.leader-net {
    text-align: right;
}

.net-label {
    font-size: 8.5px;
    color: #94A3B8;
}

.net-value {
    font-size: 11.5px;
    font-weight: 800;
    color: #38BDF8;
}

/* PAUSE MODAL */
.pause-modal {
    max-width: 380px;
    padding: 16px;
}

.pause-header {
    text-align: center;
    margin-bottom: 14px;
}

.pause-header h2 {
    margin: 0;
    font-size: 18px;
    color: #FFFFFF;
}

.pause-sub {
    font-size: 11px;
    color: #F59E0B;
    letter-spacing: 1px;
    font-weight: 700;
    margin-top: 2px;
}

.rules-section {
    background: #0F172A;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 10px;
}

.rules-section h3 {
    margin: 0 0 4px;
    font-size: 11.5px;
    color: #38BDF8;
}

.rules-section p {
    margin: 0;
    font-size: 11px;
    line-height: 1.4;
    color: #CBD5E1;
}

.pause-actions-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
}

/* VICTORY MODAL */
.victory-backdrop {
    background: rgba(11, 15, 25, 0.94);
}

.victory-modal {
    text-align: center;
    padding: 24px 20px;
    border-color: #F59E0B;
    box-shadow: 0 0 40px rgba(245, 158, 11, 0.4);
}

.victory-crown {
    font-size: 46px;
    margin-bottom: 6px;
    animation: bounceCrown 1s infinite alternate ease-in-out;
}

.victory-headline {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 1px;
    color: #F59E0B;
    margin: 0;
}

.victory-subhead {
    font-size: 11px;
    font-weight: 800;
    color: #38BDF8;
    letter-spacing: 1.5px;
    margin: 4px 0 16px;
}

.winner-spotlight {
    background: #0F172A;
    border: 2px solid #F59E0B;
    border-radius: 14px;
    padding: 14px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 12px;
}

.winner-avatar-big {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    margin-bottom: 8px;
}

.winner-name {
    font-size: 16px;
    font-weight: 900;
    color: #FFFFFF;
}

.winner-title {
    font-size: 11px;
    color: #94A3B8;
}

.winner-reason {
    font-size: 12.5px;
    line-height: 1.45;
    color: #E2E8F0;
    margin: 0 0 16px;
}

.winner-final-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 18px;
}

.final-stat {
    background: #0F172A;
    border-radius: 10px;
    padding: 8px 4px;
}

.final-stat .label {
    font-size: 9px;
    color: #94A3B8;
    margin-bottom: 2px;
}

.final-stat .val {
    font-size: 12px;
    font-weight: 800;
    color: #FFFFFF;
}

.play-again-btn {
    width: 100%;
}

@keyframes bounceCrown {
    from { transform: translateY(0) scale(1); }
    to { transform: translateY(-8px) scale(1.1); }
}

/* INSPECT TILE MODAL */
.inspect-modal {
    max-width: 340px;
}

.inspect-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    color: #FFFFFF;
}

.inspect-icon {
    font-size: 24px;
}

.inspect-district {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    opacity: 0.9;
}

.inspect-name {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
}

.inspect-yoruba {
    font-size: 10.5px;
    font-style: italic;
    opacity: 0.85;
}

.inspect-close {
    margin-left: auto;
    background: transparent;
    border: none;
    color: #FFFFFF;
    font-size: 16px;
    cursor: pointer;
}

.inspect-desc {
    font-size: 11.5px;
    line-height: 1.4;
    color: #CBD5E1;
    margin: 0 0 10px;
}

.inspect-metrics {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 11px;
    background: #0F172A;
    padding: 8px 10px;
    border-radius: 8px;
    color: #E2E8F0;
}

/* ---------------------------------------------------------------------------
   BOOT SPLASH — brief branded loading screen before the menu
   --------------------------------------------------------------------------- */
.boot-splash {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: radial-gradient(circle at 50% 40%, #1B2440 0%, #0B0F1C 70%);
    pointer-events: auto;
    animation: bootFade 0.4s ease;
}

.boot-splash-title {
    font-size: 42px;
    font-weight: 900;
    letter-spacing: 6px;
    color: #FFD13B;
    text-shadow: 0 0 24px rgba(255, 209, 59, 0.45);
}

.boot-splash-sub {
    font-size: 14px;
    letter-spacing: 4px;
    color: #E2A03F;
}

.boot-splash-loader {
    margin-top: 18px;
    font-size: 12px;
    letter-spacing: 1px;
    color: #94A3B8;
    animation: bootPulse 1.1s ease-in-out infinite;
}

@keyframes bootPulse {
    0%, 100% { opacity: 0.45; }
    50% { opacity: 1; }
}

@keyframes bootFade {
    from { opacity: 0; }
    to { opacity: 1; }
}