@import url('https://fonts.googleapis.com/css2?family=VT323&family=Share+Tech+Mono&display=swap');

:root {
    --primary-color: #00FF00;
    --secondary-color: #000000;
    --accent-color: #00CC00;
    --dim-color: #006600;
    --text-color: #00CC00;
    --surface: #000800;
    --border: #00AA00;
    --glow-pink: 0 0 8px #00FF00, 0 0 16px rgba(0,255,0,0.4);
    --glow-cyan: 0 0 8px #00FF00, 0 0 16px rgba(0,255,0,0.4);
    --glow-purple: 0 0 8px #00FF00, 0 0 16px rgba(0,255,0,0.4);
    --glow-green: 0 0 8px #00FF00, 0 0 16px rgba(0,255,0,0.4);
    --glow-strong: 0 0 20px #00FF00, 0 0 40px rgba(0,255,0,0.3), 0 0 60px rgba(0,255,0,0.1);
    --neon-yellow: #00FF00;
    --neon-purple: #00CC00;
    --neon-orange: #00AA00;
    --grid-color: rgba(0,255,0,0.15);

    --ease-out: cubic-bezier(.16,1,.3,1);
    --ease-inout: cubic-bezier(.4,0,.2,1);
    --ease-bounce: cubic-bezier(.34,1.56,.64,1);
    --dur-fast: 140ms;
    --dur-med: 260ms;
    --dur-slow: 520ms;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Share Tech Mono', 'Courier New', monospace;
}

body {
    background-color: #000;
    background-image: 
        radial-gradient(ellipse at 50% 0%, rgba(0,255,0,0.03) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 80%, rgba(0,170,0,0.02) 0%, transparent 50%),
        linear-gradient(180deg, #000000 0%, #000500 50%, #000200 100%);
    color: var(--accent-color);
    line-height: 1.6;
    overflow-x: hidden;
    text-rendering: geometricPrecision;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

@keyframes rw-page-in {
    from { opacity: 0; filter: blur(6px); }
    to   { opacity: 1; filter: blur(0); }
}

@keyframes rw-float-in {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes rw-glow-pulse {
    0%, 100% { box-shadow: 0 0 0 rgba(0,255,0,0); }
    50%      { box-shadow: 0 0 16px rgba(0,255,0,.18); }
}

@keyframes rw-scan-line {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100vh); }
}

@keyframes rw-data-stream {
    0% { background-position: 0% 0%; }
    100% { background-position: 0% 100%; }
}

@keyframes rw-glitch {
    0%, 100% { transform: translate(0); filter: none; }
    20% { transform: translate(-2px, 2px); filter: hue-rotate(90deg); }
    40% { transform: translate(2px, -2px); filter: hue-rotate(-90deg); }
    60% { transform: translate(-1px, -1px); }
    80% { transform: translate(1px, 1px); }
}

@keyframes rw-cursor-blink {
    0%, 45% { opacity: 1; }
    46%, 100% { opacity: 0; }
}

@keyframes rw-flicker {
    0%   { opacity: 1; }
    2%   { opacity: .92; }
    3%   { opacity: 1; }
    7%   { opacity: .96; }
    8%   { opacity: 1; }
    100% { opacity: 1; }
}

@keyframes rw-border-sweep {
    0%   { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}

/* ── CRT Scanlines ── */
body::after {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 1px,
        rgba(0,0,0,0.2) 1px,
        rgba(0,0,0,0.2) 2px
    );
    pointer-events: none;
    z-index: 999;
    animation: scanlineMove 8s linear infinite;
}

@keyframes scanlineMove {
    0% { background-position: 0 0; }
    100% { background-position: 0 100px; }
}

/* ── Reveal on scroll (utility) ─────────────────────────────── */
.rw-reveal {
    opacity: 0;
    transform: translateY(18px) scale(.99);
    filter: blur(6px);
    transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out), filter var(--dur-slow) var(--ease-out);
    transition-delay: var(--rw-delay, 0ms);
    will-change: transform, opacity, filter;
}

.rw-reveal.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* ── Panel/Card modern hover ───────────────────────────────── */
.hero-content,
.feature-card,
.bg-panel,
.rule-section,
.faq-category {
    position: relative;
}

.hero-content::after,
.feature-card::after,
.bg-panel::after,
.rule-section::after,
.faq-category::after {
    content: '';
    position: absolute;
    inset: -1px;
    pointer-events: none;
    opacity: 0;
    background: linear-gradient(90deg, rgba(0,255,0,0) 0%, rgba(0,255,0,.15) 50%, rgba(0,255,0,0) 100%);
    background-size: 220% 100%;
    mix-blend-mode: screen;
    transition: opacity var(--dur-med) var(--ease-inout);
    animation: rw-border-sweep 1.6s linear infinite;
}

.hero-content:hover,
.feature-card:hover,
.bg-panel:hover,
.rule-section:hover,
.faq-category:hover {
    transform: translateY(-3px);
    transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-inout), border-color var(--dur-med) var(--ease-inout);
    box-shadow: 0 0 30px rgba(0,255,0,.2);
}

.hero-content:hover::after,
.feature-card:hover::after,
.bg-panel:hover::after,
.rule-section:hover::after,
.faq-category:hover::after {
    opacity: .4;
}

/* ── CRT subtle flicker on key UI blocks ───────────────────── */
.hero-content,
.bg-panel {
    animation-name: rw-float-in, rw-flicker;
    animation-duration: var(--dur-slow), 6s;
    animation-timing-function: var(--ease-out), linear;
    animation-iteration-count: 1, infinite;
    animation-fill-mode: both, none;
}

/* ── Glitch effect on hover for titles ─────────────────────── */
h1:hover, h2:hover, h3:hover {
    animation: rw-glitch 0.3s ease;
}

/* ── Navigation ── */
.navbar {
    background: linear-gradient(180deg, rgba(0,0,0,0.98) 0%, rgba(0,5,0,0.95) 100%);
    padding: 0.6rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 12px rgba(0,255,0,0.2), inset 0 -1px 0 rgba(0,255,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all var(--dur-med) var(--ease-inout);
}

.navbar::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.5;
}

.logo h1 {
    font-family: 'VT323', monospace;
    color: var(--primary-color);
    font-size: 1.6rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: var(--glow-strong);
    position: relative;
    animation: neonFlicker 3s infinite;
}

.logo h1::before {
    content: '> ';
    opacity: 0.6;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    font-family: 'VT323', monospace;
    color: var(--dim-color);
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all var(--dur-fast) var(--ease-out);
    position: relative;
    padding: 0.2rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transform: scaleX(0);
    transition: all var(--dur-med) var(--ease-bounce);
    box-shadow: 0 0 8px var(--primary-color);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    opacity: 1;
    transform: scaleX(1);
}

.nav-links a::before { content: '> '; opacity: 0; }

.nav-links a:hover::before,
.nav-links a.active::before { opacity: 1; }

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
    text-shadow: var(--glow-strong);
    transform: translateY(-1px);
}

/* ── Hero Section ── */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: left;
    padding: 6rem 2rem 3rem;
    position: relative;
    overflow: hidden;
    background: #000;
}

.hero::before { display: none; }
.hero::after  { display: none; }

/* hide decorative SVGs */
.retro-sun-lines, .palm-left, .palm-right { display: none; }

.hero-content {
    max-width: 860px;
    width: 100%;
    margin-bottom: 2rem;
    position: relative;
    z-index: 5;
    border: 1px solid var(--border);
    padding: 2rem;
    background: linear-gradient(135deg, rgba(0,9,0,0.95) 0%, rgba(0,15,0,0.9) 100%);
    box-shadow: 
        0 0 20px rgba(0,255,0,0.1),
        inset 0 1px 0 rgba(0,255,0,0.1),
        inset 0 -1px 0 rgba(0,0,0,0.5);
    animation: rw-float-in var(--dur-slow) var(--ease-out) both;
    will-change: transform;
    backdrop-filter: blur(10px);
}

.hero-content::before {
    content: 'ROSEWOOD RP SYSTEM BIOS v1.0  (C) 1986';
    display: block;
    font-family: 'VT323', monospace;
    font-size: 1rem;
    color: var(--dim-color);
    border-bottom: 1px solid var(--dim-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
    position: relative;
}

.hero-content::before::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 30%;
    height: 1px;
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

.hero h1 {
    font-family: 'VT323', monospace;
    font-size: 2.8rem;
    font-weight: 400;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
    text-shadow: var(--glow-strong);
    letter-spacing: 4px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    animation: neonFlicker 4s infinite;
}

.hero p {
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
    color: var(--accent-color);
    letter-spacing: 1px;
}

.hero-buttons { display: flex; gap: 1rem; margin-top: 1.5rem; flex-wrap: wrap; }

.cta-button {
    font-family: 'VT323', monospace;
    padding: 0.5rem 2rem;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, #000500 0%, #000 100%);
    font-size: 1.2rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-decoration: none;
    display: inline-block;
    color: var(--primary-color);
    transition: all var(--dur-med) var(--ease-out);
    position: relative;
    overflow: hidden;
}
.cta-button::before { content: '[ '; }
.cta-button::after  { content: ' ]'; }
.cta-button::before,
.cta-button::after { transition: color var(--dur-fast); }

.cta-button.primary { 
    background: linear-gradient(180deg, #003300 0%, #001a00 100%); 
    box-shadow: var(--glow-green), inset 0 1px 0 rgba(0,255,0,0.2);
    border-color: var(--primary-color);
}
.cta-button:hover   { 
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--accent-color) 100%); 
    color: #000; 
    transform: translateY(-2px); 
    box-shadow: var(--glow-strong);
}
.cta-button:hover::before,
.cta-button:hover::after { color: #000; }
.cta-button:active  { transform: translateY(0); box-shadow: 0 0 8px var(--primary-color); }

.cta-button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,0,0,.9), 0 0 0 3px rgba(0,255,0,.6);
}

.hero-stats { display: flex; gap: 3rem; margin-top: 1.5rem; flex-wrap: wrap; }

.stat-item { 
    text-align: left; 
    position: relative; 
    z-index: 5; 
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(0,5,0,0.6) 0%, rgba(0,0,0,0.8) 100%);
    border: 1px solid var(--dim-color);
    transition: all var(--dur-med) var(--ease-out);
}
.stat-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--dim-color);
    transition: all var(--dur-med);
}
.stat-item:hover {
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(0,255,0,.1);
    transform: translateY(-2px);
}
.stat-item:hover::before {
    background: var(--primary-color);
    box-shadow: 0 0 15px var(--primary-color);
}
.stat-item i { display: none; }

.stat-number {
    font-family: 'VT323', monospace;
    display: block;
    font-size: 2.2rem;
    color: var(--primary-color);
    text-shadow: var(--glow-strong);
    transition: all var(--dur-fast);
}
.stat-item:hover .stat-number {
    text-shadow: 0 0 30px var(--primary-color);
}

.stat-label {
    font-size: 0.82rem;
    color: var(--dim-color);
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color var(--dur-fast);
}
.stat-item:hover .stat-label {
    color: var(--accent-color);
}

/* ── Section Title ── */
.section-title {
    text-align: left;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--dim-color);
    padding-bottom: 0.8rem;
    position: relative;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 80px;
    height: 2px;
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

.section-title h2 {
    font-family: 'VT323', monospace;
    font-size: 1.6rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow: var(--glow-strong);
    animation: neonFlicker 4s infinite;
}
.section-title h2::before { content: '>> '; color: var(--dim-color); }

.section-title i { display: none; }

/* ── Features Section ── */
.features {
    padding: 3rem 2rem;
    background: #000;
    border-top: 1px solid var(--dim-color);
}
.features::before { display: none; }

@keyframes borderFlow { 0%,100% { opacity:1; } }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1px;
    max-width: 1200px;
    margin: 0 auto;
    border: 1px solid var(--dim-color);
}

.feature-card {
    background: linear-gradient(135deg, rgba(0,9,0,0.8) 0%, rgba(0,5,0,0.9) 100%);
    padding: 1.5rem 1.8rem;
    border: none;
    border-right: 1px solid var(--dim-color);
    border-bottom: 1px solid var(--dim-color);
    text-align: left;
    position: relative;
    transition: all var(--dur-med) var(--ease-out);
}
.feature-card::before { 
    display: block;
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--primary-color);
       box-shadow: 0 0 10px var(--primary-color);
    transition: height var(--dur-med) var(--ease-out);
}
.feature-card:hover { 
    background: linear-gradient(135deg, rgba(0,20,0,0.9) 0%, rgba(0,10,0,0.95) 100%);
    box-shadow: inset 0 0 30px rgba(0,255,0,0.05);
}
.feature-card:hover::before { height: 100%; }

.feature-card i { 
    color: var(--dim-color); 
    margin-right: 0.6rem; 
    font-size: 1.1rem; 
    transition: all var(--dur-med) var(--ease-out);
}
.feature-card:hover i { 
    color: var(--primary-color); 
    text-shadow: var(--glow-green);
    transform: scale(1.1);
}

.feature-card h3 {
    font-family: 'VT323', monospace;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: inline;
    transition: color var(--dur-fast);
}
.feature-card:hover h3 {
    color: var(--primary-color);
    text-shadow: 0 0 8px rgba(0,255,0,0.5);
}

.feature-card p { 
    color: var(--dim-color); 
    font-size: 0.85rem; 
    margin-top: 0.5rem; 
    line-height: 1.6;
    transition: color var(--dur-fast);
}
.feature-card:hover p { color: var(--accent-color); }

/* ── Server Info Section ── */
.server-info {
    padding: 3rem 2rem;
    background: #000;
    border-top: 1px solid var(--dim-color);
}
.server-info::before { display: none; }

.info-card {
    max-width: 860px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(0,9,0,0.95) 0%, rgba(0,5,0,0.98) 100%);
    border: 1px solid var(--border);
    box-shadow: var(--glow-green), inset 0 1px 0 rgba(0,255,0,0.1);
    padding: 2rem;
    position: relative;
}
.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.5;
}

.info-card h2 {
    font-family: 'VT323', monospace;
    color: var(--primary-color);
    text-align: left;
    margin-bottom: 1.5rem;
    letter-spacing: 3px;
    font-size: 1.4rem;
    text-shadow: var(--glow-strong);
    animation: neonFlicker 4s infinite;
}
.info-card h2 i { display: none; }

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.2rem;
    background: linear-gradient(90deg, rgba(0,5,0,0.8) 0%, rgba(0,0,0,0.9) 100%);
    border: 1px solid var(--dim-color);
    font-size: 0.85rem;
    transition: all var(--dur-med) var(--ease-out);
    position: relative;
}
.status-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--dim-color);
    transition: all var(--dur-med);
}
.status-item:hover {
    background: linear-gradient(90deg, rgba(0,15,0,0.9) 0%, rgba(0,5,0,0.95) 100%);
    border-color: var(--accent-color);
}
.status-item:hover::before {
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

.status-item i { font-size: 0.9rem; color: var(--dim-color); }
.status-item i.online { color: var(--primary-color); text-shadow: var(--glow-green); }

@keyframes pulse {
    0%,100% { opacity: 1; }
    50%      { opacity: 0.5; }
}

/* ── Gallery Section ── */
.gallery {
    padding: 3rem 2rem;
    background: #000;
    border-top: 1px solid var(--dim-color);
}
.gallery::before { display: none; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1px;
    max-width: 1200px;
    margin: 0 auto;
    border: 1px solid var(--dim-color);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border: none;
    border-right: 1px solid var(--dim-color);
    border-bottom: 1px solid var(--dim-color);
}

.gallery-item img {
    width: 100%; height: 200px;
    object-fit: cover;
    filter: grayscale(100%) brightness(0.5) sepia(1) hue-rotate(80deg) saturate(4);
    transition: filter 0.2s;
}
.gallery-item:hover img { filter: grayscale(100%) brightness(0.7) sepia(1) hue-rotate(80deg) saturate(6); }

.gallery-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,255,0,0.08);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.2s;
}
.gallery-overlay i { color: var(--primary-color); font-size: 1.5rem; }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item:hover .gallery-overlay i { transform: none; }

/* ── Footer ── */
footer {
    background: linear-gradient(180deg, #000000 0%, #000500 100%);
    padding: 3rem 2rem 2rem;
    border-top: 1px solid var(--border);
    position: relative;
}
footer::before { display: none; }
footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.3;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h3 {
    font-family: 'VT323', monospace;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.15rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: var(--glow-green);
    position: relative;
    padding-bottom: 0.5rem;
}
.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
    box-shadow: 0 0 8px var(--primary-color);
}

.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 0.5rem; }
.footer-section ul li a { 
    color: var(--dim-color); 
    text-decoration: none; 
    font-size: 0.88rem; 
    transition: all var(--dur-fast);
    display: inline-block;
}
.footer-section ul li a:hover { 
    color: var(--primary-color); 
    transform: translateX(4px);
    text-shadow: 0 0 8px rgba(0,255,0,0.3);
}
.footer-section ul li a::before { 
    content: '> '; 
    opacity: 0;
    transition: opacity var(--dur-fast);
}
.footer-section ul li a:hover::before { opacity: 1; }

.social-links { display: flex; gap: 1rem; }
.social-links a { 
    color: var(--dim-color); 
    font-size: 1.4rem; 
    transition: all var(--dur-med) var(--ease-out);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--dim-color);
    background: rgba(0,5,0,0.5);
}
.social-links a:hover { 
    color: var(--primary-color); 
    text-shadow: var(--glow-strong);
    border-color: var(--primary-color);
    background: rgba(0,20,0,0.8);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,255,0,0.2);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--dim-color);
    font-size: 0.82rem;
    color: var(--dim-color);
    letter-spacing: 1px;
}
.footer-bottom a {
    transition: color var(--dur-fast);
}
.footer-bottom a:hover {
    text-shadow: var(--glow-green);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .navbar { flex-direction: column; padding: 0.5rem 1rem; gap: 0.5rem; }
    .nav-links { gap: 1rem; flex-wrap: wrap; justify-content: center; }
    .hero h1 { font-size: 1.8rem; }
    .hero-stats { gap: 1.5rem; }
}

/* ── Mobile Navigation ── */
.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .hamburger { display: block; }
    .nav-links { display: none; width: 100%; text-align: center; }
    .nav-links.active { display: flex; flex-direction: column; }
}

/* ── Blink cursor ── */
@keyframes blink { 0%,100%{opacity:1;} 50%{opacity:0;} }
.blink { animation: blink 1s step-end infinite; }

@keyframes neonFlicker { 0%,100%{opacity:1;} 50%{opacity:0.8;} }
.neon-text { animation: neonFlicker 3s infinite; }

/* ══════════════════════════════════════════════════
   BIOS THEME — Navbar Login & User Menu
   ══════════════════════════════════════════════════ */
#nav-auth { display: flex; align-items: center; }

.btn-discord-login {
    display: flex; align-items: center; gap: 0.4rem;
    padding: 0.3rem 1rem;
    background: #000; color: var(--accent-color);
    text-decoration: none;
    font-family: 'VT323', monospace;
    font-size: 1rem; letter-spacing: 2px; text-transform: uppercase;
    border: 1px solid var(--border); white-space: nowrap;
    transition: background 0.1s, color 0.1s;
}
.btn-discord-login::before { content: '[ '; }
.btn-discord-login::after  { content: ' ]'; }
.btn-discord-login:hover   { background: var(--accent-color); color: #000; }
.btn-discord-login i { font-size: 0.9rem; }

.nav-user-menu { position: relative; }

.nav-user-trigger {
    display: flex; align-items: center; gap: 0.5rem;
    cursor: pointer; padding: 0.3rem 0.6rem;
    border: 1px solid var(--dim-color);
    user-select: none; transition: border-color 0.1s;
    background: #000;
}
.nav-user-trigger:hover, .nav-user-trigger.active {
    border-color: var(--primary-color);
    box-shadow: var(--glow-green);
}

.nav-avatar {
    width: 24px; height: 24px; border-radius: 0;
    border: 1px solid var(--border); object-fit: cover;
}

.nav-username {
    font-family: 'VT323', monospace; font-size: 0.95rem;
    color: var(--accent-color); letter-spacing: 1px;
    max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.nav-user-arrow { color: var(--dim-color); font-size: 0.65rem; transition: transform 0.1s; }
.nav-user-trigger.active .nav-user-arrow { transform: rotate(180deg); }

.nav-user-dropdown {
    position: absolute; top: calc(100% + 4px); right: 0;
    min-width: 220px; background: #000;
    border: 1px solid var(--border);
    box-shadow: var(--glow-green);
    display: none; z-index: 2000;
}
.nav-user-dropdown.open { display: block; }

@keyframes dropdownFadeIn { from{opacity:0;} to{opacity:1;} }

.nav-user-info { display: flex; align-items: center; gap: 0.7rem; padding: 0.8rem 1rem 0.6rem; }

.dropdown-avatar {
    width: 32px; height: 32px; border-radius: 0;
    border: 1px solid var(--border); object-fit: cover;
}

.dropdown-name {
    font-family: 'VT323', monospace; color: var(--primary-color);
    font-size: 0.9rem; letter-spacing: 1px;
}

.dropdown-tag { color: var(--dim-color); font-size: 0.75rem; margin-top: 0.1rem; }

.nav-user-divider { height: 1px; background: var(--dim-color); margin: 0.2rem 0; }

.dropdown-item {
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.5rem 1rem; text-decoration: none;
    font-size: 0.85rem; color: var(--accent-color); cursor: pointer;
}
.dropdown-item i { width: 14px; text-align: center; color: var(--dim-color); }
.dropdown-item::before { content: '> '; color: var(--dim-color); }
.dropdown-item:hover { background: #001400; color: var(--primary-color); }

.dropdown-logout { color: #CC4400; }
.dropdown-logout i { color: #CC4400; }
.dropdown-logout:hover { background: #110000; color: #FF4400; }

/* ── Toast errore autenticazione ── */
.auth-error-toast {
    position: fixed; bottom: 2rem; right: 2rem;
    background: #000; border: 1px solid var(--border);
    box-shadow: var(--glow-green); color: var(--accent-color);
    padding: 0.8rem 1.2rem; font-size: 0.85rem;
    z-index: 10000; max-width: 360px; line-height: 1.5;
    animation: toastSlideIn 0.2s ease;
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.auth-error-toast i { color: var(--primary-color); margin-right: 0.4rem; }
.auth-error-toast.hide { opacity: 0; transform: translateY(10px); pointer-events: none; }

@keyframes toastSlideIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .nav-username { display: none; }
    .btn-discord-login span { display: none; }
    .auth-error-toast { right: 1rem; left: 1rem; max-width: none; }
}

/* ── Switch Toggle (Manutenzione) ── */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255,255,255,.15);
    transition: var(--dur-fast);
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,.2);
}
.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 2px;
    background-color: rgba(255,255,255,.6);
    transition: var(--dur-fast);
    border-radius: 50%;
}
input:checked + .slider {
    background-color: rgba(255,68,68,.3);
    border-color: var(--pink);
}
input:checked + .slider:before {
    transform: translateX(20px);
    background-color: var(--pink);
}