.play-shell {
    margin-bottom: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    letter-spacing: 0;
    background: #0c0e12;
    color: #f1f5f9;
    min-height: 100vh;
}

.play-container {
    max-width: min(1500px, 98vw);
    width: 100%;
    margin: 0 auto;
    padding-inline: 16px;
}

.play-header {
    background: #11141a;
    color: #f1f5f9;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.play-header nav {
    max-width: 1480px;
    margin: auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.play-header img {
    width: 180px;
    max-width: 100%;
    height: auto;
}

.play-header a {
    color: #cbd5e1;
    text-decoration: none;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    transition: color 0.15s ease;
}

.play-header a:hover {
    color: #38bdf8;
}

.play-skip {
    position: absolute;
    top: -100px;
    left: 16px;
    padding: 12px 20px;
    background: #f5f7fa;
    color: #111315;
    font-weight: 700;
    border-radius: 6px;
    z-index: 50;
}

.play-skip:focus {
    top: 12px;
}

/* Entry screen card (mode: create / join) */
#room-lobby[data-entry="true"] {
    max-width: 520px;
    margin: 40px auto;
    padding: 36px 28px;
    background: #12161f;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.6);
}

#room-lobby[data-entry="true"] h1 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 20px;
    color: #f8fafc;
}

#room-lobby[data-entry="true"] .eyebrow {
    color: #38bdf8;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

#room-lobby[data-entry="true"] .form-control {
    background: #181d27;
    color: #f8fafc;
    min-height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    font-size: 16px;
    padding: 10px 14px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#room-lobby[data-entry="true"] .form-control:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
}

#room-lobby[data-entry="true"] .form-control[aria-invalid="true"] {
    border: 2px solid #a32222;
}

#room-lobby[data-entry="true"] .btn {
    min-height: 48px;
    border-radius: 10px;
    font-weight: 700;
    white-space: normal;
    font-size: 16px;
}

#room-lobby[data-entry="true"] .btn-success,
#room-lobby[data-entry="true"] #join-room {
    background: #c8fa46;
    color: #111315;
    border: 1px solid #111315;
    transition: background 0.15s ease, transform 0.1s ease;
}

#room-lobby[data-entry="true"] .btn-success:hover,
#room-lobby[data-entry="true"] #join-room:hover {
    background: #b5e834;
}

#room-lobby[data-entry="true"] .btn-outline-light {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f1f5f9;
}

#room-lobby[data-entry="true"] .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.08);
}

#room-lobby[data-entry="true"] .camera-privacy {
    color: #94a3b8;
    font-size: 0.85rem;
    margin-top: 12px;
}

#room-lobby[data-entry="true"] a {
    color: #38bdf8;
}

#room-lobby[data-entry="true"] .room-join {
    border: 0;
    padding-top: 0;
}

.entry-modes {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.entry-modes label {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    min-height: 44px;
    background: #181d27;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    color: #94a3b8;
    transition: all 0.15s ease;
}

.entry-modes label:has(input:checked) {
    background: rgba(56, 189, 248, 0.15);
    border-color: #38bdf8;
    color: #38bdf8;
}

.entry-modes input {
    accent-color: #38bdf8;
}

.entry-error {
    color: #a32222;
    margin: 8px 0 0;
    font-size: 0.875rem;
}

.entry-reset {
    min-height: 44px;
    margin: 12px 0 0;
    padding: 8px 0;
    background: transparent;
    color: #94a3b8;
    border: 0;
    text-decoration: underline;
    text-underline-offset: 4px;
    cursor: pointer;
    transition: color 0.15s ease;
}

.entry-reset:hover {
    color: #f1f5f9;
}

.play-shell :focus-visible {
    outline: 3px solid #38bdf8;
    outline-offset: 3px;
}

.play-header :focus-visible { outline-color: #111315; }

.play-shell .legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.play-shell .legal-links a {
    color: #64748b;
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    transition: color 0.15s ease;
}

.play-shell .legal-links a:hover {
    color: #94a3b8;
}

.play-shell :is(button, input, summary, a, [tabindex]) {
    scroll-margin-top: 112px;
}

#room-lobby[data-entry="true"] #lobby-message {
    min-height: 24px;
    margin-top: 16px;
    color: #a32222;
    font-size: 0.875rem;
}

@media(max-width: 480px) {
    #room-lobby[data-entry="true"] {
        padding: 24px 16px;
        margin: 20px 8px;
    }
    #room-lobby[data-entry="true"] h1 {
        font-size: 24px;
    }
    .room-code-controls {
        flex-wrap: wrap;
    }
    .room-code-controls input {
        flex-basis: 180px;
    }
    .play-header img {
        width: 150px;
    }
}

@media(prefers-reduced-motion: reduce) {
    .play-shell * {
        transition: none !important;
    }
}

@media(forced-colors: active) {
    .entry-modes label {
        border-color: ButtonText;
    }
    .play-shell :focus-visible {
        outline-color: Highlight;
    }
}

.entry-account-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.entry-account-actions form {
    margin: 0;
}

.entry-account-actions .entry-google {
    background: #1e2430;
    color: #f1f5f9;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    font-weight: 600;
}

.entry-account-actions .entry-google:hover:not(:disabled) {
    background: #252d3d;
}

.entry-account-actions .entry-google:disabled {
    background: #161a22;
    color: #64748b;
    opacity: 0.6;
}
