* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --mc-blue: #3b82f6;
    --mc-blue-dark: #1e40af;
    --mc-blue-light: #60a5fa;
    --mc-blue-glow: #60a5fa;
    --mc-dark: #080c14;
    --mc-darker: #05070a;
    --mc-card: rgba(15, 30, 60, 0.6);
    --mc-border: rgba(59, 130, 246, 0.3);
    --text-white: #f8fafc;
    --text-gray: #cbd5e1;
    --gm-lifesteal: #67e8f9;
    --gm-practice: #fb923c;
    --gm-survival: #86efac;
    --gm-vanilla: #c084fc;
    --btn-shadow: 0 4px 0 var(--mc-blue-dark);
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(123, 211, 252, 0.86) rgba(7, 11, 18, 0.92);
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
*::-webkit-scrollbar-track {
    background: linear-gradient(180deg, rgba(6, 10, 18, 0.98) 0%, rgba(15, 20, 30, 0.94) 100%);
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
*::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #d6f0ff 0%, #8fd3ff 46%, #58b8ff 100%);
    border: 2px solid rgba(7, 11, 18, 0.92);
    border-radius: 999px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover,
*::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #e7f7ff 0%, #a8deff 46%, #6bc4ff 100%);
}

img[loading="lazy"] {
    content-visibility: auto;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--mc-darker);
    color: var(--text-white);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    background: linear-gradient(-45deg, #05070a, #0a1628, #0d1a2d, #081020, #05070a);
    background-size: 400% 400%;
    animation: gradientShift 28s ease infinite;
}

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

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 50%,
            rgba(0, 0, 0, 0.02) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 9999;
}

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--mc-darker);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.preloader-logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.preloader-logo {
    width: 80px;
    height: 80px;
    image-rendering: pixelated;
    animation: preloaderPulse 1.5s ease-in-out infinite;
}

.preloader-progress {
    width: 200px;
    height: 6px;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.preloader-progress-bar {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #22d3ee, #3b82f6);
    background-size: 200% 100%;
    border-radius: 3px;
    animation: progressFlow 1.5s ease-in-out infinite;
}

@keyframes progressFlow {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

@keyframes preloaderPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.preloader-dots {
    display: flex;
    gap: 8px;
}

.preloader-dots span {
    width: 10px;
    height: 10px;
    background: var(--mc-blue);
    /* Make dots square for MC feel */
    border-radius: 2px;
    animation: preloaderBounce 1.2s ease-in-out infinite;
    box-shadow: 2px 2px 0 var(--mc-blue-dark);
}

.preloader-dots span:nth-child(1) {
    animation-delay: 0s;
}

.preloader-dots span:nth-child(2) {
    animation-delay: 0.15s;
}

.preloader-dots span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes preloaderBounce {

    0%,
    80%,
    100% {
        transform: translateY(0);
        opacity: 0.5;
    }

    40% {
        transform: translateY(-12px);
        opacity: 1;
    }
}

.particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    contain: paint;
    overflow: hidden;
}

.floating-orbs {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
    opacity: 0.2;
    will-change: transform, opacity;
    animation: orbFloat 22s linear infinite;
}

.orb-1 {
    width: 120px;
    height: 120px;
    left: 8%;
    top: 72%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.55) 0%, rgba(59, 130, 246, 0.05) 70%);
    animation-delay: -8s;
}

.orb-2 {
    width: 160px;
    height: 160px;
    left: 76%;
    top: 65%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.45) 0%, rgba(56, 189, 248, 0.05) 72%);
    animation-delay: -14s;
}

.orb-3 {
    width: 96px;
    height: 96px;
    left: 48%;
    top: 82%;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.35) 0%, rgba(34, 197, 94, 0.04) 72%);
    animation-delay: -4s;
}

@keyframes orbFloat {
    0% {
        transform: translate3d(0, 10vh, 0) scale(0.95);
        opacity: 0.1;
    }

    20% {
        opacity: 0.2;
    }

    50% {
        transform: translate3d(4vw, -20vh, 0) scale(1.05);
        opacity: 0.28;
    }

    80% {
        opacity: 0.2;
    }

    100% {
        transform: translate3d(-3vw, -55vh, 0) scale(0.92);
        opacity: 0.08;
    }
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 0 20px;
    height: 72px;
    /* Increased height */
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    border-bottom: 1px solid rgba(80, 80, 90, 0.3);
    transition: background 0.08s ease, border-color 0.08s ease;
}

.navbar.scrolled {
    background: rgba(5, 5, 10, 0.98);
    border-bottom-color: rgba(100, 100, 110, 0.4);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    gap: 12px;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    margin-right: 12px;
}

.nav-logo img {
    height: 52px;
    /* Bigger logo */
    width: auto;
    image-rendering: pixelated;
    transition: transform 0.08s ease;
}

.nav-logo:hover img {
    transform: scale(1.08);
}

.nav-logo span {
    display: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 6px;
}

.nav-item {
    display: flex;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    color: #9ca3af;
    text-decoration: none;
    font-family: 'VT323', monospace;
    font-size: 1.4rem;
    /* Bigger text */
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 1px solid transparent;
    border-radius: 4px;
    background: transparent;
    transition: all 0.08s ease;
    white-space: nowrap;
}

.nav-link i {
    font-size: 1.1rem;
    /* Bigger icons */
    opacity: 0.7;
    transition: all 0.08s ease;
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(100, 100, 110, 0.5);
}

.nav-link:hover i {
    opacity: 1;
}

.nav-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(120, 120, 130, 0.6);
}

.nav-link.active i {
    opacity: 1;
    color: var(--mc-blue-light);
}

/* ... nav-toggle ... */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    width: 44px;
    height: 44px;
    gap: 5px;
    position: absolute;
    right: 15px;
    border-radius: 6px;
    transition: background 0.08s ease;
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.06);
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: #9ca3af;
    border-radius: 2px;
    transition: all 0.12s ease;
}

.nav-toggle.active span {
    background: #ffffff;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* Hero styles */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: linear-gradient(-45deg, #000000, #020617, #0f172a, #020617, #000000);
    background-size: 400% 400%;
    animation: heroGradient 30s ease infinite;
    overflow: hidden;
}

.hero-bg::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    transform: perspective(500px) rotateX(20deg);
    animation: pixelGridScroll 20s linear infinite;
    opacity: 0.6;
    pointer-events: none;
    will-change: transform;
}

@keyframes pixelGridScroll {
    0% {
        transform: perspective(500px) rotateX(20deg) translateY(0) translateX(0);
    }

    100% {
        transform: perspective(500px) rotateX(20deg) translateY(-40px) translateX(-40px);
    }
}

/* Stars Background */
.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(1px 1px at 25px 5px, white, transparent),
        radial-gradient(1px 1px at 50px 25px, white, transparent),
        radial-gradient(1px 1px at 125px 20px, white, transparent),
        radial-gradient(1.5px 1.5px at 50px 75px, white, transparent),
        radial-gradient(2px 2px at 15px 125px, white, transparent),
        radial-gradient(2.5px 2.5px at 110px 80px, white, transparent);
    background-size: 250px 250px;
    opacity: 0.3;
    animation: twinkle 4s ease-in-out infinite alternate;
}

@keyframes twinkle {
    from {
        opacity: 0.3;
    }

    to {
        opacity: 0.6;
    }
}

/* Comets */
.comet-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
    /* Above stars */
}

.comet {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    /* Super Glow */
    box-shadow:
        0 0 0 4px rgba(100, 200, 255, 0.2),
        0 0 15px rgba(56, 189, 248, 1),
        0 0 30px rgba(59, 130, 246, 1),
        0 0 60px rgba(59, 130, 246, 0.8);
    opacity: 0;
    transform: rotate(-45deg);
    animation: shoot 10s ease-in-out infinite;
    /* Faster (was 15s) */
    will-change: transform, opacity;
}

.comet::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 0;
    width: 350px;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.8), #fff);
}

.comet:nth-child(1) {
    top: -10%;
    right: 15%;
    animation-delay: 0s;
    animation-duration: 9s;
}

.comet:nth-child(2) {
    top: 30%;
    right: -5%;
    animation-delay: 3s;
    animation-duration: 12s;
}

.comet:nth-child(3) {
    top: 60%;
    right: -10%;
    animation-delay: 6s;
    animation-duration: 11s;
}

@keyframes shoot {
    0% {
        transform: rotate(-45deg) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    20% {
        transform: rotate(-45deg) translateX(-150vh);
        opacity: 0;
    }

    100% {
        opacity: 0;
        transform: rotate(-45deg) translateX(-150vh);
    }
}



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

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero-banner {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.35;
    /* Subtle transparency */
    mix-blend-mode: overlay;
    /* Blends well with the gradient */
    animation: bannerZoom 30s ease-in-out infinite alternate;
    will-change: transform;
    transform: translateZ(0);
}

@keyframes bannerZoom {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.15);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Vignette effect - clearer center to show gradient */
    background: radial-gradient(circle at center, rgba(8, 12, 20, 0.1) 0%, rgba(5, 7, 10, 0.85) 95%);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    text-align: center;
    z-index: 10;
    padding: 100px 20px 40px;
    max-width: 800px;
    animation: fadeIn 0.8s ease-out;
}

.hero-stats-left,
.hero-stats-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-stats-left {
    left: 5%;
    animation: heroStatsAppear 0.45s ease-out 0.35s both;
}

.hero-stats-right {
    right: 5%;
    animation: heroStatsAppear 0.45s ease-out 0.45s both;
}

/* ... existing styles ... */

.hero-stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 18px 22px;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 14px;
    min-width: 130px;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.hero-stat-card:hover {
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(15, 23, 42, 0.8);
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
}

.hero-stat-icon {
    font-size: 1.2rem;
    color: #3b82f6;
    margin-bottom: 2px;
}

.hero-stat-value {
    font-family: 'VT323', monospace;
    font-size: 1.6rem;
    color: #fff;
    letter-spacing: 1px;
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.72rem;
    color: #8896b0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

@keyframes heroStatsAppear {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (max-width: 1600px) {

    .hero-stats-left,
    .hero-stats-right {
        position: static;
        flex-direction: row;
        transform: none;
        opacity: 1;
        animation: none;
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-stats-left {
        margin-top: 30px;
        order: 2;
    }

    .hero-stats-right {
        margin-top: 10px;
        order: 3;
    }

    .hero-stat-card {
        min-width: 110px;
        padding: 12px 16px;
        flex: 1;
        max-width: 160px;
    }

    .hero-stat-value {
        font-size: 1.4rem;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        padding-bottom: 60px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hero-logo-container {
    margin-bottom: 20px;
}

.hero-logo {
    max-width: 140px;
    height: auto;
    image-rendering: pixelated;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
    animation: logoFloat 6s ease-in-out infinite;
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.hero-title {
    font-family: 'VT323', monospace;
    font-size: 4rem;
    color: var(--text-white);
    /* 3D Text Effect */
    text-shadow:
        0 4px 0 var(--mc-blue-dark),
        0 8px 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 5px;
    letter-spacing: 2px;
    line-height: 1;
}

.hero-subtitle {
    font-family: 'VT323', monospace;
    font-size: 1.55rem;
    color: #d5dfef;
    margin-bottom: 32px;
    text-shadow: 0 2px 0 rgba(10, 14, 20, 0.95), 0 8px 18px rgba(0, 0, 0, 0.28);
    letter-spacing: 1.2px;
    line-height: 1.05;
}

.server-info-box {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.ip-box {
    background: rgba(20, 30, 50, 0.8);
    backdrop-filter: blur(4px);
    /* Minecraft Border */
    border: 2px solid #5e6d8a;
    border-bottom-width: 4px;
    padding: 15px 30px;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.4);
}

.ip-box:hover {
    transform: translateY(-2px);
    border-color: var(--mc-blue-light);
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.4);
    background: rgba(30, 58, 138, 0.4);
}

.ip-box:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.4);
    border-bottom-width: 2px;
}

.ip-label {
    font-family: 'VT323', monospace;
    font-size: 0.8rem;
    color: var(--text-gray);
    letter-spacing: 1px;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.ip-address {
    font-family: 'VT323', monospace;
    font-size: 2rem;
    color: white;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
}

.ip-hint {
    font-size: 0.7rem;
    color: var(--mc-blue-light);
    margin-top: 4px;
    text-transform: uppercase;
    font-weight: bold;
}

.status-box {
    background: rgba(20, 30, 50, 0.8);
    border: 2px solid #5e6d8a;
    border-bottom-width: 4px;
    padding: 15px 30px;
    text-align: center;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.4);
}

.status-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 5px;
}

.status-dot {
    width: 12px;
    height: 12px;
    background: #22c55e;
    box-shadow: 2px 2px 0 #14532d;
    border-radius: 0;
    animation: statusBlink 1.5s ease-in-out infinite;
}

.status-dot.offline {
    background: #ef4444;
    box-shadow: 2px 2px 0 #7f1d1d;
    animation: none;
}

@keyframes statusBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.status-text {
    font-family: 'VT323', monospace;
    font-size: 0.9rem;
    color: #4ade80;
    letter-spacing: 1px;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);
}

.player-count {
    font-family: 'VT323', monospace;
    font-size: 1.8rem;
    color: white;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
}

.player-label {
    font-size: 0.7rem;
    color: var(--text-gray);
    margin-top: 4px;
    text-transform: uppercase;
}

.gamemodes-bar {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 35px;
}

.gamemode-item {
    background: rgba(15, 23, 42, 0.8);
    border: 2px solid var(--mc-border);
    border-bottom-width: 4px;
    padding: 10px 20px;
    font-family: 'VT323', monospace;
    font-size: 1rem;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
    border-radius: 2px;
    cursor: pointer;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
}

.gamemode-item:hover {
    transform: translateY(-3px);
    color: white;
    filter: brightness(1.2);
    box-shadow: 0 7px 0 rgba(0, 0, 0, 0.3);
}

.gamemode-item:active {
    transform: translateY(0px);
    border-bottom-width: 2px;
    margin-top: 2px;
    /* Visually push down */
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.3);
}

.gamemode-item:nth-child(1) {
    --gm-color: var(--gm-lifesteal);
    border-color: #0e7490;
}

.gamemode-item:nth-child(1):hover {
    border-color: var(--gm-lifesteal);
    background: rgba(8, 145, 178, 0.2);
}

.gamemode-item:nth-child(1) i {
    color: var(--gm-lifesteal);
    text-shadow: 0 0 5px var(--gm-lifesteal);
}

.gamemode-item:nth-child(2) {
    --gm-color: var(--gm-practice);
    border-color: #c2410c;
}

.gamemode-item:nth-child(2):hover {
    border-color: var(--gm-practice);
    background: rgba(234, 88, 12, 0.2);
}

.gamemode-item:nth-child(2) i {
    color: var(--gm-practice);
    text-shadow: 0 0 5px var(--gm-practice);
}

.gamemode-item:nth-child(3) {
    --gm-color: var(--gm-vanilla);
    border-color: #7e22ce;
}

.gamemode-item:nth-child(3):hover {
    border-color: var(--gm-vanilla);
    background: rgba(147, 51, 234, 0.2);
}

.gamemode-item:nth-child(3) i {
    color: var(--gm-vanilla);
    text-shadow: 0 0 5px var(--gm-vanilla);
}

.gamemode-item:nth-child(4) {
    --gm-color: var(--gm-survival);
    border-color: #15803d;
}

.gamemode-item:nth-child(4):hover {
    border-color: var(--gm-survival);
    background: rgba(22, 163, 74, 0.2);
}

.gamemode-item:nth-child(4) i {
    color: var(--gm-survival);
    text-shadow: 0 0 5px var(--gm-survival);
}


/* Buttons */
.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.mc-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 34px;
    font-family: 'VT323', monospace;
    font-size: 1.1rem;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.1s;
    border: 2px solid;
    border-bottom-width: 4px;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
    image-rendering: pixelated;
}

.mc-btn-primary {
    background: var(--mc-blue);
    border-color: #1e3a8a;
    /* Darker blue for sides */
    border-top-color: #60a5fa;
    /* Lighter top */
    color: white;
    text-shadow: 2px 2px 0 #1e3a8a;
    box-shadow: 0 4px 0 #1e3a8a, 0 10px 20px rgba(0, 0, 0, 0.4);
}

.mc-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #1e3a8a, 0 15px 25px rgba(0, 0, 0, 0.5);
    background: #4B90F7;
}

.mc-btn-primary:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #1e3a8a;
    border-bottom-width: 2px;
}

.mc-btn-secondary {
    background: #334155;
    border-color: #1e293b;
    border-top-color: #64748b;
    color: white;
    text-shadow: 2px 2px 0 #0f172a;
    box-shadow: 0 4px 0 #0f172a, 0 10px 20px rgba(0, 0, 0, 0.4);
}

.mc-btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #0f172a, 0 15px 25px rgba(0, 0, 0, 0.5);
    background: #475569;
}

.mc-btn-secondary:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #0f172a;
    border-bottom-width: 2px;
}

.mc-btn-primary:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 var(--mc-blue-dark);
}

.mc-btn-secondary {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(5px);
    border-color: var(--mc-purple);
    color: var(--mc-blue-light);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
}

.mc-btn-secondary:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: var(--mc-purple-dark);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.25);
    color: white;
    transform: translateY(-2px);
}

.discord-btn {
    flex-direction: column;
    gap: 4px;
    padding: 10px 24px;
}

.discord-count-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.7rem;
    opacity: 0.9;
    font-family: 'Poppins', sans-serif;
}

.online-dot {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
}

.copy-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--mc-blue);
    color: white;
    padding: 12px 30px;
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    border: 3px solid var(--mc-blue-dark);
    z-index: 9999;
    opacity: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.copy-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    z-index: 10001;
}

.page-content {
    padding: 120px 20px 60px;
    max-width: 1000px;
    margin: 0 auto;
    min-height: calc(100vh - 60px);
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-family: 'VT323', monospace;
    font-size: 2.5rem;
    color: var(--mc-blue-light);
    text-shadow: 2px 2px 0 var(--mc-blue-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.page-header p {
    color: var(--text-gray);
}

.deferred-section {
    content-visibility: auto;
    contain-intrinsic-size: auto 720px;
}

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

.staff-card {
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(8px);
    border: 1px solid var(--mc-border);
    border-left: 4px solid transparent;
    padding: 24px 16px 18px;
    text-align: center;
    transition: border-color 0.15s ease, transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(2, 6, 23, 0.24);
}

.staff-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
}

.staff-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 60%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

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

.staff-card-glow {
    position: absolute;
    inset: -30% auto auto 50%;
    width: 120px;
    height: 120px;
    border-radius: 999px;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(125, 211, 252, 0.18), transparent 70%);
    pointer-events: none;
}

.staff-card-rank {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: rgba(2, 6, 23, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(226, 232, 240, 0.85);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    z-index: 1;
}

.staff-card-rank i {
    font-size: 0.8rem;
}

.staff-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    border: 3px solid var(--mc-border);
    background: rgba(0, 0, 0, 0.3);
}

.staff-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: pixelated;
    transition: transform 0.2s ease;
}

.staff-card:hover .staff-avatar img {
    transform: scale(1.1);
}

.staff-name {
    font-family: 'VT323', monospace;
    font-size: 1.3rem;
    color: var(--text-white);
    margin-bottom: 8px;
}

.staff-role {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 136px;
    padding: 8px 18px;
    font-family: 'VT323', monospace;
    font-size: 1.12rem;
    letter-spacing: 0.05em;
    color: white;
    text-transform: capitalize;
    min-height: 0;
    border-width: 2px;
    border-bottom-width: 4px;
    box-shadow: none;
    pointer-events: none;
}

.staff-role.owner {
    background: #0891b2;
    border-color: #155e75;
    border-top-color: #67e8f9;
    color: #f0fdff;
    text-shadow: 2px 2px 0 #155e75;
}

.staff-role.executive {
    background: #7c3aed;
    border-color: #4c1d95;
    border-top-color: #c084fc;
    color: #faf5ff;
    text-shadow: 2px 2px 0 #4c1d95;
}

.staff-role.manager {
    background: red;
    border-color: #9b1c1c;
    border-top-color: #f87171;
    color: #fff5f5;
    text-shadow: 2px 2px 0 #9b1c1c
}

.staff-role.senior-administrator {
    background: #dc2626;
    border-color: #7f1d1d;
    border-top-color: #fca5a5;
    color: #fff5f5;
    text-shadow: 2px 2px 0 #7f1d1d;
}

.staff-role.administrator {
    background: #ea580c;
    border-color: #9a3412;
    border-top-color: #fdba74;
    color: #fff7ed;
    text-shadow: 2px 2px 0 #9a3412;
}

.staff-role.developer {
    background: #db2777;
    border-color: #9d174d;
    border-top-color: #f9a8d4;
    color: #fff1f2;
    text-shadow: 2px 2px 0 #9d174d;
}

.staff-role.senior-moderator {
    background: #9333ea;
    border-color: #581c87;
    border-top-color: #d8b4fe;
    color: #faf5ff;
    text-shadow: 2px 2px 0 #581c87;
}

.staff-role.moderator {
    background: #2563eb;
    border-color: #1e3a8a;
    border-top-color: #93c5fd;
    color: #eff6ff;
    text-shadow: 2px 2px 0 #1e3a8a;
}

.staff-role.helper {
    background: #ca8a04;
    border-color: #854d0e;
    border-top-color: #fde047;
    color: #fffbea;
    text-shadow: 2px 2px 0 #854d0e;
}

.staff-card[data-role="Owner"] {
    border-left-color: #22d3ee;
}

.staff-card[data-role="Executive"] {
    border-left-color: #c084fc;
}

.staff-card[data-role="Manager"] {
    border-left-color: #f87171;
}

.staff-card[data-role="Senior Administrator"] {
    border-left-color: #f87171;
}

.staff-card[data-role="Administrator"] {
    border-left-color: #fb923c;
}

.staff-card[data-role="Developer"] {
    border-left-color: #f9a8d4;
}

.staff-card[data-role="Senior Moderator"] {
    border-left-color: #a78bfa;
}

.staff-card[data-role="Moderator"] {
    border-left-color: #60a5fa;
}

.staff-card[data-role="Helper"] {
    border-left-color: #facc15;
}

.staff-empty {
    padding: 28px;
    border-radius: 18px;
    text-align: center;
    color: rgba(226, 232, 240, 0.78);
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.announcements-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.announcement-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(5px);
    border: 1px solid var(--mc-border);
    border-radius: 12px;
    transition: border-color 0.15s ease, transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
    position: relative;
}

.announcement-card:hover {
    border-color: var(--mc-purple);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.15);
}

.announcement-banner {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}

.announcement-card:hover .announcement-banner {
    transform: scale(1.05);
}

.announcement-body {
    padding: 25px;
    position: relative;
    z-index: 1;
}

.announcement-header {
    margin-bottom: 15px;
}

.announcement-title {
    font-family: 'VT323', monospace;
    font-size: 1.6rem;
    color: var(--mc-blue-light);
    margin-bottom: 10px;
}

.announcement-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.8rem;
    color: var(--text-gray);
}

.announcement-author {
    display: flex;
    align-items: center;
    gap: 6px;
}

.announcement-author img {
    width: 22px;
    height: 22px;
    image-rendering: pixelated;
    border-radius: 3px;
}

.announcement-content {
    color: var(--text-gray);
    line-height: 1.6;
    font-size: 0.9rem;
}



.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-section {
    padding: 80px 20px;
    background: transparent;
    position: relative;
    z-index: 10;
}

.section-title {
    font-family: 'VT323', monospace;
    font-size: 2rem;
    color: var(--mc-blue-light);
    text-shadow: 2px 2px 0 var(--mc-blue-dark);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title i {
    color: var(--mc-blue);
}

.about-content {
    background: var(--mc-card);
    border: 2px solid var(--mc-border);
    border-radius: 8px;
    padding: 25px 30px;
}

.about-content p {
    color: var(--text-gray);
    line-height: 1.8;
    font-size: 1rem;
}

/* How To Start Guide Section */
.guide-section {
    padding: 80px 20px;
    background: transparent;
    position: relative;
    z-index: 10;
}

.guide-subtitle {
    text-align: center;
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 40px;
    margin-top: -15px;
}

.guide-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    position: relative;
}

.guide-steps::before {
    content: '';
    position: absolute;
    top: 95px;
    left: 12.5%;
    width: 75%;
    height: 4px;
    background: linear-gradient(90deg,
            rgba(59, 130, 246, 0.15),
            rgba(139, 92, 246, 0.15),
            rgba(34, 211, 238, 0.15),
            rgba(34, 197, 94, 0.15));
    z-index: 0;
    border-radius: 4px;
}

.guide-steps::after {
    content: '';
    position: absolute;
    top: 93px;
    left: 12.5%;
    width: 75%;
    height: 8px;
    background: linear-gradient(90deg,
            #3b82f6,
            #8b5cf6,
            #22d3ee,
            #22c55e,
            #3b82f6);
    background-size: 200% 100%;
    z-index: 0;
    border-radius: 6px;
    animation: flowLine 2.5s linear infinite;
    opacity: 0.9;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.5), 0 0 30px rgba(139, 92, 246, 0.3);
}

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

    100% {
        background-position: -100% 0;
    }
}

.guide-step {
    background: linear-gradient(180deg, #5d5d5d 0%, #4f4f4f 100%);
    border: 6px solid;
    border-color: #7a7a7a #343434 #2e2e2e #666666;
    border-radius: 0;
    padding: 34px 18px 22px;
    text-align: center;
    position: relative;
    transition: transform 0.12s ease-out, filter 0.12s ease-out, box-shadow 0.12s ease-out;
    z-index: 1;
    box-shadow: 8px 8px 0 #252525;
    image-rendering: pixelated;
    overflow: visible;
    min-height: 100%;
}

.guide-step::before {
    content: "";
    position: absolute;
    inset: 0;
    border-top: 2px solid rgba(255, 255, 255, 0.16);
    border-left: 2px solid rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.guide-step:hover {
    cursor: pointer;
    filter: brightness(1.04);
    transform: translateY(-2px);
    box-shadow: 10px 10px 0 #222222;
}

.guide-step:active {
    transform: translateY(5px) translateX(5px);
    border-color: #3a3a3a #6a6a6a #6a6a6a #3a3a3a;
    box-shadow: 0px 0px 0 #222222;
    filter: brightness(0.9);
}

.guide-step-number {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
    border: 3px solid #1e40af;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    box-shadow: 2px 2px 0 #1e40af;
    text-shadow: 1px 1px 0 #1e40af;
}

.guide-step-icon {
    width: 74px;
    height: 74px;
    margin: 2px auto 20px;
    background: linear-gradient(180deg, #6f6f6f 0%, #575757 100%);
    border: 4px solid;
    border-color: #4c4c4c #2f2f2f #2a2a2a #525252;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease;
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.14),
        4px 4px 0 #2b2b2b;
}

.guide-step-icon i {
    font-size: 1.8rem;
    color: #22c55e;
    text-shadow: 2px 2px 0 #15803d;
    transition: transform 0.15s ease;
    -webkit-text-fill-color: unset;
    background: none;
}

.guide-step:hover .guide-step-icon {
    transform: translateY(-1px);
}

.guide-step:hover .guide-step-icon i {
    transform: scale(1.04);
}

.guide-step:nth-child(1) .guide-step-icon i {
    color: #3b82f6;
    text-shadow: 2px 2px 0 #1e40af;
    background: none;
}

.guide-step:nth-child(2) .guide-step-icon i {
    color: #a855f7;
    text-shadow: 2px 2px 0 #7e22ce;
    background: none;
}

.guide-step:nth-child(3) .guide-step-icon i {
    color: #22d3ee;
    text-shadow: 2px 2px 0 #0891b2;
    background: none;
}

.guide-step:nth-child(4) .guide-step-icon i {
    color: #22c55e;
    text-shadow: 2px 2px 0 #15803d;
    background: none;
}

.guide-step-title {
    font-family: 'VT323', monospace;
    font-size: 1.55rem;
    color: var(--text-white);
    margin-bottom: 12px;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.28);
}

.guide-step-desc {
    color: #dde5f4;
    font-size: 0.92rem;
    line-height: 1.45;
    margin-bottom: 16px;
    max-width: 20ch;
    margin-left: auto;
    margin-right: auto;
}

.guide-step-desc strong {
    color: var(--mc-blue-light);
    font-family: 'VT323', monospace;
    font-size: 1.08rem;
}

.guide-step-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    border: 4px solid;
    border-radius: 0;
    color: var(--text-white);
    font-family: 'VT323', monospace;
    font-size: 1.08rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
    box-shadow: 4px 4px 0 rgba(18, 18, 18, 0.7);
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.35);
}

.guide-step-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.guide-step-btn:active {
    transform: translateY(4px) translateX(4px);
    box-shadow: 0 0 0 rgba(18, 18, 18, 0.7);
}

.guide-step-btn-blue {
    background: linear-gradient(180deg, #67a3ff 0%, #3e7cf0 100%);
    border-color: #7fb5ff #2959c4 #234da8 #699fff;
}

.guide-step-btn-violet {
    background: linear-gradient(180deg, #9a73ff 0%, #6947e4 100%);
    border-color: #b793ff #4e32bc #432b9f #8f69ff;
}

.guide-step-btn-cyan {
    background: linear-gradient(180deg, #56dbf2 0%, #18a9d1 100%);
    border-color: #82ebff #0b88af #0a7293 #58dff7;
}

.guide-step-btn-green {
    background: linear-gradient(180deg, #5fe18f 0%, #239e57 100%);
    border-color: #86f0ac #15733b #105c2f #65d78d;
}

@media (max-width: 900px) {
    .guide-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .guide-steps::before {
        display: none;
    }

    .guide-steps::after {
        top: auto;
        bottom: -20px;
        left: 10%;
        width: 80%;
        height: 4px;
    }
}

@media (max-width: 500px) {
    .guide-steps {
        grid-template-columns: 1fr;
    }
}

.latest-news-section {
    padding: 80px 20px;
    background: transparent;
    position: relative;
    z-index: 10;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.section-header .section-title {
    margin-bottom: 0;
}

.view-all-btn {
    font-family: 'VT323', monospace;
    font-size: 1.1rem;
    color: var(--mc-blue-light);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 2px solid var(--mc-border);
    background: var(--mc-card);
    transition: border-color 0.15s ease, background 0.15s ease;
}

.view-all-btn:hover {
    border-color: var(--mc-blue);
    background: rgba(59, 130, 246, 0.1);
}

.view-all-btn-amber {
    color: #fff8ef;
    border: 3px solid;
    border-color: #ffd89b #a94f06 #8e3f00 #ffc879;
    background: linear-gradient(180deg, #ffba61 0%, #f8a241 48%, #d97b1e 100%);
    box-shadow:
        inset 0 2px 0 rgba(255, 245, 229, 0.18),
        0 5px 0 #7b3800,
        0 12px 22px rgba(0, 0, 0, 0.18);
}

.view-all-btn-amber:hover {
    border-color: #ffe0aa #b8570b #944500 #ffd08a;
    background: linear-gradient(180deg, #ffc671 0%, #ffad4f 48%, #e48a28 100%);
}

.latest-news-container {
    display: grid;
    gap: 25px;
}

.latest-news-card {
    display: flex;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(30, 41, 59, 0.6) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid transparent;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.2s ease-out;
    text-decoration: none;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.latest-news-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.4), rgba(139, 92, 246, 0.2), rgba(59, 130, 246, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.latest-news-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.2), 0 0 60px rgba(59, 130, 246, 0.1);
}

.latest-news-card:hover::before {
    opacity: 1;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.8), rgba(139, 92, 246, 0.5), rgba(59, 130, 246, 0.3));
}

.latest-news-banner {
    width: 320px;
    min-height: 180px;
    object-fit: cover;
    flex-shrink: 0;
}

.latest-news-body {
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.latest-news-title {
    font-family: 'VT323', monospace;
    font-size: 1.8rem;
    color: var(--mc-blue-light);
    margin-bottom: 10px;
}

.latest-news-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 12px;
}

.latest-news-author {
    display: flex;
    align-items: center;
    gap: 6px;
}

.latest-news-author img {
    width: 22px;
    height: 22px;
    image-rendering: pixelated;
    border-radius: 3px;
}

.latest-news-excerpt {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.no-news-message {
    text-align: center;
    color: var(--text-gray);
    padding: 30px;
    background: var(--mc-card);
    border: 2px solid var(--mc-border);
    border-radius: 8px;
}


@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 72px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 72px);
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px;
        gap: 8px;
        transition: right 0.15s cubic-bezier(0.4, 0, 0.2, 1);
        border-left: 1px solid rgba(80, 80, 90, 0.3);
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        width: 100%;
        padding: 14px 16px;
        font-size: 1.2rem;
        border-radius: 6px;
    }

    .nav-toggle {
        display: flex;
    }

    .navbar {
        padding: 0 15px;
        height: 72px;
    }

    .nav-logo img {
        height: 48px;
    }

    .hero {
        min-height: 100dvh;
    }

    .hero-content {
        padding: 70px 12px 20px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 12px;
    }

    .hero-logo-container {
        margin-bottom: 0;
    }

    .hero-logo {
        max-width: 70px;
    }

    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 0;
    }

    .hero-subtitle {
        font-size: 0.8rem;
        margin-bottom: 0;
    }

    .server-info-box {
        flex-direction: row;
        justify-content: center;
        gap: 8px;
        width: 100%;
        margin-bottom: 0;
    }

    .ip-box,
    .status-box {
        flex: 1;
        max-width: 160px;
        padding: 10px 8px;
    }

    .ip-box::before {
        display: none;
    }

    .ip-label {
        font-size: 0.6rem;
        letter-spacing: 1px;
        margin-bottom: 2px;
    }

    .ip-address {
        font-size: 0.85rem;
    }

    .ip-hint {
        font-size: 0.55rem;
        margin-top: 2px;
    }

    .ip-hint i {
        display: none;
    }

    .status-row {
        margin-bottom: 2px;
    }

    .status-dot {
        width: 6px;
        height: 6px;
    }

    .status-text {
        font-size: 0.7rem;
    }

    .player-count {
        font-size: 1.1rem;
    }

    .player-label {
        font-size: 0.55rem;
    }

    .gamemodes-bar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
        width: 100%;
        max-width: 320px;
        margin-bottom: 0;
    }

    .gamemode-item {
        padding: 6px 10px;
        font-size: 0.8rem;
        gap: 5px;
        justify-content: center;
    }

    .gamemode-item i {
        font-size: 0.7rem;
    }

    .hero-buttons {
        gap: 8px;
        width: 100%;
        max-width: 320px;
    }

    .mc-btn {
        flex: 1;
        padding: 8px 12px;
        font-size: 0.9rem;
        gap: 6px;
        justify-content: center;
    }

    .footer {
        position: relative;
        padding: 8px;
        font-size: 0.65rem;
        margin-top: auto;
    }

    .page-content {
        padding: 80px 12px 30px;
    }

    .page-header {
        margin-bottom: 25px;
    }

    .page-header h1 {
        font-size: 1.6rem;
        gap: 8px;
    }

    .page-header p {
        font-size: 0.8rem;
    }

    .staff-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .staff-card {
        padding: 15px 8px;
        border-width: 2px;
    }

    .staff-avatar {
        width: 55px;
        height: 55px;
        margin-bottom: 8px;
    }

    .staff-name {
        font-size: 1rem;
        margin-bottom: 5px;
    }

    .staff-role {
        min-width: 108px;
        font-size: 0.88rem;
        padding: 6px 12px;
    }

    .announcements-container {
        gap: 15px;
    }

    .announcement-card {
        border-radius: 6px;
    }

    .announcement-banner {
        height: 140px;
    }

    .announcement-body {
        padding: 15px;
    }

    .announcement-title {
        font-size: 1.2rem;
        margin-bottom: 6px;
    }

    .announcement-meta {
        font-size: 0.75rem;
        gap: 12px;
    }

    .announcement-author img {
        width: 18px;
        height: 18px;
    }

    .announcement-content {
        font-size: 0.85rem;
        line-height: 1.5;
    }
}

@media (max-width: 360px) {
    .hero-logo {
        max-width: 55px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.75rem;
    }

    .server-info-box {
        flex-direction: column;
        align-items: center;
    }

    .ip-box,
    .status-box {
        max-width: 200px;
        width: 100%;
    }

    .ip-address {
        font-size: 1rem;
    }

    .player-count {
        font-size: 1.2rem;
    }

    .gamemodes-bar {
        max-width: 280px;
    }

    .gamemode-item {
        font-size: 0.75rem;
        padding: 5px 8px;
    }

    .mc-btn {
        font-size: 0.85rem;
        padding: 7px 10px;
    }

    .staff-grid {
        gap: 8px;
    }

    .staff-avatar {
        width: 45px;
        height: 45px;
    }

    .staff-name {
        font-size: 0.9rem;
    }

    .staff-role {
        min-width: 100px;
        font-size: 0.82rem;
    }

    .announcement-card {
        border-width: 2px;
        border-left-width: 3px;
    }

    .announcement-banner {
        height: 100px;
    }

    .announcement-body {
        padding: 12px;
    }

    .announcement-title {
        font-size: 1.1rem;
    }

    /* Apply Section Mobile */
    .apply-section {
        padding: 40px 15px;
    }

    .apply-container {
        padding: 25px 20px;
    }

    .apply-icon {
        font-size: 3rem;
    }

    .apply-title {
        font-size: 1.5rem;
    }

    .apply-text {
        font-size: 0.9rem;
    }

    .mc-btn-apply {
        font-size: 1rem;
        padding: 12px 25px;
    }

    /* Tooltip Mobile - Hide on touch */
    .gamemode-item[data-tooltip]::after {
        display: none;
    }
}

.latest-news-section,
.about-section {
    padding: 80px 20px;
    background: transparent;
    position: relative;
}

.latest-news-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.3), transparent);
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.2), transparent);
}

.section-title {
    font-family: 'VT323', monospace;
    font-size: 2rem;
    color: var(--mc-blue-light);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title i {
    color: var(--mc-blue);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.view-all-btn {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 8px 16px;
    border: 1px solid var(--mc-border);
    border-radius: 20px;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.view-all-btn:hover {
    color: var(--mc-blue-light);
    border-color: var(--mc-blue);
    background: rgba(59, 130, 246, 0.1);
}

.about-content {
    background: var(--mc-card);
    border: 1px solid var(--mc-border);
    border-radius: 12px;
    padding: 30px;
}

.about-content p {
    color: var(--text-gray);
    line-height: 1.8;
    font-size: 1rem;
}

/* Enhanced Announcement Views */
.announcement-views {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-gray);
    font-size: 0.8rem;
    padding: 3px 8px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    transition: background 0.15s ease;
}

.announcement-views i {
    color: var(--mc-blue-light);
    font-size: 0.75rem;
}

/* Enhanced Latest News Section */
.latest-news-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.latest-news-card {
    display: flex;
    flex-direction: column;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.latest-news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--mc-blue), var(--mc-blue-light), var(--mc-blue));
    opacity: 0;
    transition: opacity 0.2s ease;
}

.latest-news-card:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(59, 130, 246, 0.1);
}

.latest-news-card:hover::before {
    opacity: 1;
}

.latest-news-card.featured {
    border-color: rgba(251, 146, 60, 0.3);
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.05), rgba(15, 23, 42, 0.7));
}

.latest-news-card.featured::before {
    background: linear-gradient(90deg, #fb923c, #f97316, #fb923c);
    opacity: 1;
}

.latest-news-card.featured:hover {
    border-color: rgba(251, 146, 60, 0.5);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(251, 146, 60, 0.15);
}

.latest-news-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
}

.latest-news-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent);
}

.latest-news-banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.latest-news-card:hover .latest-news-banner {
    transform: scale(1.05);
}

.latest-news-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.latest-news-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: 'VT323', monospace;
    font-size: 0.85rem;
    padding: 4px 12px;
    border-radius: 20px;
    width: fit-content;
    letter-spacing: 1px;
}

.latest-news-card.featured .latest-news-badge {
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.3), rgba(251, 146, 60, 0.1));
    color: #fb923c;
    border: 1px solid rgba(251, 146, 60, 0.3);
}

.latest-news-card.featured .latest-news-badge i {
    color: #fb923c;
}

.latest-news-card:not(.featured) .latest-news-badge {
    background: rgba(59, 130, 246, 0.15);
    color: var(--mc-blue-light);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.latest-news-title {
    font-family: 'VT323', monospace;
    font-size: 1.4rem;
    color: var(--text-white);
    margin: 0;
    line-height: 1.3;
    transition: color 0.15s ease;
}

.latest-news-card:hover .latest-news-title {
    color: var(--mc-blue-light);
}

.latest-news-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--text-gray);
}

.latest-news-author {
    display: flex;
    align-items: center;
    gap: 6px;
}

.latest-news-author img {
    width: 20px;
    height: 20px;
    image-rendering: pixelated;
    border-radius: 3px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.latest-news-views {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--mc-blue-light);
    font-weight: 500;
}

.latest-news-views i {
    font-size: 0.75rem;
}

.latest-news-excerpt {
    color: var(--text-gray);
    font-size: 0.85rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

/* Enhanced Announcement Cards */
.announcement-card {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid var(--mc-border);
    border-left: 4px solid var(--mc-blue);
    border-radius: 12px;
    transition: all 0.25s ease;
    overflow: hidden;
    position: relative;
}

.announcement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.announcement-card:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(59, 130, 246, 0.1);
}

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

.announcement-banner {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.announcement-card:hover .announcement-banner {
    transform: scale(1.03);
}

.announcement-body {
    padding: 25px;
    position: relative;
    z-index: 1;
}

.announcement-header {
    margin-bottom: 15px;
}

.announcement-title {
    font-family: 'VT323', monospace;
    font-size: 1.6rem;
    color: var(--mc-blue-light);
    margin-bottom: 12px;
    transition: color 0.15s ease;
}

.announcement-card:hover .announcement-title {
    color: var(--text-white);
}

.announcement-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    font-size: 0.8rem;
    color: var(--text-gray);
}

.announcement-author {
    display: flex;
    align-items: center;
    gap: 6px;
}

.announcement-author img {
    width: 22px;
    height: 22px;
    image-rendering: pixelated;
    border-radius: 4px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.announcement-content {
    color: var(--text-gray);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Mobile Responsive for Enhanced News */
@media (max-width: 768px) {
    .latest-news-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .latest-news-image {
        height: 140px;
    }

    .latest-news-body {
        padding: 15px;
    }

    .latest-news-title {
        font-size: 1.2rem;
    }

    .latest-news-badge {
        font-size: 0.75rem;
        padding: 3px 10px;
    }

    .latest-news-meta {
        gap: 10px;
        font-size: 0.75rem;
    }

    .announcement-views,
    .latest-news-views {
        font-size: 0.7rem;
    }
}


.footer {
    background: linear-gradient(180deg, #0a0e1a 0%, #060810 100%);
    color: #c8d0e0;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 0.95rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 5%;
    right: 5%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.4), transparent);
}

.footer-top {
    padding: 60px 0 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-top .footer-container {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    gap: 48px;
}


.footer-logo-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(59, 130, 246, 0.3));
}

.footer-brand-name {
    font-family: 'VT323', monospace;
    font-size: 1.6rem;
    color: #fff;
    letter-spacing: 1px;
}

.footer-brand-desc {
    color: #8896b0;
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 20px;
}

.footer-ip-box {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 10px 18px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: all;
}

.footer-ip-box:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
}

.footer-ip-label {
    color: #8896b0;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-ip-address {
    color: #fff;
    font-family: 'VT323', monospace;
    font-size: 1.15rem;
    letter-spacing: 1px;
}

.footer-ip-copy {
    color: rgba(59, 130, 246, 0.6);
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-ip-box:hover .footer-ip-copy {
    color: rgba(59, 130, 246, 1);
}

.footer-heading {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #fff;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 2px;
    background: #3b82f6;
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links li a {
    color: #8896b0;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
    transition: all 0.2s ease;
}

.footer-links li a i {
    width: 16px;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(59, 130, 246, 0.5);
    transition: color 0.2s;
}

.footer-links li a:hover {
    color: #fff;
    transform: translateX(4px);
}

.footer-links li a:hover i {
    color: #3b82f6;
}

.footer-socials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.footer-social-btn {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.25s ease;
    text-decoration: none;
}

.footer-social-btn:hover {
    transform: translateY(-3px);
}

.footer-social-btn.discord:hover {
    background: rgba(88, 101, 242, 0.2);
    border-color: rgba(88, 101, 242, 0.4);
    color: #5865f2;
}

.footer-social-btn.youtube:hover {
    background: rgba(255, 0, 0, 0.15);
    border-color: rgba(255, 0, 0, 0.3);
    color: #ff0000;
}

.footer-social-btn.instagram:hover {
    background: rgba(225, 48, 108, 0.15);
    border-color: rgba(225, 48, 108, 0.3);
    color: #e1306c;
}

.footer-social-btn.twitter:hover {
    background: rgba(29, 161, 242, 0.15);
    border-color: rgba(29, 161, 242, 0.3);
    color: #1da1f2;
}

.footer-social-btn.tiktok:hover {
    background: rgba(255, 0, 80, 0.15);
    border-color: rgba(255, 0, 80, 0.3);
    color: #ff0050;
}

.footer-social-btn.facebook:hover {
    background: rgba(24, 119, 242, 0.15);
    border-color: rgba(24, 119, 242, 0.3);
    color: #1877f2;
}

.footer-bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 18px 0;
}

.footer-bottom-bar .footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    color: #5a6580;
    font-size: 0.85rem;
    margin: 0;
}

.footer-disclaimer {
    color: #3d4660;
    font-size: 0.8rem;
    margin: 0;
}

@media (max-width: 958px) {
    .footer-top .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .footer-top {
        padding: 40px 0 28px;
    }

    .footer-top .footer-container {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .footer-logo-row {
        justify-content: center;
    }

    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-links li a {
        justify-content: center;
    }

    .footer-socials {
        justify-items: center;
    }

    .footer-ip-box {
        justify-content: center;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    .footer-bottom-bar .footer-container {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }
}

/* ========================================
   Page Entrance Animations
   ======================================== */
@keyframes pageSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes staggerFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Page Header Animation */
.page-content .page-header {
    animation: pageSlideUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Staff Grid Animation */
.staff-grid {
    animation: pageFadeIn 0.4s ease-out 0.2s forwards;
    opacity: 0;
}

.staff-grid .staff-card {
    animation: staggerFadeIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    opacity: 0;
}

.staff-grid .staff-card:nth-child(1) {
    animation-delay: 0.1s;
}

.staff-grid .staff-card:nth-child(2) {
    animation-delay: 0.15s;
}

.staff-grid .staff-card:nth-child(3) {
    animation-delay: 0.2s;
}

.staff-grid .staff-card:nth-child(4) {
    animation-delay: 0.25s;
}

.staff-grid .staff-card:nth-child(5) {
    animation-delay: 0.3s;
}

.staff-grid .staff-card:nth-child(6) {
    animation-delay: 0.35s;
}

.staff-grid .staff-card:nth-child(7) {
    animation-delay: 0.4s;
}

.staff-grid .staff-card:nth-child(8) {
    animation-delay: 0.45s;
}

.staff-grid .staff-card:nth-child(9) {
    animation-delay: 0.5s;
}

.staff-grid .staff-card:nth-child(10) {
    animation-delay: 0.55s;
}

/* Announcements Animation */
.announcements-container {
    animation: pageFadeIn 0.4s ease-out 0.2s forwards;
    opacity: 0;
}

.announcements-container .announcement-card {
    animation: staggerFadeIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    opacity: 0;
}

.announcements-container .announcement-card:nth-child(1) {
    animation-delay: 0.15s;
}

.announcements-container .announcement-card:nth-child(2) {
    animation-delay: 0.25s;
}

.announcements-container .announcement-card:nth-child(3) {
    animation-delay: 0.35s;
}

.announcements-container .announcement-card:nth-child(4) {
    animation-delay: 0.45s;
}

.announcements-container .announcement-card:nth-child(5) {
    animation-delay: 0.55s;
}

/* Rules Container Animation */
.rules-container {
    animation: pageFadeIn 0.4s ease-out 0.2s forwards;
    opacity: 0;
}

.rules-container .rule-item {
    animation: staggerFadeIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    opacity: 0;
}

.rules-container .rule-item:nth-child(1) {
    animation-delay: 0.1s;
}

.rules-container .rule-item:nth-child(2) {
    animation-delay: 0.15s;
}

.rules-container .rule-item:nth-child(3) {
    animation-delay: 0.2s;
}

.rules-container .rule-item:nth-child(4) {
    animation-delay: 0.25s;
}

.rules-container .rule-item:nth-child(5) {
    animation-delay: 0.3s;
}

.rules-container .rule-item:nth-child(6) {
    animation-delay: 0.35s;
}

.rules-container .rule-item:nth-child(7) {
    animation-delay: 0.4s;
}

.rules-container .rule-item:nth-child(8) {
    animation-delay: 0.45s;
}

.rules-container .rule-item:nth-child(9) {
    animation-delay: 0.5s;
}

.rules-container .rule-item:nth-child(10) {
    animation-delay: 0.55s;
}


/* ========================================
   Apply for Staff Section
   ======================================== */
.apply-section {
    padding: 60px 20px;
    background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.4) 50%, transparent 100%);
    animation: pageFadeIn 0.6s ease-out 0.4s forwards;
    opacity: 0;
}

.apply-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 40px 30px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.apply-icon {
    font-size: 3.5rem;
    color: #5865F2;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 15px rgba(88, 101, 242, 0.4));
}

.apply-title {
    font-family: 'VT323', monospace;
    font-size: 2rem;
    color: var(--text-white);
    margin-bottom: 12px;
    text-shadow: 2px 2px 0 var(--mc-blue-dark);
}

.apply-text {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.mc-btn-apply {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-family: 'VT323', monospace;
    font-size: 1.3rem;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 2px;
    color: white;
    background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
    border: 2px solid #4752C4;
    border-bottom-width: 4px;
    border-radius: 4px;
    box-shadow: 0 4px 0 #3C45A5, 0 8px 20px rgba(88, 101, 242, 0.3);
    transition: all 0.15s ease;
    position: relative;
    overflow: hidden;
}

.mc-btn-apply::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.4s ease;
}

.mc-btn-apply:hover::before {
    left: 100%;
}

.mc-btn-apply:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 0 #3C45A5, 0 12px 30px rgba(88, 101, 242, 0.4);
    background: linear-gradient(135deg, #6972F5 0%, #5865F2 100%);
}

.mc-btn-apply:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #3C45A5;
    border-bottom-width: 2px;
}

.mc-btn-apply i {
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.mc-btn-apply:hover i {
    transform: translateX(3px);
}

.mc-btn-apply-amber {
    color: #fff8ef;
    background: linear-gradient(180deg, #ffba61 0%, #f8a241 48%, #d97b1e 100%);
    border-color: #ffd89b #a94f06 #8e3f00 #ffc879;
    box-shadow: 0 4px 0 #7b3800, 0 8px 20px rgba(217, 123, 30, 0.28);
}

.mc-btn-apply-amber:hover {
    box-shadow: 0 7px 0 #7b3800, 0 12px 30px rgba(217, 123, 30, 0.36);
    background: linear-gradient(180deg, #ffc671 0%, #ffad4f 48%, #e48a28 100%);
}

.mc-btn-apply-amber:active {
    box-shadow: 0 2px 0 #7b3800;
}

/* Apply Section Mobile */
@media (max-width: 768px) {
    .apply-section {
        padding: 40px 15px;
    }

    .apply-container {
        padding: 30px 20px;
    }

    .apply-icon {
        font-size: 2.5rem;
    }

    .apply-title {
        font-size: 1.6rem;
    }

    .apply-text {
        font-size: 0.9rem;
    }

    .mc-btn-apply {
        font-size: 1.1rem;
        padding: 12px 24px;
    }
}

@media (max-width: 1024px) {
    .hero-content {
        max-width: 680px;
        padding: 92px 16px 28px;
    }

    .ip-address {
        font-size: 1.6rem;
    }

    .player-count {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    body::after {
        display: none;
    }

    .particles,
    .floating-orbs,
    .comet-container {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 94px 0 28px;
    }

    .hero-banner {
        animation: none;
        opacity: 0.2;
    }

    .hero-content {
        padding: 12px 14px 20px;
        max-width: 100%;
    }

    .hero-logo {
        max-width: 110px;
        animation: none;
    }

    .hero-title {
        font-size: 2.4rem;
        letter-spacing: 1px;
    }

    .hero-subtitle {
        margin-bottom: 22px;
    }

    .server-info-box {
        gap: 10px;
        margin-bottom: 18px;
    }

    .ip-box,
    .status-box {
        width: 100%;
        max-width: 360px;
        padding: 12px 16px;
    }

    .ip-address {
        font-size: 1.35rem;
        line-height: 1.2;
        word-break: break-word;
    }

    .gamemodes-bar {
        gap: 10px;
        margin-bottom: 20px;
    }

    .gamemode-item {
        min-width: calc(50% - 8px);
        justify-content: center;
        padding: 9px 10px;
    }

    .hero-buttons {
        gap: 10px;
    }

    .mc-btn {
        width: 100%;
        justify-content: center;
        max-width: 360px;
    }

    .latest-news-section,
    .about-section,
    .guide-section,
    .apply-section {
        padding-left: 14px;
        padding-right: 14px;
    }

    .about-content,
    .announcement-body,
    .latest-news-body {
        padding: 16px;
    }
}

@media (max-width: 420px) {
    .nav-container {
        padding: 0 8px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .ip-address {
        font-size: 1.15rem;
    }

    .gamemode-item {
        min-width: 100%;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .particles,
    .floating-orbs,
    .comet-container,
    .cube-wrapper {
        display: none !important;
    }
}

.news-spotlight-section {
    padding: 80px 0;
    position: relative;
}

.news-spotlight-section .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.news-slider-wrapper {
    position: relative;
    width: 100%;
    height: 420px;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid var(--mc-border);
    background: var(--mc-card);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4), 0 0 60px rgba(59, 130, 246, 0.08);
}

.news-slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.news-slider-wrapper.news-slider-single {
    height: auto;
    min-height: 0;
    padding: 18px;
}

.news-slider-wrapper.news-slider-single .news-slider-track {
    height: auto;
}

.news-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 0.6s ease, transform 0.6s ease;
    pointer-events: none;
    display: flex;
    align-items: flex-end;
}

.news-slide.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    z-index: 2;
}

.news-slide.slide-exit {
    opacity: 0;
    transform: scale(0.97);
    z-index: 1;
}

.news-slide-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.news-slide-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: auto;
}

.news-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 7, 10, 0.95) 0%, rgba(5, 7, 10, 0.7) 40%, rgba(5, 7, 10, 0.3) 100%);
}

.news-slide-content {
    position: relative;
    z-index: 2;
    padding: 40px 48px;
    max-width: 640px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.news-slide-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--mc-blue);
    color: #fff;
    font-family: 'VT323', monospace;
    font-size: 16px;
    padding: 4px 14px;
    border-radius: 4px;
    letter-spacing: 1px;
    width: fit-content;
    text-transform: uppercase;
}

.news-slide-title {
    font-family: 'VT323', monospace;
    font-size: 36px;
    color: var(--text-white);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    line-height: 1.2;
}

.news-slide-excerpt {
    color: var(--text-gray);
    font-size: 15px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-slide-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--text-gray);
    flex-wrap: wrap;
}

.news-slide-author {
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-slide-author img {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    image-rendering: pixelated;
}

.news-slide-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'VT323', monospace;
    font-size: 20px;
    color: var(--mc-blue-light);
    text-decoration: none;
    margin-top: 4px;
    transition: color 0.2s ease, gap 0.2s ease;
    width: fit-content;
}

.news-slide-cta:hover {
    color: #fff;
    gap: 12px;
}

.news-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}

.news-slider-arrow[hidden],
.news-slider-dots[hidden],
.news-slider-progress[hidden] {
    display: none !important;
}

.news-slider-prev {
    left: 16px;
}

.news-slider-next {
    right: 16px;
}

.news-slider-arrow:hover {
    background: rgba(59, 130, 246, 0.6);
    border-color: var(--mc-blue);
    transform: translateY(-50%) scale(1.08);
}

.news-slider-dots {
    position: absolute;
    bottom: 20px;
    right: 48px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.news-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    background: transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    padding: 0;
}

.news-slider-dot.active {
    background: var(--mc-blue);
    border-color: var(--mc-blue);
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
}

.news-slider-dot:hover:not(.active) {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.2);
}

.news-slider-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 10;
}

.news-slider-progress-bar {
    height: 100%;
    background: var(--mc-blue);
    width: 0%;
    animation: sliderProgress 5000ms linear forwards;
}

@keyframes sliderProgress {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }
}

.no-news-message {
    text-align: center;
    color: var(--text-gray);
    font-family: 'VT323', monospace;
    font-size: 22px;
    padding: 80px 20px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

@media (max-width: 768px) {
    .news-slider-wrapper {
        height: 380px;
        border-radius: 12px;
    }

    .news-slide-content {
        padding: 24px;
    }

    .news-slide-title {
        font-size: 26px;
    }

    .news-slide-excerpt {
        font-size: 13px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .news-slider-arrow {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .news-slider-prev {
        left: 8px;
    }

    .news-slider-next {
        right: 8px;
    }

    .news-slider-dots {
        right: 24px;
        bottom: 16px;
    }

    .news-spotlight-section .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .news-slider-wrapper {
        height: 340px;
    }

    .news-slide-title {
        font-size: 22px;
    }

    .news-slide-meta {
        gap: 10px;
        font-size: 12px;
    }

    .news-slide-badge {
        font-size: 14px;
        padding: 3px 10px;
    }
}

.snowflake {
    position: absolute;
    top: -10px;
    background: radial-gradient(circle, #fff 0%, rgba(200, 230, 255, 0.6) 60%, transparent 100%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    animation: snowfall linear infinite;
}

@keyframes snowfall {
    0% {
        transform: translateY(-10px) translateX(0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        transform: translateY(100vh) translateX(80px) rotate(360deg);
        opacity: 0;
    }
}

.mc-btn {
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}

.mc-btn:hover {
    transform: translateY(-3px);
}

.mc-btn:active {
    transform: translateY(0px);
}

.guide-step {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.guide-step:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(59, 130, 246, 0.1);
}

.gamemode-item {
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
    border-radius: 2px;
    border-bottom-width: 4px;
    image-rendering: pixelated;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.35);
}

.gamemode-item:hover {
    transform: translateY(-2px);
    border-color: var(--mc-blue-light);
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.35);
    background: rgba(30, 58, 138, 0.4);
}

.gamemode-item:active {
    transform: translateY(2px);
    margin-top: 0;
    border-bottom-width: 2px;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
}

.about-section,
.news-spotlight-section,
.guide-section,
.latest-news-section,
.partners-section,
.footer {
    content-visibility: auto;
    contain-intrinsic-size: auto 600px;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'VT323', monospace;
    font-size: 18px;
    color: var(--mc-blue-light);
    text-decoration: none;
    transition: color 0.2s ease, gap 0.2s ease;
}


.view-all-btn:hover {
    color: #fff;
    gap: 12px;
}

.view-all-btn.view-all-btn-amber,
.view-all-btn.view-all-btn-amber:visited,
.view-all-btn.view-all-btn-amber:hover,
.view-all-btn.view-all-btn-amber:focus-visible {
    color: #ffffff;
}

.view-all-btn.view-all-btn-amber {
    gap: 10px;
    border-radius: 10px;
    transition: transform 0.18s var(--premium-ease), box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease, filter 0.18s ease, gap 0.18s ease;
}

.view-all-btn.view-all-btn-amber:hover,
.view-all-btn.view-all-btn-amber:focus-visible {
    gap: 12px;
    transform: translateY(-2px);
    filter: brightness(1.04);
    border-color: #ffe0aa #b8570b #944500 #ffd08a;
    background: linear-gradient(180deg, #ffc671 0%, #ffad4f 48%, #e48a28 100%);
    box-shadow:
        inset 0 2px 0 rgba(255, 245, 229, 0.18),
        0 7px 0 #7b3800,
        0 14px 26px rgba(217, 123, 30, 0.28);
}

.view-all-btn.view-all-btn-amber:active {
    gap: 10px;
    transform: translateY(3px);
    box-shadow:
        inset 0 2px 0 rgba(255, 245, 229, 0.18),
        0 2px 0 #7b3800,
        0 6px 12px rgba(217, 123, 30, 0.16);
}

.announcement-card.highlight {
    animation: highlightPulse 2s ease-out;
    border-color: var(--mc-gold);
    box-shadow: 0 0 20px rgba(255, 170, 0, 0.15);
}

@keyframes highlightPulse {
    0% {
        transform: scale(0.98);
        box-shadow: 0 0 0 rgba(255, 170, 0, 0);
    }

    50% {
        transform: scale(1.01);
        box-shadow: 0 0 30px rgba(255, 170, 0, 0.3);
        border-color: var(--mc-gold);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(255, 170, 0, 0.15);
        border-color: var(--mc-gold);
    }
}

.card-share-btn {
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    margin-left: auto;
}

.card-share-btn:hover {
    color: var(--mc-gold);
    background: rgba(255, 170, 0, 0.1);
}

body.performance-mode,
body.performance-mode .hero-bg {
    animation: none !important;
}

body.performance-mode .particles,
body.performance-mode .floating-orbs,
body.performance-mode .comet-container,
body.performance-mode .cube-wrapper,
body.performance-mode .snowflake {
    display: none !important;
}

body.performance-mode .hero-banner,
body.performance-mode .hero-logo,
body.performance-mode .hero-stat-card {
    animation: none !important;
    transform: none !important;
}

body.performance-mode .navbar,
body.performance-mode .hero-stat-card,
body.performance-mode .apply-container {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

@media (max-width: 900px) {
    .floating-orbs,
    .comet-container,
    .stars,
    .hero-bg::before,
    .hero-bg::after {
        display: none !important;
    }

    .navbar,
    .hero-content,
    .news-slider-wrapper,
    .about-content,
    .guide-step,
    .footer-ip-box,
    .announcement-card,
    .latest-news-card {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .hero-content,
    .news-slider-wrapper,
    .guide-step,
    .latest-news-card,
    .announcement-card {
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16) !important;
    }

    .news-slider-wrapper {
        height: 360px;
    }

    .news-slide-content {
        padding: 20px;
        max-width: 100%;
    }

    .news-slide-title {
        font-size: 24px;
    }

    .gamemode-item:hover {
        transform: translateY(-1px);
        box-shadow: 0 5px 0 rgba(0, 0, 0, 0.35);
    }
}

@media (prefers-reduced-motion: reduce) {
    .gamemode-item,
    .latest-news-card,
    .staff-card,
    .announcement-card,
    .news-slide,
    .mc-btn {
        transition: none !important;
        animation: none !important;
    }
}

/* Shared UI Polish */
:root {
    --mc-blue: #4f8cff;
    --mc-blue-dark: #2451b8;
    --mc-blue-light: #8fb7ff;
    --mc-blue-glow: rgba(79, 140, 255, 0.35);
    --mc-dark: #09111f;
    --mc-darker: #040914;
    --mc-card: rgba(10, 18, 34, 0.78);
    --mc-card-strong: rgba(12, 22, 40, 0.92);
    --mc-card-soft: rgba(10, 16, 30, 0.68);
    --mc-border: rgba(126, 166, 255, 0.18);
    --mc-border-strong: rgba(126, 166, 255, 0.34);
    --mc-purple: #8b5cf6;
    --text-white: #f5f8ff;
    --text-gray: #a8b6d0;
    --text-muted: #7d8aa3;
    --surface-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
    --surface-shadow-soft: 0 10px 24px rgba(0, 0, 0, 0.22);
    --surface-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    --radius-lg: 20px;
    --radius-md: 14px;
}

body {
    background:
        radial-gradient(circle at top, rgba(79, 140, 255, 0.1), transparent 34%),
        radial-gradient(circle at 20% 80%, rgba(58, 100, 180, 0.08), transparent 28%),
        linear-gradient(180deg, #07101d 0%, #050a14 48%, #03070f 100%);
    background-attachment: scroll;
}

body::after {
    opacity: 0.22;
    background-size: 100% 3px;
}

.navbar {
    background: rgba(6, 12, 22, 0.86);
    border-bottom: 1px solid rgba(126, 166, 255, 0.12);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.navbar.scrolled {
    background: rgba(4, 9, 18, 0.94);
    border-bottom-color: rgba(126, 166, 255, 0.18);
}

.nav-container {
    justify-content: space-between;
    gap: 20px;
}

.nav-logo {
    margin-right: 0;
    gap: 12px;
}

.nav-logo span {
    display: inline-block;
    font-family: 'VT323', monospace;
    font-size: 1.9rem;
    letter-spacing: 1px;
    color: var(--text-white);
}

.nav-menu {
    gap: 10px;
}

.nav-link {
    padding: 11px 16px;
    font-size: 1.2rem;
    color: var(--text-gray);
    border: 1px solid transparent;
    border-radius: 10px;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(79, 140, 255, 0.08);
    border-color: rgba(126, 166, 255, 0.16);
}

.nav-link.active {
    color: var(--text-white);
    box-shadow: inset 0 -2px 0 rgba(79, 140, 255, 0.45);
}

.nav-toggle {
    border: 1px solid rgba(126, 166, 255, 0.14);
    background: rgba(9, 17, 31, 0.72);
}

.hero {
    min-height: 100svh;
    padding: 100px 20px 56px;
}

.hero-bg {
    background:
        radial-gradient(circle at 50% 12%, rgba(79, 140, 255, 0.16), transparent 28%),
        linear-gradient(180deg, rgba(6, 12, 24, 0.8), rgba(4, 8, 16, 0.92)),
        linear-gradient(135deg, #07111f 0%, #040913 55%, #03060d 100%);
    animation-duration: 36s;
}

.hero-bg::before {
    opacity: 0.22;
}

.stars {
    opacity: 0.18;
}

.hero-banner {
    opacity: 0.2;
    mix-blend-mode: screen;
    filter: saturate(0.75) contrast(1.05);
}

.hero-overlay {
    background:
        radial-gradient(circle at center, rgba(5, 11, 22, 0.12) 0%, rgba(4, 8, 16, 0.68) 58%, rgba(2, 5, 10, 0.92) 100%),
        linear-gradient(180deg, rgba(3, 7, 14, 0.18), rgba(3, 7, 14, 0.84));
}

.hero-content {
    max-width: 760px;
    padding: 36px 28px 32px;
    background: linear-gradient(180deg, rgba(9, 17, 31, 0.66), rgba(7, 13, 24, 0.34));
    border: 1px solid rgba(126, 166, 255, 0.08);
    border-radius: 28px;
    box-shadow: var(--surface-shadow), var(--surface-highlight);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    isolation: isolate;
    clip-path: inset(0 round 28px);
    background-clip: padding-box;
}

.hero-logo-container {
    margin-bottom: 14px;
}

.hero-logo {
    max-width: 120px;
    filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.38));
}

.hero-title {
    font-size: clamp(3.5rem, 7vw, 5.5rem);
    letter-spacing: 2px;
    text-shadow:
        0 4px 0 rgba(36, 81, 184, 0.95),
        0 12px 24px rgba(0, 0, 0, 0.34);
    margin-bottom: 10px;
}

.hero-subtitle {
    margin-bottom: 26px;
    font-size: clamp(1.45rem, 2.4vw, 1.9rem);
    color: #edf3ff;
}

.stats-band {
    position: relative;
    z-index: 5;
    padding: 26px 0 20px;
    overflow: clip;
}

.hero-stats-marquee {
    width: 100%;
    max-width: min(100%, 980px);
    margin: 0;
    margin-inline: auto;
    padding-inline: 24px;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.hero-stats-left,
.hero-stats-right {
    display: none !important;
}

.hero-stats-track {
    display: flex;
    gap: 18px;
    width: max-content;
    will-change: transform;
    padding: 6px 0 10px;
    transform: translate3d(0, 0, 0);
}

.hero-stats-marquee.scroll-linked-rail .hero-stats-track {
    animation: none !important;
    transition: none;
}

.hero-stat-card {
    min-width: 228px;
    min-height: 108px;
    padding: 18px 24px 16px;
    background: linear-gradient(180deg, rgba(12, 22, 40, 0.96), rgba(8, 15, 29, 0.88));
    border: 2px solid rgba(126, 166, 255, 0.16);
    border-top-color: rgba(184, 207, 255, 0.32);
    border-bottom-width: 5px;
    border-radius: 14px;
    box-shadow: 0 7px 0 rgba(5, 9, 18, 0.72), 0 14px 26px rgba(0, 0, 0, 0.22);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    text-align: left;
}

.hero-stat-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 44%);
    pointer-events: none;
}

.hero-stat-card-cyan {
    background:
        linear-gradient(180deg, rgba(11, 28, 43, 0.98), rgba(8, 17, 30, 0.9)),
        linear-gradient(135deg, rgba(103, 232, 249, 0.22), transparent 62%);
    border-color: rgba(103, 232, 249, 0.24);
    border-top-color: rgba(173, 244, 255, 0.34);
}

.hero-stat-card-blue {
    background:
        linear-gradient(180deg, rgba(12, 24, 44, 0.98), rgba(8, 15, 29, 0.9)),
        linear-gradient(135deg, rgba(79, 140, 255, 0.22), transparent 62%);
    border-color: rgba(79, 140, 255, 0.24);
    border-top-color: rgba(161, 196, 255, 0.34);
}

.hero-stat-card-violet {
    background:
        linear-gradient(180deg, rgba(22, 18, 45, 0.98), rgba(10, 13, 30, 0.9)),
        linear-gradient(135deg, rgba(192, 132, 252, 0.22), transparent 62%);
    border-color: rgba(192, 132, 252, 0.24);
    border-top-color: rgba(223, 192, 255, 0.34);
}

.hero-stat-card-green {
    background:
        linear-gradient(180deg, rgba(10, 28, 32, 0.98), rgba(7, 17, 24, 0.9)),
        linear-gradient(135deg, rgba(134, 239, 172, 0.18), transparent 62%);
    border-color: rgba(134, 239, 172, 0.24);
    border-top-color: rgba(194, 255, 214, 0.34);
}

.hero-stat-icon {
    margin-bottom: 0;
    flex-shrink: 0;
    width: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
}

.hero-stat-icon i {
    text-shadow: 0 0 14px currentColor;
}

.hero-stat-card-cyan .hero-stat-icon {
    color: #67e8f9;
}

.hero-stat-card-blue .hero-stat-icon {
    color: #60a5fa;
}

.hero-stat-card-violet .hero-stat-icon {
    color: #c084fc;
}

.hero-stat-card-green .hero-stat-icon {
    color: #86efac;
}

.hero-stat-copy {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
    flex: 1;
    text-align: left;
}

.hero-stat-value {
    font-size: 2rem;
    line-height: 1;
    display: block;
    width: 100%;
    text-align: left;
}

.hero-stat-label {
    color: var(--text-muted);
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    display: block;
    width: 100%;
    text-align: left;
}

@keyframes heroStatsRail {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-50% - 9px));
    }
}

.server-info-box {
    gap: 18px;
    margin-bottom: 26px;
}

.ip-box,
.status-box {
    min-width: 180px;
    padding: 18px 24px;
    background: linear-gradient(180deg, rgba(16, 28, 48, 0.92), rgba(10, 18, 32, 0.9));
    border: 2px solid rgba(113, 136, 174, 0.85);
    border-bottom-width: 5px;
    border-top-color: rgba(162, 183, 220, 0.92);
    box-shadow: 0 8px 0 rgba(5, 9, 18, 0.72), 0 22px 42px rgba(0, 0, 0, 0.26);
}

.ip-box:hover,
.status-box:hover {
    transform: translateY(-2px);
}

.ip-label,
.player-label {
    color: var(--text-muted);
    letter-spacing: 0.16em;
}

.ip-address,
.player-count {
    font-size: clamp(2rem, 3vw, 2.4rem);
}

.status-text {
    font-size: 1rem;
}

.gamemodes-bar {
    gap: 12px;
    margin-bottom: 30px;
}

.gamemode-item {
    min-width: 128px;
    justify-content: center;
    padding: 11px 16px;
    background: linear-gradient(180deg, rgba(13, 23, 40, 0.9), rgba(8, 14, 26, 0.88));
    border-color: rgba(126, 166, 255, 0.14);
    border-bottom-width: 5px;
    color: #d8e3f8;
    box-shadow: 0 6px 0 rgba(5, 9, 18, 0.7);
}

.gamemode-item:hover {
    filter: none;
}

.hero-buttons {
    gap: 14px;
}

.mc-btn {
    min-height: 58px;
    justify-content: center;
    padding: 14px 26px;
    border-radius: 8px;
    font-size: 1.35rem;
    letter-spacing: 0.08em;
}

.mc-btn-primary {
    background: linear-gradient(180deg, #63a1ff 0%, #3778ea 100%);
    border-color: #2d64ce;
    border-top-color: #95beff;
    box-shadow: 0 6px 0 #224ea7, 0 18px 34px rgba(16, 41, 92, 0.34);
}

.mc-btn-primary:hover {
    background: linear-gradient(180deg, #76adff 0%, #4483f0 100%);
    box-shadow: 0 8px 0 #224ea7, 0 20px 36px rgba(16, 41, 92, 0.38);
}

.mc-btn-secondary {
    background: linear-gradient(180deg, #27364e 0%, #1a2639 100%);
    border-color: #223147;
    border-top-color: #5b6c86;
    color: #dce8ff;
    text-shadow: 2px 2px 0 #101726;
    box-shadow: 0 6px 0 #101726, 0 18px 34px rgba(0, 0, 0, 0.28);
}

.mc-btn-secondary:hover {
    background: linear-gradient(180deg, #314462 0%, #223147 100%);
    color: #fff;
    box-shadow: 0 8px 0 #101726, 0 20px 36px rgba(0, 0, 0, 0.3);
}

.discord-btn {
    min-width: 220px;
}

.news-spotlight-section,
.guide-section,
.partners-section,
.about-section {
    padding-top: 88px;
    padding-bottom: 88px;
}

.container {
    max-width: 1180px;
    padding: 0 24px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 20px;
    letter-spacing: 0.03em;
    text-shadow: 0 3px 0 rgba(36, 81, 184, 0.8), 0 10px 22px rgba(0, 0, 0, 0.24);
}

.guide-subtitle,
.page-header p,
.partners-subtitle,
.section-subtitle {
    color: var(--text-gray);
}

.section-subtitle {
    max-width: 620px;
    margin-top: -8px;
    font-size: 1rem;
    line-height: 1.7;
}

.about-content,
.announcement-card,
.staff-card,
.news-slider-wrapper,
.apply-container {
    background: linear-gradient(180deg, rgba(10, 18, 34, 0.94), rgba(7, 13, 24, 0.9));
    border: 1px solid rgba(126, 166, 255, 0.12);
    border-radius: var(--radius-lg);
    box-shadow: var(--surface-shadow-soft), var(--surface-highlight);
}

.about-content {
    padding: 34px 36px;
}

.about-content p,
.announcement-content,
.guide-step-desc,
.footer-brand-desc,
.page-header p {
    color: var(--text-gray);
}

.guide-steps {
    gap: 18px;
}

.guide-steps::before,
.guide-steps::after {
    display: block;
}

.guide-step {
    padding: 34px 18px 22px;
    border-width: 6px;
    border-color: #7a7a7a #343434 #2e2e2e #666666;
    border-radius: 0;
    background: linear-gradient(180deg, #5d5d5d 0%, #4f4f4f 100%);
    box-shadow: 8px 8px 0 #252525;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100%;
}

.guide-step:hover {
    filter: brightness(1.04);
    transform: translateY(-2px);
    box-shadow: 10px 10px 0 #222222;
}

.guide-step:active {
    transform: translateY(5px) translateX(5px);
    border-color: #3a3a3a #6a6a6a #6a6a6a #3a3a3a;
    box-shadow: 0 0 0 #222222;
}

.guide-step-icon {
    background: linear-gradient(180deg, #6f6f6f 0%, #575757 100%);
    border: 4px solid;
    border-color: #4c4c4c #2f2f2f #2a2a2a #525252;
    border-radius: 0;
    box-shadow: 5px 5px 0 #2d2d2d;
}

.guide-step-number {
    border-radius: 0;
    box-shadow: 4px 4px 0 #173a8c;
}

.news-slider-wrapper {
    border-color: rgba(126, 166, 255, 0.12);
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.news-slide-overlay {
    background: linear-gradient(to top, rgba(4, 8, 16, 0.95) 0%, rgba(4, 8, 16, 0.72) 42%, rgba(4, 8, 16, 0.24) 100%);
}

.news-slide-content {
    max-width: 720px;
    padding: 46px 52px;
}

.news-slide-badge {
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 18px rgba(36, 81, 184, 0.18);
}

.news-slide-title {
    font-size: clamp(2rem, 4vw, 3rem);
    max-width: 14ch;
}

.news-slide-excerpt {
    max-width: 58ch;
}

.footer {
    border-top: 1px solid rgba(126, 166, 255, 0.12);
    background: linear-gradient(180deg, rgba(5, 10, 18, 0.34), rgba(4, 7, 13, 0.88));
}

.footer-ip-box,
.footer-links li a,
.footer-social-btn {
    border-radius: 12px;
}

.footer-brand-desc {
    max-width: 42ch;
}

.footer-links li a {
    padding: 7px 10px;
    border-radius: 10px;
}

.footer-links li a:hover {
    background: rgba(79, 140, 255, 0.06);
}

.footer-social-btn {
    background: rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.footer-bottom-bar {
    background: rgba(255, 255, 255, 0.02);
}

.page-content {
    max-width: 1120px;
}

.page-header {
    margin-bottom: 50px;
}

.page-header h1 {
    font-size: clamp(2.2rem, 4vw, 3.1rem);
}

@media (max-width: 1024px) {
    .nav-logo span {
        display: none;
    }

    .hero {
        padding-top: 92px;
    }

    .hero-content {
        padding: 28px 20px 26px;
        border-radius: 24px;
    }

    .guide-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 768px) {
    body {
        background-attachment: scroll;
    }

    .floating-orbs,
    .comet-container {
        display: none;
    }

    .hero,
    .news-spotlight-section,
    .guide-section,
    .latest-news-section,
    .about-section,
    .partners-section {
        overflow-x: clip;
    }

    .navbar {
        background: rgba(5, 10, 18, 0.95);
    }

    .nav-menu {
        width: min(320px, 84vw);
        background: rgba(5, 10, 18, 0.97);
        border-left: 1px solid rgba(126, 166, 255, 0.12);
        box-shadow: -18px 0 34px rgba(0, 0, 0, 0.28);
    }

    .hero {
        padding: 88px 0 32px;
    }

    .hero-content {
        padding: 20px 14px 18px;
        border-radius: 18px;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: linear-gradient(180deg, rgba(8, 14, 26, 0.9), rgba(6, 11, 20, 0.78));
    }

    .hero-title {
        font-size: 2.55rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 18px;
    }

    .hero-stats-marquee {
        overflow: visible;
        mask-image: none;
        -webkit-mask-image: none;
        display: flex;
        justify-content: center;
    }

    .hero-stats-track {
        width: min(100%, 420px);
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        animation: none;
        margin: 0 auto;
        padding: 0;
    }

    .hero-stat-card {
        width: 100%;
        min-width: 100%;
        min-height: 84px;
        padding: 13px 16px 11px;
        border-radius: 14px;
        gap: 0;
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr);
        column-gap: 14px;
        justify-content: stretch;
        text-align: left;
    }

    .hero-stat-icon {
        width: 44px;
        min-width: 44px;
        font-size: 1.35rem;
        grid-column: 1;
    }

    .hero-stat-copy {
        align-items: flex-start;
        text-align: left;
        flex: 1;
        grid-column: 2;
    }

    .hero-stat-value,
    .hero-stat-label {
        text-align: left;
    }

    .hero-stats-track .hero-stat-card:nth-child(n+5) {
        display: none;
    }

    .hero-stat-value {
        font-size: 1.55rem;
    }

    .hero-stat-label {
        font-size: 0.74rem;
    }

    .ip-box,
    .status-box {
        width: 100%;
        max-width: 420px;
        min-width: 0;
        padding: 14px 16px;
        box-shadow: 0 6px 0 rgba(5, 9, 18, 0.72), 0 14px 26px rgba(0, 0, 0, 0.22);
        transition: background-color 0.12s ease, border-color 0.12s ease;
    }

    .ip-box:hover,
    .ip-box:active,
    .status-box:hover,
    .status-box:active {
        transform: none;
        box-shadow: 0 6px 0 rgba(5, 9, 18, 0.72), 0 14px 26px rgba(0, 0, 0, 0.22);
    }

    .gamemodes-bar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        max-width: 420px;
    }

    .gamemode-item {
        min-width: 0;
        width: 100%;
        padding: 10px 12px;
    }

    .hero-buttons {
        width: 100%;
        max-width: 420px;
        flex-direction: column;
        gap: 12px;
    }

    .mc-btn {
        width: 100%;
        max-width: none;
    }

    .news-spotlight-section,
    .guide-section,
    .partners-section,
    .about-section {
        padding-top: 68px;
        padding-bottom: 68px;
    }

    .guide-steps {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .guide-steps::before,
    .guide-steps::after {
        display: none !important;
    }

    .guide-step {
        width: 100%;
        max-width: 420px;
        min-height: 0;
        margin: 0 auto;
        padding: 28px 16px 20px;
        box-shadow: 6px 6px 0 #252525 !important;
    }

    .guide-step:hover,
    .guide-step:active {
        transform: none;
        filter: none;
        box-shadow: 6px 6px 0 #252525 !important;
    }

    .guide-step-icon {
        width: 68px;
        height: 68px;
        margin: 2px auto 16px;
    }

    .guide-step-title {
        font-size: 1.45rem;
        line-height: 1.05;
        max-width: 100%;
        text-align: center;
    }

    .guide-step-desc {
        max-width: 24ch;
        margin-bottom: 0;
        text-align: center;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .container {
        padding: 0 14px;
    }

    .stats-band {
        padding: 8px 0 0;
    }

    .news-slider-wrapper,
    .about-content,
    .staff-card,
    .announcement-card {
        border-radius: 16px;
    }

    .news-slide-content {
        padding: 26px 22px 58px;
    }

    .news-slide-title {
        max-width: none;
    }

    .section-subtitle {
        margin-top: -2px;
        font-size: 0.94rem;
    }

    .footer-top {
        padding: 36px 0 26px;
    }

    .footer-brand-desc {
        max-width: none;
    }
}

@media (max-width: 768px) {
    .copy-toast {
        bottom: 18px;
        padding: 10px 22px;
        font-size: 1.05rem;
        border-width: 2px;
        transition: opacity 0.12s ease;
        transform: translateX(-50%);
    }

    .copy-toast.show {
        transform: translateX(-50%);
        z-index: 10001;
    }

    .copy-toast.toast-lite {
        transition: opacity 0.1s linear;
    }
}

@media (max-width: 520px) {
    .hero-content {
        padding: 20px 12px 18px;
    }

    .hero-logo {
        max-width: 96px;
    }

    .gamemodes-bar {
        grid-template-columns: 1fr;
    }

    .hero-stats-track {
        width: 100%;
        margin-top: 0;
    }

    .hero-stat-card {
        min-height: 82px;
        padding: 12px 14px 10px;
    }

    .section-title {
        font-size: 1.9rem;
    }

    .news-slider-wrapper {
        height: 320px;
    }

    .footer-top .footer-container {
        gap: 24px;
    }
}

body.performance-mode::after,
body.performance-mode .hero-bg::before,
body.performance-mode .stars,
body.performance-mode .floating-orbs,
body.performance-mode .comet-container {
    display: none !important;
}

body.performance-mode .preloader {
    display: none !important;
}

body.performance-mode .hero-content,
body.performance-mode .news-slider-wrapper,
body.performance-mode .about-content,
body.performance-mode .staff-card,
body.performance-mode .announcement-card,
body.performance-mode .apply-container,
body.performance-mode .guide-step,
body.performance-mode .footer-ip-box {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18) !important;
}

body.performance-mode .hero-banner,
body.performance-mode .status-dot {
    animation: none !important;
}

body.performance-mode .hero::before,
body.performance-mode .nav-link::after,
body.performance-mode .ip-box::before,
body.performance-mode .status-box::before,
body.performance-mode .mc-btn::before,
body.performance-mode .mc-btn::after,
body.performance-mode .hero-stat-card::before,
body.performance-mode .guide-step::before,
body.performance-mode .partner-item::before,
body.performance-mode .spotlight-card::before,
body.performance-mode .latest-news-card::before,
body.performance-mode .hero-title::after {
    display: none !important;
}

body.performance-mode .hero-stats-track {
    animation: none !important;
}

body.performance-mode .ip-box,
body.performance-mode .ip-box:hover,
body.performance-mode .ip-box:active,
body.performance-mode .status-box,
body.performance-mode .status-box:hover,
body.performance-mode .status-box:active {
    transform: none !important;
    transition: background-color 0.1s linear, border-color 0.1s linear !important;
    box-shadow: 0 6px 0 rgba(5, 9, 18, 0.58), 0 12px 22px rgba(0, 0, 0, 0.16) !important;
}

body.performance-mode .copy-toast,
body.performance-mode .copy-toast.show {
    transform: translateX(-50%) !important;
    transition: opacity 0.1s linear !important;
}

body.performance-mode .guide-step-btn,
body.performance-mode .guide-step-btn:hover,
body.performance-mode .guide-step-btn:active {
    transform: none !important;
    box-shadow: 0 4px 0 rgba(7, 12, 20, 0.78) !important;
}

body:not(.performance-mode) .hero-stat-card,
body:not(.performance-mode) .gamemode-item,
body:not(.performance-mode) .guide-step,
body:not(.performance-mode) .partner-item,
body:not(.performance-mode) .latest-news-card,
body:not(.performance-mode) .spotlight-card,
body:not(.performance-mode) .news-slide,
body:not(.performance-mode) .staff-card {
    position: relative;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

body:not(.performance-mode) .hero-stat-card::after,
body:not(.performance-mode) .gamemode-item::after,
body:not(.performance-mode) .guide-step::after,
body:not(.performance-mode) .partner-item::after,
body:not(.performance-mode) .latest-news-card::after,
body:not(.performance-mode) .spotlight-card::after,
body:not(.performance-mode) .news-slide::after,
body:not(.performance-mode) .staff-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 30%);
    opacity: 0;
    transition: opacity 0.18s ease;
    pointer-events: none;
}

body:not(.performance-mode) .hero-stat-card:hover,
body:not(.performance-mode) .gamemode-item:hover,
body:not(.performance-mode) .guide-step:hover,
body:not(.performance-mode) .partner-item:hover,
body:not(.performance-mode) .latest-news-card:hover,
body:not(.performance-mode) .spotlight-card:hover,
body:not(.performance-mode) .news-slide:hover,
body:not(.performance-mode) .staff-card:hover {
    transform: translateY(-2px);
}

body:not(.performance-mode) .hero-stat-card:hover::after,
body:not(.performance-mode) .gamemode-item:hover::after,
body:not(.performance-mode) .guide-step:hover::after,
body:not(.performance-mode) .partner-item:hover::after,
body:not(.performance-mode) .latest-news-card:hover::after,
body:not(.performance-mode) .spotlight-card:hover::after,
body:not(.performance-mode) .news-slide:hover::after,
body:not(.performance-mode) .staff-card:hover::after,
body:not(.performance-mode) .hero-stat-card:focus-visible::after,
body:not(.performance-mode) .gamemode-item:focus-visible::after,
body:not(.performance-mode) .guide-step:focus-visible::after,
body:not(.performance-mode) .partner-item:focus-visible::after,
body:not(.performance-mode) .latest-news-card:focus-visible::after,
body:not(.performance-mode) .spotlight-card:focus-visible::after,
body:not(.performance-mode) .news-slide:focus-visible::after,
body:not(.performance-mode) .staff-card:focus-visible::after {
    opacity: 1;
}

body:not(.performance-mode) .hero-stat-card:focus-visible,
body:not(.performance-mode) .gamemode-item:focus-visible,
body:not(.performance-mode) .guide-step:focus-visible,
body:not(.performance-mode) .partner-item:focus-visible,
body:not(.performance-mode) .latest-news-card:focus-visible,
body:not(.performance-mode) .spotlight-card:focus-visible,
body:not(.performance-mode) .news-slide:focus-visible,
body:not(.performance-mode) .staff-card:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 161, 255, 0.16);
}

/* Staff page cleanup: Minecraft premium roster styling. */
.staff-page {
    max-width: 1180px;
    padding-top: 126px;
    padding-bottom: 76px;
}

.staff-page .page-header {
    max-width: 760px;
    margin: 0 auto 38px;
    text-align: center;
}

.staff-page .page-header h1 {
    justify-content: center;
    gap: 12px;
    color: #eef4ff;
    text-shadow: 0 3px 0 rgba(22, 50, 112, 0.92), 0 10px 18px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.03em;
}

.staff-page .page-header h1 i {
    color: #8ec5ff;
    opacity: 1;
}

.staff-page .page-header .landing-feature-title {
    gap: 0.34em;
}

.staff-page .page-header p {
    max-width: 42ch;
    margin: 0 auto;
    font-size: 0.95rem;
    line-height: 1.65;
    color: #a5b7d7;
}

.staff-page .staff-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    align-items: stretch;
}

.staff-page .staff-card {
    padding: 16px 16px 18px;
    border: 3px solid;
    border-color: #7488a7 #1a2434 #152031 #657796;
    border-radius: 0;
    background:
        linear-gradient(180deg, rgba(63, 75, 94, 0.98), rgba(45, 56, 73, 0.98) 28%, rgba(28, 36, 51, 0.98) 28%, rgba(21, 29, 42, 0.98) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 8px 0 rgba(8, 12, 20, 0.82),
        0 18px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.staff-page .staff-card:hover {
    transform: translateY(-3px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 10px 0 rgba(8, 12, 20, 0.82),
        0 22px 34px rgba(0, 0, 0, 0.24);
}

.staff-page .staff-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 26%);
    opacity: 0;
    transition: opacity 0.18s ease;
    pointer-events: none;
}

.staff-page .staff-card:hover::before,
.staff-page .staff-card:focus-visible::before {
    opacity: 1;
}

.staff-page .staff-card:focus-visible {
    outline: none;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 8px 0 rgba(8, 12, 20, 0.82),
        0 0 0 3px rgba(124, 177, 255, 0.24),
        0 18px 30px rgba(0, 0, 0, 0.2);
}

.staff-page .staff-avatar {
    width: 88px;
    height: 88px;
    margin: 0;
    border-radius: 0;
    border: 3px solid;
    border-color: #8da1c0 #223246 #172233 #7388a8;
    background: rgba(7, 12, 20, 0.8);
    box-shadow: 0 6px 0 rgba(8, 12, 20, 0.66);
}

.staff-page .staff-avatar img {
    transition: transform 0.18s ease;
}

.staff-page .staff-card:hover .staff-avatar img {
    transform: translateY(-2px) scale(1.04);
}

.staff-page .staff-name {
    margin-bottom: 0;
    font-size: 1.55rem;
    letter-spacing: 0.03em;
    line-height: 1.05;
    text-shadow: 0 2px 0 rgba(9, 14, 22, 0.72);
}

.staff-page .staff-role {
    min-width: 0;
    width: 100%;
    justify-content: center;
    padding: 10px 14px;
    font-size: 1rem;
    border-width: 2px;
    border-bottom-width: 5px;
    border-radius: 0;
    box-shadow: 0 4px 0 rgba(7, 10, 17, 0.55);
    pointer-events: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.staff-page .staff-card:hover .staff-role,
.staff-page .staff-card:focus-visible .staff-role {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 rgba(7, 10, 17, 0.55);
}

.staff-page .staff-card[data-role="Owner"] {
    border-top-color: #9dedf7;
}

.staff-page .staff-card[data-role="Executive"] {
    border-top-color: #d8b2ff;
}

.staff-page .staff-card[data-role="Manager"] {
    border-top-color: #ffb8d4;
}

.staff-page .staff-card[data-role="Senior Administrator"] {
    border-top-color: #ffb0b0;
}

.staff-page .staff-card[data-role="Administrator"] {
    border-top-color: #ffc489;
}

.staff-page .staff-card[data-role="Developer"] {
    border-top-color: #ff87e9;
}

.staff-page .staff-card[data-role="Senior Moderator"] {
    border-top-color: #d8c0ff;
}

.staff-page .staff-card[data-role="Moderator"] {
    border-top-color: #abd2ff;
}

.staff-page .staff-card[data-role="Helper"] {
    border-top-color: #ffe66a;
}

/* Staff cards: cleaner ranks, richer color */
.staff-page .staff-card {
    --staff-accent: #62e6ff;
    --staff-accent-2: #2f7bff;
    --staff-shadow: rgba(47, 123, 255, 0.26);
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--staff-accent) 24%, #586b8a 76%) 0%, color-mix(in srgb, var(--staff-accent-2) 14%, #35435b 86%) 27%, rgba(24, 33, 49, 0.98) 27%, rgba(14, 22, 36, 0.99) 100%),
        radial-gradient(circle at 50% -12%, color-mix(in srgb, var(--staff-accent) 32%, transparent), transparent 46%);
    border-color:
        color-mix(in srgb, var(--staff-accent) 82%, #ffffff 18%)
        #1b2638
        #111827
        color-mix(in srgb, var(--staff-accent-2) 68%, #9fbaff 32%);
}

.staff-page .staff-card:hover,
.staff-page .staff-card:focus-visible {
    border-color:
        color-mix(in srgb, var(--staff-accent) 92%, #ffffff 8%)
        color-mix(in srgb, var(--staff-accent-2) 72%, #111827 28%)
        #111827
        color-mix(in srgb, var(--staff-accent) 62%, #c9e6ff 38%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 10px 0 rgba(8, 12, 20, 0.82),
        0 24px 36px rgba(0, 0, 0, 0.26),
        0 0 28px var(--staff-shadow);
}

.staff-page .staff-card::before {
    background:
        linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.12) 36%, transparent 68%),
        linear-gradient(180deg, color-mix(in srgb, var(--staff-accent) 12%, transparent), transparent 32%);
    transform: translateX(-36%);
    opacity: 0;
    transition: opacity 0.18s ease, transform 0.32s ease;
}

.staff-page .staff-card:hover::before,
.staff-page .staff-card:focus-visible::before {
    transform: translateX(36%);
    opacity: 1;
}

.staff-page .staff-role {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 38px;
    padding: 10px 16px 9px;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--staff-accent) 88%, #ffffff 12%) 0%, var(--staff-accent-2) 100%);
    border-color:
        color-mix(in srgb, var(--staff-accent) 82%, #ffffff 18%)
        color-mix(in srgb, var(--staff-accent-2) 72%, #111827 28%)
        color-mix(in srgb, var(--staff-accent-2) 55%, #05070a 45%)
        color-mix(in srgb, var(--staff-accent) 62%, #ffffff 38%);
    color: #ffffff;
    font-size: 1.08rem;
    line-height: 1;
    letter-spacing: 0.08em;
    text-shadow: 1px 1px 0 rgba(6, 10, 18, 0.46);
}

.staff-page .staff-role::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 12%, rgba(255, 255, 255, 0.24) 42%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 0.28s ease;
    pointer-events: none;
}

.staff-page .staff-card:hover .staff-role::after,
.staff-page .staff-card:focus-visible .staff-role::after {
    transform: translateX(120%);
}

.staff-page .staff-card[data-role="Owner"] {
    --staff-accent: #5bf0ff;
    --staff-accent-2: #0097b8;
    --staff-shadow: rgba(29, 219, 255, 0.28);
}

.staff-page .staff-card[data-role="Executive"] {
    --staff-accent: #d7a7ff;
    --staff-accent-2: #7c3aed;
    --staff-shadow: rgba(167, 101, 255, 0.28);
}

.staff-page .staff-card[data-role="Manager"] {
    --staff-accent: #ff74be;
    --staff-accent-2: #d31670;
    --staff-shadow: rgba(255, 79, 166, 0.28);
}

.staff-page .staff-card[data-role="Senior Administrator"] {
    --staff-accent: #ff8b8b;
    --staff-accent-2: #e23b3b;
    --staff-shadow: rgba(255, 86, 86, 0.26);
}

.staff-page .staff-card[data-role="Administrator"] {
    --staff-accent: #ffb86b;
    --staff-accent-2: #ea7600;
    --staff-shadow: rgba(255, 154, 63, 0.25);
}

.staff-page .staff-card[data-role="Developer"] {
    --staff-accent: #ff8ff7;
    --staff-accent-2: #d936c9;
    --staff-shadow: rgba(255, 63, 207, 0.28);
}

.staff-page .staff-card[data-role="Senior Moderator"] {
    --staff-accent: #c084fc;
    --staff-accent-2: #8428e8;
    --staff-shadow: rgba(168, 85, 247, 0.28);
}

.staff-page .staff-card[data-role="Moderator"] {
    --staff-accent: #75a7ff;
    --staff-accent-2: #225be8;
    --staff-shadow: rgba(59, 130, 246, 0.27);
}

.staff-page .staff-card[data-role="Helper"] {
    --staff-accent: #ffe56a;
    --staff-accent-2: #c78300;
    --staff-shadow: rgba(251, 191, 36, 0.25);
}

/* Premium motion and effects pass */
:root {
    --premium-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --premium-shadow: 0 24px 58px rgba(2, 6, 23, 0.24);
    --premium-border: rgba(148, 163, 184, 0.16);
}

.navbar {
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.nav-link {
    position: relative;
    overflow: hidden;
    transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s var(--premium-ease);
}

.nav-link:hover,
.nav-link:focus-visible {
    transform: translateY(-1px);
}

.nav-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 22%, rgba(255, 255, 255, 0.14) 50%, transparent 78%);
    transform: translateX(-140%) skewX(-18deg);
    opacity: 0;
    pointer-events: none;
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
    animation: premiumSweep 0.9s var(--premium-ease);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 0%, rgba(96, 165, 250, 0.12), transparent 34%),
        linear-gradient(90deg, transparent 0%, rgba(125, 211, 252, 0.06) 48%, transparent 100%);
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: 0.9;
}

.hero-content {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--premium-border);
    box-shadow: var(--premium-shadow);
}

.hero-content::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 26%);
    pointer-events: none;
}

.hero-logo {
    animation: premiumFloat 5.8s ease-in-out infinite;
}

.hero-title::after {
    content: "";
    display: block;
    width: min(220px, 42%);
    height: 4px;
    margin: 18px auto 0;
    background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.92), transparent);
    background-size: 200% 100%;
    animation: premiumEdgeShift 5.2s ease-in-out infinite;
    border-radius: 999px;
    box-shadow: 0 0 18px rgba(96, 165, 250, 0.24);
}

.ip-box,
.status-box,
.mc-btn,
.hero-stat-card,
.guide-step,
.partner-item,
.spotlight-card,
.latest-news-card,
.about-content,
.announcement-card,
.staff-card,
.apply-container {
    position: relative;
    overflow: hidden;
}

.ip-box,
.status-box,
.mc-btn {
    transition: transform 0.18s var(--premium-ease), border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.status-box:hover {
    transform: translateY(-2px);
    border-color: var(--mc-blue-light);
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.4);
    background: rgba(22, 37, 62, 0.94);
}

.status-dot {
    animation: statusBlink 1.5s ease-in-out infinite, premiumGlowPulse 2.8s ease-in-out infinite;
}

.ip-box::before,
.status-box::before,
.mc-btn::before,
.hero-stat-card::before,
.guide-step::before,
.partner-item::before,
.spotlight-card::before,
.latest-news-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 24%, rgba(255, 255, 255, 0.12) 50%, transparent 76%);
    transform: translateX(-140%) skewX(-18deg);
    opacity: 0;
    pointer-events: none;
}

.ip-box:hover::before,
.status-box:hover::before,
.mc-btn:hover::before,
.hero-stat-card:hover::before,
.guide-step:hover::before,
.partner-item:hover::before,
.spotlight-card:hover::before,
.latest-news-card:hover::before {
    animation: premiumSweep 1s var(--premium-ease);
}

.news-slider-wrapper {
    position: relative;
}

.news-slider-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.04);
    pointer-events: none;
    z-index: 2;
}

.about-content::before,
.announcement-card::before,
.staff-card::before,
.apply-container::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 22%);
    pointer-events: none;
}

.staff-page .staff-card::before {
    background:
        linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.12) 36%, transparent 68%),
        linear-gradient(180deg, color-mix(in srgb, var(--staff-accent) 12%, transparent), transparent 32%);
}

@media (max-width: 768px) {
    .staff-page {
        padding-top: 92px;
        padding-bottom: 40px;
    }

    .staff-page .page-header {
        margin-bottom: 24px;
        text-align: center;
    }

    .staff-page .page-header h1 {
        justify-content: center;
    }

    .staff-page .page-header p {
        margin: 0 auto;
    }

    .staff-page .staff-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .staff-page .staff-card {
        padding: 14px 12px 16px;
        gap: 12px;
    }

    .staff-page .staff-card:hover,
    .staff-page .staff-card:focus-visible {
        transform: translateY(-2px);
    }

    .staff-page .staff-avatar {
        width: 62px;
        height: 62px;
        border-width: 2px;
    }

    .staff-page .staff-name {
        font-size: 1.12rem;
    }

    .staff-page .staff-role {
        font-size: 0.82rem;
        padding: 8px 10px;
    }
}

@media (max-width: 520px) {
    .staff-page .staff-grid {
        grid-template-columns: 1fr;
    }

    .staff-page .staff-card {
        max-width: 360px;
        width: 100%;
        margin: 0 auto;
    }
}

body.performance-mode .scroll-reveal,
body.performance-mode .section-fade-up,
body.performance-mode .slide-in-left,
body.performance-mode .slide-in-right {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

.spotlight-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px;
}

.spotlight-card {
    display: grid;
    grid-template-columns: minmax(0, 128px) 1fr;
    gap: 16px;
    align-items: stretch;
    min-height: 132px;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(126, 166, 255, 0.12);
    background: linear-gradient(180deg, rgba(10, 18, 34, 0.94), rgba(7, 13, 24, 0.9));
    color: inherit;
    text-decoration: none;
}

.news-slider-wrapper.news-slider-single .spotlight-card {
    min-height: 0;
    border-radius: 14px;
}

.spotlight-card-featured {
    grid-template-columns: minmax(0, 240px) 1fr;
    min-height: 220px;
}

.spotlight-card-featured.spotlight-card-no-image {
    grid-template-columns: 1fr;
}

.news-slider-wrapper.news-slider-single .spotlight-card-no-image {
    max-width: 720px;
    margin: 0 auto;
}

.news-slider-wrapper.news-slider-single .spotlight-card-no-image .spotlight-card-body {
    justify-content: center;
}

.spotlight-card-featured .spotlight-card-image {
    min-height: 100%;
}

.spotlight-card-image {
    overflow: hidden;
    border-radius: 10px;
    min-height: 100%;
}

.spotlight-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.spotlight-card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.spotlight-card-badge {
    display: inline-flex;
    width: fit-content;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.18);
    color: var(--mc-blue-light);
    font-family: 'VT323', monospace;
    font-size: 1.15rem;
    letter-spacing: 0.04em;
}

.spotlight-card h3 {
    font-size: 1.15rem;
    line-height: 1.2;
    color: var(--text-white);
}

.spotlight-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.spotlight-card-meta {
    margin-top: auto;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    color: var(--text-gray);
    font-size: 0.82rem;
}

@media (max-width: 768px) {
    .spotlight-list {
        padding: 0;
        gap: 12px;
    }

    .spotlight-card {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .spotlight-card-image {
        min-height: 180px;
    }
}

/* Button styles pulled from bbf7906 only. */
.hero#home .hero-buttons {
    gap: 16px;
}

.hero#home .mc-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    min-height: 132px;
    padding: 18px 28px 16px;
    gap: 8px;
    border-radius: 14px;
    font-size: 1.3rem;
    letter-spacing: 0.08em;
    overflow: hidden;
    isolation: isolate;
    text-align: center;
    border-width: 2px;
    border-bottom-width: 6px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, filter 0.18s ease;
}

.hero#home .mc-btn::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 10px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.02) 36%, transparent 60%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 55%);
    opacity: 0.95;
    pointer-events: none;
    z-index: -1;
}

.hero#home .mc-btn::after {
    content: "";
    position: absolute;
    top: -24%;
    left: -58%;
    width: 56%;
    height: 180%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
    transform: rotate(22deg);
    opacity: 0;
    transition: left 0.45s ease, opacity 0.2s ease;
    pointer-events: none;
}

.hero#home .mc-btn:hover::after,
.hero#home .mc-btn:focus-visible::after {
    left: 112%;
    opacity: 1;
}

.hero#home .mc-btn:hover,
.hero#home .mc-btn:focus-visible {
    transform: translateY(-4px) scale(1.01);
    filter: brightness(1.04);
}

.hero#home .mc-btn:active {
    transform: translateY(2px) scale(0.995);
}

.hero#home .mc-btn:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.82);
    outline-offset: 4px;
}

.hero#home .mc-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 0;
    font-size: 1.3rem;
    box-shadow: none;
}

.hero#home .mc-btn-main {
    display: block;
    color: #f8fbff;
    text-shadow: 0 2px 0 rgba(18, 28, 54, 0.55);
}

.hero#home .mc-btn-meta,
.hero#home .discord-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 26px;
    padding: 4px 10px;
    border-radius: 999px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
    background: rgba(5, 10, 20, 0.26);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(235, 243, 255, 0.92);
}

.hero#home .mc-btn-primary {
    color: #ffffff;
    text-shadow: 0 2px 0 rgba(29, 66, 137, 0.7);
    background:
        radial-gradient(circle at 50% 0%, rgba(182, 219, 255, 0.34), transparent 40%),
        linear-gradient(180deg, #85b9ff 0%, #4f8ef6 48%, #2e63d2 100%);
    border-color: #9cc8ff #2858b6 #183a7f #7cb5ff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.26),
        0 8px 0 #1f4695,
        0 22px 36px rgba(17, 49, 115, 0.4),
        0 0 0 1px rgba(121, 180, 255, 0.12);
}

.hero#home .mc-btn-primary .mc-btn-icon {
    color: #dcecff;
    background: transparent;
    border: 0;
}

.hero#home .mc-btn-primary .discord-count-badge {
    background: rgba(7, 29, 74, 0.26);
    border-color: rgba(177, 213, 255, 0.28);
}

.hero#home .mc-btn-primary:hover,
.hero#home .mc-btn-primary:focus-visible {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        0 11px 0 #1f4695,
        0 28px 44px rgba(17, 49, 115, 0.48),
        0 0 24px rgba(98, 159, 255, 0.28);
}

.hero#home .mc-btn-secondary {
    color: #eef4ff;
    text-shadow: 0 2px 0 rgba(18, 26, 44, 0.72);
    background:
        radial-gradient(circle at 50% 0%, rgba(186, 161, 255, 0.18), transparent 38%),
        linear-gradient(180deg, #435471 0%, #273246 54%, #171f2d 100%);
    border-color: #96a8ca #1c2433 #121824 #7487a9;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 8px 0 #111725,
        0 22px 36px rgba(0, 0, 0, 0.34),
        0 0 0 1px rgba(166, 132, 255, 0.08);
}

.hero#home .mc-btn-secondary .mc-btn-icon {
    color: #ece7ff;
    background: transparent;
    border: 0;
}

.hero#home .mc-btn-secondary .mc-btn-meta {
    background: rgba(28, 18, 54, 0.3);
    border-color: rgba(185, 156, 255, 0.22);
    color: rgba(241, 233, 255, 0.92);
}

.hero#home .mc-btn-secondary:hover,
.hero#home .mc-btn-secondary:focus-visible {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 11px 0 #111725,
        0 28px 44px rgba(0, 0, 0, 0.4),
        0 0 24px rgba(152, 117, 255, 0.18);
}

.hero#home .discord-btn {
    min-width: 244px;
}

.hero#home .store-btn {
    min-width: 228px;
}

@media (prefers-reduced-motion: reduce) {
    .hero#home .mc-btn::after {
        display: none;
    }

    .hero#home .mc-btn,
    .hero#home .mc-btn:hover,
    .hero#home .mc-btn:focus-visible,
    .hero#home .mc-btn:active {
        transform: none;
    }
}

.hero#home .gamemodes-bar {
    gap: 14px;
}

.hero#home .gamemode-item {
    position: relative;
    overflow: hidden;
    min-width: 0;
    padding: 14px 16px;
    justify-content: center;
    text-align: center;
    border-radius: 10px;
    border-width: 2px;
    border-bottom-width: 5px;
    font-family: 'VT323', monospace;
    font-size: 1.15rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-shadow: 1px 1px 0 rgba(7, 10, 18, 0.55);
    transition: transform 0.12s ease, filter 0.12s ease, box-shadow 0.12s ease;
}

.hero#home .gamemode-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 42%);
    pointer-events: none;
}

.hero#home .gamemode-item:hover {
    transform: translateY(-3px);
    filter: brightness(1.05);
}

.hero#home .gamemode-item:active {
    transform: translateY(2px);
}

.hero#home .gamemode-item:nth-child(1) {
    color: #d7fbff;
    background: linear-gradient(180deg, rgba(45, 127, 151, 0.96), rgba(23, 85, 110, 0.96));
    border-color: #8ff1ff #1c627a #134b5c #6cdcea;
    box-shadow: 0 7px 0 #103f4d, 0 18px 26px rgba(12, 70, 88, 0.28);
}

.hero#home .gamemode-item:nth-child(1) i {
    color: #8df3ff;
}

.hero#home .gamemode-item:nth-child(2) {
    color: #ffe6ca;
    background: linear-gradient(180deg, rgba(193, 111, 40, 0.98), rgba(141, 68, 20, 0.96));
    border-color: #ffc17a #8f470f #6f3309 #f0a85f;
    box-shadow: 0 7px 0 #5c2808, 0 18px 26px rgba(110, 55, 16, 0.28);
}

.hero#home .gamemode-item:nth-child(2) i {
    color: #ffc66d;
}

.hero#home .gamemode-item:nth-child(3) {
    color: #efe1ff;
    background: linear-gradient(180deg, rgba(134, 88, 194, 0.98), rgba(86, 50, 148, 0.96));
    border-color: #d7b3ff #5c3394 #45236f #b184f0;
    box-shadow: 0 7px 0 #3c1e63, 0 18px 26px rgba(74, 43, 123, 0.28);
}

.hero#home .gamemode-item:nth-child(3) i {
    color: #d9a8ff;
}

.hero#home .gamemode-item:nth-child(4) {
    color: #dfffe6;
    background: linear-gradient(180deg, rgba(68, 156, 92, 0.98), rgba(34, 104, 52, 0.96));
    border-color: #a6f2b7 #216837 #184e28 #7fd697;
    box-shadow: 0 7px 0 #133f20, 0 18px 26px rgba(34, 94, 50, 0.28);
}

.hero#home .gamemode-item:nth-child(4) i {
    color: #95f0aa;
}

@media (max-width: 768px) {
    .hero#home .gamemode-item {
        font-size: 1.05rem;
        padding: 12px;
    }

    .hero#home .hero-buttons {
        width: 100%;
        max-width: 420px;
        flex-direction: column;
    }

    .hero#home .mc-btn {
        width: 100%;
        min-width: 0;
        min-height: 118px;
        padding: 16px 18px 14px;
    }

    .hero#home .mc-btn-main {
        font-size: 1.16rem;
    }

    .hero#home .mc-btn-meta,
    .hero#home .discord-count-badge {
        font-size: 0.64rem;
        letter-spacing: 0.06em;
    }
}

/* Navbar button treatment from bbf7906-inspired look. */
.nav-menu {
    gap: 10px;
}

.nav-link {
    padding: 11px 16px;
    font-size: 1.2rem;
    color: var(--text-gray);
    border: 1px solid transparent;
    border-radius: 10px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.nav-link:hover {
    background: linear-gradient(180deg, rgba(31, 46, 76, 0.94), rgba(16, 25, 41, 0.92));
    border-color: rgba(116, 148, 207, 0.42);
    box-shadow: 0 5px 0 rgba(8, 12, 20, 0.7);
}

.nav-link.active {
    color: var(--text-white);
    background: linear-gradient(180deg, rgba(76, 123, 214, 0.96), rgba(44, 84, 170, 0.94));
    border-color: #9abfff #214eaa #1b428f #84adf6;
    box-shadow: 0 5px 0 #143779;
}

.nav-link.active i {
    color: #dce9ff;
}

.nav-cta-item {
    margin-left: 8px;
}

.nav-cta-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 11px 18px 10px;
    color: #fff8ef;
    text-decoration: none;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 2px solid;
    border-color: #ffd89b #a94f06 #8e3f00 #ffc879;
    border-radius: 8px;
    background: linear-gradient(180deg, #ffba61 0%, #f8a241 48%, #d97b1e 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 247, 226, 0.34),
        0 4px 0 #7b3800,
        0 12px 24px rgba(217, 123, 30, 0.24);
    text-shadow: 0 2px 0 rgba(108, 46, 0, 0.46);
    transition: transform 0.18s var(--premium-ease), box-shadow 0.18s ease, filter 0.18s ease;
}

.nav-cta-link i {
    font-size: 0.9em;
}

.nav-cta-link:hover,
.nav-cta-link:focus-visible {
    transform: translateY(-2px);
    filter: brightness(1.04);
    box-shadow:
        inset 0 1px 0 rgba(255, 247, 226, 0.34),
        0 6px 0 #7b3800,
        0 16px 28px rgba(217, 123, 30, 0.3);
}

.nav-cta-link:active {
    transform: translateY(3px);
    box-shadow:
        inset 0 1px 0 rgba(255, 247, 226, 0.34),
        0 1px 0 #7b3800,
        0 6px 12px rgba(217, 123, 30, 0.18);
}

@media (max-width: 768px) {
    .nav-link {
        width: 100%;
        min-height: 52px;
        padding: 14px 16px;
        justify-content: flex-start;
        border-radius: 12px;
    }

    .nav-cta-item {
        margin-left: 0;
        width: 100%;
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px solid rgba(126, 166, 255, 0.12);
    }

    .nav-cta-link {
        width: 100%;
        min-height: 54px;
    }
}

/* Performance-only refinements */
.ip-box,
.status-box,
.hero-stat-card,
.guide-step,
.news-slider-wrapper,
.about-content,
.announcement-card,
.staff-card,
.apply-container,
.wiki-sidebar-card,
.wiki-list-panel,
.wiki-article-panel,
.timezone-box,
.rule-item {
    content-visibility: auto;
    contain-intrinsic-size: 320px;
}

/* Minecraft interaction polish */
.guide-section .section-title,
.news-spotlight-section .section-title {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.guide-section .section-title i,
.news-spotlight-section .section-title i {
    filter: drop-shadow(2px 3px 0 rgba(30, 64, 175, 0.85));
}

.guide-steps {
    gap: 18px;
}

.guide-steps::before {
    display: none;
}

.guide-steps::after {
    display: none;
}

.landing-feature-title {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.4em;
    letter-spacing: 0.02em;
}

.landing-feature-title .title-primary {
    color: #f4f7ff;
    text-shadow: 0 3px 0 rgba(40, 46, 58, 0.9), 0 12px 24px rgba(0, 0, 0, 0.24);
}

.landing-feature-title .title-accent {
    color: #8fd3ff;
    background: linear-gradient(180deg, #d8f1ff 0%, #8fd3ff 46%, #4f97ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 3px 10px rgba(86, 170, 255, 0.24));
}

.partners-section .landing-feature-title,
.about-section .landing-feature-title {
    margin-bottom: 20px;
}

@media (max-width: 640px) {
    .landing-feature-title {
        gap: 0.24em;
    }
}

.guide-section .landing-feature-title {
    justify-content: center;
    margin-bottom: 20px;
}

.page-header .landing-feature-title {
    justify-content: center;
    margin-bottom: 12px;
    font-size: clamp(2.5rem, 5vw, 3.8rem);
}

.page-header .landing-feature-title .title-primary {
    text-shadow: 0 4px 0 rgba(48, 56, 69, 0.92), 0 14px 26px rgba(0, 0, 0, 0.24);
}

.page-header .landing-feature-title .title-accent {
    filter: drop-shadow(0 4px 12px rgba(86, 170, 255, 0.28));
}

.guide-cta-panel {
    position: relative;
    overflow: hidden;
    max-width: 820px;
    margin: 0 auto;
    padding: 42px 28px 34px;
    background:
        linear-gradient(180deg, rgba(216, 241, 255, 0.08) 0%, rgba(216, 241, 255, 0) 18%),
        linear-gradient(180deg, #36404f 0%, #293242 54%, #1a2029 100%);
    border: 4px solid;
    border-color: #96a5ba #212935 #11161d #aeb9c7;
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.16),
        inset 0 -2px 0 rgba(4, 6, 9, 0.6),
        0 10px 0 #0f141a,
        0 24px 40px rgba(0, 0, 0, 0.24);
    text-align: center;
}

.guide-cta-panel::before {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.guide-subtitle {
    max-width: 34ch;
    margin: 0 auto 26px;
    color: #d7deeb;
    font-size: 1.08rem;
    line-height: 1.6;
    text-align: center;
}

.guide-join-btn,
.join-guide-copy-btn,
.join-guide-launch-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 56px;
    padding: 0 28px;
    border: 4px solid;
    border-radius: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease;
}

.guide-join-btn {
    color: #fff8ef;
    background: linear-gradient(180deg, #ffba61 0%, #f8a241 48%, #d97b1e 100%);
    border-color: #ffd89b #a94f06 #8e3f00 #ffc879;
    box-shadow:
        inset 0 2px 0 rgba(255, 245, 229, 0.22),
        0 8px 0 #7b3800,
        0 16px 28px rgba(0, 0, 0, 0.22);
}

.guide-join-btn:hover,
.join-guide-copy-btn:hover,
.join-guide-launch-link:hover {
    transform: translateY(-2px);
    filter: brightness(1.04);
}

.guide-join-btn:active,
.join-guide-copy-btn:active,
.join-guide-launch-link:active {
    transform: translateY(4px);
    box-shadow: none;
}

.guide-helper-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.guide-helper-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    background: rgba(9, 13, 18, 0.34);
    border: 1px solid rgba(183, 200, 224, 0.16);
    color: #edf3ff;
    font-family: 'VT323', monospace;
    font-size: 1.25rem;
    letter-spacing: 0.04em;
}

.guide-helper-pill-ip {
    color: #9dd9ff;
}

.join-guide-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1200;
}

.join-guide-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.join-guide-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 9, 13, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.join-guide-dialog {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    max-width: 980px;
    width: min(100%, 980px);
    background:
        linear-gradient(180deg, rgba(233, 240, 255, 0.06) 0%, rgba(233, 240, 255, 0) 16%),
        linear-gradient(135deg, rgba(43, 28, 21, 0.96) 0%, rgba(24, 19, 24, 0.94) 100%);
    border: 4px solid;
    border-color: rgba(201, 164, 133, 0.55) rgba(36, 28, 26, 0.92) rgba(20, 15, 17, 0.96) rgba(149, 119, 92, 0.72);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 24px 50px rgba(0, 0, 0, 0.36);
    overflow: hidden;
}

.join-guide-media {
    position: relative;
    min-height: 100%;
}

.join-guide-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(23, 14, 12, 0.2) 0%, rgba(23, 14, 12, 0.5) 100%);
}

.join-guide-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.join-guide-content {
    position: relative;
    z-index: 1;
    padding: 34px 34px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 22px;
}

.join-guide-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
}

.join-guide-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.join-guide-brand-copy h3 {
    margin: 0 0 6px;
    font-size: clamp(2rem, 3.1vw, 2.6rem);
    line-height: 1;
    color: #fffdf9;
}

.join-guide-brand-copy p {
    margin: 0;
    color: #eadfd4;
    font-size: 1rem;
    line-height: 1.55;
}

.join-guide-steps {
    margin: 0;
    padding-left: 1.3rem;
    display: grid;
    gap: 14px;
    color: #fff8ef;
    font-size: 1rem;
    line-height: 1.65;
}

.join-guide-steps strong {
    color: #ffe692;
}

.join-guide-ip-card {
    display: grid;
    gap: 8px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 216, 187, 0.18);
}

.join-guide-ip-label {
    color: #d4c3b4;
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.join-guide-ip-value {
    color: #ffffff;
    font-family: 'VT323', monospace;
    font-size: 2rem;
    line-height: 1;
}

.join-guide-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.join-guide-copy-btn {
    color: #fff8ef;
    background: linear-gradient(180deg, #ffba61 0%, #f8a241 48%, #d97b1e 100%);
    border-color: #ffd89b #a94f06 #8e3f00 #ffc879;
    box-shadow:
        inset 0 2px 0 rgba(255, 245, 229, 0.22),
        0 6px 0 #7b3800;
}

.join-guide-launch-link {
    color: #edf3ff;
    background: linear-gradient(180deg, #4f8cf4 0%, #326ad3 48%, #1f4da8 100%);
    border-color: #8fb5ff #183a82 #122d67 #6f9fff;
    box-shadow:
        inset 0 2px 0 rgba(243, 248, 255, 0.2),
        0 6px 0 #10244e;
}

body.modal-open {
    overflow: hidden;
}

@media (max-width: 900px) {
    .join-guide-dialog {
        grid-template-columns: 1fr;
        max-width: 620px;
    }

    .join-guide-media {
        max-height: 220px;
    }
}

@media (max-width: 640px) {
    .guide-cta-panel {
        padding: 32px 16px 26px;
        border-width: 3px;
    }

    .guide-join-btn,
    .join-guide-copy-btn,
    .join-guide-launch-link {
        width: 100%;
    }

    .join-guide-modal {
        align-items: flex-start;
        overflow-y: auto;
        padding:
            max(12px, env(safe-area-inset-top))
            12px
            max(16px, env(safe-area-inset-bottom));
    }

    .join-guide-dialog {
        width: 100%;
        margin: 0 auto;
        overflow: visible;
    }

    .join-guide-content {
        padding: 68px 18px 20px;
        gap: 18px;
    }

    .join-guide-brand {
        align-items: flex-start;
        padding-right: 48px;
    }

    .join-guide-brand img {
        width: 44px;
        height: 44px;
    }

    .join-guide-close {
        top: 12px;
        right: 12px;
        width: 46px;
        height: 46px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(255, 232, 204, 0.2);
        background: rgba(8, 12, 20, 0.88);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
    }

    .join-guide-ip-value {
        font-size: 1.7rem;
        word-break: break-word;
    }

    .join-guide-actions {
        flex-direction: column;
    }
}

.guide-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 300px;
    padding: 30px 18px 16px;
    border-width: 5px;
    border-color: #858585 #303030 #272727 #717171;
    background:
        linear-gradient(180deg, rgba(118, 118, 118, 0.98) 0%, rgba(91, 91, 91, 0.98) 52%, rgba(82, 82, 82, 0.98) 100%);
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.16),
        inset -2px -3px 0 rgba(0, 0, 0, 0.22),
        0 0 0 1px rgba(0, 0, 0, 0.15),
        8px 8px 0 #232323;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    overflow: hidden;
}

.guide-step::before {
    inset: 6px;
    border-top: 2px solid rgba(255, 255, 255, 0.12);
    border-left: 2px solid rgba(255, 255, 255, 0.08);
    border-right: 2px solid rgba(0, 0, 0, 0.14);
    border-bottom: 2px solid rgba(0, 0, 0, 0.18);
}

body:not(.performance-mode) .guide-step::after {
    content: "";
    position: absolute;
    inset: auto 16px 58px;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    opacity: 0.55;
    pointer-events: none;
}

.guide-step:hover {
    transform: translate3d(0, -3px, 0);
    filter: brightness(1.04);
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.16),
        inset -2px -3px 0 rgba(0, 0, 0, 0.22),
        0 0 0 1px rgba(0, 0, 0, 0.15),
        11px 11px 0 #202020;
}

.guide-step:active {
    transform: translate3d(5px, 5px, 0);
    filter: brightness(0.94);
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.1),
        inset -2px -2px 0 rgba(0, 0, 0, 0.18),
        0 0 0 1px rgba(0, 0, 0, 0.12),
        1px 1px 0 #202020;
}

.guide-step-number {
    top: 10px;
    width: 32px;
    height: 24px;
    border-width: 3px;
    border-color: #88b7ff #173e9d #16398f #6ca0ff;
    background: linear-gradient(180deg, #4f8bff 0%, #2e63da 100%);
    box-shadow: 2px 2px 0 #16398f;
}

.guide-step-icon {
    width: 78px;
    height: 78px;
    margin: 6px auto 18px;
    background:
        linear-gradient(180deg, rgba(121, 121, 121, 0.98) 0%, rgba(92, 92, 92, 0.98) 100%);
    border-width: 5px;
    border-color: #4f4f4f #2b2b2b #212121 #595959;
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.12),
        5px 5px 0 #2b2b2b;
}

.guide-step:hover .guide-step-icon {
    transform: translate3d(0, -1px, 0);
}

.guide-step:active .guide-step-icon {
    transform: translate3d(2px, 2px, 0);
    box-shadow: 2px 2px 0 #2b2b2b;
}

.guide-step-title {
    margin-bottom: 10px;
    line-height: 1.05;
}

.guide-step-desc {
    min-height: 92px;
    margin-bottom: 14px;
    max-width: 18ch;
}

.guide-step-cta {
    margin-top: auto;
    width: calc(100% - 28px);
    min-height: 44px;
    padding: 8px 12px 6px;
    border: 4px solid;
    border-radius: 0;
    font-family: 'VT323', monospace;
    font-size: 0.95rem;
    line-height: 1;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #f9fbff;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.35);
    box-shadow: 4px 4px 0 rgba(18, 18, 18, 0.72);
    transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    position: relative;
}

.guide-step:hover .guide-step-cta {
    transform: translate3d(0, -1px, 0);
}

.guide-step:active .guide-step-cta {
    transform: translate3d(3px, 3px, 0);
    box-shadow: 1px 1px 0 rgba(18, 18, 18, 0.72);
}

.guide-step-blue .guide-step-cta {
    background: linear-gradient(180deg, #69a7ff 0%, #3e7cf0 100%);
    border-color: #7fb5ff #2959c4 #234da8 #699fff;
}

.guide-step-violet .guide-step-cta {
    background: linear-gradient(180deg, #a57eff 0%, #6a49e4 100%);
    border-color: #c0a2ff #5033be #452ca0 #9974ff;
}

.guide-step-cyan .guide-step-cta {
    background: linear-gradient(180deg, #63e6ff 0%, #1aa8d0 100%);
    border-color: #8ceeff #0f86aa #0d7391 #62def7;
}

.guide-step-green .guide-step-cta {
    background: linear-gradient(180deg, #67e89a 0%, #239f58 100%);
    border-color: #88f2b0 #17743d #125e31 #66d58d;
}

.news-spotlight-section {
    position: relative;
}

.news-spotlight-section::before {
    display: none;
}

.news-slider-wrapper {
    height: 436px;
    border-width: 5px;
    border-radius: 0;
    border-color: #6a7388 #1f2635 #161b24 #59627a;
    background:
        linear-gradient(180deg, rgba(21, 30, 47, 0.98) 0%, rgba(12, 18, 30, 0.98) 100%);
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.08),
        inset -2px -3px 0 rgba(0, 0, 0, 0.28),
        0 0 0 1px rgba(0, 0, 0, 0.2),
        0 18px 42px rgba(0, 0, 0, 0.36);
}

.news-slider-wrapper::before {
    content: none;
}

.news-slide {
    transform: translate3d(0, 0, 0) scale(1.02);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.news-slide.active {
    transform: translate3d(0, 0, 0) scale(1);
}

.news-slide-bg-img {
    filter: saturate(0.95) contrast(1.04);
}

.news-slide-overlay {
    background:
        linear-gradient(180deg, rgba(7, 10, 16, 0.32) 0%, rgba(7, 10, 16, 0.58) 32%, rgba(5, 7, 10, 0.92) 100%),
        repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.015) 0 2px, rgba(0, 0, 0, 0.015) 2px 4px);
}

.news-slide-content {
    max-width: 620px;
    padding: 36px 42px;
    gap: 14px;
}

.news-slide-badge {
    padding: 6px 12px 5px;
    border: 3px solid;
    border-radius: 0;
    border-color: #8fbeff #22489a #1a3879 #76a8f7;
    background: linear-gradient(180deg, #5d9cff 0%, #2f67de 100%);
    box-shadow: 3px 3px 0 #183977;
    font-size: 1rem;
    letter-spacing: 0.08em;
}

.news-slide-title {
    font-size: 2.6rem;
    line-height: 1.06;
    text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.38), 0 0 18px rgba(59, 130, 246, 0.12);
}

.news-slide-excerpt {
    font-size: 0.96rem;
    line-height: 1.65;
    max-width: 54ch;
}

.news-slide-meta {
    gap: 14px;
    padding: 10px 12px;
    background: rgba(8, 12, 20, 0.4);
    border: 2px solid rgba(93, 112, 150, 0.45);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.news-slide-author img {
    border-radius: 0;
    border: 2px solid rgba(126, 166, 255, 0.34);
}

.news-slide-cta {
    margin-top: 6px;
    padding: 11px 18px 9px;
    border: 4px solid;
    border-radius: 0;
    background: linear-gradient(180deg, #67a7ff 0%, #3f7df0 100%);
    border-color: #7fb5ff #2959c4 #234da8 #699fff;
    box-shadow: 4px 4px 0 #1b3f88;
    color: #fefefe;
    font-size: 1.15rem;
    letter-spacing: 0.08em;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.32);
    transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.news-slide-cta:hover {
    color: #fff;
    gap: 8px;
    filter: brightness(1.04);
    transform: translate3d(0, -1px, 0);
    box-shadow: 5px 5px 0 #1b3f88;
}

.news-slide-cta:active {
    transform: translate3d(3px, 3px, 0);
    box-shadow: 1px 1px 0 #1b3f88;
}

.news-slider-arrow {
    width: 46px;
    height: 46px;
    border-radius: 0;
    border-width: 4px;
    border-color: #7282a6 #24314e #1d2740 #657699;
    background: linear-gradient(180deg, rgba(78, 92, 122, 0.96) 0%, rgba(48, 60, 84, 0.96) 100%);
    box-shadow: 4px 4px 0 rgba(15, 21, 35, 0.82);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.news-slider-arrow:hover {
    background: linear-gradient(180deg, rgba(96, 120, 166, 0.98) 0%, rgba(57, 84, 136, 0.98) 100%);
    border-color: #95acdd #284f9d #224687 #7e97c9;
    transform: translateY(calc(-50% - 1px));
    box-shadow: 5px 5px 0 rgba(15, 21, 35, 0.82);
}

.news-slider-arrow:active {
    transform: translateY(calc(-50% + 3px));
    box-shadow: 1px 1px 0 rgba(15, 21, 35, 0.82);
}

.news-slider-dots {
    right: 34px;
    bottom: 18px;
    gap: 10px;
}

.news-slider-dot {
    width: 14px;
    height: 14px;
    border-radius: 0;
    border-width: 3px;
    border-color: #7888aa #24314d #1d2740 #637494;
    background: linear-gradient(180deg, rgba(49, 59, 78, 0.96) 0%, rgba(28, 34, 46, 0.96) 100%);
    box-shadow: 2px 2px 0 rgba(10, 14, 22, 0.85);
}

.news-slider-dot.active {
    background: linear-gradient(180deg, #67a7ff 0%, #3f7df0 100%);
    border-color: #8ab8ff #2959c4 #234da8 #74a6f7;
    transform: none;
    box-shadow: 2px 2px 0 #173a81, 0 0 12px rgba(59, 130, 246, 0.24);
}

.news-slider-dot:hover:not(.active) {
    border-color: #a3b7de;
    background: linear-gradient(180deg, rgba(81, 94, 120, 0.98) 0%, rgba(41, 50, 67, 0.98) 100%);
}

.news-slider-progress {
    left: 14px;
    right: 14px;
    bottom: 8px;
    height: 8px;
    border: 2px solid rgba(71, 85, 113, 0.8);
    background: rgba(7, 10, 16, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.news-slider-progress-bar {
    background:
        repeating-linear-gradient(90deg, #67a7ff 0 18px, #8e75ff 18px 36px, #41d4ff 36px 54px);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.28);
}

@media (max-width: 768px) {
    .guide-step {
        min-height: 0;
        padding: 34px 16px 16px;
    }

    .guide-step-desc {
        min-height: 0;
    }

    .guide-step-cta {
        width: 100%;
    }

    .news-slider-wrapper {
        height: 400px;
    }

    .news-slide-content {
        padding: 22px;
    }

    .news-slide-title {
        font-size: 2rem;
    }

    .news-slide-meta {
        gap: 10px;
        padding: 8px 10px;
    }

    .news-slide-cta {
        width: fit-content;
    }
}

@media (max-width: 500px) {
    .guide-step-cta {
        min-width: 0;
        width: 100%;
    }

    .news-slider-wrapper {
        height: 420px;
    }

    .news-slide-title {
        font-size: 1.72rem;
    }

    .news-slider-dots {
        right: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .guide-steps::after,
    .news-slider-progress-bar {
        animation: none !important;
    }
}

@media (max-width: 900px) {
    html.performance-mode {
        scroll-behavior: auto;
    }

    img[loading="lazy"],
    .deferred-section,
    .about-section,
    .news-spotlight-section,
    .partners-section,
    .footer,
    .ip-box,
    .status-box,
    .hero-stat-card,
    .guide-step,
    .announcement-card,
    .staff-card,
    .apply-container,
    .wiki-sidebar-card,
    .wiki-list-panel,
    .wiki-article-panel,
    .timezone-box,
    .rule-item,
    .spotlight-card,
    .latest-news-card {
        content-visibility: visible !important;
        contain-intrinsic-size: none !important;
    }

    body,
    .hero-bg,
    .hero-banner,
    .hero-logo,
    .stars,
    .status-dot,
    .hero-stats-track {
        animation: none !important;
    }

    body {
        background: #05070a !important;
        background-color: #05070a !important;
    }

    body::after,
    .particles,
    .floating-orbs,
    .comet-container,
    .cube-wrapper,
    .hero-bg::before {
        display: none !important;
    }

    .page-content,
    .hero,
    .stats-band,
    .news-spotlight-section,
    .guide-section,
    .partners-section,
    .about-section,
    .footer {
        background: #05070a !important;
        background-color: #05070a !important;
    }

    .hero-overlay,
    .news-spotlight-section::before,
    .about-section::before,
    .footer::before {
        display: none !important;
    }

    .navbar,
    .hero-stat-card,
    .ip-box,
    .status-box,
    .news-slider-wrapper,
    .about-content,
    .guide-step,
    .footer-ip-box,
    .partner-item {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .hero-stat-card,
    .ip-box,
    .status-box,
    .guide-step,
    .news-slider-wrapper,
    .spotlight-card,
    .latest-news-card,
    .about-content,
    .partner-item,
    .footer-ip-box {
        box-shadow: none !important;
    }

    .hero-banner {
        opacity: 0.18;
        transform: none !important;
        mix-blend-mode: normal;
    }

    .hero-content {
        animation: none !important;
    }

    .hero#home .gamemode-item,
    .hero-stat-card,
    .guide-step,
    .partner-item,
    .spotlight-card,
    .latest-news-card,
    .staff-card,
    .news-slide {
        transition: none !important;
    }

    .news-slider-wrapper {
        height: clamp(360px, 70vw, 440px);
        min-height: 360px;
    }

    .spotlight-card,
    .spotlight-card:hover,
    .guide-step,
    .guide-step:hover,
    .hero-stat-card,
    .hero-stat-card:hover,
    .partner-item,
    .partner-item:hover {
        transform: none !important;
    }
}

.spotlight-card-meta span,
.latest-news-views,
.news-slide-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.spotlight-card-meta i,
.latest-news-views i,
.news-slide-meta i {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .hero-stats-marquee {
        overflow: hidden;
        mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%);
        -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%);
        justify-content: flex-start;
    }

    .hero-stats-track {
        width: max-content;
        flex-direction: row;
        align-items: stretch;
        margin: 0;
        padding: 6px 0 10px;
    }

    .hero-stat-card {
        width: 228px;
        min-width: 228px;
        max-width: 228px;
        min-height: 92px;
        padding: 14px 16px 12px;
    }

    .hero-stat-icon {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .hero-stats-track .hero-stat-card:nth-child(n+5) {
        display: flex;
    }

    .spotlight-card-meta {
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .hero-stats-marquee.scroll-linked-rail,
    .hero-stats-marquee.manual-scroll {
        overflow: visible;
        mask-image: none;
        -webkit-mask-image: none;
        display: flex;
        justify-content: center;
        cursor: default;
    }

    .hero-stats-marquee.scroll-linked-rail .hero-stats-track,
    .hero-stats-marquee.manual-scroll .hero-stats-track {
        width: min(100%, 420px);
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin: 0 auto;
        padding: 0;
    }

    .hero-stats-marquee.scroll-linked-rail .hero-stat-card,
    .hero-stats-marquee.manual-scroll .hero-stat-card {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        min-height: 84px;
        padding: 13px 16px 11px;
        border-radius: 14px;
        gap: 0;
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr);
        column-gap: 14px;
        justify-content: stretch;
        text-align: left;
    }

    .hero-stats-marquee.scroll-linked-rail .hero-stat-icon,
    .hero-stats-marquee.manual-scroll .hero-stat-icon {
        width: 44px;
        min-width: 44px;
        font-size: 1.35rem;
        grid-column: 1;
        margin-bottom: 0;
    }

    .hero-stats-marquee.scroll-linked-rail .hero-stat-copy,
    .hero-stats-marquee.manual-scroll .hero-stat-copy {
        align-items: flex-start;
        text-align: left;
        flex: 1;
        grid-column: 2;
    }

    .hero-stats-marquee.scroll-linked-rail .hero-stat-value,
    .hero-stats-marquee.scroll-linked-rail .hero-stat-label,
    .hero-stats-marquee.manual-scroll .hero-stat-value,
    .hero-stats-marquee.manual-scroll .hero-stat-label {
        text-align: left;
    }

    .hero-stats-marquee.scroll-linked-rail .hero-stats-track .hero-stat-card:nth-child(n+5),
    .hero-stats-marquee.manual-scroll .hero-stats-track .hero-stat-card:nth-child(n+5) {
        display: none !important;
    }
}

/* Final homepage/mobile stats rail fix */
@media (max-width: 768px) {
    .hero-stats-marquee.scroll-linked-rail,
    .hero-stats-marquee.manual-scroll {
        overflow: visible !important;
        overflow-x: visible !important;
        mask-image: none !important;
        -webkit-mask-image: none !important;
        justify-content: center !important;
    }

    .hero-stats-marquee.scroll-linked-rail .hero-stats-track,
    .hero-stats-marquee.manual-scroll .hero-stats-track {
        width: min(100%, 420px) !important;
        max-width: min(100%, 420px) !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
        margin: 0 auto !important;
        padding: 0 !important;
    }

    .hero-stats-marquee.scroll-linked-rail .hero-stat-card,
    .hero-stats-marquee.manual-scroll .hero-stat-card {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        min-height: 84px !important;
        display: grid !important;
        grid-template-columns: 44px minmax(0, 1fr) !important;
        column-gap: 14px !important;
        align-items: center !important;
        justify-content: stretch !important;
        text-align: left !important;
    }

    .hero-stats-marquee.scroll-linked-rail .hero-stat-icon,
    .hero-stats-marquee.manual-scroll .hero-stat-icon {
        width: 44px !important;
        min-width: 44px !important;
        margin-bottom: 0 !important;
    }

    .hero-stats-marquee.scroll-linked-rail .hero-stat-copy,
    .hero-stats-marquee.scroll-linked-rail .hero-stat-value,
    .hero-stats-marquee.scroll-linked-rail .hero-stat-label,
    .hero-stats-marquee.manual-scroll .hero-stat-copy,
    .hero-stats-marquee.manual-scroll .hero-stat-value,
    .hero-stats-marquee.manual-scroll .hero-stat-label {
        text-align: left !important;
        align-items: flex-start !important;
    }

    .hero-stats-marquee.scroll-linked-rail .hero-stat-card[aria-hidden="true"],
    .hero-stats-marquee.scroll-linked-rail .hero-stats-track .hero-stat-card:nth-child(n+5),
    .hero-stats-marquee.manual-scroll .hero-stat-card[aria-hidden="true"],
    .hero-stats-marquee.manual-scroll .hero-stats-track .hero-stat-card:nth-child(n+5) {
        display: none !important;
    }
}

/* Final homepage/news spotlight responsive fix */
.news-slider-wrapper {
    min-height: 360px;
}

.news-slide-content {
    min-width: 0;
    max-height: calc(100% - 28px);
    overflow: hidden;
}

.news-slide-title,
.news-slide-excerpt,
.news-slide-meta {
    overflow-wrap: anywhere;
}

.news-slide-title {
    max-width: none;
    font-size: 2.35rem;
}

@media (max-width: 900px) {
    .news-slider-wrapper {
        height: clamp(360px, 72vw, 440px);
    }

    .news-slide-content {
        max-width: 100%;
        padding: 28px 28px 64px;
    }

    .news-slide-title {
        max-width: none;
        font-size: 2rem;
    }

    .news-slide-meta {
        gap: 10px;
    }
}

@media (max-width: 520px) {
    .news-slider-wrapper {
        height: 420px;
    }

    .news-slide {
        align-items: flex-end;
    }

    .news-slide-content {
        padding: 22px 18px 70px;
        gap: 10px;
    }

    .news-slide-title {
        font-size: 1.72rem;
        line-height: 1.08;
    }

    .news-slide-excerpt {
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }

    .news-slide-meta {
        font-size: 0.76rem;
        line-height: 1.35;
    }

    .news-slider-arrow {
        width: 40px;
        height: 40px;
    }

    .news-slider-dots {
        left: 18px;
        right: auto;
        bottom: 18px;
    }
}

html.performance-mode {
    scroll-behavior: auto;
}

html.performance-mode body,
html.performance-mode .hero-bg,
html.performance-mode .hero-banner,
html.performance-mode .hero-logo,
html.performance-mode .stars,
html.performance-mode .status-dot,
html.performance-mode .hero-stats-track,
html.performance-mode .news-slider-progress-bar {
    animation: none !important;
}

html.performance-mode body {
    background: #05070a !important;
    background-color: #05070a !important;
    background-attachment: scroll !important;
}

html.performance-mode body::after,
html.performance-mode .particles,
html.performance-mode .floating-orbs,
html.performance-mode .comet-container,
html.performance-mode .cube-wrapper,
html.performance-mode .hero-bg::before {
    display: none !important;
}

html.performance-mode .page-content,
html.performance-mode .hero,
html.performance-mode .stats-band,
html.performance-mode .news-spotlight-section,
html.performance-mode .guide-section,
html.performance-mode .partners-section,
html.performance-mode .about-section,
html.performance-mode .footer {
    background: #05070a !important;
    background-color: #05070a !important;
}

html.performance-mode .hero-overlay,
html.performance-mode .news-spotlight-section::before,
html.performance-mode .about-section::before,
html.performance-mode .footer::before {
    display: none !important;
}

html.performance-mode .navbar,
html.performance-mode .hero-stat-card,
html.performance-mode .ip-box,
html.performance-mode .status-box,
html.performance-mode .news-slider-wrapper,
html.performance-mode .about-content,
html.performance-mode .guide-step,
html.performance-mode .footer-ip-box,
html.performance-mode .partner-item {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

html.performance-mode .hero-stat-card,
html.performance-mode .ip-box,
html.performance-mode .status-box,
html.performance-mode .guide-step,
html.performance-mode .news-slider-wrapper,
html.performance-mode .spotlight-card,
html.performance-mode .latest-news-card,
html.performance-mode .about-content,
html.performance-mode .partner-item,
html.performance-mode .footer-ip-box {
    box-shadow: none !important;
}

html.performance-mode .hero-banner {
    opacity: 0.18;
    transform: none !important;
    mix-blend-mode: normal !important;
    filter: none !important;
}

html.performance-mode .hero-content {
    animation: none !important;
}

html.performance-mode .hero#home .gamemode-item,
html.performance-mode .hero-stat-card,
html.performance-mode .guide-step,
html.performance-mode .partner-item,
html.performance-mode .spotlight-card,
html.performance-mode .latest-news-card,
html.performance-mode .staff-card,
html.performance-mode .news-slide {
    transition: none !important;
}

html.performance-mode .news-slider-wrapper {
    height: clamp(360px, 70vw, 440px);
    min-height: 360px;
}

html.performance-mode .spotlight-card,
html.performance-mode .spotlight-card:hover,
html.performance-mode .guide-step,
html.performance-mode .guide-step:hover,
html.performance-mode .hero-stat-card,
html.performance-mode .hero-stat-card:hover,
html.performance-mode .partner-item,
html.performance-mode .partner-item:hover {
    transform: none !important;
}

.hero-content {
    max-width: 780px;
    padding: 42px 30px 36px;
    background:
        linear-gradient(180deg, rgba(213, 219, 230, 0.12) 0%, rgba(213, 219, 230, 0) 14%),
        linear-gradient(180deg, #384252 0%, #2d3644 47%, #242c38 48%, #1a2029 100%);
    border-width: 4px;
    border-style: solid;
    border-color: #8d99ab #232b36 #131920 #a5afbd;
    border-radius: 0;
    clip-path: none;
    background-clip: padding-box;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.18),
        inset 0 -2px 0 rgba(4, 6, 9, 0.58),
        0 8px 0 #0d1218,
        0 18px 34px rgba(0, 0, 0, 0.34),
        0 0 0 1px rgba(7, 10, 14, 0.48);
}

.hero-content::before {
    content: "";
    position: absolute;
    inset: 6px 6px auto 6px;
    height: 32%;
    background: linear-gradient(180deg, rgba(232, 236, 242, 0.12), rgba(232, 236, 242, 0.03) 58%, transparent 100%);
    border-top: 1px solid rgba(244, 246, 249, 0.18);
    pointer-events: none;
}

.hero-content::after {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

@media (max-width: 768px) {
    .hero-content {
        max-width: 640px;
        padding: 34px 20px 28px;
        border-width: 3px;
        box-shadow:
            inset 0 2px 0 rgba(255, 255, 255, 0.16),
            inset 0 -2px 0 rgba(4, 6, 9, 0.58),
            0 6px 0 #0d1218,
            0 14px 24px rgba(0, 0, 0, 0.28),
            0 0 0 1px rgba(7, 10, 14, 0.42);
    }

    .hero-content::after {
        inset: 6px;
    }
}

@media (max-width: 520px) {
    .hero-content {
        padding: 28px 14px 24px;
    }

    .hero-content::before {
        inset: 5px 5px auto 5px;
    }

    .hero-content::after {
        inset: 5px;
    }
}

/* News page polish */
.announcements-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    max-width: 1120px;
    margin: 0 auto;
}

.announcement-card {
    display: grid !important;
    grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
    background: linear-gradient(180deg, rgba(13, 22, 38, 0.96), rgba(8, 14, 26, 0.98)) !important;
    border: 1px solid rgba(96, 165, 250, 0.18) !important;
    border-left: 0 !important;
    border-radius: 14px !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24) !important;
    overflow: hidden;
    transform: none !important;
}

.announcement-card:hover {
    border-color: rgba(96, 165, 250, 0.34) !important;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.3) !important;
    transform: none !important;
}

.announcement-card.no-banner {
    grid-template-columns: 1fr !important;
}

.announcement-card::before,
.latest-news-card::before {
    display: none !important;
}

.announcement-banner {
    width: 100%;
    height: 100% !important;
    min-height: 230px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.announcement-card:hover .announcement-banner {
    transform: scale(1.015);
}

.announcement-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 24px !important;
}

.announcement-header {
    margin-bottom: 0 !important;
}

.announcement-title {
    margin-bottom: 10px !important;
    line-height: 1;
}

.announcement-meta,
.latest-news-meta,
.spotlight-card-meta,
.news-slide-meta {
    gap: 10px !important;
}

.announcement-meta span,
.latest-news-meta span,
.spotlight-card-meta span,
.news-slide-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
}

.announcement-views,
.latest-news-views,
.news-slide-views {
    display: none !important;
}

.latest-news-card {
    background: linear-gradient(180deg, rgba(13, 22, 38, 0.96), rgba(8, 14, 26, 0.98)) !important;
    border: 1px solid rgba(96, 165, 250, 0.18) !important;
    border-radius: 14px !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22) !important;
    transform: none !important;
}

.latest-news-card:hover {
    border-color: rgba(96, 165, 250, 0.34) !important;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.3) !important;
    transform: none !important;
}

.latest-news-image {
    aspect-ratio: 16 / 9;
    min-height: 0 !important;
}

@media (max-width: 820px) {
    .announcement-card {
        grid-template-columns: 1fr !important;
    }

    .announcement-banner {
        min-height: 180px;
    }

    .announcement-body {
        padding: 18px !important;
    }
}

.news-slider-wrapper {
    padding-bottom: 0;
}

.news-slide.has-banner .news-slide-overlay {
    background:
        linear-gradient(90deg, rgba(4, 8, 16, 0.9) 0%, rgba(4, 8, 16, 0.62) 34%, rgba(4, 8, 16, 0.18) 68%, rgba(4, 8, 16, 0.04) 100%),
        linear-gradient(180deg, rgba(5, 8, 14, 0.22) 0%, rgba(5, 8, 14, 0.34) 52%, rgba(5, 8, 14, 0.2) 100%),
        repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.018) 0 2px, rgba(0, 0, 0, 0.018) 2px 4px);
}

.news-slide.has-banner .news-slide-content {
    max-width: min(540px, 58%);
}

.news-slide-title {
    max-width: 18ch;
    text-wrap: balance;
}

.news-slide.no-banner .news-slide-bg {
    background:
        radial-gradient(circle at 82% 24%, rgba(64, 163, 255, 0.2), transparent 34%),
        radial-gradient(circle at 20% 72%, rgba(37, 99, 235, 0.18), transparent 38%),
        linear-gradient(135deg, rgba(11, 24, 43, 0.98), rgba(5, 10, 20, 0.98));
}

.news-slide.no-banner .news-slide-overlay {
    background:
        linear-gradient(90deg, rgba(4, 8, 16, 0.92) 0%, rgba(4, 8, 16, 0.72) 45%, rgba(4, 8, 16, 0.42) 100%),
        repeating-linear-gradient(180deg, rgba(96, 165, 250, 0.035) 0 2px, rgba(0, 0, 0, 0.025) 2px 4px);
}

.news-slide.no-banner .news-slide-content {
    justify-content: center;
    padding-bottom: 92px !important;
}

.news-slide-content {
    padding-bottom: 78px !important;
}

.news-slide-meta {
    align-self: flex-start;
    width: auto;
    max-width: 100%;
}

.news-slide-date {
    width: fit-content;
    flex: 0 0 auto;
    white-space: nowrap;
}

.news-slide-cta {
    margin-top: 12px;
}

.news-slider-progress {
    left: 18px !important;
    right: 18px !important;
    bottom: 12px !important;
    height: 9px !important;
    border-color: rgba(96, 165, 250, 0.48) !important;
    background: rgba(4, 10, 22, 0.86) !important;
    box-shadow:
        inset 0 1px 0 rgba(191, 219, 254, 0.14),
        0 0 16px rgba(37, 99, 235, 0.18) !important;
}

.news-slider-progress-bar {
    background:
        repeating-linear-gradient(90deg, #93c5fd 0 18px, #38bdf8 18px 36px, #2563eb 36px 54px) !important;
    box-shadow:
        0 0 12px rgba(56, 189, 248, 0.58),
        0 0 26px rgba(37, 99, 235, 0.36) !important;
}

@media (max-width: 520px) {
    .news-slide-content,
    .news-slide.no-banner .news-slide-content {
        padding-bottom: 86px !important;
    }

    .news-slide.has-banner .news-slide-content {
        max-width: 100%;
    }

    .news-slider-progress {
        left: 14px !important;
        right: 14px !important;
        bottom: 10px !important;
    }
}

/* Final news fixes: keep controls clear of the slide copy and progress rail. */
.news-slider-track > .news-slide {
    position: absolute !important;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex !important;
    align-items: flex-start;
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(1.02) !important;
    pointer-events: none;
    overflow: hidden;
}

.news-slider-track > .news-slide.active {
    opacity: 1 !important;
    transform: translate3d(0, 0, 0) scale(1) !important;
    pointer-events: auto;
    z-index: 2;
}

.news-slider-track > .news-slide.slide-exit {
    opacity: 0 !important;
    transform: translate3d(0, 0, 0) scale(0.98) !important;
    z-index: 1;
}

.news-slider-wrapper.news-slider-has-tabs {
    --news-slider-tabs-width: 38px;
    --news-slider-tabs-reserve: 102px;
    height: clamp(360px, 34vw, 392px);
    min-height: 360px;
}

.news-slider-wrapper.news-slider-has-tabs .news-slide-content {
    box-sizing: border-box;
    width: min(620px, calc(100% - 180px));
    max-width: min(620px, calc(100% - 180px));
    align-self: auto;
    justify-content: flex-start;
    padding: clamp(28px, 3vw, 42px) 76px 76px 96px !important;
    overflow: visible;
}

.news-slider-wrapper.news-slider-has-tabs .news-slide-title {
    max-width: 20ch;
}

.news-slider-wrapper.news-slider-has-tabs .news-slide-excerpt {
    display: block;
    max-width: 46ch;
    min-height: 1.55em;
    max-height: 4.8em;
    line-height: 1.6;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    -webkit-box-orient: initial;
}

.news-slider-wrapper.news-slider-has-tabs .news-slider-dots {
    right: 22px !important;
    bottom: 22px !important;
    min-height: 32px;
    padding: 7px 8px;
    align-items: center;
    border: 2px solid rgba(96, 165, 250, 0.34);
    background: rgba(4, 10, 22, 0.82);
    box-shadow:
        inset 0 1px 0 rgba(191, 219, 254, 0.12),
        3px 3px 0 rgba(5, 8, 14, 0.72);
}

.news-slider-wrapper.news-slider-has-tabs .news-slider-dot {
    flex: 0 0 14px;
}

.news-slider-wrapper.news-slider-has-tabs .news-slider-progress {
    right: calc(22px + var(--news-slider-tabs-width, 38px) + 28px) !important;
    bottom: 32px !important;
    min-width: 120px;
}

.announcement-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.announcement-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 16px;
    border: 3px solid;
    border-radius: 0;
    font-family: 'VT323', monospace;
    font-size: 1.05rem;
    letter-spacing: 0.06em;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.announcement-copy-btn {
    color: #dbeafe;
    background: linear-gradient(180deg, rgba(38, 53, 82, 0.96) 0%, rgba(21, 30, 49, 0.96) 100%);
    border-color: #64789d #253557 #1b2844 #52688d;
    box-shadow: 3px 3px 0 rgba(8, 13, 24, 0.9);
}

.announcement-action-btn:hover {
    filter: brightness(1.06);
    transform: translate3d(0, -1px, 0);
}

.announcement-action-btn:active {
    transform: translate3d(2px, 2px, 0);
    box-shadow: 1px 1px 0 rgba(8, 13, 24, 0.9);
}

.news-slide.no-banner.news-template-light-blue .news-slide-bg {
    background:
        radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.65), transparent 26%),
        linear-gradient(135deg, #dff6ff 0%, #60a5fa 46%, #1d4ed8 100%) !important;
}

.news-slide.no-banner.news-template-crystal-gradient .news-slide-bg {
    background:
        radial-gradient(circle at 20% 18%, rgba(167, 243, 208, 0.68), transparent 30%),
        radial-gradient(circle at 78% 66%, rgba(129, 140, 248, 0.42), transparent 34%),
        linear-gradient(135deg, #0891b2 0%, #4f46e5 66%, #111827 100%) !important;
}

.news-slide.no-banner.news-template-sunset-gradient .news-slide-bg {
    background:
        radial-gradient(circle at 72% 22%, rgba(254, 240, 138, 0.55), transparent 28%),
        linear-gradient(135deg, #fb7185 0%, #f59e0b 58%, #1e293b 100%) !important;
}

.news-slide.no-banner.news-template-emerald-gradient .news-slide-bg {
    background:
        radial-gradient(circle at 78% 20%, rgba(187, 247, 208, 0.58), transparent 30%),
        linear-gradient(135deg, #064e3b 0%, #0f766e 56%, #172554 100%) !important;
}

.news-slide.no-banner.news-template-light-blue .news-slide-overlay,
.news-slide.no-banner.news-template-crystal-gradient .news-slide-overlay,
.news-slide.no-banner.news-template-sunset-gradient .news-slide-overlay,
.news-slide.no-banner.news-template-emerald-gradient .news-slide-overlay {
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.86) 0%, rgba(2, 6, 23, 0.62) 48%, rgba(2, 6, 23, 0.32) 100%),
        repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0 2px, rgba(0, 0, 0, 0.035) 2px 4px) !important;
}

body.home-page {
    background-color: #03070f;
    background-image:
        radial-gradient(circle at 50% 8%, rgba(79, 140, 255, 0.1), transparent 30%),
        linear-gradient(180deg, rgba(3, 7, 15, 0.58) 0%, rgba(3, 7, 15, 0.86) 42%, rgba(3, 7, 15, 0.96) 100%),
        url("../images/mysticraftbg.png");
    background-image:
        radial-gradient(circle at 50% 8%, rgba(79, 140, 255, 0.1), transparent 30%),
        linear-gradient(180deg, rgba(3, 7, 15, 0.58) 0%, rgba(3, 7, 15, 0.86) 42%, rgba(3, 7, 15, 0.96) 100%),
        image-set(
            url("../images/mysticraftbg.webp") type("image/webp"),
            url("../images/mysticraftbg.png") type("image/png")
        );
    background-position: center top, center top, center center;
    background-repeat: no-repeat, no-repeat, no-repeat;
    background-size: cover, cover, cover;
    background-attachment: fixed, fixed, fixed;
    animation: none;
}

@media (max-width: 900px) {
    body.home-page {
        background-attachment: scroll, scroll, scroll;
    }
}

@media (max-width: 480px) {
    .home-page .ip-address {
        font-size: clamp(0.75rem, 3.25vw, 0.82rem);
        letter-spacing: -0.01em;
        white-space: nowrap;
        word-break: normal;
    }

    .home-page .player-count {
        font-size: clamp(1.35rem, 7vw, 1.7rem);
        white-space: nowrap;
    }
}

.home-page .news-spotlight-section,
.home-page .guide-section,
.home-page .partners-section,
.home-page .about-section {
    border-top: 1px solid rgba(125, 190, 255, 0.1);
    background: linear-gradient(180deg, rgba(7, 17, 34, 0.24), rgba(3, 8, 18, 0.08)) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.home-page .guide-cta-panel,
.home-page .news-slider-wrapper,
.home-page .partner-item,
.home-page .about-content {
    border-color: rgba(116, 190, 255, 0.2);
    box-shadow: 0 18px 48px rgba(0, 4, 14, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.home-page .partner-item:hover {
    border-color: rgba(103, 212, 232, 0.42);
    box-shadow: 0 20px 52px rgba(0, 9, 24, 0.36), 0 0 24px rgba(103, 212, 232, 0.08);
}

.home-page :is(
    .ip-box,
    .footer-ip-box,
    .join-guide-close,
    .join-guide-copy-btn,
    .join-guide-launch-link,
    .news-slider-arrow,
    .news-slider-dot,
    .footer-social-btn
):focus-visible {
    outline: 3px solid rgba(103, 212, 232, 0.95);
    outline-offset: 3px;
    box-shadow: 0 0 0 5px rgba(103, 212, 232, 0.16);
}

@media (prefers-reduced-motion: reduce) {
    .home-page .partner-item,
    .home-page .guide-cta-panel,
    .home-page .news-slider-wrapper,
    .home-page .about-content {
        transition: none !important;
    }
}

.announcement-card.no-banner.news-template-light-blue,
.latest-news-card.no-banner.news-template-light-blue,
.spotlight-card-no-image.news-template-light-blue {
    background:
        linear-gradient(120deg, rgba(2, 6, 23, 0.86), rgba(2, 6, 23, 0.56)),
        linear-gradient(135deg, #dff6ff 0%, #60a5fa 48%, #1d4ed8 100%) !important;
}

.announcement-card.no-banner.news-template-crystal-gradient,
.latest-news-card.no-banner.news-template-crystal-gradient,
.spotlight-card-no-image.news-template-crystal-gradient {
    background:
        linear-gradient(120deg, rgba(2, 6, 23, 0.84), rgba(2, 6, 23, 0.52)),
        radial-gradient(circle at 18% 18%, rgba(167, 243, 208, 0.72), transparent 32%),
        linear-gradient(135deg, #0891b2 0%, #4f46e5 68%, #111827 100%) !important;
}

.announcement-card.no-banner.news-template-sunset-gradient,
.latest-news-card.no-banner.news-template-sunset-gradient,
.spotlight-card-no-image.news-template-sunset-gradient {
    background:
        linear-gradient(120deg, rgba(2, 6, 23, 0.84), rgba(2, 6, 23, 0.5)),
        linear-gradient(135deg, #fb7185 0%, #f59e0b 58%, #1e293b 100%) !important;
}

.announcement-card.no-banner.news-template-emerald-gradient,
.latest-news-card.no-banner.news-template-emerald-gradient,
.spotlight-card-no-image.news-template-emerald-gradient {
    background:
        linear-gradient(120deg, rgba(2, 6, 23, 0.84), rgba(2, 6, 23, 0.52)),
        radial-gradient(circle at 78% 20%, rgba(187, 247, 208, 0.52), transparent 30%),
        linear-gradient(135deg, #064e3b 0%, #0f766e 56%, #172554 100%) !important;
}

@media (max-width: 640px) {
    .news-slider-wrapper.news-slider-has-tabs .news-slider-arrow {
        display: none !important;
    }

    .news-slider-wrapper.news-slider-has-tabs .news-slide-content,
    .news-slider-wrapper.news-slider-has-tabs .news-slide.no-banner .news-slide-content {
        width: 100%;
        max-width: 100%;
        padding: 24px 20px 96px !important;
    }

    .news-slider-wrapper.news-slider-has-tabs .news-slider-dots {
        left: 14px !important;
        right: auto !important;
        bottom: 36px !important;
    }

    .news-slider-wrapper.news-slider-has-tabs .news-slider-progress {
        left: 14px !important;
        right: 14px !important;
        bottom: 10px !important;
    }

    .announcement-actions,
    .announcement-action-btn {
        width: 100%;
    }
}

/* Simple news overview and article views */
.news-page .page-content {
    width: min(100%, 1200px);
}

.news-page .page-header {
    margin-top: 0;
}

.legal-shell .page-header {
    margin-top: 0;
}

.news-page .news-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
}

.news-page .news-card {
    display: grid;
    grid-template-columns: minmax(260px, 36%) minmax(0, 1fr);
    overflow: hidden;
    color: var(--text-white);
    text-decoration: none;
    background: var(--mc-card);
    border: 2px solid var(--mc-border);
    border-bottom-width: 4px;
    border-radius: 4px;
    box-shadow: 0 5px 0 rgba(0, 0, 0, 0.24);
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.news-page .news-card.no-banner {
    grid-template-columns: 1fr;
}

.news-page .news-card:hover {
    border-color: var(--mc-blue-light);
    transform: translateY(-2px);
    box-shadow: 0 7px 0 rgba(0, 0, 0, 0.24);
}

.news-page .news-card-media {
    min-height: 220px;
    overflow: hidden;
    background: var(--mc-dark);
}

.news-page .news-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.news-page .news-card:hover .news-card-media img {
    transform: scale(1.015);
}

.news-page .news-card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    min-width: 0;
    padding: 26px;
}

.news-page .news-card-body h2 {
    margin: 0 0 8px;
    color: var(--mc-blue-light);
    font-family: 'VT323', monospace;
    font-size: clamp(2rem, 3vw, 2.45rem);
    font-weight: 600;
    line-height: 1;
    text-shadow: 2px 2px 0 rgba(30, 64, 175, 0.7);
}

.news-page .news-card-meta,
.news-page .news-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    color: #8da0ba;
    font-size: 0.78rem;
}

.news-page .news-card-body p {
    margin: 14px 0 0;
    color: var(--text-gray);
    font-size: 0.92rem;
    line-height: 1.7;
}

.news-page .news-card-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    margin-top: 18px;
    padding: 8px 14px;
    color: #fff;
    background: var(--mc-blue);
    border: 2px solid var(--mc-blue-dark);
    border-radius: 2px;
    box-shadow: 0 3px 0 var(--mc-blue-dark);
    font-family: 'VT323', monospace;
    font-size: 1.15rem;
    line-height: 1;
}

.news-page.news-article-view .page-header {
    display: none;
}

.news-page.news-article-view .page-content {
    padding-top: 140px;
}

.news-page .news-article {
    width: min(100%, 820px);
    margin: 0 auto;
}

.news-page .news-article-back,
.news-page .news-state a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--mc-blue-light);
    font-weight: 600;
    text-decoration: none;
}

.news-page .news-article-header {
    margin: 30px 0 24px;
}

.news-page .news-article-header h1 {
    margin: 0 0 10px;
    color: var(--text-white);
    font-family: 'VT323', monospace;
    font-size: clamp(3rem, 7vw, 4.5rem);
    font-weight: 700;
    line-height: 0.95;
    text-shadow: 3px 3px 0 var(--mc-blue-dark);
}

.news-page .news-article-banner {
    display: block;
    width: 100%;
    max-height: 500px;
    margin-bottom: 28px;
    object-fit: cover;
    border: 2px solid var(--mc-border);
    border-bottom-width: 4px;
    border-radius: 4px;
}

.news-page .news-article-content {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.85;
    overflow-wrap: anywhere;
}

.news-page .news-article-content a {
    color: var(--mc-blue-light);
}

.news-page .news-article .announcement-copy-btn {
    min-height: 44px;
    margin-top: 28px;
}

.news-page .news-state {
    padding: 44px 24px;
    text-align: center;
    color: var(--text-gray);
    background: var(--mc-card);
    border: 2px solid var(--mc-border);
    border-radius: 4px;
}

.news-page .news-state h2 {
    margin-bottom: 8px;
    color: var(--mc-blue-light);
    font-family: 'VT323', monospace;
    font-size: 2.2rem;
}

.news-page .news-state a {
    justify-content: center;
    margin-top: 18px;
}

.news-page .news-card:focus-visible,
.news-page .news-article-back:focus-visible,
.news-page .news-state a:focus-visible {
    outline: 3px solid var(--mc-blue-light);
    outline-offset: 4px;
}

@media (max-width: 820px) {
    .news-page .news-card {
        grid-template-columns: 1fr;
    }

    .news-page .news-card-media,
    .news-page .news-card-media img {
        min-height: 180px;
        max-height: 280px;
    }

    .news-page .news-card-body {
        padding: 20px;
    }

    .news-page.news-article-view .page-content {
        padding-top: 118px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .news-page .news-card,
    .news-page .news-card-media img {
        transition: none;
    }
}

/* Keep the homepage visual treatment without continuous compositor work. */
.home-page,
.home-page .hero-bg,
.home-page .hero-banner,
.home-page .hero-logo,
.home-page .stars,
.home-page .comet,
.home-page .cube {
    animation: none;
}

.home-page {
    background-attachment: scroll;
}

.cookie-notice {
    position: fixed;
    z-index: 10002;
    top: max(104px, calc(88px + env(safe-area-inset-top)));
    right: max(16px, env(safe-area-inset-right));
    bottom: auto;
    left: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: calc(100vw - 32px);
    max-width: 400px;
    max-height: calc(100vh - 196px);
    overflow-y: auto;
    margin: 0;
    padding: 16px 18px;
    border: 1px solid #3e5570;
    border-top: 3px solid #76bfff;
    border-radius: 12px;
    background: linear-gradient(145deg, #17253a, #101b2d);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
    color: #f4f8ff;
    font: 400 0.9rem/1.5 'Poppins', sans-serif;
}

.cookie-notice strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1rem;
}

.cookie-notice p { margin: 0; color: #d3deec; }

.cookie-notice a { color: #9ed4ff; text-underline-offset: 3px; }

.cookie-notice-dismiss {
    flex: 0 0 auto;
    align-self: flex-end;
    min-height: 44px;
    padding: 9px 18px;
    border: 1px solid #78bbf0;
    border-radius: 7px;
    background: #256fa8;
    color: #fff;
    font: 600 0.9rem 'Poppins', sans-serif;
    cursor: pointer;
    transition: background 0.18s ease;
}

.cookie-notice-dismiss:hover { background: #2e80bd; }

.cookie-notice a:focus-visible,
.cookie-notice-dismiss:focus-visible {
    outline: 2px solid #b8e2ff;
    outline-offset: 3px;
}

@media (max-width: 600px) {
    .cookie-notice {
        top: max(100px, calc(88px + env(safe-area-inset-top)));
        right: max(12px, env(safe-area-inset-right));
        left: max(12px, env(safe-area-inset-left));
        width: auto;
        max-height: calc(100vh - 184px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-notice-dismiss { transition: none; }
}
