/* Hollow Light Studios - Official Realistic Dark Forest & Lantern Theme */
:root {
    --bg-dark: #080705;
    --bg-secondary: #120e0a;
    --bg-card: rgba(20, 16, 12, 0.85);
    --border-amber: rgba(255, 171, 46, 0.28);
    --border-subtle: rgba(216, 206, 185, 0.12);
    
    --amber-gold: #ffab2e;
    --amber-bright: #ffc86b;
    --amber-deep: #e67e22;
    --moon-ivory: #f4efe6;
    --moon-muted: #cbbfa9;
    --text-muted: #8c8273;
    
    --font-heading: 'Cinzel', serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    --radius-sm: 6px;
    --radius-md: 14px;
    --radius-lg: 20px;
}

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

html {
    scroll-behavior: smooth;
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--moon-ivory);
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    overflow-x: hidden;
    line-height: 1.6;
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 50% 18%, rgba(255, 171, 46, 0.09) 0%, transparent 55%),
        radial-gradient(circle at 80% 65%, rgba(230, 126, 34, 0.04) 0%, transparent 45%);
}

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

/* Ambient Lantern Flicker Background */
.lantern-glow {
    position: fixed;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 850px;
    height: 850px;
    background: radial-gradient(circle, rgba(255, 171, 46, 0.07) 0%, rgba(230, 126, 34, 0.02) 40%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: lanternPulse 6s infinite ease-in-out;
}

@keyframes lanternPulse {
    0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.04); }
}

/* Glassmorphism utility */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-amber);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 171, 46, 0.15);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(8, 7, 5, 0.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-amber);
    padding: 6px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.nav-logo-img {
    height: 42px;
    width: 42px;
    object-fit: contain;
    background: transparent;
    filter: drop-shadow(0 0 8px rgba(255, 171, 46, 0.45));
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--moon-ivory);
    letter-spacing: 2px;
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text .subtext {
    font-size: 0.65rem;
    color: var(--amber-gold);
    letter-spacing: 5px;
}

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

.nav-link {
    text-decoration: none;
    color: var(--moon-muted);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--amber-bright);
    text-shadow: 0 0 10px rgba(255, 171, 46, 0.6);
}

.btn-nav {
    background: linear-gradient(135deg, var(--amber-deep), #b35900);
    color: #fff !important;
    padding: 8px 22px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 171, 46, 0.5);
    box-shadow: 0 0 15px rgba(230, 126, 34, 0.4);
}

.btn-nav:hover {
    box-shadow: 0 0 25px rgba(255, 171, 46, 0.7);
    transform: translateY(-2px);
}

.mobile-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    color: var(--amber-gold);
    font-size: 1.35rem;
    cursor: pointer;
    z-index: 1001;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 108px 24px 80px;
    text-align: center;
    z-index: 1;
}

.hero-content {
    max-width: 850px;
    margin: 0 auto;
}

/* Brand Hero Emblem Styling - 100% Transparent Background */
.brand-hero-logo {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
    background: transparent;
    border: none;
    box-shadow: none;
}

.hero-emblem {
    max-width: 320px;
    height: auto;
    object-fit: contain;
    background: transparent;
    border: none;
    outline: none;
    box-shadow: none;
    filter: drop-shadow(0 0 30px rgba(255, 171, 46, 0.4));
    transition: transform 0.4s ease, filter 0.4s ease;
}

.hero-emblem:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 0 45px rgba(255, 171, 46, 0.65));
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 20px;
    border-radius: 50px;
    background: rgba(255, 171, 46, 0.1);
    border: 1px solid var(--border-amber);
    color: var(--amber-gold);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 24px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: 3px;
    margin-bottom: 16px;
    color: var(--moon-ivory);
}

.text-gold {
    color: var(--amber-gold);
    text-shadow: 0 0 20px rgba(255, 171, 46, 0.5);
}

.hero-divider {
    color: var(--amber-gold);
    font-size: 1.2rem;
    margin: 16px 0 24px;
    opacity: 0.8;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--moon-muted);
    max-width: 720px;
    margin: 0 auto 40px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 60px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 34px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--amber-gold), var(--amber-deep));
    color: #000;
    box-shadow: 0 0 20px rgba(255, 171, 46, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(255, 171, 46, 0.7);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-amber);
    color: var(--moon-ivory);
}

.btn-secondary:hover {
    background: rgba(255, 171, 46, 0.1);
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--amber-gold);
    text-shadow: 0 0 12px rgba(255, 171, 46, 0.3);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-amber);
}

/* Section Shared */
.section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.subheading {
    color: var(--amber-gold);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--moon-ivory);
    margin-bottom: 12px;
}

.header-line {
    width: 60px;
    height: 2px;
    background: var(--amber-gold);
    margin: 0 auto 16px;
    box-shadow: 0 0 10px var(--amber-gold);
}

.section-subtext {
    color: var(--moon-muted);
    font-size: 1rem;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 24px;
}

.about-card {
    padding: 36px 28px;
    border-radius: var(--radius-md);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.about-card:hover {
    transform: translateY(-6px);
    border-color: var(--amber-gold);
}

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    background: rgba(255, 171, 46, 0.1);
    border: 1px solid var(--border-amber);
    color: var(--amber-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.about-card h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    margin-bottom: 12px;
    color: var(--moon-ivory);
}

.about-card p {
    color: var(--moon-muted);
    font-size: 0.95rem;
}

/* Games Section */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
    gap: 32px;
}

.game-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.game-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 10;
    letter-spacing: 1px;
}

.status-beta {
    background: var(--amber-gold);
    color: #000;
    box-shadow: 0 0 12px rgba(255, 171, 46, 0.5);
}

.status-alpha {
    background: rgba(255, 255, 255, 0.15);
    color: var(--moon-ivory);
    border: 1px solid var(--border-amber);
}

.game-header-banner {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 1px solid var(--border-amber);
}

.tag-bg {
    background: radial-gradient(circle, rgba(230, 126, 34, 0.3) 0%, rgba(15, 12, 9, 0.9) 80%);
}

.hotmic-bg {
    background: radial-gradient(circle, rgba(138, 43, 226, 0.25) 0%, rgba(15, 12, 9, 0.9) 80%);
}

.game-big-icon {
    font-size: 3.5rem;
    color: var(--amber-gold);
    opacity: 0.7;
}

.game-content {
    padding: 32px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.game-content h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--moon-ivory);
    margin-bottom: 4px;
}

.game-genre {
    color: var(--amber-gold);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.game-description {
    color: var(--moon-muted);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.game-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.game-features span {
    font-size: 0.88rem;
    color: var(--moon-muted);
}

.game-features i {
    color: var(--amber-gold);
    margin-right: 8px;
}

.game-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
}

.progress-mini .progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.progress-mini .pct {
    color: var(--amber-gold);
    font-family: var(--font-heading);
}

.progress-bar-bg {
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--amber-deep), var(--amber-bright));
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 171, 46, 0.5);
}

/* Detailed Progress Section */
.tab-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.tab-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-amber);
    color: var(--moon-muted);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active, .tab-btn:hover {
    background: linear-gradient(135deg, var(--amber-gold), var(--amber-deep));
    color: #000;
    border-color: transparent;
    box-shadow: 0 0 20px rgba(255, 171, 46, 0.5);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.progress-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 24px;
}

.progress-item {
    padding: 28px;
    border-radius: var(--radius-md);
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.item-header .title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--moon-ivory);
    line-height: 1.35;
}

.item-header .title i {
    color: var(--amber-gold);
    margin-right: 8px;
}

.item-header .value {
    color: var(--amber-gold);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
}

.bar-bg {
    height: 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid var(--border-subtle);
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--amber-deep), var(--amber-bright));
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 171, 46, 0.4);
}

.notes {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* News Section */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 24px;
}

.news-card {
    padding: 32px;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
}

.news-date {
    font-size: 0.8rem;
    color: var(--amber-gold);
    margin-bottom: 12px;
}

.news-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--moon-ivory);
    margin-bottom: 12px;
    line-height: 1.3;
}

.news-card p {
    color: var(--moon-muted);
    font-size: 0.92rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more {
    color: var(--amber-gold);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s ease;
}

.read-more:hover {
    gap: 10px;
    color: var(--amber-bright);
}

/* Contact Section */
.contact-box {
    padding: 60px 40px;
    border-radius: var(--radius-lg);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    background: radial-gradient(circle at center, rgba(255, 171, 46, 0.1), transparent 75%), var(--bg-card);
}

.lantern-icon {
    font-size: 2.5rem;
    color: var(--amber-gold);
    margin-bottom: 16px;
    filter: drop-shadow(0 0 15px var(--amber-gold));
}

.contact-content h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--moon-ivory);
    margin-bottom: 12px;
}

.contact-content p {
    color: var(--moon-muted);
    margin-bottom: 32px;
}

.subscribe-form {
    display: flex;
    justify-content: center;
    gap: 12px;
    max-width: 520px;
    margin: 0 auto;
}

.subscribe-form input {
    flex-grow: 1;
    min-width: 0;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-amber);
    background: rgba(9, 8, 6, 0.9);
    color: var(--moon-ivory);
    font-family: var(--font-body);
    font-size: 16px;
}

.subscribe-form input:focus {
    outline: none;
    border-color: var(--amber-gold);
    box-shadow: 0 0 15px rgba(255, 171, 46, 0.3);
}

.form-success-msg {
    display: none;
    margin-top: 16px;
    color: var(--amber-gold);
    font-weight: 600;
}

/* Footer */
.footer {
    background: #050403;
    border-top: 1px solid var(--border-amber);
    padding: 60px 0 30px;
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    margin-bottom: 12px;
}

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

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.88rem;
    max-width: 320px;
}

.footer-links h4, .footer-social h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--moon-ivory);
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    color: var(--moon-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--amber-gold);
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-amber);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--moon-ivory);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--amber-gold);
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(255, 171, 46, 0.6);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 1024px) {
    .nav-links {
        gap: 18px;
    }

    .hero-title {
        font-size: 2.8rem;
        letter-spacing: 2px;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 900px) {
    .nav-container {
        position: relative;
        min-height: 56px;
    }

    .mobile-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 12px 20px 20px;
        background: rgba(8, 7, 5, 0.98);
        border-bottom: 1px solid var(--border-amber);
        box-shadow: 0 16px 32px rgba(0, 0, 0, 0.55);
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-link {
        display: flex;
        align-items: center;
        min-height: 44px;
        padding: 10px 12px;
        font-size: 0.95rem;
    }

    .btn-nav {
        justify-content: center;
        width: 100%;
        margin-top: 8px;
    }

    body.nav-open {
        overflow: hidden;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .lantern-glow {
        width: 420px;
        height: 420px;
    }

    .hero {
        min-height: auto;
        padding: 88px 16px 56px;
    }

    .hero-emblem {
        max-width: 210px;
    }

    .badge {
        font-size: 0.68rem;
        letter-spacing: 1px;
        padding: 6px 12px;
        max-width: 100%;
        text-align: center;
        white-space: normal;
        line-height: 1.4;
    }

    .hero-title {
        font-size: 1.85rem;
        letter-spacing: 1px;
        line-height: 1.3;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 28px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-bottom: 40px;
    }

    .hero-buttons .btn {
        justify-content: center;
        width: 100%;
        min-height: 48px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .stat-divider {
        display: none;
    }

    .section {
        padding: 64px 0;
    }

    .section-header {
        margin-bottom: 36px;
    }

    .section-header h2 {
        font-size: 1.85rem;
        letter-spacing: 1px;
    }

    .subheading {
        letter-spacing: 2px;
        font-size: 0.75rem;
    }

    .about-card,
    .news-card,
    .progress-item {
        padding: 24px 20px;
    }

    .game-content {
        padding: 24px 20px;
    }

    .game-tag {
        top: 12px;
        right: 12px;
        font-size: 0.68rem;
        padding: 5px 10px;
        max-width: calc(100% - 24px);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .tab-btn {
        width: 100%;
        justify-content: center;
        min-height: 44px;
    }

    .contact-box {
        padding: 36px 18px;
    }

    .contact-content h2 {
        font-size: 1.7rem;
    }

    .subscribe-form {
        flex-direction: column;
    }

    .subscribe-form .btn {
        width: 100%;
        justify-content: center;
    }

    .footer {
        padding: 40px 0 24px;
    }

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

@media (max-width: 480px) {
    .logo-text {
        font-size: 0.95rem;
        letter-spacing: 1px;
    }

    .logo-text .subtext {
        letter-spacing: 3px;
    }

    .hero-emblem {
        max-width: 170px;
    }

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

    .stat-number {
        font-size: 1.8rem;
    }

    .game-content h3 {
        font-size: 1.45rem;
    }
}
