* {
    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;
}

canvas#gameCanvas {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#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) 65%, rgba(0, 0, 0, 0.32) 100%);
    z-index: 5;
}

/* 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: 15px;
    left: 0;
    width: 100%;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    pointer-events: none;
    z-index: 20;
}

.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);
}

#btn-top-sound {
    padding: 6px 9px;
    font-size: 13px;
}

/* 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.92);
    border: 2px solid rgba(230, 180, 34, 0.5);
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9), 0 0 30px rgba(180, 20, 20, 0.3);
    padding: 18px 16px;
    max-width: 440px;
    width: 96%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    backdrop-filter: blur(12px);
    margin: 6px auto;
}

.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 */
.result-actions {
    display: flex;
    gap: 8px;
    width: 100%;
    margin-bottom: 12px;
}

.result-actions button {
    flex: 1;
    font-size: 13px;
    padding: 10px 6px;
    white-space: nowrap;
}

/* 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);
    flex-shrink: 0;
}

.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; }
.rank-2 { color: #c0c0c0; font-size: 16px; }
.rank-3 { color: #cd7f32; font-size: 16px; }

.lb-gmail-notice {
    background: linear-gradient(90deg, rgba(234, 67, 53, 0.15), rgba(40, 20, 20, 0.5));
    border: 1px solid rgba(234, 67, 53, 0.4);
    border-radius: 6px;
    margin: 4px 18px 8px;
    padding: 6px 12px;
    font-size: 11px;
    color: #ffb4a2;
    text-align: left;
    line-height: 1.4;
}

.lb-gmail-notice strong {
    color: #ff6b57;
}

.lb-rank-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cinzel', serif;
    font-size: 14px;
    font-weight: 900;
    color: #e6b422;
}

.rank-gold {
    font-size: 18px;
    filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.6));
}

.rank-silver {
    font-size: 16px;
    filter: drop-shadow(0 0 3px rgba(192, 192, 192, 0.6));
}

.rank-bronze {
    font-size: 15px;
    filter: drop-shadow(0 0 3px rgba(205, 127, 50, 0.6));
}

.warrior-card-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 2px 0;
}

.warrior-avatar-letter {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7a1515, #3b0909);
    border: 1.5px solid #e6b422;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cinzel', serif;
    font-weight: 900;
    font-size: 14px;
    color: #f4d068;
    box-shadow: 0 0 6px rgba(230, 180, 34, 0.35);
    flex-shrink: 0;
}

.warrior-info {
    display: flex;
    flex-direction: column;
    text-align: left;
    overflow: hidden;
}

.warrior-name {
    font-weight: 700;
    font-size: 13px;
    color: #f5f0e6;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.warrior-tier-small {
    font-size: 10px;
    font-weight: 600;
    color: #c9a96e;
    letter-spacing: 0.3px;
}

.warrior-tag-you {
    font-size: 9px;
    font-weight: 800;
    background: #ff2222;
    color: #fff;
    padding: 1px 5px;
    border-radius: 4px;
    margin-left: 5px;
}

.warrior-tag-verified {
    font-size: 10px;
    font-weight: 900;
    color: #4285f4;
    background: rgba(66, 133, 244, 0.15);
    border: 1px solid rgba(66, 133, 244, 0.4);
    padding: 0 4px;
    border-radius: 50%;
    margin-left: 4px;
}

.score-cell {
    font-family: 'Cinzel', serif;
    font-size: 17px;
    font-weight: 900;
    color: #ff4444;
    text-align: right;
    text-shadow: 0 0 8px rgba(255, 68, 68, 0.4);
}

/* User's highlighted row */
.my-rank-row {
    background: rgba(230, 180, 34, 0.18) !important;
    border: 1px solid rgba(230, 180, 34, 0.6) !important;
}

.my-rank-row td {
    border-bottom: 1px solid rgba(230, 180, 34, 0.5);
}

.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 (RESPONSIVE & SCROLLABLE) */
/* ========================================== */
.account-modal-box {
    width: 95%;
    max-width: 480px;
    max-height: 92vh;
    max-height: 92dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Modal Body Scroll Container - Works on all Mobile screens & Desktop Web */
.modal-body-scroll,
.account-modal-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 12px 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-behavior: smooth;
}

/* Spartan Gold Custom Scrollbar */
.modal-body-scroll::-webkit-scrollbar,
.account-modal-scroll::-webkit-scrollbar {
    width: 6px;
}

.modal-body-scroll::-webkit-scrollbar-track,
.account-modal-scroll::-webkit-scrollbar-track {
    background: rgba(12, 6, 6, 0.75);
    border-radius: 4px;
}

.modal-body-scroll::-webkit-scrollbar-thumb,
.account-modal-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #e6b422 0%, #8b1818 100%);
    border-radius: 4px;
    border: 1px solid rgba(244, 208, 104, 0.3);
}

.cloud-safety-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(22, 45, 20, 0.5);
    border: 1px solid rgba(0, 230, 118, 0.35);
    border-radius: 8px;
    padding: 10px 14px;
    margin: 0;
    width: 100%;
}

.cloud-safety-icon {
    font-size: 26px;
    flex-shrink: 0;
}

.cloud-safety-text {
    flex: 1;
    text-align: left;
}

.cloud-safety-text strong {
    font-size: 11px;
    color: #00e676;
    letter-spacing: 0.8px;
    display: block;
    margin-bottom: 2px;
}

.cloud-safety-text p {
    font-size: 12px;
    color: #d0f0c0;
    line-height: 1.35;
}

.active-profile-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(35, 18, 18, 0.75);
    border: 1px solid rgba(230, 180, 34, 0.35);
    border-radius: 10px;
    padding: 12px 14px;
    margin: 0;
    width: 100%;
}

.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);
    flex-shrink: 0;
}

.profile-info-block {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
    min-width: 0;
}

.profile-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.profile-name-large {
    font-family: 'Cinzel', serif;
    font-size: 17px;
    font-weight: 900;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.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;
    word-break: break-all;
}

.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;
}

/* Spartan Auth & Registration Form */
.account-auth-container {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.auth-tabs {
    display: flex;
    gap: 8px;
    background: rgba(15, 8, 8, 0.7);
    padding: 4px;
    border-radius: 8px;
    border: 1px solid rgba(230, 180, 34, 0.3);
}

.auth-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: #bfa787;
    font-family: 'Cinzel', serif;
    font-size: 12px;
    font-weight: 800;
    padding: 9px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-tab-btn.active {
    background: linear-gradient(135deg, #7a1515, #3b0909);
    color: #ffd700;
    box-shadow: 0 0 10px rgba(230, 180, 34, 0.4);
    border: 1px solid rgba(230, 180, 34, 0.6);
}

/* Form Panel with Smooth Slide & Fade Transition */
.auth-form-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
    width: 100%;
}

.auth-panel-slide {
    animation: authFormSlideIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes authFormSlideIn {
    0% {
        opacity: 0;
        transform: translateY(12px) scale(0.985);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.form-row-double {
    display: flex;
    gap: 10px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.form-group label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #e6b422;
}

.form-group input {
    background: rgba(10, 5, 5, 0.85);
    border: 1px solid rgba(230, 180, 34, 0.4);
    border-radius: 6px;
    padding: 10px 12px;
    min-height: 42px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    outline: none;
    transition: all 0.2s;
    user-select: text !important;
    -webkit-user-select: text !important;
    width: 100%;
}

.form-group input:focus {
    border-color: #ffd700;
    box-shadow: 0 0 8px rgba(244, 208, 104, 0.5);
    background: rgba(18, 9, 9, 0.95);
}

.input-with-button {
    display: flex;
    gap: 6px;
}

.input-with-button input {
    flex: 1;
}

.btn-otp-action {
    background: linear-gradient(180deg, #e6b422, #b8860b);
    color: #1a0a00;
    border: 1px solid #ffd700;
    border-radius: 6px;
    font-family: 'Cinzel', serif;
    font-size: 12px;
    font-weight: 900;
    padding: 0 16px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
}

.btn-otp-action:hover {
    filter: brightness(1.15);
    box-shadow: 0 0 10px rgba(230, 180, 34, 0.5);
}

.btn-otp-action:disabled {
    background: #444;
    color: #888;
    border-color: #555;
    cursor: not-allowed;
    filter: none;
    box-shadow: none;
}

.otp-box-section {
    background: rgba(30, 15, 15, 0.75);
    border: 1px dashed #e6b422;
    border-radius: 8px;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    animation: authFormSlideIn 0.25s ease-out;
}

.otp-box-section label {
    font-size: 10px;
    font-weight: 800;
    color: #ff6b57;
    letter-spacing: 1px;
}

.otp-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.otp-input-field {
    flex: 1;
    background: rgba(10, 5, 5, 0.95) !important;
    border: 2px solid #ffd700 !important;
    text-align: center;
    font-size: 22px !important;
    letter-spacing: 8px;
    font-weight: 900 !important;
    color: #ffd700 !important;
    min-height: 44px;
}

.otp-timer-badge {
    background: rgba(230, 180, 34, 0.2);
    border: 1px solid rgba(230, 180, 34, 0.4);
    padding: 8px 12px;
    border-radius: 6px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 800;
    font-size: 14px;
    color: #ffd700;
    white-space: nowrap;
}

.field-hint {
    font-size: 11px;
    color: #9e8e78;
    line-height: 1.25;
}

.btn-full-submit {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    margin-top: 6px;
    min-height: 44px;
    letter-spacing: 1px;
}

.guest-skip-row {
    text-align: center;
    margin-top: 4px;
    padding-bottom: 4px;
}

.btn-text-link {
    background: none;
    border: none;
    color: #bfa787;
    font-size: 12px;
    text-decoration: underline;
    cursor: pointer;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    padding: 6px 10px;
    transition: color 0.2s;
}

.btn-text-link:hover {
    color: #ffd700;
}

.cloud-actions-row {
    display: flex;
    gap: 8px;
    padding: 10px 0 4px;
    border-top: 1px solid rgba(230, 180, 34, 0.25);
    width: 100%;
}

.cloud-actions-row button {
    flex: 1;
}

/* ========================================== */
/* RESPONSIVE FIT FOR ALL MOBILE SCREENS      */
/* ========================================== */
@media (max-width: 480px) {
    .account-modal-box {
        width: 96%;
        max-height: 94vh;
        max-height: 94dvh;
    }

    .modal-body-scroll,
    .account-modal-scroll {
        padding: 10px 12px 20px;
        gap: 10px;
    }

    .form-row-double {
        flex-direction: column;
        gap: 8px;
    }

    .cloud-actions-row {
        flex-direction: column;
        gap: 8px;
    }
}

/* Mobile Landscape & Short Viewports: Auto-fit & Hide non-essentials */
@media (max-height: 600px) {
    .account-modal-box {
        max-height: 96vh;
        max-height: 96dvh;
    }

    .cloud-safety-card {
        display: none; /* Auto-hide bulky promise banner on landscape screens so form is immediately visible */
    }

    .modal-body-scroll,
    .account-modal-scroll {
        padding: 8px 12px 16px;
        gap: 8px;
    }

    .active-profile-card {
        padding: 6px 10px;
    }

    .profile-avatar-large {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .form-group input {
        min-height: 36px;
        padding: 6px 10px;
        font-size: 13px;
    }

    .btn-otp-action {
        min-height: 36px;
    }

    .btn-full-submit {
        min-height: 38px;
        padding: 8px;
    }
}

/* ========================================== */
/* 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) {
    .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 { 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 { margin-bottom: 6px; }
    .share-section.compact { padding: 4px 8px; }
}

/* ========================================== */
/* 120 FPS & REALISTIC GRAPHICS SETTINGS      */
/* ========================================== */
.hud-fps-pill {
    font-family: 'Rajdhani', monospace, sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 12px;
    background: rgba(10, 20, 15, 0.85);
    border: 1px solid rgba(0, 230, 118, 0.5);
    color: #00e676;
    box-shadow: 0 0 8px rgba(0, 230, 118, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    user-select: none;
    transition: all 0.2s ease;
}
.hud-fps-pill.fps-high {
    color: #00e676;
    border-color: rgba(0, 230, 118, 0.6);
    box-shadow: 0 0 10px rgba(0, 230, 118, 0.4);
}
.hud-fps-pill.fps-mid {
    color: #ffd600;
    border-color: rgba(255, 214, 0, 0.6);
    box-shadow: 0 0 8px rgba(255, 214, 0, 0.3);
}
.hud-fps-pill.fps-low {
    color: #ff5252;
    border-color: rgba(255, 82, 82, 0.6);
}

.modal-box-settings {
    max-width: 580px;
}
.settings-content-scroll {
    padding: 14px 18px;
    overflow-y: auto;
    max-height: calc(88vh - 120px);
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.settings-card {
    background: rgba(25, 14, 14, 0.7);
    border: 1px solid rgba(230, 180, 34, 0.25);
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}
.settings-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.settings-card-title {
    font-family: 'Cinzel', serif;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #f4d068;
}
.fps-detected-badge {
    font-size: 10px;
    font-weight: 800;
    color: #00e676;
    background: rgba(0, 230, 118, 0.15);
    border: 1px solid rgba(0, 230, 118, 0.4);
    padding: 2px 7px;
    border-radius: 10px;
    letter-spacing: 0.5px;
}
.badge-quality-tier {
    font-size: 10px;
    font-weight: 800;
    color: #ff9800;
    background: rgba(255, 152, 0, 0.15);
    border: 1px solid rgba(255, 152, 0, 0.4);
    padding: 2px 7px;
    border-radius: 10px;
    letter-spacing: 0.5px;
}
.settings-card-desc {
    font-size: 11px;
    line-height: 1.35;
    color: #bfa787;
    margin: 0;
}
.settings-pill-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.btn-setting-pill {
    background: rgba(40, 20, 20, 0.6);
    border: 1px solid rgba(244, 208, 104, 0.25);
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    transition: all 0.2s ease;
}
.btn-setting-pill:hover {
    background: rgba(60, 25, 25, 0.8);
    border-color: rgba(244, 208, 104, 0.6);
}
.btn-setting-pill.active {
    background: linear-gradient(135deg, rgba(80, 20, 20, 0.9), rgba(120, 25, 25, 0.95));
    border: 1.5px solid #00e676;
    box-shadow: 0 0 12px rgba(0, 230, 118, 0.35);
}
.btn-setting-pill .pill-main {
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.5px;
}
.btn-setting-pill.active .pill-main {
    color: #a0f0c0;
}
.btn-setting-pill .pill-sub {
    font-size: 9.5px;
    color: #9e8e78;
}
.settings-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.toggle-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.toggle-label {
    font-size: 11.5px;
    font-weight: 700;
    color: #f4d068;
}
.toggle-sub {
    font-size: 10px;
    color: #8c7865;
}
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: .3s;
    border-radius: 24px;
    border: 1px solid rgba(244, 208, 104, 0.3);
}
.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    transition: .3s;
    border-radius: 50%;
}
input:checked + .slider {
    background-color: #00e676;
    border-color: #00e676;
    box-shadow: 0 0 10px rgba(0, 230, 118, 0.4);
}
input:checked + .slider:before {
    transform: translateX(20px);
    background-color: #052510;
}
.quality-cards-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.quality-card {
    background: rgba(30, 16, 16, 0.65);
    border: 1px solid rgba(244, 208, 104, 0.2);
    border-radius: 8px;
    padding: 10px 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: all 0.2s ease;
}
.quality-card:hover {
    border-color: rgba(244, 208, 104, 0.5);
    background: rgba(45, 20, 20, 0.75);
}
.quality-card.active {
    border: 1.5px solid #f4d068;
    background: linear-gradient(90deg, rgba(70, 25, 20, 0.85), rgba(45, 20, 15, 0.9));
    box-shadow: 0 0 14px rgba(244, 208, 104, 0.25);
}
.quality-card-top {
    display: flex;
    align-items: center;
    gap: 8px;
}
.q-icon {
    font-size: 16px;
}
.q-title-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
}
.q-name {
    font-family: 'Rajdhani', sans-serif;
    font-size: 13.5px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.5px;
}
.q-tag {
    font-size: 8.5px;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.15);
    color: #f4d068;
    letter-spacing: 0.5px;
}
.q-tag.recommended {
    background: rgba(255, 87, 34, 0.25);
    color: #ff7043;
    border: 1px solid rgba(255, 87, 34, 0.5);
}
.q-tag.saver {
    background: rgba(76, 175, 80, 0.2);
    color: #81c784;
    border: 1px solid rgba(76, 175, 80, 0.5);
}
.q-radio {
    font-size: 14px;
    color: #8c7865;
}
.quality-card.active .q-radio {
    color: #f4d068;
    text-shadow: 0 0 8px #f4d068;
}
.q-features {
    margin: 0;
    padding-left: 18px;
    font-size: 10px;
    color: #a8947d;
    line-height: 1.4;
}
.settings-footer {
    padding: 10px 18px;
    border-top: 1px solid rgba(230, 180, 34, 0.3);
    display: flex;
    justify-content: flex-end;
}
