
:root {
    --bg-deep: #05030D;
    --glass: rgba(5, 3, 13, 0.85);
    --glass-border: rgba(200, 100, 255, 0.2);
    --primary: #a78bfa;
    --primary-glow: rgba(167, 139, 250, 0.4);
    --accent-cyan: #00F0FF;
    --accent-amber: #FFB000;
    --accent-lime: #BFFF00;
    --accent-pink: #FF00E5;
    --accent-coral: #FF6B6B;
    --text-bright: #ffffff;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --text-subtext: #A099B0;
    --danger: #f43f5e;
    --success: #10b981;
    --shadow-heavy: 0 20px 50px rgba(0, 0, 0, 0.8);
    --font-main: 'Outfit', sans-serif;
    --font-heading: 'Teko', sans-serif;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    max-width: 100vw;
    overflow-x: hidden;
}


#cursor-trail-canvas,
.daily-bonus-available,
.cat-notification,
.level-up-notification,
#toast-container {
    max-width: 100vw;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: var(--font-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.5;
}

canvas#star-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: radial-gradient(ellipse at center, #0f0818 0%, #05030D 100%);
}

.hidden { 
    display: none !important; 
}


.custom-scrollbar::-webkit-scrollbar { 
    width: 8px; 
}

.custom-scrollbar::-webkit-scrollbar-track { 
    background: rgba(255, 255, 255, 0.03); 
}

.custom-scrollbar::-webkit-scrollbar-thumb { 
    background: var(--accent-cyan);
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: var(--accent-pink);
}


nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: linear-gradient(180deg, rgba(5, 3, 13, 0.98) 0%, rgba(5, 3, 13, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 240, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 240, 255, 0.08);
    transition: var(--transition-smooth);
    will-change: transform;
}


.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
    opacity: 0.3;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
    min-width: 0;
}

.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-amber) 50%, var(--accent-pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    transition: var(--transition-smooth);
    filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.3));
}

.logo:hover {
    filter: drop-shadow(0 0 30px rgba(0, 240, 255, 0.6));
    transform: scale(1.05);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-shrink: 0;
}

.user-welcome {
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 240, 255, 0.2);
}

.user-welcome .highlight {
    color: var(--accent-cyan);
    font-weight: 800;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.nav-icon-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-bright);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 1.1rem;
    font-weight: 600;
}

.nav-icon-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
    transform: translateY(-3px);
    color: var(--accent-cyan);
}


main {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 2rem 1rem;
    z-index: 1;
}

.container {
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}


.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.stat-card {
    background: rgba(5, 3, 13, 0.9);
    padding: 1rem;
    border-radius: 16px;
    text-align: center;
    backdrop-filter: blur(20px);
    transition: var(--transition-smooth);
    position: relative;
    overflow: visible;
    border: none;
}

.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-cyan));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}


.stat-card:nth-child(1)::before {
    background: linear-gradient(90deg, var(--accent-amber), var(--accent-cyan));
}

.stat-card:nth-child(1) .stat-value {
    color: var(--accent-amber);
}

.stat-card:nth-child(1) .stat-label {
    color: var(--accent-amber);
    opacity: 0.8;
}


.stat-card:nth-child(2)::before {
    background: var(--accent-cyan);
    padding: 3px;
}

.stat-card:nth-child(2) .stat-value {
    color: var(--accent-cyan);
    text-shadow: 0 0 15px var(--accent-cyan);
}

.stat-card:nth-child(2) .stat-label {
    color: var(--accent-cyan);
}


.stat-card:nth-child(3)::before {
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-lime));
}

.stat-card:nth-child(3) .stat-value {
    color: var(--accent-lime);
}

.stat-card:nth-child(3) .stat-label {
    color: var(--accent-lime);
    opacity: 0.8;
}
.stat-label {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 2.5px;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
}

.stat-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.stat-main .stat-value {
    min-width: 5ch;
    text-align: center;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1;
    font-weight: 800;
}


.timer-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.arrow-btn {
    background: rgba(255, 176, 0, 0.15);
    border: 1px solid rgba(255, 176, 0, 0.3);
    color: var(--accent-amber);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 1.1rem;
}

.arrow-btn:hover {
    background: var(--accent-amber);
    border-color: var(--accent-amber);
    color: var(--bg-deep);
    transform: scale(1.15);
    box-shadow: 0 0 15px rgba(255, 176, 0, 0.5);
}


.timer-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.5rem;
}
.timer-adj-btn {
    background: rgba(255, 176, 0, 0.15);
    border: 1px solid rgba(255, 176, 0, 0.3);
    color: var(--accent-amber);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 0.9rem;
}
.timer-adj-btn:hover {
    background: var(--accent-amber);
    border-color: var(--accent-amber);
    color: var(--bg-deep);
    transform: scale(1.15);
    box-shadow: 0 0 15px rgba(255, 176, 0, 0.5);
}
.timer-label-text {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    min-width: 100px;
    text-align: center;
}


.rank-neighbors {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.rank-row {
    display: flex;
    align-items: center;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    transition: var(--transition-smooth);
}
.rank-row:hover {
    background: rgba(255, 255, 255, 0.05);
}
.rank-row--me {
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.25);
}
.rank-row--me:hover {
    background: rgba(0, 240, 255, 0.12);
}
.rank-pos {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--accent-amber);
    min-width: 50px;
}
.rank-row--me .rank-pos {
    color: var(--accent-cyan);
}
.rank-name {
    flex: 1;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.rank-row--me .rank-name {
    color: var(--accent-cyan);
}
.rank-cps {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-muted);
    margin-left: 1rem;
}
.rank-row--me .rank-cps {
    color: var(--accent-cyan);
}


.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(0, 240, 255, 0.2);
    border-radius: 28px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

#click-area {
    width: 100%;
    height: 400px;
    position: relative;
    cursor: crosshair;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    padding: 2rem;
}

#click-area:hover {
    border-color: rgba(0, 240, 255, 0.4);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 240, 255, 0.15);
}

#click-area:active {
    transform: scale(0.98);
}

.click-pop {
    animation: smash-pulse 0.2s ease-out;
}

@keyframes smash-pulse {
    0% {
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 240, 255, 0.15);
    }
    50% {
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 60px rgba(255, 255, 255, 0.4);
    }
    100% {
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 240, 255, 0.15);
    }
}

.msg-content {
    text-align: center;
    pointer-events: none;
}

#start-msg {
    font-family: var(--font-heading);
    font-size: 5.5rem;
    line-height: 1;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-weight: 800;
    background: linear-gradient(180deg, #FFFFFF 0%, var(--accent-pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#sub-msg {
    color: var(--text-subtext);
    font-size: 0.95rem;
    max-width: 350px;
    margin: 0 auto;
    letter-spacing: 0.5px;
}


.glow-btn {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-pink));
    color: var(--bg-deep);
    border: none;
    padding: 0.75rem 1.8rem;
    border-radius: 12px;
    font-weight: 700;
    font-family: var(--font-main);
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 8px 20px rgba(0, 240, 255, 0.3);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.glow-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 240, 255, 0.5);
}

.glow-btn:active {
    transform: translateY(-1px);
}

.stop-btn {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 14px;
    width: 100%;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 1.5px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(244, 63, 94, 0.4);
    transition: var(--transition-smooth);
    text-transform: uppercase;
}

.stop-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(244, 63, 94, 0.6);
}

.ghost-btn {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.7rem 1.6rem;
    border-radius: 10px;
    font-weight: 600;
    font-family: var(--font-main);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.ghost-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.text-btn {
    background: none;
    border: none;
    color: var(--accent-coral);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    letter-spacing: 1px;
    opacity: 0.9;
    transition: var(--transition-smooth);
    text-transform: uppercase;
}

.text-btn:hover {
    opacity: 1;
    text-decoration: underline;
    transform: translateX(2px);
}

.full-width {
    width: 100%;
}


.history-section {
    padding: 2rem;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid;
    border-image: linear-gradient(90deg, var(--accent-cyan), transparent) 1;
    padding-bottom: 1.2rem;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.teko-subtitle {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    letter-spacing: 2px;
    color: var(--text-bright);
    text-transform: uppercase;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 8px;
}

.history-item {
    background: rgba(5, 3, 13, 0.7);
    padding: 1.2rem;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid var(--accent-cyan);
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 240, 255, 0.15);
}

.history-item:hover {
    transform: translateX(6px);
    background: rgba(0, 240, 255, 0.08);
    box-shadow: 0 8px 20px rgba(0, 240, 255, 0.15);
}

.hist-main {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.hist-main strong {
    font-size: 1.3rem;
    color: var(--accent-cyan);
}

.hist-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
}


.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
    padding: 1rem;
}

.modal-overlay.hidden {
    display: none !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-box {
    width: 100%;
    max-width: 480px;
    padding: 2.5rem;
    background: rgba(5, 3, 13, 0.95);
    border: 1.5px solid rgba(0, 240, 255, 0.2);
    border-radius: 24px;
    backdrop-filter: blur(30px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    position: relative;
    overflow: hidden;
}

.modal-box.small {
    max-width: 400px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

.teko-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    line-height: 1;
    font-weight: 800;
    color: var(--text-bright);
}

.close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 1.8rem;
    font-weight: bold;
}

.close-btn:hover {
    color: var(--accent-cyan);
    background: rgba(0, 240, 255, 0.15);
    border-color: var(--accent-cyan);
    transform: rotate(90deg) scale(1.1);
}

#articles-modal .articles-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin: 0.3rem 0 0.9rem;
}

#articles-modal .article-row {
    display: block;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition-smooth);
}

#articles-modal .article-row:hover {
    border-color: var(--accent-cyan);
    background: rgba(0, 240, 255, 0.08);
    color: var(--text-bright);
    text-decoration: none;
    transform: translateY(-2px);
}

#articles-modal .article-row b {
    display: block;
    margin-bottom: 0.18rem;
    color: var(--text-bright);
    font-size: 0.98rem;
}

#articles-modal .article-row span {
    display: block;
    color: var(--text-muted);
    font-size: 0.84rem;
    line-height: 1.4;
}

#articles-modal .articles-all {
    display: block;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-pink));
    color: var(--bg-deep);
    font-weight: 800;
    text-align: center;
    text-decoration: none;
}

#articles-modal .articles-all:hover {
    filter: brightness(1.06);
    text-decoration: none;
}


.auth-content {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.auth-input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.95rem;
    border-radius: 12px;
    color: white;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.auth-input:focus {
    border-color: var(--accent-cyan);
    outline: 2px solid var(--accent-cyan);
    outline-offset: 1px;
    background: rgba(0, 240, 255, 0.08);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.auth-input::placeholder {
    color: var(--text-muted);
}

.form-msg {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    min-height: 1.2rem;
    letter-spacing: 0.3px;
}

.form-msg.error {
    color: var(--accent-coral);
}

.form-msg.success {
    color: var(--success);
}

.auth-footer {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.link-text {
    color: var(--accent-cyan);
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition-smooth);
}

.link-text:hover {
    text-decoration: underline;
    color: var(--accent-pink);
}


.lang-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.lang-option {
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.2);
    padding: 1rem;
    border-radius: 12px;
    color: var(--text-bright);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
}

.lang-option:hover {
    background: rgba(0, 240, 255, 0.2);
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
}

.lang-option.active {
    background: var(--accent-cyan);
    border-color: var(--accent-cyan);
    color: var(--bg-deep);
}


footer {
    background: rgba(5, 3, 13, 0.95);
    border-top: 1px solid rgba(0, 240, 255, 0.1);
    padding: 4rem 5% 2rem;
    margin-top: 6rem;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    letter-spacing: 1px;
    color: var(--accent-cyan);
    text-transform: uppercase;
}

.footer-section p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    transition: var(--transition-smooth);
    text-decoration: none;
    font-size: 1.2rem;
}

.social-links a:hover {
    background: var(--accent-cyan);
    border-color: var(--accent-cyan);
    color: var(--bg-deep);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 240, 255, 0.3);
}

.footer-link, .footer-link-btn {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 0.9rem;
    transition: var(--transition-smooth);
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-main);
    padding: 0;
}

.footer-link:hover, .footer-link-btn:hover {
    color: var(--accent-cyan);
    text-decoration: underline;
    transform: translateX(3px);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-close-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    padding: 0.5rem;
}

.footer-close-btn:hover {
    color: var(--accent-cyan);
    transform: translateY(-50%) scale(1.2);
}


.side-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background: rgba(5, 3, 13, 0.98);
    z-index: 2000;
    border-left: 1px solid rgba(0, 240, 255, 0.1);
    transition: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    padding: 2rem;
    backdrop-filter: blur(20px);
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.6);
}

.side-drawer.open {
    right: 0;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    gap: 1rem;
}

.drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.menu-section {
    margin-bottom: 2.5rem;
}

.menu-section-title {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    color: var(--accent-cyan);
    text-transform: uppercase;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.game-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1rem;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    border-radius: 12px;
    transition: var(--transition-smooth);
    font-size: 1rem;
}

.game-link i {
    font-size: 1.3rem;
    color: var(--accent-cyan);
}

.game-link:hover {
    background: rgba(0, 240, 255, 0.1);
    color: var(--accent-cyan);
    transform: translateX(8px);
}


.drawer-nav-compact {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.5rem 0;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.65rem 1rem;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 10px;
    transition: var(--transition-smooth);
}
.menu-link i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    color: var(--accent-cyan);
    opacity: 0.7;
}
.menu-link:hover {
    background: rgba(0, 240, 255, 0.08);
    color: var(--accent-cyan);
}
.menu-link.active-link {
    background: rgba(0, 240, 255, 0.12);
    color: var(--accent-cyan);
}

.menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 0.4rem 0.5rem;
}


.menu-link-row {
    display: flex;
    align-items: center;
    justify-content: center;
}
.menu-link-row .menu-link {
    flex: 0 1 auto;
    min-width: 0;
}
[data-tests-menu] .menu-link {
    min-width: 0;
}
[data-tests-menu] .menu-link span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.menu-link[href$="/guess-steam-game/"] {
    min-width: 0;
}
.menu-link[href$="/guess-steam-game/"] span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.menu-expand-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.65rem 0.8rem;
    font-size: 0.7rem;
    transition: var(--transition-smooth);
    border-radius: 8px;
}
.menu-expand-btn:hover {
    color: var(--accent-cyan);
    background: rgba(0, 240, 255, 0.08);
}
.menu-has-sub.expanded .menu-expand-btn i {
    transform: rotate(180deg);
}
.menu-expand-btn i {
    transition: transform 0.25s ease;
}

.menu-sub {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 1.2rem;
}
.menu-has-sub.expanded .menu-sub {
    max-height: 200px;
}

.menu-sublink {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.45rem 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 8px;
    transition: var(--transition-smooth);
    opacity: 0.75;
}
.menu-sublink i {
    font-size: 0.75rem;
    width: 16px;
    text-align: center;
    color: var(--accent-pink);
}
.menu-sublink:hover {
    background: rgba(0, 240, 255, 0.06);
    color: var(--accent-cyan);
    opacity: 1;
}




.menu-section-heading {
    font-family: var(--font-heading);
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-cyan);
    opacity: 0.4;
    padding: 0.65rem 1rem 0.15rem;
    pointer-events: none;
    user-select: none;
    margin: 0;
}


.menu-has-sub.expanded .menu-sub.sub-lg {
    max-height: 300px;
}


.menu-sublink .icon-time   { color: var(--accent-cyan,  #00F0FF) !important; }
.menu-sublink .icon-game   { color: var(--accent-lime,  #BFFF00) !important; }
.menu-sublink .icon-reflex { color: var(--accent-amber, #FFB000) !important; }


.menu-link .icon-game   { color: var(--accent-lime,  #BFFF00) !important; opacity: 1; }
.menu-link .icon-reflex { color: var(--accent-amber, #FFB000) !important; opacity: 1; }


.side-drawer .drawer-nav-compact {
    overflow-y: auto;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}
.side-drawer .drawer-nav-compact::-webkit-scrollbar {
    width: 4px;
}
.side-drawer .drawer-nav-compact::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}


.mg-heading {
    text-align: center;
    margin: 1.6rem 0 .2rem;
    font-family: var(--font-main, 'Outfit'), sans-serif;
    font-size: .92rem;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--text-soft, #c9c4e0);
}
.mg-row { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin: .5rem 0 .4rem; }
.mg-ico {
    width: 58px; height: 58px; border-radius: 16px; font-size: 1.5rem;
    display: flex; align-items: center; justify-content: center;
    color: #fff; text-decoration: none;
    background: linear-gradient(135deg, var(--g1), var(--g2));
    border: 1px solid rgba(255,255,255,.22);
    box-shadow: 0 4px 14px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.25);
    transition: transform .16s, box-shadow .16s, filter .16s;
}
.mg-ico:hover { transform: translateY(-4px) scale(1.07); filter: brightness(1.08); box-shadow: 0 10px 26px var(--glow), inset 0 1px 0 rgba(255,255,255,.3); }
.mg-ico:active { transform: translateY(-1px) scale(1.02); }
.mg-ico i { filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)); }
@media (max-width: 480px) { .mg-ico { width: 52px; height: 52px; font-size: 1.35rem; border-radius: 14px; } }


.overlay-bg {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1999;
    backdrop-filter: blur(5px);
}


.section-box {
    background: rgba(5, 3, 13, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.2rem;
    border-radius: 24px;
    margin-bottom: 2rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.locked-content {
    text-align: center;
    padding: 4rem 2rem;
}

.auth-form-inline {
    margin-top: 2rem;
    background: rgba(0, 240, 255, 0.08);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(0, 240, 255, 0.2);
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-cyan);
    word-break: break-all;
    margin-top: 0.5rem;
}

.value-with-copy {
    display: flex;
    align-items: center;
    gap: 12px;
}

.copy-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--accent-cyan);
    width: 44px;
    height: 44px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    flex-shrink: 0;
    font-size: 1.1rem;
}

.copy-btn:hover {
    background: var(--accent-cyan);
    border-color: var(--accent-cyan);
    color: var(--bg-deep);
    transform: scale(1.1);
}

.label {
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 2px;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
}

.form-group {
    margin-bottom: 1.5rem;
}

.divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

.danger-zone {
    border-left: 4px solid var(--accent-coral);
    background: rgba(255, 107, 107, 0.08);
}

.danger-btn {
    background: linear-gradient(135deg, var(--accent-coral) 0%, #e05555 100%);
}

.danger-btn:hover {
    box-shadow: 0 12px 30px rgba(255, 107, 107, 0.3);
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.modal-actions button {
    flex: 1;
    min-width: 120px;
}

.friend-card {
    background: rgba(0, 240, 255, 0.08);
    padding: 1.4rem;
    border-radius: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    border-left: 4px solid var(--accent-cyan);
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 240, 255, 0.15);
}

.friend-card:hover {
    background: rgba(0, 240, 255, 0.15);
    transform: translateX(6px);
    box-shadow: 0 12px 30px rgba(0, 240, 255, 0.2);
}

.friend-left strong {
    display: block;
    margin-bottom: 0.6rem;
    font-size: 1.1rem;
    color: var(--accent-cyan);
}

.friend-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.friend-actions button {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    white-space: nowrap;
    border-radius: 10px;
}

.blogs-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.blog-link {
    background: rgba(0, 240, 255, 0.08);
    padding: 1.2rem;
    border-radius: 12px;
    border-left: 3px solid var(--accent-cyan);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 240, 255, 0.15);
}

.blog-link:hover {
    background: rgba(0, 240, 255, 0.15);
    border-left-color: var(--accent-pink);
    transform: translateX(6px);
    box-shadow: 0 10px 25px rgba(0, 240, 255, 0.2);
}

.blog-title {
    font-weight: 700;
    color: var(--text-bright);
    font-size: 1rem;
}

.blogs-footer {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-score {
    font-family: var(--font-heading);
    font-size: 8rem;
    line-height: 1;
    background: linear-gradient(180deg, #FFFFFF 0%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 1rem 0;
    font-weight: 800;
}

.rank-badge {
    display: inline-block;
    padding: 0.7rem 1.8rem;
    background: rgba(0, 240, 255, 0.15);
    border: 1px solid var(--accent-cyan);
    border-radius: 30px;
    font-weight: 800;
    color: var(--accent-cyan);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.action-buttons {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.action-buttons button {
    flex: 1;
    min-width: 120px;
}

body[data-page="account"] main {
    min-height: calc(100vh - 200px);
}


@media (max-width: 1024px) {
    nav {
        padding: 0.8rem 3%;
    }

    .logo {
        font-size: 2rem;
    }

    .nav-right {
        gap: 1.5rem;
    }

    .nav-icon-btn {
        width: 40px;
        height: 40px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-value {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .user-welcome {
        display: none !important;
    }

    nav {
        padding: 0.7rem 2%;
    }

    .logo {
        font-size: 1.6rem;
    }

    .nav-actions {
        gap: 0.4rem;
    }

    .nav-icon-btn {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .container {
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 1.2rem;
    }

    .stat-value {
        font-size: 2.2rem;
    }

    #click-area {
        height: 300px;
        padding: 1.5rem;
    }

    #start-msg {
        font-size: 3.5rem;
    }

    #sub-msg {
        font-size: 0.95rem;
    }

    .history-section {
        padding: 1.5rem;
    }

    .history-header {
        flex-direction: column;
        align-items: flex-start;
        border: none;
        padding-bottom: 0;
        margin-bottom: 1rem;
    }

    .teko-subtitle {
        font-size: 1.5rem;
    }

    .modal-box {
        width: 95%;
        max-width: 100%;
        padding: 1.8rem;
    }

    .lang-grid {
        grid-template-columns: 1fr;
    }

    .auth-input {
        font-size: 16px;
    }

    .side-drawer {
        width: 85vw;
        max-width: 280px;
        right: -85vw;
    }

    footer {
        padding: 2.5rem 3%;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-section {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .section-box {
        padding: 1.5rem;
    }

    .profile-grid {
        grid-template-columns: 1fr;
    }

    .friend-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .friend-actions {
        width: 100%;
        flex-direction: column;
    }

    .friend-actions button {
        width: 100%;
    }

    .modal-actions {
        flex-direction: column;
    }

    .modal-actions button {
        width: 100%;
    }

    .hero-score {
        font-size: 5rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.4rem;
    }

    .nav-icon-btn {
        width: 34px;
        height: 34px;
        font-size: 0.8rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-value {
        font-size: 2rem;
    }

    #click-area {
        height: 260px;
    }

    #start-msg {
        font-size: 2.5rem;
    }

    .container {
        padding: 0 0.8rem;
    }

    .hero-score {
        font-size: 4.5rem;
    }

    .modal-box {
        padding: 1.3rem;
    }

    footer {
        padding: 1.5rem 2%;
    }
}

@media (max-height: 600px) and (orientation: landscape) {
    #click-area {
        height: 180px;
    }

    #start-msg {
        font-size: 2.2rem;
        margin-bottom: 0.3rem;
    }

    .stat-value {
        font-size: 1.6rem;
    }
}

* {
    max-width: 100%;
}

body {
    -webkit-user-select: none;
    user-select: none;
}

input, button, a {
    -webkit-user-select: text;
    user-select: text;
}

input, select, textarea {
    font-size: 16px !important;
}

body[data-page="leaderboard"] .container {
    max-width: 800px;
}

.leaderboard-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.leaderboard-header h1,
.leaderboard-header h2 {
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.leaderboard-header h1 i,
.leaderboard-header h2 i {
    color: var(--accent-amber);
}

.filter-tabs {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.filter-tab {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
}

.filter-tab:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.filter-tab.active {
    background: var(--accent-cyan);
    border-color: var(--accent-cyan);
    color: var(--bg-deep);
}

.time-filter-tabs {
    display: flex;
    gap: 0.4rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.2rem;
    padding: 0.6rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}

.time-filter-tab {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 0.8rem;
    transition: var(--transition-smooth);
}

.time-filter-tab:hover {
    color: var(--accent-cyan);
}

.time-filter-tab.active {
    background: rgba(0, 240, 255, 0.2);
    color: var(--accent-cyan);
}

.leaderboard-container {
    padding: 0;
    overflow: hidden;
}

.leaderboard-table-header {
    display: grid;
    grid-template-columns: 50px 1fr 80px 70px 60px;
    padding: 1rem 1.2rem;
    background: rgba(0, 240, 255, 0.1);
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--accent-cyan);
    text-transform: uppercase;
    align-items: center;
}

.leaderboard-table-header span {
    text-align: center;
}

.leaderboard-table-header span:nth-child(2) {
    text-align: left;
}

.leaderboard-list {
    max-height: 450px;
    overflow-y: auto;
}

.lb-extend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: calc(100% - 2rem);
    margin: 0.8rem 1rem 1rem;
    padding: 0.7rem 1rem;
    color: var(--accent-cyan);
    background: rgba(0, 240, 255, 0.07);
    border: 1px solid rgba(0, 240, 255, 0.25);
    border-radius: 10px;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.lb-extend:hover { background: rgba(0, 240, 255, 0.13); }
.lb-extend svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lb-extend small { color: var(--text-muted); font-weight: 500; }

.lb-row {
    display: grid;
    grid-template-columns: 50px 1fr 80px 70px 60px;
    padding: 0.8rem 1.2rem;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
}

.lb-row:hover {
    background: rgba(0, 240, 255, 0.05);
}

.lb-row.highlight-row {
    background: rgba(0, 240, 255, 0.1);
    border-left: 3px solid var(--accent-cyan);
}


.lb-rank {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lb-rank .rank-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

.lb-rank .rank-number.gold {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    font-size: 0.9rem;
}

.lb-rank .rank-number.silver {
    background: linear-gradient(135deg, #E8E8E8, #A8A8A8);
    color: #333;
}

.lb-rank .rank-number.bronze {
    background: linear-gradient(135deg, #CD7F32, #8B5A2B);
    color: #fff;
}

.lb-rank .rank-medal {
    font-size: 1.2rem;
    line-height: 1;
}

.lb-player {
    min-width: 0;
    overflow: hidden;
}

.player-name {
    font-weight: 700;
    color: var(--text-bright);
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.player-tag {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.player-tag::before {
    content: '#';
}

.lb-cps {
    text-align: center;
}

.lb-clicks, .lb-duration {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.cps-value {
    font-weight: 800;
    font-size: 1rem;
    color: var(--accent-cyan);
    display: block;
    line-height: 1.2;
    text-align: center;
}

.cps-rank {
    font-size: 0.55rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 700;
    display: inline-block;
}

.cps-rank.godlike { background: rgba(255, 215, 0, 0.2); color: #FFD700; }
.cps-rank.insane { background: rgba(255, 0, 229, 0.2); color: var(--accent-pink); }
.cps-rank.pro { background: rgba(0, 240, 255, 0.2); color: var(--accent-cyan); }
.cps-rank.average { background: rgba(191, 255, 0, 0.2); color: var(--accent-lime); }
.cps-rank.beginner { background: rgba(255, 255, 255, 0.1); color: var(--text-muted); }

.lb-clicks, .lb-duration {
    display: none;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.your-rank-section {
    margin-top: 1.5rem;
    padding: 1.5rem;
}

.your-rank-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.your-rank-item {
    text-align: center;
}

.your-rank-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.4rem;
}

.your-rank-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-bright);
}

.your-rank-value.highlight {
    color: var(--accent-cyan);
}

.loading-indicator {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.loading-indicator i {
    margin-right: 0.5rem;
}

.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.5;
    display: block;
}


.account-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.account-tab {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 0.85rem;
}

.account-tab:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.account-tab.active {
    background: rgba(0, 240, 255, 0.15);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.account-tab i {
    margin-right: 0.4rem;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}


.stats-overview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-box {
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.15);
    border-radius: 12px;
    padding: 1.2rem;
    text-align: center;
}

.stat-box-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-cyan);
    margin-bottom: 0.3rem;
}

.stat-box-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}


.personal-bests-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.8rem;
}

.pb-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
}

.pb-duration {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.pb-value {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--accent-lime);
}

.pb-value.empty {
    color: var(--text-muted);
    font-size: 1rem;
}


.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1rem;
}

.achievement-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.2rem;
    text-align: center;
    transition: var(--transition-smooth);
}

.achievement-card.earned {
    background: rgba(255, 176, 0, 0.1);
    border-color: rgba(255, 176, 0, 0.3);
}

.achievement-card.locked {
    opacity: 0.5;
    filter: grayscale(1);
}

.achievement-card-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.achievement-card-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 0.3rem;
}

.achievement-card-desc {
    font-size: 0.7rem;
    color: var(--text-muted);
    line-height: 1.3;
}


.friend-modal-content {
    padding: 1rem 0;
}

.friend-modal-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.friend-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-pink));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--bg-deep);
    flex-shrink: 0;
}

.friend-modal-info {
    min-width: 0;
}

.friend-modal-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
    word-break: break-all;
}

.friend-modal-info .global-tag {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.friend-stats-mini {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.friend-stat-item {
    text-align: center;
}

.friend-stat-value {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--accent-cyan);
}

.friend-stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.friend-history-section h4 {
    font-size: 1rem;
    margin-bottom: 0.8rem;
    color: var(--text-bright);
}

.friend-history-list {
    max-height: 180px;
    overflow-y: auto;
}


@media (min-width: 768px) {
    .leaderboard-table-header,
    .lb-row {
        grid-template-columns: 70px 1fr 90px 80px 70px;
    }
    
    .lb-clicks, .lb-duration {
        display: block;
    }
}

@media (max-width: 600px) {
    .account-tab span {
        display: none;
    }
    
    .account-tab i {
        margin-right: 0;
    }
    
    .stats-overview {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-overview .stat-box:last-child {
        grid-column: span 2;
    }
    
    .personal-bests-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filter-tab {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .leaderboard-header h1,
    .leaderboard-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 400px) {
    .personal-bests-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.danger-zone-toggle {
    background: rgba(255, 107, 107, 0.08);
    border: 1px solid rgba(255, 107, 107, 0.15);
    color: var(--text-muted);
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 0.85rem;
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition-smooth);
    opacity: 0.6;
    margin-top: 1.5rem;
}

.danger-zone-toggle:hover {
    opacity: 0.8;
    border-color: rgba(255, 107, 107, 0.3);
}

.danger-zone-toggle i {
    transition: transform 0.3s ease;
}

.danger-zone-toggle.open i:last-child {
    transform: rotate(180deg);
}

.danger-zone-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease, margin 0.3s ease;
    background: rgba(255, 107, 107, 0.05);
    border-radius: 12px;
    margin-top: 0;
}

.danger-zone-content.open {
    max-height: 200px;
    padding: 1.2rem;
    margin-top: 0.8rem;
    border: 1px solid rgba(255, 107, 107, 0.15);
}

.danger-zone-content p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.danger-zone-content .danger-btn {
    background: transparent;
    border: 1px solid rgba(255, 107, 107, 0.4);
    color: var(--accent-coral);
    padding: 0.7rem 1.2rem;
    font-size: 0.85rem;
}

.danger-zone-content .danger-btn:hover {
    background: var(--accent-coral);
    color: var(--bg-deep);
}


@media (max-width: 600px) {
    .leaderboard-table-header,
    .lb-row {
        grid-template-columns: 40px 1fr 55px;
        padding: 0.6rem 0.8rem;
    }
    
    .lb-clicks, .lb-duration {
        display: none;
    }
    
    .lb-rank .rank-number {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }
    
    .lb-rank .rank-medal {
        font-size: 1rem;
    }
    
    .player-name {
        font-size: 0.8rem;
    }
    
    .player-tag {
        font-size: 0.65rem;
    }
    
    .cps-value {
        font-size: 0.9rem;
    }
    
    .cps-rank {
        font-size: 0.5rem;
        padding: 0.15rem 0.3rem;
    }
}


@media (max-width: 600px) {
    
    #click-area {
        height: 280px;
        min-height: 250px;
    }
    
    #start-msg {
        font-size: 2.2rem;
    }
    
    #sub-msg {
        font-size: 0.8rem;
    }
    
    
    .timer-controls {
        gap: 0.2rem;
        justify-content: center;
    }
    
    .arrow-btn {
        width: 26px;
        height: 26px;
        font-size: 0.7rem;
    }
    
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .stat-card {
        padding: 0.8rem;
    }
    
    
    .stat-card:first-child::before {
        background: linear-gradient(180deg, var(--accent-amber), rgba(255, 152, 0, 0.3)) !important;
    }
    
    
    .stat-card:nth-child(2)::before {
        background: linear-gradient(180deg, var(--accent-cyan), rgba(0, 240, 255, 0.3)) !important;
    }
    
    
    .stat-card:last-child::before {
        background: linear-gradient(180deg, var(--accent-lime), rgba(178, 255, 89, 0.3)) !important;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.6rem;
        letter-spacing: 0.5px;
        margin-bottom: 0.2rem;
    }
    
    
    .history-section {
        padding: 0.8rem;
    }
    
    .history-section h3 {
        font-size: 1rem;
    }
    
    .history-list {
        max-height: 150px;
    }
    
    .history-item {
        padding: 0.6rem;
        font-size: 0.85rem;
    }
    
    
    .footer-section {
        text-align: center;
    }
    
    .footer-link-btn {
        display: block;
        width: 100%;
        text-align: center;
    }

}

@media (max-width: 400px) {
    #click-area {
        height: 180px;
    }
    
    #start-msg {
        font-size: 1.6rem;
    }
    
    .stat-value {
        font-size: 1.4rem;
    }
    
    .arrow-btn {
        width: 22px;
        height: 22px;
        font-size: 0.6rem;
    }
}


.lang-btn-nav {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 1.1rem;
}

.lang-btn-nav:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}


.auth-divider {
    display: flex;
    align-items: center;
    margin: 1rem 0;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.auth-divider span {
    padding: 0 1rem;
}


.simple-toast {
    position: fixed;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(5, 3, 13, 0.95);
    border: 1px solid var(--accent-cyan);
    border-radius: 10px;
    padding: 0.8rem 1.5rem;
    color: var(--text-bright);
    font-size: 0.9rem;
    z-index: 3000;
    transition: bottom 0.3s ease;
    white-space: nowrap;
}

.simple-toast.show {
    bottom: 30px;
}


.cps-game-recommendations {
    width: 100%;
    margin: 1.45rem auto 0.45rem;
    text-align: center;
}

.cps-game-recommendations .mg-heading {
    margin: 0 0 0.65rem;
    color: var(--text-soft, #c9c4e0);
    font: 600 1rem/1.2 var(--font-main, "Outfit"), sans-serif;
    letter-spacing: 0.02em;
}

.cps-game-recommendations .mg-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin: 0;
}

.cps-game-recommendations .mg-ico {
    display: flex;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--g1), var(--g2));
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    font-size: 1.5rem;
    text-decoration: none;
    transition: transform 0.16s, box-shadow 0.16s, filter 0.16s;
}

.cps-game-recommendations .mg-ico:hover,
.cps-game-recommendations .mg-ico:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.82);
    outline-offset: 3px;
    filter: brightness(1.08);
    box-shadow: 0 10px 26px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-4px) scale(1.07);
}

.cps-game-recommendations .mg-ico:active {
    transform: translateY(-1px) scale(1.02);
}

.cps-game-recommendations .mg-ico i {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

@media (max-width: 480px) {
    .cps-game-recommendations .mg-ico {
        width: 52px;
        height: 52px;
        border-radius: 14px;
        font-size: 1.35rem;
    }
}


.active-link {
    background: rgba(0, 240, 255, 0.1) !important;
    color: var(--accent-cyan) !important;
}


.seo-cards-section {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.seo-section-intro {
    max-width: 850px;
    margin: -0.55rem auto 0;
    color: rgba(226, 232, 240, 0.78);
    font-size: 0.92rem;
    line-height: 1.7;
    text-align: center;
    text-wrap: balance;
}

.seo-card {
    border-radius: 20px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.seo-card:hover {
    transform: translateY(-4px);
}

.seo-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.seo-card p, .seo-card li {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
}

.seo-card ul {
    margin-left: 1.2rem;
    margin-top: 0.8rem;
}

.seo-card li {
    margin-bottom: 0.5rem;
}

.seo-card strong {
    color: #fff;
}

body[data-page="m3"] .m3-seo-h1 {
    position: relative;
    width: fit-content;
    max-width: min(100%, 920px);
    margin: 0 auto 1rem;
    padding: 0.1rem 0.7rem 0.75rem;
    color: #fff;
    letter-spacing: 0;
    background: linear-gradient(135deg, #ffffff 0%, #f9a8d4 38%, #a78bfa 70%, #67e8f9 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 28px rgba(236, 72, 153, 0.24);
}

body[data-page="m3"] .m3-seo-h1::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: min(68%, 360px);
    height: 3px;
    border-radius: 999px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, rgba(20, 184, 166, 0), rgba(45, 212, 191, 0.95), rgba(236, 72, 153, 0.9), rgba(20, 184, 166, 0));
    box-shadow: 0 0 18px rgba(236, 72, 153, 0.35);
}


.seo-card--pulse {
    background: linear-gradient(135deg, rgba(0, 100, 150, 0.3) 0%, rgba(0, 50, 80, 0.5) 100%);
    border: 1px solid rgba(0, 240, 255, 0.3);
}

.seo-card--pulse h3 {
    color: var(--accent-cyan);
}


.seo-card--history {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.22) 0%, rgba(59, 130, 246, 0.18) 48%, rgba(236, 72, 153, 0.14) 100%);
    border: 1px solid rgba(45, 212, 191, 0.38);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.seo-card--history h3 {
    color: #5eead4;
}


.seo-card--minecraft {
    background: linear-gradient(180deg, rgba(76, 175, 80, 0.25) 0%, rgba(121, 85, 72, 0.35) 100%);
    border: 1px solid rgba(76, 175, 80, 0.4);
}

.seo-card--minecraft h3 {
    color: #4CAF50;
}


.seo-card--techniques {
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.25) 0%, rgba(233, 30, 99, 0.2) 100%);
    border: 1px solid rgba(156, 39, 176, 0.4);
    cursor: pointer;
}

.seo-card--techniques:active {
    transform: scale(0.98);
}

.seo-card--techniques h3 {
    color: #E040FB;
}

.technique-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 0.8rem 1rem;
    margin-bottom: 0.8rem;
    border-left: 3px solid transparent;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.technique-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.technique-item.jitter { border-left-color: #FF5722; }
.technique-item.butterfly { border-left-color: #E040FB; }
.technique-item.drag { border-left-color: #FFD700; }

.technique-item strong {
    display: block;
    margin-bottom: 0.3rem;
}


.seo-card--hardware {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.2) 0%, rgba(255, 87, 34, 0.25) 100%);
    border: 1px solid rgba(255, 152, 0, 0.4);
}

.seo-card--hardware h3 {
    color: var(--accent-amber);
}


.seo-card--training {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.2) 0%, rgba(0, 188, 212, 0.25) 100%);
    border: 1px solid rgba(33, 150, 243, 0.4);
}

.seo-card--training h3 {
    color: #03A9F4;
}


.seo-card--records {
    background: linear-gradient(135deg, rgba(109, 40, 217, 0.24) 0%, rgba(49, 46, 129, 0.32) 100%);
    border: 1px solid rgba(167, 139, 250, 0.4);
}

.seo-card--records h3 {
    color: #c4b5fd;
}

.training-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.training-step-num {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-pink));
    color: var(--bg-deep);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    flex-shrink: 0;
}


.seo-card--health {
    background: linear-gradient(135deg, rgba(139, 195, 74, 0.2) 0%, rgba(76, 175, 80, 0.25) 100%);
    border: 1px solid rgba(139, 195, 74, 0.4);
}

.seo-card--health h3 {
    color: var(--accent-lime);
}


@media (max-width: 600px) {
    .seo-card {
        padding: 1.2rem;
    }
    
    .seo-card h3 {
        font-size: 1.2rem;
    }
    
    .seo-card p, .seo-card li {
        font-size: 0.85rem;
    }
}


.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.faq-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.faq-question {
    padding: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--text-bright);
    transition: var(--transition-smooth);
}

.faq-question:hover {
    background: rgba(0, 240, 255, 0.1);
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--accent-cyan);
}

.faq-item.open .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.faq-item.open .faq-answer {
    max-height: 200px;
    padding: 0 1rem 1rem;
}


.faq-section {
    margin-top: 2rem;
    background: rgba(0, 240, 255, 0.03);
    border: 1px solid rgba(0, 240, 255, 0.15);
    border-radius: 20px;
    overflow: hidden;
}

.faq-section-title {
    padding: 1.2rem 1.5rem;
    margin: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--accent-cyan);
    font-size: 1.5rem;
    transition: var(--transition-smooth);
    user-select: none;
}

.faq-section-title:hover {
    background: rgba(0, 240, 255, 0.05);
}

.faq-section-title .faq-chevron {
    margin-left: auto;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.faq-section-title.open .faq-chevron {
    transform: rotate(180deg);
}

.faq-section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0 1rem;
}

.faq-section-content.open {
    max-height: 2500px;
    padding: 0.5rem 1rem 1rem;
}

.faq-section-content .faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    margin-bottom: 0.8rem;
    overflow: hidden;
}

.faq-section-content .faq-item:last-child {
    margin-bottom: 0;
}

.faq-section-content .faq-question {
    padding: 1rem 1.2rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-bright);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
}

.faq-section-content .faq-question:hover {
    background: rgba(0, 240, 255, 0.05);
}

.faq-section-content .faq-question span {
    flex: 1;
    padding-right: 1rem;
}

.faq-section-content .faq-question i {
    color: var(--accent-cyan);
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.open .faq-question i {
    transform: rotate(180deg);
}

.faq-section-content .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-muted);
    padding: 0 1.2rem;
}

.faq-item.open .faq-answer {
    max-height: 300px;
    padding: 0 1.2rem 1rem;
}


.friend-modal-history {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.friend-history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    margin-bottom: 0.4rem;
}

.fh-cps {
    font-weight: 700;
    color: var(--accent-cyan);
}

.fh-info {
    font-size: 0.75rem;
    color: var(--text-muted);
}


.achievement-card.secret {
    background: rgba(128, 0, 128, 0.1);
    border-color: rgba(128, 0, 128, 0.3);
}

.achievement-card.secret .achievement-card-icon {
    opacity: 0.5;
}


.seo-card h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}


#start-msg {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
}


.footer-contact {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.footer-contact a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-contact a:hover {
    color: var(--accent-pink);
    text-decoration: underline;
}


.achievement-notification {
    position: fixed;
    top: 20px;
    right: -400px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 152, 0, 0.3));
    border: 2px solid rgba(255, 215, 0, 0.5);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 10000;
    transition: right 0.5s ease;
    box-shadow: 0 8px 32px rgba(255, 215, 0, 0.3);
    backdrop-filter: blur(10px);
}

.achievement-notification.show {
    right: 20px;
}

.achievement-notif-icon {
    font-size: 2.5rem;
    animation: achievePulse 1s ease infinite;
}

@keyframes achievePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.achievement-notif-content {
    display: flex;
    flex-direction: column;
}

.achievement-notif-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-amber);
    font-weight: 600;
}

.achievement-notif-name {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--text-bright);
}

@media (max-width: 600px) {
    .achievement-notification {
        right: -100%;
        left: 10px;
        right: 10px;
        top: auto;
        bottom: -100px;
    }
    
    .achievement-notification.show {
        right: 10px;
        bottom: 20px;
    }
}




.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.shop-title-section h1 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.coin-balance {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 200, 50, 0.1);
    border: 1px solid rgba(255, 200, 50, 0.3);
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
}

.coin-balance .coin-icon {
    font-size: 1.5rem;
}

.coin-balance .coin-amount {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffd700;
}

.coin-balance .coin-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}


.shop-section {
    margin-bottom: 2.5rem;
}

.shop-section h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.section-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}


.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.shop-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition-smooth);
}

.shop-item:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.shop-item.equipped {
    border-color: var(--accent-lime);
    background: rgba(178, 255, 89, 0.05);
}

.shop-item.owned {
    border-color: rgba(255, 255, 255, 0.2);
}

.shop-item.locked {
    opacity: 0.6;
}

.shop-item-preview {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    flex-shrink: 0;
}

.shop-item-preview.locked-preview {
    filter: grayscale(1);
}

.shop-item-info {
    flex: 1;
    min-width: 0;
}

.shop-item-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    color: var(--text-bright);
}

.shop-item-info p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.shop-item-action {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.3rem;
}

.shop-item-action .buy-btn {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.shop-item-action .equip-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.shop-item-action .try-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    margin-top: 0.4rem;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}


.preview-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-card, rgba(20,20,40,0.95));
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.preview-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.8rem;
    background: linear-gradient(135deg, var(--accent-cyan, #00e5ff) 0%, var(--accent-pink, #ff2d87) 100%);
    border: none;
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    font-family: 'Teko', sans-serif;
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    transition: all 0.25s;
    box-shadow: 0 2px 15px rgba(0,229,255,0.25);
}
.preview-back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 25px rgba(0,229,255,0.4);
    filter: brightness(1.15);
}
.preview-badge {
    display: none;
}
.preview-disabled-overlay {
    position: relative;
    pointer-events: none;
    user-select: none;
    opacity: 0.7;
}
.preview-disabled-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    z-index: 10;
}
.preview-click-area {
    position: relative;
    pointer-events: none;
    user-select: none;
}
.preview-click-area .glass-panel {
    cursor: default !important;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.preview-watermark {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0.9rem 1.5rem;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255,255,255,0.1);
    z-index: 999;
}
.preview-watermark-text {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    font-family: 'Outfit', sans-serif;
}
.preview-buy-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.4rem;
    background: linear-gradient(135deg, var(--accent-amber, #ffaf32), #ff8800);
    border: none;
    border-radius: 8px;
    color: #000;
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.2s;
    box-shadow: 0 2px 12px rgba(255,175,50,0.3);
}
.preview-buy-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(255,175,50,0.5);
    filter: brightness(1.1);
}
.preview-buy-cta .coin-icon { font-size: 1rem; }

.equipped-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: rgba(178, 255, 89, 0.2);
    color: var(--accent-lime);
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
}

.locked-text {
    font-size: 0.75rem;
    color: var(--text-muted);
}


.shop-divider {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.shop-divider::before,
.shop-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}


.earn-section {
    background: rgba(0, 240, 255, 0.03);
    border: 1px solid rgba(0, 240, 255, 0.15);
    border-radius: 20px;
    padding: 1.5rem;
}

.earn-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.earn-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}

.earn-icon {
    font-size: 1.5rem;
}

.earn-info strong {
    display: block;
    color: var(--text-bright);
    margin-bottom: 0.25rem;
}

.earn-info p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}


.referral-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 1.25rem;
}

.referral-section h3 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    color: var(--text-bright);
}

.referral-link-box {
    display: flex;
    gap: 0.5rem;
}

.referral-link-box input {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--text-main);
    font-size: 0.85rem;
}

.referral-info {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}


.purchase-content {
    text-align: center;
    padding: 1rem;
}

.purchase-item-preview {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.purchase-details {
    margin-bottom: 1.5rem;
}

#purchase-item-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 0.5rem;
}

.purchase-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    color: #ffd700;
}

.purchase-price .coin-icon {
    font-size: 1.25rem;
}



.xp-bar-container {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.xp-level-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.xp-level-number {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-amber);
    line-height: 1;
}

.xp-level-title {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.xp-bar-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.xp-bar-track {
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.xp-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-amber), var(--accent-lime));
    border-radius: 6px;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(255, 152, 0, 0.5);
}

.xp-bar-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.xp-coins-display {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(255, 200, 50, 0.1);
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
}

.xp-coins-display .coin-icon {
    font-size: 1rem;
}

.xp-coins-display .coin-value {
    font-weight: 700;
    color: #ffd700;
}


.daily-bonus-available {
    position: fixed;
    top: 80px;
    right: 20px;
    background: linear-gradient(135deg, rgba(255, 200, 50, 0.95), rgba(255, 150, 0, 0.95));
    color: #1a1a1a;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 1000;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(255, 200, 50, 0.4);
    animation: pulseGlow 2s ease infinite;
    max-width: calc(100vw - 40px);
    box-sizing: border-box;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 8px 30px rgba(255, 200, 50, 0.4); }
    50% { box-shadow: 0 8px 40px rgba(255, 200, 50, 0.6); }
}

.daily-bonus-available .bonus-icon {
    font-size: 1.5rem;
}

.daily-bonus-available .bonus-text {
    font-weight: 600;
}

.daily-bonus-available .bonus-amount {
    font-size: 0.85rem;
    opacity: 0.8;
}


#toast-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10003;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    background: rgba(30, 30, 40, 0.95);
    color: var(--text-bright);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}


@media (max-width: 600px) {
    .shop-header {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .coin-balance {
        padding: 0.5rem 1rem;
    }
    
    
    .shop-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .shop-item {
        flex-direction: column;
        text-align: center;
        padding: 0.75rem;
        gap: 0.5rem;
    }
    
    .shop-item-preview {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .shop-item-info h4 {
        font-size: 0.85rem;
    }
    
    .shop-item-info p {
        font-size: 0.7rem;
        display: none; 
    }
    
    .shop-item-action {
        width: 100%;
    }
    
    .shop-item-action button,
    .shop-item-action .equipped-badge {
        width: 100%;
        font-size: 0.75rem;
        padding: 0.4rem 0.5rem;
    }
    
    .shop-divider {
        font-size: 0.75rem;
    }
    
    
    .xp-bar-container {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 0.5rem 0.75rem;
        gap: 0.5rem;
    }
    
    .xp-level-info {
        flex-direction: row;
        gap: 0.4rem;
        min-width: auto;
    }
    
    .xp-level-number {
        font-size: 1.2rem;
    }
    
    .xp-level-title {
        font-size: 0.6rem;
    }
    
    .xp-bar-wrapper {
        flex: 1;
        min-width: 120px;
    }
    
    .xp-bar-track {
        height: 8px;
    }
    
    .xp-bar-text {
        font-size: 0.6rem;
    }
    
    .xp-coins-display {
        padding: 0.3rem 0.5rem;
        font-size: 0.75rem;
    }
    
    
    .earn-methods {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    
    .earn-card {
        flex-direction: column;
        text-align: center;
        padding: 0.75rem;
    }
    
    .earn-icon {
        font-size: 1.25rem;
    }
    
    .earn-info strong {
        font-size: 0.8rem;
    }
    
    .earn-info p {
        font-size: 0.7rem;
    }
    
    .referral-link-box input {
        font-size: 0.7rem;
        padding: 0.5rem;
    }
}


@media (max-width: 600px) {
    .daily-bonus-available {
        top: auto;
        bottom: 70px;
        right: 10px;
        left: 10px;
        max-width: none;
        padding: 0.75rem 1rem;
        justify-content: center;
    }
    
    .daily-bonus-available .bonus-icon {
        font-size: 1.2rem;
    }
    
    .daily-bonus-available .bonus-text {
        font-size: 0.85rem;
    }
    
    .daily-bonus-available .bonus-amount {
        font-size: 0.7rem;
    }
}



.level-up-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: linear-gradient(135deg, rgba(255, 200, 50, 0.95), rgba(255, 100, 0, 0.95));
    border-radius: 20px;
    padding: 2rem 3rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    z-index: 10001;
    transition: transform 0.5s ease;
    box-shadow: 0 20px 60px rgba(255, 150, 0, 0.5);
}

.level-up-notification.show {
    transform: translate(-50%, -50%) scale(1);
}

.level-up-icon {
    font-size: 4rem;
    animation: levelPulse 0.5s ease infinite alternate;
}

@keyframes levelPulse {
    from { transform: scale(1); }
    to { transform: scale(1.2); }
}

.level-up-content {
    text-align: center;
}

.level-up-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: #1a1a1a;
    font-weight: 700;
    letter-spacing: 2px;
}

.level-up-level {
    font-size: 1.2rem;
    color: rgba(0, 0, 0, 0.7);
    font-weight: 600;
}


@media (max-width: 600px) {
    .level-up-notification {
        padding: 1.5rem 2rem;
        flex-direction: column;
    }
    
    .level-up-icon {
        font-size: 3rem;
    }
    
    .level-up-title {
        font-size: 1.5rem;
    }
}











.friend-modal-header {
    position: relative;
}

.friend-modal-badge {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.friend-modal-level {
    margin-top: 0.25rem;
    font-size: 0.8rem;
}

.friend-modal-level .fm-level {
    color: var(--accent-amber);
    font-weight: 700;
}

.friend-modal-level .fm-title {
    color: var(--text-muted);
}



.level-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem 0;
}

.level-current {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.level-icon {
    font-size: 3rem;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.level-info {
    display: flex;
    flex-direction: column;
}

.level-rank {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.level-rank span {
    color: var(--accent-amber);
    font-weight: 700;
    font-size: 1.1rem;
}

.level-title-big {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-cyan);
    line-height: 1;
}

.level-progress-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1rem;
}

.level-progress-bar {
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.level-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-amber), var(--accent-lime));
    border-radius: 10px;
    transition: width 0.5s ease;
    box-shadow: 0 0 15px rgba(255, 200, 50, 0.5);
}

.level-progress-text {
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.level-progress-text span {
    color: var(--text-bright);
    font-weight: 600;
}

.level-next {
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
}

.level-next-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.level-next-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent-lime);
}

.level-next-xp {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}


.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
}

@media (max-width: 600px) {
    .level-current {
        flex-direction: column;
        text-align: center;
    }
    
    .level-icon {
        font-size: 2.5rem;
    }
    
    .level-title-big {
        font-size: 1.5rem;
    }
}


.lb-badge {
    font-size: 0.9rem;
    margin-left: 0.3rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.seo-section {
    padding: 3rem 0;
    margin-top: 2rem;
}

.seo-section .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.seo-content {
    padding: 2rem 2.5rem;
    line-height: 1.8;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.seo-content h2 {
    margin-bottom: 1rem;
}

.seo-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.6rem;
    font-size: 1.1rem;
    color: var(--text-bright, #fff);
}

.seo-content p {
    margin-bottom: 1rem;
    color: var(--text-muted, #888);
    font-size: 0.92rem;
    line-height: 1.75;
}

.seo-content strong {
    color: var(--text-main, #ccc);
}

@media (max-width: 600px) {
    .seo-content {
        padding: 1.5rem 1.2rem;
    }
    .seo-section .container {
        padding: 0 1rem;
    }
}


.graph-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.graph-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted, #888);
}

.graph-stat strong {
    color: var(--accent-cyan, #00f0ff);
}

#cps-graph {
    width: 100%;
    border-radius: 8px;
    display: block;
}

#graph-container {
    padding: 1rem;
}

@media (max-width: 600px) {
    .graph-stats {
        gap: 0.5rem;
        font-size: 0.7rem;
    }
    .graph-header {
        flex-direction: column;
        align-items: flex-start;
    }
}


.ghost-btn-sm {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-muted, #888);
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Outfit', sans-serif;
}

.ghost-btn-sm:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-bright, #fff);
    background: rgba(255, 255, 255, 0.05);
}


.mobile-hint { display: none; }
.desktop-hint { display: inline; }
@media (hover: none) and (pointer: coarse) {
    .mobile-hint { display: inline; }
    .desktop-hint { display: none; }
}


[data-page="infinite"] #start-msg {
    font-size: 4rem;
}
[data-page="infinite"] #click-area {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
}
[data-page="infinite"] #click-area:hover {
    border-color: rgba(0, 240, 255, 0.25);
}
[data-page="infinite"] .seo-section {
    margin-top: 0;
    padding-top: 1.5rem;
}
@media (max-width: 600px) {
    [data-page="infinite"] #start-msg {
        font-size: 2.2rem;
    }
}


#end-session-btn {
    margin-top: 0.5rem;
    background: rgba(255, 50, 80, 0.15);
    border: 1px solid rgba(255, 50, 80, 0.4);
    color: #ff5060;
}
#end-session-btn:hover {
    background: rgba(255, 50, 80, 0.3);
    border-color: rgba(255, 50, 80, 0.7);
}


.history-cps {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--accent-cyan);
    line-height: 1.2;
}
.history-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 2px;
}
.history-date {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3);
    margin-top: 2px;
}


.fatigue-link-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
    padding: 0.6rem 1.5rem;
    margin-top: -1.2rem;
    color: var(--accent-cyan);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-decoration: none;
    text-transform: uppercase;
    background: rgba(0, 240, 255, 0.04);
    border: 1px solid rgba(0, 240, 255, 0.15);
    border-radius: 12px;
    transition: all 0.25s ease;
}
.fatigue-link-bar:hover {
    background: rgba(0, 240, 255, 0.1);
    border-color: rgba(0, 240, 255, 0.4);
    color: #fff;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.12);
}
.fatigue-link-bar i {
    font-size: 0.75rem;
    transition: transform 0.25s ease;
}
.fatigue-link-bar:hover i {
    transform: translateX(4px);
}


.lb-categories {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}
.lb-cat-tab {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-muted);
    padding: 0.5rem 1.2rem;
    border-radius: 10px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s;
}
.lb-cat-tab:hover {
    background: rgba(0,240,255,0.08);
    border-color: rgba(0,240,255,0.25);
}
.lb-cat-tab.active {
    background: rgba(0,240,255,0.12);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    font-weight: 700;
}
.lb-cat-tab i {
    margin-right: 4px;
}


.lb-time-filters {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    margin-bottom: 1rem;
}
.lb-time-tab {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text-muted);
    padding: 0.35rem 0.9rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
}
.lb-time-tab:hover {
    background: rgba(255,255,255,0.05);
}
.lb-time-tab.active {
    background: rgba(0,240,255,0.1);
    border-color: rgba(0,240,255,0.3);
    color: var(--accent-cyan);
}


.lb-your-rank-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1.2rem;
    margin-bottom: 1rem;
    background: rgba(0,240,255,0.06);
    border: 1px solid rgba(0,240,255,0.2);
    border-radius: 10px;
    gap: 1.5rem;
}
.lb-your-rank-bar .yr-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.lb-your-rank-bar .yr-value {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--accent-cyan);
}
.lb-your-rank-bar .yr-item {
    text-align: center;
}
.lb-your-rank-bar.guest {
    justify-content: center;
    padding: 0.5rem 1rem;
}
.lb-your-rank-bar.guest .yr-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: none;
    letter-spacing: 0;
}


.account-ranks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
    margin-top: 0.75rem;
}
.rank-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 0.75rem;
    text-align: center;
}
.rank-card .rc-mode {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}
.rank-card .rc-rank {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--accent-amber);
}
.rank-card .rc-cps {
    font-size: 0.85rem;
    color: var(--accent-cyan);
    margin-top: 2px;
}
.rank-card .rc-rank.unranked {
    color: var(--text-muted);
    font-size: 1rem;
}



.content-page {
    max-width: 980px;
    margin: 0 auto;
    padding: 2rem 2rem 4rem;
}

.content-page-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.content-page-header h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.015em;
    color: var(--text-bright, #fff);
    line-height: 1.18;
    margin-bottom: 0.7rem;
}

.content-page-header .content-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted, #888);
    font-size: 0.9rem;
}

.content-page-header .content-meta i {
    margin-right: 0.3rem;
}

.content-page h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--accent-cyan, #00e5ff);
    margin-top: 2.5rem;
    margin-bottom: 0.9rem;
}

.content-page h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-bright, #fff);
    margin-top: 1.8rem;
    margin-bottom: 0.5rem;
}

.content-page p {
    color: var(--text-main, #ccc);
    font-size: 1.08rem;
    line-height: 1.8;
    margin-bottom: 1.1rem;
}

.content-page strong {
    color: var(--text-bright, #fff);
}

.content-page ul, .content-page ol {
    color: var(--text-main, #ccc);
    padding-left: 1.5rem;
    margin-bottom: 1.1rem;
}

.content-page li {
    font-size: 1.08rem;
    line-height: 1.75;
    margin-bottom: 0.45rem;
}

.content-page figure.article-figure {
    margin: 2rem 0;
    padding: 0;
}

.content-page figure.article-figure img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    aspect-ratio: 1536 / 931;
    object-fit: contain;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.03);
}

.content-page figure.article-figure figcaption {
    margin-top: 0.6rem;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--text-muted, #888);
    text-align: center;
}

.content-page a {
    color: var(--accent-cyan, #00e5ff);
    text-decoration: none;
}

.content-page a:hover {
    text-decoration: underline;
}

.blog-cta-box {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--bg-card, rgba(20,20,40,0.6));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    text-align: center;
}

.blog-cta-box p {
    margin-bottom: 0.8rem;
}

.blog-cta-box .glow-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #fff !important;
    font-size: 1.1rem;
    padding: 0.85rem 2.2rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.blog-related {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.blog-related h3 {
    font-family: 'Teko', sans-serif;
    font-size: 1.4rem;
    color: var(--text-bright, #fff);
    margin-bottom: 1rem;
}

.blog-related-links {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.blog-related-links a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1rem;
    background: var(--bg-card, rgba(20,20,40,0.6));
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    color: var(--text-main, #ccc);
    text-decoration: none;
    transition: all 0.2s;
}

.blog-related-links a:hover {
    border-color: var(--accent-cyan, #00e5ff);
    color: var(--text-bright, #fff);
    text-decoration: none;
}

.blog-related-links a i {
    color: var(--accent-amber, #ffaf32);
}

.legal-updated {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--text-muted, #888);
    margin-bottom: 1.5rem;
}

@media (max-width: 600px) {
    .content-page { padding: 1.2rem 1rem 3rem; }
    .content-page-header h1 { font-size: 1.85rem; }
    .content-page h2 { font-size: 1.3rem; }
    .content-page p, .content-page li { font-size: 1rem; }
}





a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible,
.technique-item:focus-visible,
.article-row:focus-visible,
.menu-link:focus-visible,
.menu-sublink:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 2px;
    border-radius: 6px;
}


html {
    touch-action: manipulation;
}


.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}


@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    #star-canvas,
    #cursor-trail-canvas,
    #theme-bg-canvas {
        display: none !important;
    }
}


[dir="rtl"] .side-drawer {
    right: auto;
    left: -320px;
    border-left: none;
    border-right: 1px solid rgba(0, 240, 255, 0.1);
}
[dir="rtl"] .side-drawer.open {
    right: auto;
    left: 0;
}
[dir="rtl"] .technique-item {
    border-left: none;
    border-right: 3px solid transparent;
}
[dir="rtl"] .technique-item.jitter { border-right-color: #FF5722; }
[dir="rtl"] .technique-item.butterfly { border-right-color: #E040FB; }
[dir="rtl"] .technique-item.drag { border-right-color: #FFD700; }
[dir="rtl"] .technique-item:hover { transform: translateX(-5px); }
[dir="rtl"] .fa-chevron-left,
[dir="rtl"] .fa-chevron-right {
    transform: scaleX(-1);
    display: inline-block;
}
[dir="rtl"] .training-step { direction: rtl; }
[dir="rtl"] .mg-row { direction: rtl; }


.more-games { margin: 2.5rem auto 0; text-align: center; }
.more-games-title { font-size: 1.3rem; margin: 0 0 .9rem; opacity: .85; }


.menu-more-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    background: none;
    border: none;
    padding: 0.65rem 1rem;
    color: var(--text-muted);
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 10px;
    cursor: pointer;
    text-align: start;
    transition: var(--transition-smooth);
}
.menu-more-btn:hover {
    background: rgba(0, 240, 255, 0.08);
    color: var(--accent-cyan);
}
.menu-more-btn i.menu-more-icon {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    color: var(--accent-lime, #BFFF00);
    opacity: 1;
}
.menu-more-btn {
    width: 100%;
    justify-content: center;
}
.menu-more-btn .menu-more-caret {
    margin-inline-start: 2px;
    width: auto;
    font-size: 0.7rem;
    color: var(--text-muted);
}
.menu-sublink.active-link {
    background: rgba(0, 240, 255, 0.12);
    color: var(--accent-cyan);
    opacity: 1;
}
.menu-has-sub.expanded .menu-expand-btn.menu-more-btn i:not(.menu-more-caret) {
    transform: none;
}


/* ── Account rework (2026-07-25): cross-game stat cards ─────────────────── */
.acc-games-hint { font-size: .85rem; margin: -0.4rem 0 1rem; }
.account-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 0.9rem;
}
.game-card {
    display: block;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 0.95rem 1.05rem;
    text-decoration: none;
    color: var(--text-main, #e2e8f0);
    transition: var(--transition-smooth, all .25s ease);
}
.game-card:hover {
    border-color: rgba(0, 240, 255, 0.45);
    background: rgba(0, 240, 255, 0.06);
    transform: translateY(-2px);
}
.gc-head { display: flex; align-items: center; gap: .5rem; margin-bottom: .55rem; }
.gc-head i { color: var(--accent-cyan, #00F0FF); font-size: 1rem; flex: 0 0 auto; }
.gc-name { font-weight: 600; font-size: .92rem; color: var(--text-bright, #fff); flex: 1 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gc-rank {
    flex: 0 0 auto; font-size: .72rem; font-weight: 700; letter-spacing: .02em;
    color: #FFD700; background: rgba(255, 215, 0, 0.12);
    border: 1px solid rgba(255, 215, 0, 0.35); border-radius: 999px; padding: .12rem .5rem;
}
.gc-rank--none { color: var(--text-muted, #94a3b8); background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.14); font-weight: 600; }
.gc-main { display: flex; align-items: baseline; gap: .45rem; }
.gc-value { font-family: var(--font-heading, 'Teko', sans-serif); font-size: 1.7rem; line-height: 1; color: var(--accent-cyan, #00F0FF); }
.gc-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted, #94a3b8); }
.gc-sub { margin-top: .4rem; font-size: .78rem; color: var(--text-muted, #94a3b8); }
.gc-sub strong { color: var(--text-main, #e2e8f0); font-weight: 600; }
.game-card--empty { opacity: .75; }
.game-card--empty:hover { opacity: 1; }
.gc-empty { font-size: .8rem; color: var(--text-muted, #94a3b8); margin: .2rem 0 .45rem; }
.gc-play { font-size: .78rem; font-weight: 600; color: var(--accent-cyan, #00F0FF); }
.gc-play i { font-size: .7em; }
.stat-box-value--date { font-size: 1.05rem; }

/* ── Account rework: achievements tab ────────────────────────────────────── */
.ach-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .6rem; }
.ach-total { font-family: var(--font-heading, 'Teko', sans-serif); font-size: 1.5rem; color: var(--accent-amber, #FFB000); letter-spacing: .03em; }
.ach-progress-track { height: 8px; border-radius: 999px; background: rgba(255,255,255,0.08); overflow: hidden; margin-bottom: 1rem; }
.ach-progress-fill { height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #FFD700, #FF9800); transition: width .5s ease; }
.ach-filters { display: flex; gap: .5rem; margin-bottom: 1.3rem; flex-wrap: wrap; }
.ach-filter {
    appearance: none; cursor: pointer; font: inherit; font-size: .8rem; font-weight: 600;
    color: var(--text-muted, #94a3b8); background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.14); border-radius: 999px; padding: .32rem .9rem;
    transition: var(--transition-smooth, all .2s ease);
}
.ach-filter:hover { color: var(--text-bright, #fff); border-color: rgba(0,240,255,0.4); }
.ach-filter.active { color: #05030D; background: var(--accent-cyan, #00F0FF); border-color: var(--accent-cyan, #00F0FF); }
.ach-cat { margin-bottom: 1.6rem; }
.ach-cat:last-child { margin-bottom: 0; }
.ach-cat-head { display: flex; align-items: center; gap: .5rem; margin-bottom: .7rem; }
.ach-cat-icon { font-size: 1rem; }
.ach-cat-name { font-weight: 700; font-size: .95rem; color: var(--text-bright, #fff); letter-spacing: .02em; }
.ach-cat-count { margin-left: auto; font-size: .78rem; font-weight: 600; color: var(--text-muted, #94a3b8); background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); border-radius: 999px; padding: .1rem .55rem; }
.ach-mini-track { height: 5px; border-radius: 999px; background: rgba(255,255,255,0.08); overflow: hidden; margin-top: .55rem; }
.ach-mini-fill { height: 100%; background: linear-gradient(90deg, var(--accent-cyan, #00F0FF), #7bffda); border-radius: 999px; }
.ach-mini-nums { font-size: .68rem; color: var(--text-muted, #94a3b8); margin-top: .25rem; }
.achievement-card-reward { margin-top: .5rem; font-size: .7rem; font-weight: 600; color: var(--accent-amber, #FFB000); opacity: .9; }
.achievement-card-date { margin-top: .5rem; font-size: .68rem; color: var(--text-muted, #94a3b8); }

/* achievement unlock popup: reward line under the name (site-wide) */
.achievement-notif-reward { font-size: .8rem; font-weight: 600; color: var(--accent-amber, #FFB000); margin-top: .15rem; }

@media (max-width: 600px) {
    .account-games-grid { grid-template-columns: 1fr 1fr; gap: .6rem; }
    .game-card { padding: .75rem .8rem; }
    .gc-value { font-size: 1.4rem; }
    .ach-filters { gap: .4rem; }
}
