/* === Reset & Base === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --orange: #E8751A;
    --orange-light: #F4A261;
    --orange-dark: #C45A0E;
    --gold: #E9C46A;
    --gold-light: #F0D68A;
    --amber: #D48A3C;
    --bg-dark: #1A1A2E;
    --bg-card: #16213E;
    --text-primary: #F5F5F5;
    --text-secondary: #A0A0B0;
    --text-muted: #707088;
    --accent: #E9C46A;
    --live-green: #4ADE80;
    --font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background: var(--bg-dark);
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.7;
    min-height: 100vh;
}

a {
    color: var(--orange-light);
    text-decoration: none;
}

/* === Navbar === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    height: 64px;
    background: rgba(26, 26, 46, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.navbar-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--orange-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand .logo {
    display: flex;
    width: 32px;
    height: 32px;
}

.navbar-brand .logo img {
    width: 100%;
    height: 100%;
    display: block;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
}

.navbar-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: color 0.2s;
}

.navbar-links a:hover,
.navbar-links a.active {
    color: var(--text-primary);
}

/* Hamburger toggle (hidden on desktop) */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 28px;
    height: 28px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 0;
    z-index: 110;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: all 0.25s;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* === Language Switcher === */
.lang-switcher {
    display: flex;
    gap: 0.25rem;
    background: rgba(255,255,255,0.06);
    border-radius: 8px;
    padding: 2px;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
}

.lang-btn.active {
    background: var(--orange);
    color: #fff;
}

.lang-btn:hover:not(.active) {
    color: var(--text-primary);
}

/* === Hero — Video Background === */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    background: var(--bg-dark);
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg,
            rgba(26, 26, 46, 0.4) 0%,
            rgba(26, 26, 46, 0.25) 40%,
            rgba(26, 26, 46, 0.6) 70%,
            rgba(26, 26, 46, 0.9) 100%);
}

/* Hero content */
.hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-fox {
    font-size: 4.5rem;
    margin-bottom: 0.75rem;
    animation: float-fox 4s ease-in-out infinite;
    filter: drop-shadow(0 4px 20px rgba(232, 117, 26, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-fox img {
    width: 80px;
    height: 80px;
    display: block;
}

@keyframes float-fox {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.live-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 1rem 0.35rem 0.75rem;
    background: rgba(74, 222, 128, 0.15);
    border: 1px solid rgba(74, 222, 128, 0.3);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--live-green);
    margin-bottom: 1.5rem;
    font-weight: 500;
    backdrop-filter: blur(8px);
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--live-green);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4); }
    50% { opacity: 0.6; box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 16px rgba(0,0,0,0.4);
}

.hero .subtitle {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 2rem;
    font-weight: 400;
    max-width: 440px;
    line-height: 1.6;
    text-shadow: 0 1px 12px rgba(0,0,0,0.4);
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 2.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 4px 24px rgba(232, 117, 26, 0.3);
}

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 32px rgba(232, 117, 26, 0.45);
}

.hero-btn:active {
    transform: translateY(0);
}

.hero-badge {
    display: inline-block;
    padding: 0.3rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gold);
    background: rgba(233, 196, 106, 0.1);
    border: 1px solid rgba(233, 196, 106, 0.2);
    border-radius: 100px;
    margin-bottom: 1.5rem;
    letter-spacing: 0.01em;
}

/* Hero scene hint */
.hero-scene-hint {
    position: absolute;
    bottom: 6%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    background: rgba(0,0,0,0.3);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    backdrop-filter: blur(4px);
}

/* === Gallery Section === */
.gallery .section-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2.5rem;
}

.gallery {
    padding: 5rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.gallery-item {
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s;
    aspect-ratio: 16 / 9;
}

.gallery-item:hover {
    border-color: rgba(232, 117, 26, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.gallery-item--wide {
    grid-column: 1 / -1;
    aspect-ratio: 21 / 9;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: inherit;
    object-fit: cover;
}



/* === Info Row === */
.info-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.info-item {
    text-align: center;
    padding: 1.5rem 1.5rem;
    border-right: 1px solid rgba(255,255,255,0.05);
}

.info-item:last-child {
    border-right: none;
}

.info-icon {
    font-size: 2.2rem;
    margin-bottom: 0.6rem;
}

.info-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.info-item p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.5;
    max-width: 220px;
    margin: 0 auto;
}

/* === Coming Soon === */
.coming-section {
    padding: 4rem 2rem 5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.coming-section .section-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2.5rem;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.game-card {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.25s;
}

.game-card:hover {
    border-color: rgba(233, 196, 106, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.game-card-icon {
    font-size: 2.6rem;
    margin-bottom: 0.75rem;
}

.game-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.game-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.soon-badge {
    display: inline-block;
    padding: 0.25rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--gold);
    background: rgba(233, 196, 106, 0.1);
    border: 1px solid rgba(233, 196, 106, 0.2);
    border-radius: 100px;
}

/* === About Page === */
.about-hero {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
    background:
        radial-gradient(ellipse at 30% 40%, rgba(232, 117, 26, 0.08) 0%, transparent 55%),
        radial-gradient(ellipse at 70% 60%, rgba(233, 196, 106, 0.06) 0%, transparent 50%);
}

.about-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.75rem;
}

.about-hero p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 500px;
    line-height: 1.6;
}

.about-body {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 2rem 5rem;
}

.about-section {
    margin-bottom: 3.5rem;
}

.about-section:last-child {
    margin-bottom: 0;
}

.about-section h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--orange-light);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.about-section p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about-section p:last-child {
    margin-bottom: 0;
}

.about-dev {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.about-dev-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-dark);
}

.about-dev-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-dev-content h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.about-dev-content .dev-role {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.about-dev-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.about-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.about-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.9rem;
    color: var(--orange-light);
    transition: color 0.2s;
}

.about-link:hover {
    color: var(--gold);
}

.about-timeline {
    list-style: none;
    padding: 0;
}

.about-timeline li {
    display: flex;
    gap: 1rem;
    padding-bottom: 1.5rem;
    position: relative;
    padding-left: 1.5rem;
    border-left: 2px solid rgba(255,255,255,0.06);
}

.about-timeline li:last-child {
    padding-bottom: 0;
}

.about-timeline .tl-marker {
    position: absolute;
    left: -5px;
    top: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--orange);
}

.about-timeline .tl-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    min-width: 70px;
    padding-top: 1px;
}

.about-timeline .tl-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 640px) {
    .about-hero h1 { font-size: 2.2rem; }
    .about-body { padding: 0 1.25rem 3rem; }
    .about-dev { flex-direction: column; align-items: center; text-align: center; }
    .about-timeline li { flex-direction: column; gap: 0.25rem; }
    .about-timeline .tl-date { min-width: auto; }
}

/* === Footer === */
.footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid rgba(255,255,255,0.04);
}

/* === Game Page === */
.game-page {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: #000;
}

.game-page .btn-back {
    padding: 0.5rem 1.1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    background: rgba(255,255,255,0.08);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.game-page .btn-back:hover {
    background: rgba(255,255,255,0.14);
    color: var(--text-primary);
}

/* === Loading Overlay (game page) === */

/* === Responsive === */
@media (max-width: 768px) {
    .navbar {
        padding: 0 1rem;
    }
    .navbar-links {
        gap: 0.75rem;
    }
    .navbar-links a {
        font-size: 0.9rem;
    }
    .navbar-brand {
        font-size: 1.05rem;
    }
    .navbar-brand .logo {
        width: 26px;
        height: 26px;
    }
    .hero {
        padding: 1.25rem;
    }
    .hero h1 {
        font-size: 2.4rem;
    }
    .hero .subtitle {
        font-size: 0.95rem;
        max-width: 340px;
    }
    .hero-fox img {
        width: 64px;
        height: 64px;
    }
    .info-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 2rem 1.25rem;
    }
    .info-item {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        padding: 1.25rem;
    }
    .info-item:last-child {
        border-bottom: none;
    }
    .gallery {
        padding: 3rem 1.25rem;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .gallery-item {
        aspect-ratio: 16 / 9;
    }
    .gallery-item--wide {
        aspect-ratio: 16 / 9;
    }
    .games-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    .coming-section {
        padding: 3rem 1.25rem 4rem;
    }
    .coming-section .section-title {
        font-size: 1.4rem;
    }
    .hero-scene-hint {
        bottom: 3%;
        font-size: 0.78rem;
    }
    .about-hero {
        padding: 6rem 1.25rem 3rem;
    }
    .about-body {
        padding: 0 1.25rem 3rem;
    }
}

@media (max-width: 640px) {
    .nav-toggle {
        display: flex;
    }
    .navbar-links {
        display: none;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(26, 26, 46, 0.97);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 1rem 1.5rem 1.5rem;
        gap: 0.25rem;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        align-items: stretch;
    }
    .navbar-links.open {
        display: flex;
    }
    .navbar-links li {
        width: 100%;
    }
    .navbar-links a {
        display: block;
        padding: 0.7rem 0;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.04);
    }
    .navbar-links li:last-child {
        margin-top: 0.5rem;
    }
    .navbar-links li:last-child a {
        border-bottom: none;
        text-align: center;
    }
    .lang-switcher {
        justify-content: center;
        padding: 0.35rem;
        gap: 0.5rem;
    }
    .lang-btn {
        flex: 1;
        text-align: center;
        padding: 10px 12px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 1rem;
    }
    .hero h1 {
        font-size: 1.9rem;
        margin-bottom: 0.6rem;
    }
    .hero .subtitle {
        font-size: 0.92rem;
        max-width: 100%;
    }
    .hero-fox img {
        width: 48px;
        height: 48px;
    }
    .hero-fox {
        margin-bottom: 0.5rem;
    }
    .hero-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.75rem;
        margin-bottom: 1rem;
    }
    .hero-btn {
        padding: 0.7rem 1.7rem;
        font-size: 0.95rem;
        gap: 0.4rem;
    }
    .live-status {
        font-size: 0.75rem;
        padding: 0.25rem 0.75rem 0.25rem 0.5rem;
        margin-bottom: 1rem;
    }
    .hero-scene-hint {
        font-size: 0.65rem;
        padding: 0.3rem 0.7rem;
        bottom: 2%;
    }
    .section-title {
        font-size: 1.2rem !important;
    }
    .gallery {
        padding: 2rem 1rem;
    }
    .gallery-grid {
        gap: 0.6rem;
    }
    .info-row {
        padding: 1.5rem 1rem;
    }
    .info-item {
        padding: 1rem;
    }
    .info-icon {
        font-size: 1.6rem;
    }
    .info-item h3 {
        font-size: 1rem;
    }
    .info-item p {
        font-size: 0.9rem;
    }
    .coming-section {
        padding: 2rem 1rem 3rem;
    }
    .games-grid {
        gap: 0.6rem;
    }
    .game-card {
        padding: 1.25rem 1rem;
    }
    .game-card-icon {
        font-size: 2rem;
    }
    .game-card h3 {
        font-size: 1.05rem;
    }
    .game-card p {
        font-size: 0.92rem;
    }
    .footer {
        padding: 1.5rem 1rem;
        font-size: 0.75rem;
    }
    .about-hero {
        padding: 5rem 1rem 2.5rem;
        min-height: 50vh;
    }
    .about-hero h1 {
        font-size: 1.7rem;
    }
    .about-hero p {
        font-size: 0.9rem;
    }
    .about-body {
        padding: 0 1rem 2.5rem;
    }
    .about-section {
        margin-bottom: 2rem;
    }
    .about-section h2 {
        font-size: 1.1rem;
    }
    .about-section p {
        font-size: 0.9rem;
    }
    .about-dev {
        padding: 1.25rem;
        gap: 1rem;
    }
    .about-dev-avatar {
        width: 48px;
        height: 48px;
    }
    .about-dev-content h3 {
        font-size: 0.95rem;
    }
    .about-dev-content .dev-role {
        font-size: 0.78rem;
    }
    .about-dev-content p {
        font-size: 0.85rem;
    }
    .about-timeline li {
        padding-left: 1rem;
        gap: 0.5rem;
    }
    .about-timeline .tl-date {
        font-size: 0.72rem;
        min-width: 55px;
    }
    .about-timeline .tl-text {
        font-size: 0.85rem;
    }
    .about-link {
        font-size: 0.82rem;
    }
}
