/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-deep: #030308;
    --bg: rgba(14, 16, 34, 0.8);
    --bg-strong: rgba(7, 9, 20, 0.97);
    --surface: rgba(255, 255, 255, 0.08);
    --surface-hover: rgba(255, 255, 255, 0.13);
    --surface-soft: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 196, 92, 0.26);
    --text: #f8f9ff;
    --muted: #a3b0cc;
    --primary: #2de8ff;
    --primary-2: #4d7cff;
    --accent: #ffc14d;
    --accent-2: #ff5c9a;
    --glow: rgba(45, 232, 255, 0.42);
    --shadow-lg: 0 24px 80px rgba(0, 0, 0, 0.45);
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-pill: 999px;
    --font-display: 'Outfit', 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --header-h: 72px;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.65;
    color: var(--text);
    background: var(--bg-deep);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.ambient-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(ellipse 72% 48% at 12% -8%, rgba(255, 193, 77, 0.22), transparent 52%),
        radial-gradient(ellipse 62% 42% at 92% 6%, rgba(77, 124, 255, 0.26), transparent 50%),
        radial-gradient(ellipse 54% 44% at 48% 102%, rgba(45, 232, 255, 0.16), transparent 54%),
        linear-gradient(180deg, #030308 0%, #0b0d1e 42%, #060612 100%);
}

.ambient-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    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: 64px 64px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 20%, transparent 75%);
    opacity: 0.5;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.55;
    animation: orbFloat 18s var(--ease-out) infinite alternate;
}

.orb-1 { width: 420px; height: 420px; background: #4d7cff; top: -8%; left: -5%; }
.orb-2 { width: 360px; height: 360px; background: #ffc14d; top: 20%; right: -8%; animation-delay: -6s; }
.orb-3 { width: 280px; height: 280px; background: #2de8ff; bottom: 5%; left: 30%; animation-delay: -12s; opacity: 0.4; }

@keyframes orbFloat {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(24px, -20px) scale(1.08); }
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    opacity: 0.35;
    pointer-events: none;
}

.container {
    max-width: min(1200px, 92vw);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.75rem 0;
    transition: background 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    background: var(--bg-strong);
    backdrop-filter: blur(20px) saturate(1.4);
    border-bottom-color: var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: min(1200px, 92vw);
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    text-decoration: none;
    transition: transform 0.3s var(--ease-out), color 0.3s ease;
    cursor: pointer;
}

.nav-brand:hover {
    transform: translateY(-1px);
    color: var(--primary);
}

.nav-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(94, 231, 255, 0.45);
    box-shadow: 0 0 14px var(--glow);
    transition: transform 0.35s var(--ease-out);
    flex-shrink: 0;
}

.nav-brand:hover .nav-avatar {
    transform: scale(1.06);
}

.nav-brand i {
    font-size: 1.35rem;
    color: var(--primary);
    filter: drop-shadow(0 0 12px var(--glow));
    transition: transform 0.35s var(--ease-out);
}

.nav-brand:hover i {
    transform: rotate(-8deg) scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-menu a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.25s ease, background 0.25s ease;
    position: relative;
    padding: 0.45rem 0.75rem;
    border-radius: var(--radius-sm);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--text);
    background: var(--surface);
}

.nav-menu a.active {
    box-shadow: inset 0 0 0 1px var(--glass-border);
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.theme-toggle:hover {
    background: rgba(0, 212, 255, 0.2);
    transform: scale(1.1);
    border-color: rgba(0, 212, 255, 0.4);
}

.theme-toggle i {
    font-size: 1rem;
    color: #00d4ff;
}

.theme-toggle:hover i {
    color: #fff;
}

/* Theme text styles - hidden by default */
.theme-text {
    display: none;
    font-size: 0.9rem;
    font-weight: 500;
    color: #00d4ff;
    margin-left: 8px;
    white-space: nowrap;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    z-index: 1002;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #00d4ff;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
    box-shadow: 0 0 5px rgba(0, 212, 255, 0.5);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
    background: #fff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
    background: #fff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
    min-height: 100vh;
    padding: calc(var(--header-h) + 48px) 0 80px;
    position: relative;
}

.hero-content {
    flex: 1;
    z-index: 2;
    position: relative;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem 0.35rem 0.5rem;
    margin-bottom: 1.25rem;
    border-radius: var(--radius-pill);
    background: var(--surface);
    border: 1px solid var(--glass-border);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted);
    backdrop-filter: blur(12px);
}

.hero-eyebrow .pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 12px #34d399;
    animation: pulseDot 2s ease infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.85); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1.25rem;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.gradient-text {
    background: linear-gradient(115deg, var(--accent) 0%, var(--primary) 38%, var(--primary-2) 72%, var(--accent-2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--muted);
    margin-bottom: 2rem;
    max-width: 520px;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.stat-pill {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.75rem 1rem;
    min-width: 110px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
}

.stat-pill strong {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
}

.stat-pill span {
    font-size: 0.75rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn {
    border-radius: var(--radius-pill);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #061018;
    box-shadow: 0 8px 28px var(--glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px var(--glow);
    filter: brightness(1.05);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
}

.btn-secondary:hover {
    background: var(--surface-hover);
    transform: translateY(-3px);
    border-color: rgba(255, 193, 77, 0.45);
}

.btn-ghost {
    background: transparent;
    color: var(--primary);
    border: 1px solid rgba(94, 231, 255, 0.35);
}

.btn-ghost:hover {
    background: rgba(94, 231, 255, 0.08);
    transform: translateY(-2px);
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.minecraft-world {
    position: relative;
    width: min(380px, 100%);
    height: 380px;
    margin: 0 auto;
}

.minecraft-world::before {
    content: '';
    position: absolute;
    inset: 10%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(94, 231, 255, 0.15), transparent 70%);
    filter: blur(20px);
}

.cube {
    position: absolute;
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(94, 231, 255, 0.25), rgba(43, 140, 255, 0.15));
    border: 1px solid rgba(94, 231, 255, 0.35);
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    animation: float 6s ease-in-out infinite;
}

.cube-1 {
    top: 50px;
    left: 50px;
    animation-delay: 0s;
}

.cube-2 {
    top: 120px;
    left: 150px;
    animation-delay: 1.5s;
}

.cube-3 {
    top: 80px;
    left: 220px;
    animation-delay: 3s;
}

.cube-4 {
    top: 180px;
    left: 80px;
    animation-delay: 4.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    margin-bottom: 0.75rem;
    padding: 0.35rem 0.85rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
    border-radius: var(--radius-pill);
    background: rgba(94, 231, 255, 0.08);
    border: 1px solid rgba(94, 231, 255, 0.2);
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 1.05rem;
    color: var(--muted);
    max-width: 560px;
    margin: 0 auto;
}

/* About Section */
.about {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.02);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.about-card,
.feature-item,
.info-card,
.instruction-card,
.rules-block {
    background: var(--surface);
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    transition: transform 0.35s var(--ease-out), border-color 0.35s ease, box-shadow 0.35s ease;
    backdrop-filter: blur(20px) saturate(1.2);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.about-card {
    text-align: left;
}

.about-card:hover,
.feature-item:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 193, 77, 0.45);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 1.25rem;
    font-size: 1.35rem;
    color: #061018;
    box-shadow: 0 8px 24px var(--glow);
}

.about-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.65rem;
}

.about-card p {
    color: var(--muted);
    line-height: 1.65;
    font-size: 0.95rem;
}

/* Connect Section */
.connect {
    padding: 80px 0;
}

.connect-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.info-card-group {
    display: grid;
    gap: 1rem;
}

.server-switch {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius);
    padding: 4px;
    gap: 4px;
    backdrop-filter: blur(10px);
}

.switch-btn {
    appearance: none;
    border: none;
    padding: 8px 12px;
    border-radius: calc(var(--radius) - 4px);
    font-weight: 600;
    font-size: 0.9rem;
    color: #b0b0b0;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.switch-btn:hover { color: #fff; }

.switch-btn.active {
    color: #0b0b0b;
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.25);
}

.hidden { display: none; }

.info-card, .instruction-card {
    padding: 1.75rem;
}

.info-card h3, .instruction-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-item:last-child {
    border-bottom: none;
}

.label {
    color: #b0b0b0;
    font-weight: 500;
}

.value {
    color: #00d4ff;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid transparent;
}

.value:hover {
    color: #fff;
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.8), 0 0 30px rgba(0, 212, 255, 0.4);
    transform: scale(1.05);
    background: rgba(0, 212, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3), inset 0 0 10px rgba(0, 212, 255, 0.1);
}

.value::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    border-radius: 6px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.value:hover::before {
    opacity: 1;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.steps {
    list-style: none;
}

.steps li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border-left: 3px solid #00d4ff;
}

.step-number {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.step-content h4 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step-content p {
    color: #b0b0b0;
    font-size: 0.9rem;
}

.step-content code {
    background: rgba(0, 212, 255, 0.2);
    color: #00d4ff;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

/* Features Section */
.features {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.02);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-item {
    text-align: left;
}

.feature-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 1.25rem;
    font-size: 1.35rem;
    color: #fff;
    box-shadow: 0 8px 24px rgba(167, 139, 250, 0.25);
}

.feature-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1rem;
}

.feature-item p {
    color: #b0b0b0;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: linear-gradient(180deg, transparent, rgba(6, 6, 15, 0.9));
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.footer-section h3, .footer-section h4 {
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 600;
    text-align: center;
}

.footer-section p {
    color: #b0b0b0;
    line-height: 1.6;
    text-align: center;
}

.footer-section ul {
    list-style: none;
    text-align: center;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #b0b0b0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #00d4ff;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #00d4ff;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: #b0b0b0;
    font-size: 0.9rem;
}

/* News Page Styles */
.news-hero {
    padding: calc(var(--header-h) + 48px) 0 64px;
    text-align: center;
    position: relative;
}

.news-hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.news-hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}

.news-hero-subtitle {
    font-size: 1.2rem;
    color: #b0b0b0;
    margin-bottom: 2rem;
}

.news-section {
    padding: 80px 0;
    background: transparent;
}

.news-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* News Filter */
.news-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(0, 212, 255, 0.1);
    border: 2px solid rgba(0, 212, 255, 0.3);
    color: #00d4ff;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: rgba(0, 212, 255, 0.2);
    border-color: #00d4ff;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.news-item {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.news-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00d4ff, #0099cc);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.5);
}

.news-item:hover::before {
    transform: scaleX(1);
}

.news-image {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: #fff;
    transition: all 0.3s ease;
}

.news-item:hover .news-image {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.4);
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.news-date {
    color: #888;
}

.news-category {
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-category.update {
    background: rgba(0, 212, 255, 0.2);
    color: #00d4ff;
}

.news-category.event {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.news-category.announcement {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.news-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.news-excerpt {
    color: #b0b0b0;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.news-footer {
    display: flex;
    justify-content: flex-end;
}

.read-more-btn {
    background: transparent;
    border: 1px solid rgba(94, 231, 255, 0.45);
    color: var(--primary);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.read-more-btn:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: #00d4ff;
    color: #fff;
    transform: translateX(5px);
}

.read-more-btn i {
    transition: transform 0.3s ease;
}

.read-more-btn:hover i {
    transform: translateX(3px);
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin-top: 3rem;
}

.load-more-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    border: none;
    color: #fff;
    padding: 15px 30px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

.load-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
}

.load-more-btn:active {
    transform: translateY(-1px);
}

/* Active Navigation Link */
.nav-menu a.active {
    color: var(--text);
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--glass-border);
}

/* Rules Page */
.page-hero {
    padding: calc(var(--header-h) + 56px) 0 48px;
    text-align: center;
}

.page-hero .section-header {
    margin-bottom: 0;
}

.rules-section {
    padding: 0 0 80px;
}

.rules-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
    padding: 6px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-pill);
    backdrop-filter: blur(16px);
}

.rules-tab {
    flex: 1;
    appearance: none;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
    transition: all 0.25s var(--ease-out);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.rules-tab:hover {
    color: var(--text);
}

.rules-tab.active {
    color: #061018;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: 0 6px 20px var(--glow);
}

.rules-panel {
    display: none;
    animation: fadePanel 0.4s var(--ease-out);
}

.rules-panel.active {
    display: block;
}

@keyframes fadePanel {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.rules-grid {
    display: grid;
    gap: 1.25rem;
}

.rule-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.25rem;
    align-items: start;
    padding: 1.5rem 1.75rem;
}

.rule-number {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(255, 193, 77, 0.2), rgba(45, 232, 255, 0.12));
    border: 1px solid rgba(255, 193, 77, 0.35);
    color: var(--accent);
}

.rule-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.rule-card p,
.rule-card ul {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.65;
}

.rule-card ul {
    margin-top: 0.5rem;
    padding-left: 1.25rem;
}

.rule-card li {
    margin-bottom: 0.35rem;
}

.rules-notice {
    margin-top: 2rem;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius);
    background: rgba(244, 114, 182, 0.08);
    border: 1px solid rgba(244, 114, 182, 0.25);
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.rules-notice i {
    color: var(--accent-2);
    font-size: 1.25rem;
    margin-top: 0.15rem;
}

.rules-notice p {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.rules-notice strong {
    color: var(--text);
}

.cta-banner {
    margin-top: 3rem;
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    background: linear-gradient(135deg, rgba(94, 231, 255, 0.1), rgba(167, 139, 250, 0.08));
    border: 1px solid var(--glass-border);
}

.cta-banner h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.cta-banner p {
    color: var(--muted);
    margin-bottom: 1.25rem;
}

.cta-banner .hero-buttons {
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(300px, 88vw);
        height: 100vh;
        max-height: 100dvh;
        background: rgba(10, 12, 28, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 80px 30px max(30px, env(safe-area-inset-bottom));
        transition: right 0.3s ease;
        z-index: 1000;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        width: 100%;
        margin: 10px 0;
    }
    
    .nav-menu a {
        display: block;
        padding: 12px 0;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    }
    
    .nav-menu a:hover {
        background: rgba(0, 212, 255, 0.1);
        padding-left: 10px;
    }
    
    .mobile-menu-toggle {
        display: flex;
        position: relative;
        z-index: 1002;
        background: rgba(0, 212, 255, 0.1);
        border-radius: 6px;
        padding: 8px;
        border: 1px solid rgba(0, 212, 255, 0.2);
    }
    
    .mobile-menu-toggle:hover {
        background: rgba(0, 212, 255, 0.2);
        transform: scale(1.05);
    }
    
    .theme-toggle {
        position: static;
        margin-top: 20px;
        width: 100%;
        justify-content: center;
        border-radius: 8px;
        align-items: center;
        gap: 8px;
        padding: 8px 16px;
        background: rgba(0, 212, 255, 0.1);
        border: 1px solid rgba(0, 212, 255, 0.2);
        min-width: 120px;
        min-height: 44px;
    }
    
    .theme-toggle:hover {
        background: rgba(0, 212, 255, 0.2);
        transform: scale(1.05);
    }
    
    .theme-text {
        display: inline;
        font-size: 0.8rem;
        font-weight: 500;
        color: #00d4ff;
    }
    
    .theme-toggle:hover .theme-text {
        color: #fff;
    }
    
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: calc(var(--header-h) + 24px) 0 60px;
    }

    .hero-subtitle,
    .hero-stats {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-eyebrow {
        margin-left: auto;
        margin-right: auto;
    }

    .about-card,
    .feature-item {
        text-align: center;
    }

    .card-icon,
    .feature-icon {
        margin-left: auto;
        margin-right: auto;
    }

    .rule-card {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .rule-number {
        width: fit-content;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .connect-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .about-grid, .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-section {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .social-links {
        justify-content: center;
    }

    .news-hero-title {
        font-size: 2.5rem;
    }
    
    .news-hero-subtitle {
        font-size: 1rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .news-filter {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 0.8rem;
    }
    
    .news-item {
        padding: 1.5rem;
    }
    
    .news-title {
        font-size: 1.1rem;
    }
}

/* Focus styles for accessibility */
:where(a, button, .btn, .theme-toggle):focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

@media (max-width: 480px) {
    .mobile-menu-toggle {
        padding: 6px;
        background: rgba(0, 212, 255, 0.15);
        border: 1px solid rgba(0, 212, 255, 0.3);
    }
    
    .mobile-menu-toggle span {
        width: 22px;
        height: 2px;
    }
    
    .theme-toggle {
        min-width: 100px;
        padding: 6px 12px;
    }
    
    .theme-text {
        font-size: 0.75rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .minecraft-world {
        width: 200px;
        height: 200px;
    }
    
    .cube {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 360px) {
    .mobile-menu-toggle {
        padding: 4px;
        background: rgba(0, 212, 255, 0.2);
    }
    
    .mobile-menu-toggle span {
        width: 20px;
        height: 2px;
        margin: 2px 0;
    }
    
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .nav {
        padding: 0 15px;
    }
    
    .footer-content {
        gap: 1rem;
    }
    
    .news-item {
        padding: 1rem;
    }
    
    .news-title {
        font-size: 1rem;
    }
    
    .news-excerpt {
        font-size: 0.9rem;
    }
}

/* Добавляем поддержку очень больших экранов */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .nav {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .section-header h2 {
        font-size: 3rem;
    }
    
    .about-grid, .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
    
    .connect-container {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

/* Добавляем поддержку планшетов в портретной ориентации */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .hero {
        padding: 120px 0 80px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .about-grid, .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .connect-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Добавляем поддержку ландшафтной ориентации на мобильных */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 80px 0 40px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .nav-menu {
        padding: 60px 20px 20px;
    }
    
    .mobile-menu-toggle {
        padding: 4px;
    }
    
    .mobile-menu-toggle span {
        width: 18px;
        height: 2px;
    }
}

/* Moderator application form */
.form-section {
    padding: 0 0 80px;
}

.application-form {
    max-width: 640px;
    margin: 0 auto;
    padding: 2rem;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
}

.form-grid {
    display: grid;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

.form-group label .required {
    color: var(--accent-2);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.25);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: rgba(94, 231, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(94, 231, 255, 0.12);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-hint {
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.5;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--muted);
    cursor: pointer;
}

.form-checkbox input {
    margin-top: 0.2rem;
    accent-color: var(--primary);
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
}

.form-actions .btn {
    flex: 1;
    min-width: 160px;
    justify-content: center;
}

.form-privacy {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: var(--radius);
    background: rgba(94, 231, 255, 0.06);
    border: 1px solid rgba(94, 231, 255, 0.15);
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.6;
}

.form-privacy a {
    color: var(--accent);
}

.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.success-card {
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
    padding: 2.5rem 2rem;
}

.success-card .success-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #061018;
    box-shadow: 0 12px 32px var(--glow);
}

@media (max-width: 768px) {
    .application-form {
        padding: 1.5rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }
}