* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #1a1a3e;
    color: #e0e8f0;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

#skyCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hud-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    text-align: center;
    padding: 12px 20px 10px;
    background: rgba(10, 12, 30, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(176, 224, 255, 0.12);
}
.hud-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #4a90e2, #ffd700, #4a90e2, transparent);
}
.hud-header-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.hud-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.hud-brand-icon {
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 0 8px rgba(255,215,0,0.5));
}
.hud-brand-icon:hover { transform: scale(1.15) rotate(10deg); }
.hud-brand-icon:active { transform: scale(0.95); }
.hud-brand-name {
    font-size: 20px;
    font-weight: 700;
    color: #ffd700;
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(255,215,0,0.3);
    text-transform: uppercase;
    font-family: 'Exo 2', sans-serif;
}
.hud-tagline {
    font-size: 10px;
    color: rgba(176, 224, 255, 0.45);
    letter-spacing: 1px;
    margin-top: 2px;
    font-family: 'Exo 2', sans-serif;
}
.hud-nav {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 6px;
}
.hud-nav-link {
    color: #b0e0ff;
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 1px solid rgba(176, 224, 255, 0.15);
    font-family: 'Exo 2', sans-serif;
    letter-spacing: 0.5px;
}
.hud-nav-link:hover {
    background: rgba(176, 224, 255, 0.08);
    border-color: rgba(176, 224, 255, 0.3);
    color: #fff;
}
.hud-nav-link:active {
    transform: scale(0.96);
    background: rgba(176, 224, 255, 0.15);
}

.hud-hint {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    font-size: 11px;
    color: rgba(176, 224, 255, 0.35);
    letter-spacing: 0.5px;
    font-family: 'Exo 2', sans-serif;
    pointer-events: none;
    animation: hintFade 8s ease-in-out forwards;
}
@keyframes hintFade {
    0%, 60% { opacity: 1; }
    100% { opacity: 0; }
}

.hero-island {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 80px auto 40px;
    padding: 0 20px;
    animation: islandFloat 7s ease-in-out infinite;
}
.hero-light-beam {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 80px;
    background: linear-gradient(180deg, rgba(255,215,0,0.6), rgba(255,215,0,0));
    box-shadow: 0 0 30px rgba(255,215,0,0.3), 0 0 60px rgba(255,215,0,0.15);
    animation: beamPulse 3s ease-in-out infinite;
}
@keyframes beamPulse {
    0%, 100% { opacity: 0.6; height: 80px; }
    50% { opacity: 1; height: 100px; }
}
.hero-terrain {
    background: linear-gradient(135deg, rgba(255,215,0,0.15), rgba(255,180,0,0.08));
    border-radius: 20px 20px 50% 50% / 20px 20px 30px 30px;
    border: 1px solid rgba(255,215,0,0.2);
    padding: 20px 30px 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero-peak {
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255,215,0,0.5), transparent);
}
.hero-terrain-content {
    position: relative;
    z-index: 1;
}
.hero-icon {
    font-size: 28px;
    filter: drop-shadow(0 0 10px rgba(255,215,0,0.5));
}
.hero-island-name {
    font-family: 'Exo 2', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #ffd700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 6px 0 2px;
    text-shadow: 0 0 12px rgba(255,215,0,0.3);
}
.hero-subtitle {
    font-size: 11px;
    color: rgba(176, 224, 255, 0.5);
    font-family: 'Exo 2', sans-serif;
    letter-spacing: 1px;
}
.hero-carousel {
    margin-top: 16px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,215,0,0.15);
    box-shadow: 0 8px 40px rgba(0,0,0,0.4), 0 0 30px rgba(255,215,0,0.08);
}
.hero-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.hero-slide {
    min-width: 100%;
    flex-shrink: 0;
}
.hero-slide-link {
    display: block;
    text-decoration: none;
    color: #e0e8f0;
    position: relative;
}
.hero-slide-thumb {
    width: 100%;
    height: 0;
    padding-bottom: 56%;
    background-size: cover;
    background-position: center;
}
.hero-slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 24px 20px;
    background: linear-gradient(transparent, rgba(10,12,20,0.95));
}
.hero-slide-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    font-family: 'Exo 2', sans-serif;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.hero-slide-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hero-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}
.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid rgba(255,215,0,0.3);
    background: rgba(255,215,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}
.hero-dot.active {
    background: #ffd700;
    box-shadow: 0 0 8px rgba(255,215,0,0.5);
    transform: scale(1.2);
}
.hero-dot:hover { background: rgba(255,215,0,0.4); }
.hero-base {
    height: 30px;
    background: linear-gradient(180deg, rgba(255,215,0,0.1), transparent);
    clip-path: polygon(20% 0, 80% 0, 100% 100%, 0% 100%);
    margin-top: -1px;
}

.first-screen-ad {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.islands-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.island {
    position: relative;
    margin: 60px auto 80px;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.island.island-visible {
    opacity: 1;
    transform: translateY(0);
}
.island-glow {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 40px;
    background: radial-gradient(ellipse, var(--island-color, #4a90e2)22, transparent);
    filter: blur(10px);
    pointer-events: none;
}
.island-body {
    background: rgba(10, 12, 20, 0.88);
    border-radius: 24px 24px 50% 50% / 24px 24px 40px 40px;
    border: 1px solid var(--island-color, #4a90e2)33;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px var(--island-color, #4a90e2)11;
    overflow: hidden;
    animation: islandFloat 6s ease-in-out infinite;
}
@keyframes islandFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.island-terrain {
    background: linear-gradient(135deg, var(--island-color, #4a90e2)22, var(--island-color, #4a90e2)11);
    padding: 20px 28px 16px;
    border-bottom: 2px solid var(--island-color, #4a90e2)33;
    position: relative;
    overflow: hidden;
}
.island-peak {
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--island-color, #4a90e2)66, transparent);
}
.island-terrain-content {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}
.island-icon {
    font-size: 26px;
    filter: drop-shadow(0 0 8px var(--island-color, #4a90e2)66);
}
.island-name {
    font-family: 'Exo 2', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--island-color, #4a90e2);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-shadow: 0 0 10px var(--island-color, #4a90e2)33;
}
.island-count {
    font-size: 11px;
    color: rgba(176, 224, 255, 0.5);
    font-family: 'Exo 2', sans-serif;
    letter-spacing: 0.5px;
    margin-left: auto;
}

.island-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    padding: 20px;
}

.island-base {
    height: 25px;
    background: linear-gradient(180deg, var(--island-color, #4a90e2)11, transparent);
    clip-path: polygon(15% 0, 85% 0, 100% 100%, 0% 100%);
}

.island-clouds {
    position: relative;
    height: 30px;
    margin-top: -5px;
    pointer-events: none;
}
.cloud {
    position: absolute;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
    filter: blur(8px);
}
.cloud-1 {
    width: 120px;
    height: 30px;
    left: 10%;
    animation: cloudDrift 20s linear infinite;
}
.cloud-2 {
    width: 80px;
    height: 20px;
    left: 50%;
    animation: cloudDrift 25s linear infinite reverse;
}
.cloud-3 {
    width: 100px;
    height: 25px;
    right: 10%;
    animation: cloudDrift 18s linear infinite;
}
@keyframes cloudDrift {
    0% { transform: translateX(0); }
    50% { transform: translateX(30px); }
    100% { transform: translateX(0); }
}

.isle-card {
    background: rgba(10, 12, 20, 0.9);
    border: 1px solid var(--cat-color, #4a90e2)33;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.35s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3), 0 0 10px var(--cat-color, #4a90e2)11;
}
.isle-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.5), 0 0 25px var(--cat-color, #4a90e2)33;
    border-color: var(--cat-color, #4a90e2)66;
}
.isle-card:active { transform: scale(0.98); }
.isle-card-link {
    text-decoration: none;
    color: #e0e8f0;
    display: block;
}
.isle-card-thumb {
    width: 100%;
    height: 0;
    padding-bottom: 56%;
    background-size: cover;
    background-position: center;
    border-bottom: 2px solid var(--cat-color, #4a90e2)44;
}
.isle-card-body {
    padding: 12px 14px;
}
.isle-card-title {
    font-size: 13px;
    font-weight: 600;
    color: #e0e8f0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.floating-panel {
    position: fixed;
    z-index: 100;
    background: rgba(10, 12, 30, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(176, 224, 255, 0.12);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.6), 0 0 15px rgba(74,144,226,0.06);
    overflow: hidden;
}
.panel-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(176, 224, 255, 0.08);
}
.panel-icon { font-size: 14px; }
.panel-title {
    font-size: 11px;
    font-weight: 600;
    color: #b0e0ff;
    letter-spacing: 1px;
    text-transform: uppercase;
    flex: 1;
    font-family: 'Exo 2', sans-serif;
}
.panel-toggle {
    background: none;
    border: none;
    color: #b0e0ff;
    cursor: pointer;
    font-size: 16px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}
.panel-toggle:hover { background: rgba(176, 224, 255, 0.1); }
.panel-toggle:active { transform: scale(0.9); }
.panel-body { padding: 10px 14px; }

.search-panel { top: 70px; right: 20px; width: 260px; }
.search-input-wrap { display: flex; gap: 6px; }
.search-input-wrap input {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(176, 224, 255, 0.12);
    border-radius: 8px;
    padding: 7px 10px;
    color: #e0e8f0;
    font-size: 12px;
    outline: none;
    font-family: 'Inter', sans-serif;
}
.search-input-wrap input:focus { border-color: #4a90e2; box-shadow: 0 0 10px rgba(74,144,226,0.2); }
.search-input-wrap input::placeholder { color: rgba(176, 224, 255, 0.35); }
.search-btn {
    background: rgba(74,144,226,0.1);
    border: 1px solid rgba(74,144,226,0.2);
    color: #b0e0ff;
    width: 34px; height: 34px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.search-btn:hover { background: rgba(74,144,226,0.2); }
.search-btn:active { transform: scale(0.92); }
.search-results { margin-top: 8px; max-height: 180px; overflow-y: auto; }
.search-count { font-size: 10px; color: rgba(176, 224, 255, 0.4); margin-bottom: 4px; }
.search-result-item {
    display: block;
    padding: 5px 8px;
    font-size: 11px;
    color: #e0e8f0;
    text-decoration: none;
    border-radius: 5px;
    border-left: 2px solid var(--cat-color, #4a90e2);
    margin-bottom: 3px;
    transition: all 0.2s ease;
}
.search-result-item:hover { background: rgba(74,144,226,0.08); padding-left: 12px; }

.category-panel { top: 140px; left: 20px; width: 190px; }
.cat-filter-list { display: flex; flex-direction: column; gap: 3px; }
.cat-filter-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 9px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(176, 224, 255, 0.06);
    border-radius: 7px;
    color: #e0e8f0;
    font-size: 11px;
    font-family: 'Exo 2', sans-serif;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: left;
}
.cat-filter-btn:hover {
    background: rgba(74,144,226,0.08);
    border-color: var(--cat-color, #4a90e2);
    transform: translateX(3px);
}
.cat-filter-btn:active { transform: scale(0.96); }
.cat-filter-btn.active {
    background: rgba(74,144,226,0.1);
    border-color: var(--cat-color, #4a90e2);
    box-shadow: 0 0 8px var(--cat-color, #4a90e2)44;
    color: #fff;
}
.cat-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 4px var(--cat-color, #4a90e2);
}

.compass-panel {
    bottom: 90px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 6px;
}
.compass-btn {
    width: 36px; height: 36px;
    border-radius: 8px;
    background: rgba(10, 12, 30, 0.88);
    border: 1px solid rgba(176, 224, 255, 0.15);
    color: #b0e0ff;
    cursor: pointer;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}
.compass-btn:hover {
    background: rgba(74,144,226,0.15);
    border-color: #4a90e2;
    box-shadow: 0 0 10px rgba(74,144,226,0.2);
}
.compass-btn:active { transform: scale(0.88); }

.nav-belt {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    gap: 5px;
    padding: 8px 14px;
    background: rgba(10, 12, 30, 0.92);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(176, 224, 255, 0.12);
    border-radius: 28px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.6), 0 0 20px rgba(74,144,226,0.06);
}
.nav-isle-btn {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(176, 224, 255, 0.08);
    cursor: pointer;
    font-size: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}
.nav-isle-btn:hover {
    background: rgba(74,144,226,0.12);
    border-color: var(--cat-color, #4a90e2);
    box-shadow: 0 0 14px var(--cat-color, #4a90e2)44;
    transform: scale(1.15);
}
.nav-isle-btn:active { transform: scale(0.88); }
.nav-home-btn {
    background: rgba(255,215,0,0.08);
    border-color: rgba(255,215,0,0.2);
}

.isle-tooltip {
    display: none;
    position: fixed;
    z-index: 300;
    background: rgba(10, 12, 30, 0.92);
    border: 1px solid rgba(176, 224, 255, 0.2);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 12px;
    color: #e0e8f0;
    max-width: 250px;
    pointer-events: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5), 0 0 10px rgba(74,144,226,0.1);
    line-height: 1.3;
}

.random-game-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: all 0.3s ease;
}
.random-game-modal.active { pointer-events: auto; opacity: 1; }
.random-game-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 12, 30, 0.88);
    backdrop-filter: blur(8px);
}
.random-game-content {
    position: relative;
    z-index: 1;
    background: rgba(10, 12, 20, 0.95);
    border: 1px solid rgba(176, 224, 255, 0.15);
    border-radius: 16px;
    padding: 24px;
    max-width: 360px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 50px rgba(74,144,226,0.08);
    transform: scale(0.9);
    transition: all 0.3s ease;
}
.random-game-modal.active .random-game-content { transform: scale(1); }
.modal-close {
    position: absolute;
    top: 10px; right: 14px;
    background: none;
    border: none;
    color: #b0e0ff;
    font-size: 22px;
    cursor: pointer;
    width: 30px; height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}
.modal-close:hover { background: rgba(176, 224, 255, 0.1); }
.modal-close:active { transform: scale(0.9); }
.modal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}
.modal-icon {
    font-size: 20px;
    filter: drop-shadow(0 0 8px rgba(255,215,0,0.5));
}
.modal-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: #ffd700;
    letter-spacing: 0.5px;
    font-family: 'Exo 2', sans-serif;
}
.random-game-card { margin-bottom: 16px; }
.random-card-link {
    text-decoration: none;
    color: #e0e8f0;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}
.random-card-link:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.5); }
.random-card-link:active { transform: scale(0.97); }
.random-card-image {
    width: 100%;
    height: 170px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}
.random-card-badge {
    position: absolute;
    top: 8px; left: 8px;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    font-family: 'Exo 2', sans-serif;
}
.random-card-info { padding: 12px; }
.random-card-info h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #e0e8f0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.try-another-btn {
    width: 100%;
    padding: 11px;
    background: rgba(74,144,226,0.08);
    border: 1px solid rgba(74,144,226,0.18);
    color: #b0e0ff;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Exo 2', sans-serif;
    transition: all 0.3s ease;
}
.try-another-btn:hover { background: rgba(74,144,226,0.15); box-shadow: 0 0 14px rgba(74,144,226,0.15); }
.try-another-btn:active { transform: scale(0.97); }

.detail-header {
    background: linear-gradient(180deg, rgba(74,144,226,0.06), transparent);
    border-bottom: 1px solid rgba(176, 224, 255, 0.08);
    padding: 20px;
    position: relative;
    z-index: 1;
}
.detail-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cat-color, #4a90e2)44, transparent);
}
.detail-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(74,144,226,0.08);
    color: #b0e0ff;
    border: 1px solid rgba(74,144,226,0.2);
    padding: 10px 22px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: 'Exo 2', sans-serif;
}
.detail-back-btn:hover { background: rgba(74,144,226,0.15); box-shadow: 0 0 15px rgba(74,144,226,0.15); }
.detail-back-btn:active { transform: scale(0.97); }
.detail-cat-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Exo 2', sans-serif;
}
.detail-main {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}
.detail-image-wrap { text-align: center; margin: 30px 0; }
.detail-image {
    display: inline-block;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid;
    transition: all 0.3s ease;
}
.detail-image:hover { box-shadow: 0 0 70px var(--cat-color, #4a90e2)33; }
.detail-image img { display: block; max-width: 100%; width: 600px; height: auto; }
.detail-content {
    background: rgba(10, 12, 20, 0.9);
    border: 1px solid rgba(176, 224, 255, 0.08);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
.detail-content h1 {
    color: #e0e8f0;
    font-size: 24px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(176, 224, 255, 0.1);
    padding-bottom: 15px;
    line-height: 1.4;
}
.detail-content .article-body {
    line-height: 1.9;
    color: rgba(224, 232, 240, 0.85);
    font-size: 15px;
    white-space: pre-wrap;
}
.detail-related-section { margin-top: 50px; }
.detail-section-title {
    color: #ffd700;
    margin-bottom: 20px;
    font-size: 20px;
    border-bottom: 1px solid rgba(255,215,0,0.15);
    display: inline-block;
    padding-bottom: 8px;
    font-family: 'Exo 2', sans-serif;
}
.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}
@media (min-width: 768px) {
    .related-articles-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}
.related-article {
    border-radius: 8px;
    overflow: hidden;
    background: rgba(10, 12, 20, 0.9);
    border: 1px solid rgba(176, 224, 255, 0.06);
    transition: all 0.35s ease;
}
.related-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.5), 0 0 22px var(--cat-color, #4a90e2);
    border-color: var(--cat-color, #4a90e2);
}
.related-article:active { transform: scale(0.97); }
.related-link { text-decoration: none; color: #e0e8f0; display: block; }
.related-thumb-wrap { position: relative; }
.related-thumb {
    width: 100%;
    height: 100px;
    background-size: cover;
    background-position: center;
    border-bottom: 2px solid var(--cat-color, #4a90e2);
}
.related-badge {
    position: absolute;
    top: 6px; right: 6px;
    width: 22px; height: 22px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #fff;
}
.related-info { padding: 10px 12px; }
.related-title {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: #e0e8f0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
}
.related-cat-label {
    font-size: 10px;
    margin-top: 4px;
    display: block;
    font-family: 'Exo 2', sans-serif;
}

.static-header {
    background: linear-gradient(180deg, rgba(74,144,226,0.06), transparent);
    border-bottom: 1px solid rgba(176, 224, 255, 0.08);
    padding: 25px 20px;
    position: relative;
    z-index: 1;
}
.static-main {
    max-width: 900px;
    margin: 0 auto;
    padding: 50px 20px;
    position: relative;
    z-index: 1;
}
.static-title {
    color: #ffd700;
    margin-bottom: 35px;
    font-size: 28px;
    border-bottom: 1px solid rgba(255,215,0,0.15);
    padding-bottom: 15px;
    font-family: 'Exo 2', sans-serif;
}
.static-content {
    background: rgba(10, 12, 20, 0.9);
    padding: 40px;
    border-radius: 16px;
    line-height: 1.9;
    color: rgba(224, 232, 240, 0.85);
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
    border: 1px solid rgba(176, 224, 255, 0.08);
}

.site-footer {
    background: linear-gradient(180deg, rgba(10, 12, 30, 0.95), rgba(10, 12, 20, 0.98));
    color: #b0e0ff;
    padding: 45px 20px;
    margin-top: 60px;
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(176, 224, 255, 0.1);
}
.footer-aurora {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #4a90e2, #ffd700, #4a90e2, transparent);
    opacity: 0.5;
    animation: auroraPulse 4s ease-in-out infinite;
}
@keyframes auroraPulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 0.7; } }
.footer-content { max-width: 1200px; margin: 0 auto; text-align: center; }
.footer-links { display: flex; justify-content: center; gap: 40px; margin-bottom: 30px; flex-wrap: wrap; }
.footer-links a {
    color: #b0e0ff;
    text-decoration: none;
    font-size: 15px;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: 'Exo 2', sans-serif;
}
.footer-links a:hover { color: #fff; text-shadow: 0 0 12px rgba(176,224,255,0.5); background: rgba(74,144,226,0.08); }
.footer-links a:active { background: rgba(74,144,226,0.15); transform: scale(0.97); }
.footer-copyright { padding-top: 20px; border-top: 1px solid rgba(176, 224, 255, 0.08); }
.footer-copyright p { color: rgba(176, 224, 255, 0.3); font-size: 14px; }

button { transition: all 0.3s ease; }
img { max-width: 100%; height: auto; }
a { transition: all 0.3s ease; }
::selection { background: rgba(74,144,226,0.3); color: #e0e8f0; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #1a1a3e; }
::-webkit-scrollbar-thumb { background: rgba(74,144,226,0.25); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(74,144,226,0.45); }

@media (max-width: 768px) {
    .search-panel, .category-panel { display: none !important; }
    .compass-panel { bottom: 75px; right: 10px; }
    .compass-btn { width: 32px; height: 32px; font-size: 13px; }
    .nav-belt {
        bottom: 10px;
        padding: 5px 8px;
        gap: 3px;
        max-width: 95vw;
        overflow-x: auto;
        scrollbar-width: none;
    }
    .nav-belt::-webkit-scrollbar { display: none; }
    .nav-isle-btn { width: 32px; height: 32px; font-size: 15px; flex-shrink: 0; }
    .island-cards {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 12px;
        padding: 14px;
    }
    .detail-content h1 { font-size: 20px; }
    .detail-image img { width: 100%; }
    .hero-slide-title { font-size: 15px; }
    .hud-brand-name { font-size: 16px; }
    .hud-tagline { display: none; }
}