@font-face {
    font-family: 'Burbank Big';
    src: url('assets/fonts/Burbank Big Regular Bold.woff2') format('woff2');
    font-weight: 700;
}

@font-face {
    font-family: 'Burbank Small';
    src: url('assets/fonts/Burbank Small Bold.woff2') format('woff2');
    font-weight: 700;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Burbank Small', 'Trebuchet MS', sans-serif;
    color: #eaf6ff;
    background: #0b1b30;
    overflow-x: hidden;
}

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

/* Snow particle canvas */

#snow {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Top bar */

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(11, 27, 48, 0.35);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.topbar.scrolled {
    background: rgba(11, 27, 48, 0.75);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    font-family: 'Burbank Big', sans-serif;
    font-size: 26px;
    color: #fff;
    letter-spacing: 1px;
    text-decoration: none;
    background: linear-gradient(135deg, #6fd3ff, #ffcb05);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav {
    display: flex;
    gap: 28px;
}

.nav a {
    color: #cdeaff;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    padding: 6px 4px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.nav a:hover,
.nav a.active {
    color: #fff;
    border-color: #ffcb05;
}

.auth-links {
    display: flex;
    gap: 10px;
}

.btn {
    display: inline-block;
    text-decoration: none;
    font-weight: 700;
    border-radius: 999px;
    padding: 10px 22px;
    font-size: 15px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, #ffe066, #ffcb05);
    color: #1c3a52;
    box-shadow: 0 3px 0 #c79900;
}

.btn-primary:hover {
    filter: brightness(1.08);
}

.btn-glow {
    box-shadow: 0 3px 0 #c79900, 0 0 28px rgba(255, 203, 5, 0.55);
}

.btn-glow:hover {
    box-shadow: 0 3px 0 #c79900, 0 0 42px rgba(255, 203, 5, 0.8);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(6px);
}

.btn-ghost:hover {
    border-color: #fff;
}

.btn-large {
    padding: 16px 36px;
    font-size: 18px;
}

/* Hero */

.hero {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background:
        radial-gradient(ellipse at top right, #1c8adb 0%, transparent 55%),
        linear-gradient(180deg, #0b1b30 0%, #122c4c 60%, #0b1b30 100%);
    padding-top: 72px;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
    z-index: 1;
    animation: drift 18s ease-in-out infinite alternate;
}

.hero-glow-1 {
    width: 420px;
    height: 420px;
    background: #4fb3ff;
    top: -120px;
    right: -100px;
}

.hero-glow-2 {
    width: 320px;
    height: 320px;
    background: #ffcb05;
    bottom: -80px;
    left: -80px;
    opacity: 0.18;
    animation-delay: -6s;
}

@keyframes drift {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(40px, 30px) scale(1.15); }
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-text {
    max-width: 560px;
}

.eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffcb05;
    background: rgba(255, 203, 5, 0.1);
    border: 1px solid rgba(255, 203, 5, 0.3);
    border-radius: 999px;
    padding: 6px 16px;
    margin-bottom: 22px;
    animation: fadeInUp 0.8s ease both;
}

.eyebrow.center {
    display: block;
    text-align: center;
    width: fit-content;
    margin: 0 auto 16px;
}

.hero-text h1 {
    font-family: 'Burbank Big', sans-serif;
    font-size: 56px;
    line-height: 1.15;
    margin-bottom: 22px;
    animation: fadeInUp 0.9s ease both;
    animation-delay: 0.05s;
}

.gradient-text {
    background: linear-gradient(135deg, #6fd3ff, #ffcb05 70%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% 200%;
    animation: shimmer 6s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-text p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 32px;
    color: #b9d6ee;
    animation: fadeInUp 1s ease both;
    animation-delay: 0.1s;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    animation: fadeInUp 1.1s ease both;
    animation-delay: 0.15s;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-image {
    position: relative;
    z-index: 2;
}

.float-wrap {
    position: relative;
    width: 280px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: floaty 4.5s ease-in-out infinite;
}

@keyframes floaty {
    0%, 100% { transform: translateY(0px) rotate(-2deg); }
    50%      { transform: translateY(-22px) rotate(2deg); }
}

.float-wrap img {
    width: 240px;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.4));
}

.hero-ring {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.15) 45%, transparent 75%);
    border-radius: 50%;
    filter: blur(20px);
    animation: glowPulse 4.5s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.7; transform: scale(0.95); }
    50%      { opacity: 1; transform: scale(1.08); }
}

.scroll-cue {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    z-index: 2;
}

.scroll-cue span {
    position: absolute;
    top: 8px;
    left: 50%;
    width: 4px;
    height: 8px;
    margin-left: -2px;
    background: #ffcb05;
    border-radius: 999px;
    animation: scrollDown 1.6s ease-in-out infinite;
}

@keyframes scrollDown {
    0%   { opacity: 1; top: 8px; }
    60%  { opacity: 0; top: 22px; }
    61%  { opacity: 0; top: 8px; }
    100% { opacity: 1; top: 8px; }
}

/* Features */

.features {
    padding: 110px 0;
    text-align: center;
    position: relative;
    z-index: 2;
    scroll-margin-top: 72px;
}

.features h2,
.cta h2,
.stats h2 {
    font-family: 'Burbank Big', sans-serif;
    font-size: 34px;
    margin-bottom: 50px;
    color: #fff;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 32px 26px;
    text-align: left;
    backdrop-filter: blur(8px);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: rgba(111, 211, 255, 0.4);
    background: rgba(255, 255, 255, 0.07);
}

.card-icon {
    font-size: 34px;
    margin-bottom: 16px;
    display: inline-block;
}

.card h3 {
    font-family: 'Burbank Small', sans-serif;
    font-size: 19px;
    margin-bottom: 10px;
    color: #6fd3ff;
}

.card p {
    font-size: 15px;
    line-height: 1.55;
    color: #b9d6ee;
}

/* Reveal on scroll */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Stats */

.stats {
    position: relative;
    padding: 110px 0;
    background: linear-gradient(135deg, #134a7d, #0b1b30);
    overflow: hidden;
    z-index: 2;
    text-align: center;
    scroll-margin-top: 72px;
}

.stats-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(111, 211, 255, 0.25), transparent 70%);
    top: -250px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

.stats-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
    position: relative;
}

.stat-number {
    font-family: 'Burbank Big', sans-serif;
    font-size: 44px;
    color: #ffcb05;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: #b9d6ee;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* CTA */

.cta {
    padding: 100px 0;
    text-align: center;
    position: relative;
    z-index: 2;
}

.cta-inner p {
    font-size: 18px;
    color: #b9d6ee;
    margin-bottom: 32px;
}

/* Footer */

.footer {
    background: #081424;
    color: #7fa3c4;
    text-align: center;
    padding: 40px 0;
    font-size: 14px;
    position: relative;
    z-index: 2;
}

.footer-inner .logo {
    margin-bottom: 12px;
    font-size: 22px;
}

/* Responsive */

@media (max-width: 900px) {
    .cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 36px;
    }
}

@media (max-width: 800px) {
    .hero-inner {
        flex-direction: column;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 38px;
    }

    .nav {
        display: none;
    }

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

/* Play page */

.play-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        radial-gradient(ellipse at top right, #1c8adb 0%, transparent 55%),
        linear-gradient(180deg, #0b1b30 0%, #122c4c 60%, #0b1b30 100%);
    padding: 110px 0 60px;
}

.play-inner {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 1560px;
    padding: 0 24px;
}

.play-frame {
    position: relative;
    width: min(100%, 1520px, calc((100vh - 170px) * 1520 / 960));
    aspect-ratio: 1520 / 960;
    border-radius: 22px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), 0 0 60px rgba(111, 211, 255, 0.12);
    overflow: hidden;
}

.play-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 14px;
    background: #0b1b30;
}

@media (max-width: 800px) {
    .play-page {
        padding: 100px 0 40px;
    }

    .play-frame {
        border-radius: 16px;
    }

    .play-frame iframe {
        border-radius: 10px;
    }
}

/* Account / auth pages */

.auth-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        radial-gradient(ellipse at top right, #1c8adb 0%, transparent 55%),
        linear-gradient(180deg, #0b1b30 0%, #122c4c 60%, #0b1b30 100%);
    padding: 110px 0 60px;
}

.auth-inner {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    width: 100%;
}

.auth-card {
    width: 100%;
    max-width: 460px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 40px;
    backdrop-filter: blur(8px);
}

.auth-card h1 {
    font-family: 'Burbank Big', sans-serif;
    font-size: 28px;
    margin: 10px 0 14px;
    color: #fff;
}

.auth-card h2 {
    font-family: 'Burbank Small', sans-serif;
    font-size: 18px;
    color: #6fd3ff;
    margin-bottom: 6px;
}

.auth-subtext {
    font-size: 15px;
    line-height: 1.6;
    color: #b9d6ee;
    margin-bottom: 24px;
}

.auth-hint {
    font-size: 13px;
    color: #8fb3d4;
    margin-bottom: 14px;
}

.auth-section {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-footnote {
    margin-top: 20px;
    font-size: 14px;
    color: #b9d6ee;
}

.auth-footnote a {
    color: #6fd3ff;
    text-decoration: none;
    font-weight: 700;
}

.auth-footnote a:hover {
    text-decoration: underline;
}

#account-username {
    color: #6fd3ff;
}

#logout-button {
    margin-top: 28px;
    width: 100%;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #cdeaff;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    font-family: inherit;
    color: #eaf6ff;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.form-group input:focus {
    border-color: #6fd3ff;
    background: rgba(255, 255, 255, 0.09);
}

.form-message {
    min-height: 20px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 14px;
}

.form-message-error {
    color: #ff8a8a;
}

.form-message-success {
    color: #8effa1;
}

.auth-card .btn-large {
    width: 100%;
    text-align: center;
}

.auth-card .btn {
    border: none;
    cursor: pointer;
}

.auth-card .btn + .btn {
    margin-top: 10px;
}

.auth-card .btn[hidden] {
    display: none;
}

/* Register modal (over the embedded game on the play page) */

.register-modal {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.register-modal[hidden] {
    display: none;
}

.register-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 15, 30, 0.7);
    backdrop-filter: blur(3px);
}

.register-modal-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    max-height: 100%;
    overflow-y: auto;
}

.register-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #eaf6ff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease;
}

.register-modal-close:hover {
    background: rgba(255, 255, 255, 0.18);
}
