﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #050404;
    font-family: 'Rajdhani', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #f5f0e6;
}

#game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at center, #1b1111 0%, #080505 100%);
    overflow: hidden;
}

#game-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.22) 85%);
    z-index: 5;
}

canvas#gameCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 1;
}

/* Touch controls overlay for mobile */
#touch-controls {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    pointer-events: auto;
    z-index: 10;
}

.touch-zone {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 25px;
    opacity: 0.25;
    transition: opacity 0.15s, background-color 0.15s;
}

.touch-zone:active {
    opacity: 0.6;
    background: rgba(180, 20, 20, 0.15);
}

.touch-hint {
    font-family: 'Cinzel', serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #e6b422;
    background: rgba(0, 0, 0, 0.5);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(230, 180, 34, 0.3);
}

/* In-Game HUD */
#hud {
    position: absolute;
    top: 8px;
    left: 0;
    width: 100%;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    pointer-events: none;
    z-index: 20;
}

/* Fiery CP Milestone Progress Bar at Top */
.hud-fire-progress-container {
    width: 60%;
    max-width: 360px;
    background: rgba(18, 8, 4, 0.9);
    border: 1px solid rgba(255, 120, 20, 0.45);
    border-radius: 12px;
    padding: 3px 10px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.8), 0 0 10px rgba(255, 69, 0, 0.35);
    backdrop-filter: blur(4px);
    pointer-events: auto;
}

.hud-fire-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 9px;
    margin-bottom: 2px;
}

.hud-fire-label {
    color: #ffd700;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.hud-fire-label strong {
    color: #ff8c00;
}

.hud-cp-reward-pill {
    background: rgba(255, 215, 0, 0.18);
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.6);
    border-radius: 4px;
    padding: 1px 5px;
    font-size: 8.5px;
    font-weight: 800;
}

.hud-fire-track {
    width: 100%;
    height: 6px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 4px;
    overflow: visible;
    position: relative;
    border: 1px solid rgba(255, 120, 20, 0.3);
}

.hud-fire-fill {
    height: 100%;
    background: linear-gradient(90deg, #b91c1c 0%, #ea580c 45%, #f59e0b 80%, #ffd700 100%);
    border-radius: 4px;
    box-shadow: 0 0 10px #ff4500, 0 0 18px rgba(255, 140, 0, 0.7);
    transition: width 0.25s ease-out;
    position: relative;
}

.hud-fire-sparkle-tip {
    position: absolute;
    right: -7px;
    top: -8px;
    font-size: 12px;
    line-height: 1;
    filter: drop-shadow(0 0 6px #ff4500);
    animation: flameTipShake 0.6s infinite alternate;
}

@keyframes flameTipShake {
    0% { transform: scale(0.9) rotate(-8deg); }
    100% { transform: scale(1.25) rotate(8deg); }
}

.hud-fire-progress-container.fire-critical-near {
    border-color: #ef4444;
    box-shadow: 0 0 18px rgba(239, 68, 68, 0.85), 0 0 10px rgba(255, 215, 0, 0.6);
    animation: criticalPulse 0.4s infinite alternate;
}

@keyframes criticalPulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.02); }
}

/* 100 Kills Screen Edge Red Blink Overlay */
.screen-edge-red-blink {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 99990;
    box-shadow: inset 0 0 80px 25px rgba(239, 68, 68, 0.85);
    border: 6px solid #ef4444;
    box-sizing: border-box;
}

.screen-edge-red-blink.active-blink {
    animation: redBorderBlink 0.32s infinite alternate !important;
}

@keyframes redBorderBlink {
    0% {
        opacity: 0.15;
        box-shadow: inset 0 0 40px 10px rgba(239, 68, 68, 0.4);
    }
    100% {
        opacity: 1;
        box-shadow: inset 0 0 120px 45px rgba(255, 0, 0, 0.95);
        border-color: #ff0000;
    }
}

/* 100 Kills 5s God Mode Protection Banner */
.godmode-protection-banner {
    position: fixed;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99995;
    background: linear-gradient(135deg, rgba(60, 20, 0, 0.95) 0%, rgba(30, 5, 0, 0.98) 100%);
    border: 2px solid #ffd700;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.8), 0 0 50px rgba(239, 68, 68, 0.6);
    border-radius: 12px;
    padding: 8px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    pointer-events: none;
    animation: godmodeBannerBounce 0.4s ease-out;
}

@keyframes godmodeBannerBounce {
    0% { transform: translateX(-50%) translateY(-20px) scale(0.85); opacity: 0; }
    100% { transform: translateX(-50%) translateY(0) scale(1); opacity: 1; }
}

.godmode-icon {
    font-size: 24px;
    filter: drop-shadow(0 0 8px #ffd700);
    animation: godmodeShieldPulse 0.8s infinite alternate;
}

@keyframes godmodeShieldPulse {
    0% { transform: scale(0.95); }
    100% { transform: scale(1.15); }
}

.godmode-text {
    display: flex;
    flex-direction: column;
}

.godmode-heading {
    font-family: 'Cinzel', serif;
    font-size: 13px;
    color: #ffd700;
    letter-spacing: 1px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.godmode-sub {
    font-size: 10px;
    color: #fef08a;
    letter-spacing: 0.5px;
}

.godmode-timer-pill {
    background: #000;
    border: 2px solid #ffd700;
    color: #ffd700;
    font-family: 'Cinzel', sans-serif;
    font-weight: 900;
    font-size: 14px;
    padding: 2px 9px;
    border-radius: 16px;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

.hud-top {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(12, 8, 8, 0.85);
    border: 1px solid rgba(230, 180, 34, 0.4);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), inset 0 0 15px rgba(180, 20, 20, 0.2);
    border-radius: 30px;
    padding: 6px 20px;
    backdrop-filter: blur(8px);
    pointer-events: auto;
}

.hud-score-box, .hud-goal-box, .hud-best-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.hud-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #9e8e78;
}

#hud-score {
    font-family: 'Cinzel', serif;
    font-size: 26px;
    font-weight: 900;
    color: #ff3333;
    text-shadow: 0 0 12px rgba(255, 51, 51, 0.6);
}

#hud-target {
    font-family: 'Cinzel', serif;
    font-size: 13px;
    font-weight: 700;
    color: #e6b422;
    letter-spacing: 0.5px;
}

#hud-best {
    font-family: 'Cinzel', serif;
    font-size: 18px;
    font-weight: 700;
    color: #e6b422;
}

.btn-icon {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(230, 180, 34, 0.4);
    color: #f5f0e6;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-icon:hover {
    background: rgba(230, 180, 34, 0.2);
    border-color: #e6b422;
    transform: scale(1.08);
}

/* ========================================== */
/* SCREEN OVERLAYS (SAFE SCROLLING & SIZING)  */
/* ========================================== */
.screen-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(20, 10, 10, 0.94) 0%, rgba(5, 3, 3, 0.98) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    z-index: 30;
    padding: 12px 10px;
    animation: fadeIn 0.3s ease-out forwards;
}

#screen-title {
    background: linear-gradient(180deg, rgba(14, 7, 7, 0.65) 0%, rgba(20, 10, 10, 0.40) 35%, rgba(10, 4, 4, 0.80) 100%),
                url('assets/sprites/menu_bg.jpg') center center / cover no-repeat !important;
}

.screen-scroll-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    width: 100%;
    margin: auto 0;
    padding: 10px 0;
}

.hidden {
    display: none !important;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

/* Typography */
.greek-title {
    font-family: 'Cinzel', serif;
    font-size: 40px;
    font-weight: 900;
    letter-spacing: 4px;
    color: #f4d068;
    text-shadow: 0 0 20px rgba(230, 180, 34, 0.6), 0 4px 8px rgba(0, 0, 0, 0.9);
    margin: 6px 0;
    text-align: center;
}

.subtitle {
    font-size: 13px;
    letter-spacing: 3px;
    color: #c94b4b;
    margin-bottom: 20px;
    font-weight: 700;
    text-align: center;
}

.spartan-motto {
    font-size: 12px;
    letter-spacing: 2.5px;
    color: #bfa787;
    margin-bottom: 18px;
    max-width: 460px;
    text-align: center;
}

/* Title Screen Top Bar */
.title-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 480px;
    margin-bottom: 14px;
    gap: 8px;
}

.profile-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(30, 18, 18, 0.85);
    border: 1px solid rgba(230, 180, 34, 0.4);
    border-radius: 24px;
    padding: 4px 12px 4px 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.profile-pill:hover {
    background: rgba(50, 25, 25, 0.95);
    border-color: #f4d068;
    transform: translateY(-1px);
}

.profile-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #4a1515;
    border: 1px solid #f4d068;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.profile-meta {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.profile-name {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-badge-guest, .profile-badge-google, .profile-badge-playgames {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 1px 6px;
    border-radius: 8px;
    width: fit-content;
}

.profile-badge-guest {
    background: #443c3c;
    color: #bbb;
}

.profile-badge-google {
    background: #1a73e8;
    color: #fff;
}

.profile-badge-playgames {
    background: #00875A;
    color: #fff;
}

.sync-indicator {
    font-size: 13px;
    filter: drop-shadow(0 0 4px #00e676);
}

.header-nav-btns {
    display: flex;
    gap: 6px;
}

.btn-header-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(30, 20, 20, 0.8);
    border: 1px solid rgba(230, 180, 34, 0.4);
    color: #f4d068;
    font-family: 'Cinzel', serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 6px 10px;
    border-radius: 18px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-header-nav:hover {
    background: rgba(60, 30, 30, 0.9);
    border-color: #ffe680;
    transform: translateY(-1px);
}

/* Logos & Shields */
.title-shield-wrap {
    width: 105px;
    height: 105px;
    margin-bottom: 8px;
    position: relative;
    animation: floatAnim 3s ease-in-out infinite alternate;
}

.title-logo, #loading-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 25px rgba(230, 40, 40, 0.6));
}

@keyframes floatAnim {
    from { transform: translateY(0) rotate(-1deg); }
    to { transform: translateY(-6px) rotate(1deg); }
}

/* Record Badge */
.record-badge {
    background: rgba(30, 15, 15, 0.75);
    border: 1px solid rgba(230, 180, 34, 0.4);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
    border-radius: 12px;
    padding: 8px 24px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.record-title {
    font-size: 11px;
    letter-spacing: 2px;
    color: #9e8e78;
}

.record-number {
    font-family: 'Cinzel', serif;
    font-size: 32px;
    font-weight: 900;
    color: #e6b422;
    text-shadow: 0 0 10px rgba(230, 180, 34, 0.4);
    line-height: 1.1;
}

.record-sub {
    font-size: 10px;
    letter-spacing: 1.5px;
    color: #cc3333;
    font-weight: 700;
}

/* Button Styles */
.button-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 330px;
}

.secondary-btn-row {
    display: flex;
    gap: 10px;
    width: 100%;
}

.secondary-btn-row button {
    flex: 1;
}

.btn-primary {
    background: linear-gradient(180deg, #d42222 0%, #870f0f 100%);
    border: 2px solid #f4d068;
    color: #fff;
    font-family: 'Cinzel', serif;
    font-size: 17px;
    font-weight: 900;
    letter-spacing: 2px;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(180, 20, 20, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.2s;
    text-transform: uppercase;
    text-align: center;
}

.btn-primary:hover, .btn-primary:active {
    background: linear-gradient(180deg, #f02a2a 0%, #a81313 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(230, 30, 30, 0.7);
}

.btn-pulsing {
    animation: pulseBorder 2s infinite;
}

@keyframes pulseBorder {
    0% { box-shadow: 0 0 0 0 rgba(244, 208, 104, 0.6); }
    70% { box-shadow: 0 0 0 10px rgba(244, 208, 104, 0); }
    100% { box-shadow: 0 0 0 0 rgba(244, 208, 104, 0); }
}

.btn-secondary {
    background: rgba(30, 20, 20, 0.85);
    border: 1px solid rgba(230, 180, 34, 0.5);
    color: #e6b422;
    font-family: 'Cinzel', serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-secondary:hover {
    background: rgba(60, 30, 30, 0.85);
    border-color: #f4d068;
    transform: translateY(-1px);
}

.btn-gold {
    background: linear-gradient(180deg, #cca02c 0%, #876208 100%);
    border: 1px solid #ffe680;
    color: #fff;
    font-family: 'Cinzel', serif;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 14px rgba(230, 180, 34, 0.4);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.btn-gold:hover {
    background: linear-gradient(180deg, #e6b422 0%, #a8790c 100%);
    transform: translateY(-1px);
}

.btn-danger {
    background: rgba(120, 20, 20, 0.85);
    border: 1px solid rgba(255, 60, 60, 0.5);
    color: #ff9999;
    font-family: 'Cinzel', serif;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-danger:hover {
    background: rgba(160, 20, 20, 0.95);
    color: #fff;
}

.btn-sm {
    font-size: 12px !important;
    padding: 8px 14px !important;
}

/* Controls Guide */
.controls-guide {
    display: flex;
    gap: 16px;
    margin-top: 20px;
    opacity: 0.8;
}

.guide-item {
    font-size: 12px;
    letter-spacing: 1px;
    color: #c9beaa;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ========================================== */
/* RESULT CARD (COMPACT, ELEGANT, UNCLIPPED)  */
/* ========================================== */
.result-card {
    background: rgba(18, 10, 10, 0.94);
    border: 2px solid rgba(230, 180, 34, 0.6);
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.95), 0 0 30px rgba(180, 20, 20, 0.35);
    padding: 16px 18px;
    max-width: 500px;
    width: 95%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    backdrop-filter: blur(12px);
    margin: 6px auto;
    box-sizing: border-box;
    overflow: visible;
}

.new-record-banner {
    position: absolute;
    top: -14px;
    background: linear-gradient(90deg, #ff9900, #ff2222, #ff9900);
    background-size: 200% 100%;
    animation: shine 2s linear infinite;
    color: #fff;
    font-family: 'Cinzel', serif;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 1.5px;
    padding: 4px 18px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(255, 50, 0, 0.7);
    border: 1px solid #ffe680;
}

@keyframes shine {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.result-header {
    font-family: 'Cinzel', serif;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 3px;
    color: #ff3b3b;
    margin: 4px 0 12px;
    text-shadow: 0 0 15px rgba(255, 59, 59, 0.5);
}

.result-scores {
    display: flex;
    gap: 12px;
    width: 100%;
    margin-bottom: 10px;
}

.result-score-block {
    flex: 1;
    background: rgba(10, 5, 5, 0.65);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-score {
    border-color: rgba(255, 50, 50, 0.45);
    background: rgba(40, 10, 10, 0.5);
}

.sub-score {
    border-color: rgba(230, 180, 34, 0.45);
}

.score-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #9e8e78;
    margin-bottom: 2px;
}

.score-val {
    font-family: 'Cinzel', serif;
    font-size: 32px;
    font-weight: 900;
    line-height: 1;
}

.main-score .score-val {
    color: #ff3333;
    text-shadow: 0 0 15px rgba(255, 51, 51, 0.5);
}

.sub-score .score-val {
    color: #f4d068;
}

/* Spartan Rank Box on Result Screen */
.result-rank-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: linear-gradient(90deg, rgba(35, 18, 18, 0.8), rgba(45, 25, 10, 0.85));
    border: 1px solid rgba(244, 208, 104, 0.45);
    border-radius: 8px;
    padding: 8px 14px;
    margin-bottom: 10px;
}

.rank-box-left, .rank-box-right {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.rank-box-right {
    text-align: right;
}

.rank-label, .tier-label {
    font-size: 10px;
    letter-spacing: 1px;
    color: #9e8e78;
    font-weight: 700;
}

.rank-value {
    font-family: 'Cinzel', serif;
    font-size: 18px;
    font-weight: 900;
    color: #f4d068;
}

.tier-value {
    font-size: 13px;
    font-weight: 700;
    color: #ff6666;
}

.tribute-text {
    font-size: 12px;
    font-style: italic;
    color: #bfa787;
    margin-bottom: 14px;
    line-height: 1.3;
    text-align: center;
}

/* Result Action Buttons (2x2 Balanced Grid - Never Overflows Card) */
.result-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px;
    width: 100%;
    margin-bottom: 12px;
    box-sizing: border-box;
}

.result-actions button {
    width: 100%;
    font-size: 12.5px;
    font-weight: 800;
    padding: 10px 8px;
    white-space: nowrap;
    text-align: center;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

/* Compact 1-Click Score Share Section */
.share-section.compact {
    width: 100%;
    background: rgba(25, 12, 12, 0.7);
    border: 1px solid rgba(230, 180, 34, 0.3);
    border-radius: 8px;
    padding: 8px 10px;
}

.share-title {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #f4d068;
    margin-bottom: 6px;
    text-align: center;
}

.share-buttons-compact {
    display: flex;
    gap: 8px;
    width: 100%;
}

.btn-share-sm {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 6px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #fff;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-share-sm:hover, .btn-share-sm:active {
    transform: translateY(-1px);
    filter: brightness(1.1);
}

.whatsapp-btn {
    background: linear-gradient(180deg, #25D366 0%, #128C7E 100%);
    box-shadow: 0 2px 10px rgba(37, 211, 102, 0.3);
}

.facebook-btn {
    background: linear-gradient(180deg, #1877F2 0%, #0d54b8 100%);
    box-shadow: 0 2px 10px rgba(24, 119, 242, 0.3);
}

.native-btn {
    background: linear-gradient(180deg, #443c3c 0%, #292424 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ========================================== */
/* MODALS (LEADERBOARD, ACCOUNT, SUPPORT)     */
/* ========================================== */
.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.88);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 60;
    padding: 14px;
    animation: fadeIn 0.25s ease-out forwards;
    backdrop-filter: blur(8px);
}

.modal-box {
    background: radial-gradient(circle at top, #1f1111 0%, #0d0707 100%);
    border: 2px solid #e6b422;
    border-radius: 14px;
    box-shadow: 0 12px 50px rgba(0, 0, 0, 0.95), 0 0 35px rgba(230, 180, 34, 0.3);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(230, 180, 34, 0.3);
    background: rgba(30, 15, 15, 0.6);
}

.modal-title {
    font-family: 'Cinzel', serif;
    font-size: 20px;
    font-weight: 900;
    color: #f4d068;
    letter-spacing: 1.5px;
}

.modal-subtitle {
    font-size: 11px;
    letter-spacing: 1.5px;
    color: #c94b4b;
    font-weight: 700;
}

.btn-close-modal {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(244, 208, 104, 0.4);
    color: #f4d068;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-close-modal:hover {
    background: rgba(220, 40, 40, 0.8);
    color: #fff;
    transform: scale(1.1);
}

/* Live Online Status Bar in Leaderboard */
.live-status-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(10, 25, 15, 0.75);
    border-bottom: 1px solid rgba(0, 230, 118, 0.3);
    padding: 6px 16px;
    font-size: 11px;
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00e676;
    box-shadow: 0 0 8px #00e676;
    flex-shrink: 0;
}

.live-dot.pulse {
    animation: livePulse 1.8s infinite;
}

@keyframes livePulse {
    0% { transform: scale(0.9); opacity: 0.7; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.7; }
}

.live-status-text {
    flex: 1;
    color: #a0f0c0;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.online-count-badge {
    background: rgba(0, 230, 118, 0.2);
    border: 1px solid rgba(0, 230, 118, 0.5);
    color: #00e676;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 10px;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

/* Verified Badge in Account */
.verified-badge-row {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(26, 115, 232, 0.2);
    border: 1px solid rgba(66, 133, 244, 0.6);
    border-radius: 6px;
    padding: 4px 8px;
    margin-top: 6px;
    font-size: 11px;
    font-weight: 800;
    color: #8ab4f8;
    width: fit-content;
}

.verified-check {
    background: #1a73e8;
    color: #fff;
    border-radius: 50%;
    width: 14px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 900;
}

.warrior-tag-verified {
    font-size: 9px;
    font-weight: 800;
    background: #1a73e8;
    color: #fff;
    padding: 1px 4px;
    border-radius: 3px;
    margin-left: 4px;
    vertical-align: middle;
}

/* Pinned User Rank Banner in Leaderboard */
.my-rank-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(90deg, #3d1b1b 0%, #201010 100%);
    border-bottom: 2px solid #e6b422;
    padding: 10px 18px;
}

.my-rank-tag {
    font-size: 10px;
    letter-spacing: 1.5px;
    color: #e6b422;
    font-weight: 700;
}

.my-rank-stats {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 2px;
}

.my-rank-badge {
    font-family: 'Cinzel', serif;
    font-size: 22px;
    font-weight: 900;
    color: #ffe680;
    text-shadow: 0 0 10px rgba(255, 230, 128, 0.6);
}

.my-rank-details {
    display: flex;
    flex-direction: column;
}

.my-rank-name {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.my-rank-tier {
    font-size: 11px;
    color: #ff5555;
    font-weight: 700;
}

.my-rank-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.my-rank-score-label {
    font-size: 10px;
    color: #9e8e78;
    font-weight: 700;
}

.my-rank-score-val {
    font-family: 'Cinzel', serif;
    font-size: 24px;
    font-weight: 900;
    color: #ff3333;
    line-height: 1;
}

.my-rank-sync {
    font-size: 10px;
    color: #00e676;
    margin-top: 2px;
}

/* Leaderboard Filter Tabs */
.leaderboard-tabs {
    display: flex;
    background: rgba(20, 10, 10, 0.6);
    border-bottom: 1px solid rgba(230, 180, 34, 0.2);
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: #9e8e78;
    font-family: 'Cinzel', serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn.active {
    color: #f4d068;
    border-bottom-color: #f4d068;
    background: rgba(244, 208, 104, 0.08);
}

/* Leaderboard Table */
.leaderboard-list-wrap {
    flex: 1;
    overflow-y: auto;
    padding: 6px 12px;
    max-height: 340px;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.leaderboard-table th {
    font-size: 10px;
    letter-spacing: 1.5px;
    color: #9e8e78;
    text-align: left;
    padding: 8px 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.leaderboard-table td {
    padding: 9px 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

.rank-cell {
    font-family: 'Cinzel', serif;
    font-size: 15px;
    font-weight: 900;
    color: #e6b422;
}

.rank-1 { color: #ffd700; font-size: 18px; text-shadow: 0 0 10px rgba(255, 215, 0, 0.8); }
.rank-2 { color: #e2e8f0; font-size: 16px; text-shadow: 0 0 6px rgba(226, 232, 240, 0.6); }
.rank-3 { color: #f59e0b; font-size: 16px; text-shadow: 0 0 6px rgba(245, 158, 11, 0.6); }

.rank-badge-gold {
    color: #ffd700;
    font-weight: 900;
    letter-spacing: 0.5px;
}
.rank-badge-silver {
    color: #e2e8f0;
    font-weight: 800;
}
.rank-badge-bronze {
    color: #f59e0b;
    font-weight: 800;
}

/* Unique Champion Rank 1 Row Styling */
.rank-row-champion {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.28) 0%, rgba(180, 83, 9, 0.35) 50%, rgba(245, 158, 11, 0.18) 100%) !important;
    border-top: 1.5px solid rgba(251, 191, 36, 0.75) !important;
    border-bottom: 1.5px solid rgba(251, 191, 36, 0.75) !important;
    box-shadow: inset 0 0 14px rgba(245, 158, 11, 0.25);
}
.rank-row-champion .warrior-name-txt {
    color: #fffbeb !important;
    font-weight: 900 !important;
    text-shadow: 0 0 8px rgba(251, 191, 36, 0.7) !important;
}
.rank-row-silver {
    background: linear-gradient(90deg, rgba(226, 232, 240, 0.14) 0%, rgba(148, 163, 184, 0.2) 100%) !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.4) !important;
}
.rank-row-bronze {
    background: linear-gradient(90deg, rgba(217, 119, 6, 0.14) 0%, rgba(146, 64, 14, 0.2) 100%) !important;
    border-bottom: 1px solid rgba(217, 119, 6, 0.4) !important;
}

.warrior-tag-champion {
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #1a0800;
    padding: 1px 6px;
    border-radius: 4px;
    margin-left: 4px;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
    display: inline-block;
    vertical-align: middle;
}

.leaderboard-avatar-img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid rgba(245, 158, 11, 0.6);
    display: inline-block;
    vertical-align: middle;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.6);
}
.leaderboard-avatar-img.gold-crown-border {
    border: 2px solid #fbbf24;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.85);
}

.user-avatar-img,
.profile-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}
.profile-avatar-large-img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fbbf24;
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.6);
    display: block;
}

.warrior-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.warrior-icon {
    font-size: 16px;
}

.warrior-name {
    font-weight: 700;
    color: #f5f0e6;
}

.warrior-tag-you {
    font-size: 9px;
    font-weight: 800;
    background: #ff2222;
    color: #fff;
    padding: 1px 5px;
    border-radius: 4px;
    margin-left: 4px;
}

.tier-cell {
    font-size: 11px;
    font-weight: 600;
    color: #bfa787;
}

.score-cell {
    font-family: 'Cinzel', serif;
    font-size: 15px;
    font-weight: 900;
    color: #ff4444;
    text-align: right;
    white-space: nowrap;
}

.score-mode-tag {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 8px;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 4px;
    margin-right: 5px;
    display: inline-block;
    vertical-align: middle;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    line-height: 1;
}
.score-mode-tag.mode-hard {
    background: rgba(239, 68, 68, 0.25);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.6);
}
.score-mode-tag.mode-medium {
    background: rgba(245, 158, 11, 0.25);
    color: #fde68a;
    border: 1px solid rgba(245, 158, 11, 0.6);
}
.score-mode-tag.mode-easy {
    background: rgba(16, 185, 129, 0.25);
    color: #a7f3d0;
    border: 1px solid rgba(16, 185, 129, 0.6);
}

.score-val-txt {
    vertical-align: middle;
}

/* User's highlighted row */
.my-rank-row {
    background: rgba(230, 180, 34, 0.15) !important;
    border: 1px solid rgba(230, 180, 34, 0.5) !important;
}

.my-rank-row td {
    border-bottom: 1px solid rgba(230, 180, 34, 0.4);
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 18px;
    border-top: 1px solid rgba(230, 180, 34, 0.3);
    background: rgba(20, 10, 10, 0.6);
}

/* ========================================== */
/* ACCOUNT / LOGIN MODAL STYLES               */
/* ========================================== */
.cloud-safety-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(30, 50, 20, 0.4);
    border: 1px solid rgba(0, 230, 118, 0.4);
    border-radius: 8px;
    padding: 10px 14px;
    margin: 12px 18px 6px;
}

.cloud-safety-icon {
    font-size: 26px;
}

.cloud-safety-text strong {
    font-size: 11px;
    color: #00e676;
    letter-spacing: 1px;
}

.cloud-safety-text p {
    font-size: 12px;
    color: #d0f0c0;
    line-height: 1.3;
}

.active-profile-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(35, 18, 18, 0.7);
    border: 1px solid rgba(230, 180, 34, 0.35);
    border-radius: 10px;
    padding: 12px 16px;
    margin: 10px 18px;
}

.profile-avatar-large {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #501616;
    border: 2px solid #f4d068;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 0 15px rgba(230, 180, 34, 0.3);
}

.profile-info-block {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.profile-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-name-large {
    font-family: 'Cinzel', serif;
    font-size: 17px;
    font-weight: 900;
    color: #fff;
}

.badge-type-guest, .badge-type-google, .badge-type-playgames {
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 10px;
}

.badge-type-guest { background: #555; color: #eee; }
.badge-type-google { background: #1a73e8; color: #fff; }
.badge-type-playgames { background: #00875A; color: #fff; }

.profile-email-text {
    font-size: 12px;
    color: #bfa787;
    margin: 2px 0 4px;
}

.acc-record-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #ccc;
}

.acc-cloud-badge {
    font-size: 11px;
    color: #00e676;
    font-weight: 700;
}

/* Login Providers List */
.login-providers-section {
    padding: 8px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.section-heading {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #9e8e78;
    text-align: left;
    margin-bottom: 2px;
}

.provider-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.provider-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.1);
}

.google-btn {
    background: #ffffff;
    color: #3c4043;
    border-color: #dadce0;
}

.google-btn strong {
    color: #1f1f1f;
    font-size: 14px;
}

.google-btn span {
    font-size: 11px;
    color: #5f6368;
}

.playgames-btn {
    background: #112d1b;
    border-color: #00D26A;
    color: #fff;
}

.playgames-btn strong {
    color: #00D26A;
    font-size: 14px;
}

.playgames-btn span {
    font-size: 11px;
    color: #a0d8b5;
}

.guest-btn {
    background: rgba(30, 20, 20, 0.8);
    border-color: rgba(230, 180, 34, 0.4);
    color: #fff;
}

.guest-btn strong {
    color: #f4d068;
    font-size: 14px;
}

.guest-btn span {
    font-size: 11px;
    color: #9e8e78;
}

.provider-emoji {
    font-size: 20px;
}

.provider-btn-text {
    display: flex;
    flex-direction: column;
}

/* Nickname editor */
.name-edit-section {
    padding: 8px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.name-input-group {
    display: flex;
    gap: 8px;
}

.name-input-group input {
    flex: 1;
    background: rgba(10, 5, 5, 0.7);
    border: 1px solid rgba(230, 180, 34, 0.5);
    border-radius: 6px;
    padding: 8px 12px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    outline: none;
}

.name-input-group input:focus {
    border-color: #f4d068;
    box-shadow: 0 0 10px rgba(244, 208, 104, 0.4);
}

.btn-input-save {
    padding: 8px 18px !important;
    font-size: 13px !important;
}

.cloud-actions-row {
    display: flex;
    gap: 8px;
    padding: 12px 18px;
    border-top: 1px solid rgba(230, 180, 34, 0.3);
    background: rgba(20, 10, 10, 0.6);
}

.cloud-actions-row button {
    flex: 1;
}

/* ========================================== */
/* SUPPORT / CONTACT MODAL STYLES             */
/* ========================================== */
.support-content {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
    text-align: center;
}

.support-email-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(40, 20, 20, 0.7);
    border: 1px solid rgba(244, 208, 104, 0.5);
    border-radius: 10px;
    padding: 12px 18px;
    width: 100%;
}

.email-card-icon {
    font-size: 28px;
}

.email-card-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.email-card-label {
    font-size: 11px;
    color: #9e8e78;
    font-weight: 700;
    letter-spacing: 1px;
}

.email-card-address {
    font-family: 'Rajdhani', monospace;
    font-size: 17px;
    font-weight: 700;
    color: #f4d068;
    user-select: text;
    -webkit-user-select: text;
}

.support-desc {
    font-size: 13px;
    color: #c9beaa;
    line-height: 1.4;
}

.support-btn-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

/* ========================================== */
/* 300 VICTORY CUTSCENE                       */
/* ========================================== */
.ending-container {
    max-width: 650px;
    width: 95%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.victory-title {
    color: #f4d068;
    text-shadow: 0 0 25px rgba(244, 208, 104, 0.8);
    font-size: 36px;
}

.victory-sub {
    font-size: 13px;
    letter-spacing: 3px;
    color: #e64040;
    margin-bottom: 16px;
    font-weight: 700;
}

.ending-cutscene-box {
    width: 100%;
    max-height: 300px;
    overflow: hidden;
    border-radius: 12px;
    border: 2px solid #f4d068;
    box-shadow: 0 0 30px rgba(244, 208, 104, 0.4);
    margin-bottom: 18px;
}

.ending-army-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Progress bar */
.progress-bar-container {
    width: 240px;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin: 15px 0 10px;
    border: 1px solid rgba(230, 180, 34, 0.4);
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #d42222, #f4d068);
    transition: width 0.2s ease-out;
}

#loading-status {
    font-size: 12px;
    letter-spacing: 1px;
    color: #9e8e78;
}

/* Toast Notification */
.toast {
    position: absolute;
    bottom: 30px;
    background: rgba(20, 15, 15, 0.95);
    border: 1px solid #f4d068;
    color: #f4d068;
    padding: 10px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    z-index: 80;
    animation: toastPop 0.3s ease-out forwards;
}

@keyframes toastPop {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ========================================== */
/* RESPONSIVE DESIGN FOR SMARTPHONES          */
/* ========================================== */
@media (max-width: 600px) {
    .greek-title { font-size: 30px; letter-spacing: 2px; }
    .title-header-bar { max-width: 100%; }
    .result-card { padding: 14px 12px; }
    .result-header { font-size: 22px; }
    .score-val { font-size: 28px; }
    .btn-primary { font-size: 15px; padding: 10px 18px; }
    .btn-gold { font-size: 13px; }
    .btn-share-sm { font-size: 11px; padding: 7px 4px; }
    .touch-hint { font-size: 13px; padding: 5px 10px; }
    .hud-top { gap: 8px; padding: 4px 12px; }
    #hud-score { font-size: 22px; }
    .modal-box { max-height: 94vh; }
}

@media (max-height: 500px) and (orientation: landscape) {
    .difficulty-mode-container { margin-bottom: 5px; max-width: 290px; }
    .difficulty-mode-label { font-size: 9px; margin-bottom: 2px; }
    .btn-diff-mode { padding: 3px 2px; }
    .btn-diff-mode .diff-name { font-size: 11px; }
    .btn-diff-mode .diff-icon { font-size: 11px; }
    .title-shield-wrap { width: 70px; height: 70px; }
    .greek-title { font-size: 26px; margin: 2px 0; }
    .spartan-motto { display: none; }
    .record-badge { padding: 4px 16px; margin-bottom: 10px; }
    .record-number { font-size: 24px; }
    .button-group { gap: 6px; }
    .btn-primary { padding: 8px 16px; font-size: 14px; }
    .btn-secondary { padding: 6px 12px; font-size: 12px; }
    .result-card { max-width: 500px; padding: 10px 14px; }
    .result-header { font-size: 20px; margin: 2px 0 6px; }
    .score-val { font-size: 24px; }
    .result-scores { margin-bottom: 6px; }
    .result-rank-box { padding: 4px 10px; margin-bottom: 6px; }
    .tribute-text { display: none; }
    .result-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 6px; width: 100%; }
    .result-actions button { padding: 7px 6px; font-size: 11px; }
    .share-section.compact { padding: 4px 8px; }
}


/* ========================================================== */
/* MODERN SPLIT-SCREEN DASHBOARD & SIDEBAR (REDESIGN 2026)    */
/* ========================================================== */

#screen-title {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 10px 16px;
    box-sizing: border-box;
    background: linear-gradient(180deg, rgba(14, 7, 7, 0.45) 0%, rgba(20, 10, 10, 0.25) 35%, rgba(10, 4, 4, 0.70) 100%),
                url('assets/sprites/menu_bg.jpg') center center / cover no-repeat !important;
    overflow: hidden;
    position: relative;
}

/* Floating Top-Right Actions (World Chat + Main Menu Drawer) */
.top-floating-actions {
    position: absolute;
    top: 12px;
    right: 16px;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-floating-chat {
    display: flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, rgba(16, 28, 48, 0.94) 0%, rgba(8, 14, 26, 0.98) 100%);
    border: 1.5px solid #60a5fa;
    border-radius: 24px;
    padding: 7px 15px;
    color: #93c5fd;
    font-family: 'Cinzel', serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.8px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.75), 0 0 14px rgba(96, 165, 250, 0.35);
    cursor: pointer;
    transition: all 0.22s ease;
}

.btn-floating-chat:hover, .btn-floating-chat:active {
    transform: scale(1.05);
    background: linear-gradient(135deg, rgba(28, 48, 80, 0.98) 0%, rgba(12, 22, 40, 1) 100%);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.9), 0 0 20px rgba(96, 165, 250, 0.55);
}

.btn-floating-daily {
    display: flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, rgba(40, 24, 8, 0.94) 0%, rgba(20, 10, 4, 0.98) 100%);
    border: 1.5px solid #f59e0b;
    border-radius: 24px;
    padding: 7px 15px;
    color: #fbbf24;
    font-family: 'Cinzel', serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.8px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.75), 0 0 14px rgba(245, 158, 11, 0.35);
    cursor: pointer;
    transition: all 0.22s ease;
    position: relative;
}

.btn-floating-daily:hover, .btn-floating-daily:active {
    transform: scale(1.05);
    background: linear-gradient(135deg, rgba(60, 36, 12, 0.98) 0%, rgba(30, 15, 6, 1) 100%);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.9), 0 0 20px rgba(245, 158, 11, 0.6);
}

.btn-floating-daily.has-unclaimed::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 9px;
    height: 9px;
    background: #ef4444;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 8px #ef4444;
    animation: dailyPulse 1.2s infinite;
}

@keyframes dailyPulse {
    0% { transform: scale(0.9); box-shadow: 0 0 4px #ef4444; }
    50% { transform: scale(1.25); box-shadow: 0 0 10px #f87171; }
    100% { transform: scale(0.9); box-shadow: 0 0 4px #ef4444; }
}

.daily-icon-calendar {
    font-size: 15px;
    line-height: 1;
}

.daily-icon-label {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.chat-icon-bubble {
    font-size: 15px;
    line-height: 1;
}

.btn-floating-menu {
    display: flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, rgba(38, 20, 14, 0.94) 0%, rgba(18, 9, 7, 0.98) 100%);
    border: 1.5px solid #ffd700;
    border-radius: 24px;
    padding: 7px 15px;
    color: #ffd700;
    font-family: 'Cinzel', serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.8px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.75), 0 0 14px rgba(255, 215, 0, 0.4);
    cursor: pointer;
    transition: all 0.22s ease;
}

.btn-floating-menu:hover, .btn-floating-menu:active {
    transform: scale(1.05);
    background: linear-gradient(135deg, rgba(58, 30, 20, 0.98) 0%, rgba(28, 14, 10, 1) 100%);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.9), 0 0 20px rgba(255, 215, 0, 0.6);
}

.menu-icon-bars {
    font-size: 15px;
    line-height: 1;
}

@media (max-width: 860px) or (max-height: 480px) {
    .top-floating-actions {
        top: 8px;
        right: 10px;
        gap: 6px;
    }
    .btn-floating-daily, .btn-floating-chat, .btn-floating-newyear, .btn-floating-menu {
        padding: 5px 10px !important;
        font-size: 10.5px !important;
        border-radius: 20px !important;
    }
    .btn-floating-coins {
        padding: 4px 8px !important;
        font-size: 10.5px !important;
        border-radius: 20px !important;
    }
}

/* Dimmed Backdrop for Closing on Empty Space Click */
.sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 40;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.sidebar-backdrop.hidden {
    display: none;
    opacity: 0;
}

.dashboard-split-layout {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    position: relative;
    box-sizing: border-box;
}

/* ------------------------------------------ */
/* CENTER / HERO ZONE (Centered & Cinematic)  */
/* ------------------------------------------ */
.dashboard-hero-zone {
    width: 100%;
    max-width: 580px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8px 12px;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
}

.spartan-hero-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.hero-brand-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #f4d068;
    box-shadow: 0 0 16px rgba(244, 208, 104, 0.45);
}

.hero-brand-text {
    text-align: left;
}

.hero-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(22px, 3.8vw, 34px);
    font-weight: 900;
    color: #f4d068;
    margin: 0;
    line-height: 1.1;
    letter-spacing: 2.5px;
    text-shadow: 0 0 20px rgba(244, 208, 104, 0.6);
}

.hero-subtitle {
    font-size: 9.5px;
    letter-spacing: 2px;
    color: #ff5555;
    margin: 2px 0 0 0;
    font-weight: 700;
}

.hero-record-card {
    background: linear-gradient(135deg, rgba(35, 18, 18, 0.85), rgba(15, 8, 8, 0.92));
    border: 1px solid rgba(244, 208, 104, 0.35);
    border-radius: 10px;
    padding: 6px 22px;
    margin-bottom: 18px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.record-card-label {
    display: block;
    font-size: 9.5px;
    letter-spacing: 1.8px;
    color: #bfa787;
    font-weight: 700;
}

.record-card-value {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
}

.record-num {
    font-family: 'Cinzel', serif;
    font-size: 26px;
    font-weight: 900;
    color: #ffd700;
    text-shadow: 0 0 14px rgba(255, 215, 0, 0.65);
}

.record-unit {
    font-size: 10px;
    font-weight: 800;
    color: #e64040;
    letter-spacing: 1px;
}

/* ------------------------------------------ */
/* DIFFICULTY MODES (EASY, MEDIUM, HARD)      */
/* ------------------------------------------ */
.difficulty-mode-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
    width: 100%;
    max-width: 320px;
}

.difficulty-mode-label {
    font-family: 'Cinzel', serif;
    font-size: 10.5px;
    letter-spacing: 2px;
    color: #e6b422;
    margin-bottom: 4px;
    text-transform: uppercase;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.difficulty-mode-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    width: 100%;
}

.btn-diff-mode {
    background: rgba(22, 12, 12, 0.88);
    border: 1.5px solid rgba(230, 180, 34, 0.35);
    border-radius: 8px;
    color: #ccc;
    padding: 5px 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.2, 0.9, 0.3, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.btn-diff-mode .diff-icon {
    font-size: 12px;
}

.btn-diff-mode .diff-name {
    font-family: 'Rajdhani', sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
}

.btn-diff-mode:hover {
    border-color: #f4d068;
    background: rgba(244, 208, 104, 0.15);
    transform: translateY(-1px);
}

.btn-diff-mode.active {
    border-color: #ffe699;
    background: linear-gradient(135deg, rgba(210, 155, 30, 0.95), rgba(160, 25, 25, 0.95));
    color: #fff;
    box-shadow: 0 0 12px rgba(244, 208, 104, 0.6), inset 0 1px 4px rgba(255, 255, 255, 0.5);
    transform: scale(1.02);
}

.btn-diff-mode.active .diff-name {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

/* Prominent Glowing Hero Enter Battle Button */
.hero-action-box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.battle-glow-aura {
    position: absolute;
    width: 108%;
    height: 118%;
    border-radius: 40px;
    background: radial-gradient(ellipse at center, rgba(255, 60, 0, 0.45) 0%, rgba(244, 208, 104, 0.25) 45%, transparent 70%);
    animation: battleAuraPulse 2.2s infinite ease-in-out;
    pointer-events: none;
    z-index: 1;
}

@keyframes battleAuraPulse {
    0%, 100% {
        transform: scale(0.96);
        opacity: 0.55;
    }
    50% {
        transform: scale(1.08);
        opacity: 1;
    }
}

.btn-hero-battle {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 13px 40px;
    font-family: 'Cinzel', serif;
    font-size: clamp(16px, 2.2vw, 21px);
    font-weight: 900;
    letter-spacing: 2.5px;
    color: #ffffff;
    background: linear-gradient(180deg, #d42222 0%, #8a0c0c 60%, #4a0404 100%);
    border: 2px solid #ffd700;
    border-radius: 36px;
    box-shadow: 0 0 24px rgba(255, 50, 0, 0.65), inset 0 2px 4px rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-hero-battle:hover {
    transform: scale(1.04);
    border-color: #fff;
    box-shadow: 0 0 35px rgba(255, 60, 0, 0.85), inset 0 2px 6px rgba(255, 255, 255, 0.6);
}

.btn-hero-battle:active {
    transform: scale(0.98);
}

.battle-icon {
    font-size: 20px;
}

.battle-text {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-controls-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10.5px;
    color: #a89882;
    font-weight: 600;
}

.hint-pill {
    background: rgba(0, 0, 0, 0.45);
    padding: 3px 8px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hint-sep {
    color: #776655;
}

/* ------------------------------------------ */
/* SLIDE-OUT DRAWER PANEL (Slides in from right) */
/* ------------------------------------------ */
.dashboard-sidebar-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 380px;
    max-width: 90vw;
    height: 100%;
    z-index: 50;
    display: flex;
    flex-direction: column;
    background: rgba(16, 9, 8, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-left: 2px solid rgba(244, 208, 104, 0.45);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.85);
    transform: translateX(105%); /* Hidden off-screen to the right by default */
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    box-sizing: border-box;
}

.dashboard-sidebar-panel.open {
    transform: translateX(0); /* Slide in from the right */
}

/* Drawer Header */
.sidebar-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: #140b08;
    border-bottom: 1.5px solid rgba(229, 169, 60, 0.4);
    flex-shrink: 0;
}

.sidebar-drawer-title-box {
    display: flex;
    align-items: center;
    gap: 8px;
}

.drawer-title-icon {
    font-size: 16px;
}

.drawer-title-text {
    font-family: 'Cinzel', serif;
    font-size: 13.5px;
    font-weight: 900;
    color: #ffd700;
    letter-spacing: 1px;
}

.btn-sidebar-close {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e2e8f0;
    font-size: 15px;
    font-weight: 800;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-sidebar-close:hover {
    background: #dc2626;
    border-color: #ef4444;
    color: #fff;
    transform: rotate(90deg);
}

.sidebar-tab-nav,
.sidebar-tab-nav-bottom {
    display: flex;
    border-top: 1px solid rgba(244, 208, 104, 0.3);
    background: rgba(10, 5, 5, 0.94);
    flex-shrink: 0;
    padding: 5px 6px;
    gap: 6px;
    z-index: 10;
}

.sidebar-tab-pill,
.sidebar-bottom-pill {
    flex: 1;
    padding: 10px 8px;
    font-family: 'Cinzel', serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #9e8e78;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.sidebar-tab-pill:hover,
.sidebar-bottom-pill:hover {
    color: #f4d068;
    background: rgba(244, 208, 104, 0.12);
    border-color: rgba(244, 208, 104, 0.4);
}

.sidebar-tab-pill.active,
.sidebar-bottom-pill.active {
    color: #111;
    background: linear-gradient(135deg, #c59b27, #f4d068);
    border-color: #ffe699;
    box-shadow: 0 0 12px rgba(244, 208, 104, 0.5);
    font-weight: 900;
}

.sidebar-tab-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 10px;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: #f4d068 rgba(0, 0, 0, 0.3);
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

#tab-content-gamemenu {
    overflow-y: auto !important;
    overflow-x: hidden;
    gap: 8px;
}

#tab-content-gamemenu::-webkit-scrollbar {
    width: 4px;
}

#tab-content-gamemenu::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

#tab-content-gamemenu::-webkit-scrollbar-thumb {
    background: #f4d068;
    border-radius: 3px;
}

.sidebar-tab-content.hidden {
    display: none !important;
}

/* ========================================================== */
/* GAME MENU DIRECT FPS SYSTEM STYLES                         */
/* ========================================================== */
.menu-fps-card {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(244, 208, 104, 0.28);
    border-radius: 8px;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    flex-shrink: 0;
}

.menu-fps-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
}

.menu-fps-title {
    font-family: 'Cinzel', serif;
    font-size: 10px;
    font-weight: 800;
    color: #f4d068;
    letter-spacing: 0.8px;
}

.menu-fps-counter-toggle {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #aaa;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 10.5px;
    padding: 3px 8px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.menu-fps-counter-toggle.on {
    background: rgba(76, 217, 100, 0.2);
    border-color: #4cd964;
    color: #4cd964;
    box-shadow: 0 0 6px rgba(76, 217, 100, 0.35);
}

.menu-fps-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.btn-menu-fps {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ddd;
    padding: 5px 3px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.2s ease;
}

.btn-menu-fps strong {
    font-family: 'Rajdhani', sans-serif;
    font-size: 12px;
    font-weight: 800;
    color: #fff;
}

.btn-menu-fps small {
    font-size: 8px;
    color: #aaa;
}

.btn-menu-fps:hover {
    border-color: rgba(244, 208, 104, 0.4);
    background: rgba(244, 208, 104, 0.12);
}

.btn-menu-fps.active {
    background: linear-gradient(135deg, #c59b27, #f4d068);
    border-color: #ffe699;
    box-shadow: 0 0 8px rgba(244, 208, 104, 0.45);
}

.btn-menu-fps.active strong {
    color: #111;
}

.btn-menu-fps.active small {
    color: #222;
    font-weight: 700;
}

/* ------------------------------------------ */
/* EMBEDDED LEADERBOARD CONTAINER             */
/* ------------------------------------------ */
.sidebar-lb-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    padding: 0 2px;
    flex-shrink: 0;
}

.lb-subfilters {
    display: flex;
    gap: 4px;
}

.subfilter-btn {
    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: 0.8px;
    padding: 3px 8px;
    border-radius: 10px;
    border: 1px solid rgba(244, 208, 104, 0.3);
    background: transparent;
    color: #a89882;
    cursor: pointer;
    transition: all 0.15s ease;
}

.subfilter-btn.active {
    background: #f4d068;
    color: #1a0808;
    border-color: #f4d068;
}

.lb-live-status {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 8.5px;
    font-weight: 800;
    color: #4ade80;
}

.status-dot {
    font-size: 8px;
}

.sidebar-pinned-rank {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(90deg, rgba(230, 180, 34, 0.18), rgba(212, 34, 34, 0.18));
    border: 1px solid rgba(244, 208, 104, 0.45);
    border-radius: 8px;
    padding: 4px 8px;
    margin-bottom: 6px;
    flex-shrink: 0;
}

.pinned-rank-num {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 32px;
}

.pinned-rank-num .label {
    font-size: 8px;
    font-weight: 800;
    color: #ffd700;
    letter-spacing: 0.5px;
}

.pinned-rank-num .val {
    font-family: 'Cinzel', serif;
    font-size: 14px;
    font-weight: 900;
    color: #ffd700;
    line-height: 1;
}

.pinned-warrior-info {
    flex: 1;
    margin: 0 8px;
}

.pinned-warrior-info .name {
    font-size: 11.5px;
    font-weight: 700;
    color: #ffffff;
    display: block;
    line-height: 1.2;
}

.pinned-warrior-info .tier {
    font-size: 9px;
    color: #bfa787;
    display: block;
}

.pinned-score {
    text-align: right;
}

.pinned-score .score {
    font-family: 'Cinzel', serif;
    font-size: 15px;
    font-weight: 900;
    color: #ff4444;
    display: block;
    line-height: 1;
}

.pinned-score .unit {
    font-size: 7.5px;
    font-weight: 800;
    color: #9e8e78;
    letter-spacing: 0.5px;
}

/* Scrollable Container - engineered so 10+ rows are cleanly visible without scrolling required for first 10 */
.sidebar-lb-scroll-container {
    flex: 1;
    min-height: 240px;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.05);
    scrollbar-width: thin;
    scrollbar-color: #f4d068 rgba(0, 0, 0, 0.3);
}

.sidebar-lb-scroll-container::-webkit-scrollbar {
    width: 4px;
}

.sidebar-lb-scroll-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

.sidebar-lb-scroll-container::-webkit-scrollbar-thumb {
    background: #f4d068;
    border-radius: 3px;
}

.sidebar-leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
    table-layout: fixed;
}

.sidebar-leaderboard-table th {
    position: sticky;
    top: 0;
    background: rgba(22, 12, 12, 0.96);
    z-index: 3;
    font-size: 8.5px;
    letter-spacing: 1px;
    color: #8e806e;
    padding: 4px 6px;
    border-bottom: 1px solid rgba(244, 208, 104, 0.2);
    text-align: left;
}

.sidebar-leaderboard-table td {
    padding: 3px 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    vertical-align: middle;
    height: 25px;
    box-sizing: border-box;
}

.warrior-cell {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.warrior-name-txt {
    font-weight: 600;
    color: #e8e0d4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
}

.sidebar-lb-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 5px;
    flex-shrink: 0;
    font-size: 8.5px;
    color: #7a6e60;
}

.lb-footer-status {
    letter-spacing: 0.5px;
}

.btn-mini-refresh {
    background: transparent;
    border: none;
    color: #f4d068;
    font-size: 11px;
    cursor: pointer;
    padding: 2px 4px;
}

/* ------------------------------------------ */
/* TAB 2: GAME MENU                           */
/* ------------------------------------------ */
.menu-profile-card {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(35, 20, 20, 0.6);
    border: 1px solid rgba(244, 208, 104, 0.35);
    border-radius: 8px;
    padding: 7px 9px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.menu-profile-card:hover {
    border-color: #f4d068;
    background: rgba(45, 25, 25, 0.7);
}

.menu-avatar {
    font-size: 18px;
}

.menu-profile-meta {
    flex: 1;
    overflow: hidden;
}

.menu-profile-name {
    font-size: 11.5px;
    font-weight: 700;
    color: #fff;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.menu-cloud-icon {
    font-size: 13px;
}

.menu-quick-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 8px;
}

.menu-grid-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 4px;
    background: linear-gradient(180deg, rgba(40, 22, 22, 0.8), rgba(20, 10, 10, 0.9));
    border: 1px solid rgba(244, 208, 104, 0.25);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    color: #ffffff;
    gap: 2px;
}

.menu-grid-btn:hover {
    border-color: #f4d068;
    background: rgba(50, 25, 25, 0.9);
    transform: translateY(-1px);
}

.profile-span-btn {
    grid-column: span 2;
    padding: 9px 8px;
    background: linear-gradient(180deg, rgba(50, 25, 20, 0.85), rgba(25, 12, 12, 0.95));
    border-color: rgba(244, 208, 104, 0.4);
}

.btn-grid-icon {
    font-size: 16px;
}

.btn-grid-label {
    font-family: 'Cinzel', serif;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: #e8e0d4;
}

.btn-grid-state {
    font-size: 8px;
    font-weight: 700;
    color: #f4d068;
    letter-spacing: 0.5px;
}

.menu-playgames-banner {
    margin-bottom: 8px;
}

.btn-playgames-action {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(90deg, #107c41, #0b5c30);
    border: 1px solid #34d399;
    border-radius: 8px;
    padding: 7px 10px;
    color: #ffffff;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s ease;
}

.btn-playgames-action:hover {
    background: linear-gradient(90deg, #159c52, #0e723c);
}

.gplay-icon {
    font-size: 18px;
}

.gplay-txt strong {
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.8px;
    display: block;
}

.gplay-txt small {
    font-size: 8.5px;
    color: #d1fae5;
    display: block;
}

.menu-footer-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: center;
    padding-top: 4px;
}

.btn-menu-support {
    width: 100%;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 6px;
    color: #bfa787;
    font-size: 9.5px;
    font-weight: 700;
    cursor: pointer;
}

.btn-menu-support:hover {
    border-color: #f4d068;
    color: #f4d068;
}

.menu-version-text {
    font-size: 8px;
    color: #6e6050;
    letter-spacing: 0.5px;
}

/* ------------------------------------------ */
/* ACCOUNT / PROFILE MODAL                    */
/* ------------------------------------------ */
.account-modal-box {
    max-width: 540px;
    max-height: 94vh;
    overflow-y: auto;
}

/* ========================================== */
/* TABLET SCREEN RESPONSIVENESS               */
/* ========================================== */
@media (min-width: 900px) and (min-height: 550px) {
    #screen-title {
        padding: 20px 30px;
    }

    .dashboard-split-layout {
        gap: 28px;
    }

    .dashboard-hero-zone {
        padding: 16px;
    }

    .hero-brand-logo {
        width: 62px;
        height: 62px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 11px;
    }

    .hero-record-card {
        padding: 10px 30px;
        margin-bottom: 24px;
    }

    .record-card-label {
        font-size: 11px;
    }

    .record-num {
        font-size: 34px;
    }

    .btn-hero-battle {
        padding: 16px 52px;
        font-size: 22px;
        border-radius: 40px;
    }

    .dashboard-sidebar-panel {
        max-width: 480px;
        border-radius: 18px;
    }

    .sidebar-tab-pill {
        padding: 12px 10px;
        font-size: 13px;
    }

    .sidebar-lb-scroll-container {
        min-height: 320px;
    }

    .sidebar-leaderboard-table th {
        font-size: 10px;
        padding: 6px 8px;
    }

    .sidebar-leaderboard-table td {
        height: 29px;
        padding: 4px 8px;
        font-size: 12.5px;
    }

    .warrior-name-txt {
        font-size: 12.5px;
    }

    .score-cell {
        font-size: 13.5px;
    }

    .menu-quick-grid {
        gap: 10px;
    }

    .menu-grid-btn {
        padding: 12px 8px;
    }

    .btn-grid-icon {
        font-size: 20px;
    }

    .btn-grid-label {
        font-size: 11px;
    }
}


/* ========================================================== */
/* GAME MENU AUTH & GUEST SUGGESTION STYLES (v2.1)            */
/* ========================================================== */

.guest-login-alert {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(90deg, rgba(234, 179, 8, 0.16), rgba(239, 68, 68, 0.16));
    border: 1px solid rgba(244, 208, 104, 0.45);
    border-radius: 8px;
    padding: 7px 10px;
    margin-bottom: 8px;
}

.guest-login-alert.hidden {
    display: none !important;
}

.guest-login-alert .alert-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.guest-login-alert .alert-text strong {
    font-size: 10.5px;
    color: #f4d068;
    display: block;
    line-height: 1.2;
}

.guest-login-alert .alert-text p {
    font-size: 9px;
    color: #e2d7c5;
    margin: 1px 0 0 0;
    line-height: 1.25;
}

/* User Logged-In Card */
.menu-logged-card {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 40, 24, 0.7);
    border: 1px solid rgba(52, 211, 153, 0.45);
    border-radius: 8px;
    padding: 8px 10px;
    margin-bottom: 8px;
}

.menu-logged-card.hidden {
    display: none !important;
}

.logged-card-avatar {
    font-size: 18px;
    flex-shrink: 0;
}

.logged-card-info {
    flex: 1;
    overflow: hidden;
}

.logged-card-name {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.logged-card-email {
    font-size: 9px;
    color: #a7f3d0;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.logged-card-badge {
    font-size: 8px;
    font-weight: 800;
    background: #059669;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

/* Auth Options Buttons */
.menu-auth-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 8px;
}

.menu-auth-actions.hidden {
    display: none !important;
}

.btn-auth-option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    padding: 7px 10px;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s ease;
    border: 1px solid transparent;
}

.btn-auth-option.google {
    background: linear-gradient(90deg, #b91c1c, #991b1b);
    border-color: #ef4444;
    color: #fff;
}

.btn-auth-option.google:hover {
    background: linear-gradient(90deg, #dc2626, #b91c1c);
}

.btn-auth-option.playgames {
    background: linear-gradient(90deg, #047857, #065f46);
    border-color: #10b981;
    color: #fff;
}

.btn-auth-option.playgames:hover {
    background: linear-gradient(90deg, #059669, #047857);
}

.btn-auth-option.logout {
    background: linear-gradient(90deg, #374151, #1f2937);
    border-color: #6b7280;
    color: #f3f4f6;
}

.btn-auth-option.logout:hover {
    background: linear-gradient(90deg, #4b5563, #374151);
    border-color: #ef4444;
    color: #fca5a5;
}

.btn-auth-option .auth-icon {
    font-size: 17px;
    flex-shrink: 0;
}

.btn-auth-option .auth-text strong {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.8px;
    display: block;
}

.btn-auth-option .auth-text small {
    font-size: 8px;
    opacity: 0.85;
    display: block;
}

.menu-logout-container {
    margin-bottom: 8px;
}

.menu-logout-container.hidden {
    display: none !important;
}

/* ========================================================== */
/* GRAPHICS & PERFORMANCE (60, 90, 120 FPS + LIVE METER)     */
/* ========================================================== */
.graphics-settings-section {
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid rgba(244, 208, 104, 0.18);
}

.settings-fps-card {
    background: rgba(0, 0, 0, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fps-header-row, .fps-toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.fps-text-group {
    display: flex;
    flex-direction: column;
}

.fps-text-group strong {
    font-size: 11px;
    color: #f4d068;
    letter-spacing: 0.8px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
}

.fps-text-group small {
    font-size: 9px;
    color: #aaa;
}

.fps-btn-group {
    display: flex;
    gap: 6px;
}

.btn-fps-select {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ddd;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 11px;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-fps-select:hover {
    background: rgba(244, 208, 104, 0.18);
    color: #fff;
    border-color: rgba(244, 208, 104, 0.5);
}

.btn-fps-select.active {
    background: linear-gradient(135deg, #c59b27, #f4d068);
    color: #0d0808;
    border-color: #ffe699;
    box-shadow: 0 0 10px rgba(244, 208, 104, 0.5);
    font-weight: 800;
}

.btn-fps-switch {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #aaa;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 11px;
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-fps-switch.on {
    background: rgba(76, 217, 100, 0.18);
    border-color: #4cd964;
    color: #4cd964;
    box-shadow: 0 0 8px rgba(76, 217, 100, 0.35);
}

/* Floating Real-Time Live FPS Pill */
.live-fps-pill {
    position: absolute;
    top: 12px;
    left: 16px;
    z-index: 100;
    pointer-events: none;
    background: rgba(14, 10, 10, 0.85);
    border: 1px solid rgba(76, 217, 100, 0.45);
    border-radius: 20px;
    padding: 3px 10px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 12px;
    color: #4cd964;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    transition: opacity 0.2s;
}

.live-fps-pill.hidden {
    display: none !important;
}

.fps-dot {
    font-size: 9px;
    animation: fpsDotPulse 1.8s infinite;
}

@keyframes fpsDotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.fps-unit {
    font-size: 9.5px;
    color: #88c996;
}

/* ==========================================================================
   ADMOB BANNER AD SAFE-AREA POLICY COMPLIANCE
   Guarantees interactive buttons and UI are never overlapped by banner ad
   ========================================================================== */
body.banner-visible #screen-title {
    padding-bottom: 56px !important;
}

body.banner-visible #screen-pause .screen-scroll-wrap {
    padding-bottom: 56px !important;
}

body.banner-visible #screen-result .screen-scroll-wrap {
    padding-bottom: 56px !important;
}

body.banner-visible #screen-ending .screen-scroll-wrap {
    padding-bottom: 56px !important;
}

/* ==========================================================================
   WEEKLY TOURNAMENT RESET & COUNTDOWN TIMER STYLES
   ========================================================================== */

.weekly-reset-timer-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(90deg, rgba(60, 20, 20, 0.8), rgba(90, 25, 25, 0.95), rgba(60, 20, 20, 0.8));
    border: 1px solid rgba(245, 158, 11, 0.45);
    border-radius: 6px;
    padding: 6px 12px;
    margin: 4px 10px 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.timer-flame {
    font-size: 14px;
    animation: flamePulse 1.5s infinite;
}

@keyframes flamePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.timer-title {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: #fbbf24;
    text-transform: uppercase;
}

.weekly-countdown-display {
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
    font-weight: 900;
    color: #ef4444;
    background: rgba(15, 5, 5, 0.7);
    padding: 1px 7px;
    border-radius: 4px;
    border: 1px solid rgba(239, 68, 68, 0.4);
    letter-spacing: 0.5px;
    text-shadow: 0 0 6px rgba(239, 68, 68, 0.7);
}

/* Profile Career Stats Grid */
.profile-career-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 8px 18px 12px;
}

.career-stat-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(25, 12, 12, 0.85);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 8px;
    padding: 8px 12px;
}

.career-stat-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.career-stat-data {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.career-stat-label {
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.6px;
    color: #94a3b8;
    text-transform: uppercase;
}

.career-stat-val {
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    font-weight: 900;
    color: #f59e0b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========================================================== */
/* REAL-TIME LIVE WARRIOR PRESENCE & CHAT SYSTEM              */
/* ========================================================== */
.pp-live-status-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 3px;
}

.pp-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.6px;
    padding: 2px 8px;
    border-radius: 12px;
    text-transform: uppercase;
}

.pp-live-pill.online {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid #10b981;
    color: #34d399;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.35);
    animation: livePulse 2s infinite ease-in-out;
}

.pp-live-pill.offline {
    background: rgba(156, 163, 175, 0.15);
    border: 1px solid #6b7280;
    color: #9ca3af;
}

@keyframes livePulse {
    0%, 100% { box-shadow: 0 0 6px rgba(16, 185, 129, 0.3); }
    50% { box-shadow: 0 0 14px rgba(16, 185, 129, 0.7); }
}

.warrior-tag-live {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: rgba(16, 185, 129, 0.22);
    border: 1px solid #10b981;
    color: #34d399;
    font-size: 8px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 8px;
    margin-left: 4px;
    letter-spacing: 0.5px;
    animation: livePulse 2s infinite ease-in-out;
}

.sidebar-leaderboard-table tbody tr,
.leaderboard-table tbody tr {
    cursor: pointer;
    transition: background 0.18s ease, transform 0.1s ease;
}

.sidebar-leaderboard-table tbody tr:hover,
.leaderboard-table tbody tr:hover {
    background: rgba(245, 158, 11, 0.15) !important;
}

/* Player Profile Modal Actions */
.player-profile-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 10px 18px 14px;
}

.btn-action-chat {
    width: 100%;
    padding: 12px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.8px;
    border-radius: 8px;
    cursor: pointer;
}

.btn-action-challenge {
    width: 100%;
    padding: 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.6px;
    border-radius: 8px;
    cursor: pointer;
}

/* 1-on-1 Chat Modal */
.player-chat-modal-box {
    max-width: 440px;
    width: 92%;
    height: 80vh;
    max-height: 560px;
    display: flex;
    flex-direction: column;
    background: #110707;
    border: 1px solid #f59e0b;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.9);
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: linear-gradient(90deg, #1f0a0a, #300d0d);
    border-bottom: 1px solid rgba(245, 158, 11, 0.3);
}

.chat-header-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-header-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid #f59e0b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    overflow: hidden;
}

.chat-header-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-header-info {
    display: flex;
    flex-direction: column;
}

.chat-header-name {
    font-size: 13px;
    font-weight: 800;
    color: #fef3c7;
    letter-spacing: 0.5px;
}

.chat-header-status {
    font-size: 9.5px;
    font-weight: 700;
    color: #10b981;
}

/* Quick Spartan Battle Taunts */
.chat-quick-taunts-container {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    scrollbar-width: none;
}

.chat-quick-taunts-container::-webkit-scrollbar {
    display: none;
}

.btn-quick-taunt {
    background: rgba(40, 15, 15, 0.85);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fef08a;
    font-size: 10.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 14px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-quick-taunt:active,
.btn-quick-taunt:hover {
    background: #f59e0b;
    color: #110707;
    transform: scale(0.97);
}

/* Messages Stream */
.chat-messages-wrap {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: radial-gradient(circle at center, #180808 0%, #0d0404 100%);
}

.chat-empty-hint {
    text-align: center;
    color: #94a3b8;
    font-size: 11px;
    margin: auto;
    max-width: 220px;
    line-height: 1.5;
}

.chat-bubble {
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.4;
    word-break: break-word;
    position: relative;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.chat-bubble.mine {
    align-self: flex-end;
    background: linear-gradient(135deg, #b45309, #d97706);
    color: #fff;
    border-bottom-right-radius: 2px;
    border: 1px solid #f59e0b;
}

.chat-bubble.theirs {
    align-self: flex-start;
    background: linear-gradient(135deg, #2b1111, #3f1717);
    color: #fef3c7;
    border-bottom-left-radius: 2px;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.chat-bubble-time {
    font-size: 8.5px;
    opacity: 0.75;
    margin-top: 3px;
    text-align: right;
    display: block;
}

/* Chat Input Row */
.chat-input-row {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    background: #170909;
    border-top: 1px solid rgba(245, 158, 11, 0.25);
}

.chat-input-row input {
    flex: 1;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    outline: none;
}

.chat-input-row input:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.3);
}

.btn-send-message {
    padding: 8px 16px;
    font-size: 11px;
    font-weight: 800;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
}

/* In-Game Incoming Notification Banner */
.in-game-chat-banner {
    position: fixed;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 420px;
    background: linear-gradient(90deg, #2a0808, #400f0f, #2a0808);
    border: 1.5px solid #f59e0b;
    border-radius: 10px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 100000;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.8), 0 0 15px rgba(245, 158, 11, 0.4);
    animation: bannerSlideDown 0.35s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    cursor: pointer;
}

@keyframes bannerSlideDown {
    from {
        top: -60px;
        opacity: 0;
    }
    to {
        top: 14px;
        opacity: 1;
    }
}

.chat-banner-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid #f59e0b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    overflow: hidden;
    flex-shrink: 0;
}

.chat-banner-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-banner-content {
    flex: 1;
    min-width: 0;
}

.chat-banner-header {
    display: flex;
    align-items: center;
    gap: 6px;
}

.chat-banner-sender {
    font-size: 11px;
    font-weight: 800;
    color: #fef08a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-banner-tag {
    font-size: 8px;
    font-weight: 800;
    color: #10b981;
    background: rgba(16, 185, 129, 0.2);
    padding: 1px 4px;
    border-radius: 4px;
}

.chat-banner-text {
    font-size: 11px;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}

.btn-banner-reply {
    background: #f59e0b;
    color: #110707;
    font-size: 10px;
    font-weight: 800;
    border: none;
    border-radius: 5px;
    padding: 5px 9px;
    cursor: pointer;
    flex-shrink: 0;
}

.btn-banner-dismiss {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 14px;
    cursor: pointer;
    padding: 0 4px;
    flex-shrink: 0;
}

/* Spartan Revive Modal Styling */
.revive-card {
    animation: spartanRevivePop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes spartanRevivePop {
    0% { transform: scale(0.85); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

#revive-countdown-num {
    display: inline-block;
    animation: reviveCountPulse 1s infinite alternate;
}

@keyframes reviveCountPulse {
    0% { transform: scale(0.9); opacity: 0.85; }
    100% { transform: scale(1.15); opacity: 1; filter: drop-shadow(0 0 8px #ffd700); }
}

/* ========================================== */
/* SPARTAN ASSET STORE & VFX STYLES          */
/* ========================================== */

.hero-store-action-box {
    margin-top: 10px;
    width: 100%;
    max-width: 320px;
    display: flex;
    justify-content: center;
}

.btn-hero-store {
    width: 100%;
    background: linear-gradient(135deg, rgba(30, 20, 15, 0.95), rgba(50, 25, 10, 0.95));
    border: 1.5px solid #e5a93c;
    border-radius: 10px;
    padding: 10px 14px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    box-shadow: 0 4px 15px rgba(229, 169, 60, 0.25);
    transition: all 0.2s ease;
}

.btn-hero-store:hover, .btn-hero-store:active {
    transform: translateY(-2px);
    border-color: #ffd700;
    box-shadow: 0 6px 22px rgba(255, 215, 0, 0.45);
    background: linear-gradient(135deg, rgba(45, 28, 18, 0.98), rgba(70, 35, 15, 0.98));
}

.store-badge-glow {
    position: absolute;
    top: -9px;
    right: 12px;
    background: linear-gradient(90deg, #ff4500, #ff8c00);
    color: #fff;
    font-size: 9px;
    font-weight: 900;
    font-family: 'Cinzel', serif;
    padding: 2px 8px;
    border-radius: 10px;
    letter-spacing: 1px;
    box-shadow: 0 0 10px rgba(255, 69, 0, 0.7);
    animation: flamePulse 1.8s infinite;
}

.store-main-title {
    color: #ffd700;
    font-family: 'Cinzel', serif;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 6px;
}

.store-sub-hint {
    color: #e2e8f0;
    font-size: 11px;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 0.5px;
    opacity: 0.9;
    margin-top: 2px;
}

/* Store Modal Container (Expanded width & compact heights for 4-across view) */
.store-modal-box {
    max-width: 820px;
    width: 96%;
    height: 92vh;
    max-height: 92vh;
    background: radial-gradient(circle at top, #1e110c 0%, #0a0605 100%);
    border: 2px solid #e5a93c;
    box-shadow: 0 12px 50px rgba(0, 0, 0, 0.95), 0 0 40px rgba(229, 169, 60, 0.35);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Store Header Title & Compact Chrome (Maximizes space for 4-across effects) */
.store-modal-box .modal-header {
    padding: 5px 12px;
    background: rgba(14, 8, 6, 0.95);
    border-bottom: 1px solid rgba(229, 169, 60, 0.4);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.store-modal-box .modal-title {
    font-family: 'Cinzel', serif;
    font-size: 13.5px;
    font-weight: 900;
    color: #ffd700;
    letter-spacing: 0.8px;
    margin: 0;
    line-height: 1.2;
}

.store-modal-box .modal-subtitle {
    font-size: 8.5px;
    letter-spacing: 0.5px;
    margin: 1px 0 0 0;
    color: #cbd5e1;
    opacity: 0.8;
}

.store-header-title-wrap {
    display: flex;
    flex-direction: column;
}

/* Milestone & Stats Card - Ultra Compact Single Row */
.store-user-milestone-card {
    background: rgba(20, 12, 10, 0.88);
    border-bottom: 1px solid rgba(229, 169, 60, 0.25);
    padding: 4px 10px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.milestone-stats-row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 5px;
    padding: 2px 8px;
}

.milestone-stat {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 4px;
}

.milestone-stat .m-label {
    font-size: 7.5px;
    font-family: 'Cinzel', serif;
    color: #a89f91;
    letter-spacing: 0.4px;
}

.milestone-stat .m-val {
    font-size: 13px;
    font-weight: 900;
    font-family: 'Rajdhani', sans-serif;
    color: #ffd700;
    text-shadow: 0 0 6px rgba(255, 215, 0, 0.4);
}

.milestone-stat.highlight .m-val {
    color: #ff6b35;
    text-shadow: 0 0 8px rgba(255, 107, 53, 0.7);
    font-size: 13.5px;
}

.store-equipped-bar {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 9px;
    font-family: 'Rajdhani', sans-serif;
}

.eq-bar-title {
    color: #ffd700;
    font-weight: 700;
    font-family: 'Cinzel', serif;
    font-size: 8px;
    letter-spacing: 0.4px;
}

.eq-pill-group {
    display: flex;
    gap: 4px;
    flex-wrap: nowrap;
}

.eq-pill {
    background: rgba(229, 169, 60, 0.15);
    border: 1px solid rgba(229, 169, 60, 0.4);
    border-radius: 8px;
    padding: 1px 6px;
    color: #f1f5f9;
    font-size: 8.5px;
    font-weight: 600;
}

/* Category Tabs (Compact) */
.store-category-tabs {
    display: flex;
    background: #140b08;
    border-bottom: 1.5px solid #e5a93c;
    flex-shrink: 0;
    overflow-x: auto;
}

.store-tab-btn {
    flex: 1;
    padding: 5px 6px;
    background: transparent;
    border: none;
    color: #a89f91;
    font-family: 'Cinzel', serif;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.4px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 2.5px solid transparent;
    white-space: nowrap;
    text-align: center;
}

.store-tab-btn:hover {
    color: #fef08a;
    background: rgba(255, 255, 255, 0.03);
}

.store-tab-btn.active {
    color: #ffd700;
    border-bottom-color: #ffd700;
    background: rgba(229, 169, 60, 0.15);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

/* Items Grid & Scroll Wrapper */
.store-items-scroll-wrap {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px 12px 30px 12px;
    background: rgba(10, 6, 5, 0.8);
    min-height: 0;
}

.store-items-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

@media (max-width: 600px) and (orientation: portrait) {
    .store-items-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
}

/* Item Card (Compact for 4-across view) */
.store-item-card {
    background: linear-gradient(180deg, #180e0a 0%, #100806 100%);
    border: 1.5px solid #4a3424;
    border-radius: 8px;
    padding: 6px 7px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    min-width: 0;
}

.store-item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.8);
}

.store-item-card.equipped {
    border-color: #ffd700;
    box-shadow: 0 0 16px rgba(255, 215, 0, 0.35);
    background: linear-gradient(180deg, #23160e 0%, #130a07 100%);
}

.store-item-card.locked {
    opacity: 0.9;
}

.card-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.rarity-badge {
    font-size: 8px;
    font-weight: 900;
    font-family: 'Cinzel', serif;
    letter-spacing: 0.6px;
    padding: 1px 5px;
    border-radius: 3px;
    text-transform: uppercase;
}

.rarity-badge.common { background: rgba(148, 163, 184, 0.2); color: #cbd5e1; border: 1px solid #64748b; }
.rarity-badge.rare { background: rgba(249, 115, 22, 0.2); color: #fb923c; border: 1px solid #ea580c; }
.rarity-badge.epic { background: rgba(56, 189, 248, 0.2); color: #38bdf8; border: 1px solid #0284c7; }
.rarity-badge.legendary { background: rgba(255, 215, 0, 0.2); color: #ffd700; border: 1px solid #eab308; box-shadow: 0 0 8px rgba(255, 215, 0, 0.3); }
.rarity-badge.mythic { background: rgba(168, 85, 247, 0.25); color: #c084fc; border: 1px solid #9333ea; box-shadow: 0 0 10px rgba(168, 85, 247, 0.4); }

.item-status-pill {
    font-size: 8.5px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
}

.item-status-pill.equipped {
    background: #15803d;
    color: #86efac;
}

.item-status-pill.unlocked {
    background: rgba(234, 179, 8, 0.2);
    color: #fde047;
}

.item-status-pill.locked {
    background: rgba(100, 116, 139, 0.25);
    color: #94a3b8;
}

/* Animated VFX Preview Box (Compact height) */
.item-preview-box {
    width: 100%;
    height: 44px;
    border-radius: 5px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-icon-large {
    font-size: 20px;
    z-index: 2;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.8));
    animation: previewFloat 2.5s ease-in-out infinite alternate;
}

.skin-card-preview-img {
    max-height: 40px;
    max-width: 44px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.8));
    z-index: 2;
    display: block;
    animation: previewFloat 2.5s ease-in-out infinite alternate;
}

@keyframes previewFloat {
    0% { transform: translateY(1px) scale(0.96); }
    100% { transform: translateY(-2px) scale(1.04); }
}

/* VFX Themes for Preview Box */
.item-preview-box.theme-iron {
    background: radial-gradient(circle, #334155 0%, #0f172a 100%);
}

.item-preview-box.theme-fire {
    background: radial-gradient(circle, #7f1d1d 0%, #1c0505 100%);
    box-shadow: inset 0 0 25px rgba(239, 68, 68, 0.5);
    animation: flameFlicker 2s infinite alternate;
}

@keyframes flameFlicker {
    0% { box-shadow: inset 0 0 20px rgba(255, 69, 0, 0.4); }
    50% { box-shadow: inset 0 0 35px rgba(255, 120, 0, 0.7); }
    100% { box-shadow: inset 0 0 22px rgba(220, 38, 38, 0.5); }
}

.item-preview-box.theme-electric {
    background: radial-gradient(circle, #0c4a6e 0%, #04131f 100%);
    box-shadow: inset 0 0 25px rgba(56, 189, 248, 0.4);
    animation: electricSparks 1.5s infinite;
}

@keyframes electricSparks {
    0%, 100% { box-shadow: inset 0 0 20px rgba(56, 189, 248, 0.35); }
    30% { box-shadow: inset 0 0 35px rgba(125, 211, 252, 0.8); }
    60% { box-shadow: inset 0 0 25px rgba(14, 165, 233, 0.5); }
}

.item-preview-box.theme-golden, .item-preview-box.theme-golden_fire {
    background: radial-gradient(circle, #78350f 0%, #1b0a03 100%);
    box-shadow: inset 0 0 30px rgba(255, 215, 0, 0.5);
    animation: goldenGleam 2.2s infinite alternate;
}

@keyframes goldenGleam {
    0% { box-shadow: inset 0 0 20px rgba(255, 215, 0, 0.35); }
    100% { box-shadow: inset 0 0 40px rgba(255, 230, 100, 0.75); }
}

.item-preview-box.theme-void {
    background: radial-gradient(circle, #581c87 0%, #11051e 100%);
    box-shadow: inset 0 0 30px rgba(168, 85, 247, 0.5);
    animation: voidPulse 2.5s infinite alternate;
}

@keyframes voidPulse {
    0% { box-shadow: inset 0 0 18px rgba(168, 85, 247, 0.4); }
    100% { box-shadow: inset 0 0 38px rgba(192, 132, 252, 0.75); }
}

/* Card Content Details */
.item-title {
    color: #f8fafc;
    font-family: 'Cinzel', serif;
    font-size: 11px;
    font-weight: 800;
    margin: 0 0 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-desc {
    color: #94a3b8;
    font-size: 9px;
    line-height: 1.25;
    margin: 0 0 4px 0;
    min-height: 22px;
    max-height: 24px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Progress bar inside card */
.item-req-box {
    margin-top: auto;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 4px;
    padding: 3px 5px;
    margin-bottom: 4px;
}

.item-req-label {
    display: flex;
    justify-content: space-between;
    font-size: 8px;
    color: #cbd5e1;
    margin-bottom: 2px;
    font-family: 'Rajdhani', sans-serif;
}

.item-req-val {
    font-weight: 700;
    color: #ffd700;
}

.item-prog-track {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.item-prog-fill {
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, #ff6b35, #ffd700);
    transition: width 0.4s ease;
}

.item-prog-fill.completed {
    background: linear-gradient(90deg, #10b981, #34d399);
}

/* Store Action Buttons */
.card-actions-row {
    display: flex;
    gap: 4px;
}

.btn-card-action {
    flex: 1;
    padding: 5px 3px;
    font-family: 'Cinzel', serif;
    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: 0.3px;
    border-radius: 5px;
    cursor: pointer;
    border: none;
    text-align: center;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.btn-card-action.equipped {
    background: #166534;
    color: #86efac;
    border: 1px solid #22c55e;
    cursor: default;
}

.btn-card-action.equip {
    background: linear-gradient(135deg, #ffd700, #b3731a);
    color: #111;
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

.btn-card-action.equip:hover {
    background: linear-gradient(135deg, #ffea70, #c88523);
    transform: translateY(-1px);
}

.btn-card-action.locked {
    background: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-card-demo {
    padding: 7px 8px;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid #38bdf8;
    color: #bae6fd;
    font-family: 'Cinzel', serif;
    font-size: 9.5px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.btn-card-demo:hover {
    background: rgba(56, 189, 248, 0.3);
    color: #fff;
}

/* Store Footer */
.store-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 8, 6, 0.95);
    border-top: 1px solid rgba(229, 169, 60, 0.3);
    padding: 8px 14px;
    flex-wrap: wrap;
    gap: 6px;
    flex-shrink: 0;
}

.store-footer-hint {
    color: #a89f91;
    font-size: 10.5px;
    max-width: 380px;
}

/* ===================================================== */
/* COMPACT LEADERBOARD MODAL (SHOWS 10+ WARRIORS ON SCREEN) */
/* ===================================================== */
.leaderboard-modal-box {
    max-width: 720px;
    width: 95%;
    max-height: 94vh;
}

.lb-modal-header {
    padding: 6px 14px;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(26, 12, 12, 0.9);
    border-bottom: 1px solid rgba(230, 180, 34, 0.3);
}

.lb-header-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lb-title-compact {
    font-size: 14px !important;
    font-weight: 900;
    letter-spacing: 1px;
    color: #f4d068 !important;
    margin: 0;
}

.lb-header-tag {
    font-size: 9px;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 800;
    letter-spacing: 0.8px;
}

.lb-compact-status-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(10, 24, 16, 0.9);
    border-bottom: 1px solid rgba(16, 185, 129, 0.3);
    padding: 3px 14px;
    height: 22px;
    font-size: 9.5px;
}

.lb-status-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.lb-status-right {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #f4d068;
    font-weight: 700;
}

.lb-timer-label {
    color: #94a3b8;
    font-size: 9px;
}

/* Weekly Reset Prizes Strip in Leaderboard */
.lb-weekly-prizes-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(90deg, rgba(35, 22, 8, 0.95) 0%, rgba(18, 10, 4, 0.98) 100%);
    border-bottom: 1px solid rgba(230, 180, 34, 0.35);
    padding: 3px 14px;
    gap: 8px;
    font-size: 9.5px;
    letter-spacing: 0.5px;
}

.prizes-badge-title {
    color: #ffd700;
    font-family: 'Cinzel', serif;
    font-weight: 800;
    font-size: 9px;
    letter-spacing: 0.8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.prizes-strip-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.prize-pill {
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 8.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    border: 1px solid transparent;
}

.prize-pill.prize-gold {
    background: rgba(255, 215, 0, 0.18);
    border-color: rgba(255, 215, 0, 0.65);
    color: #ffd700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.prize-pill.prize-silver {
    background: rgba(226, 232, 240, 0.18);
    border-color: rgba(203, 213, 225, 0.65);
    color: #e2e8f0;
}

.prize-pill.prize-bronze {
    background: rgba(249, 115, 22, 0.18);
    border-color: rgba(249, 115, 22, 0.65);
    color: #fb923c;
}

.warrior-prize-tag {
    font-size: 8px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 3px;
    margin-left: 5px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    letter-spacing: 0.4px;
    vertical-align: middle;
}

.warrior-prize-tag.prize-gold {
    background: rgba(255, 215, 0, 0.22);
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.6);
    box-shadow: 0 0 6px rgba(255, 215, 0, 0.35);
}

.warrior-prize-tag.prize-silver {
    background: rgba(226, 232, 240, 0.22);
    color: #e2e8f0;
    border: 1px solid rgba(226, 232, 240, 0.5);
}

.warrior-prize-tag.prize-bronze {
    background: rgba(249, 115, 22, 0.22);
    color: #fb923c;
    border: 1px solid rgba(249, 115, 22, 0.5);
}

.my-rank-banner-compact {
    padding: 4px 14px !important;
    background: linear-gradient(90deg, #321616 0%, #1a0b0b 100%) !important;
    border-bottom: 1px solid rgba(230, 180, 34, 0.35) !important;
    min-height: 32px !important;
}

.my-rank-banner-compact .my-rank-tag {
    font-size: 9px;
    color: #e6b422;
    font-weight: 800;
    margin-right: 4px;
}

.my-rank-banner-compact .my-rank-badge {
    font-size: 16px;
    color: #ffe680;
    font-weight: 900;
}

.my-rank-banner-compact .my-rank-name {
    font-size: 11.5px;
    color: #fff;
    font-weight: 700;
}

.my-rank-banner-compact .my-rank-tier {
    font-size: 9.5px;
    color: #f87171;
}

.my-rank-banner-compact .my-rank-stats {
    gap: 6px;
}

.my-rank-score-row {
    display: flex;
    align-items: center;
    gap: 5px;
}

.my-rank-score-row .my-rank-score-label {
    font-size: 9px;
    color: #94a3b8;
    font-weight: 800;
}

.my-rank-score-row .my-rank-score-val {
    font-size: 15px;
    color: #ff3333;
    font-weight: 900;
}

.lb-tabs-compact {
    background: rgba(15, 8, 8, 0.85);
    border-bottom: 1px solid rgba(230, 180, 34, 0.2);
}

.lb-tabs-compact .tab-btn {
    padding: 5px 8px !important;
    font-size: 10px !important;
    letter-spacing: 0.5px;
}

.lb-list-wrap-compact {
    flex: 1;
    min-height: 245px !important;
    max-height: none !important;
    overflow-y: auto !important;
    padding: 2px 10px !important;
}

.lb-table-compact {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
    table-layout: fixed;
}

.lb-table-compact th {
    font-size: 8.5px;
    letter-spacing: 1px;
    color: #a89f91;
    padding: 3px 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    position: sticky;
    top: 0;
    background: rgba(20, 10, 10, 0.98);
    z-index: 2;
}

.lb-table-compact td {
    padding: 2px 6px;
    height: 23px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    vertical-align: middle;
    box-sizing: border-box;
}

.lb-footer-compact {
    padding: 5px 14px;
    min-height: 34px;
    background: rgba(18, 9, 9, 0.95);
    border-top: 1px solid rgba(230, 180, 34, 0.25);
    flex-shrink: 0;
}

@media (max-height: 520px) and (orientation: landscape) {
    .leaderboard-modal-box {
        max-height: 98vh !important;
        height: 96vh !important;
        max-width: 760px !important;
    }
    .lb-list-wrap-compact {
        flex: 1 1 auto !important;
        min-height: 180px !important;
        max-height: none !important;
        overflow-y: auto !important;
    }
}

/* ===================================================== */
/* WARRIOR PROFILE TITLE & CLEANUP                       */
/* ===================================================== */
.profile-title-compact {
    font-size: 14.5px !important;
    letter-spacing: 1px;
    color: #f4d068;
}

.cloud-safety-card {
    display: none !important;
}

/* ===================================================== */
/* SPARTAN WORLD CHAT MODAL (PERMANENT & REPLIES)        */
/* ===================================================== */
.world-chat-modal-box {
    max-width: 660px;
    width: 95%;
    height: 94vh;
    max-height: 500px;
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at top, #141b2b 0%, #0a0d16 100%);
    border: 1.5px solid #60a5fa;
    border-radius: 14px;
    box-shadow: 0 12px 50px rgba(0, 0, 0, 0.95), 0 0 25px rgba(96, 165, 250, 0.3);
    overflow: hidden;
    position: relative;
}

.chat-modal-header {
    padding: 6px 14px;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(14, 22, 36, 0.95);
    border-bottom: 1px solid rgba(96, 165, 250, 0.3);
}

.chat-header-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-title-compact {
    font-size: 13.5px !important;
    font-family: 'Cinzel', serif;
    font-weight: 900;
    color: #93c5fd !important;
    letter-spacing: 1px;
    margin: 0;
}

.chat-permanent-tag {
    font-size: 8.5px;
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.chat-quick-cries-strip {
    display: flex;
    align-items: center;
    gap: 5px;
    overflow-x: auto;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    scrollbar-width: none;
    flex-shrink: 0;
}

.chat-quick-cries-strip::-webkit-scrollbar {
    display: none;
}

.btn-quick-cry {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(244, 208, 104, 0.35);
    color: #f4d068;
    font-size: 9px;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    border-radius: 12px;
    padding: 2.5px 8px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-quick-cry:hover, .btn-quick-cry:active {
    background: rgba(244, 208, 104, 0.25);
    border-color: #ffd700;
    transform: scale(1.04);
}

.world-chat-stream {
    flex: 1;
    overflow-y: auto;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    scroll-behavior: smooth;
}

.world-chat-loading {
    text-align: center;
    color: #94a3b8;
    font-size: 11px;
    margin: auto;
}

.world-chat-empty {
    text-align: center;
    color: #94a3b8;
    font-size: 12px;
    margin: auto;
    padding: 20px;
}

/* Chat Message Item */
.world-chat-bubble {
    display: flex;
    flex-direction: column;
    padding: 5px 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    max-width: 88%;
    word-break: break-word;
    font-size: 11.5px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
}

.world-chat-bubble:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(2px);
}

.world-chat-bubble.mine {
    align-self: flex-end;
    background: rgba(30, 58, 138, 0.35);
    border-color: rgba(96, 165, 250, 0.35);
}

.world-chat-bubble.theirs {
    align-self: flex-start;
}

.chat-bubble-sender-row {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 2px;
    font-size: 10px;
}

.chat-bubble-avatar {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    object-fit: cover;
    display: inline-block;
}

.chat-bubble-author {
    font-weight: 800;
    color: #f4d068;
    display: flex;
    align-items: center;
    gap: 3px;
}

.chat-bubble-author.mine {
    color: #60a5fa;
}

.chat-verified-badge {
    background: #2563eb;
    color: #fff;
    font-size: 8px;
    border-radius: 50%;
    width: 11px;
    height: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

.chat-bubble-time {
    font-size: 8.5px;
    color: #64748b;
    margin-left: auto;
}

.chat-quote-box {
    background: rgba(0, 0, 0, 0.3);
    border-left: 2.5px solid #f59e0b;
    padding: 2px 6px;
    border-radius: 3px;
    margin-bottom: 4px;
    font-size: 9.5px;
    color: #cbd5e1;
}

.chat-quote-author {
    color: #fbbf24;
    font-weight: 800;
}

.chat-bubble-text {
    line-height: 1.35;
    color: #f1f5f9;
}

.chat-mention-tag {
    color: #fbbf24;
    font-weight: 800;
    background: rgba(245, 158, 11, 0.18);
    padding: 0 4px;
    border-radius: 3px;
}

.chat-reply-hint {
    font-size: 8.5px;
    color: #94a3b8;
    margin-top: 2px;
    align-self: flex-end;
    opacity: 0.7;
}

/* Reply Bar */
.chat-reply-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(245, 158, 11, 0.15);
    border-left: 3px solid #fbbf24;
    border-radius: 4px;
    padding: 4px 10px;
    margin: 2px 10px 4px;
    font-size: 10px;
    color: #fef08a;
    flex-shrink: 0;
}

.reply-bar-text {
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 90%;
}

.btn-cancel-reply {
    background: transparent;
    border: none;
    color: #fef08a;
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
    padding: 0 4px;
}

/* Guest Lock Card */
.chat-guest-lock-card {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(20, 10, 10, 0.95) 100%);
    border: 1px solid rgba(239, 68, 68, 0.45);
    border-radius: 8px;
    padding: 6px 10px;
    margin: 2px 10px 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-shrink: 0;
}

.guest-lock-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.guest-lock-icon {
    font-size: 18px;
}

.guest-lock-info strong {
    font-size: 10.5px;
    color: #fca5a5;
    letter-spacing: 0.5px;
    display: block;
}

.guest-lock-info p {
    font-size: 9px;
    color: #cbd5e1;
    margin: 1px 0 0 0;
}

.guest-lock-buttons {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.btn-chat-auth {
    border-radius: 5px;
    border: none;
    padding: 5px 8px;
    font-size: 9.5px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.btn-chat-auth.google {
    background: #fff;
    color: #333;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.btn-chat-auth.playgames {
    background: #0f9d58;
    color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* Input Row */
.chat-input-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: rgba(10, 14, 22, 0.95);
    border-top: 1px solid rgba(96, 165, 250, 0.25);
    flex-shrink: 0;
}

.chat-text-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(96, 165, 250, 0.35);
    border-radius: 6px;
    padding: 6px 10px;
    color: #fff;
    font-size: 11.5px;
    outline: none;
    transition: border-color 0.2s ease;
}

.chat-text-input:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 8px rgba(96, 165, 250, 0.4);
}

.btn-chat-send {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border: 1px solid #60a5fa;
    color: #fff;
    font-family: 'Cinzel', serif;
    font-size: 10.5px;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.btn-chat-send:hover {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    transform: translateY(-1px);
}

/* ===================================================== */
/* ======================================================= */
/* GRAND HAPPY NEW YEAR 2027 CELEBRATION OVERLAY & STYLING */
/* ======================================================= */
.btn-floating-newyear {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(0, 20, 60, 0.96) 0%, rgba(5, 5, 30, 0.98) 100%);
    border: 1.5px solid #00e5ff;
    border-radius: 24px;
    padding: 7px 15px;
    color: #e0f7ff;
    font-family: 'Cinzel', serif;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.8px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.75), 0 0 16px rgba(0, 229, 255, 0.5);
    cursor: pointer;
    transition: all 0.22s ease;
    animation: nyButtonPulse 2.4s infinite alternate ease-in-out;
}

@keyframes nyButtonPulse {
    0% { box-shadow: 0 4px 18px rgba(0, 0, 0, 0.75), 0 0 10px rgba(0, 229, 255, 0.35); transform: scale(1); }
    100% { box-shadow: 0 4px 22px rgba(0, 0, 0, 0.85), 0 0 22px rgba(255, 215, 0, 0.7); transform: scale(1.04); }
}

.btn-floating-newyear:hover {
    background: linear-gradient(135deg, rgba(0, 30, 80, 0.98) 0%, rgba(10, 5, 50, 1) 100%);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.9), 0 0 28px rgba(0, 229, 255, 0.8);
}

.newyear-icon-firework {
    font-size: 15px;
    filter: drop-shadow(0 0 6px #00e5ff);
}

/* New Year Backdrop & Dedicated Canvas */
.newyear-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(5, 10, 40, 0.95) 0%, rgba(2, 2, 15, 0.98) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99;
    padding: 14px;
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease-out forwards;
}

.newyear-fireworks-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* New Year Celebration Card */
.newyear-celebration-card {
    position: relative;
    z-index: 2;
    background: radial-gradient(circle at top, #040d2a 0%, #020510 100%);
    border: 2px solid #ffd700;
    border-radius: 18px;
    padding: 16px 24px;
    text-align: center;
    max-width: 560px;
    width: 92%;
    box-shadow: 0 16px 60px rgba(0, 0, 0, 0.95), 0 0 50px rgba(0, 229, 255, 0.4), 0 0 90px rgba(255, 215, 0, 0.3);
    animation: nyPop 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes nyPop {
    0% { transform: scale(0.85); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.newyear-emojis-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 2px;
}

.festive-emoji {
    font-size: 30px;
    filter: drop-shadow(0 0 12px #00e5ff);
}

.emoji-pop {
    animation: emojiPop 1.4s infinite alternate ease-in-out;
}

@keyframes emojiPop {
    0% { transform: translateY(0) scale(0.95) rotate(-5deg); filter: drop-shadow(0 0 8px #ffd700); }
    100% { transform: translateY(-5px) scale(1.12) rotate(5deg); filter: drop-shadow(0 0 18px #00e5ff); }
}

.festive-center-block {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.newyear-countdown-tag {
    font-size: 11px;
    color: #ffd700;
    font-weight: 900;
    letter-spacing: 2px;
    text-shadow: 0 0 10px #00e5ff;
    margin-top: 2px;
}

.newyear-grand-title {
    font-family: 'Cinzel', serif;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 3px;
    background: linear-gradient(135deg, #e0f7ff 0%, #ffd700 40%, #00e5ff 80%, #ff007f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 4px 0 0 0;
    animation: nyTitleGlow 2s infinite alternate ease-in-out;
}

.newyear-year-title {
    font-family: 'Cinzel', serif;
    font-size: 48px;
    font-weight: 900;
    letter-spacing: 6px;
    background: linear-gradient(135deg, #ffd700 0%, #fff 40%, #ffd700 70%, #ff9100 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: -4px 0 2px 0;
    animation: nyYearGlow 1.6s infinite alternate ease-in-out;
}

@keyframes nyTitleGlow {
    0% { filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.5)); }
    100% { filter: drop-shadow(0 0 22px rgba(255, 215, 0, 0.9)); }
}

@keyframes nyYearGlow {
    0% { filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.6)); transform: scale(1); }
    100% { filter: drop-shadow(0 0 28px rgba(255, 215, 0, 1)); transform: scale(1.03); }
}

.newyear-golden-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 2px 0 8px 0;
}

.newyear-greeting-text {
    font-size: 11.5px;
    color: #c8e8ff;
    line-height: 1.45;
    max-width: 460px;
    margin: 0 auto 10px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.newyear-gift-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.14) 0%, rgba(255, 215, 0, 0.14) 100%);
    border: 1px solid rgba(0, 229, 255, 0.4);
    border-radius: 9px;
    padding: 5px 12px;
    margin-bottom: 12px;
}

.newyear-actions-row {
    display: flex;
    justify-content: center;
}

.btn-newyear-enter {
    background: linear-gradient(135deg, #00e5ff 0%, #ffd700 50%, #ff007f 100%);
    border: none;
    border-radius: 26px;
    color: #030820;
    font-family: 'Cinzel', serif;
    font-size: 12.5px;
    font-weight: 900;
    letter-spacing: 1px;
    padding: 9px 26px;
    cursor: pointer;
    box-shadow: 0 5px 22px rgba(0, 229, 255, 0.5), 0 0 20px rgba(255, 215, 0, 0.5);
    transition: all 0.22s ease;
}

.btn-newyear-enter:hover, .btn-newyear-enter:active {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 229, 255, 0.8), 0 0 32px rgba(255, 215, 0, 0.7);
}

/* Chat Live Dot in World Chat bubbles */
.chat-live-dot {
    font-size: 10px;
    vertical-align: middle;
    margin-left: 2px;
    filter: drop-shadow(0 0 3px #10b981);
}

/* ===================================================== */
/* SPARTAN COINS (SP) ECONOMY & REWARD SYSTEM STYLES     */
/* ===================================================== */

/* Title Screen SP Balance Pill */
.btn-floating-coins {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(50, 30, 8, 0.96) 0%, rgba(24, 12, 4, 0.98) 100%);
    border: 1.5px solid #ffd700;
    border-radius: 20px;
    padding: 6px 13px;
    color: #ffea70;
    font-family: 'Cinzel', serif;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.75), 0 0 14px rgba(255, 215, 0, 0.35);
    cursor: default;
    transition: all 0.2s ease;
}

.btn-floating-coins .coin-icon {
    font-size: 14px;
    filter: drop-shadow(0 0 4px #ffd700);
}

.btn-floating-coins .coin-unit {
    font-size: 10px;
    color: #f59e0b;
}

/* Result / Game Over Screen SP Reward Card */
.result-sp-reward-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(60, 36, 10, 0.85) 0%, rgba(30, 16, 6, 0.95) 100%);
    border: 1.5px solid #ffd700;
    border-radius: 10px;
    padding: 6px 14px;
    margin: 6px 0 10px 0;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 215, 0, 0.25);
    flex-wrap: wrap;
    gap: 8px;
}

.result-sp-reward-card .sp-reward-icon {
    font-size: 20px;
    filter: drop-shadow(0 0 6px #ffd700);
}

.result-sp-reward-card .sp-reward-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.result-sp-reward-card .sp-reward-title {
    font-size: 9px;
    font-weight: 800;
    color: #cbd5e1;
    letter-spacing: 0.8px;
}

.result-sp-reward-card .sp-reward-amount {
    font-size: 15px;
    font-weight: 900;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

.result-sp-reward-card .sp-balance-tag {
    font-size: 10px;
    color: #94a3b8;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3px 8px;
    border-radius: 6px;
    margin-left: auto;
}

.result-sp-reward-card .sp-balance-tag strong {
    color: #ffea70;
}

/* Asset Store SP Wallet Banner */
.store-sp-wallet-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(46, 28, 8, 0.95) 0%, rgba(22, 12, 4, 0.98) 100%);
    border: 1.5px solid #ffd700;
    border-radius: 10px;
    padding: 7px 16px;
    margin: 6px 12px 8px 12px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.7), 0 0 14px rgba(255, 215, 0, 0.3);
    flex-wrap: wrap;
    gap: 8px;
}

.store-sp-wallet-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sp-wallet-icon {
    font-size: 22px;
    filter: drop-shadow(0 0 6px #ffd700);
}

.sp-wallet-info {
    display: flex;
    flex-direction: column;
}

.sp-wallet-label {
    font-size: 9.5px;
    letter-spacing: 1px;
    color: #cbd5e1;
    font-weight: 800;
}

.sp-wallet-value {
    font-family: 'Cinzel', serif;
    font-size: 17px;
    font-weight: 900;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

.store-sp-wallet-tips {
    font-size: 10px;
    color: #fed7aa;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 215, 0, 0.25);
    padding: 4px 10px;
    border-radius: 6px;
}

/* Store Action Button: Unlock with SP Coins */
.btn-card-action.unlock-sp {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%) !important;
    color: #fff !important;
    border: 1px solid #fde047 !important;
    box-shadow: 0 3px 12px rgba(245, 158, 11, 0.4) !important;
    cursor: pointer !important;
    font-weight: 900 !important;
}

.btn-card-action.unlock-sp:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%) !important;
    transform: scale(1.03);
}

.btn-card-action.locked-sp {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #94a3b8 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    cursor: not-allowed !important;
}

/* Daily Entry Reward Modal */
.daily-reward-modal-box {
    max-width: 580px;
    width: 92%;
    background: radial-gradient(circle at top, #2b180a 0%, #120703 100%);
    border: 2px solid #ffd700;
    border-radius: 16px;
    box-shadow: 0 14px 50px rgba(0, 0, 0, 0.95), 0 0 35px rgba(255, 215, 0, 0.4);
}

.daily-reward-header-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.daily-crown-icon {
    font-size: 24px;
    filter: drop-shadow(0 0 8px #ffd700);
}

.daily-reward-body {
    padding: 12px 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.daily-reward-intro {
    font-size: 11px;
    color: #fed7aa;
    text-align: center;
    margin: 0;
}

/* 7-Day Streak Grid */
.daily-streak-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin: 4px 0;
}

.streak-day-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 8px 4px;
    text-align: center;
    transition: all 0.2s ease;
}

.streak-day-card .day-label {
    font-size: 8.5px;
    font-weight: 800;
    color: #94a3b8;
}

.streak-day-card .day-icon {
    font-size: 16px;
    margin: 3px 0;
}

.streak-day-card .day-reward {
    font-size: 10px;
    font-weight: 900;
    color: #ffd700;
}

.streak-day-card.claimed {
    background: rgba(16, 185, 129, 0.15);
    border-color: #10b981;
}

.streak-day-card.claimed .day-label {
    color: #34d399;
}

.streak-day-card.active-today {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25) 0%, rgba(217, 119, 6, 0.35) 100%);
    border: 1.5px solid #ffd700;
    transform: scale(1.06);
    box-shadow: 0 0 14px rgba(255, 215, 0, 0.5);
    animation: todayGlow 1.8s infinite alternate;
}

@keyframes todayGlow {
    0% { box-shadow: 0 0 8px rgba(255, 215, 0, 0.35); }
    100% { box-shadow: 0 0 18px rgba(255, 215, 0, 0.75); }
}

.streak-day-card.day-7 {
    border-color: #f59e0b;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(245, 158, 11, 0.2) 100%);
}

.daily-claim-highlight {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(245, 158, 11, 0.18);
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 12px;
    color: #fef08a;
    text-align: center;
}

.daily-claim-highlight strong {
    color: #ffd700;
    font-size: 13.5px;
}

.btn-daily-claim {
    background: linear-gradient(135deg, #ffd700 0%, #ff8800 50%, #d82b00 100%);
    border: none;
    border-radius: 24px;
    color: #1a0800;
    font-family: 'Cinzel', serif;
    font-size: 12.5px;
    font-weight: 900;
    letter-spacing: 1px;
    padding: 10px 24px;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(255, 140, 0, 0.55), 0 0 16px rgba(255, 215, 0, 0.45);
    transition: all 0.22s ease;
}

.btn-daily-claim:hover {
    transform: scale(1.04);
    box-shadow: 0 7px 25px rgba(255, 140, 0, 0.75), 0 0 22px rgba(255, 215, 0, 0.65);
}

/* Install Login Offer Modal */
.install-login-modal-box {
    max-width: 520px;
    width: 92%;
    background: radial-gradient(circle at top, #241313 0%, #100606 100%);
    border: 2px solid #ffd700;
    border-radius: 16px;
    box-shadow: 0 14px 50px rgba(0, 0, 0, 0.95), 0 0 35px rgba(255, 215, 0, 0.4);
}

.install-offer-body {
    padding: 14px 20px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.install-offer-gift-icon {
    font-size: 38px;
    filter: drop-shadow(0 0 12px #ffd700);
}

.install-offer-title {
    font-family: 'Cinzel', serif;
    font-size: 16px;
    color: #ffd700;
    font-weight: 900;
    margin: 0;
}

.install-offer-desc {
    font-size: 11px;
    color: #e2e8f0;
    line-height: 1.45;
    margin: 0;
}

.install-offer-benefits {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 215, 0, 0.25);
    border-radius: 8px;
    padding: 8px 12px;
    text-align: left;
    font-size: 10.5px;
    color: #cbd5e1;
}

.install-offer-benefits .benefit-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.install-offer-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-top: 4px;
}

.install-offer-buttons .btn-auth-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 8px;
    font-family: 'Cinzel', serif;
    font-size: 11.5px;
    font-weight: 800;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.install-offer-buttons .btn-auth-action.google {
    background: #ffffff;
    color: #1f2937;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.install-offer-buttons .btn-auth-action.playgames {
    background: #0f9d58;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(15, 157, 88, 0.4);
}

.install-offer-buttons .btn-auth-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #94a3b8;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 10.5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.install-offer-buttons .btn-auth-secondary:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

/* Bonus Claimed Modal */
.bonus-claimed-modal-box {
    max-width: 460px;
    width: 90%;
    background: radial-gradient(circle at top, #261608 0%, #110502 100%);
    border: 2px solid #ffd700;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.95), 0 0 35px rgba(255, 215, 0, 0.5);
}

.bonus-claimed-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.bonus-confetti-icon {
    font-size: 36px;
}

.bonus-claimed-title {
    font-family: 'Cinzel', serif;
    font-size: 17px;
    font-weight: 900;
    color: #ffd700;
    margin: 0;
}

.bonus-claimed-subtitle {
    font-size: 10px;
    color: #f59e0b;
    margin: 0;
    letter-spacing: 0.8px;
}

.bonus-coin-display {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 215, 0, 0.18);
    border: 1.5px solid #ffd700;
    border-radius: 20px;
    padding: 6px 18px;
    margin: 4px 0;
}

.bonus-coin-amount {
    font-family: 'Cinzel', serif;
    font-size: 20px;
    font-weight: 900;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

.bonus-claimed-desc {
    font-size: 11px;
    color: #e2e8f0;
    line-height: 1.45;
    margin: 0 0 8px 0;
}

