@layer theme-fixes, legacy;
@import url("app-r20260816-1.css") layer(legacy);

/* Preserve tested component geometry; this layer owns the visual system. */
:root, body.pastel-theme {
    color-scheme: light;
    --bg: #fcfafb;
    --bg-soft: #f3f4f3;
    --surface: #ffffff;
    --surface-strong: #ffffff;
    --surface-dark: #eef1f0;
    --text: #30343d;
    --muted: #6e7380;
    --line: #e4e3e7;
    --line-strong: #d1cdd4;
    --accent: #ad5267;
    --accent-soft: #f9edf0;
    --success: #e5f4ed;
    --warning: #fcf2df;
    --radius-xl: 8px;
    --radius-lg: 8px;
    --radius-md: 8px;
    --radius-sm: 6px;
    --shadow: 0 12px 36px #3138420a;
    --container: min(1120px, calc(100% - 48px));
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.55;
}
*, *::before, *::after { box-sizing: border-box; letter-spacing: 0; }
:where(button, input, textarea, select, h1, h2, h3, h4, p, strong, small, span, label, legend) { font-family: inherit; text-shadow: none; }
:where(h1, h2, h3, h4, p, strong, small, span, label, legend) { color: inherit; }
body::before, body::after, .page-noise { display: none; }
body main { width: 100%; min-width: 0; padding: 0; }
h1, h2, h3 { line-height: 1.2; overflow-wrap: anywhere; }
h1 { font-size: 38px; font-weight: 600; }
h2 { font-size: 26px; font-weight: 600; }
h3 { font-size: 19px; }
a { color: inherit; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { opacity: .45; cursor: not-allowed; }
svg.lucide { width: 20px; height: 20px; flex-shrink: 0; stroke-width: 1.65; }
:focus-visible { outline: 3px solid #82afb9; outline-offset: 3px; }
[data-reveal] { opacity: 1; transform: none; }
:where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]), textarea, select) {
    min-width: 0; width: 100%; min-height: 46px; padding: 11px 14px;
    color: var(--text); background: #ffffffeb; border: 1px solid var(--line-strong);
    border-radius: 7px; box-shadow: none; font-size: 15px; line-height: 1.45;
}
input::placeholder, textarea::placeholder { color: #7d818b; }
textarea { resize: vertical; }
select, option { color: var(--text); background: #fff; color-scheme: light; }
input[type="checkbox"], input[type="radio"], input[type="range"] { accent-color: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); clip-path: inset(50%); white-space: nowrap; border: 0; }
label, .stack-form label { font-size: 13px; font-weight: 500; color: #575c67; }
.btn, .stage-fit-btn, .stage-fullscreen-btn {
    display: inline-flex; min-height: 44px; justify-content: center; align-items: center; gap: 9px;
    padding: 10px 18px; font-size: 14px; font-weight: 500; line-height: 1.3;
    border: 1px solid var(--line); border-radius: 7px; box-shadow: none; text-decoration: none;
    background: #fff; color: var(--text); transition: background .18s, border-color .18s;
}
.btn:hover, .stage-fit-btn:hover, .stage-fullscreen-btn:hover { transform: none; background: #f2f3f3; border-color: #c7cbd0; }
.btn-primary { color: #fff; background: #ad5267; border-color: #ad5267; }
.btn-primary:hover { color: #fff; background: #984459; border-color: #984459; }
.btn-secondary, .btn-ghost { background: #fff; color: var(--text); border-color: var(--line); }
.eyebrow { background: none; color: var(--accent); border: 0; padding: 0; border-radius: 0; font-size: 12px; text-transform: none; }
.alert-box { color: #963e50; border: 1px solid #eac7cf; background: #fcf0f2; border-radius: 7px; font-size: 14px; padding: 12px 16px; }
.alert-box--success { color: #326854; background: #eaf6ee; border-color: #c7e5d5; }
.lead { color: var(--muted); font-size: 16px; line-height: 1.75; }
body :where(.glass-card, .auth-card, .invite-panel, .profile-card, .public-profile-hero, .gamer-profile-hero, .gamer-room-empty, .story-panel) {
    color: var(--text); border: 0; border-radius: 0; background: transparent; box-shadow: none;
}
:where(.glass-card, .auth-copy, .invite-panel, .profile-card, .gamer-profile-hero, .gamer-room-card, .room-rail, .room-commandbar, .room-stage-surface, .room-sidepanel)::before,
:where(.glass-card, .auth-copy, .invite-panel, .profile-card, .gamer-profile-hero, .gamer-room-card, .room-rail, .room-commandbar, .room-stage-surface, .room-sidepanel)::after { display: none; }

/* No header bar: account and return-home controls sit directly on the page. */
.quiet-home { position: absolute; top: 24px; left: 28px; display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 13px; font-weight: 600; z-index: 10; }
.quiet-home img { width: 34px; height: 34px; padding: 5px; border-radius: 7px; background: #b96879; }
.account-menu { position: absolute; top: 22px; right: 28px; z-index: 50; }
.account-menu > summary { display: grid; place-items: center; width: 44px; height: 44px; list-style: none; border-radius: 50%; cursor: pointer; color: #42454e; }
.account-menu > summary:hover, .account-menu[open] > summary { background: #f3e8ed; }
.account-menu > summary::-webkit-details-marker, .entry-options summary::-webkit-details-marker { display: none; }
.account-menu > summary img { width: 36px; height: 36px; object-fit: cover; border-radius: 50%; }
.account-menu > summary svg { width: 25px; height: 25px; }
.account-menu__panel { width: 264px; max-width: calc(100vw - 32px); position: absolute; right: 0; top: 54px; padding: 18px; border: 1px solid var(--line); background: #fff; border-radius: 8px; box-shadow: 0 12px 38px #30343d14; }
.account-menu__panel > strong, .account-menu__panel > small { display: block; overflow-wrap: anywhere; }
.account-menu__panel > small { margin-bottom: 12px; color: var(--muted); }
.account-menu__panel :is(a,button) { display: flex; gap: 10px; align-items: center; width: 100%; min-height: 42px; padding: 8px; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 14px; text-decoration: none; border-radius: 5px; text-align: left; }
.account-menu__panel :is(a,button):hover { background: #f8eff2; }

/* The artwork is an asset; every foreground element remains real, accessible UI. */
.together-home { position: relative; isolation: isolate; min-height: 770px; padding: 54px 24px 280px; background: #fff; }
.together-home__art { position: absolute; z-index: -1; width: 100%; height: 100%; inset: 0; object-fit: cover; object-position: center bottom; }
.together-home__content { width: min(540px, 100%); margin: 0 auto; }
.together-identity { text-align: center; }
.together-identity > img { display: block; width: 70px; height: 70px; margin: 0 auto 10px; filter: brightness(0) saturate(100%) invert(47%) sepia(22%) saturate(978%) hue-rotate(296deg) brightness(92%) contrast(85%); }
.together-identity h1 { margin: 0 0 8px; font-size: 42px; font-weight: 400; }
.together-identity p { margin: 0; color: #5e626c; font-size: 17px; line-height: 1.6; }
.together-entry { margin-top: 32px; }
.entry-recent { min-width: 0; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.entry-recent__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.entry-recent__head h2 { margin: 0; font-size: 14px; font-weight: 600; }
.entry-recent__head > a { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; color: var(--accent); font-size: 12px; text-underline-offset: 3px; }
.entry-recent__head > a svg { width: 14px; height: 14px; }
.entry-recent__room { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 10px 0; color: var(--text); text-decoration: none; }
.entry-recent__room:hover .entry-recent__copy strong { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.entry-recent__icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 6px; color: var(--accent); background: var(--accent-soft); }
.entry-recent__icon svg { width: 18px; height: 18px; }
.entry-recent__copy { display: grid; min-width: 0; gap: 4px; }
.entry-recent__copy strong { overflow-wrap: anywhere; font-size: 14px; font-weight: 600; line-height: 1.4; }
.entry-recent__copy small { color: var(--muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.entry-recent__action { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--accent); white-space: nowrap; }
.entry-recent__action svg, .entry-recent__room > svg { width: 16px; height: 16px; color: var(--accent); }
.entry-recent__more summary { display: flex; width: fit-content; align-items: center; gap: 6px; min-height: 36px; color: var(--muted); cursor: pointer; font-size: 12px; list-style: none; }
.entry-recent__more summary::-webkit-details-marker { display: none; }
.entry-recent__more summary svg { width: 14px; height: 14px; }
.entry-recent__more[open] summary svg { transform: rotate(180deg); }
.entry-recent__list .entry-recent__room { border-top: 1px solid var(--line); }
.together-home:has(.entry-recent) { padding-top: 40px; padding-bottom: 180px; }
.together-home:has(.entry-recent) .together-identity > img { width: 52px; height: 52px; }
.together-home:has(.entry-recent) .together-identity h1 { font-size: 34px; }
.together-home:has(.entry-recent) .together-entry { margin-top: 24px; }
@media (min-width: 1101px) {
    .together-home:has(.entry-recent) .together-home__art { object-position: center calc(100% + 180px); }
}
.entry-tabs { display: flex; justify-content: center; gap: 32px; margin-bottom: 24px; }
.entry-tabs button { position: relative; min-height: 44px; padding: 6px 4px 12px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #747781; font-size: 16px; font-weight: 500; }
.entry-tabs button[aria-selected="true"] { color: #343841; border-bottom-color: #c67a8c; }
.entry-form { display: grid; gap: 18px; }
.entry-form label { display: grid; gap: 7px; }
.entry-form__main { display: grid; grid-template-columns: minmax(0,1fr) 164px; gap: 18px; }
.entry-stepper { height: 46px; display: grid; grid-template-columns: 43px minmax(0,1fr) 43px; border: 1px solid var(--line-strong); border-radius: 7px; overflow: hidden; background: #fffffff2; }
.entry-stepper button { border: 0; border-radius: 0; background: transparent; color: #4f5460; display: grid; place-items: center; padding: 0; }
.entry-stepper button:hover:not(:disabled) { background: #f5e9ed; }
.entry-stepper input { appearance: textfield; -moz-appearance: textfield; min-height: 0; width: 100%; height: 100%; border: 0; border-radius: 0; padding: 0; text-align: center; background: transparent; }
.entry-stepper input::-webkit-inner-spin-button, .entry-stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.entry-form__actions { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.entry-form__actions > .btn { min-width: 208px; height: 46px; }
.entry-form .entry-lock { position: relative; display: flex; align-items: center; gap: 9px; font-size: 14px; cursor: pointer; color: var(--text); }
.entry-lock > input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.entry-switch { position: relative; width: 36px; height: 22px; flex: 0 0 36px; border-radius: 20px; background: #c9c9cf; transition: background .18s; }
.entry-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: white; box-shadow: 0 1px 2px #0002; transition: transform .18s; }
.entry-lock input:checked + .entry-switch { background: #ad5267; }
.entry-lock input:checked + .entry-switch::after { transform: translateX(14px); }
.entry-lock input:focus-visible + .entry-switch { outline: 3px solid #82afb9; outline-offset: 3px; }
.entry-options summary { display: flex; align-items: center; justify-content: center; gap: 7px; color: #737781; font-size: 12px; cursor: pointer; list-style: none; min-height: 30px; }
.entry-options svg { width: 15px; height: 15px; }
.entry-options[open] { padding: 14px; background: #fffffff0; border: 1px solid var(--line); border-radius: 7px; }
.entry-options[open] summary { margin-bottom: 12px; }
.entry-options[open] summary svg:last-child { transform: rotate(180deg); }
.entry-account-note { text-align: center; margin: 0; font-size: 12px; color: #74747e; }
.entry-account-note a { text-decoration: underline; text-underline-offset: 3px; color: #874556; }
.together-features { display: grid; grid-template-columns: repeat(3,1fr); width: min(880px,calc(100% - 48px)); margin: 0 auto; padding: 26px 0; gap: 20px; }
.together-features > div { display: flex; justify-content: center; align-items: center; gap: 14px; min-height: 50px; }
.together-features > div + div { border-left: 1px solid var(--line); }
.together-features svg { width: 29px; height: 29px; color: #b76378; }
.together-features > div:nth-child(2) svg { color: #518f7a; }
.together-features > div:nth-child(3) svg { color: #588ba7; }
.together-story { width: var(--container); margin: 42px auto 0; padding: 54px 0; text-align: center; border-top: 1px solid var(--line); }
.together-story > p { max-width: 570px; margin: 16px auto 32px; color: var(--muted); }
.together-story ol { list-style: none; display: grid; grid-template-columns: repeat(3,1fr); padding: 0; gap: 44px; text-align: left; }
.together-story li > span { display: block; font-size: 12px; color: var(--accent); margin-bottom: 12px; }
.together-story li p { font-size: 14px; color: var(--muted); }
.quiet-footer { display: flex; gap: 24px; flex-wrap: wrap; justify-content: space-between; width: var(--container); margin: 0 auto; padding: 24px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

/* Account, invite and profile surfaces share quiet, unframed sections. */
body.page-auth { background: #d9b9b9 url("../images/cozy-evening-r20261026.jpg") center / cover fixed no-repeat; }
.page-auth .account-menu > summary { background: #faeeebed; color: #6f4a59; }
.auth-shell { width: min(500px,100%); min-height: 100svh; margin: 0 auto; padding: 50px 48px 36px; display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 24px; background: #ffefeced; border-inline: 1px solid #ffffff5c; backdrop-filter: blur(12px); }
.auth-copy { width: 100%; padding: 0; border: 0; text-align: center; }
.auth-copy h1 { margin: 12px 0; font-size: 32px; font-weight: 600; color: #593d4c; }
.auth-copy .lead { margin: 0; font-size: 15px; color: #866b75; line-height: 1.7; }
.auth-copy .eyebrow { display: none; }
.auth-card { padding: 0; width: 100%; backdrop-filter: none; }
.auth-card .card-head { display: none; }
.auth-brand { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 0 auto 28px; color: #825367; text-decoration: none; font-size: 12px; font-weight: 600; }
.auth-brand img { width: 48px; height: 48px; padding: 8px; border-radius: 50%; background: #ab637c; box-shadow: 0 5px 20px #99526620; }
.auth-greeting { display: inline-flex; align-items: center; gap: 6px; color: #a16177; font-size: 12px; }
.auth-greeting svg { width: 15px; height: 15px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; gap: 4px; margin-bottom: 24px; background: #eddae0; border: 1px solid #e5cbd4; border-radius: 8px; }
.auth-tabs a { display: flex; align-items: center; justify-content: center; min-height: 40px; border-radius: 5px; text-decoration: none; font-size: 14px; color: #896b79; }
.auth-tabs a[aria-current="page"] { background: #fff2ef; color: #70465b; font-weight: 600; box-shadow: 0 2px 5px #8a536411; }
.auth-tabs a:hover { color: #70465b; background: #f8e7eb; }
.auth-card .stack-form { gap: 17px; }
.auth-card .alert-box { margin-bottom: 18px; }
.auth-field { display: grid; gap: 7px; }
.auth-field > label { color: #765565; font-size: 12px; font-weight: 500; }
.auth-input { display: grid; grid-template-columns: 20px minmax(0,1fr) auto; align-items: center; gap: 8px; padding-left: 15px; border: 1px solid #dcc3cf; border-radius: 8px; background: #fff6f1; transition: border-color .18s, box-shadow .18s; }
.auth-input:focus-within { border-color: #b77c93; box-shadow: 0 0 0 3px #e6c7d170; }
.auth-input > svg { color: #ae8392; width: 18px; height: 18px; }
.auth-input input { width: 100%; min-width: 0; min-height: 52px; padding: 12px 6px; background: transparent; border: 0; border-radius: 0; box-shadow: none; color: #5e4855; }
.auth-input input:focus { outline: 0; box-shadow: none; }
.auth-input input::placeholder { color: #856375; }
.auth-password-toggle { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 6px; background: transparent; color: #967183; }
.auth-password-toggle:hover { background: #efdce2; color: #79465f; }
.auth-card .btn-primary { min-height: 50px; margin-top: 5px; background: #a9657e; border-color: #a9657e; box-shadow: 0 5px 14px #a9657e25; }
.auth-card .btn-primary:hover { background: #95536c; border-color: #95536c; }
.auth-card .btn-primary svg { width: 18px; height: 18px; }
.auth-switch { margin: 22px 0 0; text-align: center; font-size: 12px; color: #8b7380; }
.auth-switch a { color: var(--accent); }
.auth-signoff { display: flex; width: 100%; align-items: center; justify-content: center; gap: 7px; margin: 0; font-size: 11px; color: #866576; }
.auth-signoff svg { width: 14px; height: 14px; }
.auth-shell--register { padding-top: 30px; padding-bottom: 30px; gap: 18px; }
.auth-shell--register .auth-brand { margin-bottom: 16px; }
.auth-shell--register .auth-tabs { margin-bottom: 18px; }
.auth-shell--register .stack-form { gap: 12px; }
.auth-scene { display: none; }

/* Desktop form lives on the page edge; the scene is never a floating card. */
@media (min-width: 1000px) {
    body.page-auth { background: #faf9fb; }
    .page-auth main { min-height: 100svh; display: block; padding: 0; }
    .page-auth .account-menu { display: none; }
    .auth-shell { width: 44%; min-height: 100svh; margin: 0 0 0 auto; padding: clamp(88px, 14svh, 144px) max(40px, calc((44vw - 400px) / 2)) 40px; display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; gap: 30px; border: 0; border-radius: 0; background: transparent; box-shadow: none; backdrop-filter: none; }
    .auth-scene { position: fixed; inset: 0 44% 0 0; display: flex; flex-direction: column; align-items: flex-start; padding: 40px 48px; color: #563e49; background: #d9b9b9 url("../images/cozy-evening-r20261026.jpg") center bottom / cover no-repeat; }
    .auth-scene__brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 600; font-size: 14px; }
    .auth-scene__brand img { width: 36px; height: 36px; padding: 6px; background: #91596f; border-radius: 7px; }
    .auth-scene__copy { width: 100%; max-width: 420px; margin-top: 70px; }
    .auth-scene__copy p { margin: 0 0 20px; color: #513946; font-size: 48px; font-weight: 500; line-height: 1.15; }
    .auth-scene__copy > span { color: #604651; font-size: 16px; }
    .auth-copy { text-align: left; }
    .auth-copy .auth-brand { display: none; }
    .auth-greeting { font-size: 12px; color: #86546d; }
    .auth-copy h1 { margin: 12px 0 16px; font-size: 30px; color: #37313e; }
    .auth-copy .lead { max-width: none; font-size: 14px; color: #77717e; line-height: 1.8; }
    .auth-card .stack-form { display: grid; grid-template-columns: minmax(0,1fr); gap: 20px; }
    .auth-tabs { display: flex; gap: 28px; padding: 0; margin-bottom: 28px; border: 0; border-bottom: 1px solid #e1dce5; border-radius: 0; background: transparent; }
    .auth-tabs a { position: relative; min-height: 40px; padding: 0 0 14px; border-radius: 0; color: #756f7c; background: transparent; }
    .auth-tabs a[aria-current="page"] { color: #784c65; background: transparent; box-shadow: none; }
    .auth-tabs a[aria-current="page"]::after { content: ""; position: absolute; inset: auto 0 -1px; height: 2px; background: #9f6681; }
    .auth-tabs a:hover { color: #784c65; background: transparent; }
    .auth-field > label { font-size: 12px; color: #56505e; }
    .auth-input { background: #fff; border-color: #dcd7e0; border-radius: 6px; }
    .auth-input > svg { color: #918994; }
    .auth-input input { min-height: 54px; }
    .auth-input input::placeholder { color: #77717e; }
    .auth-password-toggle { color: #857b8c; }
    .auth-password-toggle:hover { color: #784c65; background: #f2edf3; }
    .auth-card .btn-primary { min-height: 50px; margin-top: 4px; border-radius: 6px; box-shadow: none; background: #985e78; border-color: #985e78; }
    .auth-card .btn-primary:hover { background: #804961; border-color: #804961; }
    .auth-switch { margin-top: 26px; color: #817986; font-size: 12px; }
    .auth-switch a { color: #89536c; }
    .auth-signoff { justify-content: flex-start; padding-top: 24px; border-top: 1px solid #e8e3eb; font-size: 11px; color: #766f7c; }
    .auth-shell--register { padding-top: 60px; gap: 24px; }
    .auth-shell--register .auth-tabs { margin-bottom: 24px; }
    .auth-shell--register .stack-form { gap: 16px; }
}
@media (min-width: 1000px) and (max-height: 700px) {
    .auth-shell { padding-top: 48px; gap: 24px; }
    .auth-shell--register { padding-top: 32px; }
    .auth-scene__copy { margin-top: 36px; }
    .auth-scene__copy p { font-size: 40px; }
}
@media (min-width: 1000px) and (max-height: 850px) {
    .auth-shell--register { padding-top: 32px; padding-bottom: 24px; gap: 22px; }
    .auth-shell--register .auth-tabs, .auth-shell--register .auth-signoff { display: none; }
    .auth-shell--register .auth-copy h1 { margin: 10px 0; font-size: 28px; }
    .auth-shell--register .stack-form { gap: 12px; }
    .auth-shell--register .auth-input input { min-height: 46px; }
    .auth-shell--register .btn-primary { min-height: 48px; }
    .auth-shell--register .auth-switch { margin-top: 18px; }
}
.invite-shell { width: min(1040px,calc(100% - 48px)); margin: 0 auto; padding: 130px 0 64px; gap: 70px; }
.invite-copy { gap: 24px; }
.invite-copy h1 { font-size: 38px; }
.invite-copy__lead, .invite-panel__lead, .share-card__hint, .invite-panel__helper { color: var(--muted); }
.invite-panel { padding: 28px 0 0; }
.invite-meta__item { background: #f3eeef; color: var(--text); border: 0; border-radius: 7px; padding: 16px; }
.invite-meta__item span { color: var(--muted); }
.invite-copy__head { border: 0; padding-left: 0; }
.password-input-wrap > svg { color: var(--accent); }
.share-card { padding: 24px 0; border-top: 1px solid var(--line); }
.share-card h2 { font-size: 20px; }
.invite-actions { display: grid; grid-template-columns: 1fr; }
.invite-action { justify-content: flex-start; text-align: left; }
.invite-action small { opacity: .8; }
.room-lock { border: 0; background: transparent; color: var(--text); }
.room-lock__mark { color: #ad5267; background: #f9e9ed; border-color: #eacbd3; box-shadow: none; }
.profile-shell, .public-profile-shell { width: var(--container); padding-top: 110px; margin: 0 auto; }
.gamer-profile-hero { padding: 24px 0 36px; border-bottom: 1px solid var(--line); }
.gamer-profile-main h1 { font-size: 44px; color: var(--text); }
.gamer-profile-main p { color: var(--muted); }
.gamer-profile-kicker { color: #926372; }
.gamer-online-label, .gamer-room-online.is-live { color: #39745d; }
.gamer-profile-avatar-wrap { background: none; }
.gamer-profile-status, .gamer-online-label i { background: #6caa8e; box-shadow: none; }
.gamer-profile-scoreboard { border-color: var(--line); }
.gamer-profile-scoreboard article { border-color: var(--line); }
.gamer-profile-scoreboard strong { color: var(--text); }
.gamer-profile-scoreboard span { color: var(--muted); }
.gamer-level-chip { color: #754153; background: #f0d6df; box-shadow: none; }
.gamer-section-index { display: none; }
.gamer-section-head { padding-top: 30px; }
.gamer-section-head h2 { font-size: 24px; }
.gamer-room-card { border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--text); box-shadow: none; }
.gamer-room-card__top, .gamer-room-card__body, .gamer-room-card__footer { background: transparent; border-color: var(--line); }
.gamer-room-card__body h3 { color: var(--text); }
.gamer-room-card__body > span, .gamer-room-role, .gamer-room-card__footer a { color: #9e5367; }
.gamer-room-card__body small, .gamer-room-card__footer > span { color: var(--muted); }
.gamer-room-manage-trigger { color: var(--text); background: #faf7f8; border-color: var(--line); }
.gamer-room-counts span { border-color: var(--line); background: transparent; color: var(--muted); }
.profile-card { padding: 24px 0; border-top: 1px solid var(--line); }
.profile-card__head h2 { color: var(--text); font-size: 22px; }
.profile-card__head p, .profile-form-hint { color: var(--muted); }
.profile-card__head > svg { color: #9b6b7d; }
.profile-avatar-editor { background: #f5f0f3; border-color: var(--line); color: var(--text); border-radius: 7px; box-shadow: none; }
.profile-avatar-editor__actions small { color: var(--muted); }
.profile-panel, .profile-stat, .profile-badge-card { background: #f5f2f4; color: var(--text); border-color: var(--line); border-radius: 7px; box-shadow: none; }
.profile-fieldset, .profile-icon-group { border-color: var(--line); background: transparent; }
.profile-icon-group__head { color: var(--text); }
.profile-color-option, .profile-icon-option { background: #fff; color: var(--text); border-color: var(--line); border-radius: 6px; box-shadow: none; }
.profile-icon-option:has(input:checked), .profile-color-option:has(input:checked) { background: #f9edf0; border-color: #c87f90; box-shadow: none; }
.profile-badge { background: #e9f3ef; border: 0; color: #406e5b; border-radius: 5px; box-shadow: none; }
.profile-avatar { color: #fff; box-shadow: none; }
.gamer-room-drawer, .gamer-room-drawer__surface { background: #fcfafb; color: var(--text); border-color: var(--line); box-shadow: none; }
.gamer-room-drawer__header, .gamer-room-drawer__content, .gamer-room-drawer__header button, .gamer-room-lock, .gamer-room-lock__switch { color: var(--text); background: transparent; border-color: var(--line); }
.gamer-room-drawer__header h3 { color: var(--text); }
.gamer-room-drawer__header p, .gamer-room-drawer__header span { color: var(--muted); }
.gamer-room-lock__icon { color: #876170; background: #f5e9ee; border-color: #e6d4dc; box-shadow: none; }
.gamer-room-danger, .gamer-room-danger__button { background: #faedf0; color: #a4465d; border-color: #ebccd4; }
dialog::backdrop { background: #33374445; backdrop-filter: blur(4px); }

/* Only the idle scene is illustrated; live media keeps its original colors. */
body.page-room { overflow: auto; }
.room-shell { background: var(--bg); }
.room-rail { background: #ebdce5; border: 1px solid #decad8; border-radius: 8px; box-shadow: none; }
.room-rail__brand { border-color: var(--line); color: #5b5d67; }
.room-rail__brand-core { background: #b66b7c; border: 0; border-radius: 7px; box-shadow: none; }
.room-rail__brand-core::after { display: none; }
.room-rail__brand-word { color: var(--text); font-size: 9px; }
.room-rail__link { color: #795b72; background: transparent; border: 0; border-radius: 7px; box-shadow: none; }
.room-rail__link.is-active, .room-rail__link:hover { color: var(--room-mode-accent); background: var(--room-mode-accent-soft); border: 0; box-shadow: none; }
.room-rail__link::before, .room-rail__link::after { display: none; }
.room-rail__link svg { filter: none; }
.room-commandbar { color: var(--text); background: #eddfe6; border: 0; border-bottom: 1px solid var(--line); box-shadow: none; border-radius: 0; }
.room-commandbar__meta strong { color: var(--text); }
.room-commandbar__kicker { color: var(--room-mode-accent); }
.room-commandbar__meta small { color: var(--muted); }
.watch-link-bar { color: var(--text); border-color: #ddcbd4; background: #fbefeb; border-radius: 7px; box-shadow: none; }
.watch-link-bar input { background: transparent; border: 0; color: var(--text); }
.watch-link-bar > svg { color: var(--room-mode-accent); }
.watch-link-bar__action, .room-commandbar__settings { color: var(--room-mode-accent); background: var(--room-mode-accent-soft); border-color: var(--room-mode-accent-line); box-shadow: none; border-radius: 6px; }
.status-pill, .room-lock-pill, .room-lock-status { color: #687d6e; background: #e0e8dc; border-color: #cddacb; border-radius: 6px; box-shadow: none; }
.status-pill--quiet { color: var(--room-mode-accent); background: var(--room-mode-chip-bg); border-color: var(--room-mode-accent-line); }
.room-stage-surface { background: transparent; border: 0; box-shadow: none; border-radius: 0; }
.room-stage-surface__head h1 { font-size: 25px; color: var(--text); }
.stage-kicker { color: var(--room-mode-accent); }
.stage-frame { border: 0; border-radius: 8px; background: #161a20; box-shadow: none; }
.stage-frame::before, .stage-frame::after { display: none; }
.stage-placeholder { isolation: isolate; overflow: hidden; align-content: start; gap: 10px; padding: 7% 24px 100px; color: #654355; background: #d9b9b9 url("../images/cozy-evening-r20261026.jpg") center / cover no-repeat; }
.stage-placeholder::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #fff1e54d; }
.stage-placeholder strong { max-width: 100%; font-size: 24px; font-weight: 600; color: #573b4c; }
.stage-placeholder span { max-width: 360px; color: #704f60; font-size: 14px; line-height: 1.6; }
.stage-welcome-mark { width: 48px; height: 48px; margin: 0 auto 4px; object-fit: contain; filter: brightness(0) saturate(100%) invert(36%) sepia(12%) saturate(1300%) hue-rotate(278deg) brightness(92%); }
.stage-source-badge { color: #fff; background: #252a32de; border-color: #ffffff2a; }
.control-bar { display: grid; grid-template-columns: minmax(0,1fr) minmax(230px,1.35fr) 44px minmax(0,1fr) 44px; background: #efdee5; border-color: #dcc5d2; box-shadow: 0 4px 16px #62415c16; border-radius: 7px; }
.control-bar > * { min-width: 0; }
.control-bar > .btn { padding-inline: 10px; white-space: nowrap; }
.control-bar .control-bar__icon-btn { width: 44px; }
.incoming-audio-control { min-width: 0; grid-template-columns: auto minmax(90px,1fr); }
.control-bar .btn-primary, .chat-send-btn { background: var(--room-mode-accent); color: #fff; border-color: var(--room-mode-accent); box-shadow: none; }
.page-room .btn-secondary, .page-room .btn-ghost, .stage-fit-btn, .stage-fullscreen-btn { color: var(--text); background: #f9eeeb; border-color: #ddcbd6; }
.control-bar .btn-secondary, .control-bar .btn-ghost { color: var(--text); background: #f9eeeb; border-color: #ddcbd6; }
.incoming-audio-control, .incoming-audio-control__toggle, .media-device-picker { background: #f9eeeb; color: var(--text); border-color: #ddcbd6; }
.media-device-picker select, .media-device-picker option { background: #f9eeeb; color: var(--text); }
.incoming-audio-control__level output { color: var(--muted); }
.incoming-audio-control__level input { appearance: none; height: 5px; min-height: 5px; padding: 0; margin: 0; border: 0; border-radius: 5px; background: linear-gradient(to right, var(--room-mode-accent) var(--volume-progress,100%), #e5e1e5 var(--volume-progress,100%)); }
.incoming-audio-control__level input::-webkit-slider-thumb { appearance: none; width: 15px; height: 15px; border: 2px solid #fff; background: var(--room-mode-accent); border-radius: 50%; box-shadow: 0 0 0 1px #c5c5ce; }
.incoming-audio-control__level input::-moz-range-thumb { width: 13px; height: 13px; border: 2px solid #fff; background: var(--room-mode-accent); border-radius: 50%; box-shadow: 0 0 0 1px #c5c5ce; }
.room-party-strip, .room-status-panel { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; color: var(--text); }
.room-party-strip { min-height: 88px; padding-block: 8px; }
.room-party-card { height: 66px; }
.room-party-strip::before { display: none; }
.room-party-card { background: #e2e8de; border: 1px solid #c9d9c9; color: #526853; border-radius: 7px; box-shadow: none; }
.room-party-card__copy strong { color: var(--text); }
.room-party-card__copy small, .room-party-empty { color: var(--muted); }
.room-party-card__badge { background: var(--room-mode-accent-soft); color: var(--room-mode-accent); border-color: var(--room-mode-accent-line); }
.room-party-card__online { background: #6da78b; box-shadow: none; border-color: #fff; }
.room-inline-stats > span { background: #f1edf0; color: #686774; border-color: var(--line); border-radius: 5px; }
.room-status-panel__note { display: none; }
.dock-head, .dock-head span, .status-copy { color: var(--muted); }
.dock-head strong { color: var(--text); }
.room-sidepanel { background: #eee4ed; border: 0; border-radius: 0; box-shadow: none; }
.room-sidepanel__tabs { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); flex: 0 0 52px; height: 52px; padding: 0 10px; background: transparent; border-bottom: 1px solid var(--line); }
.room-tab { width: 100%; height: 52px; padding: 8px; background: transparent; color: var(--muted); border: 0; border-radius: 0; box-shadow: none; font-weight: 500; }
.room-tab.is-active { color: var(--room-mode-accent-strong); background: #e5d7e7; border: 0; box-shadow: inset 0 -2px var(--room-mode-accent); }
.room-tab::after { display: none; }
.room-sidepanel__body, .room-panel, .room-chat-panel { background: transparent; color: var(--text); }
.sidebar-head h2, .sidebar-head h3, .sidebar-head strong { color: var(--text); }
.sidebar-head h2, .dock-head h2 { font-size: 16px; margin: 0; color: var(--text); }
.sidebar-head > span, .chat-head-status > span { color: var(--muted); }
.chat-online-status { background: #dce8d9; color: #396e53; border: 0; border-radius: 5px; }
.chat-online-status__dot { background: #6aa387; box-shadow: none; }
.chat-messages { scrollbar-color: #d7cdd2 transparent; scrollbar-width: thin; }
.chat-message { background: #f8edf1; color: var(--text); border: 0; border-radius: 8px; box-shadow: none; }
.chat-message--self { background: #e0e7d9; color: #4e624e; border: 0; }
.chat-message--system { background: #e4dde8; border: 0; color: #786579; font-size: 12px; }
.chat-message__meta, .chat-player-card__name { color: var(--text); }
.chat-message__body { color: inherit; }
.chat-player-card__clock, .chat-message__tagline, .chat-message__meta time { color: #787783; }
.chat-message__profile-link, .chat-player-card { color: inherit; background: transparent; border: 0; }
.chat-system-brand { color: #4d7966; }
.chat-system-brand img { filter: brightness(.45); }
.chat-composer { border-top: 1px solid var(--line); background: #eee4ed; }
.chat-composer__bar { background: transparent; border-color: var(--line); }
.chat-composer__field { background: #fbefed; border: 1px solid #decbd6; border-radius: 7px; box-shadow: none; }
#chat-input { background: transparent; color: var(--text); border: 0; }
#chat-input { resize: none; }
.chat-emoji-toggle { color: #a16478; background: #f7e7e9; border-color: var(--line); }
.chat-emoji-picker { background: #faeeed; border-color: var(--line); box-shadow: var(--shadow); }
.chat-emoji-option { background: transparent; }
.chat-emoji-option:hover { background: #f8edf1; }
.room-mode-card, .room-fact, .presence-item, .room-panel .quote-card { background: #f6e9ef; color: var(--text); border-color: var(--line); border-radius: 7px; box-shadow: none; }
.room-mode-option { color: #7c657b; border-color: var(--line); background: #f8edf1; box-shadow: none; }
.room-mode-option.is-active { color: var(--room-mode-accent); background: var(--room-mode-accent-soft); border-color: var(--room-mode-accent-line); }
.presence-meta span, .presence-badge, .presence-profile-button { background: #ecf4ef; color: #4d7966; border-color: #d6e6dd; }
.room-panel__lead, .room-mode-card__desc { color: var(--muted); }
.compatibility-note { background: #fff4e6; color: #795e37; border-color: #ecdbbf; box-shadow: none; }

/* Wheel, apps and member details remain in-place, never navigating out of a room. */
.wheel-modal, .wheel-modal__dialog, .wheel-modal__surface, .wheel-panel, .wheel-card, .wheel-modal__content, .apps-modal, .apps-modal__dialog, .apps-modal__surface, .apps-panel, .player-showcase-card {
    background: #fcfafb; color: var(--text); border-color: var(--line); border-radius: 8px; box-shadow: 0 24px 70px #30343d20;
}
.wheel-preview, .wheel-editor, .wheel-layout, .wheel-stage, .wheel-options, .apps-modal__body { background: transparent; color: var(--text); border-color: var(--line); box-shadow: none; }
.wheel-overlay__panel, .apps-overlay__panel { color: var(--text); background: #fcfafb; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 24px 70px #30343d20; }
.wheel-overlay__backdrop, .apps-overlay__backdrop { background: #34344055; backdrop-filter: blur(5px); }
.wheel-overlay__head h2, .apps-overlay__head h2 { color: var(--text); font-size: 24px; }
.wheel-overlay__head p, .wheel-helper { color: var(--muted); }
.wheel-close-btn { color: var(--text); border-color: var(--line); background: #fff; }
.wheel-stage, .wheel-editor { border: 0; border-radius: 0; }
.wheel-result-card, .wheel-chip { color: #864358; background: #f8e7ee; border-color: #e9c6d1; box-shadow: none; }
.wheel-result-card strong { color: #864358; }
.wheel-result { padding: 0; background: transparent; color: var(--muted); }
.wheel-result-card { border-radius: 8px; }
.wheel-actions { display: flex; align-self: end; gap: 8px; flex-wrap: wrap; }
.wheel-actions .btn { min-height: 44px; height: 44px; padding: 10px 12px; flex: 1; }
.wheel-close-btn { border-radius: 7px; }
.apps-catalog-card { background: #fff; color: var(--text); border: 1px solid var(--line); border-radius: 8px; box-shadow: none; }
.apps-catalog-card strong { color: var(--text); }
.apps-catalog-card small { color: var(--muted); }
.apps-catalog-card__icon { background: #f7e7ed; color: #a9526a; box-shadow: none; }
.apps-catalog-card__icon { border: 0; }
.apps-catalog-tabs { border-color: var(--line); }
.apps-catalog-card:nth-child(2n) .apps-catalog-card__icon { background: #e5f2ed; color: #4d8870; }
.apps-catalog-tabs button { background: transparent; color: var(--muted); border-color: var(--line); }
.apps-catalog-tabs button.is-active { background: #f7e7ed; color: #a9526a; border-color: #e8c9d2; }
.wheel-result, .wheel-result-chip { background: #f8e7ee; color: #864358; border-color: #e9c6d1; }
.wheel-modal__backdrop, .apps-modal__backdrop, .player-card-overlay__backdrop { background: #34344055; backdrop-filter: blur(5px); }
.apps-card, .app-card { background: #fff; color: var(--text); border-color: var(--line); border-radius: 8px; }
.stage-app { background: #fcfafb; color: var(--text); }
.stage-app__head, .stage-app__body { background: transparent; color: var(--text); border-color: var(--line); }
.stage-app__close, .stage-app__reset, .stage-timer__presets button { color: var(--text); background: #fff; border-color: var(--line); }
.stage-app__status { color: var(--room-mode-accent); }
.stage-poll__option, .tic-tac-toe-board button { background: #f6eef2; color: var(--room-mode-accent); border-color: var(--line); }
.player-showcase-card__hero { background: #f6eef2; color: var(--text); border-color: var(--line); }
body.page-room.player-card-modal-open, body.page-room.has-room-drawer-open, html:has(body.player-card-modal-open), html:has(body.page-room.has-room-drawer-open) { overflow: hidden; }
.player-showcase-card { overflow: hidden; }
.player-showcase-card__content { max-height: inherit; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #b69aae transparent; }
.player-showcase-card__hero::after { display: none; }
.player-showcase-card__identity h2 { font-size: 30px; color: var(--text); }
.player-showcase-card__bio, .player-showcase-card__identity p { color: var(--muted); }
.player-showcase-card__close, .player-showcase-card__live span, .player-showcase-card__badge, .player-showcase-card__collectible, .player-showcase-card__achievements span { background: #fff; color: var(--text); border-color: var(--line); box-shadow: none; }
.player-showcase-card__section-head, .player-showcase-card__stats strong, .player-showcase-card__badge strong, .player-showcase-card__section-head > span { color: var(--text); }
.player-showcase-card__stats, .player-showcase-card__stats > span + span { border-color: var(--line); }
.player-showcase-card__online { background: #6da78b; border-color: #fff; box-shadow: none; }
.page-room :is(.gamer-room-drawer, .gamer-room-drawer__surface, .wheel-overlay__panel, .apps-overlay__panel, .player-showcase-card) { background: #f5e7ee; }
.page-room :is(.wheel-close-btn, .apps-catalog-card, .player-showcase-card__close, .player-showcase-card__badge, .player-showcase-card__collectible) { background: #fbeeed; }
.page-room :is(.gamer-room-drawer input:not([type="checkbox"]), .gamer-room-drawer select, .gamer-room-drawer textarea, .wheel-editor textarea) { background: #fff1eb; }
dialog.audio-settings-drawer { width: min(430px,100%); }
.audio-settings-drawer::backdrop { background: #34344055; }
.audio-settings-fields { display: flex; flex-direction: column; gap: 20px; }
.audio-balance { display: grid; gap: 16px; min-width: 0; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.audio-balance__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.audio-balance__head h4 { margin: 0; font-size: 15px; color: var(--text); }
.audio-balance__head button { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--text); cursor: pointer; }
.audio-balance svg { width: 18px; height: 18px; flex: 0 0 auto; }
.audio-balance__channel { display: grid; grid-template-columns: minmax(0,1fr) 48px; align-items: center; gap: 4px 12px; min-width: 0; margin: 0; }
.audio-balance__channel > span { display: flex; align-items: center; gap: 9px; color: var(--text); font-weight: 600; }
.audio-balance__channel output { width: 48px; text-align: right; color: var(--accent); font-variant-numeric: tabular-nums; font-weight: 700; }
#audio-settings-drawer .audio-balance input[type="range"] { grid-column: 1 / -1; appearance: none; width: 100%; min-width: 0; height: 32px; min-height: 32px; padding: 0; margin: 0; border: 0; background: transparent; box-shadow: none; cursor: pointer; }
.audio-balance input::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(to right,var(--accent) var(--volume-progress,100%),var(--line-strong) var(--volume-progress,100%)); }
.audio-balance input::-webkit-slider-thumb { appearance: none; width: 20px; height: 20px; margin-top: -7px; border: 3px solid var(--surface); border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1px var(--line-strong); }
.audio-balance input::-moz-range-track { height: 6px; border-radius: 6px; background: var(--line-strong); }
.audio-balance input::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--accent); }
.audio-balance input::-moz-range-thumb { width: 14px; height: 14px; border: 3px solid var(--surface); border-radius: 50%; background: var(--accent); }
.audio-balance :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.audio-balance__head button:hover { background: var(--surface-muted); }
.audio-device-field { display: grid; gap: 10px; min-width: 0; }
.audio-device-field > span { display: flex; align-items: center; gap: 9px; font-weight: 600; }
.audio-device-field svg, .player-audio-controls svg { width: 19px; height: 19px; flex: 0 0 auto; }
.audio-device-field select { width: 100%; min-width: 0; height: 48px; color: var(--text); color-scheme: light; text-overflow: ellipsis; }
.audio-device-field option { color: var(--text); background: #fff1eb; }
.audio-device-notice { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.audio-device-notice:empty { display: none; }
.audio-settings-fields > .btn { flex: 0 0 auto; }
.audio-check { border-top: 1px solid var(--line); padding-top: 20px; }
.audio-check h4 { margin: 0 0 14px; font-size: 15px; }
.audio-check-results { margin: 0 0 16px; font-size: 13px; }
.audio-check-results > div { display: grid; grid-template-columns: 105px minmax(0,1fr); gap: 12px; padding: 8px 0; }
.audio-check-results dt { color: var(--muted); }
.audio-check-results dd { margin: 0; overflow-wrap: anywhere; }
.audio-check-actions { display: flex; gap: 8px; align-items: center; }
.audio-check-actions > :first-child { flex: 1; min-width: 0; }
.audio-check-actions > :last-child { width: 44px; height: 44px; padding: 10px; flex: 0 0 44px; }
.player-audio-controls { padding-bottom: 18px; border-bottom: 1px solid var(--line); min-width: 0; }
.player-audio-controls__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.player-audio-controls__head label { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 600; color: var(--text); }
.player-audio-controls__head output { width: 48px; text-align: right; font-weight: 700; color: var(--room-mode-accent); font-variant-numeric: tabular-nums; }
.player-audio-controls__slider { display: grid; grid-template-columns: minmax(0,1fr) 40px; gap: 16px; align-items: center; margin-top: 10px; }
.player-audio-controls__slider button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: #fbeeed; color: var(--text); cursor: pointer; }
.player-audio-controls input[type="range"] { appearance: none; width: 100%; min-width: 0; height: 40px; min-height: 40px; padding: 0; margin: 0; border: 0; background: transparent; box-shadow: none; cursor: pointer; }
.player-audio-controls input::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(to right,var(--room-mode-accent) var(--volume-progress,75%),#d9cbd6 var(--volume-progress,75%)); }
.player-audio-controls input::-webkit-slider-thumb { appearance: none; width: 20px; height: 20px; margin-top: -7px; border: 3px solid #fff; border-radius: 50%; background: var(--room-mode-accent); box-shadow: 0 0 0 1px #c2aaba; }
.player-audio-controls input::-moz-range-track { height: 6px; border-radius: 6px; background: #d9cbd6; }
.player-audio-controls input::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--room-mode-accent); }
.player-audio-controls input::-moz-range-thumb { width: 14px; height: 14px; border: 3px solid #fff; border-radius: 50%; background: var(--room-mode-accent); }
.player-audio-controls__limits { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-right: 56px; color: var(--muted); font-size: 11px; }
.player-audio-controls :focus-visible { outline: 2px solid var(--room-mode-accent); outline-offset: 3px; }
.voice-mode-controls { min-width: 0; margin: 20px 0 0; padding: 0; border: 0; }
.voice-mode-controls legend { padding: 0; margin-bottom: 10px; color: var(--text); font-size: 12px; font-weight: 600; }
.voice-mode-controls__options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; }
.voice-mode-controls label { position: relative; min-width: 0; margin: 0; cursor: pointer; }
.voice-mode-controls input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.voice-mode-controls label > span { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 6px; min-height: 44px; height: 100%; border: 1px solid #d9cbd6; border-radius: 6px; color: var(--text); background: #fbeeed; font-size: 12px; text-align: center; line-height: 1.3; }
.voice-mode-controls input:checked + span { background: var(--room-mode-accent); border-color: var(--room-mode-accent); color: white; }
.voice-mode-controls input:focus-visible + span { outline: 2px solid var(--room-mode-accent); outline-offset: 3px; }
.voice-mode-controls input:disabled + span { opacity: .5; cursor: not-allowed; }
.voice-mode-status { margin: 10px 0 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
.voice-mode-status:empty { display: none; }
.nymastra-loader { background: #fcfafb; pointer-events: none; transition: opacity .2s; }
.nymastra-loader.is-leaving { opacity: 0; }
.nymastra-loader__stage { animation: none; color: #6e4655; }
.nymastra-loader__corner { display: none; }
.nymastra-loader__mark { width: 90px; height: 90px; filter: brightness(.6) sepia(.3); animation: none; }
.nymastra-loader__word { color: var(--text); font-size: 25px; letter-spacing: 0; }
.nymastra-loader__status, .nymastra-loader__eyebrow { color: var(--muted); }
.nymastra-loader__track { display: none; }

@layer theme-fixes {
    .pastel-theme [hidden] { display: none !important; }
    .pastel-theme .profile-custom-icon:not(.profile-custom-icon--flower),
    .pastel-theme .profile-icon-group:not(.profile-icon-group--flower) .profile-icon-option__symbol { color: #59616b !important; filter: grayscale(1) brightness(.55) !important; text-shadow: none !important; }
    .pastel-theme .chat-online-status { color: #396e53 !important; }
    .pastel-theme .chat-message--system strong { color: #4d7966 !important; }
    .pastel-theme .chat-message--system small { color: #738176 !important; }
}
@media (max-width: 1100px) {
    .together-home { min-height: 800px; padding-bottom: 300px; }
    .together-home__art { height: auto; top: auto; bottom: 0; object-fit: contain; object-position: center bottom; }
    .invite-shell { gap: 35px; }
    .gamer-profile-main h1 { font-size: 36px; }
}
@media (min-width: 1181px) {
    .room-stage-column { grid-template-rows: minmax(0,1fr) 88px 108px; }
}
@media (min-width: 761px) and (max-width: 1400px) {
    .control-bar { grid-template-columns: 44px minmax(0,1fr) minmax(0,1fr) 44px; }
    #toggle-mic { grid-column: 1 / 3; grid-row: 1; }
    .incoming-audio-control { grid-column: 3 / 5; grid-row: 1; }
    #audio-settings-open { grid-column: 1; grid-row: 2; }
    #share-screen { grid-column: 2 / 4; grid-row: 2; }
    #refresh-room { grid-column: 4; grid-row: 2; }
}
@media (max-width: 760px) {
    .auth-shell { width: min(460px,100%); padding: 44px 28px 32px; background: #ffefeced; gap: 22px; }
    .auth-copy h1 { font-size: 28px; }
    .auth-brand { margin-bottom: 22px; }
    .auth-shell--register { padding-top: 30px; gap: 16px; }
    input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), textarea, select { font-size: 16px; }
    .together-home { min-height: 0; padding: 64px 22px 245px; }
    .together-home__art { height: auto; max-height: 360px; top: auto; bottom: 0; object-fit: contain; object-position: center bottom; }
    .together-home__content { width: min(480px,100%); }
    .together-identity h1 { font-size: 34px; }
    .together-identity > img { width: 56px; height: 56px; }
    .together-identity p { font-size: 15px; }
    .together-entry { margin-top: 26px; background: #ffffffeb; }
    .together-features { width: calc(100% - 32px); gap: 8px; padding: 20px 0; }
    .together-features > div { flex-direction: column; gap: 8px; text-align: center; font-size: 12px; }
    .together-story { padding: 34px 0; margin-top: 20px; }
    .together-story ol { grid-template-columns: 1fr; gap: 18px; }
    .together-story li { border-bottom: 1px solid var(--line); padding-bottom: 10px; }
    .together-story li > span { margin-bottom: 6px; }
    .account-menu { top: 14px; right: 14px; }
    .quiet-home { top: 20px; left: 20px; }
    .invite-shell { grid-template-columns: 1fr; gap: 28px; padding-top: 100px; }
    .invite-panel { border-top: 1px solid var(--line); }
    .gamer-profile-hero { gap: 24px; }
    .gamer-profile-main h1 { font-size: 30px; }
    .profile-settings-grid { grid-template-columns: 1fr; }
    .room-stage-surface__head h1 { font-size: 21px; }
    .stage-placeholder { padding-top: 42px; background-position: 50% bottom; }
    .stage-placeholder strong { font-size: 21px; }
    .stage-placeholder span { font-size: 13px; }
    .room-commandbar__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
    .room-commandbar__invite { width: auto; flex: 1; min-width: 110px; }
    .room-commandbar__settings { flex: 0 0 40px; }
    .room-sidepanel__tabs { gap: 0; }
    .room-tab { font-size: 12px; }
    .control-bar { display: grid; grid-template-columns: minmax(0,1fr) 44px; gap: 8px; }
    #toggle-mic { grid-column: 1 / -1; }
    .incoming-audio-control { grid-column: 1; grid-template-columns: auto minmax(60px,1fr); gap: 5px; padding-right: 6px; }
    .incoming-audio-control__toggle span { display: none; }
    .incoming-audio-control__level { gap: 5px; grid-template-columns: minmax(35px,1fr) 36px; }
    #audio-settings-open { grid-column: 2; }
    #share-screen { grid-column: 1; padding: 10px; white-space: nowrap; }
    #refresh-room { grid-column: 2; padding: 10px; }
}
@media (min-width: 761px) and (max-height: 800px) {
    .together-home { min-height: 0; padding-top: 22px; padding-bottom: 154px; }
    .together-identity > img { width: 48px; height: 48px; margin-bottom: 6px; }
    .together-identity h1 { font-size: 36px; }
    .together-entry { margin-top: 20px; }
    .entry-tabs { margin-bottom: 16px; }
    .entry-form { gap: 14px; }
}
@media (max-width: 420px) {
    .auth-shell { padding-inline: 24px; }
    .entry-form__main { grid-template-columns: minmax(0,1fr) 128px; gap: 10px; }
    .entry-stepper { grid-template-columns: 35px minmax(0,1fr) 35px; }
    .entry-form__actions { gap: 10px; }
    .entry-form__actions > .btn { min-width: 130px; }
    .entry-form .entry-lock { font-size: 12px; gap: 6px; }
    .entry-lock > svg { width: 17px; height: 17px; }
    .together-identity h1 { font-size: 31px; }
    .quiet-home span { display: none; }
    .quiet-footer { flex-direction: column; gap: 5px; }
}
@media (max-width: 760px) {
    .together-home:has(.entry-recent) { padding-top: 32px; padding-bottom: 150px; }
    .together-home:has(.entry-recent) .together-identity > img { width: 44px; height: 44px; }
    .together-home:has(.entry-recent) .together-identity h1 { font-size: 30px; }
}
@media (max-height: 800px) {
    .together-home:has(.entry-recent) { padding-top: 20px; padding-bottom: 100px; min-height: 0; }
    .together-home:has(.entry-recent) .together-identity > img { width: 36px; height: 36px; }
    .together-home:has(.entry-recent) .together-entry { margin-top: 16px; }
    .together-home:has(.entry-recent) .entry-tabs { margin-bottom: 16px; }
    .together-home:has(.entry-recent) .entry-recent { margin-bottom: 16px; padding-bottom: 12px; }
    .together-home:has(.entry-recent) .entry-form { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
