* { margin: 0; padding: 0; box-sizing: border-box; }
*::before, *::after { box-sizing: border-box; }
:root {
    --bg: #0a0a0a;
    --surface: #141414;
    --surface-light: #1c1c1c;
    --surface-elev: #222222;
    --text: #ffffff;
    --text-muted: #9ca3af;
    --accent-yellow: #ffd43b;
    --accent-green: #94d82d;
    --accent-blue: #4263eb;
    --accent-blue-soft: #6c8aff;
    --accent-red: #ef4444;
    --accent-orange: #f97316;
    --border: #2a2a2a;
    --border-strong: #6a6a6a;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-pill: 999px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 4px 14px -4px rgba(0, 0, 0, 0.55);
    --shadow-lg: 0 14px 38px -10px rgba(0, 0, 0, 0.65);
    --transition-fast: 0.15s ease;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
}
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
body {
    font-family: 'Nunito', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
a { color: inherit; text-decoration: none; }
main a[href^="mailto:"] { text-decoration: underline; }
::selection { background: var(--accent-blue); color: #fff; }

/* Focus rings */
:focus-visible { outline: 2px solid var(--accent-blue-soft); outline-offset: 2px; border-radius: 4px; }
button:focus-visible, a:focus-visible, [role="button"]:focus-visible {
    outline: 2px solid var(--accent-blue-soft);
    outline-offset: 2px;
}

/* Skip link */
.skip-link {
    position: absolute;
    left: 0; top: 0;
    z-index: 2000;
    background: var(--accent-blue);
    color: #fff;
    padding: 10px 18px;
    font-weight: 800;
    border-radius: 0 0 8px 0;
    text-decoration: none;
    transform: translateY(-100%);
    transition: transform var(--transition);
}
.skip-link:focus { transform: translateY(0); outline: 2px solid var(--accent-blue-soft); outline-offset: 2px; }

/* NAV TOGGLE (mobile) */
.nav-toggle {
    display: none;
    position: fixed;
    top: 12px; right: 12px;
    z-index: 1001;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 11px 14px;
    min-width: 44px; min-height: 44px;
    color: var(--text);
    font-size: 1.1rem;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}
.nav-toggle:hover { background: var(--surface-light); border-color: var(--border-strong); }
.nav-toggle:active { transform: scale(0.94); }

/* NAV */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 4px 20px -8px rgba(0, 0, 0, 0.6);
    transition: transform 0.35s var(--transition-slow);
}
nav.hidden { transform: translateY(-100%); }
nav .nav-inner {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 24px;
    max-width: 1400px;
    margin: 0 auto;
}
nav .logo-link {
    display: flex; align-items: center; gap: 10px;
    margin-right: auto;
    text-decoration: none;
    transition: opacity var(--transition-fast);
}
nav .logo-link:hover { opacity: 0.88; }
nav .logo-link img {
    width: 36px; height: 36px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: var(--shadow-sm), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}
nav .logo-link .logo-text {
    font-weight: 900;
    font-size: 1.1rem;
    color: var(--text);
    letter-spacing: -0.5px;
}
nav ul {
    display: flex; list-style: none; gap: 4px;
    overflow-x: auto;
    white-space: nowrap;
}
nav ul::-webkit-scrollbar { display: none; }
nav li a {
    display: block;
    padding: 8px 14px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
    border-radius: 8px;
    position: relative;
    transition: color var(--transition-fast), background var(--transition-fast);
}
nav li a:hover, nav li a.active { color: var(--text); background: var(--surface-light); }
nav li a.active::after {
    content: '';
    position: absolute;
    left: 14px; right: 14px; bottom: 4px;
    height: 2px;
    border-radius: 2px;
    background: var(--accent-blue);
}

/* ANNOUNCEMENT BAR */
.announcement-bar {
    position: fixed;
    top: 58px; left: 0; right: 0;
    z-index: 999;
    background: var(--accent-blue);
    color: #fff;
    padding: 8px 24px;
    display: flex; align-items: center; justify-content: flex-start; gap: 24px;
    font-size: 0.85rem;
    font-weight: 700;
    overflow-x: auto;
    scrollbar-width: none;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
    transition: transform 0.35s var(--transition-slow), top 0.3s ease;
}
.announcement-bar::-webkit-scrollbar { display: none; }
.announcement-bar.hidden { transform: translateY(-100%); }
.announcement-bar .ann-item { display: flex; align-items: center; gap: 6px; }
.announcement-bar .ann-sep { width: 1px; height: 16px; background: rgba(255, 255, 255, 0.3); flex-shrink: 0; }

/* width:100% keeps the column full-size inside the sticky-footer flex body */
main { max-width: 1000px; width: 100%; margin: 0 auto; padding: 110px 24px 60px; flex: 1; }

/* HERO */
.hero {
    display: flex; align-items: center; justify-content: space-between;
    gap: 30px; flex-wrap: wrap;
    padding: 30px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border);
}
.hero-left { display: flex; align-items: center; gap: 20px; }
.hero-logo {
    width: 90px; height: 90px;
    border-radius: var(--radius-lg);
    object-fit: cover;
    border: 2px solid var(--border);
    box-shadow: var(--shadow-md), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}
.hero-logo:hover { transform: scale(1.04) rotate(-1deg); box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.06) inset; }
.hero-title {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    line-height: 1.2;
    color: var(--text);
}
.hero-subtitle { font-size: 1rem; color: var(--text-muted); font-weight: 600; }

.badges { display: flex; gap: 10px; flex-wrap: wrap; }
.badge {
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 800;
    font-style: italic;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}
.badge:hover { transform: translateY(-1px); }
.badge-yellow { background: var(--accent-yellow); color: #000; }
.badge-green  { background: var(--accent-green);  color: #000; }
.badge-blue   { background: var(--accent-blue);   color: #fff; font-style: normal; }

/* PLAY + FEATURES */
.play-features-row { display: flex; gap: 24px; margin: 24px 0; flex-wrap: wrap; }
.play-section {
    flex: 1; min-width: 280px;
    display: flex; flex-direction: column;
    gap: 12px;
}
.play-btn {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: var(--accent-blue);
    color: #fff;
    padding: 24px;
    border-radius: var(--radius);
    font-size: 1.5rem;
    font-weight: 900;
    font-family: 'Nunito', sans-serif;
    text-align: center;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
}
.play-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); filter: brightness(1.04); }
.play-btn:active { transform: translateY(0) scale(0.99); }
.play-btn .play-sub { font-size: 0.9rem; font-weight: 600; opacity: 0.9; margin-top: 4px; }
.play-btn .play-link { font-size: 0.75rem; font-weight: 700; opacity: 0.75; margin-top: 4px; text-decoration: underline; }

.features-section {
    flex: 1; min-width: 280px;
    display: flex; flex-direction: column;
    gap: 10px;
    justify-content: center;
}
.feature-item {
    display: flex; align-items: center; gap: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text);
}
.check-circle {
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--accent-blue);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 900;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}

.description {
    font-size: 1.05rem;
    color: #d1d5db;
    max-width: 700px;
    margin: 20px 0;
    line-height: 1.7;
}
.description strong { color: var(--text); }

/* STATUS PILL */
.server-status {
    display: flex; align-items: center; justify-content: flex-start;
    margin: 18px 0 14px;
}
.status-pill {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    background: var(--surface);
    border: 1px solid var(--border);
    font-weight: 800;
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.2;
    user-select: none;
    transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.status-pill .status-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
    position: relative;
}
.status-pill .status-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid currentColor;
    opacity: 0;
}
.status-pill.checking { color: var(--accent-yellow); border-color: rgba(255, 212, 59, 0.55); background: rgba(255, 212, 59, 0.06); }
.status-pill.checking .status-dot::after { animation: status-pulse 1.4s ease-out infinite; }
.status-pill.online {
    color: var(--accent-green);
    border-color: rgba(148, 216, 45, 0.55);
    background: rgba(148, 216, 45, 0.08);
    box-shadow: 0 0 0 1px rgba(148, 216, 45, 0.18), 0 6px 18px -10px rgba(148, 216, 45, 0.45);
}
.status-pill.online .status-dot::after { animation: status-pulse 2.6s ease-out infinite; opacity: 0.55; }
.status-pill.offline { color: var(--accent-red); border-color: rgba(239, 68, 68, 0.55); background: rgba(239, 68, 68, 0.08); }
.status-pill.unsupported { color: var(--text-muted); border-color: var(--border); background: var(--surface); }
.status-pill .status-ping {
    font-size: 0.78rem;
    font-weight: 700;
    opacity: 0.85;
    margin-left: 2px;
}
.server-status .status-refresh {
    margin-left: 6px;
    padding: 6px;
    min-width: 28px; min-height: 28px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: currentColor;
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1;
    opacity: 0.55;
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    transition: opacity 0.2s ease, transform 0.4s ease;
}
.server-status .status-refresh:hover { opacity: 1; }
.server-status .status-refresh:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; opacity: 1; }
.server-status .status-refresh.spinning { animation: status-spin 0.9s linear infinite; }
.server-status .status-refresh.busy { cursor: wait; opacity: 0.6; }
@keyframes status-pulse {
    0% { transform: scale(0.7); opacity: 0.9; }
    70% { transform: scale(1.8); opacity: 0; }
    100% { transform: scale(1.8); opacity: 0; }
}
@keyframes status-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .status-pill .status-dot::after { animation: none; opacity: 0; }
    .server-status .status-refresh.spinning { animation: none; }
}

/* SERVER IPs */
.ip-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}
.ip-section h2 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 16px;
    display: flex; align-items: center; gap: 8px;
}
.ip-card {
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 10px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.ip-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--accent-blue);
    opacity: 0;
    transition: opacity var(--transition);
}
.ip-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    background: var(--surface-elev);
}
.ip-card:hover::before { opacity: 1; }
.ip-card:active { transform: translateY(0); }
.ip-card.copied { border-color: var(--accent-green); }
.ip-card.copied::before { background: var(--accent-green); opacity: 1; }
.ip-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 4px;
}
.ip-address {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--accent-green);
    word-break: break-all;
    font-variant-numeric: tabular-nums;
}
.ip-card .copy-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 6px;
    font-weight: 600;
    transition: color var(--transition);
}
.ip-card.copied .copy-hint { color: var(--accent-green); }

/* CTAs */
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0; }
.btn {
    flex: 1; min-width: 180px;
    padding: 14px 24px;
    border-radius: var(--radius-pill);
    font-size: 1rem;
    font-weight: 800;
    font-family: 'Nunito', sans-serif;
    text-align: center;
    cursor: pointer;
    border: none;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); filter: brightness(1.04); }
.btn:active { transform: translateY(0) scale(0.985); }
.btn-blue   { background: var(--accent-blue);   color: #fff; box-shadow: var(--shadow-sm); }
.btn-green  { background: var(--accent-green);  color: #000; box-shadow: var(--shadow-sm); }
.btn-yellow { background: var(--accent-yellow); color: #000; box-shadow: var(--shadow-sm); }
.btn-outline { background: transparent; border: 2px solid var(--border); color: var(--text); box-shadow: none; }
.btn-outline:hover { border-color: var(--border-strong); filter: none; }

/* Donate */
.donate-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent-blue);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 24px 24px 24px 20px;
    margin: 20px 0;
    box-shadow: var(--shadow-sm);
}
.donate-box h3 { font-weight: 800; font-size: 1.1rem; margin-bottom: 10px; }
.donate-box p { color: var(--text-muted); margin-bottom: 10px; line-height: 1.6; }
.donate-box strong { color: var(--text); }

/* STATS ROW */
.stats-row { display: flex; gap: 16px; margin: 20px 0; flex-wrap: wrap; }
.stat-card {
    flex: 1; min-width: 140px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.stat-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
}
.stat-num {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text);
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}
.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

/* ARTICLE */
.article {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 16px;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.article:hover { border-color: var(--border-strong); }
.article h2 { font-size: 1.3rem; font-weight: 800; margin-bottom: 6px; }
.article .meta { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 14px; }
.article p { margin-bottom: 12px; color: #d1d5db; line-height: 1.7; }
.article .tag {
    display: inline-block;
    background: var(--accent-blue);
    color: #fff;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.article-preview {
    display: flex; gap: 16px;
    padding: 20px;
    margin-bottom: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.article-preview:hover, .article-preview:focus-visible {
    border-color: var(--border-strong);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: var(--surface-elev);
}
.article-preview:focus-visible { outline: 2px solid var(--accent-blue-soft); outline-offset: 2px; }
.article-preview img { width: 120px; height: 80px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.article-preview .preview-body { flex: 1; min-width: 0; }
.article-preview .preview-title { font-size: 1.05rem; font-weight: 800; margin-bottom: 4px; }
.article-preview .preview-meta { font-size: 0.78rem; color: var(--text-muted); }
@media (max-width: 480px) {
    .article-preview { flex-direction: column; }
    .article-preview img { width: 100%; height: 140px; }
}

.back-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 16px;
    transition: color var(--transition), transform var(--transition);
}
.back-link:hover { color: var(--text); transform: translateX(-2px); }

.fun-fact {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent-yellow);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 18px 22px;
    margin: 20px 0;
    color: #d1d5db;
    line-height: 1.6;
}
.fun-fact strong { color: var(--accent-yellow); }

/* VOTE LINKS */
.vote-links { display: grid; gap: 12px; margin: 16px 0; }
.vote-link {
    display: flex; align-items: center; justify-content: space-between;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 22px;
    font-weight: 700;
    font-size: 1rem;
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.vote-link:hover { border-color: var(--border-strong); transform: translateX(2px); box-shadow: var(--shadow-md); }
.vote-link .arrow { color: var(--text-muted); transition: color var(--transition), transform var(--transition); }
.vote-link:hover .arrow { color: var(--text); transform: translateX(3px); }

/* TOAST */
.toast {
    position: fixed;
    bottom: 30px; left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--accent-green);
    color: #000;
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    font-weight: 800;
    font-size: 0.95rem;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 14px 32px -10px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    transition: transform var(--transition-slow), opacity var(--transition);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

footer {
    border-top: 1px solid var(--border);
    padding: 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}
footer a { color: var(--text-muted); margin: 0 10px; transition: color var(--transition); }
footer a:hover { color: var(--text); }

/* RESPONSIVE */
@media (max-width: 768px) {
    .nav-toggle { display: block; }
    nav .nav-inner { flex-direction: column; align-items: flex-start; padding: 10px 16px; }
    nav ul { width: 100%; flex-direction: column; padding-bottom: 8px; }
    nav.collapsed ul { display: none; }
    .announcement-bar { top: 48px; font-size: 0.75rem; padding: 6px 16px; }
    main { padding-top: 100px; }
    .hero { flex-direction: column; text-align: center; }
    .hero-left { flex-direction: column; }
    .play-features-row { flex-direction: column; }
    .ip-address { font-size: 1.1rem; }
    .cta-row { flex-direction: column; }
    .btn { min-width: 100%; }
    .stats-row { flex-direction: column; }
}
