@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* ===== Design Tokens ===== */
:root {
    --bg-deep: #0d0015;
    --bg-dark: #1c0522;
    --bg-gradient-start: #2b1055;
    --bg-gradient-end: #7597de;
    --accent: #a855f7;
    --accent-light: #c084fc;
    --accent-glow: rgba(168, 85, 247, 0.4);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-hover: rgba(255, 255, 255, 0.1);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 30px;
    --shadow-glow: 0 0 30px rgba(168, 85, 247, 0.15);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--bg-deep);
    color: var(--text-primary);
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== Header / Navigation ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10000;
    transition: background var(--transition), padding var(--transition);
}

header.scrolled {
    background: rgba(13, 0, 21, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 14px 60px;
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
}

header .logo {
    color: var(--text-primary);
    font-weight: 800;
    text-decoration: none;
    font-size: 1.6em;
    letter-spacing: 3px;
    text-transform: uppercase;
    position: relative;
}

header .logo span {
    color: var(--accent-light);
}

/* IP Copy Button */
.ip-copy {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.35);
    border-radius: var(--radius-lg);
    color: var(--accent-light);
    font-weight: 600;
    font-size: 0.9em;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    user-select: none;
    white-space: nowrap;
    letter-spacing: 0.5px;
    font-family: 'Poppins', sans-serif;
}

.ip-copy:hover {
    background: rgba(168, 85, 247, 0.25);
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.25);
    transform: translateY(-1px);
}

.ip-copy .copy-icon {
    font-size: 0.85em;
    opacity: 0.8;
}

.ip-copy .ip-tooltip {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    background: var(--accent);
    color: #fff;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.75em;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
}

.ip-copy .ip-tooltip.show {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

header nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    gap: 8px;
}

header nav ul li a {
    text-decoration: none;
    padding: 8px 20px;
    color: var(--text-secondary);
    border-radius: var(--radius-lg);
    font-weight: 500;
    font-size: 0.95em;
    transition: all var(--transition);
    position: relative;
}

header nav ul li a:hover,
header nav ul li a.active {
    background: rgba(168, 85, 247, 0.2);
    color: var(--text-primary);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.15);
}

/* Nav Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown>.dropdown-toggle {
    text-decoration: none;
    padding: 8px 20px;
    color: var(--text-secondary);
    border-radius: var(--radius-lg);
    font-weight: 500;
    font-size: 0.95em;
    transition: all var(--transition);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    user-select: none;
}

.nav-dropdown>.dropdown-toggle::after {
    content: '▾';
    font-size: 0.75em;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover>.dropdown-toggle,
.nav-dropdown>.dropdown-toggle.active {
    background: rgba(168, 85, 247, 0.2);
    color: var(--text-primary);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.15);
}

.nav-dropdown:hover>.dropdown-toggle::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    width: 620px;
    background: rgba(20, 5, 35, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 18px;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10002;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(168, 85, 247, 0.12);
    display: flex;
    overflow: hidden;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* === Mega Games Grid (left side) === */
.mega-games-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    padding: 10px;
}

.mega-games-grid a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 12px;
    font-size: 0.88em;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.mega-games-grid a:hover {
    background: rgba(168, 85, 247, 0.15);
    color: var(--text-primary);
    transform: translateX(3px);
}

.mega-games-grid a .dd-icon {
    font-size: 1.2em;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

/* === Mega Join Section (right side) === */
.mega-join-section {
    width: 200px;
    padding: 20px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-left: 1px solid rgba(168, 85, 247, 0.2);
    background: rgba(168, 85, 247, 0.04);
}

.mega-join-title {
    font-size: 0.85em;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    letter-spacing: 0.3px;
}

.mega-join-input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 2px solid rgba(168, 85, 247, 0.25);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 0.95em;
    font-weight: 700;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    text-align: center;
    letter-spacing: 3px;
    text-transform: uppercase;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.mega-join-input::placeholder {
    color: var(--text-muted);
    font-size: 0.75em;
    letter-spacing: 1px;
    font-weight: 400;
}

.mega-join-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.2);
}

.mega-join-btn {
    width: 100%;
    padding: 9px 14px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), #7c3aed);
    color: #fff;
    font-size: 0.82em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: 'Poppins', sans-serif;
}

.mega-join-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.4);
}

/* Legacy compat — keep .dropdown-menu a and .dd-icon for any remaining refs */
.dropdown-menu>a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 10px;
    font-size: 0.9em;
    font-weight: 500;
    transition: all var(--transition);
}

.dropdown-menu>a:hover {
    background: rgba(168, 85, 247, 0.15);
    color: var(--text-primary);
}

.dropdown-menu>a .dd-icon {
    font-size: 1.15em;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 10001;
    padding: 5px;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* ===== Hero / Parallax Section ===== */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, var(--bg-deep), transparent);
    z-index: 100;
}

.hero-section img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.hero-section img#moon {
    mix-blend-mode: screen;
}

.hero-section img#mountains_front {
    z-index: 10;
}

.hero-content {
    position: absolute;
    text-align: center;
    z-index: 9;
    animation: heroSwipeIn 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes heroSwipeIn {
    from {
        opacity: 0;
        transform: translateX(120px);
    }

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

.hero-content h1 {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 900;
    letter-spacing: 6px;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 15px;
    text-shadow: 0 0 60px rgba(168, 85, 247, 0.5);
}

.hero-content h1 span {
    color: var(--accent-light);
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.4rem);
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: 4px;
    margin-bottom: 35px;
}

.hero-btn {
    display: inline-block;
    padding: 14px 45px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: var(--text-primary);
    font-size: 1.1em;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all var(--transition);
    box-shadow: 0 4px 25px var(--accent-glow);
    z-index: 9;
    position: relative;
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 40px rgba(168, 85, 247, 0.5);
}

/* ===== Page Header (Subpages) ===== */
.page-header {
    position: relative;
    width: 100%;
    min-height: 20vh;
    background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 100px 60px 40px;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 40%, rgba(168, 85, 247, 0.2) 0%, transparent 60%),
        radial-gradient(circle at 70% 60%, rgba(117, 151, 222, 0.15) 0%, transparent 50%);
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(to top, var(--bg-deep), transparent);
}

.page-header-content {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 15px;
    text-shadow: 0 0 40px rgba(168, 85, 247, 0.3);
}

.page-header p {
    font-size: 1.2em;
    color: var(--text-secondary);
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Sections ===== */
.section {
    position: relative;
    padding: 100px 60px;
    background: var(--bg-deep);
}

.section-dark {
    background: var(--bg-dark);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title p {
    color: var(--text-secondary);
    font-size: 1.1em;
    max-width: 600px;
    margin: 0 auto;
}

.section-title .accent-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    border-radius: 2px;
    margin: 20px auto 0;
}

/* ===== Glass Cards ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 45px 35px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.05), transparent);
    opacity: 0;
    transition: opacity var(--transition);
}

.glass-card:hover {
    transform: translateY(-8px);
    border-color: rgba(168, 85, 247, 0.3);
    box-shadow: var(--shadow-glow);
    background: var(--glass-hover);
}

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

.glass-card .card-icon {
    font-size: 3em;
    margin-bottom: 20px;
    display: block;
}

.glass-card h3 {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.glass-card p {
    color: var(--text-secondary);
    font-size: 0.95em;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* ===== Server Status Widget ===== */
.mc-status-section {
    position: relative;
    background: linear-gradient(180deg, rgba(22, 101, 52, 0.15) 0%, rgba(30, 58, 38, 0.2) 50%, transparent 100%);
    border-top: 2px solid rgba(34, 197, 94, 0.15);
    border-bottom: 2px solid rgba(34, 197, 94, 0.15);
}

.mc-status-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 16px 16px;
    pointer-events: none;
}

.server-status-card {
    max-width: 700px;
    margin: 0 auto;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
}

.status-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px;
    color: var(--text-muted);
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.status-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.status-details {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: center;
}

.status-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.status-label {
    font-size: 0.8em;
    color: var(--text-muted);
    font-weight: 500;
}

.status-value {
    font-size: 1.3em;
    font-weight: 700;
    color: var(--accent-light);
}

.status-error {
    text-align: center;
    color: var(--text-muted);
    padding: 20px;
}

.mc-status-top {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.mc-server-icon {
    width: 64px;
    height: 64px;
    border-radius: 4px;
    image-rendering: pixelated;
    border: 2px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.mc-status-info {
    flex: 1;
    text-align: left;
}

.status-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #888;
    flex-shrink: 0;
    transition: background 0.4s;
}

.status-indicator.online {
    background: #22c55e;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.6);
    animation: statusPulse 2s ease-in-out infinite;
}

.status-indicator.offline {
    background: #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.6);
}

@keyframes statusPulse {

    0%,
    100% {
        box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
    }

    50% {
        box-shadow: 0 0 18px rgba(34, 197, 94, 0.8);
    }
}

.status-text {
    font-size: 1.2em;
    font-weight: 700;
    color: var(--text-primary);
}

.status-details {
    display: flex;
    justify-content: space-around;
    gap: 16px;
}

.status-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.status-label {
    font-size: 0.8em;
    color: var(--text-muted);
}

.status-value {
    font-size: 1.15em;
    font-weight: 700;
    color: var(--accent-light);
}

.status-motd {
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
    color: var(--text-secondary);
    white-space: pre-wrap;
    line-height: 1.4;
    border-left: 3px solid rgba(34, 197, 94, 0.4);
}

.status-motd:empty {
    display: none;
}

/* ===== Edition Badges ===== */
.status-editions {
    display: flex;
    gap: 16px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.edition-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    flex: 1;
    min-width: 200px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.2s, border-color 0.3s;
}

.edition-badge:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.15);
}

.edition-badge.java {
    border-left: 3px solid #e76f00;
}

.edition-badge.bedrock {
    border-left: 3px solid #6b8e23;
}

.edition-icon {
    font-size: 1.6em;
}

.edition-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.edition-label {
    font-size: 0.75em;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.edition-ip {
    font-size: 1em;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
}

.bedrock-link {
    color: var(--accent-light);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
}

.bedrock-link:hover {
    color: #22c55e;
    text-decoration: underline;
}

/* ===== About Preview (Home) ===== */
.about-preview {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-preview h2 {
    font-size: 2.2em;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-preview p {
    color: var(--text-secondary);
    font-size: 1.15em;
    line-height: 1.8;
    margin-bottom: 30px;
}

/* ===== Stats Section ===== */
.stats-section {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 40px;
    padding: 60px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 24px 32px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    min-width: 140px;
    transition: all var(--transition);
}

.stat-item:hover {
    border-color: rgba(168, 85, 247, 0.3);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.stat-number {
    display: block;
    font-size: 2.5em;
    font-weight: 800;
    color: var(--accent-light);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.85em;
    color: var(--text-muted);
}

.about-preview-text h2 {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-preview-text p {
    color: var(--text-secondary);
    font-size: 1.05em;
    line-height: 1.8;
    margin-bottom: 30px;
}

.about-preview-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.stat-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 25px;
    text-align: center;
    transition: all var(--transition);
}

.stat-card:hover {
    border-color: rgba(168, 85, 247, 0.3);
    box-shadow: var(--shadow-glow);
}

.stat-card .stat-number {
    font-size: 2.2em;
    font-weight: 800;
    color: var(--accent-light);
    display: block;
}

.stat-card .stat-label {
    font-size: 0.85em;
    color: var(--text-muted);
    margin-top: 5px;
}

/* ===== CTA Section ===== */
.cta-section {
    text-align: center;
    padding: 80px 60px;
    background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-dark));
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    opacity: 0.3;
}

.cta-section h2 {
    font-size: 3em;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.cta-section p {
    color: var(--text-secondary);
    font-size: 1.2em;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.btn-ip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 20px 32px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
    font-family: inherit;
}

.btn-ip img {
    transition: transform 0.3s ease;
}

.btn-ip-label {
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
}

.btn-ip-addr {
    font-size: 1.15em;
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

.btn-ip.java:hover {
    border-color: rgba(255, 153, 51, 0.5);
    background: rgba(255, 153, 51, 0.12);
    box-shadow: 0 0 30px rgba(255, 153, 51, 0.15);
    transform: translateY(-3px);
}

.btn-ip.java:hover img {
    transform: scale(1.15);
}

.btn-ip.bedrock:hover {
    border-color: rgba(74, 222, 128, 0.5);
    background: rgba(74, 222, 128, 0.12);
    box-shadow: 0 0 30px rgba(74, 222, 128, 0.15);
    transform: translateY(-3px);
}

.btn-ip.bedrock:hover img {
    transform: scale(1.15);
}

.btn-ip.copied {
    border-color: rgba(74, 222, 128, 0.6) !important;
    background: rgba(74, 222, 128, 0.15) !important;
}

.btn-ip.copied .btn-ip-addr {
    color: #4ade80;
}

.btn-primary {
    display: inline-block;
    padding: 14px 40px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: var(--text-primary);
    font-size: 1.05em;
    font-weight: 600;
    transition: all var(--transition);
    box-shadow: 0 4px 25px var(--accent-glow);
    position: relative;
    z-index: 1;
    border: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 40px rgba(168, 85, 247, 0.5);
}

.btn-outline {
    display: inline-block;
    padding: 14px 40px;
    border-radius: var(--radius-lg);
    background: transparent;
    color: var(--text-primary);
    font-size: 1.05em;
    font-weight: 600;
    transition: all var(--transition);
    border: 2px solid var(--glass-border);
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
}

.btn-outline:hover {
    border-color: var(--accent);
    box-shadow: 0 0 25px var(--accent-glow);
    background: rgba(168, 85, 247, 0.1);
}

/* ===== Project Cards ===== */
.project-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition);
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(168, 85, 247, 0.3);
    box-shadow: var(--shadow-glow);
}

.project-card .project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.project-card .project-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3em;
}

.project-card .project-info {
    padding: 25px;
}

.project-card .project-info h3 {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 10px;
}

.project-card .project-info p {
    color: var(--text-secondary);
    font-size: 0.9em;
    line-height: 1.7;
    margin-bottom: 15px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tag {
    padding: 4px 14px;
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 20px;
    font-size: 0.8em;
    color: var(--accent-light);
    font-weight: 500;
}

/* ===== About Page ===== */
.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-content p {
    color: var(--text-secondary);
    font-size: 1.1em;
    line-height: 1.9;
    margin-bottom: 25px;
}

.about-content p:first-child {
    font-size: 1.25em;
    color: var(--text-primary);
    font-weight: 300;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.skill-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all var(--transition);
}

.skill-item:hover {
    border-color: rgba(168, 85, 247, 0.3);
    transform: translateX(5px);
    box-shadow: var(--shadow-glow);
}

.skill-item .skill-icon {
    font-size: 1.8em;
    flex-shrink: 0;
}

.skill-item .skill-name {
    font-weight: 600;
    font-size: 1em;
}

.skill-item .skill-desc {
    font-size: 0.85em;
    color: var(--text-muted);
}

/* ===== Contact Form ===== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: start;
}

.contact-form {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 40px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 0.9em;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    font-size: 1em;
    transition: all var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 18px;
    transition: all var(--transition);
}

.contact-info-card:hover {
    border-color: rgba(168, 85, 247, 0.3);
    box-shadow: var(--shadow-glow);
}

.contact-info-card .info-icon {
    font-size: 1.6em;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(168, 85, 247, 0.15);
    border-radius: 12px;
}

.contact-info-card h4 {
    font-size: 1em;
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-info-card p {
    font-size: 0.9em;
    color: var(--text-muted);
}

/* ===== Footer ===== */
footer {
    background: var(--bg-dark);
    padding: 60px 60px 0;
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--glass-border);
}

.footer-brand h3 {
    font-size: 1.5em;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.footer-brand h3 span {
    color: var(--accent-light);
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9em;
    line-height: 1.7;
    max-width: 350px;
}

.footer-col h4 {
    font-size: 1em;
    font-weight: 600;
    margin-bottom: 18px;
    color: var(--text-primary);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--text-muted);
    font-size: 0.9em;
    transition: all var(--transition);
}

.footer-col ul li a:hover {
    color: var(--accent-light);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-link {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    transition: all var(--transition);
}

.social-link:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px var(--accent-glow);
}

.footer-bottom {
    text-align: center;
    padding: 25px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85em;
}

.footer-bottom .designer {
    color: var(--accent-light);
    font-weight: 500;
}

/* ===== Scroll Reveal Animations ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

/* ===== Floating particles (decorative) ===== */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-light);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

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

    50% {
        transform: translateY(-30px) scale(1.5);
        opacity: 0.6;
    }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    header {
        padding: 18px 30px;
    }

    header.scrolled {
        padding: 12px 30px;
    }

    .section {
        padding: 80px 30px;
    }

    .page-header {
        padding: 100px 30px 60px;
    }

    .about-preview {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    footer {
        padding: 40px 30px 0;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    header nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(13, 0, 21, 0.97);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        padding: 100px 40px 40px;
        transition: right var(--transition);
        border-left: 1px solid var(--glass-border);
    }

    header nav.open {
        right: 0;
    }

    header nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    header nav ul li a {
        display: block;
        padding: 12px 20px;
        font-size: 1.1em;
        width: 100%;
    }

    /* Position settings + language icons at top of mobile nav */
    header nav ul li:has(.settings-nav-wrap),
    header nav ul li:has(.lang-nav-wrap) {
        position: absolute;
        top: 17px;
    }

    header nav ul li:has(.settings-nav-wrap) {
        right: 120px;
    }

    header nav ul li:has(.lang-nav-wrap) {
        right: 76px;
    }

    header nav {
        overflow-y: auto;
    }

    .hero-content h1 {
        letter-spacing: 3px;
    }

    .section {
        padding: 60px 20px;
    }

    .page-header {
        padding: 90px 20px 50px;
        min-height: 35vh;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .about-preview-stats {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .cta-section {
        padding: 60px 20px;
    }

    footer {
        padding: 40px 20px 0;
    }

    .contact-form {
        padding: 25px;
    }

    /* Mobile dropdown: stack vertically */
    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown>.dropdown-toggle {
        display: flex;
        padding: 12px 20px;
        font-size: 1.1em;
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        width: 100% !important;
        opacity: 1;
        visibility: visible;
        flex-direction: column;
        border: none;
        border-radius: 0;
        box-shadow: none;
        background: rgba(20, 5, 35, 0.5);
        backdrop-filter: none;
        display: none;
        padding: 0;
    }

    .nav-dropdown:hover .dropdown-menu,
    .nav-dropdown.open .dropdown-menu {
        display: flex;
        transform: none;
    }

    .mega-games-grid {
        grid-template-columns: 1fr;
        padding: 4px 8px;
        gap: 0;
    }

    .mega-games-grid a {
        padding: 10px 16px;
        font-size: 0.95em;
    }

    .mega-join-section {
        width: 100%;
        border-left: none;
        border-top: 1px solid rgba(168, 85, 247, 0.2);
        padding: 14px 16px;
        flex-direction: row;
        gap: 8px;
    }

    .mega-join-input {
        flex: 1;
        padding: 8px 10px;
        font-size: 0.85em;
    }

    .mega-join-btn {
        width: auto;
        padding: 8px 14px;
        font-size: 0.8em;
        white-space: nowrap;
    }

    .mega-join-title {
        display: none;
    }
}

@media (max-width: 480px) {
    header {
        padding: 15px 20px;
    }

    .hero-content p {
        letter-spacing: 2px;
    }

    .about-preview-stats {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }
}

/* ═══════ DVD Screensaver Overlay ═══════ */
#dvdOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
    z-index: 99999;
    display: none;
    cursor: default;
    pointer-events: none;
    overflow: hidden;
}

#dvdOverlay.active {
    display: block;
    animation: fadeInOverlay 0.8s ease;
}

@keyframes fadeInOverlay {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

#dvdOverlay .dvd-logo {
    position: absolute;
    width: 180px;
    fill: rgb(0, 81, 255);
    transition: fill 0.15s ease;
}

#dvdOverlay .dvd-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85em;
    font-family: 'Poppins', sans-serif;
    pointer-events: none;
}

/* ═══════ Settings Gear Icon ═══════ */
.settings-gear {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    transition: all var(--transition);
    font-size: 1.2em;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.settings-gear:hover {
    background: rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.3);
    color: var(--accent-light);
    transform: rotate(45deg);
}

/* ═══════ Settings Modal ═══════ */
.settings-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
}

.settings-backdrop.open {
    display: flex;
    animation: fadeInOverlay 0.25s ease;
}

.settings-modal {
    background: linear-gradient(135deg, rgba(30, 10, 50, 0.95), rgba(13, 0, 21, 0.98));
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 20px;
    padding: 35px 40px;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(168, 85, 247, 0.15);
    animation: modalSlideIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }

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

.settings-modal h3 {
    color: #fff;
    font-size: 1.3em;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.settings-modal .settings-sub {
    color: var(--text-muted);
    font-size: 0.85em;
    margin-bottom: 28px;
}

.settings-modal .settings-close {
    position: absolute;
    top: 16px;
    right: 18px;
    width: 30px;
    height: 30px;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 1.1em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.settings-modal .settings-close:hover {
    background: rgba(255, 80, 80, 0.2);
    color: #ff6b6b;
}

/* Toggle Row */
.setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
}

.setting-row .setting-label {
    color: var(--text-secondary);
    font-size: 0.95em;
    font-weight: 500;
}

.setting-row .setting-desc {
    color: var(--text-muted);
    font-size: 0.78em;
    margin-top: 2px;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 26px;
    transition: all 0.3s ease;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    bottom: 3px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.toggle-switch input:checked+.toggle-slider {
    background: var(--accent);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
}

.toggle-switch input:checked+.toggle-slider::before {
    transform: translateX(24px);
    background: #fff;
}

/* Range Slider */
.slider-row {
    margin-bottom: 20px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
}

.slider-row .setting-label {
    color: var(--text-secondary);
    font-size: 0.95em;
    font-weight: 500;
    margin-bottom: 14px;
    display: block;
}

.slider-row input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    transition: background 0.2s;
}

.slider-row input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
    transition: all 0.2s ease;
}

.slider-row input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 18px rgba(168, 85, 247, 0.7);
}

.slider-row input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

/* Preview Text */
.slider-preview {
    margin-top: 14px;
    text-align: center;
    color: var(--accent-light);
    font-size: 1.8em;
    font-weight: 700;
    letter-spacing: 1px;
}

.slider-preview span {
    font-size: 0.45em;
    color: var(--text-muted);
    font-weight: 400;
    display: block;
    margin-top: 2px;
    letter-spacing: 0;
}

@media (max-width: 768px) {
    .settings-gear {
        width: 34px;
        height: 34px;
        font-size: 1em;
    }

    .settings-modal {
        padding: 25px 22px;
    }

    #dvdOverlay .dvd-logo {
        width: 120px;
    }
}

/* ===== Language Toggle ===== */
.lang-toggle {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    font-size: 1.15em;
    transition: var(--transition);
    user-select: none;
}

.lang-toggle:hover {
    background: var(--glass-hover);
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .lang-toggle {
        width: 34px;
        height: 34px;
        font-size: 1em;
    }
}

/* ===== IP Edition Modal ===== */
.ip-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.ip-modal-overlay.active {
    display: flex;
    animation: modalFadeIn 0.25s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.ip-modal {
    background: linear-gradient(135deg, rgba(30, 30, 50, 0.97), rgba(20, 20, 35, 0.97));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 36px 32px 28px;
    max-width: 480px;
    width: 90%;
    position: relative;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
    animation: modalSlideIn 0.3s ease;
}

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

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

.ip-modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.3em;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.ip-modal-close:hover {
    color: var(--text-primary);
}

.ip-modal-title {
    text-align: center;
    font-size: 1.5em;
    font-weight: 800;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.ip-modal-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9em;
    margin-bottom: 24px;
}

.ip-modal-cards {
    display: flex;
    gap: 16px;
}

.edition-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px 16px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.3s, background 0.3s;
}

.edition-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.08);
}

.edition-card.java:hover {
    border-color: #e76f00;
}

.edition-card.bedrock:hover {
    border-color: #6b8e23;
}

.edition-card-icon {
    font-size: 2.4em;
    margin-bottom: 4px;
}

.edition-card-title {
    font-weight: 700;
    font-size: 1em;
    color: var(--text-primary);
}

.edition-card-ip {
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
    color: var(--accent-light);
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 10px;
    border-radius: 6px;
}

.edition-card-action {
    font-size: 0.8em;
    color: var(--text-muted);
    margin-top: 4px;
    transition: color 0.2s;
}

.edition-card:hover .edition-card-action {
    color: var(--text-primary);
}

/* ===== Settings Dropdown (Navbar) ===== */
.settings-nav-wrap {
    position: relative;
}

.settings-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: rgba(28, 5, 34, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    min-width: 320px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
    z-index: 10001;
    animation: settingsSlideIn 0.3s ease;
}

@keyframes settingsSlideIn {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.95);
    }

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

@keyframes settingsSlideInMobile {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }

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

@media (max-width: 768px) {
    .settings-dropdown {
        position: fixed !important;
        top: 60px !important;
        right: 10px !important;
        left: 10px !important;
        bottom: auto !important;
        min-width: unset !important;
        width: auto !important;
        border-radius: 16px !important;
        animation: settingsSlideInMobile 0.3s ease !important;
    }

    .lang-dropdown {
        top: calc(100% + 8px) !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
    }
}

.settings-dropdown.open {
    display: block;
}

.settings-dropdown h4 {
    font-size: 1.1em;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

/* ===== Language Toggle & Dropdown ===== */
.lang-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.3em;
    transition: all 0.2s ease;
    user-select: none;
    border: 1px solid transparent;
}

.lang-toggle:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.3);
    transform: scale(1.1);
}

.lang-nav-wrap {
    position: relative;
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(28, 5, 34, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 12px;
    gap: 4px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
    z-index: 10001;
    animation: langSlideDown 0.3s ease forwards;
    overflow: hidden;
}

@keyframes langSlideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.lang-dropdown.open {
    display: block;
}

.lang-option {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.3em;
    transition: all 0.2s ease;
}

.lang-option:hover {
    background: rgba(168, 85, 247, 0.2);
    transform: scale(1.15);
}

.lang-option span {
    font-weight: 500;
}

.settings-sub {
    font-size: 0.8em;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    margin-bottom: 10px;
}

.setting-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.setting-label {
    font-size: 0.95em;
    font-weight: 600;
    color: var(--text-primary);
}

.setting-desc {
    font-size: 0.78em;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    transition: background 0.3s ease;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.toggle-switch input:checked+.toggle-slider {
    background: var(--accent);
}

.toggle-switch input:checked+.toggle-slider::before {
    transform: translateX(20px);
}

/* Timer Slider */
#timerRow {
    flex-wrap: wrap;
}

.setting-row input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    cursor: pointer;
}

.setting-row input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.5);
}

.setting-row input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    border: none;
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.5);
}

/* ===== DVD Screensaver Overlay ===== */
#dvdOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
    z-index: 99999;
    display: none;
    cursor: default;
    pointer-events: none;
}

#dvdOverlay.active {
    display: block;
}

#dvdOverlay .dvd-logo {
    position: absolute;
    width: 120px;
    height: 60px;
    transition: fill 0.1s;
}

/* ===== Shop Page ===== */
.shop-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

.rank-card {
    position: relative;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px 32px 36px;
    width: 380px;
    text-align: center;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.4s ease;
    overflow: hidden;
}

.rank-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 24px 24px 0 0;
}

.rank-card.vip::before {
    background: linear-gradient(90deg, #f59e0b, #fbbf24, #f59e0b);
}

.rank-card.mvp::before {
    background: linear-gradient(90deg, #a855f7, #c084fc, #a855f7);
}

.rank-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
}

.rank-card.vip:hover {
    box-shadow: 0 20px 60px rgba(245, 158, 11, 0.15), 0 0 40px rgba(245, 158, 11, 0.08);
}

.rank-card.mvp:hover {
    box-shadow: 0 20px 60px rgba(168, 85, 247, 0.2), 0 0 40px rgba(168, 85, 247, 0.1);
}

.rank-popular {
    position: absolute;
    top: 16px;
    right: -30px;
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    color: #fff;
    font-size: 0.75em;
    font-weight: 700;
    padding: 6px 40px;
    transform: rotate(45deg);
    letter-spacing: 0.5px;
}

.rank-badge {
    font-size: 2em;
    font-weight: 900;
    letter-spacing: 3px;
    margin-bottom: 8px;
}

.rank-badge.vip-badge {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.rank-badge.mvp-badge {
    background: linear-gradient(135deg, #a855f7, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.rank-price {
    margin-bottom: 28px;
}

.price-amount {
    font-size: 2.5em;
    font-weight: 800;
    color: #fff;
}

.price-period {
    font-size: 0.95em;
    color: var(--text-muted);
    margin-left: 4px;
}

.rank-perks {
    list-style: none;
    text-align: left;
    margin-bottom: 32px;
    padding: 0;
}

.rank-perks li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    font-size: 0.95em;
}

.rank-perks li:last-child {
    border-bottom: none;
}

.rank-buy-btn {
    display: inline-block;
    padding: 14px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1em;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.rank-buy-btn.vip-btn {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
}

.rank-buy-btn.vip-btn:hover {
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.4);
    transform: translateY(-2px);
}

.rank-buy-btn.mvp-btn {
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    color: #fff;
}

.rank-buy-btn.mvp-btn:hover {
    box-shadow: 0 8px 30px rgba(168, 85, 247, 0.4);
    transform: translateY(-2px);
}

.shop-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9em;
    max-width: 600px;
    margin: 40px auto 0;
    line-height: 1.6;
}

@media (max-width: 860px) {
    .shop-container {
        flex-direction: column;
        align-items: center;
    }

    .rank-card {
        width: 100%;
        max-width: 400px;
    }
}

/* ===== Weather Widget ===== */
.weather-widget {
    position: fixed;
    bottom: 24px;
    right: 80px;
    z-index: 9000;
    pointer-events: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.weather-widget.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Extend hover zone downward */
.weather-widget.visible::after {
    content: '';
    position: absolute;
    left: -10px;
    right: -10px;
    top: -40px;
    bottom: -140px;
    z-index: -1;
}

.weather-scene {
    position: relative;
}

/* Tooltip – slides out to the left of the widget on hover */
.weather-tooltip {
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    padding: 12px 16px;
    background: rgba(15, 5, 30, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 12px;
    color: #ccc;
    font-size: 12px;
    font-family: 'Outfit', sans-serif;
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    gap: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 100;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 12px rgba(168, 85, 247, 0.12);
    cursor: default;
    min-width: 200px;
}

.weather-tooltip-type {
    color: #c084fc;
    font-weight: 600;
    font-size: 13px;
}

.weather-widget:hover .weather-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
    pointer-events: auto;
}

/* Bridge the gap between tooltip and widget for seamless hover */
.weather-tooltip::after {
    content: '';
    position: absolute;
    top: 0;
    right: -16px;
    width: 16px;
    height: 100%;
}

/* ── Forecast tooltip internals ── */
.weather-tooltip-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 3px;
}

.weather-forecast-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.4), transparent);
    margin: 8px 0;
}

.weather-forecast-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
}

.weather-forecast-tab {
    flex: 1;
    background: none;
    border: none;
    color: #777;
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 8px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color 0.3s ease, border-color 0.3s ease, text-shadow 0.3s ease;
    white-space: nowrap;
}

.weather-forecast-tab:hover {
    color: #bbb;
}

.weather-forecast-tab.active {
    color: #c084fc;
    border-bottom-color: #a855f7;
    text-shadow: 0 0 8px rgba(168, 85, 247, 0.5);
}

.weather-forecast-views {
    position: relative;
    min-height: 52px;
}

.weather-forecast-view {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.weather-forecast-view.active {
    opacity: 1;
    position: relative;
    pointer-events: auto;
}

.weather-forecast-strip {
    display: flex;
    gap: 2px;
    justify-content: space-between;
}

.weather-forecast-strip-wide {
    gap: 0;
    justify-content: flex-start;
    width: max-content;
}

.weather-forecast-scrollable {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.weather-forecast-scrollable::-webkit-scrollbar {
    display: none;
}

.weather-forecast-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 4px 8px;
    border-radius: 8px;
    scroll-snap-align: start;
    min-width: 44px;
    transition: background 0.2s ease;
}

.weather-forecast-slot:hover {
    background: rgba(168, 85, 247, 0.1);
}

.weather-forecast-slot.forecast-now {
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.forecast-time {
    font-size: 10px;
    color: #888;
    font-weight: 500;
}

.forecast-icon {
    font-size: 16px;
    line-height: 1;
}

.forecast-temp {
    font-size: 11px;
    color: #ddd;
    font-weight: 600;
}

/* Day pages for Tag view */
.weather-forecast-day {
    display: none;
    animation: forecastDayFadeIn 0.3s ease;
}

.weather-forecast-day.active {
    display: block;
}

@keyframes forecastDayFadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

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

.weather-forecast-date {
    font-size: 11px;
    font-weight: 600;
    color: #a78bfa;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.forecast-today-badge {
    font-size: 9px;
    font-weight: 700;
    color: #fff;
    background: rgba(168, 85, 247, 0.4);
    padding: 1px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.weather-cloud {
    position: relative;
    width: 100px;
    height: 32px;
    border-radius: 32px;
    will-change: transform;
}

.weather-cloud::before {
    content: '';
    position: absolute;
    top: -16px;
    left: 12px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #484f59;
    box-shadow: 28px -4px 0 10px #484f59;
}

.weather-cloud::after {
    content: '';
    position: absolute;
    inset: 0;
    background: #484f59;
    border-radius: 32px;
    z-index: 10;
}

/* Particle canvas – overlays the widget */
.weather-particle-canvas {
    position: absolute;
    top: 0;
    left: -50px;
    width: 210px;
    height: 200px;
    pointer-events: none;
    z-index: 1;
}

/* Thunder – lightning flash on cloud */
/* Thunder cloud – no white flash, bolts handle the effect */
.weather-type-thunder .weather-cloud {
    filter: drop-shadow(3px 3px 0 #0001);
}

/* Sun */
.weather-sun {
    position: relative;
    width: 100px;
    height: 100px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sun-core {
    position: relative;
    z-index: 2;
    width: 44px;
    height: 44px;
    background: radial-gradient(circle at 35% 35%, #fff7a0, #fdd835 40%, #f59e0b);
    border-radius: 50%;
    box-shadow: 0 0 20px 8px rgba(253, 216, 53, 0.5), 0 0 50px 16px rgba(253, 216, 53, 0.2);
    animation: weatherSunPulse 3s ease-in-out infinite;
}

/* Radiating rays – each ray sits above center, rotates around center */
.sun-ray {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 22px;
    margin-left: -2px;
    margin-top: -50px;
    background: linear-gradient(to top, rgba(253, 216, 53, 0.9), rgba(253, 216, 53, 0.1));
    border-radius: 3px;
    transform-origin: 2px 50px;
    animation: weatherRayPulse 2.5s ease-in-out infinite;
}

.sun-ray:nth-child(1) {
    transform: rotate(0deg);
}

.sun-ray:nth-child(2) {
    transform: rotate(45deg);
    animation-delay: 0.3s;
}

.sun-ray:nth-child(3) {
    transform: rotate(90deg);
    animation-delay: 0.6s;
}

.sun-ray:nth-child(4) {
    transform: rotate(135deg);
    animation-delay: 0.9s;
}

.sun-ray:nth-child(5) {
    transform: rotate(180deg);
    animation-delay: 0.15s;
}

.sun-ray:nth-child(6) {
    transform: rotate(225deg);
    animation-delay: 0.45s;
}

.sun-ray:nth-child(7) {
    transform: rotate(270deg);
    animation-delay: 0.75s;
}

.sun-ray:nth-child(8) {
    transform: rotate(315deg);
    animation-delay: 1.05s;
}

@keyframes weatherSunPulse {

    0%,
    100% {
        box-shadow: 0 0 20px 8px rgba(253, 216, 53, 0.5), 0 0 50px 16px rgba(253, 216, 53, 0.2);
    }

    50% {
        box-shadow: 0 0 30px 12px rgba(253, 216, 53, 0.7), 0 0 70px 24px rgba(253, 216, 53, 0.3);
    }
}

@keyframes weatherRayPulse {

    0%,
    100% {
        opacity: 0.3;
        height: 18px;
    }

    50% {
        opacity: 1;
        height: 26px;
    }
}

/* ── Moon (clear night) ── */
.weather-moon {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.moon-core {
    width: 60px;
    height: 60px;
    background: radial-gradient(circle at 40% 40%, #fffde6, #f5e6a3 50%, #d4c475);
    border-radius: 50%;
    box-shadow: 0 0 22px 8px rgba(245, 230, 163, 0.35), 0 0 60px 18px rgba(245, 230, 163, 0.12);
    animation: weatherMoonGlow 4s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

/* Moon shadow – dynamic div positioned per phase */
.moon-shadow {
    position: absolute;
    box-shadow: 0 0 6px 2px rgba(10, 10, 26, 0.5);
    z-index: 2;
}

.moon-crater {
    position: absolute;
    background: rgba(180, 160, 100, 0.25);
    border-radius: 50%;
    z-index: 1;
}

.moon-crater.c1 {
    width: 7px;
    height: 7px;
    top: 30px;
    left: 14px;
}

.moon-crater.c2 {
    width: 4px;
    height: 4px;
    top: 22px;
    left: 22px;
}

.moon-crater.c3 {
    width: 5px;
    height: 5px;
    top: 40px;
    left: 20px;
}

@keyframes weatherMoonGlow {

    0%,
    100% {
        box-shadow: 0 0 18px 6px rgba(245, 230, 163, 0.35), 0 0 50px 14px rgba(245, 230, 163, 0.12);
    }

    50% {
        box-shadow: 0 0 26px 10px rgba(245, 230, 163, 0.45), 0 0 60px 20px rgba(245, 230, 163, 0.18);
    }
}

/* Small variants for partly cloudy */
.weather-moon-small {
    transform: scale(0.65);
    margin-bottom: 6px;
}

/* Moon behind clouds – visible when moon is above horizon */
.weather-moon-bg {
    position: absolute;
    top: -55px;
    left: -30px;
    transform: scale(0.7);
    opacity: 0.6;
    z-index: -1;
    pointer-events: none;
}

.weather-cloud-small {
    width: 55px !important;
    height: 20px !important;
    margin-left: 14px;
    margin-top: -18px;
    z-index: 20;
    position: relative;
}

.weather-cloud-small::before {
    width: 22px !important;
    height: 22px !important;
    top: -12px !important;
    left: 8px !important;
}

.weather-cloud-small::after {
    width: 16px !important;
    height: 16px !important;
    top: -6px !important;
    left: 26px !important;
}

/* ── Fog ── */
.weather-fog {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px 0;
}

.fog-bar {
    width: 90px;
    height: 5px;
    background: rgba(180, 190, 200, 0.4);
    border-radius: 4px;
    animation: weatherFogDrift 3s ease-in-out infinite;
}

.fog-bar:nth-child(1) {
    width: 70px;
    animation-delay: 0s;
}

.fog-bar:nth-child(2) {
    width: 90px;
    animation-delay: 0.5s;
}

.fog-bar:nth-child(3) {
    width: 60px;
    animation-delay: 1s;
    margin-left: 10px;
}

@keyframes weatherFogDrift {

    0%,
    100% {
        opacity: 0.3;
        transform: translateX(0);
    }

    50% {
        opacity: 0.7;
        transform: translateX(8px);
    }
}



/* Wobble effect for windy conditions */
.weather-wind-light .weather-cloud,
.weather-wind-light .weather-fog {
    animation: weatherWobbleLight 3s ease-in-out infinite;
}

.weather-wind-breeze .weather-cloud,
.weather-wind-breeze .weather-fog {
    animation: weatherWobble 2s ease-in-out infinite;
}

.weather-wind-storm .weather-cloud,
.weather-wind-storm .weather-fog {
    animation: weatherWobbleStrong 0.8s ease-in-out infinite;
}

@keyframes weatherWobble {

    0%,
    100% {
        transform: translateX(0) rotate(0deg);
    }

    25% {
        transform: translateX(2px) rotate(1deg);
    }

    75% {
        transform: translateX(-2px) rotate(-1deg);
    }
}

@keyframes weatherWobbleStrong {

    0%,
    100% {
        transform: translateX(0) rotate(0deg);
    }

    15% {
        transform: translateX(8px) rotate(4deg);
    }

    40% {
        transform: translateX(-5px) rotate(-2deg);
    }

    65% {
        transform: translateX(6px) rotate(3deg);
    }

    85% {
        transform: translateX(-8px) rotate(-4deg);
    }
}

@keyframes weatherWobbleLight {

    0%,
    100% {
        transform: translateX(0) rotate(0deg);
    }

    25% {
        transform: translateX(1px) rotate(0.5deg);
    }

    75% {
        transform: translateX(-1px) rotate(-0.5deg);
    }
}

/* ── Weather Debug overlay ── */
.weather-debug-active {
    pointer-events: none;
}

.weather-debug-panel {
    position: absolute;
    right: -10px;
    bottom: -120px;
    background: rgba(20, 5, 35, 0.92);
    border: 1px solid rgba(168, 85, 247, 0.35);
    border-radius: 14px;
    padding: 18px 140px 18px 22px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(168, 85, 247, 0.1);
    animation: weatherDebugFadeIn 0.3s ease-out;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    color: #ccc;
    line-height: 1.8;
    white-space: nowrap;
    z-index: -2;
}

.weather-debug-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #a855f7;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(168, 85, 247, 0.25);
    padding-bottom: 6px;
}

.weather-debug-row span {
    color: #999;
    font-weight: 500;
}

.weather-debug-row b {
    color: #c084fc;
    font-weight: 600;
}

@keyframes weatherDebugFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

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





/* ── Feature 5: Crossfade Transitions ── */
.weather-fade-out {
    animation: weatherFadeOut 0.8s ease-out forwards;
    pointer-events: none;
}

.weather-fade-in {
    animation: weatherFadeIn 0.8s ease-out forwards;
}

@keyframes weatherFadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes weatherFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


/* ── Feature 4: Seasonal Effects ── */

/* Spring – cherry blossom petals */
.seasonal-petal {
    position: fixed;
    top: -15px;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #ffb7c5 30%, #ff8fa3 100%);
    border-radius: 50% 0 50% 50%;
    pointer-events: none;
    z-index: 8999;
    animation: seasonalPetalFall 6s ease-in forwards;
}

@keyframes seasonalPetalFall {
    0% {
        transform: translateY(0) rotate(0deg) translateX(0);
        opacity: 0.8;
    }

    25% {
        transform: translateY(25vh) rotate(90deg) translateX(30px);
    }

    50% {
        transform: translateY(50vh) rotate(180deg) translateX(-20px);
    }

    75% {
        transform: translateY(75vh) rotate(270deg) translateX(25px);
    }

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

/* Summer – fireflies */
.seasonal-firefly {
    position: fixed;
    width: 4px;
    height: 4px;
    background: #ffe066;
    border-radius: 50%;
    pointer-events: none;
    z-index: 8999;
    box-shadow: 0 0 6px 2px rgba(255, 224, 102, 0.6), 0 0 12px 4px rgba(255, 200, 50, 0.3);
    animation: seasonalFireflyGlow 3s ease-in-out forwards;
}

@keyframes seasonalFireflyGlow {
    0% {
        opacity: 0;
        transform: translate(0, 0);
    }

    20% {
        opacity: 0.9;
    }

    40% {
        opacity: 0.3;
        transform: translate(15px, -10px);
    }

    60% {
        opacity: 0.8;
        transform: translate(-10px, -20px);
    }

    80% {
        opacity: 0.4;
        transform: translate(20px, 5px);
    }

    100% {
        opacity: 0;
        transform: translate(-5px, -15px);
    }
}

/* Autumn – falling leaves */
.seasonal-leaf {
    position: fixed;
    top: -15px;
    width: 10px;
    height: 7px;
    border-radius: 50% 0 50% 0;
    pointer-events: none;
    z-index: 8999;
    animation: seasonalLeafFall 7s ease-in forwards;
}

@keyframes seasonalLeafFall {
    0% {
        transform: translateY(0) rotate(0deg) translateX(0);
        opacity: 0.8;
    }

    20% {
        transform: translateY(20vh) rotate(72deg) translateX(40px);
    }

    40% {
        transform: translateY(40vh) rotate(144deg) translateX(-30px);
    }

    60% {
        transform: translateY(60vh) rotate(216deg) translateX(35px);
    }

    80% {
        transform: translateY(80vh) rotate(288deg) translateX(-25px);
        opacity: 0.6;
    }

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

/* Winter – sparkles */
.seasonal-sparkle {
    position: fixed;
    top: -10px;
    width: 3px;
    height: 3px;
    background: white;
    border-radius: 50%;
    pointer-events: none;
    z-index: 8999;
    box-shadow: 0 0 4px 1px rgba(255, 255, 255, 0.6);
    animation: seasonalSparkleFall 5s linear forwards;
}

@keyframes seasonalSparkleFall {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 0.7;
    }

    30% {
        transform: translateY(30vh) translateX(15px);
        opacity: 0.3;
    }

    50% {
        opacity: 0.8;
        transform: translateY(50vh) translateX(-10px);
    }

    70% {
        opacity: 0.3;
        transform: translateY(70vh) translateX(12px);
    }

    90% {
        opacity: 0.6;
    }

    100% {
        transform: translateY(105vh) translateX(-8px);
        opacity: 0;
    }
}


/* ── Rainbow Effect (rain → sun transition) ── */
.weather-rainbow {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 60px;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
    animation: rainbowAppear 6s ease-in-out forwards;
}

.weather-rainbow-arc {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 100px 100px 0 0;
    border-style: solid;
    border-bottom: none;
}

.weather-rainbow-arc:nth-child(1) {
    width: 110px;
    height: 55px;
    border-width: 3px;
    border-color: #ef4444;
}

.weather-rainbow-arc:nth-child(2) {
    width: 100px;
    height: 50px;
    border-width: 3px;
    border-color: #f97316;
}

.weather-rainbow-arc:nth-child(3) {
    width: 90px;
    height: 45px;
    border-width: 3px;
    border-color: #eab308;
}

.weather-rainbow-arc:nth-child(4) {
    width: 80px;
    height: 40px;
    border-width: 3px;
    border-color: #22c55e;
}

.weather-rainbow-arc:nth-child(5) {
    width: 70px;
    height: 35px;
    border-width: 3px;
    border-color: #3b82f6;
}

.weather-rainbow-arc:nth-child(6) {
    width: 60px;
    height: 30px;
    border-width: 3px;
    border-color: #6366f1;
}

.weather-rainbow-arc:nth-child(7) {
    width: 50px;
    height: 25px;
    border-width: 3px;
    border-color: #a855f7;
}

@keyframes rainbowAppear {
    0% {
        opacity: 0;
        transform: translateX(-50%) scale(0.6);
    }

    15% {
        opacity: 0.9;
        transform: translateX(-50%) scale(1);
    }

    70% {
        opacity: 0.8;
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) scale(1.05);
    }
}

/* ── Shooting Stars (night, inside widget) ── */
.shooting-star {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    width: 2px;
    height: 2px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 4px 1px rgba(255, 255, 255, 0.7), 0 0 10px 3px rgba(200, 180, 255, 0.3);
    animation: shootingStar var(--ss-duration, 0.8s) linear forwards;
}

.shooting-star::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 100%;
    transform: translateY(-50%);
    width: 28px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.7));
    border-radius: 2px;
}

@keyframes shootingStar {
    0% {
        opacity: 0;
        transform: translate(0, 0) rotate(var(--ss-angle, -35deg));
    }

    10% {
        opacity: 1;
    }

    70% {
        opacity: 0.8;
    }

    100% {
        opacity: 0;
        transform: translate(var(--ss-dx, 250px), var(--ss-dy, 150px)) rotate(var(--ss-angle, -35deg));
    }
}

@media (max-width: 768px) {
    .weather-widget {
        bottom: 16px;
        right: 16px;
        transform: scale(0.8) translateY(20px);
        transform-origin: bottom right;
    }

    .weather-widget.visible {
        transform: scale(0.8) translateY(0);
    }

    .settings-dropdown {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        min-width: unset;
        width: 100%;
        max-height: 80vh;
        overflow-y: auto;
        border-radius: 20px 20px 0 0;
        padding: 20px 16px;
        animation: settingsSlideUp 0.3s ease;
    }

    @keyframes settingsSlideUp {
        from {
            opacity: 0;
            transform: translateY(100%);
        }

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

    .lang-dropdown {
        left: auto;
        right: 0;
        transform: none;
    }
}

@media (max-width: 480px) {
    .settings-dropdown {
        padding: 18px 14px;
    }

    .settings-dropdown .setting-row {
        flex-wrap: wrap;
        gap: 8px;
    }
}