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

body {
    font-family: ui-monospace, 'SF Mono', monospace;
    background: #08080a;
    color: #d4d4d8;
}

.nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(8, 8, 10, 0.8);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #f59e0b;
}

.hero {
    min-height: 100vh;
    padding: 96px 0 192px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 700px;
    padding: 0 32px;
    text-align: center;
}

.hero-title {
    margin-bottom: 32px;
    font-size: clamp(26px, 4.2vw, 48px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    text-shadow:
        0 0 20px rgba(245, 158, 11, 0.5),
        0 0 50px rgba(245, 158, 11, 0.25);
}

.hero-accent {
    color: #f59e0b;
    white-space: nowrap;
}

.hero-subtitle {
    max-width: 520px;
    margin: 0 auto 32px;
    font-size: 13px;
    line-height: 1.8;
    color: #fcd34d;
}

.hero-frame {
    position: relative;
    max-width: 720px;
    aspect-ratio: 16 / 9;
    margin: 0 auto;
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(217, 119, 6, 0.15);
}

.hero-frame video {
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.frame-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: rgba(8, 8, 10, 0.8);
    backdrop-filter: blur(8px);
}

.frame-overlay [data-show] {
    display: none;
}

[data-state="loading"]     [data-show~="loading"],
[data-state="unsupported"] [data-show~="unsupported"],
[data-state="enter-room"]  [data-show~="enter-room"],
[data-state="immersive"]   [data-show~="immersive"] {
    display: inline-flex;
}

[data-state="loading"]     .overlay-message[data-show~="loading"],
[data-state="unsupported"] .overlay-message[data-show~="unsupported"] {
    display: block;
}

.overlay-message {
    max-width: 320px;
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
    color: #8a7a5a;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #27272a;
    border-top-color: #f59e0b;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 280px;
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font: 600 12px/1 inherit;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #d97706, #f59e0b);
    box-shadow: 0 8px 32px rgba(217, 119, 6, 0.3);
}

.btn-ghost {
    color: #a1a1aa;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #27272a;
}

.btn-icon {
    font-size: 20px;
}

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

@media (max-width: 820px) {
    .nav { display: none; }
}
