/* Chromecast custom receiver: layout until kiosk iframe loads */
html, body {
    margin: 0;
    height: 100%;
    background: #0d0d12;
    color: #c8c2dc;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

#tw-wait {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    text-align: center;
    box-sizing: border-box;
    z-index: 2;
}

#tw-wait h1 {
    font-size: clamp(1.1rem, 3.5vw, 1.5rem);
    font-weight: 600;
    margin: 0;
}

#tw-wait p {
    margin: 0;
    max-width: 36rem;
    line-height: 1.45;
    opacity: 0.9;
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
}

#tw-kiosk-frame {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    z-index: 1;
    display: none;
    background: #111;
}

#tw-kiosk-frame.is-visible {
    display: block;
}

#tw-wait.is-hidden {
    display: none;
}
