/* ============================================
   L2LIX — Lineage 2 Interlude Website
   Main Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Cinzel+Decorative:wght@400;700&family=Open+Sans:wght@300;400;600&display=swap');

/* ---- CSS Variables ---- */
:root {
    --gold:        #c8960c;
    --gold-light:  #f0c040;
    --gold-dark:   #8a6500;
    --red:         #8b1a1a;
    --red-bright:  #cc2200;
    --bg-darkest:  #050508;
    --bg-dark:     #0a0a12;
    --bg-mid:      #0f0f1a;
    --bg-panel:    #13131f;
    --bg-panel2:   #1a1a2a;
    --border:      rgba(200,150,12,0.25);
    --border-bright: rgba(200,150,12,0.6);
    --text:        #c8bfa8;
    --text-light:  #e8e0cc;
    --text-dim:    #7a7060;
    --shadow-gold: 0 0 20px rgba(200,150,12,0.3);
    --shadow-red:  0 0 20px rgba(139,26,26,0.5);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-darkest);
    color: var(--text);
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold-light); }

img { max-width: 100%; display: block; }

/* ============================================
   CANVAS PARTICLES
   ============================================ */
#particles-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
#header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(5,5,8,0.98) 0%, rgba(5,5,8,0.85) 100%);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
    transition: all 0.3s;
}

#header.scrolled {
    background: rgba(5,5,8,0.99);
    border-bottom-color: var(--border-bright);
    box-shadow: 0 2px 30px rgba(200,150,12,0.15);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.nav-logo-img {
    width: 42px;
    height: 42px;
}

.nav-logo-text {
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    text-shadow: none;
    filter: drop-shadow(0 0 10px rgba(200,150,12,0.5));
}

/* Nav links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}

.nav-links a {
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text);
    padding: 0.5rem 1rem;
    border-radius: 2px;
    transition: all 0.2s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 50%; right: 50%;
    height: 2px;
    background: var(--gold);
    transition: all 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--gold-light);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    left: 0.5rem; right: 0.5rem;
}

/* Language switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.lang-btn {
    font-family: 'Cinzel', serif;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--border);
    border-radius: 2px;
    color: var(--text-dim);
    background: transparent;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
}

.lang-btn:hover,
.lang-btn.active {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(200,150,12,0.08);
}

/* Burger menu */
.nav-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
}

.nav-burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gold);
    border-radius: 1px;
    transition: all 0.3s;
}

/* ============================================
   HERO SECTION
   ============================================ */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 50% 100%, rgba(139,26,26,0.25) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 0%, rgba(200,150,12,0.08) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg-darkest) 0%, var(--bg-dark) 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('../img/ggggg.png');
    background-size: cover;
    background-position: center 30%;
    opacity: 0.12;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        var(--bg-darkest) 0%,
        transparent 20%,
        transparent 70%,
        var(--bg-darkest) 100%
    );
    z-index: 1;
}

/* Decorative lines */
.hero-lines {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.hero-lines::before,
.hero-lines::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border: 1px solid rgba(200,150,12,0.1);
    border-radius: 50%;
}

.hero-lines::before {
    width: 600px; height: 600px;
    top: calc(50% - 300px);
    animation: pulse-ring 4s ease-in-out infinite;
}

.hero-lines::after {
    width: 900px; height: 900px;
    top: calc(50% - 450px);
    animation: pulse-ring 4s ease-in-out infinite 1s;
}

@keyframes pulse-ring {
    0%, 100% { opacity: 0.3; transform: translateX(-50%) scale(1); }
    50% { opacity: 0.1; transform: translateX(-50%) scale(1.02); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    max-width: 900px;
}

.hero-emblem {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    filter: drop-shadow(0 0 30px rgba(200,150,12,0.6));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 0.5rem;
    background: linear-gradient(180deg,
        #fff8e0 0%,
        var(--gold-light) 30%,
        var(--gold) 60%,
        var(--gold-dark) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 40px rgba(200,150,12,0.4));
    letter-spacing: 6px;
}

.hero-subtitle {
    font-family: 'Cinzel', serif;
    font-size: clamp(0.75rem, 2vw, 1rem);
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 1.5rem;
}

.hero-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.hero-divider-line {
    flex: 1;
    max-width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.hero-divider-diamond {
    width: 8px;
    height: 8px;
    background: var(--gold);
    transform: rotate(45deg);
    box-shadow: 0 0 10px var(--gold);
}

.hero-tagline {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: var(--text-light);
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 3rem;
    text-shadow: 0 0 20px rgba(0,0,0,0.8);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 0.9rem 2.5rem;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 50%, var(--gold-dark) 100%);
    background-size: 200% 100%;
    color: var(--bg-darkest);
    box-shadow: 0 0 20px rgba(200,150,12,0.4), inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn-primary:hover {
    background-position: 100% 0;
    box-shadow: 0 0 40px rgba(200,150,12,0.7), inset 0 1px 0 rgba(255,255,255,0.2);
    color: var(--bg-darkest);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
    box-shadow: inset 0 0 0 0 var(--gold);
}

.btn-secondary:hover {
    background: rgba(200,150,12,0.1);
    box-shadow: 0 0 20px rgba(200,150,12,0.3);
    color: var(--gold-light);
    transform: translateY(-2px);
}

/* ---- Hero Opening / Countdown ---- */
.hero-opening-block {
    margin: 0.5rem 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.hero-opening-label {
    font-family: 'Cinzel', serif;
    font-size: 0.65rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--text-dim);
    border: 1px solid var(--border);
    padding: 0.3rem 1.2rem;
    border-radius: 2px;
}

.hero-opening-time {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    color: var(--gold-light);
    letter-spacing: 2px;
}

.hero-countdown {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    background: rgba(200,150,12,0.07);
    border: 1px solid var(--border-bright);
    border-radius: 3px;
    padding: 0.6rem 1rem;
    min-width: 72px;
}

.countdown-val {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    color: var(--gold-light);
    line-height: 1;
    text-shadow: 0 0 30px rgba(200,150,12,0.5);
    letter-spacing: 2px;
}

.countdown-lbl {
    font-family: 'Cinzel', serif;
    font-size: 0.55rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-dim);
}

.countdown-sep {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    margin-top: 0.5rem;
    opacity: 0.6;
    animation: blink 1s step-end infinite;
}

/* ============================================
   SERVER STATUS BLOCK (new style)
   ============================================ */
#status {
    background: var(--bg-dark);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 0;
}

#status .section-inner {
    padding: 2rem 2rem;
}

.server-status-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1.75rem 2.5rem;
    position: relative;
    overflow: hidden;
    flex-wrap: wrap;
}

.server-status-block::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
}

/* Left side */
.ssb-left {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ssb-server-name {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gold-light);
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.ssb-server-name svg {
    color: var(--gold);
    flex-shrink: 0;
}

.ssb-chronicle {
    font-size: 0.75rem;
    color: var(--text-dim);
    letter-spacing: 2px;
    font-family: 'Cinzel', serif;
    padding-left: 2px;
}

.ssb-status-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.25rem;
}

.ssb-status-txt {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.ssb-players-txt {
    font-size: 0.8rem;
    color: var(--text-dim);
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
}

/* Right side — rates row */
.ssb-right {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(0,0,0,0.25);
    border: 1px solid var(--border);
    border-radius: 3px;
    overflow: hidden;
}

.ssb-rate-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 1.4rem;
    gap: 0.2rem;
}

.ssb-rate-lbl {
    font-family: 'Cinzel', serif;
    font-size: 0.55rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-dim);
}

.ssb-rate-val {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold-light);
    letter-spacing: 1px;
}

.ssb-rate-sep {
    width: 1px;
    height: 40px;
    background: var(--border);
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .server-status-block { padding: 1.25rem; }
    .ssb-right { width: 100%; justify-content: center; }
    .ssb-rate-item { padding: 0.6rem 1rem; }
}

/* Scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dim);
    font-size: 0.65rem;
    letter-spacing: 2px;
    font-family: 'Cinzel', serif;
    text-transform: uppercase;
}

.scroll-mouse {
    width: 24px;
    height: 38px;
    border: 1px solid rgba(200,150,12,0.4);
    border-radius: 12px;
    position: relative;
}

.scroll-mouse::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 8px;
    background: var(--gold);
    border-radius: 2px;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-dot 2s ease-in-out infinite;
}

@keyframes scroll-dot {
    0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
    50% { opacity: 0; transform: translateX(-50%) translateY(14px); }
}

/* ============================================
   SECTION SHARED STYLES
   ============================================ */
section {
    position: relative;
    z-index: 1;
}

.section-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--gold-light);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    text-shadow: 0 0 30px rgba(200,150,12,0.3);
}

.section-subtitle {
    font-size: 0.85rem;
    color: var(--text-dim);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: 'Cinzel', serif;
}

.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.section-divider-line {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold));
}

.section-divider-line:last-child {
    background: linear-gradient(90deg, var(--gold), transparent);
}

.section-divider-icon {
    color: var(--gold);
    font-size: 1rem;
}

/* Panel / Card */
.panel {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.5;
}

/* ============================================
   SERVER STATUS SECTION
   ============================================ */

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.online {
    background: #00ff88;
    box-shadow: 0 0 10px #00ff88, 0 0 20px #00ff88;
    animation: blink 2s ease-in-out infinite;
}

.status-dot.offline {
    background: var(--red-bright);
    box-shadow: 0 0 10px var(--red-bright);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.status-online-text { color: #00ff88; }
.status-offline-text { color: var(--red-bright); }

/* ============================================
   SERVER INFO SECTION
   ============================================ */
#info {
    background: var(--bg-dark);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 2rem;
    align-items: start;
}

.rates-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.rate-item {
    background: var(--bg-panel2);
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 1.25rem;
    text-align: center;
    transition: all 0.2s;
}

.rate-item:hover {
    border-color: var(--gold);
    background: rgba(200,150,12,0.05);
}

.rate-label {
    font-family: 'Cinzel', serif;
    font-size: 0.6rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 0.4rem;
}

.rate-value {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold-light);
}

.rate-unit {
    font-size: 0.65rem;
    color: var(--text-dim);
}

.features-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: var(--text);
    padding: 0.5rem 0.75rem;
    background: var(--bg-panel2);
    border: 1px solid var(--border);
    border-radius: 2px;
    transition: all 0.2s;
}

.features-list li:hover {
    border-color: var(--gold);
    color: var(--text-light);
}

.features-list li::before {
    content: '◆';
    color: var(--gold);
    font-size: 0.5rem;
    flex-shrink: 0;
}

/* ============================================
   TOP SECTION
   ============================================ */
#top {
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-mid) 100%);
}

.top-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
}

.top-tab {
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 0.75rem 2rem;
    cursor: pointer;
    color: var(--text-dim);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all 0.2s;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
}

.top-tab:hover { color: var(--gold); }
.top-tab.active {
    color: var(--gold-light);
    border-bottom-color: var(--gold);
}

.top-table-wrap {
    overflow-x: auto;
}

.top-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.top-table thead tr {
    background: var(--bg-panel);
    border-bottom: 1px solid var(--border-bright);
}

.top-table th {
    font-family: 'Cinzel', serif;
    font-size: 0.6rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    padding: 0.75rem 1rem;
    text-align: left;
    white-space: nowrap;
}

.top-table tbody tr {
    border-bottom: 1px solid rgba(200,150,12,0.08);
    transition: background 0.15s;
}

.top-table tbody tr:hover {
    background: rgba(200,150,12,0.06);
}

.top-table td {
    padding: 0.7rem 1rem;
    color: var(--text);
}

.top-rank-num {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    color: var(--text-dim);
}

.top-rank-1 .top-rank-num { color: #ffd700; text-shadow: 0 0 10px #ffd700; }
.top-rank-2 .top-rank-num { color: #c0c0c0; }
.top-rank-3 .top-rank-num { color: #cd7f32; }

.top-name { font-weight: 600; color: var(--text-light); }
.top-pvp-val { color: var(--red-bright); font-weight: 600; }
.top-pk-val { color: #888; }

/* Loading spinner */
.top-loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-dim);
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    letter-spacing: 2px;
}

.spinner {
    width: 36px;
    height: 36px;
    border: 2px solid var(--border);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   NEWS SECTION
   ============================================ */
#news {
    background: var(--bg-mid);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.news-card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

.news-card:hover {
    border-color: var(--border-bright);
    box-shadow: var(--shadow-gold);
    transform: translateY(-4px);
}

.news-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: var(--bg-panel2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-size: 2rem;
}

.news-card-img-placeholder {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, var(--bg-panel2), var(--bg-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    opacity: 0.4;
}

.news-card-body {
    padding: 1.5rem;
}

.news-card-cat {
    font-family: 'Cinzel', serif;
    font-size: 0.6rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.news-card-title {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.news-card-excerpt {
    font-size: 0.8rem;
    color: var(--text-dim);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.news-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--text-dim);
    font-family: 'Cinzel', serif;
    letter-spacing: 0.5px;
}

.news-read-more {
    color: var(--gold);
    font-size: 0.7rem;
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* ============================================
   NEWS EMPTY STATE
   ============================================ */
.news-empty-msg {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-dim);
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    letter-spacing: 2px;
    border: 1px dashed rgba(200,150,12,0.15);
    border-radius: 4px;
}

/* ============================================
   VOTE SECTION
   ============================================ */
#vote {
    background: linear-gradient(180deg, var(--bg-mid) 0%, var(--bg-dark) 100%);
}

.vote-subtitle {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-dim);
    letter-spacing: 1px;
}

.vote-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}

.vote-card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
    display: flex;
    flex-direction: column;
}

.vote-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.4;
    transition: opacity 0.3s;
}

.vote-card:hover {
    border-color: var(--border-bright);
    box-shadow: var(--shadow-gold);
    transform: translateY(-4px);
}

.vote-card:hover::before {
    opacity: 1;
}

/* Banner area */
.vote-banner-wrap {
    width: 100%;
    height: 80px;
    background: var(--bg-panel2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.vote-banner-img {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
    image-rendering: pixelated; /* retro banner feel */
}

.vote-banner-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,
        rgba(0,0,0,0.5),
        color-mix(in srgb, var(--accent, #c8960c) 15%, transparent)
    );
    border-bottom: 2px solid var(--accent, #c8960c);
    position: relative;
    overflow: hidden;
}

.vote-banner-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255,255,255,0.01) 10px,
        rgba(255,255,255,0.01) 20px
    );
}

.vote-banner-name {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent, #c8960c);
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 20px var(--accent, #c8960c);
    position: relative;
}

/* Card body */
.vote-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.vote-site-name {
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-light);
}

.vote-reward-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
}

.vote-reward-label {
    color: var(--text-dim);
}

.vote-reward-val {
    font-weight: 600;
    font-family: 'Cinzel', serif;
}

/* Vote button */
.btn-vote {
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 0.65rem 1rem;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: 1px solid var(--vote-color, var(--gold));
    color: var(--vote-color, var(--gold));
    background: transparent;
    text-decoration: none;
    margin-top: auto;
}

.btn-vote:hover {
    background: color-mix(in srgb, var(--vote-color, var(--gold)) 15%, transparent);
    box-shadow: 0 0 15px color-mix(in srgb, var(--vote-color, var(--gold)) 40%, transparent);
    color: var(--vote-color, var(--gold));
    transform: none;
}

.btn-vote.voted {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Nav vote highlight */
.nav-link-vote {
    color: var(--gold) !important;
}

.nav-link-vote::after {
    background: var(--gold) !important;
}

/* ============================================
   DOWNLOAD SECTION
   ============================================ */
#download {
    background: linear-gradient(180deg, var(--bg-mid) 0%, var(--bg-darkest) 100%);
    text-align: center;
}

.download-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.dl-step {
    position: relative;
    text-align: center;
}

.dl-step-num {
    width: 50px;
    height: 50px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold-light);
    margin: 0 auto 1rem;
    background: var(--bg-panel);
    box-shadow: 0 0 20px rgba(200,150,12,0.2);
    position: relative;
    z-index: 1;
}

.dl-step-title {
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: var(--text-light);
}

.dl-step::after {
    content: '';
    position: absolute;
    top: 25px;
    left: calc(50% + 25px);
    right: calc(-50% + 25px);
    height: 1px;
    background: linear-gradient(90deg, var(--gold), transparent);
    opacity: 0.4;
}

.dl-step:last-child::after { display: none; }

.dl-info {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-top: 0.5rem;
}

/* Download boxes */
.dl-boxes {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 760px;
    margin: 0 auto;
}

.dl-box {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1.75rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    transition: border-color 0.3s, box-shadow 0.3s;
    flex-wrap: wrap;
}

.dl-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.4;
}

.dl-box:hover {
    border-color: var(--border-bright);
    box-shadow: var(--shadow-gold);
}

.dl-box-patch::before {
    background: linear-gradient(90deg, transparent, #4a9eff, transparent);
}

.dl-box-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    line-height: 1;
}

.dl-box-info {
    flex: 1;
    min-width: 200px;
}

.dl-box-title {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.dl-box-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.78rem;
    color: var(--text-dim);
}

.dl-box-meta strong {
    color: var(--text);
}

.dl-box-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    flex-shrink: 0;
}

.dl-btn {
    font-size: 0.75rem;
    padding: 0.7rem 1.5rem;
    white-space: nowrap;
}

.dl-btn-soon {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.dl-btn-mirror {
    font-size: 0.68rem;
    padding: 0.6rem 1.2rem;
}

@media (max-width: 600px) {
    .dl-box { flex-direction: column; align-items: flex-start; }
    .dl-box-actions { width: 100%; }
    .dl-btn { width: 100%; justify-content: center; }
}

/* Discord CTA block */
.discord-cta {
    max-width: 760px;
    margin: 2rem auto 0;
    background: linear-gradient(135deg, rgba(88,101,242,0.08), rgba(88,101,242,0.03));
    border: 1px solid rgba(88,101,242,0.3);
    border-radius: 4px;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.discord-cta-title {
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #7289da;
    letter-spacing: 1px;
    margin-bottom: 0.2rem;
}

.discord-cta-desc {
    font-size: 0.78rem;
    color: var(--text-dim);
}

.discord-cta > div { flex: 1; min-width: 150px; }

.btn-discord {
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 0.7rem 1.5rem;
    border-radius: 2px;
    border: 1px solid #5865F2;
    color: #7289da;
    background: rgba(88,101,242,0.1);
    white-space: nowrap;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-discord:hover {
    background: rgba(88,101,242,0.2);
    box-shadow: 0 0 20px rgba(88,101,242,0.3);
    color: #99aab5;
}

/* Nav Discord button */
.nav-discord-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'Cinzel', serif;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #7289da;
    border: 1px solid rgba(88,101,242,0.4);
    border-radius: 2px;
    padding: 0.3rem 0.75rem;
    transition: all 0.2s;
    text-decoration: none;
}

.nav-discord-btn:hover {
    background: rgba(88,101,242,0.15);
    border-color: #5865F2;
    color: #99aab5;
}

@media (max-width: 480px) {
    .nav-discord-btn span { display: none; }
    .discord-cta { flex-direction: column; }
    .btn-discord { width: 100%; justify-content: center; }
}

/* ============================================
   FLOATING VOTE SIDEBAR
   ============================================ */
.vote-sidebar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 900;
    display: flex;
    align-items: center;
}

/* The tab that sticks out */
.vote-sidebar-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    background: linear-gradient(180deg, var(--gold-dark) 0%, #5a3d00 100%);
    border: 1px solid var(--gold);
    border-right: none;
    border-radius: 6px 0 0 6px;
    padding: 0.75rem 0.5rem;
    cursor: pointer;
    color: var(--gold-light);
    font-family: 'Cinzel', serif;
    font-size: 0.55rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
    transition: background 0.2s, box-shadow 0.2s;
    writing-mode: vertical-rl;
    flex-direction: row;
    writing-mode: unset;
    width: 32px;
    box-shadow: -3px 0 20px rgba(200,150,12,0.2);
}

.vote-sidebar-tab:hover {
    background: linear-gradient(180deg, var(--gold) 0%, var(--gold-dark) 100%);
    box-shadow: -4px 0 25px rgba(200,150,12,0.5);
}

.vote-sidebar-tab-txt {
    writing-mode: vertical-lr;
    transform: rotate(180deg);
    font-size: 0.55rem;
    letter-spacing: 2px;
}

.vote-sidebar-badge {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--red-bright);
    color: #fff;
    font-size: 0.55rem;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    line-height: 1;
    border: 1px solid var(--bg-darkest);
    display: none; /* shown when voted count > 0 */
}

.vote-sidebar-badge.show { display: flex; }

/* Panel */
.vote-sidebar-panel {
    background: var(--bg-panel);
    border: 1px solid var(--border-bright);
    border-right: none;
    border-radius: 6px 0 0 6px;
    width: 230px;
    box-shadow: -6px 0 40px rgba(0,0,0,0.7), -2px 0 20px rgba(200,150,12,0.1);
    overflow: hidden;

    /* closed state */
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), opacity 0.25s;
}

.vote-sidebar.open .vote-sidebar-panel {
    transform: translateX(0);
    opacity: 1;
    pointer-events: all;
}

.vote-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-panel2);
}

.vote-sidebar-title {
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold-light);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.vote-sidebar-close {
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 0.75rem;
    padding: 2px 4px;
    border-radius: 2px;
    transition: color 0.2s;
}
.vote-sidebar-close:hover { color: var(--text-light); }

.vote-sidebar-sub {
    font-size: 0.7rem;
    color: var(--text-dim);
    padding: 0.5rem 1rem;
    border-bottom: 1px solid var(--border);
    line-height: 1.4;
}
.vote-sidebar-sub strong { color: var(--gold); }

/* List of vote sites */
.vote-sidebar-list {
    display: flex;
    flex-direction: column;
}

.vsb-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid rgba(200,150,12,0.08);
    transition: background 0.15s;
    position: relative;
}

.vsb-item:last-child { border-bottom: none; }

.vsb-item:hover {
    background: rgba(255,255,255,0.03);
}

/* Widget / counter area */
.vsb-widget {
    flex-shrink: 0;
    width: 56px;
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* When the top provides an image counter (e.g. <img> or <iframe>) */
.vsb-widget img {
    max-width: 56px;
    max-height: 32px;
    object-fit: contain;
    image-rendering: pixelated;
}

.vsb-widget iframe {
    width: 56px;
    height: 30px;
    border: none;
    pointer-events: none;
    transform-origin: left center;
}

/* Placeholder counter (when no widget code) */
.vsb-counter-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--vc, var(--gold));
    border-radius: 3px;
    padding: 2px 6px;
    width: 56px;
    opacity: 0.9;
}

.vsb-count {
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--vc, var(--gold));
    line-height: 1.1;
}

.vsb-count-label {
    font-size: 0.5rem;
    color: var(--text-dim);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Info */
.vsb-info {
    flex: 1;
    min-width: 0;
}

.vsb-name {
    font-family: 'Cinzel', serif;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

/* Vote button — small arrow */
.vsb-btn {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: 1px solid var(--vc, var(--gold));
    border-radius: 2px;
    color: var(--vc, var(--gold));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: all 0.2s;
    text-decoration: none;
}

.vsb-btn:hover {
    background: color-mix(in srgb, var(--vc, var(--gold)) 20%, transparent);
    box-shadow: 0 0 10px color-mix(in srgb, var(--vc, var(--gold)) 40%, transparent);
    color: var(--vc, var(--gold));
}

.vsb-btn.voted {
    opacity: 0.35;
    pointer-events: none;
    cursor: not-allowed;
}

/* Mobile — sidebar becomes bottom bar */
@media (max-width: 768px) {
    .vote-sidebar {
        top: auto;
        bottom: 0;
        right: 0;
        left: 0;
        transform: none;
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .vote-sidebar-tab {
        writing-mode: unset;
        flex-direction: row;
        justify-content: center;
        width: 100%;
        border-radius: 0;
        border: none;
        border-top: 1px solid var(--gold);
        padding: 0.5rem 1rem;
        gap: 0.5rem;
    }

    .vote-sidebar-tab-txt {
        writing-mode: unset;
        transform: none;
        font-size: 0.65rem;
    }

    .vote-sidebar-panel {
        border-radius: 0;
        border: none;
        border-top: 1px solid var(--border-bright);
        width: 100%;
        transform: translateY(100%);
        max-height: 60vh;
        overflow-y: auto;
    }

    .vote-sidebar.open .vote-sidebar-panel {
        transform: translateY(0);
    }

    .vote-sidebar-list {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }

    .vsb-item { border-bottom: 1px solid rgba(200,150,12,0.08); }
}

/* ============================================
   FOOTER
   ============================================ */
#footer {
    background: var(--bg-darkest);
    border-top: 1px solid var(--border);
    padding: 3rem 2rem 2rem;
    position: relative;
    z-index: 1;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-logo {
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-nav {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    flex-wrap: wrap;
}

.footer-nav a {
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-dim);
    transition: color 0.2s;
}

.footer-nav a:hover { color: var(--gold); }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copy {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.footer-copy span {
    color: var(--gold);
    font-family: 'Cinzel', serif;
}

.footer-disclaimer {
    font-size: 0.7rem;
    color: var(--text-dim);
    opacity: 0.6;
    text-align: right;
}

/* ============================================
   DECORATIVE ELEMENTS
   ============================================ */
.corner-decoration {
    position: absolute;
    width: 20px;
    height: 20px;
}

.corner-tl { top: 0; left: 0; border-top: 1px solid var(--gold); border-left: 1px solid var(--gold); }
.corner-tr { top: 0; right: 0; border-top: 1px solid var(--gold); border-right: 1px solid var(--gold); }
.corner-bl { bottom: 0; left: 0; border-bottom: 1px solid var(--gold); border-left: 1px solid var(--gold); }
.corner-br { bottom: 0; right: 0; border-bottom: 1px solid var(--gold); border-right: 1px solid var(--gold); }

/* ============================================
   MOBILE NAV
   ============================================ */
@media (max-width: 768px) {
    .nav-burger { display: flex; }
    .nav-links {
        display: none;
        position: fixed;
        top: 70px; left: 0; right: 0;
        background: rgba(5,5,8,0.99);
        flex-direction: column;
        padding: 1rem 0;
        border-bottom: 1px solid var(--border);
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 0.75rem 2rem; width: 100%; }

    .info-grid { grid-template-columns: 1fr; }
    .download-steps { grid-template-columns: 1fr 1fr; }
    .dl-step::after { display: none; }
    .features-list { grid-template-columns: 1fr; }

    .footer-top { flex-direction: column; align-items: flex-start; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .footer-disclaimer { text-align: left; }
}

@media (max-width: 480px) {
    .rates-grid { grid-template-columns: 1fr 1fr; }
    .download-steps { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr; }
    .hero-buttons { flex-direction: column; align-items: center; }
}

/* ============================================
   ANIMATIONS / UTILITIES
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.glow-gold { text-shadow: 0 0 20px rgba(200,150,12,0.6); }
.text-gold { color: var(--gold-light); }
.text-dim { color: var(--text-dim); }

/* Toast notifications */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-left: 3px solid var(--gold);
    padding: 1rem 1.5rem;
    border-radius: 2px;
    font-size: 0.85rem;
    z-index: 9999;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    max-width: 300px;
}

.toast.show { transform: translateX(0); }
