:root {
  /* The platform stays quiet; each game's artwork keeps its own colors. */
  font-family: "Helvetica Neue",Arial,"PingFang SC",sans-serif;
  color: var(--ink); background: var(--paper); font-synthesis: none; color-scheme: dark;
  --paper: #121214; --ink: #f0f0f2; --body: #b5b5bd; --muted: #9999a2;
  --line: rgb(210 210 219 / .12); --line-strong: rgb(210 210 219 / .3);
  --surface: #1b1b1f; --surface-raised: #27272d; --surface-inset: #161619; --surface-hover: #303036;
  --gutter: clamp(22px, 4.2vw, 64px); --shadow-panel: none;
  --brand: #ee783e; --brand-rgb: 238 120 62; --orange: var(--brand);
}
* { box-sizing: border-box; }
body { margin: 0; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { color: var(--paper); background: var(--ink); }
body.modal-open { overflow: hidden; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { border: 0; background: none; color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
button svg, a svg { flex-shrink: 0; }
svg { vertical-align: middle; }
h1, h2, h3, p { margin: 0; }
button, input, select { min-height: 44px; }
button { transition: color .2s, background .2s, border-color .2s; }
button:hover:not(:disabled) { color: #fff; }
.boot { text-align: center; padding: 30vh 1rem; font-size: 32px; font-weight: 700; letter-spacing: -1px; }
.boot span { color: var(--ink); font-weight: 400; }
.boot p { margin-top: 16px; font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.shell, .cinema-shell { min-height: 100dvh; }
.content, .cinema-content { min-width: 0; position: relative; }
.topbar { --header-ink: #f6f0e6; --header-text: #c9c1b7; --header-hover: #241c18; height: 84px; position: sticky; top: 0; z-index: 40; background: #0e0e10; border-bottom: 0; }
.platform-topbar-inner { width: 100%; max-width: 1432px; height: 100%; margin: auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 56px; }
.wordmark, .mobile-brand { display: flex; align-items: center; gap: 12px; font-size: 24px; font-weight: 650; letter-spacing: -.9px; white-space: nowrap; color: var(--header-ink,var(--ink)); }
.wordmark > span { display: flex; align-items: baseline; gap: 7px; }
.wordmark img, .mobile-brand img { width: 27px; height: 27px; object-fit: contain; }
.wordmark em, .mobile-brand em { font-style: normal; font-weight: 500; letter-spacing: -.8px; color: #f48a51; }
.cinema-nav { display: flex; align-items: center; gap: 28px; font-size: 13px; font-weight: 500; color: var(--header-text); }
.cinema-nav button { position: relative; min-height: 44px; padding: 0 0 0 13px; }
.cinema-nav button::before { content: ""; position: absolute; left: 0; top: calc(50% - 2px); width: 4px; height: 4px; border-radius: 50%; background: var(--brand); opacity: 0; }
.cinema-nav button.active::before { opacity: 1; }
.cinema-nav button.active { color: var(--header-ink); }
.cinema-nav button:hover { color: var(--header-ink); }
.toplinks { margin-left: auto; display: flex; align-items: center; gap: 16px; color: var(--header-text); font-size: 13px; }
.toplinks button { padding: 0 6px; }
.platform-tools { display: flex; align-items: center; gap: 7px; padding-right: 8px; }
.platform-tools > button, .header-more { display: grid; place-items: center; width: 40px; height: 44px; color: var(--header-text); border-radius: 8px; }
.platform-tools > button:hover, .header-more:hover { background: var(--header-hover); color: var(--header-ink); }
.language-switch { color: var(--header-text); font-size: 11px; font-weight: 500; letter-spacing: .6px; }
.account { display: flex; align-items: center; gap: 8px; max-width: 170px; }
.account span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; background: var(--surface-raised); color: var(--ink); font-size: 11px; font-weight: 600; }
.topbar .account { gap: 10px; color: var(--header-ink); font-size: 12px; font-weight: 500; }
.topbar .avatar { flex-shrink: 0; background: #35251d; color: #f4bd99; font-style: normal; }
.toplinks > button[data-action="login"] { color: var(--header-ink); font-weight: 500; }
.toplinks > button[data-action="login"] > svg { margin-left: 5px; color: var(--brand); }
.mobile-brand { display: none; }
.main { max-width: 1432px; margin: auto; padding: 48px var(--gutter) 32px; }
.main.inner-page { min-height: calc(100dvh - 84px); }
/* Keep copy in flow so wrapped titles expand the scene below the header. */
.creator-byline { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 9px; margin-top: 18px; font-size: 12px; line-height: 1.7; }
.creator-label, .creator-unavailable { color: var(--muted); font-size: 11px; }
.creator-link { display: inline-flex; align-items: center; gap: 9px; min-width: 0; max-width: 100%; min-height: 44px; padding: 0; text-align: left; color: var(--ink); font-weight: 550; }
.creator-link span, .creator-name { overflow-wrap: anywhere; }
.creator-link svg { color: var(--body); }
.creator-link:hover span { color: #fff; }
.creator-works { display: grid; gap: 12px; margin-top: 24px; }
.creator-work { display: flex; align-items: center; gap: 14px; width: 100%; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 2px; text-align: left; }
.creator-work:hover { background: var(--surface-hover); }
.creator-work > img, .creator-work-placeholder { width: 64px; height: 90px; object-fit: cover; flex-shrink: 0; border-radius: 2px; background: var(--surface-raised); }
.creator-work-placeholder { display: grid; place-items: center; color: var(--muted); }
.creator-work-copy { display: grid; gap: 7px; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.creator-work-copy strong { font-size: 13px; line-height: 1.5; font-weight: 550; }
.creator-work-copy > span { font-size: 10px; line-height: 1.6; color: var(--muted); }
.poster-card[data-select-feature="last-light-original-demo"] .poster-art > img { object-position: 76% center; }
.poster-card.active .poster-art > img { filter: saturate(1) brightness(1); }
@keyframes scene-arrive { from { opacity: .4; transform: scale(1.035); } to { opacity: 1; transform: scale(1); } }
@keyframes title-arrive { from { opacity: 0; transform: translateY(11px); } to { opacity: 1; transform: translateY(0); } }
/* One available story receives an editorial feature, rather than an empty poster wall. */
.poster-rail { display: flex; gap: 21px; overflow-x: auto; overflow-y: hidden; padding: 7px 4px 21px; margin: -7px -4px 0; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; scroll-snap-type: x proximity; }
.poster-card { width: clamp(170px, 14vw, 220px); flex: 0 0 auto; display: block; padding: 0; text-align: left; min-width: 0; perspective: 1000px; scroll-snap-align: start; }
.poster-art { aspect-ratio: 2 / 3; position: relative; overflow: hidden; background: var(--surface); border-radius: 2px; border: 1px solid var(--surface-hover); transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); transition: transform .3s ease, border-color .3s, box-shadow .3s; transform-style: preserve-3d; }
.poster-art > img { width: 100%; height: 100%; display: block; object-fit: cover; transform: translate3d(var(--depth-x, 0px), var(--depth-y, 0px), 0) scale(1.07); transition: transform .35s ease, filter .35s; filter: saturate(.83) brightness(.88); }
.poster-overlay { position: absolute; inset: 0; background: linear-gradient(0deg, #0d0c09ba, transparent 45%), radial-gradient(circle at calc(var(--pointer-x, .5) * 100%) calc(var(--pointer-y, .5) * 100%), rgb(244 238 227 / .04), transparent 65%); pointer-events: none; }
.poster-card:focus-visible .poster-art { border-color: var(--ink); box-shadow: none; }
.poster-card:hover .poster-art > img, .poster-card:focus-visible .poster-art > img { filter: saturate(1) brightness(1); }
.poster-card.active .poster-art { border-color: var(--ink); box-shadow: none; }
.poster-index { position: absolute; left: 13px; top: 12px; font: 9px ui-monospace, SFMono-Regular, monospace; letter-spacing: 1px; color: #ffffffb3; }
.poster-label { position: absolute; left: 12px; bottom: 12px; font-size: 8px; letter-spacing: 1px; color: var(--ink); border: 1px solid var(--line); padding: 5px 7px; border-radius: 2px; background: var(--surface); }
.poster-title { font-size: 12px; font-weight: 550; line-height: 1.5; margin-top: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.poster-author { color: var(--body); font-size: 10px; line-height: 1.6; margin-top: 5px; overflow-wrap: anywhere; }
.poster-type { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 9px; margin-top: 7px; }
.poster-type:before { content: ""; width: 3px; height: 3px; background: var(--ink); border-radius: 50%; }
.drawer-backdrop { position: fixed; inset: 0; z-index: 44; background: #09090c80; }
.side-drawer { position: fixed; inset: 0 0 0 auto; z-index: 45; width: min(390px, 100vw); background: var(--paper); border-left: 1px solid var(--line); padding: 32px; box-shadow: none; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.drawer-head h2 { font-size: 18px; letter-spacing: -.4px; font-weight: 550; }
.story-drawer { width: min(500px, 100vw); padding-top: 70px; }
.story-drawer .detail-cover { width: 100%; max-height: 245px; object-fit: cover; border-radius: 2px; margin-bottom: 24px; }
.story-drawer h2 { font-size: 28px; line-height: 1.2; margin-top: 12px; letter-spacing: -.7px; }
.story-drawer > p { color: var(--muted); font-size: 12px; margin-top: 12px; }
.drawer-head button { display: grid; place-items: center; width: 44px; }
.drawer-actions { display: grid; gap: 11px; margin: 24px 0; }
.drawer-actions .btn { width: 100%; justify-content: flex-start; }
.drawer-status { font-size: 11px; line-height: 1.9; padding: 18px 0; border-top: 1px solid var(--line); color: var(--muted); }
.search { display: flex; align-items: center; gap: 10px; color: var(--muted); border: 0; background: transparent; padding: 0 13px; border-radius: 0; border-bottom: 1px solid var(--line); }
.search input { border: 0; background: transparent; outline: none; width: 100%; font-size: 12px; color: var(--ink); min-width: 0; }
.search kbd { font-size: 9px; border: 1px solid var(--line); border-radius: 2px; padding: 2px 4px; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 9px; min-height: 46px; padding: 0 20px; border: 1px solid var(--line); border-radius: 9px; font-size: 13px; font-weight: 600; line-height: 1.4; letter-spacing: .1px; background: transparent; box-shadow: none; }
.btn:hover:not(:disabled) { background: var(--surface-hover); }
.btn.primary, .btn.dark { background: var(--brand); border-color: transparent; color: #18181d; }
.btn.primary:hover:not(:disabled), .btn.dark:hover:not(:disabled) { background: #f58b56; color: #18181d; }
.btn.soft { background: var(--surface-raised); border-color: var(--line-strong); }
.btn.ghost { background: transparent; border-color: var(--line); }
.eyebrow { display: flex; align-items: center; gap: 8px; color: var(--muted); font: 9px ui-monospace, SFMono-Regular, monospace; letter-spacing: 1.5px; text-transform: uppercase; }
.eyebrow .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--ink); }
.section-head, .view-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; }
.section-head { margin-top: 30px; }
.section-head h2 { font-size: 19px; font-weight: 550; }
.section-head p, .view-head p { margin-top: 8px; font-size: 12px; line-height: 1.8; color: var(--muted); }
.view-head h1 { font-size: 29px; letter-spacing: -1px; font-weight: 550; }
.text-button, .back { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); }
.back { margin-bottom: 23px; }
.filters { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 20px; padding: 3px; }
.chip { border: 1px solid var(--line); border-radius: 2px; padding: 0 13px; min-height: 33px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.chip.selected { color: var(--ink); border-color: var(--ink); background: var(--surface-hover); }
.game-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.game-card { display: block; padding: 0; text-align: left; min-width: 0; width: 100%; }
.cover { aspect-ratio: 16 / 10; position: relative; overflow: hidden; border-radius: 2px; background: var(--surface); display: grid; place-items: center; }
.cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.game-card:hover .cover img { transform: scale(1.04); }
.cover-symbol { font-family: Georgia, serif; font-size: 48px; color: var(--muted); }
.cover-badge { position: absolute; top: 11px; left: 11px; padding: 5px 7px; font-size: 8px; border-radius: 2px; background: var(--surface); color: var(--body); }
.game-card h3 { margin: 12px 0 5px; font-size: 14px; font-weight: 550; }
.game-card p, .card-meta { font-size: 10px; color: var(--muted); line-height: 1.8; }
.card-meta { display: flex; gap: 12px; margin-top: 7px; }
.empty { display: flex; align-items: center; gap: 22px; border: 0; border-radius: 0; padding: 30px; background: transparent; min-height: 150px; border-top: 1px solid var(--line); }
.empty-icon { color: var(--muted); }
.empty h3 { font-size: 13px; font-weight: 550; margin-bottom: 8px; }
.empty p { font-size: 11px; line-height: 1.9; max-width: 570px; color: var(--muted); }
.empty .btn { margin-left: auto; white-space: nowrap; }
.skeleton { min-height: 135px; border-radius: 2px; background: var(--surface-raised); }
.panel { padding: 26px 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; border-top: 1px solid var(--line); }
.panel h2 { font-size: 15px; font-weight: 550; letter-spacing: -.2px; }
.panel-caption { font-size: 11px; line-height: 1.8; margin-top: 8px; color: var(--muted); }
.room-signin-title { margin-top: 20px; }
.room-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.room-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; }
.date-label { font: 10px ui-monospace, SFMono-Regular, monospace; letter-spacing: 1px; color: var(--muted); }
.members { display: grid; gap: 11px; margin-top: 23px; }
.member { display: flex; align-items: center; gap: 13px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 2px; }
.member .avatar { width: 35px; height: 35px; }
.member strong { display: block; font-size: 12px; font-weight: 550; }
.member p { margin-top: 4px; font-size: 10px; color: var(--muted); }
.badge { margin-left: auto; padding: 5px 8px; font-size: 9px; border-radius: 2px; background: var(--surface-hover); color: var(--body); }
.badge.waiting { background: var(--surface-hover); color: var(--muted); }
.role-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin-top: 20px; }
.role { padding: 14px 11px; text-align: left; border: 1px solid var(--line); border-radius: 2px; }
.role strong { display: block; font-size: 12px; }
.role p { margin-top: 7px; font-size: 10px; color: var(--muted); }
.role:hover:not(:disabled) { background: var(--surface-hover); }
.room-status { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 11px; line-height: 1.8; color: var(--muted); }
.room-actions, .detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.invite-code { font: 18px ui-monospace, SFMono-Regular, monospace; letter-spacing: 1px; color: var(--ink); overflow-wrap: anywhere; margin: 18px 0; }
.callout { padding: 14px 16px; margin-top: 17px; background: transparent; border: 0; border-radius: 0; font-size: 12px; line-height: 1.9; color: var(--muted); border-left: 1px solid var(--line); }
.error { color: #a7a7a7 !important; }
.room-error { font-size: 12px; line-height: 1.8; margin-bottom: 20px; }
.reader-tabs { display: flex; gap: 10px; margin-bottom: 18px; }
.reader-content { margin-top: 24px; }
.reader-body { max-width: 720px; white-space: pre-wrap; overflow-wrap: anywhere; font: 16px/2 Georgia, "Songti SC", serif; color: var(--body); }
.reader-chip { margin: 7px 5px 0 0; }
.player-empty { padding: 35px 10px; text-align: center; font-size: 12px; line-height: 1.9; color: var(--muted); }
.sample-reader { max-width: 760px; margin: 24px auto; }
.sample-reader h1 { font: 34px/1.3 Georgia, "Songti SC", serif; letter-spacing: -.8px; margin-top: 16px; }
.sample-reader h2 { font: 22px/1.5 Georgia, "Songti SC", serif; margin: 30px 0 20px; }
.sample-meta { font-size: 10px; line-height: 1.8; color: var(--muted); margin: 12px 0 30px; }
.story-text { font: 17px/2 Georgia, "Songti SC", serif; color: var(--body); }
.choices { display: grid; gap: 10px; margin-top: 28px; }
.choice { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 18px; text-align: left; border: 1px solid var(--line); border-radius: 2px; font-size: 13px; line-height: 1.7; }
.choice:hover { background: var(--surface-hover); }
.clue-tag { display: inline-flex; margin: 16px 7px 0 0; padding: 5px 10px; border: 1px solid var(--line); color: var(--body); border-radius: 0; font-size: 10px; }
.modal-backdrop { position: fixed; inset: 0; z-index: 60; background: #08080ac9; display: grid; place-items: center; padding: 20px; overflow-y: auto; }
.modal { position: relative; width: min(440px, 100%); max-height: calc(100dvh - 40px); overflow-y: auto; background: var(--surface); border: 1px solid var(--line); padding: 34px; border-radius: 8px; box-shadow: none; }
.modal.wide { width: min(650px, 100%); }
.close-modal { position: absolute; right: 14px; top: 14px; width: 44px; height: 44px; display: grid; place-items: center; color: var(--muted); border-radius: 2px; }
.close-modal:hover { color: var(--ink); background: #eeeeee07; }
.modal-brand { display: flex; align-items: center; gap: 9px; font-size: 19px; font-weight: 700; letter-spacing: -.8px; margin-bottom: 29px; }
.modal-brand img { width: 30px; height: 30px; }
.modal h2 { font-size: 26px; font-weight: 500; letter-spacing: -.65px; line-height: 1.35; padding-right: 20px; }
.modal > p { font-size: 12px; line-height: 1.9; color: var(--muted); margin-top: 12px; }
.form { display: grid; gap: 19px; margin-top: 27px; }
.form label { display: grid; gap: 8px; font-size: 11px; color: var(--muted); }
.form input, .form select { width: 100%; min-width: 0; padding: 13px 14px; color: var(--ink); background: var(--surface-inset); border: 0; border-radius: 0; font-size: 14px; transition: border-color .2s; border-bottom: 1px solid var(--line); }
.form input::placeholder { color: var(--muted); }
.form input:hover, .form select:hover { background: var(--surface); }
.form .btn { width: 100%; }
.form-row { display: flex; gap: 8px; align-items: end; }
.form-row label { flex: 1; min-width: 0; }
.form-row .btn { width: auto; white-space: nowrap; }
.form-error { font-size: 11px; color: #a7a7a7; line-height: 1.8; }
.form-error:empty { display: none; }
.form-footer { font-size: 10px; line-height: 1.9; text-align: center; color: var(--muted); margin-top: 22px; }
.form-footer a { text-decoration: underline; text-underline-offset: 3px; }
.login-tabs { display: flex; border-bottom: 1px solid var(--line); margin-top: 20px; }
.login-tabs button { padding: 8px 16px; font-size: 11px; color: var(--muted); border-bottom: 2px solid transparent; }
.login-tabs button.active { color: var(--ink); border-bottom-color: var(--ink); }
.notice { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 100; padding: 13px 22px; max-width: 90vw; font-size: 12px; line-height: 1.8; background: var(--surface-raised); border: 1px solid var(--line); border-radius: 2px; box-shadow: none; }
.notice[hidden] { display: none; }
.detail-cover { width: 100%; height: 210px; object-fit: cover; border-radius: 2px; margin-bottom: 22px; }
.detail-description { margin: 18px 0; color: var(--body); font-size: 13px; line-height: 1.9; white-space: pre-line; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.detail-meta span { font-size: 10px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 2px; }
.detail-actions .btn { flex: 1; }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 64px; padding: 24px 0 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.8; letter-spacing: .25px; }
.footer a { margin-left: 16px; }
.mobile-nav { display: none; }
@media (min-width: 1600px) {
  .poster-rail { gap: 26px; } .game-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .platform-topbar-inner { gap: 36px; } .cinema-nav { gap: 24px; } .poster-rail { gap: 17px; }
  .room-layout { grid-template-columns: 1.3fr 1fr; }
}
@media (max-width: 850px) {
  .cinema-nav { display: none; } .platform-topbar-inner { gap: 24px; } .toplinks { gap: 10px; } .toplinks > a { display: none; }
  .account { max-width: 114px; } .account span { max-width: 65px; }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .room-layout { grid-template-columns: 1fr; }
  .empty { flex-wrap: wrap; padding: 20px; } .empty .btn { margin-left: 0; } .date-label { display: none; }
}
@media (max-width: 600px) {
  .topbar { height: 68px; } .platform-topbar-inner { padding-inline: 20px; gap: 14px; } .wordmark { font-size: 21px; gap: 9px; } .wordmark img { width: 25px; height: 25px; }
  .header-more { display: none; }
  .platform-tools { display: none; }
  .toplinks { font-size: 12px; gap: 12px; } .account { max-width: 115px; } .account span { max-width: 76px; } .avatar { width: 27px; height: 27px; }
  .poster-rail { gap: 14px; margin-right: -22px; padding-right: 22px; } .poster-card { width: 155px; } .poster-title { font-size: 11px; margin-top: 10px; }
  .poster-author, .poster-type { font-size: 8px; } .poster-art { border-radius: 2px; }
  .main { padding: 28px 20px 100px; } .main.inner-page { min-height: calc(100dvh - 68px); }
  .footer { flex-wrap: wrap; font-size: 11px; } .footer a { margin-left: 0; margin-right: 14px; }
  .mobile-nav { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 35; justify-content: space-around; padding: 7px 6px max(9px, env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line); }
  .mobile-nav button { min-width: 52px; min-height: 46px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; color: var(--muted); font-size: 8px; }
  .mobile-nav button.active { color: var(--brand); } .mobile-nav svg { width: 18px; height: 18px; }
  .view-head { align-items: flex-start; } .view-head h1 { font-size: 25px; } .view-head p { font-size: 11px; }
  .panel { padding: 20px; } .room-layout { gap: 16px; } .room-toolbar { flex-wrap: wrap; } .room-actions .btn { flex: 1; }
  .game-grid { gap: 18px 13px; } .game-card h3 { font-size: 12px; } .empty-icon { display: none; }
  .modal { padding: 30px 24px; } .modal h2 { font-size: 23px; } .modal-backdrop { padding: 15px; }
  .sample-reader h1 { font-size: 30px; } .story-text { font-size: 16px; } .choice { font-size: 12px; padding: 14px; }
  .notice { bottom: 88px; font-size: 11px; } .side-drawer { padding: 23px; }
  .side-drawer.story-drawer { padding-top: 65px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .poster-art, .poster-art > img { transform: none !important; will-change: auto; }
}
/* One platform shell and one complete game object, without promotional filler. */
.discovery-main { min-height: calc(100dvh - 84px); display: flex; flex-direction: column; }
.discovery-main > .footer { margin-top: auto; }
.discovery-page { padding-bottom: 70px; }
.discovery-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.discovery-heading h1 { color: var(--ink); font-size: 28px; line-height: 1.4; font-weight: 550; letter-spacing: -.8px; }
.discovery-intro { min-width: 0; }
.discovery-description { margin-top: 8px; color: var(--body); font-size: 15px; line-height: 1.7; }
.discovery-tools { display: flex; flex: 0 0 auto; align-items: center; gap: 24px; }
.creator-entry { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0; color: var(--ink); font-size: 14px; }
.creator-entry > svg { color: var(--brand); }
.creator-paths { margin-top: 26px; }
.creator-path { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.creator-path > span { display: grid; gap: 8px; }
.creator-path strong { color: var(--ink); font-size: 14px; font-weight: 550; line-height: 1.7; }
.creator-path > span > span { color: var(--body); font-size: 12px; line-height: 1.8; }
.creator-path > svg { color: var(--muted); }
.creator-path:hover strong { color: #fff; }
.modal > .creator-availability { margin-top: 21px; font-size: 11px; line-height: 1.8; }
.discovery-join { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0; font-size: 14px; color: var(--body); }
.discovery-join > svg:first-child { color: var(--muted); }
/* The artwork is the stage. Session facts sit outside it, with one clear next step. */
.spotlight-game { min-width: 0; }
.spotlight-scene { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: clamp(390px,31vw,480px); overflow: hidden; border-radius: 10px; background: #101012; }
.spotlight-scene::after { content: ''; position: absolute; z-index: -1; inset: 0; pointer-events: none; background: linear-gradient(90deg,rgb(8 9 12 / .94),rgb(8 9 12 / .72) 30%,rgb(8 9 12 / .14) 68%,transparent),linear-gradient(0deg,rgb(8 9 12 / .5),transparent 65%); }
.spotlight-media { position: absolute; z-index: -2; inset: 0; display: block; width: 100%; height: 100%; padding: 0; }
.spotlight-media > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 70% 53%; transition: transform .6s cubic-bezier(.16,1,.3,1); }
.spotlight-media:hover > img { transform: scale(1.015); }
.spotlight-media:focus-visible { outline-offset: -5px; }
.spotlight-info { min-width: 0; max-width: 660px; padding: clamp(30px,3.3vw,48px); pointer-events: none; }
.spotlight-info h2 { color: #fbf7f0; font-size: clamp(44px,4.2vw,64px); font-weight: 500; line-height: 1.06; letter-spacing: -.03em; text-wrap: balance; overflow-wrap: anywhere; }
.spotlight-info h2:lang(zh) { font-size: clamp(40px,4vw,60px); letter-spacing: -.02em; line-height: 1.25; }
.spotlight-hook { margin-top: 20px; max-width: 32ch; color: #e7e1d8; font-size: 20px; line-height: 1.55; text-wrap: balance; }
.spotlight-info .creator-byline { margin-top: 24px; font-size: 14px; color: #e7e1d8; }
.spotlight-info .creator-label { font-size: 13px; color: #c9c4bc; }
.spotlight-info .creator-link { pointer-events: auto; color: #f4eee6; min-height: 36px; }
.spotlight-switcher { position: absolute; right: 24px; bottom: 26px; display: flex; align-items: center; gap: 6px; color: #f4eee6; }
.spotlight-switcher > span { margin-right: 12px; font-size: 13px; font-variant-numeric: tabular-nums; }
.spotlight-switcher > button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; background: rgb(8 9 12 / .7); }
.spotlight-switcher > button:hover { background: #303036; }
.spotlight-session { display: flex; align-items: center; justify-content: space-between; gap: 36px; padding-top: 24px; }
.spotlight-facts { display: flex; flex-wrap: wrap; gap: 20px 38px; margin: 0; min-width: 0; }
.spotlight-facts div { display: grid; gap: 8px; }
.spotlight-facts dt { color: var(--muted); font-size: 12px; line-height: 1.6; }
.spotlight-facts dd { color: var(--ink); margin: 0; font-size: 14px; line-height: 1.7; }
.spotlight-entry { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 14px 24px; }
.spotlight-price { display: grid; gap: 6px; }
.spotlight-price strong { color: #f1ece6; font-size: 24px; font-weight: 450; line-height: 1.2; letter-spacing: -.02em; }
.spotlight-price > span { color: var(--muted); font-size: 12px; line-height: 1.6; }
.spotlight-entry .btn.primary { min-height: 50px; padding-inline: 24px; border: 0; border-radius: 5px; background: var(--brand); color: #20140e; font-size: 14px; font-weight: 550; }
.spotlight-entry .btn.primary:hover { background: #f39564; }
.spotlight-note { color: var(--muted); font-size: 12px; line-height: 1.8; }
.effects-paused .spotlight-media > img { transform: none; transition: none; }
.story-collection { margin-top: 58px; }
.collection-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 24px; }
.collection-heading > h2 { color: var(--ink); font-size: 21px; font-weight: 500; line-height: 1.5; letter-spacing: -.5px; }
.collection-heading > span { font-size: 12px; color: var(--muted); }
.collection-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 36px 26px; }
.collection-card { display: block; min-width: 0; width: 100%; padding: 0; text-align: left; }
.collection-card-art { display: block; aspect-ratio: 8/5; overflow: hidden; border-radius: 7px; background: var(--surface); }
.collection-card-art > img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.collection-card[data-select-feature="last-light-original-demo"] .collection-card-art > img { object-position: 75% center; }
.collection-card:hover .collection-card-art > img { transform: scale(1.025); }
.collection-card-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin-top: 15px; }
.collection-card-title { min-width: 0; color: var(--ink); font-size: 18px; font-weight: 500; line-height: 1.5; letter-spacing: -.4px; overflow-wrap: anywhere; }
.collection-card.is-featured .collection-card-title { color: #f4c7aa; }
.collection-card-genre { display: block; margin-top: 7px; color: var(--body); font-size: 13px; line-height: 1.7; }
.collection-card-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 13px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.collection-card-playable { color: #f4c7aa; }
.effects-paused .collection-card-art > img { transform: none; transition: none; }
.more-links { margin-top: 24px; display: grid; }
.more-links > :is(a, button) { display: flex; align-items: center; gap: 12px; padding: 16px 0; min-height: 52px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--body); }
.more-links > :is(a, button) > svg:last-child { margin-left: auto; }
.more-preference { display: flex; align-items: center; justify-content: space-between; gap: 18px; font-size: 12px; }
.more-preference button { min-height: 44px; color: var(--ink); font-size: 12px; }
@media (max-width:1100px) {
  .spotlight-session { gap: 24px; align-items: flex-start; }
  .spotlight-facts { gap: 18px 26px; }
  .spotlight-entry { flex-shrink: 0; max-width: 220px; }
  .spotlight-entry .btn.primary { width: 100%; }
  .spotlight-price { width: 100%; }
}
@media (max-width:850px) {
  .collection-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 30px 20px; }
  .discovery-heading { align-items: flex-start; gap: 18px; }
  .discovery-tools { flex-direction: column; align-items: flex-end; gap: 0; }
  .spotlight-info { max-width: 580px; padding-right: 80px; }
  .spotlight-scene::after { background: linear-gradient(90deg,rgb(8 9 12 / .9),rgb(8 9 12 / .6) 50%,rgb(8 9 12 / .08)),linear-gradient(0deg,rgb(8 9 12 / .6),transparent); }
  .spotlight-facts { gap: 18px 24px; }
}
@media (max-width:600px) {
  .discovery-main { min-height: calc(100dvh - 68px); }
  .discovery-page { padding-bottom: 44px; }
  .discovery-heading { margin-bottom: 22px; flex-wrap: wrap; gap: 10px; }
  .discovery-heading h1 { font-size: 26px; letter-spacing: -.02em; }
  .discovery-description { font-size: 14px; }
  .discovery-tools { flex-direction: row; align-items: center; justify-content: space-between; gap: 22px; width: 100%; }
  .creator-entry,.discovery-join { font-size: 13px; }
  .spotlight-scene { min-height: 450px; border-radius: 8px; }
  .spotlight-media > img { object-position: 60% center; }
  .spotlight-scene::after { background: linear-gradient(0deg,rgb(8 9 12 / .98),rgb(8 9 12 / .7) 38%,rgb(8 9 12 / .02) 80%); }
  .spotlight-info { max-width: none; padding: 28px 24px; }
  .spotlight-info h2,.spotlight-info h2:lang(zh) { font-size: clamp(34px,8vw,44px); letter-spacing: -.02em; }
  .spotlight-hook { margin-top: 16px; font-size: 17px; max-width: none; }
  .spotlight-info .creator-byline { margin-top: 18px; }
  .spotlight-switcher { top: 14px; right: 14px; bottom: auto; }
  .spotlight-switcher > span { padding: 6px; background: rgb(8 9 12 / .7); border-radius: 4px; margin-right: 2px; }
  .spotlight-session { flex-direction: column; align-items: stretch; gap: 24px; padding-top: 22px; }
  .spotlight-facts { gap: 20px 28px; }
  .spotlight-facts > div:last-child { display: none; }
  .spotlight-facts dd { font-size: 13px; }
  .spotlight-entry { max-width: none; width: 100%; justify-content: space-between; flex-wrap: nowrap; gap: 15px; }
  .spotlight-price { width: auto; flex-shrink: 0; }
  .spotlight-price strong { font-size: 23px; }
  .spotlight-price > span { font-size: 11px; }
  .spotlight-entry .btn.primary { width: auto; flex: 1; padding-inline: 12px; font-size: 13px; gap: 8px; }
  .spotlight-entry .btn.primary > svg { width: 15px; }
  .spotlight-note { flex-basis: 100%; }
  .spotlight-entry:has(.spotlight-note) { flex-wrap: wrap; }
  .story-collection { margin-top: 44px; }
  .collection-heading { margin-bottom: 18px; }
  .collection-heading > h2 { font-size: 22px; }
  .collection-grid { gap: 26px 14px; }
  .collection-card-art { aspect-ratio: 4/5; border-radius: 5px; }
  .collection-card-heading { margin-top: 11px; gap: 7px; }
  .collection-card-title { font-size: 16px; letter-spacing: -.3px; }
  .collection-card-genre { font-size: 12px; margin-top: 5px; }
  .collection-card-meta { flex-wrap: wrap; gap: 3px 7px; margin-top: 9px; font-size: 11px; }
}
@media (max-width:360px) {
  .wordmark { font-size: 19px; gap: 7px; }
  .wordmark > span { gap: 5px; }
  .toplinks { gap: 8px; }
}
@media (prefers-reduced-motion:reduce) {
  .spotlight-media > img,.collection-card-art > img { transition: none; transform: none; }
}

.web-room-players{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;margin:24px 0}.web-room-players article{display:flex;flex-direction:column;gap:8px;padding:18px;border:1px solid #514638;border-radius:12px}.web-room-players small{opacity:.7}.web-room-roles{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0}.web-room-phase{font-size:1.4rem;font-weight:600}.web-room-list{display:grid;gap:12px;margin:16px 0}.web-room-list button{justify-content:space-between}.web-game-stage{position:fixed;inset:76px 20px 20px 90px;z-index:30;background:#15120f;border:1px solid #514638;border-radius:14px;display:flex;flex-direction:column;overflow:hidden}.web-game-stage header{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:10px 16px;background:#211b16;color:#eee6d9}.web-game-stage header strong{margin-right:auto}.web-game-stage iframe{width:100%;flex:1;min-height:0;border:0;background:#15120f}@media(max-width:700px){.web-game-stage{inset:60px 0 64px;border-radius:0}.web-game-stage header{gap:6px;padding:8px}.web-game-stage header strong{font-size:.9rem}.web-game-stage header [role=status]{display:none}}

.web-room>h1{margin:8px 0;line-height:1.2}.web-room>p{margin:14px 0;color:var(--body);font-size:14px;line-height:1.6}.web-room>.web-room-phase{font-size:1.3rem;font-weight:600;color:var(--ink)}.web-game-stage header strong{min-width:0;max-width:45%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media(max-width:600px){.web-room .detail-actions{flex-wrap:wrap}.web-room [data-web-action=ready]{flex-basis:100%;min-height:48px}}

.web-room>.eyebrow{height:auto;min-height:18px;line-height:1.6;overflow:visible;white-space:normal}

/* The game room: the work sets the scene; the cast and admission remain distinct. */
.web-lobby { --lobby-ink: #f4eee5; --lobby-muted: #aa9f94; color: var(--lobby-ink); min-width: 0; }
.lobby-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: -16px 0 18px; }
.lobby-text-action { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0; color: var(--lobby-muted); font-size: 12px; line-height: 1.5; text-align: left; }
.lobby-text-action svg, .lobby-invite svg, .lobby-ready svg { width: 17px; height: 17px; flex-shrink: 0; }
.lobby-invite { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 18px; min-height: 44px; border-radius: 6px; background: #28211c; color: #f1cfb8; font-size: 12px; font-weight: 550; }
.lobby-invite:hover:not(:disabled) { background: #36281f; color: #ffe1c9; }
.lobby-scene { position: relative; isolation: isolate; min-height: 224px; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 38px 40px; background: #1a1715; border-radius: 8px; }
.lobby-scene-art { position: absolute; z-index: -2; inset: 0 0 0 auto; width: 78%; height: 100%; object-fit: cover; object-position: 50% 57%; }
.lobby-scene-shade { position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg,#191614 0%,rgb(25 22 20 / .95) 22%,rgb(25 22 20 / .45) 62%,rgb(25 22 20 / .15) 100%),linear-gradient(0deg,rgb(12 10 9 / .25),transparent); }
.lobby-scene-copy { min-width: 0; max-width: 80%; }
.lobby-overline { font: 10px/1.6 ui-monospace,SFMono-Regular,monospace; letter-spacing: 1.6px; color: var(--lobby-muted); }
.lobby-overline > span { margin: 0 10px; opacity: .5; }
.lobby-scene h1 { font-size: clamp(28px,3.2vw,46px); font-weight: 550; line-height: 1.12; letter-spacing: -1.6px; margin: 17px 0 20px; overflow-wrap: anywhere; text-wrap: balance; }
.lobby-room-name { margin: -8px 0 16px; color: #c8bcb0; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.lobby-scene-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: 12px; color: #c9b9aa; }
.lobby-scene-meta > i { width: 3px; height: 3px; background: currentColor; border-radius: 50%; opacity: .6; }
.lobby-attendance { display: grid; gap: 8px; align-self: flex-end; text-align: right; flex-shrink: 0; padding-bottom: 4px; color: #f7eee2; }
.lobby-attendance > strong { font-size: 34px; font-weight: 450; letter-spacing: -1px; line-height: 1; }
.lobby-attendance > strong > span { font-size: 17px; color: #d5c5b5; }
.lobby-attendance > span { font-size: 10px; letter-spacing: .4px; }
.lobby-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: clamp(30px,4vw,64px); margin-top: 38px; align-items: start; }
.lobby-cast, .lobby-admission { min-width: 0; }
.lobby-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.lobby-section-head h2, .lobby-admission h2 { font-size: 24px; font-weight: 500; line-height: 1.25; letter-spacing: -.65px; margin-top: 10px; }
.lobby-section-head > span { max-width: 40%; color: var(--lobby-muted); font-size: 11px; line-height: 1.6; text-align: right; }
.lobby-role-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.web-lobby .lobby-role { display: flex; flex-direction: column; align-items: stretch; justify-content: space-between; min-width: 0; min-height: 164px; padding: 17px 18px; border: 0; border-radius: 7px; background: #1b1b1f; color: var(--lobby-ink); text-align: left; transition: background .2s; opacity: 1; }
.web-lobby .lobby-role:hover:not(:disabled) { background: #25252b; color: var(--lobby-ink); }
.web-lobby .lobby-role.is-mine { background: #25252b; }
.web-lobby .lobby-role.is-mine:hover:not(:disabled) { background: #2c2c33; }
.lobby-role:disabled { cursor: default; }
.lobby-role-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font: 9px/1.5 ui-monospace,SFMono-Regular,monospace; letter-spacing: .8px; color: #96969f; }
.lobby-role-selected { display: inline-flex; align-items: center; gap: 5px; color: #f29a68; font-size: 10px; line-height: 1.5; letter-spacing: 0; }
.lobby-role-selected svg { width: 12px; height: 12px; }
.lobby-role-available { font-family: inherit; letter-spacing: 0; color: #a1a1aa; }
.lobby-role-name { display: block; margin: 24px 0 23px; font-size: clamp(18px,1.8vw,25px); line-height: 1.2; font-weight: 450; letter-spacing: -.5px; overflow-wrap: anywhere; }
.lobby-role.is-mine .lobby-role-name { color: #f0f0f2; }
.lobby-role-player { display: flex; align-items: center; gap: 8px; min-height: 30px; }
.lobby-player-avatar { display: grid; place-items: center; width: 28px; height: 28px; flex-shrink: 0; background: #35353d; border-radius: 50%; color: #efeff2; font-size: 11px; }
.lobby-role-player > span:last-child:not(.lobby-open-seat) { min-width: 0; }
.lobby-role-player b { display: block; font-size: 11px; font-weight: 500; line-height: 1.4; overflow-wrap: anywhere; }
.lobby-role-player small { display: block; font-size: 9px; color: #a1a1aa; line-height: 1.6; }
.lobby-role-player small.is-ready { color: #f29a68; }
.lobby-open-seat { display: flex; align-items: center; gap: 8px; justify-content: space-between; width: 100%; font-size: 10px; color: #a1a1aa; }
.lobby-open-seat svg { width: 14px; height: 14px; opacity: .6; }
.lobby-unassigned { margin-top: 18px; color: var(--lobby-muted); font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.lobby-admission { padding: 0 0 0 28px; border-left: 1px solid rgb(230 201 176 / .09); }
.lobby-admission .lobby-phase { margin-top: 10px; font-size: 24px; max-width: 100%; overflow-wrap: anywhere; }
.lobby-progress { margin-top: 24px; }
.lobby-progress > div:first-child { display: flex; justify-content: space-between; align-items: baseline; font-size: 11px; color: var(--lobby-muted); }
.lobby-progress strong { color: var(--lobby-ink); font-size: 16px; font-weight: 450; }
.lobby-progress strong > span { color: var(--lobby-muted); font-size: 12px; }
.lobby-progress-track { height: 3px; background: #2e251f; margin-top: 10px; overflow: hidden; border-radius: 4px; }
.lobby-progress-track > span { display: block; height: 100%; background: var(--brand); }
.lobby-progress > p { color: var(--lobby-muted); font-size: 11px; line-height: 1.7; margin-top: 10px; }
.lobby-your-ticket { padding-top: 24px; margin-top: 23px; border-top: 1px solid rgb(230 201 176 / .09); }
.lobby-your-ticket > div { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.lobby-your-ticket > div > span { font-size: 12px; color: #c7b6a7; }
.lobby-your-ticket strong { font-size: 25px; font-weight: 450; letter-spacing: -.7px; white-space: nowrap; }
.lobby-your-ticket strong small { color: var(--lobby-muted); font-size: 10px; font-weight: 400; letter-spacing: 0; margin-left: 4px; }
.lobby-your-ticket > p { margin-top: 9px; font-size: 11px; color: var(--lobby-muted); line-height: 1.7; }
.lobby-ticket-role { display: block; margin-top: 16px; color: var(--lobby-muted); font-size: 11px; line-height: 1.6; }
.lobby-ticket-role b { color: #e3c5ad; font-weight: 500; margin-left: 6px; }
.web-lobby .lobby-ready { display: flex; width: 100%; min-height: 48px; align-items: center; justify-content: space-between; padding: 12px 17px; margin-top: 22px; border: 0; border-radius: 6px; background: #ed8248; color: #21130c; font-size: 12px; line-height: 1.5; font-weight: 600; }
.web-lobby .lobby-ready:hover:not(:disabled) { background: #f39360; color: #21130c; }
.lobby-auto-ready { margin-top: 10px; font-size: 10px; }
.lobby-start-note { font-size: 10px; line-height: 1.8; color: var(--lobby-muted); margin-top: 12px; }
.lobby-refund-note { font-size: 10px; line-height: 1.8; color: #86796e; margin-top: 22px; }
.lobby-room-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 34px; padding-top: 14px; border-top: 1px solid rgb(230 201 176 / .09); }
.lobby-room-footer > span { color: #887e74; font-size: 10px; line-height: 1.8; }
.lobby-room-footer > div { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }
.lobby-room-footer .lobby-text-action { font-size: 10px; }
.lobby-room-footer .lobby-close { color: #a88778; }
.lobby-error { margin: 22px 0 0; padding: 14px 18px; border-radius: 6px; background: #30211b; color: #f8c3a2; font-size: 12px; line-height: 1.7; }
@media (max-width:1000px) {
  .lobby-layout { grid-template-columns: minmax(0,1fr) 255px; gap: 28px; }
  .lobby-admission { padding-left: 22px; }
  .web-lobby .lobby-role { padding: 15px; min-height: 156px; }
  .lobby-role-top { font-size: 8px; }
  .lobby-role-selected { font-size: 9px; }
}
@media (max-width:800px) {
  .lobby-layout { grid-template-columns: 1fr; gap: 30px; margin-top: 28px; }
  .lobby-admission { padding: 26px 0 0; border-left: 0; border-top: 1px solid rgb(230 201 176 / .09); }
  .lobby-progress { margin-top: 20px; }
  .lobby-scene { padding: 30px; min-height: 210px; }
  .lobby-scene-copy { max-width: 78%; }
  .lobby-scene h1 { font-size: 36px; }
  .lobby-refund-note { max-width: 440px; }
}
@media (max-width:600px) {
  .lobby-toolbar { margin-top: -8px; margin-bottom: 14px; }
  .lobby-text-action { font-size: 11px; }
  .lobby-invite { font-size: 11px; padding: 0 13px; }
  .lobby-scene { padding: 25px 22px; min-height: 210px; align-items: flex-start; gap: 15px; }
  .lobby-scene-art { width: 100%; object-position: 65% center; opacity: .75; }
  .lobby-scene-shade { background: linear-gradient(90deg,rgb(25 22 20 / .94),rgb(25 22 20 / .35)),linear-gradient(0deg,rgb(25 22 20 / .55),transparent); }
  .lobby-scene-copy { max-width: 82%; }
  .lobby-scene h1 { font-size: 30px; letter-spacing: -.9px; margin: 18px 0; }
  .lobby-overline { font-size: 8px; letter-spacing: 1px; }
  .lobby-overline > span { margin: 0 7px; }
  .lobby-attendance { position: absolute; right: 22px; bottom: 24px; gap: 5px; }
  .lobby-attendance > strong { font-size: 26px; }
  .lobby-attendance > strong > span { font-size: 13px; }
  .lobby-attendance > span { font-size: 8px; }
  .lobby-scene-meta { gap: 9px; font-size: 10px; max-width: 72%; }
  .lobby-section-head { margin-bottom: 16px; }
  .lobby-section-head h2, .lobby-admission .lobby-phase { font-size: 22px; }
  .lobby-section-head > span { font-size: 10px; }
  .lobby-role-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .web-lobby .lobby-role { min-height: 150px; padding: 15px; }
  .lobby-role-name { font-size: 23px; margin: 23px 0 20px; }
  .lobby-role-top { font-size: 9px; }
  .lobby-room-footer { align-items: flex-start; flex-direction: column; gap: 5px; margin-top: 28px; }
  .lobby-room-footer > div { width: 100%; gap: 24px; }
}
@media (prefers-reduced-motion:reduce) { .web-lobby .lobby-role { transition: none; } }

/* A session invitation: one scene, a group entry, then the play experience. */
.main:has(.work-experience) { max-width: 1432px; padding-top: 26px; }
.game-detail { min-width: 0; }
.work-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.work-text-button { display: inline-flex; align-items: center; gap: 9px; min-height: 40px; padding: 0; color: #a5a5ae; font-size: 13px; line-height: 1.6; text-align: left; }
.work-text-button svg,.work-play svg,.work-join svg,.work-room-row svg { width: 17px; height: 17px; flex-shrink: 0; }
.work-intro-layout { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.55fr); gap: 54px; align-items: center; }
.work-intro-no-media { grid-template-columns: minmax(0,1fr); max-width: 680px; }
.work-scene { min-width: 0; }
.work-scene-copy { padding: 0; }
.work-genres { margin-top: 10px; color: #a7a2a0; font-size: 12px; line-height: 1.7; }
.work-scene h1 { font-size: clamp(34px,3.6vw,50px); font-weight: 500; letter-spacing: -1.5px; line-height: 1.08; text-wrap: balance; overflow-wrap: anywhere; color: #f5f1e9; }
.work-hook { margin-top: 22px; font-size: 18px; line-height: 1.5; color: #eee7de; font-weight: 450; text-wrap: balance; }
.work-intro { margin-top: 12px; font-size: 15px; line-height: 1.8; color: #c1bbb3; max-width: 490px; }
.work-byline { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-top: 18px; font-size: 13px; line-height: 1.7; color: #9e9a95; }
.work-author-link { min-height: 30px; padding: 0; color: #e6ddd3; text-align: left; line-height: 1.6; }
.work-gather { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(330px,1fr); gap: 50px; align-items: center; padding: 22px 0 35px; }
.work-session-facts { display: flex; flex-wrap: wrap; gap: 26px 34px; margin: 0; min-width: 0; }
.work-session-facts > div { flex: 1; min-width: 100px; }
.work-session-facts dt { font-size: 12px; line-height: 1.7; color: #9999a2; margin-bottom: 9px; }
.work-session-facts dd { margin: 0; color: #dedee3; font-size: 14px; line-height: 1.8; }
.work-session-facts small { display: block; font-size: 12px; color: #9999a2; line-height: 1.8; margin-top: 2px; }
.work-session-entry { min-width: 0; }
.work-session-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 9px; margin-bottom: 13px; }
.work-session-price strong { font-size: 22px; letter-spacing: -.6px; font-weight: 450; color: #e9e6e2; }
.work-session-price > span { color: #9999a2; font-size: 12px; line-height: 1.7; }
.work-entry-actions { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); gap: 12px; }
.game-detail .work-play,.work-join { display: flex; align-items: center; justify-content: center; gap: 16px; min-height: 48px; min-width: 0; padding: 12px 18px; border: 0; border-radius: 4px; font-size: 13px; line-height: 1.5; font-weight: 500; }
.game-detail .work-play { background: #ef8248; color: #20140e; }
.game-detail .work-play:hover:not(:disabled) { background: #f39564; color: #20140e; }
.work-join { color: #d7d5d2; background: #202024; }
.work-join:hover { background: #2a2a30; }
.work-entry-note { margin-top: 11px; color: #9999a2; font-size: 12px; line-height: 1.8; }
.work-about { scroll-margin-top: 115px; margin-top: 35px; }
.work-story-intro { min-width: 0; max-width: 740px; }
.work-story-intro h2 { max-width: 480px; font-size: clamp(26px,2.7vw,36px); line-height: 1.25; font-weight: 450; letter-spacing: -.8px; text-wrap: balance; }
.work-story-description { margin-top: 18px; min-width: 0; color: #b3b3be; font-size: 15px; line-height: 1.9; overflow-wrap: anywhere; }
.work-story-description p + p { margin-top: 14px; }
.work-about-illustrated { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,.95fr); gap: 60px; align-items: center; }
.work-setting { margin: 0; min-width: 0; }
.work-setting img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 3px; }
.work-setting figcaption { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; font-size: 12px; color: #b8afa5; line-height: 1.7; }
.work-setting figcaption > span { color: #9999a2; }
.work-beats { display: grid; gap: 20px; margin-top: 28px; }
.work-beats h3 { font-size: 17px; line-height: 1.5; font-weight: 500; color: #e5e2df; }
.work-beats p { margin-top: 5px; color: #a7a7b1; font-size: 14px; line-height: 1.8; }
.work-gallery { min-width: 0; }
.work-gallery-screen { display: block; width: 100%; padding: 0; aspect-ratio: 16/9; position: relative; background: #0b0b0e; overflow: hidden; border-radius: 4px; }
.work-gallery-playtest .work-gallery-screen { aspect-ratio: 1728 / 843; }
.work-gallery-screen > img { display: block; width: 100%; height: 100%; object-fit: contain; }
.work-gallery-expand { position: absolute; right: 11px; bottom: 10px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 3px; background: rgb(10 10 13 / .65); font-size: 21px; color: #dedee2; }
.work-gallery-expand svg { width: 18px; height: 18px; }
.work-gallery-screen:hover .work-gallery-expand { background: #26262c; color: #fff; }
.work-gallery-info { display: flex; justify-content: space-between; gap: 15px; padding: 12px 0; color: #9999a2; font-size: 12px; line-height: 1.6; }
.work-gallery-info > span:last-child { flex-shrink: 0; font-variant-numeric: tabular-nums; }
.work-gallery-thumbs { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.work-gallery-thumbs button { display: flex; flex-direction: column; align-items: stretch; position: relative; padding: 0; flex: 0 0 144px; min-width: 0; min-height: 0; text-align: left; }
.work-gallery-thumbs img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 3px; opacity: .65; }
.work-gallery-thumbs span { display: block; font-size: 12px; line-height: 1.6; margin-top: 7px; color: #b2b2bd; }
.work-gallery-thumbs button:hover:not(:disabled) img,.work-gallery-thumbs button[aria-pressed=true] img { opacity: 1; }
.work-gallery-thumbs button[aria-pressed=true] span { color: #efab84; }
.work-gallery-thumbs button[aria-pressed=true]::after { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); position: absolute; right: 7px; top: 7px; }
.work-practical { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 50px; margin-top: 46px; }
.work-preparation,.work-warnings { min-width: 0; border-top: 1px solid var(--line); }
.work-practical summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 87px; padding: 18px 0; cursor: pointer; list-style: none; color: #dfdcd8; font-size: 14px; font-weight: 450; line-height: 1.7; }
.work-practical summary::-webkit-details-marker { display: none; }
.work-practical summary:hover { color: #fff6eb; }
.work-practical summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 5px; }
.work-practical summary > span:first-child { min-width: 0; }
.work-practical summary small { display: block; margin-top: 4px; color: #9999a2; font-size: 12px; font-weight: 400; line-height: 1.8; overflow-wrap: anywhere; }
.work-disclosure-mark { width: 16px; flex-shrink: 0; color: #a6a19b; text-align: center; font-size: 20px; font-weight: 300; }
.work-disclosure-mark::before { content: '+'; }
.work-practical details[open] .work-disclosure-mark::before { content: '−'; }
.work-preparation-details { padding: 0 28px 22px 0; min-width: 0; }
.work-preparation ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: #b5b5bd; font-size: 14px; line-height: 1.9; }
.work-preparation li { position: relative; padding-left: 13px; }
.work-preparation li::before { content: '·'; position: absolute; left: 0; color: #d18a62; }
.work-character-note,.work-ticket-note { margin-top: 17px; font-size: 13px; line-height: 1.9; color: #aaaab5; }
.work-ticket-note { margin-top: 8px; color: #8d8d99; }
.work-warnings > p { padding: 0 28px 22px 0; color: #aaaab5; font-size: 14px; line-height: 1.9; }
.work-rooms { scroll-margin-top: 110px; margin-top: 38px; padding-top: 28px; }
.work-rooms-heading { display: grid; grid-template-columns: minmax(0,1fr) minmax(280px,.55fr); align-items: center; gap: 65px; }
.work-rooms h2 { max-width: 600px; font-size: clamp(28px,3vw,38px); font-weight: 450; letter-spacing: -.8px; line-height: 1.35; text-wrap: balance; }
.work-rooms-heading > div > p:last-child { margin-top: 15px; color: #a2a2ac; font-size: 13px; line-height: 1.8; }
.work-finale-entry { min-width: 0; }
.work-finale-entry .work-play { width: 100%; }
.work-rooms-heading .work-finale-entry > .work-entry-note { margin-top: 9px; font-size: 12px; color: #9999a2; }
.work-room-browser { margin-top: 35px; padding-top: 22px; border-top: 1px solid var(--line); }
.work-room-browser-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.work-room-browser h3 { color: #c8c5c2; font-size: 14px; font-weight: 450; line-height: 1.7; }
.work-room-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 24px; }
.work-room-tools .work-text-button { font-size: 13px; }
.work-room-empty { padding: 18px 0 10px; color: #9999a2; font-size: 14px; line-height: 1.9; }
.work-room-empty .work-text-button { color: #e1b093; margin-top: 8px; }
.work-room-list { display: grid; gap: 8px; }
.work-room-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; padding: 20px 23px; min-height: 85px; text-align: left; border-radius: 4px; background: #1c1c21; }
.work-room-row:hover { background: #25252c; }
.work-room-row > span:first-child { min-width: 0; }
.work-room-row strong { font-size: 14px; font-weight: 450; line-height: 1.6; overflow-wrap: anywhere; }
.work-room-row small { display: block; margin-top: 6px; color: #a7a7b1; font-size: 12px; line-height: 1.6; }
.work-room-row > span:last-child { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; color: #d1b19d; font-size: 13px; }
.work-expanded-media { margin: 20px 0 0; }
.work-expanded-media img { width: 100%; display: block; max-height: 70vh; object-fit: contain; background: #0b0b0e; }
.work-expanded-media figcaption { margin-top: 10px; color: var(--muted); font-size: 11px; line-height: 1.7; }
@media(max-width:1000px) {
  .work-gather { gap: 30px; grid-template-columns: minmax(0,1fr) minmax(290px,1fr); }
  .work-session-facts { gap: 20px; }.work-session-facts > div { min-width: 90px; }
  .work-intro-layout { grid-template-columns: minmax(0,1fr) minmax(0,1.4fr); gap: 30px; }.work-scene h1 { font-size: 40px; }
  .work-about-illustrated { gap: 34px; }.work-beats { gap: 16px; }.work-practical { gap: 32px; }.work-rooms-heading { gap: 38px; }
}
@media(max-width:700px) {
  .main:has(.work-experience) { padding-top: 16px; }
  .work-toolbar { margin-bottom: 12px; }.work-toolbar .work-text-button { font-size: 12px; }
  .work-intro-layout { grid-template-columns: minmax(0,1fr); gap: 27px; }
  .work-scene-copy { padding: 0; }.work-scene h1 { font-size: clamp(34px,8.8vw,48px); letter-spacing: -1.1px; }
  .work-hook { font-size: 17px; margin-top: 20px; }.work-intro { font-size: 14px; line-height: 1.8; }.work-byline { margin-top: 17px; }
  .work-gather { grid-template-columns: minmax(0,1fr); gap: 25px; padding: 27px 0 20px; }
  .work-session-facts { gap: 18px; }.work-session-facts > div { min-width: 74px; }.work-session-facts dd { font-size: 13px; }.work-session-facts dt,.work-session-facts small { font-size: 12px; }
  .work-entry-actions { gap: 9px; }.game-detail .work-play,.work-join { font-size: 12px; gap: 10px; padding: 12px; }
  .work-entry-note { font-size: 12px; }.work-session-price strong { font-size: 23px; }
  .work-about { margin-top: 35px; }.work-about-illustrated { grid-template-columns: minmax(0,1fr); gap: 27px; }.work-story-intro h2 { font-size: 28px; }.work-story-description { font-size: 14px; }.work-setting img { aspect-ratio: 16/11; }
  .work-beats { gap: 20px; margin-top: 26px; }.work-beats h3 { font-size: 16px; }.work-beats p { font-size: 14px; }
  .work-gallery-thumbs button { flex-basis: 104px; }
  .work-practical { grid-template-columns: minmax(0,1fr); gap: 0; margin-top: 32px; }.work-practical summary { min-height: 80px; font-size: 14px; }.work-preparation-details,.work-warnings > p { padding-right: 0; }
  .work-rooms { margin-top: 28px; padding-top: 15px; }.work-rooms-heading { grid-template-columns: minmax(0,1fr); gap: 24px; }.work-rooms h2 { font-size: 29px; }.work-rooms-heading > div > p:last-child { font-size: 14px; margin-top: 12px; }
  .work-room-browser { margin-top: 27px; padding-top: 20px; }.work-room-browser-heading { align-items: flex-start; flex-direction: column; gap: 5px; }.work-room-tools { gap: 9px 22px; }.work-room-row { padding: 19px 15px; gap: 15px; }
  .work-room-row > span:last-child { font-size: 12px; }.work-room-row small { font-size: 12px; }
}

/* Public portraits introduce the cast; actual role selection remains inside the room. */
.work-cast { margin-top: 62px; }
.work-cast-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 25px; }
.work-cast h2 { font-size: 29px; line-height: 1.4; font-weight: 450; letter-spacing: -.6px; text-wrap: balance; }
.work-cast-heading > p { font-size: 11px; line-height: 1.8; color: #9999a6; }
.work-cast-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 16px; margin-top: 26px; }
.work-character { min-width: 0; }
.work-cast-portrait { width: 100%; aspect-ratio: 1; border-radius: 3px; background-image: url('/assets/games/prypiat/cast.png'); background-size: 300% 200%; background-position: 0% 0%; }
/* Fixed sprite positions work under Play’s self-only style policy. */
.work-character:nth-child(2) .work-cast-portrait { background-position: 50% 0%; }
.work-character:nth-child(3) .work-cast-portrait { background-position: 100% 0%; }
.work-character:nth-child(4) .work-cast-portrait { background-position: 0% 100%; }
.work-character:nth-child(5) .work-cast-portrait { background-position: 50% 100%; }
.work-character:nth-child(6) .work-cast-portrait { background-position: 100% 100%; }
.work-character-copy { padding-top: 15px; }
.work-cast-grid h3 { font-size: 17px; font-weight: 450; line-height: 1.5; color: #e4dfd9; overflow-wrap: anywhere; }
.work-character-job { display: block; margin-top: 4px; font-size: 10px; color: #8d8d98; line-height: 1.7; }
.work-cast-grid p { margin-top: 10px; font-size: 11px; line-height: 1.9; color: #aaaab5; }
@media(max-width:1000px) {
  .work-cast-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px 18px; }
}
@media(max-width:700px) {
  .work-cast { margin-top: 40px; }.work-cast-heading { display: block; }.work-cast h2 { font-size: 26px; }.work-cast-heading > p { margin-top: 10px; }
  .work-cast-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 26px 14px; margin-top: 22px; }
  .work-character-copy { padding-top: 12px; }.work-cast-grid h3 { font-size: 16px; }.work-cast-grid p { margin-top: 7px; }
  .game-detail .work-play { gap: 8px; padding-left: 10px; padding-right: 10px; }
}

/* Room admission choices use the same quiet surfaces as the cast, without hover outlines. */
.lobby-payment-choice { display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:24px 0 18px;padding:4px;border-radius:9px;background:#151518; }
.lobby-payment-choice button { min-width:0;min-height:68px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:7px;padding:12px;border:0;border-radius:6px;background:transparent;color:#b3b1b0;text-align:left;font:inherit;cursor:pointer; }
.lobby-payment-choice button[aria-pressed=true] { background:#27272c;color:#f0ece8; }
.lobby-payment-choice button:hover:not(:disabled) { background:#222226;color:#f0ece8;box-shadow:none;outline:0; }
.lobby-payment-choice button:focus-visible { outline:2px solid #ed8248;outline-offset:3px; }
.lobby-payment-choice button:disabled { cursor:default;opacity:.5; }
.lobby-payment-choice span { font-size:13px;font-weight:550; }
.lobby-payment-choice small,.lobby-payment-note { font-size:11px;line-height:1.7;color:#a8a6a4; }
.lobby-payment-note { margin:0 0 16px; }
@media(max-width:380px){.lobby-payment-choice{grid-template-columns:1fr}.lobby-payment-choice button{min-height:58px}}
