html,
body {
    margin: 0;
    width: 100%;
    height: 100%;
    background: #02030a;
    overflow: hidden;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #f7f8ff;
}

* {
    box-sizing: border-box;
}

.home-screen {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 20% 15%, rgba(255, 56, 92, 0.18), transparent 28rem),
        radial-gradient(circle at 80% 20%, rgba(78, 132, 255, 0.20), transparent 30rem),
        linear-gradient(135deg, #06070d 0%, #101624 55%, #030409 100%);
}

.start-card {
    width: min(92vw, 620px);
    padding: 42px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 34px;
    background: rgba(15, 20, 33, 0.78);
    box-shadow: 0 32px 90px rgba(0,0,0,0.55);
    backdrop-filter: blur(20px);
    text-align: center;
}

.eyebrow {
    margin: 0 0 10px;
    color: #ffb703;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.78rem;
    font-weight: 900;
}

h1 {
    margin: 0;
    font-size: clamp(3.2rem, 10vw, 7rem);
    line-height: 0.9;
    letter-spacing: -0.08em;
}

.subtitle {
    margin: 18px 0 28px;
    color: #a9b3c4;
    font-size: clamp(1rem, 2vw, 1.25rem);
}

.start-btn {
    border: 0;
    border-radius: 999px;
    padding: 18px 30px;
    color: white;
    background: linear-gradient(135deg, #ff385c, #ff7a18);
    font-weight: 900;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    cursor: pointer;
    box-shadow: 0 18px 40px rgba(255, 56, 92, 0.28);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 52px rgba(255, 56, 92, 0.38);
}

.status-text {
    min-height: 1.4em;
    margin: 18px 0 0;
    color: #a9b3c4;
}

.home-logo {
    position: fixed;
    right: clamp(18px, 3vw, 44px);
    bottom: clamp(18px, 3vw, 44px);
    width: clamp(90px, 13vw, 190px);
    height: auto;
    opacity: 0.86;
    filter: drop-shadow(0 20px 45px rgba(0,0,0,0.55));
    pointer-events: none;
}

.tv-layout {
    position: fixed;
    inset: 0;
    display: none;
    background: #000;
}

.tv-layout.active {
    display: block;
}

#video {
    width: 100vw;
    height: 100vh;
    object-fit: contain;
    background: #000;
}

.loading-overlay {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 18px;
    background: rgba(0,0,0,0.66);
    color: white;
    font-weight: 800;
    z-index: 5;
}

.loading-overlay.hidden {
    display: none;
}

.spinner {
    width: 54px;
    height: 54px;
    border: 5px solid rgba(255,255,255,0.18);
    border-top-color: #ff385c;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

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

.top-info {
    position: fixed;
    left: 20px;
    top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    z-index: 6;
    opacity: 0.88;
}

.top-info span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(10, 13, 22, 0.78);
    border: 1px solid rgba(255,255,255,0.12);
    color: #f7f8ff;
    font-size: 0.9rem;
    font-weight: 800;
    backdrop-filter: blur(12px);
}

.exit-btn {
    position: fixed;
    right: 20px;
    top: 20px;
    z-index: 7;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 999px;
    color: white;
    background: rgba(10, 13, 22, 0.72);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(12px);
}

@media (max-width: 760px) {
    .start-card {
        padding: 30px 20px;
    }

    .top-info {
        left: 12px;
        right: 64px;
        top: 12px;
    }

    .exit-btn {
        right: 12px;
        top: 12px;
    }
}
