.screen {
    position: absolute;
    inset: 0;
    z-index: 8;
    display: flex;
    flex-direction: column;
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.start-screen {
    align-items: center;
    padding: var(--safe-t) 18px var(--safe-b);
    background:
        radial-gradient(circle at 50% 20%, rgba(23, 83, 154, .16), transparent 46%),
        linear-gradient(180deg, rgba(4, 8, 17, .96), rgba(3, 6, 13, .99));
    overflow-y: auto;
    overscroll-behavior: contain;
}

.guest-name-screen {
    z-index: 20;
    align-items: center;
    justify-content: center;
    padding: calc(var(--safe-t) + 22px) 20px calc(var(--safe-b) + 22px);
    background:
        radial-gradient(circle at 50% 18%, rgba(20, 139, 218, .22), transparent 37%),
        linear-gradient(180deg, #050914, #02050b);
}

.guest-name-card {
    width: min(100%, 410px);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 30px 24px 24px;
    border: 1px solid rgba(128, 190, 235, .2);
    border-radius: 26px;
    background: linear-gradient(150deg, rgba(16, 29, 48, .94), rgba(5, 11, 21, .98));
    box-shadow: 0 28px 80px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255, 255, 255, .04);
}
.guest-name-card img { align-self: center; width: 112px; height: 112px; object-fit: contain; filter: drop-shadow(0 0 22px rgba(45, 205, 244, .34)); }
.guest-name-card .eyebrow { align-self: center; color: var(--cyan); }
.guest-name-card h1 { margin: 0; font-size: 30px; line-height: 1.08; text-align: center; letter-spacing: -.035em; }
.guest-name-card p { margin: 0 0 8px; color: var(--muted); font-size: 13px; line-height: 1.5; text-align: center; }
.guest-name-card label { color: var(--dim); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.guest-name-card input { width: 100%; height: 54px; padding: 0 15px; border: 1px solid var(--line-strong); border-radius: 14px; background: rgba(2, 7, 14, .72); color: var(--text); font: inherit; font-size: 17px; font-weight: 750; outline: none; }
.guest-name-card input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(50, 204, 240, .11); }
.guest-name-card .btn { min-height: 54px; margin-top: 4px; }

.start-inner {
    width: 100%;
    max-width: 520px;
    min-height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.hero { width: 100%; flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.hero-arena { position: relative; width: min(100%, 520px); height: clamp(210px, 34svh, 330px); overflow: hidden; }
.hero-arena::after { content: ""; position: absolute; inset: auto 0 0; height: 20%; background: linear-gradient(180deg, transparent, rgba(4, 8, 17, .96)); pointer-events: none; }
.hero-arena img { width: 100%; height: 100%; object-fit: cover; object-position: center top; filter: saturate(.94) contrast(1.03); }
.hero-copy { position: relative; z-index: 1; margin-top: -16px; text-align: center; }
.hero h1 { margin: 0; font-size: clamp(40px, 10vw, 54px); font-weight: 900; letter-spacing: -.045em; line-height: .98; text-shadow: 0 4px 24px rgba(112, 210, 255, .12); }
.hero .pitch { margin: 8px 0 0; color: var(--muted); font-size: 14px; font-weight: 650; line-height: 1.3; text-align: center; }

.start-panel {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
}

.card {
    width: 100%;
    max-width: var(--sheet-max);
    padding: 14px 16px;
    border: 1px solid rgba(128, 166, 215, .18);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(17, 29, 47, .82), rgba(8, 15, 27, .92));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025), 0 16px 38px rgba(0, 0, 0, .18);
    text-align: left;
}

.profile-card { display: grid; grid-template-columns: 62px minmax(0, 1fr); align-items: center; gap: 14px; min-height: 108px; color: var(--text); cursor: pointer; transition: border-color .16s ease, transform .16s ease; }
.profile-card:hover { border-color: rgba(111, 190, 255, .36); }
.profile-card:active { transform: scale(.992); }
.profile-avatar { width: 62px; height: 62px; display: grid; place-items: center; padding: 7px; border: 1px solid rgba(111, 190, 255, .34); border-radius: 50%; background: radial-gradient(circle, rgba(62, 167, 229, .16), rgba(6, 13, 24, .72) 68%); box-shadow: 0 0 20px rgba(42, 183, 241, .12); }
.profile-avatar img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 7px rgba(75, 214, 240, .4)); }
.profile-body { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.profile-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.profile-name { min-width: 0; overflow: hidden; color: var(--text); font-size: 18px; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.profile-rating { flex: none; color: var(--cyan); font-size: 25px; font-weight: 850; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.profile-meta { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 12px; font-weight: 650; }
.profile-credits { color: #8eeaff; font-weight: 850; }
.profile-place { color: var(--dim); font-size: 11px; font-weight: 650; }
.profile-quests { display: flex; align-items: center; gap: 6px; color: var(--dim); font-size: 11px; font-weight: 700; }
.profile-quests i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.profile-quests i.is-done { background: var(--good); }

.actions {
    width: 100%;
    max-width: var(--sheet-max);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.actions .row { display: flex; gap: 8px; }
.actions .btn--primary { min-height: 58px; border: 1px solid rgba(131, 234, 255, .78); border-radius: 16px; background: linear-gradient(180deg, #55dcf4 0%, #28bce4 100%); color: #07101b; font-size: 21px; font-weight: 900; box-shadow: 0 0 22px rgba(40, 190, 228, .17), inset 0 1px 0 rgba(255, 255, 255, .42); }
.actions .btn--tile { min-height: 70px; border-color: rgba(128, 166, 215, .16); border-radius: 16px; background: linear-gradient(145deg, rgba(15, 26, 43, .78), rgba(7, 13, 24, .92)); }
.actions .btn--tile svg { width: 22px; height: 22px; }
.actions .btn--tile b { font-size: 13px; }
.actions .btn--plain { flex: 1; min-width: 0; padding: 0 5px; color: var(--dim); font-size: 12px; white-space: nowrap; }
.start-meta { color: var(--dim); font-size: 11px; font-weight: 650; text-align: center; }

.mode-switch { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.mode-switch button { display: flex; align-items: baseline; justify-content: center; gap: 6px; min-height: 46px; border: 1px solid transparent; border-radius: 12px; background: rgba(255,255,255,.035); color: var(--muted); font-size: 14px; font-weight: 850; }
.mode-switch button small { color: var(--dim); font-size: 8px; font-weight: 700; }
.mode-switch button.is-active { border-color: rgba(57,211,245,.32); background: rgba(57,211,245,.1); color: var(--text); }

.friends-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; width: 100%; max-width: var(--sheet-max); }

.friend-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .03);
    font-size: 12px;
    font-weight: 700;
}

.friend-chip:disabled { opacity: .5; }
.friend-chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--dim); }
.friend-chip i.is-open { background: var(--good); }
.friend-chip i.is-busy { background: var(--warn); }
.friend-chip b { color: var(--dim); font-weight: 700; font-size: 11px; }
