/* =========================================================
   Splash Theme — screen.css  (CraftRealms layout, ocean palette)
   ========================================================= */

@font-face {
    font-family: 'Minecraft';
    src: url('../fonts/Minecraft.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --ocean:        #29b5e8;
    --ocean-dim:    #1a8ec4;
    --ocean-glow:   rgba(41,181,232,0.22);
    --cyan:         #5dd5f5;
    --gold:         #f59e0b;
    --gold-dim:     #d97706;
    --purple:       #a855f7;
    --bg-0:         #060d14;
    --bg-1:         #091220;
    --bg-2:         #0d1a2a;
    --bg-3:         #112234;
    --bg-card:      #0d1e30;
    --border:       rgba(41,181,232,0.16);
    --border-bright:rgba(41,181,232,0.38);
    --text-main:    #dff2fc;
    --text-muted:   #6bb5d4;
    --text-dim:     #3a7a9c;
    --pixel:        'Press Start 2P', monospace;
    --minecraft:    'Minecraft', 'Pixelify Sans', monospace;
    --body:         'Nunito', sans-serif;
    --nav-h:        64px;
    --bar-h:        0px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    background: var(--bg-0);
    color: var(--text-main);
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-main { padding-top: calc(var(--nav-h) + var(--bar-h)); }

/* Force announcement bar fixed above the nav — no JS needed for the 48px common case */
.gh-announcement-bar {
    position: fixed !important;
    top: 0 !important; left: 0 !important; right: 0 !important;
    width: 100% !important;
    z-index: 200 !important;
}

/* :has() fires the instant the bar appears in the DOM — instant CSS fallback */
body:has(.gh-announcement-bar) .site-nav  { top: 48px; }
body:has(.gh-announcement-bar) .site-main { padding-top: calc(var(--nav-h) + 48px); }

/* Bubble canvas (fixed background) */
#bubbles-canvas {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 0; opacity: 0.45;
}

/* =========================================================
   NAV
   ========================================================= */
.site-nav {
    position: fixed; top: var(--bar-h); left: 0; right: 0; z-index: 100;
    background: rgba(6,13,20,0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: none;
    overflow: visible;
    padding: 0 1.75rem;
    display: flex; align-items: center; justify-content: space-between;
    height: var(--nav-h);
    gap: 1.25rem;
}

/* Logo: image + text stack */
.nav-logo {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none; flex-shrink: 0;
    margin-left: 8rem;
}
.nav-logo img { height: 40px; width: auto; }
.nav-logo-text {
    display: flex; flex-direction: column; line-height: 1.2;
}
.nav-logo-name {
    font-size: 15px; font-weight: 800;
    color: var(--text-main); letter-spacing: 0.3px;
}
.nav-logo-sub {
    font-size: 10px; font-weight: 600;
    color: var(--text-dim); letter-spacing: 0.4px; text-transform: uppercase;
}

/* Ghost outputs {{navigation}} as <ul class="nav"><li>…</li></ul> */
.nav-links {
    display: flex; align-items: center; flex: 1; justify-content: center;
}
.nav-links ul {
    display: flex; align-items: center; gap: 0.2rem;
    list-style: none; margin: 0; padding: 0;
}
.nav-links li { list-style: none; }

.nav-links a {
    color: var(--text-muted);
    font-size: 12px; font-weight: 800;
    letter-spacing: 1px; text-transform: uppercase;
    padding: 7px 18px; border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.nav-links li:not(.nav-store) a:hover,
.nav-links .nav-current:not(.nav-store) a { color: var(--ocean); background: var(--ocean-glow); }

/* Store link — gold shimmer on the text itself */
.nav-store a {
    display: inline-flex; align-items: center; gap: 6px;
    position: relative;
    background: linear-gradient(90deg, #b45309, #f59e0b, #fde68a, #f59e0b, #b45309);
    background-size: 300% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: storeGoldShimmer 3s linear infinite;
}
.nav-store a::before {
    content: '';
    position: absolute; inset: 0;
    border-radius: 6px;
    background: rgba(245,158,11,0.12);
    opacity: 0;
    transition: opacity 0.2s;
}
.nav-store a:hover::before { opacity: 1; }
.nav-store a:hover { animation-duration: 1.5s; }

@keyframes storeGoldShimmer {
    0%   { background-position: 0% center; }
    100% { background-position: 300% center; }
}

/* Center PLAY NOW — Minecraft pixel style */
.nav-playnow-item { list-style: none; margin: 0 0.6rem; }

/* Other dropdown */
.nav-has-dropdown { position: relative; }

.nav-dropdown-chevron {
    font-size: 9px;
    margin-left: 5px;
    transition: transform 0.2s;
    vertical-align: middle;
}
.nav-has-dropdown.is-open .nav-dropdown-chevron,
.nav-has-dropdown:hover .nav-dropdown-chevron { transform: rotate(180deg); }

.nav-dropdown {
    position: absolute;
    top: 100%;
    padding-top: 10px;
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    background: #0d1e30;
    border: 1px solid var(--border-bright);
    border-radius: 12px;
    padding: 0.5rem 0;
    min-width: 160px;
    list-style: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 300;
    box-shadow: 0 12px 36px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
}

.nav-has-dropdown:hover .nav-dropdown,
.nav-has-dropdown.is-open .nav-dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown li a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 1.25rem;
    color: var(--text-main);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.15s, background 0.15s;
    white-space: nowrap;
}
.nav-dropdown li a i { width: 14px; text-align: center; font-size: 12px; opacity: 0.75; }
.nav-dropdown li a:hover {
    color: var(--ocean);
    background: rgba(41,181,232,0.07);
}
.nav-dropdown li:first-child a { border-radius: 12px 12px 0 0; }
.nav-dropdown li:last-child  a { border-radius: 0 0 12px 12px; }

.nav-playnow-center {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--minecraft) !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    color: #fff !important;
    background: #16a34a;
    padding: 14px 26px !important;
    border-radius: 8px;
    border-bottom: 5px solid #0f7a35;
    box-shadow: 0 0 28px rgba(22,163,74,0.5), inset 0 1px 0 rgba(255,255,255,0.15);
    transition: all 0.15s;
    white-space: nowrap;
    line-height: 1.4;
}
.nav-playnow-center i { font-size: 18px; }
.nav-playnow-center:hover {
    background: #15803d !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 0 44px rgba(22,163,74,0.75), inset 0 1px 0 rgba(255,255,255,0.15);
    border-bottom-color: #0a5c28;
}

/* Right-side actions */
.nav-actions { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; margin-right: 8rem; }

/* Player count badge */
.nav-player-badge {
    display: flex; align-items: center; gap: 6px;
    background: var(--gold); color: #1a0900;
    font-size: 12px; font-weight: 800;
    padding: 5px 11px; border-radius: 8px;
    position: relative; letter-spacing: 0.3px;
}
.nav-player-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 2px rgba(34,197,94,0.35);
    animation: pulse 1.8s ease infinite;
    flex-shrink: 0;
}

/* Offline state */
.nav-player-badge.is-offline {
    background: #dc2626; color: #fff;
}
.nav-player-badge.is-offline .nav-player-dot {
    background: #fca5a5;
    box-shadow: 0 0 0 2px rgba(252,165,165,0.35);
}

/* Nav wave — blends nav into page */
.nav-wave {
    position: absolute; bottom: -35px; left: 0;
    width: 100%; height: 36px;
    pointer-events: none;
}
.nav-wave-path { fill: rgba(6,13,20,0.92); }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 18px; border-radius: 8px;
    font-family: var(--body); font-weight: 700; font-size: 13px;
    cursor: pointer; text-decoration: none; border: none;
    transition: all 0.18s; white-space: nowrap;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-bright);
    color: var(--ocean);
}
.btn-outline:hover { background: var(--ocean-glow); border-color: var(--ocean); }

.btn-ocean {
    background: var(--ocean); color: #04111e; border: none;
    box-shadow: 0 0 20px rgba(41,181,232,0.3);
}
.btn-ocean:hover { background: var(--cyan); transform: translateY(-1px); }

.btn-discord {
    background: #5865f2; color: #fff; border: none;
    border-bottom: 4px solid #3b4bdb;
    box-shadow: 0 6px 0 #2d3abf, 0 8px 16px rgba(88,101,242,0.35);
}
.btn-discord:hover  { background: #6875f5; transform: translateY(-2px); box-shadow: 0 8px 0 #2d3abf, 0 10px 20px rgba(88,101,242,0.4); }
.btn-discord:active { transform: translateY(4px); box-shadow: 0 2px 0 #2d3abf, 0 4px 8px rgba(88,101,242,0.3); border-bottom-width: 1px; }

.btn-gold {
    background: var(--gold); color: #1a0900; border: none;
    border-bottom: 4px solid #b45309;
    box-shadow: 0 6px 0 #92400e, 0 8px 16px rgba(245,158,11,0.35);
}
.btn-gold:hover  { background: #fbbf24; transform: translateY(-2px); box-shadow: 0 8px 0 #92400e, 0 10px 20px rgba(245,158,11,0.4); }
.btn-gold:active { transform: translateY(4px); box-shadow: 0 2px 0 #92400e, 0 4px 8px rgba(245,158,11,0.3); border-bottom-width: 1px; }

.btn-block { width: 100%; justify-content: center; }

.btn-playnow {
    background: #16a34a; color: #fff; border: none;
    padding: 10px 22px;
    font-size: 13px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase;
    box-shadow: 0 0 20px rgba(22,163,74,0.4);
}
.btn-playnow:hover { background: #15803d; transform: translateY(-1px); box-shadow: 0 0 32px rgba(22,163,74,0.6); }

/* Hero variant — noticeably bigger, 3D raised, animated gradient */
.btn-playnow-hero {
    font-family: var(--minecraft); font-size: 22px; letter-spacing: 2px;
    padding: 18px 48px;
    border-radius: 10px;
    border-bottom: 5px solid #0a5c28;
    background: linear-gradient(90deg, #0f7a35, #22c55e, #4ade80, #22c55e, #0f7a35);
    background-size: 300% auto;
    box-shadow: 0 8px 0 #0a5c28, 0 12px 24px rgba(22,163,74,0.45);
    transform: scale(1.05);
    animation: playNowShimmer 3s linear infinite;
    position: relative;
    isolation: isolate;
    flex-direction: row; align-items: center; gap: 12px;
}
.btn-playnow-hero:hover {
    animation: playNowShimmer 1.5s linear infinite, rainbowGlow 1.5s linear infinite;
    transform: scale(1.07) translateY(-3px);
    box-shadow: 0 11px 0 #0a5c28, 0 16px 32px rgba(22,163,74,0.55);
}
.btn-playnow-hero:active {
    transform: scale(1.05) translateY(5px);
    box-shadow: 0 2px 0 #0a5c28, 0 4px 12px rgba(22,163,74,0.3);
    border-bottom-width: 2px;
}

@keyframes rainbowGlow {
    0%   { box-shadow: 0 8px 0 #0a5c28, 0 0 0 3px #ff4444, 0 0 24px 6px rgba(255,68,68,0.45),   0 0 48px 10px rgba(255,68,68,0.15); }
    16%  { box-shadow: 0 8px 0 #0a5c28, 0 0 0 3px #ff9900, 0 0 24px 6px rgba(255,153,0,0.45),   0 0 48px 10px rgba(255,153,0,0.15); }
    33%  { box-shadow: 0 8px 0 #0a5c28, 0 0 0 3px #ffe000, 0 0 24px 6px rgba(255,224,0,0.45),   0 0 48px 10px rgba(255,224,0,0.15); }
    50%  { box-shadow: 0 8px 0 #0a5c28, 0 0 0 3px #00e676, 0 0 24px 6px rgba(0,230,118,0.45),   0 0 48px 10px rgba(0,230,118,0.15); }
    66%  { box-shadow: 0 8px 0 #0a5c28, 0 0 0 3px #2979ff, 0 0 24px 6px rgba(41,121,255,0.45),  0 0 48px 10px rgba(41,121,255,0.15); }
    83%  { box-shadow: 0 8px 0 #0a5c28, 0 0 0 3px #d500f9, 0 0 24px 6px rgba(213,0,249,0.45),   0 0 48px 10px rgba(213,0,249,0.15); }
    100% { box-shadow: 0 8px 0 #0a5c28, 0 0 0 3px #ff4444, 0 0 24px 6px rgba(255,68,68,0.45),   0 0 48px 10px rgba(255,68,68,0.15); }
}
.playnow-icon { font-size: 28px; flex-shrink: 0; }
.playnow-text { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.playnow-main { line-height: 1; }
.playnow-sub { font-family: var(--body); font-size: 11px; font-weight: 600; letter-spacing: 0.5px; opacity: 0.85; text-transform: none; }

@keyframes playNowShimmer {
    0%   { background-position: 0% center; }
    100% { background-position: 300% center; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
    position: relative; z-index: 1;
    min-height: 92vh;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center;
    padding: 5rem 2rem 4rem;
    overflow: hidden;
    background: linear-gradient(160deg, #041c32 0%, #082a45 50%, #041c32 100%);
}

/* Still image hidden — video is the background */
.hero::before { display: none; }

.hero-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0;
    transition: opacity 1s ease;
    will-change: opacity;
}

.hero-bg-video.is-ready { opacity: 1; }

.hero-bubbles { display: none; }

/* Dark overlay on top of blurred image */
.hero::after {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% 40%, rgba(41,181,232,0.06) 0%, transparent 70%),
        linear-gradient(to bottom, rgba(4,9,14,0.38) 0%, rgba(4,9,14,0.12) 45%, rgba(4,9,14,0.6) 100%);
    pointer-events: none; z-index: 1;
}

.hero > *:not(.hero-bubbles):not(.hero-scroll-arrow):not(.hero-bg-video) { position: relative; z-index: 2; }
.hero > .hero-bg-video { position: absolute; z-index: 0; }

/* Bubble container injected by JS */
.hero-bubbles {
    position: absolute; inset: 0;
    overflow: hidden; z-index: 1;
    pointer-events: none;
}

.hero-bubble {
    position: absolute;
    bottom: -60px;
    border-radius: 50%;
    border: 1.5px solid rgba(200,240,255,0.45);
    background: rgba(255,255,255,0.03);
    animation: heroBubbleRise linear infinite;
    pointer-events: auto;
    cursor: pointer;
}

.hero-bubble.bubble-pop {
    animation: heroBubblePop 0.4s ease-out forwards !important;
}

@keyframes heroBubblePop {
    0%   { transform: scale(1);   opacity: 1; }
    40%  { transform: scale(2.4); opacity: 0.7; }
    100% { transform: scale(3.5); opacity: 0; }
}

/* Pop particles */
.pop-ring {
    position: fixed;
    border-radius: 50%;
    border: 2px solid rgba(93,213,245,0.7);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%) scale(0.2);
    animation: popRingExpand 0.5s ease-out forwards;
}
@keyframes popRingExpand {
    0%   { transform: translate(-50%, -50%) scale(0.2); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1);   opacity: 0; }
}

.pop-drop {
    position: fixed;
    border-radius: 50%;
    background: rgba(93,213,245,0.85);
    pointer-events: none;
    z-index: 9999;
    animation: popDropFly 0.55s ease-out forwards;
}
@keyframes popDropFly {
    0%   { transform: translate(-50%,-50%) translate(0,0) scale(1);   opacity: 1; }
    100% { transform: translate(-50%,-50%) translate(var(--dx),var(--dy)) scale(0); opacity: 0; }
}

.hero-bubble::after {
    content: '';
    position: absolute;
    top: 18%; left: 18%;
    width: 28%; height: 28%;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
}

@keyframes heroBubbleRise {
    0%   { transform: translateY(0) translateX(0); opacity: 0; }
    8%   { opacity: 1; }
    85%  { opacity: 0.8; }
    100% { transform: translateY(-105vh) translateX(15px); opacity: 0; }
}

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(0,0,0,0.45);
    border: 1px solid rgba(41,181,232,0.5);
    color: var(--ocean); font-weight: 700;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    border-radius: 999px;
    padding: 6px 18px;
    font-size: 12px;
    letter-spacing: 0.5px;
    margin-bottom: 2rem;
    animation: fadeUp 0.6s ease both;
    transition: transform 0.22s cubic-bezier(0.34,1.56,0.64,1), border-color 0.2s, background 0.2s, box-shadow 0.2s;
    cursor: pointer;
}
.hero-badge:hover {
    transform: scale(1.12);
    border-color: rgba(41,181,232,0.5);
    box-shadow: 0 0 0 6px rgba(41,181,232,0.35), 0 0 40px 14px rgba(41,181,232,0.65), 0 0 90px 30px rgba(41,181,232,0.35);
}

.hero-badge-link {
    display: inline-flex; align-items: center; gap: 8px;
    color: inherit; text-decoration: none;
}
.hero-badge-link:hover { color: inherit; }

.hero-badge-date {
    font-size: 11px; font-weight: 700; color: var(--text-dim);
    letter-spacing: 0.3px;
}

.hero-badge-new {
    font-size: 9px; font-weight: 800; letter-spacing: 1px;
    text-transform: uppercase;
    background: var(--ocean); color: #04111e;
    padding: 2px 7px; border-radius: 999px;
}

.hero-badge-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--ocean);
    animation: pulse 1.8s ease infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.7); }
}

.hero-logo {
    width: min(520px, 80vw);
    height: auto;
    filter: drop-shadow(0 10px 36px rgba(0,0,0,0.65));
    animation: logoFadeIn 0.7s 0.1s ease both, logoBreathe 3.5s 0.8s ease-in-out infinite;
    margin-bottom: 1.25rem;
}

@keyframes logoFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes logoBreathe {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.045) translateY(-5px); }
}

.hero-subtitle {
    max-width: 500px;
    font-size: 16px; color: var(--text-muted); font-weight: 600;
    margin: 0 auto 2rem;
    animation: fadeUp 0.7s 0.2s ease both;
}

.ip-box {
    display: flex; align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-bright);
    border-radius: 12px;
    padding: 14px 14px 14px 24px;
    gap: 12px;
    width: 100%; max-width: 440px;
    margin: 0 auto 1.5rem;
    animation: fadeUp 0.7s 0.3s ease both;
    position: relative; overflow: hidden;
    cursor: pointer;
}

.ip-box::before {
    content: '';
    position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
    background: var(--ocean); border-radius: 3px 0 0 3px;
}

.ip-label { font-size: 10px; color: var(--text-dim); font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; }
.ip-address { font-family: var(--pixel); font-size: 13px; color: var(--ocean); margin-top: 3px; }
.ip-box .btn { margin-left: auto; flex-shrink: 0; }

.hero-actions {
    display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; align-items: center;
    animation: fadeUp 0.7s 0.4s ease both;
}
.hero-actions .btn-discord,
.hero-actions .btn-gold {
    font-size: 15px;
    padding: 14px 26px;
}

.hero-scroll-arrow {
    position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
    z-index: 2;
    display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
    text-decoration: none;
    animation: arrowBounce 1.8s ease-in-out infinite;
}
.hero-scroll-label {
    font-size: 15px; font-weight: 700; letter-spacing: 0.5px;
    color: rgba(255,255,255,0.55);
    white-space: nowrap;
    transition: color 0.2s;
}
.hero-scroll-arrow:hover .hero-scroll-label { color: var(--ocean); }
.hero-scroll-arrow i {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(41,181,232,0.5);
    background: rgba(6,13,20,0.45);
    backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center;
    color: var(--ocean); font-size: 16px;
    transition: border-color 0.2s, background 0.2s;
}
.hero-scroll-arrow:hover i {
    border-color: var(--ocean);
    background: rgba(41,181,232,0.15);
}
.hero-scroll-arrow:hover {
    border-color: var(--ocean);
    background: rgba(41,181,232,0.15);
    color: var(--ocean);
}

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

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   STATS BAR
   ========================================================= */
.stats-bar {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative; z-index: 1;
}

.stats-inner {
    max-width: 1100px; margin: 0 auto; padding: 2rem;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem; text-align: center;
}

.stat-num {
    font-family: var(--pixel); font-size: 17px;
    color: var(--ocean); margin-bottom: 0.35rem;
    line-height: 1.5;
}

.stat-label {
    font-size: 11px; color: var(--text-dim); font-weight: 700;
    letter-spacing: 0.5px; text-transform: uppercase;
}

/* =========================================================
   DIVIDER
   ========================================================= */
.divider { border: none; border-top: 1px solid var(--border); position: relative; z-index: 1; }

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

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

.section-label {
    font-family: var(--pixel); font-size: 10px; color: var(--ocean);
    letter-spacing: 2px; text-transform: uppercase; margin-bottom: 0.75rem;
}

.section-title {
    font-family: 'Inter', var(--body); font-weight: 900; font-size: clamp(22px, 3vw, 38px);
    line-height: 1.4; color: var(--text-main); margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.section-title .accent { color: var(--ocean); }

.section-body { font-size: 15px; color: var(--text-muted); max-width: 520px; margin-bottom: 0.5rem; }

/* =========================================================
   NEWS / POST CARDS
   ========================================================= */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem; margin-top: 2.5rem;
}

.news-view-all {
    margin-top: 2rem;
    text-align: center;
}

.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    display: flex; flex-direction: column;
    color: var(--text-main);
}

.news-card:hover {
    border-color: var(--border-bright);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}

.news-thumb {
    height: 160px;
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
}

.news-thumb-img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.45s;
}

.news-card:hover .news-thumb-img { transform: scale(1.06); }

.news-thumb--placeholder .news-thumb-icon {
    font-size: 48px; position: relative; z-index: 1;
}

.news-body {
    padding: 1.25rem; flex: 1;
    display: flex; flex-direction: column;
}

.news-tag {
    display: inline-block; padding: 3px 10px; border-radius: 999px;
    font-size: 11px; font-weight: 700;
    background: rgba(41,181,232,0.10); color: var(--ocean);
    margin-bottom: 0.75rem; width: fit-content;
}

.news-title {
    font-size: 14px; font-weight: 800; color: var(--text-main);
    line-height: 1.4; margin-bottom: 0.5rem;
}

.news-excerpt { font-size: 13px; color: var(--text-muted); line-height: 1.5; flex: 1; }

.news-date { font-size: 12px; color: var(--text-dim); margin-top: 0.75rem; font-weight: 600; }

/* Pagination */
.pagination {
    display: flex; gap: 0.75rem; justify-content: center;
    margin-top: 2.5rem; flex-wrap: wrap;
}

.pagination a {
    padding: 8px 20px; border-radius: 8px;
    border: 1px solid var(--border-bright); color: var(--ocean);
    font-weight: 700; font-size: 13px;
    background: transparent;
    transition: background 0.2s;
}

.pagination a:hover { background: var(--ocean-glow); }

/* =========================================================
   SINGLE POST
   ========================================================= */
.post-template .site-main { position: relative; z-index: 1; }

/* Hero banner at top of post */
.post-hero {
    position: relative;
    min-height: 380px;
    display: flex; align-items: flex-end;
    overflow: hidden;
    background: var(--bg-1);
    background-image: url('../images/bg-image-top.png');
    background-size: cover;
    background-position: center;
    padding-bottom: 3rem;
}

.post-hero-img {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    filter: blur(3px);
    transform: scale(1.04);
}

.post-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(4,9,14,0.35) 0%, rgba(4,9,14,0.75) 100%);
}

.post-hero-content {
    position: relative; z-index: 1;
    width: 100%;
}

.post-title {
    font-family: var(--pixel);
    font-size: clamp(15px, 2.5vw, 24px);
    line-height: 1.65; color: var(--text-main);
    margin: 0.75rem 0 1rem;
}
.post-title:empty { display: none; }

.post-meta {
    font-size: 12px; color: rgba(255,255,255,0.9); font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.08em;
    display: inline-flex; gap: 0.75rem; flex-wrap: wrap; align-items: center;
    background: rgba(0,0,0,0.38); padding: 0.4rem 0.9rem;
    border-radius: 20px; backdrop-filter: blur(6px);
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.post-meta a { color: var(--ocean); }

/* Article body */
.post { max-width: 760px; margin: 0 auto; padding: 3.5rem 2rem 6rem; }

/* Ghost Koenig editor width classes */
.gh-content .kg-width-wide {
    margin-left: calc(50% - min(50vw - 2rem, 520px));
    margin-right: calc(50% - min(50vw - 2rem, 520px));
    width: auto;
}

.gh-content .kg-width-full {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: 100vw;
}

.gh-content .kg-image-card img,
.gh-content .kg-gallery-image img { width: 100%; border-radius: 10px; }

.gh-content .kg-gallery-container { display: flex; flex-direction: column; }
.gh-content .kg-gallery-row { display: flex; gap: 0.5rem; }
.gh-content .kg-gallery-image { flex: 1; overflow: hidden; border-radius: 8px; }

.gh-content .kg-embed-card { margin: 1.5rem 0; }
.gh-content .kg-embed-card iframe { width: 100%; border-radius: 10px; }

.gh-content .kg-callout-card {
    display: flex; gap: 1rem; padding: 1.25rem;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 10px; margin: 1.5rem 0;
}

.gh-content .kg-bookmark-card {
    border: 1px solid var(--border); border-radius: 10px;
    overflow: hidden; margin: 1.5rem 0;
    background: var(--bg-card);
}

.gh-content,
.post-content { font-size: 16px; line-height: 1.9; color: var(--text-main); }

.gh-content h2, .gh-content h3,
.post-content h2, .post-content h3 {
    font-family: var(--pixel); color: var(--text-main);
    margin: 2.5rem 0 0.75rem; line-height: 1.6;
}
.gh-content h2, .post-content h2 { font-size: 15px; }
.gh-content h3, .post-content h3 { font-size: 12px; }

.gh-content p, .post-content p { margin-bottom: 1.5rem; }

.gh-content a, .post-content a {
    color: var(--ocean);
    border-bottom: 1px solid var(--ocean-glow);
    transition: border-color 0.2s;
}
.gh-content a:hover, .post-content a:hover { border-color: var(--ocean); }

.gh-content img, .post-content img { border-radius: 10px; margin: 1.5rem 0; width: 100%; }

.gh-content blockquote, .post-content blockquote {
    border-left: 3px solid var(--ocean);
    padding-left: 1.25rem; margin: 2rem 0;
    color: var(--text-muted); font-style: italic;
}

.gh-content code, .post-content code {
    background: var(--bg-card); border-radius: 4px;
    padding: 0.1em 0.4em; font-size: 0.88em;
}

.gh-content pre, .post-content pre {
    background: rgba(0,0,0,0.45); border-radius: 10px;
    padding: 1.25rem; overflow-x: auto; margin: 1.5rem 0;
    border: 1px solid var(--border);
}
.gh-content pre code, .post-content pre code { background: none; padding: 0; }

.post-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex; gap: 1rem; flex-wrap: wrap; align-items: center;
}

.post-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; flex: 1; }

.tag {
    font-size: 11px; font-weight: 700; padding: 3px 12px;
    background: rgba(41,181,232,0.10); border: 1px solid var(--border-bright);
    border-radius: 999px; color: var(--ocean); letter-spacing: 0.04em;
    transition: background 0.2s;
}
.tag:hover { background: var(--ocean-glow); }

/* Other templates */
.page-template .site-main,
.tag-template .site-main { position: relative; z-index: 1; }

.tag-header { max-width: 1100px; margin: 0 auto; padding: 4rem 2rem 1rem; }
.tag-header h1 { font-family: var(--pixel); font-size: 20px; color: var(--text-main); margin-bottom: 0.5rem; }
.tag-header p { color: var(--text-muted); }

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.reveal {
    opacity: 0;
    transform: translateY(34px) scale(0.97);
    transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.reveal.visible { opacity: 1; transform: translateY(0) scale(1); }

/* =========================================================
   FOOTER WAVES
   ========================================================= */
.site-footer { position: relative; z-index: 1; background: var(--bg-2); }

.footer-waves {
    position: relative;
    width: 100%; height: 110px;
    overflow: hidden; line-height: 0;
    background: var(--bg-0);
}

.footer-wave {
    position: absolute; bottom: 0; left: 0;
    width: 200%; height: 100%;
    animation: footerSwell linear infinite;
}

.fw-main  { animation-duration: 8s; }
.fw-accent { animation-duration: 5s; animation-direction: reverse; opacity: 0.18; }

@keyframes footerSwell {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.wave { display: none; }

/* =========================================================
   DISCORD SECTION
   ========================================================= */
.discord-section {
    background: linear-gradient(160deg, #0b0d1f 0%, #111328 50%, #0d0f1a 100%);
    position: relative;
}
.discord-section::before {
    content: '';
    position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse 60% 80% at 70% 50%, rgba(88,101,242,0.10) 0%, transparent 70%);
}

.discord-section .section-label { color: #5865f2; }
.discord-section .section-title .accent { color: #7289ff; }
.discord-section .feature-list li::before { color: #5865f2; }
.discord-section .feature-list li { color: #b0b8d4; }

.discord-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
}

.feature-list {
    list-style: none;
    margin: 1.5rem 0 2rem;
    display: flex; flex-direction: column; gap: 0.85rem;
}

.feature-list li {
    display: flex; align-items: center; gap: 0.75rem;
    font-size: 14px; color: var(--text-muted);
}

.feature-list li::before { content: '✓'; color: var(--ocean); font-weight: 800; font-size: 15px; flex-shrink: 0; }
.feature-list--stars li::before { content: '★'; color: var(--gold); }

.discord-widget {
    background: #1a1c2f;
    border: 1px solid rgba(88,101,242,0.35);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0,0,0,0.5), 0 0 40px rgba(88,101,242,0.15);
}

.widget-header {
    display: flex; align-items: center; gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: #13152a;
    border-bottom: 1px solid rgba(88,101,242,0.2);
}

.widget-server-icon { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.widget-name { font-weight: 700; font-size: 15px; color: var(--text-main); }

.widget-online {
    display: flex; align-items: center; gap: 6px;
    font-size: 12px; color: #57f287; margin-top: 3px;
}

.widget-dot { width: 8px; height: 8px; border-radius: 50%; background: #57f287; display: inline-block; flex-shrink: 0; }

.widget-messages { padding: 1.25rem 1.5rem; display: flex; flex-direction: column; gap: 1.1rem; }

.widget-msg { display: flex; align-items: flex-start; gap: 0.85rem; }

.widget-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 13px; color: #fff; flex-shrink: 0;
}

.widget-msg-body { display: flex; flex-direction: column; gap: 2px; }
.widget-username { font-size: 12px; font-weight: 700; }
.widget-text { font-size: 13px; color: var(--text-muted); line-height: 1.4; }

/* =========================================================
   STORE SECTION
   ========================================================= */
.store-section {
    background: linear-gradient(160deg, #0f0d05 0%, #16120a 50%, #0d0c05 100%);
    position: relative;
}
.store-section::before {
    content: '';
    position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse 60% 80% at 30% 50%, rgba(245,158,11,0.08) 0%, transparent 70%);
}

.store-section .section-label { color: var(--gold); }
.store-section .section-title .accent { color: var(--gold); }

.store-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
}

.ranks-panel, .store-text { min-width: 0; }

.ranks-panel {
    background: #13100a;
    border: 1px solid rgba(245,158,11,0.3);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 40px rgba(245,158,11,0.08);
    overflow: hidden;
}

/* Rank carousel */
.rank-carousel-wrap { position: relative; width: 100%; }

.rank-carousel-viewport {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(245,158,11,0.25);
    width: 100%;
}

.rank-carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.rank-slide {
    flex: 0 0 100%;
    min-width: 0;
    background: #13100a;
    display: flex;
    flex-direction: column;
}

.rank-slide-img {
    width: 100%; height: 200px;
    object-fit: cover; display: block;
    flex-shrink: 0;
}

.rank-slide-info {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 1.25rem;
    background: #1a1508;
    gap: 1rem;
}

.rank-slide-left { display: flex; flex-direction: column; gap: 4px; }

.rank-slide-name {
    font-family: 'Inter', var(--body); font-weight: 800;
    font-size: 1.1rem; color: var(--text-main);
}

.rank-slide-tag {
    display: inline-block;
    font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    padding: 2px 8px; border-radius: 20px;
    background: rgba(245,158,11,0.12); color: var(--gold);
    border: 1px solid rgba(245,158,11,0.28);
    width: fit-content;
}

.rank-slide-right {
    display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
    flex-shrink: 0;
}

.rank-slide-price {
    font-size: 1.4rem; font-weight: 900; color: var(--gold);
    font-family: 'Inter', var(--body); letter-spacing: -0.5px; line-height: 1;
}

.rank-slide-btn { font-size: 13px; padding: 8px 18px; }

.rank-carousel-btn {
    position: absolute; top: calc(200px / 2); transform: translateY(-50%);
    width: 34px; height: 34px;
    background: rgba(10,8,2,0.7); border: 1px solid rgba(245,158,11,0.4);
    color: var(--gold); border-radius: 50%; cursor: pointer;
    font-size: 1.3rem; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s, border-color 0.2s;
    z-index: 2; backdrop-filter: blur(4px);
}
.rank-carousel-btn:hover { background: rgba(245,158,11,0.25); border-color: var(--gold); }
.rank-carousel-prev { left: 0.5rem; }
.rank-carousel-next { right: 0.5rem; }

.rank-carousel-dots {
    display: flex; align-items: center; justify-content: center; gap: 7px;
    padding: 0.75rem 0 0;
}

.rank-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: rgba(245,158,11,0.2);
    border: 1px solid rgba(245,158,11,0.35);
    transition: background 0.3s, transform 0.3s;
    cursor: pointer;
}
.rank-dot.is-active { background: var(--gold); transform: scale(1.3); }

.footer-inner {
    max-width: 1100px; margin: 0 auto;
    padding: 2.5rem 2rem;
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
}

.footer-brand .footer-icon { width: 52px; margin-bottom: 0.75rem; filter: drop-shadow(0 4px 12px rgba(41,181,232,0.4)); }
.footer-desc { font-size: 13px; color: var(--text-dim); line-height: 1.6; }
.footer-legal { font-size: 11px; color: var(--text-dim); margin-top: 0.75rem; }

.footer-col h4 {
    font-family: var(--pixel); font-size: 9px; color: var(--ocean);
    letter-spacing: 1px; margin-bottom: 1rem; text-transform: uppercase;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul a { font-size: 13px; color: var(--text-muted); transition: color 0.15s; }
.footer-col ul a:hover { color: var(--ocean); }

.footer-bottom {
    max-width: 1100px; margin: 0 auto;
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 0.5rem;
    font-size: 12px; color: var(--text-dim);
}

.footer-ip { color: var(--ocean); font-weight: 700; }

.footer-social {
    display: flex; align-items: center; gap: 0.6rem;
    margin-top: 1.1rem;
}

.social-link {
    width: 36px; height: 36px;
    border-radius: 9px;
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted);
    font-size: 15px;
    transition: color 0.18s, border-color 0.18s, background 0.18s, transform 0.18s;
}

.social-link:hover                { transform: translateY(-2px); }
.social-link.social-discord:hover  { color: #5865f2; border-color: #5865f2; background: rgba(88,101,242,0.12); }
.social-link.social-twitter:hover  { color: #fff;    border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.08); }
.social-link.social-instagram:hover{ color: #e1306c; border-color: #e1306c; background: rgba(225,48,108,0.12); }
.social-link.social-tiktok:hover   { color: #fff;    border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.08); }
.social-link.social-youtube:hover  { color: #ff0000; border-color: #ff0000; background: rgba(255,0,0,0.10); }

/* =========================================================
   FEATURES STRIP
   ========================================================= */
.features-section { background: var(--bg-1); }

.features-inner { padding-top: 3.5rem; padding-bottom: 3.5rem; max-width: 1380px; padding-left: 2rem; padding-right: 2rem; }

.features-heading {
    font-family: var(--pixel);
    font-size: clamp(9px, 1.1vw, 13px);
    color: var(--ocean);
    letter-spacing: 3px;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 2.5rem;
    display: flex; align-items: center; justify-content: center; gap: 1rem;
}

.features-star { font-size: 10px; opacity: 0.6; }

/* Carousel */
.features-carousel-wrap {
    position: relative;
    overflow: hidden;
}

.features-track-outer {
    overflow: hidden;
    width: 100%;
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.features-track {
    display: flex;
    gap: 1rem;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.feature-card {
    flex: 0 0 360px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    filter: brightness(0.38) saturate(0.45);
    transform: scale(0.96);
    transition: filter 0.4s ease, transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
}

/* Per-card colors */
.feature-card:nth-child(1) { --fc: #29b5e8; }
.feature-card:nth-child(2) { --fc: #f97316; }
.feature-card:nth-child(3) { --fc: #a855f7; }
.feature-card:nth-child(4) { --fc: #f59e0b; }
.feature-card:nth-child(5) { --fc: #ef4444; }
.feature-card:nth-child(6) { --fc: #22c55e; }

.feature-card.is-active,
.feature-card:hover {
    filter: brightness(1) saturate(1);
    transform: scale(1);
    border-color: color-mix(in srgb, var(--fc) 50%, transparent);
    box-shadow: 0 16px 40px rgba(0,0,0,0.5), 0 0 0 1px color-mix(in srgb, var(--fc) 20%, transparent);
}

/* When any card is hovered, dim the rest further */
.features-track:has(.feature-card:hover) .feature-card:not(:hover) {
    filter: brightness(0.3) saturate(0.35);
}

.feature-img {
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    color: var(--fc);
    position: relative;
    overflow: hidden;
}
.feature-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.45) 100%);
}
.feature-img--1 { background: linear-gradient(135deg, #071e34, #0a3a5e); }
.feature-img--2 { background: linear-gradient(135deg, #2a1200, #4a2000); }
.feature-img--3 { background: linear-gradient(135deg, #1a0b2e, #2e1254); }
.feature-img--4 { background: linear-gradient(135deg, #2a1e00, #4a3500); }
.feature-img--5 { background: linear-gradient(135deg, #2a0505, #4a0a0a); }
.feature-img--6 { background: linear-gradient(135deg, #052a10, #0a4a1e); }

.feature-img i { position: relative; z-index: 1; }

.feature-body {
    padding: 1.1rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    text-align: left;
}

.feature-name {
    font-family: var(--minecraft);
    font-size: 14px;
    letter-spacing: 1.5px;
    line-height: 1.4;
    color: var(--fc);
}

.feature-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.55;
}

.feature-learn {
    margin-top: 0.6rem;
    font-size: 13px;
    color: var(--fc);
    opacity: 0.75;
    text-decoration: underline;
    text-underline-offset: 3px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: opacity 0.2s, gap 0.2s;
}
.feature-learn:hover {
    opacity: 1;
    gap: 0.65rem;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-bright);
    background: rgba(6,13,20,0.75);
    backdrop-filter: blur(6px);
    color: var(--ocean);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    z-index: 10;
}
.carousel-btn--prev { left: 1rem; }
.carousel-btn--next { right: 1rem; }
.carousel-btn:hover {
    background: var(--ocean);
    color: #fff;
    border-color: var(--ocean);
}

/* =========================================================
   RULES PAGE
   ========================================================= */
.rules-hero {
    background: linear-gradient(180deg, #071828 0%, var(--bg-0) 100%);
    border-bottom: 1px solid var(--border);
    padding: 5rem 2rem 4rem;
    text-align: center;
    margin-top: 0;
}

.rules-hero-inner { max-width: 700px; margin: 0 auto; }

.rules-title {
    font-family: 'Inter', var(--body);
    font-size: clamp(28px, 3.5vw, 46px);
    font-weight: 900;
    letter-spacing: -0.5px;
    color: var(--text-main);
    margin: 0.75rem 0 1rem;
    display: flex; align-items: center; justify-content: center; gap: 0.75rem;
}
.rules-title i { color: var(--ocean); }

.rules-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.6;
}

.rules-revision {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.7;
}

.rules-wrap {
    padding-top: 3.5rem;
    padding-bottom: 5rem;
    max-width: 820px;
}

body:has(.rules-wrap) #bubbles-canvas {
    opacity: 0.12;
}

@keyframes ruleSlideDown {
    from { opacity: 0; transform: translateY(-24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.rules-intro-block                        { animation: ruleSlideDown 0.45s ease both; animation-delay: 0.1s; }
.rule-section-wrap:nth-child(1)           { animation: ruleSlideDown 0.45s ease both; animation-delay: 0.25s; }
.rule-section-wrap:nth-child(2)           { animation: ruleSlideDown 0.45s ease both; animation-delay: 0.4s; }
.rule-section-wrap:nth-child(3)           { animation: ruleSlideDown 0.45s ease both; animation-delay: 0.55s; }
.rule-section-wrap:nth-child(4)           { animation: ruleSlideDown 0.45s ease both; animation-delay: 0.7s; }
.rule-section-wrap:nth-child(5)           { animation: ruleSlideDown 0.45s ease both; animation-delay: 0.85s; }

/* =========================================================
   STAFF PAGE
   ========================================================= */
.staff-jobs-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(41,181,232,0.06);
    border-top: 1px solid rgba(41,181,232,0.12);
    border-bottom: 1px solid rgba(41,181,232,0.12);
    font-size: 13px;
    color: rgba(255,255,255,0.55);
}

.staff-jobs-cta i { color: var(--ocean); }

.staff-jobs-cta a {
    color: var(--ocean);
    font-weight: 700;
    text-decoration: underline;
}

.staff-wrap {
    max-width: 1000px;
    padding-top: 3rem;
    padding-bottom: 5rem;
}

.staff-loading {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 14px;
    padding: 3rem 0;
}

.staff-empty {
    color: var(--text-muted);
    font-size: 14px;
    padding: 3rem 0;
}

.staff-rank-section {
    margin-bottom: 3rem;
    animation: ruleSlideDown 0.45s ease both;
}

.staff-rank-section:nth-child(1) { animation-delay: 0.05s; }
.staff-rank-section:nth-child(2) { animation-delay: 0.15s; }
.staff-rank-section:nth-child(3) { animation-delay: 0.25s; }
.staff-rank-section:nth-child(4) { animation-delay: 0.35s; }
.staff-rank-section:nth-child(5) { animation-delay: 0.45s; }
.staff-rank-section:nth-child(6) { animation-delay: 0.55s; }

.staff-rank-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.staff-rank-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--rc, var(--ocean));
    flex-shrink: 0;
}

.staff-rank-label {
    font-family: var(--pixel);
    font-size: 11px;
    color: var(--rc, var(--ocean));
    letter-spacing: 1px;
}

.staff-rank-count {
    margin-left: auto;
    font-size: 11px;
    color: rgba(255,255,255,0.3);
    font-family: var(--pixel);
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

.staff-card {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 1.5rem 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    transition: border-color 0.2s, transform 0.2s;
}

.staff-card:hover {
    border-color: var(--ocean);
    transform: translateY(-3px);
}

.staff-avatar {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    image-rendering: pixelated;
}

.staff-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.staff-name {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-main);
}

.staff-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

/* =========================================================
   APPEAL PAGE
   ========================================================= */
.appeal-wrap {
    max-width: 980px;
    padding-top: 3rem;
    padding-bottom: 5rem;
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
}

.appeal-info {
    flex: 0 0 310px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.appeal-info-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 24px 22px;
    background: var(--bg-card);
    border: 1px solid rgba(41,181,232,0.12);
    border-radius: 12px;
}

.appeal-info-card > i {
    color: var(--ocean);
    font-size: 22px;
    margin-top: 2px;
    flex-shrink: 0;
}

.appeal-info-card strong {
    display: block;
    font-size: 16px;
    color: var(--text-main);
    margin-bottom: 8px;
}

.appeal-info-card p {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    line-height: 1.7;
    margin: 0;
}

.appeal-info-card a {
    color: var(--ocean);
    text-decoration: underline;
}

.appeal-form-wrap {
    flex: 1;
    background: #fff;
    border-radius: 14px;
    padding: 2rem;
    min-height: 400px;
}

.appeal-form-wrap iframe {
    border-radius: 8px;
}

/* =========================================================
   VOTE PAGE
   ========================================================= */
body:has(.vote-wrap) .rules-hero {
    background: linear-gradient(160deg, #1e1630 0%, #2e2050 40%, #1e1630 100%);
    border-bottom: 1px solid rgba(155,142,196,0.3);
    position: relative;
    overflow: hidden;
}

body:has(.vote-wrap) .rules-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 80% at 50% 120%, rgba(155,142,196,0.35) 0%, transparent 70%);
    pointer-events: none;
}

body:has(.vote-wrap) .rules-hero .section-label { color: #b8aee0; }
body:has(.vote-wrap) .rules-hero .rules-title { text-shadow: 0 0 40px rgba(155,142,196,0.5); }
body:has(.vote-wrap) .rules-hero .rules-subtitle { color: rgba(255,255,255,0.75); }
body:has(.vote-wrap) .rules-hero .rules-hero-inner { position: relative; z-index: 1; }

.vote-wrap { max-width: 1300px !important; }

.vote-hero-gif {
    margin: 1.5rem auto 0;
    max-width: 340px; width: 100%;
    border-radius: 12px;
    display: block;
}

.vote-layout {
    display: flex !important;
    gap: 3rem;
    align-items: flex-start;
}

.vote-info {
    flex: 0 0 240px;
}

.vote-info-title {
    font-family: var(--minecraft);
    font-size: 18px;
    color: var(--text-main);
    margin: 0 0 0.5rem;
    letter-spacing: 1px;
    display: block;
}

.vote-info-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0 0 1.5rem;
    display: block;
}

.vote-streak-title {
    font-family: var(--pixel);
    font-size: 10px;
    color: var(--ocean);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    display: block;
}

.vote-streak-table {
    width: 100%;
    border-collapse: collapse;
}

.vote-streak-table tr {
    border-bottom: 1px solid rgba(41,181,232,0.1);
}

.vote-streak-table td {
    padding: 8px 10px;
    font-size: 13px;
    color: var(--text-main);
}

.vote-streak-table td:last-child {
    text-align: right;
    color: var(--ocean);
    font-weight: 700;
}

.vote-sites {
    flex: 1;
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-content: start;
}

.vote-sites-label {
    grid-column: 1 / -1;
    font-family: var(--pixel);
    font-size: 10px;
    color: var(--ocean);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 4px;
    display: block;
}

.gh-content .vote-site-btn {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: var(--bg-card);
    border: 1px solid rgba(41,181,232,0.15);
    border-radius: 10px;
    text-decoration: none !important;
    color: var(--text-main) !important;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.18s;
    border-bottom: 1px solid rgba(41,181,232,0.15) !important;
}

.gh-content .vote-site-btn:hover {
    border-color: var(--ocean) !important;
    background: rgba(41,181,232,0.08);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(41,181,232,0.15);
    color: var(--text-main) !important;
}

.vote-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(41,181,232,0.15);
    color: var(--ocean);
    font-family: var(--pixel);
    font-size: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* How to vote guide panel */
.vote-guide {
    flex: 0 0 200px;
}

@keyframes voteSlideIn {
    from { opacity: 0; transform: translateX(-40px); }
    to   { opacity: 1; transform: translateX(0); }
}

.vote-info  { animation: voteSlideIn 0.5s ease both; animation-delay: 0.1s; }
.vote-sites { animation: voteSlideIn 0.5s ease both; animation-delay: 0.3s; }
.vote-guide { animation: voteSlideIn 0.5s ease both; animation-delay: 0.5s; }

.vote-guide-title {
    font-family: var(--pixel);
    font-size: 10px;
    color: var(--ocean);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    display: block;
}

.vote-guide-step {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 1.25rem;
    padding: 14px;
    background: var(--bg-card);
    border: 1px solid rgba(41,181,232,0.12);
    border-radius: 10px;
}

.vote-step-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--ocean);
    color: var(--bg-0);
    font-family: var(--pixel);
    font-size: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.vote-guide-step-text {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Per-button colors */
.vote-sites .vote-site-btn:nth-child(1) { --vc: #29b5e8; }
.vote-sites .vote-site-btn:nth-child(2) { --vc: #a855f7; }
.vote-sites .vote-site-btn:nth-child(3) { --vc: #22c55e; }
.vote-sites .vote-site-btn:nth-child(4) { --vc: #f97316; }
.vote-sites .vote-site-btn:nth-child(5) { --vc: #ef4444; }
.vote-sites .vote-site-btn:nth-child(6) { --vc: #f59e0b; }
.vote-sites .vote-site-btn:nth-child(7) { --vc: #ec4899; }
.vote-sites .vote-site-btn:nth-child(8) { --vc: #14b8a6; }

.vote-sites .vote-site-btn {
    border-color: color-mix(in srgb, var(--vc, var(--ocean)) 30%, transparent) !important;
    border-left: 3px solid var(--vc, var(--ocean)) !important;
}
.vote-sites .vote-site-btn .vote-num {
    background: color-mix(in srgb, var(--vc, var(--ocean)) 18%, transparent);
    color: var(--vc, var(--ocean));
}
.vote-sites .vote-site-btn:hover {
    border-color: var(--vc, var(--ocean)) !important;
    background: color-mix(in srgb, var(--vc, var(--ocean)) 10%, transparent) !important;
    box-shadow: 0 6px 20px color-mix(in srgb, var(--vc, var(--ocean)) 25%, transparent) !important;
}

/* Streak table row colors */
.vote-streak-table tr:nth-child(1) td:last-child { color: #29b5e8; }
.vote-streak-table tr:nth-child(2) td:last-child { color: #22c55e; }
.vote-streak-table tr:nth-child(3) td:last-child { color: #f59e0b; }
.vote-streak-table tr:nth-child(4) td:last-child { color: #f97316; }
.vote-streak-table tr:nth-child(5) td:last-child { color: #ef4444; }
.vote-streak-table tr:nth-child(6) td:last-child { color: #a855f7; }

.rules-content { line-height: 1.8; }

/* =========================================================
   JOB CARDS
   ========================================================= */
.jobs-intro {
    background: var(--bg-card);
    border: 1px solid rgba(41,181,232,0.15);
    border-radius: 14px;
    padding: 2rem 2.25rem;
    margin-bottom: 2.5rem;
}

.jobs-intro-tagline {
    font-family: var(--body);
    font-size: 22px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.3px;
    line-height: 1.3;
    margin: 0 0 1rem;
    display: block;
}

.jobs-intro-tagline span { color: var(--ocean); }

.jobs-intro                    { animation: ruleSlideDown 0.45s ease both; animation-delay: 0.1s; }
.jobs-availability-notice      { animation: ruleSlideDown 0.45s ease both; animation-delay: 0.25s; }
.job-section-label             { animation: ruleSlideDown 0.45s ease both; animation-delay: 0.35s; }
.job-card:nth-child(1)         { animation: ruleSlideDown 0.45s ease both; animation-delay: 0.45s; }
.job-card:nth-child(2)         { animation: ruleSlideDown 0.45s ease both; animation-delay: 0.55s; }
.job-card:nth-child(3)         { animation: ruleSlideDown 0.45s ease both; animation-delay: 0.65s; }
.job-card:nth-child(4)         { animation: ruleSlideDown 0.45s ease both; animation-delay: 0.75s; }
.job-card:nth-child(5)         { animation: ruleSlideDown 0.45s ease both; animation-delay: 0.85s; }

.jobs-intro-body {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    line-height: 1.8;
    margin: 0 0 1.75rem;
    display: block;
}

.jobs-intro-perks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 0;
    margin: 0;
}

.jobs-intro-perk {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(41,181,232,0.05);
    border: 1px solid rgba(41,181,232,0.12);
    border-radius: 10px;
}

.jobs-perk-icon {
    font-size: 20px;
    color: var(--ocean);
    flex-shrink: 0;
}

.jobs-perk-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.jobs-perk-title {
    font-weight: 700;
    font-size: 13px;
    color: var(--text-main);
}

.jobs-perk-desc {
    font-size: 11px;
    color: rgba(255,255,255,0.45);
    line-height: 1.4;
}

.jobs-availability-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(41,181,232,0.06);
    border: 1px solid rgba(41,181,232,0.2);
    border-left: 3px solid var(--ocean);
    border-radius: 8px;
    margin-bottom: 2rem;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
}

.jobs-availability-notice i {
    color: var(--ocean);
    margin-top: 2px;
    flex-shrink: 0;
}

.jobs-availability-notice strong { color: var(--text-main); }

.job-section-label {
    font-family: var(--pixel);
    font-size: 10px;
    color: var(--ocean);
    letter-spacing: 1px;
    text-transform: uppercase;
    display: block;
    margin: 2.5rem 0 1rem;
}

.job-card {
    background: var(--bg-card);
    border: 1px solid rgba(41,181,232,0.12);
    border-radius: 10px;
    margin-bottom: 8px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.job-card.is-open {
    border-color: rgba(41,181,232,0.35);
}

.job-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
    color: var(--text-main);
    user-select: none;
    transition: background 0.18s;
}

.job-card-header:hover { background: rgba(41,181,232,0.05); }

.job-card-tag {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    margin-left: 10px;
    flex-shrink: 0;
}
.job-tag--volunteer  { background: rgba(34,197,94,0.15);  color: #22c55e; }
.job-tag--paid       { background: rgba(245,158,11,0.15); color: var(--gold); }
.job-tag--closed     { background: rgba(239,68,68,0.12);  color: #ef4444; }
.job-tag--core       { background: rgba(239,68,68,0.15);  color: #ef4444; }

.job-card-title-wrap { display: flex; align-items: center; gap: 4px; }

.job-chevron {
    color: var(--text-muted);
    font-size: 12px;
    transition: transform 0.25s;
    flex-shrink: 0;
}

.job-card.is-open .job-chevron { transform: rotate(90deg); }

.job-card-body {
    display: none;
    padding: 16px 20px 20px;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
    border-top: 1px solid rgba(41,181,232,0.08);
}

.job-card.is-open .job-card-body { display: block; }

.job-card-body ul {
    padding-left: 0;
    margin: 0.75rem 0 1rem;
    list-style: none;
}

.job-card-body li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 6px 0;
    margin-bottom: 0;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    border-left: none !important;
    font-size: 13px;
    color: rgba(255,255,255,0.75) !important;
    border-bottom: 1px solid rgba(255,255,255,0.06) !important;
}

.job-card-body li::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--ocean);
    flex-shrink: 0;
    margin-top: 6px;
}

.job-card-body p {
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    margin-bottom: 0.75rem;
}

.job-card-body a {
    color: var(--ocean);
    font-weight: 700;
    text-decoration: underline;
    font-size: 13px;
    display: inline-block;
    margin-top: 0.75rem;
}

.rules-content h1,
.rules-content h2,
.rules-content h3 {
    font-family: var(--minecraft);
    letter-spacing: 1.5px;
    color: var(--ocean);
    margin: 2.5rem 0 1rem;
}
.rules-content h1 { font-size: clamp(14px, 1.8vw, 20px); }
.rules-content h2 { font-size: clamp(12px, 1.5vw, 17px); }
.rules-content h3 { font-size: clamp(10px, 1.2vw, 14px); color: var(--text-main); }

.rules-content p { color: var(--text-muted); margin-bottom: 0.85rem; }

.rules-content ol,
.rules-content ul {
    padding-left: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rules-content li {
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--ocean);
    border-radius: 0 8px 8px 0;
    list-style: none;
    margin-left: -1.5rem;
    line-height: 1.55;
}

.rules-content li strong { color: var(--text-main); }

.rules-content blockquote {
    border-left: 3px solid var(--gold);
    background: rgba(245,158,11,0.06);
    padding: 0.85rem 1.25rem;
    border-radius: 0 8px 8px 0;
    color: var(--text-muted);
    margin: 1.5rem 0;
}

.rules-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2rem 0;
}

.rules-content a { color: var(--ocean); }
.rules-content a:hover { text-decoration: underline; }

.rules-intro-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid #ef4444;
    border-radius: 6px;
    padding: 1.1rem 1.25rem;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}
.rules-intro-block strong { color: var(--text-main); display: block; margin-bottom: 0.4rem; }
.rules-intro-links { display: flex; gap: 1.25rem; flex-wrap: wrap; margin-top: 0.85rem; }
.rules-intro-links a { color: var(--ocean); font-size: 13px; text-decoration: none; display: inline-flex; align-items: center; gap: 0.35rem; }
.rules-intro-links a:hover { text-decoration: underline; }

.rule-badge {
    font-size: 9px;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: var(--pixel);
    letter-spacing: 0.08em;
    margin-left: auto;
    flex-shrink: 0;
}
.rule-badge--minor    { background: rgba(41,181,232,0.15);  color: #29b5e8; }
.rule-badge--serious  { background: rgba(245,158,11,0.15);  color: #f59e0b; }
.rule-badge--critical { background: rgba(239,68,68,0.18);   color: #ef4444; }

.rule-accordion summary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.rule-punishments { margin-top: 1rem; border-top: 1px solid var(--border); padding-top: 0.75rem; display: flex; flex-direction: column; gap: 0; }
.rule-p-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-muted);
}
.rule-p-row:last-child { border-bottom: none; }
.rule-p-tag {
    font-family: var(--pixel);
    font-size: 7px;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    letter-spacing: 0.05em;
}
.p-warn { background: rgba(245,158,11,0.15); color: #f59e0b; }
.p-mute { background: rgba(59,130,246,0.15); color: #60a5fa; }
.p-ban  { background: rgba(239,68,68,0.15);  color: #f87171; }
.p-perm { background: rgba(239,68,68,0.25);  color: #ef4444; font-weight: 700; }

/* Accordion / collapsible rules */
.rule-accordion {
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.rule-accordion summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    color: var(--text-main);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: background 0.2s, color 0.2s;
}
.rule-accordion summary::-webkit-details-marker { display: none; }
.rule-accordion summary::after {
    content: '\f067';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 11px;
    color: var(--ocean);
    transition: transform 0.25s;
    flex-shrink: 0;
}
.rule-accordion[open] > summary {
    background: rgba(41,181,232,0.08);
    color: var(--ocean);
    border-bottom: 1px solid var(--border);
}
.rule-accordion[open] > summary::after { transform: rotate(45deg); }
.rule-accordion summary:hover { background: rgba(41,181,232,0.06); }

.rule-accordion-body {
    padding: 1rem 1.25rem;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.65;
}

/* Collapsible section wrapper */
.rule-section-wrap {
    margin: 2.5rem 0 0.5rem;
    border: 1px solid rgba(41,181,232,0.2);
    border-radius: 12px;
    overflow: hidden;
}

.rule-section-wrap > summary,
.rule-section-header {
    background: linear-gradient(90deg, rgba(41,181,232,0.18), rgba(41,181,232,0.04));
    border-left: 4px solid var(--ocean);
    padding: 1.1rem 1.5rem;
    font-weight: 700;
    font-size: 18px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    list-style: none;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}
.rule-section-wrap > summary::-webkit-details-marker { display: none; }
.rule-section-wrap > summary::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 12px;
    color: var(--ocean);
    margin-left: auto;
    transition: transform 0.25s;
    transform: rotate(180deg);
}
.rule-section-wrap.is-collapsed > summary::after { transform: rotate(0deg); }
.rule-section-wrap > summary:hover { background: linear-gradient(90deg, rgba(41,181,232,0.26), rgba(41,181,232,0.08)); }

/* Content always visible by default; hidden only when collapsed by JS */
details.rule-section-wrap > :not(summary) { display: block; }
details.rule-section-wrap.is-collapsed > :not(summary) { display: none; }

/* Per-section icon colors */
.rule-section-wrap.sec-chat     > summary i { color: #f97316; }
.rule-section-wrap.sec-game     > summary i { color: #ef4444; }
.rule-section-wrap.sec-discord  > summary i { color: #5865f2; }

.rule-section-wrap .rule-accordion {
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
    border-bottom: 1px solid var(--border);
}
.rule-section-wrap .rule-accordion:last-child { border-bottom: none; }

/* =========================================================
   NEWS ARCHIVE  (/news/)
   ========================================================= */
.news-archive-wrap { position: relative; z-index: 1; }
.news-archive-header { padding-bottom: 0; }
.news-archive-body   { padding-top: 2rem; }

/* ---- Featured (first) post ---- */
.news-feat {
    display: grid;
    grid-template-columns: 55% 1fr;
    border-radius: 16px; overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    margin-bottom: 2.5rem;
    text-decoration: none; color: var(--text-main);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.news-feat:hover {
    border-color: var(--border-bright);
    box-shadow: 0 16px 56px rgba(0,0,0,0.55);
}

.news-feat-img {
    position: relative; min-height: 320px;
    background: linear-gradient(135deg,#071e34,#0d3d6b);
    overflow: hidden;
}
.news-feat-img img {
    position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.45s;
}
.news-feat:hover .news-feat-img img { transform: scale(1.05); }
.news-feat-ph {
    width: 100%; height: 100%; min-height: 320px;
    display: flex; align-items: center; justify-content: center; font-size: 72px;
}

.news-feat-body {
    padding: 2.5rem 2rem;
    display: flex; flex-direction: column; justify-content: center; gap: 0.9rem;
}
.news-feat-title {
    font-family: var(--pixel);
    font-size: clamp(11px, 1.4vw, 17px);
    line-height: 1.75; color: var(--text-main);
}
.news-feat-date {
    font-size: 12px; color: var(--text-dim);
    font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
}
.news-feat-excerpt {
    font-size: 14px; color: var(--text-muted); line-height: 1.65;
}
.news-feat-cta {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--ocean); font-weight: 700; font-size: 13px;
    transition: gap 0.2s;
}
.news-feat:hover .news-feat-cta { gap: 12px; }

/* ---- Grid cards ---- */
.news-arch-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.news-arch-card {
    display: flex; flex-direction: column;
    border-radius: 14px; overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    text-decoration: none; color: var(--text-main);
    transition: border-color 0.2s, transform 0.22s, box-shadow 0.22s;
}
.news-arch-card:hover {
    border-color: var(--border-bright);
    transform: translateY(-5px);
    box-shadow: 0 14px 44px rgba(0,0,0,0.55);
}

.news-arch-img-wrap {
    position: relative; height: 240px; overflow: hidden;
    background: linear-gradient(135deg,#071e34,#0d3d6b);
}
.news-arch-img-wrap img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.45s;
}
.news-arch-card:hover .news-arch-img-wrap img { transform: scale(1.07); }
.news-arch-ph {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center; font-size: 54px;
}

.news-arch-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(4,9,14,0.94) 0%, rgba(4,9,14,0.4) 60%, transparent 100%);
    padding: 2.5rem 1.25rem 1.1rem;
    display: flex; flex-direction: column; gap: 0.3rem;
}
.news-arch-title {
    font-family: var(--pixel);
    font-size: clamp(8px, 1vw, 12px);
    line-height: 1.7; color: #fff;
}
.news-arch-date {
    font-size: 11px; color: rgba(255,255,255,0.55);
    font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px;
}
.news-arch-excerpt {
    padding: 1rem 1.25rem 1.25rem;
    font-size: 13px; color: var(--text-muted); line-height: 1.6;
}

/* Small tag variant for image overlay */
.news-tag--sm {
    font-size: 10px; padding: 2px 8px; margin-bottom: 0.4rem; width: fit-content;
}

@media (max-width: 820px) {
    .news-feat { grid-template-columns: 1fr; }
    .news-feat-img { min-height: 220px; }
    .news-feat-ph { min-height: 220px; }
}
@media (max-width: 600px) {
    .news-arch-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   TOAST
   ========================================================= */
.toast {
    position: fixed; bottom: 2rem; left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: var(--ocean); color: #04111e;
    font-weight: 800; font-size: 13px;
    padding: 12px 24px; border-radius: 999px;
    z-index: 9999; transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
    pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* =========================================================
   PLAY PAGE
   ========================================================= */

/* Hero overrides for play page */
body:has(.play-wrap) .rules-hero {
    background: #041c32;
    border-bottom: 1px solid rgba(41,181,232,0.2);
    position: relative;
    overflow: hidden;
}

/* Fallback gradient before video loads */
body:has(.play-wrap) .rules-hero:not(.has-video)::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, #041c32 0%, #082a45 40%, #071828 100%);
    pointer-events: none;
    z-index: 0;
}

body:has(.play-wrap) .rules-hero .rules-hero-inner {
    position: relative;
    z-index: 3;
}

.play-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(4,17,30,0.68) 0%, rgba(6,28,50,0.52) 50%, rgba(4,17,30,0.68) 100%);
    z-index: 2;
    pointer-events: none;
}

.play-hero-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 80% at 50% 120%, rgba(41,181,232,0.2) 0%, transparent 70%);
}

body:has(.play-wrap) .rules-hero .section-label {
    color: var(--ocean);
    opacity: 1;
}

body:has(.play-wrap) .rules-hero .rules-title {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    text-shadow: 0 0 40px rgba(41,181,232,0.35);
}

body:has(.play-wrap) .rules-hero .rules-subtitle {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.82);
    max-width: 520px;
    margin: 0 auto;
}

.play-wrap {
    max-width: 1100px;
    padding-top: 3rem;
    padding-bottom: 5rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.play-layout {
    display: grid;
    grid-template-columns: 420px 1fr;
    grid-template-areas:
        "left  right"
        "info  right";
    gap: 2.5rem;
    align-items: start;
}

.play-left       { grid-area: left; }
.play-right      { grid-area: right; }
.play-info-cards { grid-area: info; }

/* LEFT: connect card */
.play-connect-card {
    background: linear-gradient(145deg, rgba(41,181,232,0.1) 0%, var(--bg-card) 55%);
    border: 1px solid rgba(41,181,232,0.4);
    border-radius: 18px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    box-shadow: 0 0 48px rgba(41,181,232,0.12), 0 12px 40px rgba(0,0,0,0.5);
}

.play-connect-top {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 2rem 2rem 1.5rem;
    background: linear-gradient(180deg, rgba(41,181,232,0.13) 0%, transparent 100%);
    border-bottom: 1px solid rgba(41,181,232,0.15);
}

.play-connect-top .section-label { margin-bottom: 0; font-size: 10px; }

.play-connect-ip {
    font-family: var(--sans);
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    letter-spacing: -0.5px;
    text-shadow: 0 0 24px rgba(41,181,232,0.5);
}

.play-connect-desc {
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.6;
    margin: 0;
}

.play-connect-card > .play-copy-btn,
.play-connect-card > .play-platform-badges,
.play-connect-card > .play-connect-note {
    margin-left: 2rem;
    margin-right: 2rem;
}

.play-connect-card > .play-copy-btn { margin-top: 1.5rem; }
.play-connect-card > .play-connect-note { margin-bottom: 2rem; }

.play-copy-btn {
    width: calc(100% - 4rem);
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    padding: 0.875rem 1rem;
    letter-spacing: 0.3px;
}

.play-platform-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.75rem !important;
    margin-bottom: 0.75rem !important;
}

.play-platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(41,181,232,0.1);
    border: 1px solid rgba(41,181,232,0.25);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ocean);
    letter-spacing: 0.3px;
}

.play-connect-note {
    font-size: 12px;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.65rem 1rem;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    border: 1px solid var(--border);
    margin-top: 0 !important;
}

.play-connect-note strong { color: var(--text); }

/* RIGHT: steps */
.play-edition-details { border: none; }
.play-edition-details + .play-edition-details { margin-top: 0.875rem; }
.play-edition-details > .play-steps-list { margin-top: 1.25rem; }

.play-steps-coming-soon {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem;
    background: rgba(255,255,255,0.03);
    border: 1px dashed var(--border);
    border-radius: 10px;
    font-size: 13px;
    color: var(--text-dim);
}

.play-steps-coming-soon i { color: var(--ocean); flex-shrink: 0; }
.play-steps-coming-soon strong { color: var(--text); }

.play-steps-heading {
    font-family: var(--pixel);
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    list-style: none;
    cursor: pointer;
    user-select: none;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.play-steps-heading span i { font-size: 16px; }

.play-steps-heading::-webkit-details-marker { display: none; }
.play-steps-heading::marker { display: none; }

/* Java — animated amber gradient */
.play-edition-details:nth-child(1) .play-steps-heading {
    color: #f59e0b;
    background: linear-gradient(270deg, rgba(245,158,11,0.18), rgba(217,119,6,0.06), rgba(251,191,36,0.18), rgba(245,158,11,0.06));
    background-size: 300% 100%;
    border: 1px solid rgba(245,158,11,0.35);
    animation: gradientShift 4s ease infinite;
}
.play-edition-details:nth-child(1) .play-steps-heading:hover {
    border-color: rgba(245,158,11,0.7);
    box-shadow: 0 0 24px rgba(245,158,11,0.15);
}

/* Bedrock — animated purple gradient */
.play-edition-details:nth-child(2) .play-steps-heading {
    color: #a855f7;
    background: linear-gradient(270deg, rgba(168,85,247,0.18), rgba(124,58,237,0.06), rgba(192,132,252,0.18), rgba(168,85,247,0.06));
    background-size: 300% 100%;
    border: 1px solid rgba(168,85,247,0.3);
    animation: gradientShift 4s ease infinite;
    animation-delay: 1s;
}
.play-edition-details:nth-child(2) .play-steps-heading:hover {
    border-color: rgba(168,85,247,0.65);
    box-shadow: 0 0 24px rgba(168,85,247,0.15);
}

@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes tabBounce {
    0%, 100% { transform: translateY(0); }
    30%       { transform: translateY(-5px); }
    60%       { transform: translateY(-2px); }
    80%       { transform: translateY(-4px); }
}

/* Desktop (mouse): Java bounces */
@media (pointer: fine) {
    .play-edition-details:nth-child(1):not([open]) .play-steps-heading {
        animation: gradientShift 4s ease infinite, tabBounce 2.8s ease-in-out infinite;
    }
}

/* Mobile/touch: Bedrock bounces */
@media (pointer: coarse) {
    .play-edition-details:nth-child(2):not([open]) .play-steps-heading {
        animation: gradientShift 4s ease infinite 1s, tabBounce 2.8s ease-in-out infinite 0.4s;
    }
}

.play-steps-tap {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.play-tap-label {
    font-size: 9px;
    font-family: var(--sans);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0.55;
    transition: opacity 0.15s;
}

.play-steps-heading:hover .play-tap-label { opacity: 0.9; }
.play-edition-details[open] .play-tap-label { display: none; }

.play-chevron {
    font-size: 12px;
    transition: transform 0.2s ease;
    opacity: 0.6;
}

.play-edition-details[open] .play-chevron { transform: rotate(180deg); }

.play-steps-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.play-step-card {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.25rem 1.5rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.play-step-card:hover {
    border-color: var(--border-bright);
    box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

.play-step-badge {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-family: var(--sans);
    font-size: 18px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.play-step-badge--1 { background: linear-gradient(135deg, #29b5e8, #0e7fad); color: #fff; box-shadow: 0 4px 20px rgba(41,181,232,0.5); }
.play-step-badge--2 { background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; box-shadow: 0 4px 20px rgba(245,158,11,0.5); }
.play-step-badge--3 { background: linear-gradient(135deg, #a855f7, #7c3aed); color: #fff; box-shadow: 0 4px 20px rgba(168,85,247,0.5); }
.play-step-badge--4 { background: linear-gradient(135deg, #4ade80, #16a34a); color: #fff; box-shadow: 0 4px 20px rgba(74,222,128,0.5); }

.play-step-connector {
    text-align: center;
    color: var(--border-bright);
    font-size: 14px;
    padding: 0.1rem 0;
}

.play-step-content {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.play-step-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: 0.2px;
}

.play-step-desc {
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.65;
    margin: 0;
}

.play-step-desc strong { color: var(--text); }

.play-step-tag {
    display: inline-block;
    background: rgba(74,222,128,0.15);
    color: #4ade80;
    border: 1px solid rgba(74,222,128,0.35);
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 700;
    font-style: normal;
}

.play-step-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(41,181,232,0.12);
    border: 1px solid rgba(41,181,232,0.35);
    border-radius: 10px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ocean);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    font-family: inherit;
    align-self: flex-start;
}

.play-step-copy-btn:hover {
    background: rgba(41,181,232,0.22);
    border-color: var(--ocean);
}

.play-step-done {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(74,222,128,0.1), rgba(74,222,128,0.05));
    border: 1px solid rgba(74,222,128,0.3);
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    color: #4ade80;
}

.play-step-done i { font-size: 22px; flex-shrink: 0; }

.play-step-img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    display: block;
    cursor: zoom-in;
}

.play-step-img:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 16px 48px rgba(0,0,0,0.5), 0 0 0 1px var(--border-bright);
}

/* Live status */
.play-live-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.65rem 1rem;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    border: 1px solid var(--border);
    margin: 0 2rem 2rem;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dim);
}

.play-live-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 8px #4ade80;
    flex-shrink: 0;
    animation: pulse-dot 2s infinite;
}

.play-live-dot.is-offline { background: #f87171; box-shadow: 0 0 8px #f87171; animation: none; }

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Info cards below connect card */
.play-info-cards {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.play-info-card {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1rem 1.125rem;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.play-info-card:hover {
    border-color: var(--border-bright);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.3);
}

.play-info-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }

.play-info-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
    letter-spacing: 0.3px;
}

.play-info-body { font-size: 12px; color: var(--text-dim); line-height: 1.5; }

/* Quick tips */
.play-tips-card {
    background: linear-gradient(135deg, rgba(245,158,11,0.07) 0%, var(--bg-card) 60%);
    border: 1px solid rgba(245,158,11,0.2);
    border-radius: 18px;
    padding: 1.375rem 1.5rem;
    margin-top: 0.875rem;
}

.play-tips-heading {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #f59e0b;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 7px;
}

.play-tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.play-tips-list li {
    font-size: 13px;
    color: var(--text-dim);
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
}

.play-tips-list li i { color: #4ade80; margin-top: 3px; flex-shrink: 0; font-size: 13px; }
.play-tips-list li strong { color: var(--text); }

/* Help strip */
.play-help-strip {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: linear-gradient(135deg, rgba(88,101,242,0.12) 0%, rgba(88,101,242,0.05) 100%);
    border: 1px solid rgba(88,101,242,0.3);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    margin-top: 1rem;
}

.play-help-icon {
    font-size: 2rem;
    color: #7289da;
    flex-shrink: 0;
}

.play-help-text { flex: 1; }

.play-help-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 3px;
}

.play-help-sub { font-size: 13px; color: var(--text-dim); line-height: 1.5; }

@media (max-width: 600px) {
    .play-help-strip { flex-direction: column; text-align: center; }
    .play-help-strip .btn { width: 100%; justify-content: center; }
}

.play-extra-content { margin-top: 1rem; }

@media (max-width: 860px) {
    .play-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "left"
            "right"
            "info";
    }
}

@media (max-width: 500px) {
    .play-step-badge { width: 38px; height: 38px; font-size: 16px; }
}

/* =========================================================
   PLAY LIGHTBOX
   ========================================================= */
.play-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(4,17,30,0.92);
    backdrop-filter: blur(6px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.play-lightbox.is-open {
    opacity: 1;
    pointer-events: all;
}

.play-lightbox-inner {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(41,181,232,0.2);
    display: block;
    transform: scale(0.95);
    transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
}

.play-lightbox.is-open .play-lightbox-img { transform: scale(1); }

.play-lightbox-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-bright);
    color: var(--text);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}

.play-lightbox-close:hover { background: var(--ocean); color: #04111e; }

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .hero-bg-video, .play-hero-video { display: none; }
    .hero { background: linear-gradient(160deg, #041c32 0%, #082a45 50%, #041c32 100%) !important; }
}

/* =========================================================
   LINKS PAGE
   ========================================================= */
.links-page {
    min-height: 100vh;
    display: flex; align-items: flex-start; justify-content: center;
    padding: 3rem 1.25rem 5rem;
    position: relative; z-index: 1;
}

.links-card {
    width: 100%; max-width: 480px;
    display: flex; flex-direction: column; gap: 2rem;
}

.links-profile {
    display: flex; flex-direction: column; align-items: center;
    text-align: center; gap: 0.6rem;
    padding-top: 1rem;
}

.links-avatar {
    width: 88px; height: 88px;
    border-radius: 50%;
    border: 3px solid var(--ocean);
    box-shadow: 0 0 0 6px rgba(41,181,232,0.12), 0 8px 32px rgba(0,0,0,0.4);
    object-fit: cover;
    margin-bottom: 0.5rem;
}

.links-name {
    font-family: 'Inter', var(--body); font-weight: 900;
    font-size: 1.5rem; color: var(--text-main); letter-spacing: -0.5px;
}

.links-bio {
    font-size: 13px; color: var(--text-muted); line-height: 1.6;
    max-width: 320px;
}

.links-server-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(34,197,94,0.1);
    border: 1px solid rgba(34,197,94,0.25);
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 12px; font-weight: 700; color: #4ade80;
    margin-top: 0.25rem;
}

.links-server-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #22c55e;
    animation: pulse 1.8s ease infinite;
    flex-shrink: 0;
}

.links-list {
    display: flex; flex-direction: column; gap: 10px;
}

.links-btn {
    display: flex; align-items: center; gap: 1rem;
    padding: 14px 18px;
    border-radius: 14px;
    border: 1px solid transparent;
    text-decoration: none;
    transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s, background 0.18s;
    position: relative; overflow: hidden;
}
.links-btn:hover { transform: translateY(-2px); }

.links-btn-icon {
    width: 42px; height: 42px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; flex-shrink: 0;
}

.links-btn-label {
    font-weight: 800; font-size: 15px; color: var(--text-main);
    line-height: 1;
}

.links-btn-sub {
    font-size: 11px; color: rgba(255,255,255,0.45);
    margin-top: 3px; display: block; line-height: 1;
}

.links-btn-label, .links-btn-sub { display: block; }
.links-btn > span:nth-child(2) { display: flex; flex-direction: column; gap: 3px; flex: 1; }

/* Button variants */
.links-btn--green {
    background: rgba(22,163,74,0.12);
    border-color: rgba(22,163,74,0.3);
}
.links-btn--green .links-btn-icon { background: rgba(22,163,74,0.2); color: #4ade80; }
.links-btn--green:hover { background: rgba(22,163,74,0.2); border-color: #22c55e; box-shadow: 0 8px 24px rgba(22,163,74,0.2); }

.links-btn--discord {
    background: rgba(88,101,242,0.12);
    border-color: rgba(88,101,242,0.3);
}
.links-btn--discord .links-btn-icon { background: rgba(88,101,242,0.2); color: #7289ff; }
.links-btn--discord:hover { background: rgba(88,101,242,0.2); border-color: #5865f2; box-shadow: 0 8px 24px rgba(88,101,242,0.2); }

.links-btn--gold {
    background: rgba(245,158,11,0.10);
    border-color: rgba(245,158,11,0.28);
}
.links-btn--gold .links-btn-icon { background: rgba(245,158,11,0.18); color: var(--gold); }
.links-btn--gold:hover { background: rgba(245,158,11,0.18); border-color: var(--gold); box-shadow: 0 8px 24px rgba(245,158,11,0.18); }

.links-btn--ocean {
    background: rgba(41,181,232,0.08);
    border-color: rgba(41,181,232,0.25);
}
.links-btn--ocean .links-btn-icon { background: rgba(41,181,232,0.15); color: var(--ocean); }
.links-btn--ocean:hover { background: rgba(41,181,232,0.15); border-color: var(--ocean); box-shadow: 0 8px 24px rgba(41,181,232,0.18); }

.links-btn--youtube {
    background: rgba(255,0,0,0.08);
    border-color: rgba(255,0,0,0.22);
}
.links-btn--youtube .links-btn-icon { background: rgba(255,0,0,0.15); color: #ff4444; }
.links-btn--youtube:hover { background: rgba(255,0,0,0.15); border-color: #ff0000; box-shadow: 0 8px 24px rgba(255,0,0,0.15); }

.links-btn--tiktok {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.12);
}
.links-btn--tiktok .links-btn-icon { background: rgba(255,255,255,0.08); color: #fff; }
.links-btn--tiktok:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.3); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }

.links-btn--instagram {
    background: rgba(225,48,108,0.08);
    border-color: rgba(225,48,108,0.22);
}
.links-btn--instagram .links-btn-icon { background: rgba(225,48,108,0.15); color: #e1306c; }
.links-btn--instagram:hover { background: rgba(225,48,108,0.15); border-color: #e1306c; box-shadow: 0 8px 24px rgba(225,48,108,0.15); }

.links-btn--twitter {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.12);
}
.links-btn--twitter .links-btn-icon { background: rgba(255,255,255,0.08); color: #fff; }
.links-btn--twitter:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.3); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }

.links-btn--muted {
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.08);
}
.links-btn--muted .links-btn-icon { background: rgba(255,255,255,0.06); color: var(--text-muted); }
.links-btn--muted:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.18); }

.links-footer {
    text-align: center; font-size: 11px; color: var(--text-dim);
    padding-bottom: 1rem;
}

/* =========================================================
   ERROR
   ========================================================= */
.error-page { text-align: center; padding: 8rem 2rem 4rem; position: relative; z-index: 1; }
.error-page h1 { font-family: var(--pixel); font-size: 4rem; color: var(--ocean); margin-bottom: 1rem; }
.error-page p { color: var(--text-muted); margin-bottom: 2rem; }
.error-page a { display: inline-flex; padding: 10px 24px; border-radius: 8px; background: var(--ocean); color: #04111e; font-weight: 800; }

/* =========================================================
   MOBILE NAV
   ========================================================= */
.nav-mobile-toggle {
    display: none;
    width: 38px; height: 38px;
    border-radius: 8px;
    border: 1px solid var(--border-bright);
    background: rgba(41,181,232,0.08);
    color: var(--ocean);
    font-size: 16px;
    cursor: pointer;
    align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s, border-color 0.2s;
    z-index: 110;
}
.nav-mobile-toggle:hover { background: var(--ocean-glow); border-color: var(--ocean); }

.nav-mobile-menu {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0; bottom: 0;
    background: rgba(4, 9, 14, 0.97);
    backdrop-filter: blur(16px);
    z-index: 99;
    display: flex; flex-direction: column;
    padding: 1.5rem 1.5rem 2rem;
    gap: 1.5rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
    overflow-y: auto;
}
.nav-mobile-menu.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-mobile-inner {
    display: flex; flex-direction: column;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.nav-mobile-link {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 1rem 1.25rem;
    font-size: 15px; font-weight: 700;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    transition: color 0.15s, background 0.15s;
}
.nav-mobile-link:last-child { border-bottom: none; }
.nav-mobile-link i { width: 16px; text-align: center; color: var(--ocean); font-size: 13px; }
.nav-mobile-link:hover { color: var(--ocean); background: rgba(41,181,232,0.06); }

.nav-mobile-ctas {
    display: flex; flex-direction: column; gap: 10px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .discord-inner, .store-inner { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 640px) {
    .site-nav { padding: 0 1rem; }
    .nav-logo { margin-left: 0; }
    .nav-links, .nav-actions { display: none; }
    .nav-mobile-toggle { display: flex; }
    .hero { padding: 4rem 1.5rem 5rem; }
    .hero-scroll-arrow { display: none; }
    .news-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; padding: 2rem 1.5rem; }
}
