/* ---- shared visual polish ---- */

/* animated gradient glow behind content (opacity pulse only — no edge sweep) */
.bg-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
    background:
        radial-gradient(600px 400px at 25% 25%, rgba(0,255,163,0.13), transparent 60%),
        radial-gradient(700px 500px at 70% 75%, rgba(59,130,246,0.10), transparent 60%);
    animation: glowPulse 10s ease-in-out infinite alternate;
}
@keyframes glowPulse {
    0%   { opacity: 0.6; }
    100% { opacity: 1; }
}

/* guard against accidental horizontal overflow */
html, body { overflow-x: hidden; }
body { padding-bottom: 0 !important; }

/* thin custom scrollbar — subtle, no heavy track */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(39, 39, 42, 0.9); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
html { scrollbar-width: thin; scrollbar-color: #27272a transparent; }

/* page-load transition (opacity only — no transform, keeps position:fixed working) */
body { animation: pageFade 0.45s ease both; }
@keyframes pageFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* shared footer (full-bleed, sticky so it never shifts when content expands) */
.site-footer {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: 32px;
    padding: 20px 24px 24px;
    border-top: 1px solid var(--border);
    text-align: center;
    flex-shrink: 0;
    background: var(--bg);
}
.site-footer .footer-brand {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}
.site-footer .footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin-bottom: 12px;
}
.site-footer .footer-links a {
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.2s;
}
.site-footer .footer-links a:hover { color: var(--accent); }
.site-footer .footer-copy {
    font-size: 10px;
    color: var(--dim);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.status-updated {
    text-align: center;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 1px;
    margin-bottom: 18px;
}

/* dashboard: countdown ring */
.timer-cell { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.timer-ring { position: relative; width: 100px; height: 100px; margin: 6px auto 2px; }
.timer-ring svg { width: 100%; height: 100%; }
.timer-ring .ring-arc { fill: none; stroke-width: 5; stroke-linecap: round; }
.timer-ring .ring-bg { stroke: var(--dim); }
.timer-ring .ring-fg {
    stroke: var(--accent);
    stroke-dasharray: 47.1;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.8s ease;
    filter: drop-shadow(0 0 4px rgba(0,255,163,0.6));
}
.timer-ring .timer-center {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.timer-ring .timer-center strong {
    font-size: 12px;
    font-family: var(--mono);
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    background: rgba(5, 5, 8, 0.75);
    border-radius: 6px;
    padding: 4px 7px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

/* dashboard: per-game activity bars */
.game-bar-track {
    height: 3px;
    background: var(--dim);
    border-radius: 2px;
    margin-top: 6px;
    overflow: hidden;
}
.game-bar-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    width: 0;
    transition: width 0.6s ease;
}