:root {
  color-scheme: dark;
  --ink: #f0e9dc;
  --muted: #b9bcb6;
  --accent: #edbc90;
  --panel: #172023;
  --hairline: #ffffff24;
  --sans: 'Aptos', 'Segoe UI', 'Microsoft YaHei', sans-serif;
  --serif: 'Baskerville', 'Palatino Linotype', 'Noto Serif CJK SC', 'Songti SC', SimSun, Georgia, serif;
  font-family: var(--sans);
  background: #101619;
  color: var(--ink);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
button, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; top: .6rem; left: .6rem; z-index: 5; transform: translateY(-150%); padding: .75rem; border-radius: .35rem; background: var(--accent); color: #211912; }
.skip:focus { transform: none; }
.site-header {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem;
  height: 68px; padding: 0 clamp(1rem, 4vw, 4.5rem);
  border-bottom: 1px solid var(--hairline); background: #11191b;
  position: relative; z-index: 2;
}
.brand { display: inline-flex; justify-self: start; align-items: center; gap: .75rem; font: 1.35rem var(--serif); white-space: nowrap; }
.brand-symbol { display: block; width: 28px; height: auto; }
.site-header nav { display: flex; gap: clamp(1rem, 3vw, 2.25rem); height: 100%; align-items: center; }
.site-header nav a { color: #bdc1ba; font-size: .9rem; white-space: nowrap; display: grid; height: 100%; place-items: center; border-bottom: 1px solid transparent; }
.site-header nav a:hover, .site-header nav a[aria-current] { color: var(--ink); border-color: var(--accent); }
.utility { justify-self: end; background: transparent; color: var(--ink); border: 1px solid var(--hairline); border-radius: 5px; min-height: 36px; padding: .35rem .75rem; font-size: .82rem; }
.utility:hover { border-color: #a69c87; }
.lobby { min-height: max(605px, calc(100svh - 68px)); position: relative; isolation: isolate; overflow: hidden; background: #252e2c; }
.lobby-shade { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(0deg, #121a18e0 1%, #131c1b69 23%, transparent 49%); }
.lobby-content { position: absolute; bottom: clamp(1.65rem, 5.5vh, 5rem); left: clamp(1rem, 4vw, 4.5rem); width: min(440px, calc(100% - 2rem)); pointer-events: none; }
.lobby-content h1 { margin: 0 0 .65rem; font-size: clamp(2.65rem, 4.2vw, 4.8rem); line-height: .95; letter-spacing: -.06em; }
.lobby-content .intro { max-width: 34ch; margin: .65rem 0 1rem; color: #f2e7d6; }
.lobby-entry { min-width: 12rem; pointer-events: auto; }
.lobby-tools { z-index: 1; }
.experience { position: relative; min-height: max(695px, calc(100svh - 68px)); isolation: isolate; overflow: hidden; background: linear-gradient(160deg, #27384a 0, #293942 35%, #131c20 72%); }
.scene, .scene-shade { position: absolute; inset: 0; }
.scene { z-index: -2; }
.scene canvas { display: block; width: 100%; height: 100%; outline: none; touch-action: pan-y; }
.scene-shade { z-index: -1; pointer-events: none; background: linear-gradient(90deg, #101719f4 0, #11191bdf 17%, #11191b73 37%, transparent 66%), linear-gradient(0deg, #0b1418c9 0, transparent 34%); }
.scene-status { position: absolute; left: 62%; top: 40%; color: #d6d8ce; font-size: .88rem; pointer-events: none; }
.experience-content { position: relative; min-height: inherit; padding: clamp(2.1rem, 6vh, 4.7rem) clamp(1rem, 4vw, 4.5rem) 6.25rem; pointer-events: none; }
.experience-content > * { pointer-events: auto; }
.hall-intro, .seat-card, .session-card { width: min(100%, 350px); }
.hall-intro { pointer-events: none; }
.floor { color: var(--accent); margin: 0 0 .65rem; font-size: .69rem; font-weight: 650; letter-spacing: .16em; }
h1, h2, p { margin-top: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; }
.hall-intro h1 { font-size: clamp(3rem, 5vw, 5.1rem); letter-spacing: -.08em; line-height: .96; margin: 0 0 .92rem -.055em; }
html[lang="zh-CN"] .hall-intro h1 { font-size: clamp(3rem, 5.35vw, 5.4rem); letter-spacing: -.05em; }
.intro { color: var(--muted); max-width: 29ch; margin-bottom: .95rem; font-size: 1rem; line-height: 1.5; }
.presence { display: flex; align-items: center; gap: .5rem; color: #d6d4c9; font-size: .79rem; }
.live-dot { width: .42rem; height: .42rem; background: #b79b81; border-radius: 50%; }
.presence[data-online="true"] .live-dot { background: #a5c8a9; box-shadow: 0 0 10px #93c8a55e; }
.seat-card, .session-card { margin-top: 1.6rem; border: 1px solid #dcd7c02c; border-radius: 12px; background: #162023ec; box-shadow: 0 12px 40px #0710154a; padding: 1rem 1.1rem .8rem; }
.card-heading { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; margin-bottom: .75rem; }
.card-heading h2 { margin: 0; font-size: 1.35rem; }
.avatar-picker { min-width: 0; border: 0; padding: 0 0 .65rem; margin: 0 0 .58rem; border-bottom: 1px solid var(--hairline); }
.avatar-picker legend { color: var(--muted); padding: 0; margin: 0 0 .38rem; font-size: .78rem; }
.avatar-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .33rem; }
.avatar-option { position: relative; min-width: 0; cursor: pointer; }
.avatar-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.avatar-option-face { display: flex; align-items: center; justify-content: center; gap: .32rem; min-height: 37px; padding: .25rem; border: 1px solid #a59f8d46; border-radius: 5px; color: #e1ded0; background: #172124; font-size: .73rem; }
.avatar-option-face:hover { border-color: var(--accent); }
.avatar-option input:checked + .avatar-option-face { color: #ffe1c3; border-color: #edbc9098; background: #332a27; }
.avatar-option input:focus-visible + .avatar-option-face { outline: 2px solid var(--accent); outline-offset: 2px; }
.avatar-icon { --fabric: #b3b889; position: relative; width: .98rem; height: 1.12rem; display: inline-block; overflow: hidden; flex: 0 0 auto; color: var(--fabric); }
.avatar-icon::before, .avatar-icon::after { content: ''; position: absolute; left: 50%; transform: translateX(-50%); background: currentColor; }
.avatar-icon::before { width: .35rem; height: .39rem; top: .05rem; border-radius: 47%; }
.avatar-icon::after { width: .82rem; height: .48rem; bottom: .03rem; border-radius: 65% 65% 25% 25%; }
.avatar-icon.woman { --fabric: #c89187; }
.avatar-icon.woman::before { box-shadow: .15rem -.09rem 0 -.055rem currentColor; }
.avatar-icon.man { --fabric: #9db2c1; }
.avatar-icon.man::before { border-radius: 35%; }
.seat-count { white-space: nowrap; color: var(--muted); font-size: .74rem; }
.hall-capacity { font-size: .75rem; color: var(--accent); margin: 0 0 .6rem; font-variant-numeric: tabular-nums; }
.hall-section { display: flex; align-items: center; gap: .36rem; margin: 0 0 .65rem; }
.hall-section label { color: var(--muted); white-space: nowrap; font-size: .75rem; }
.hall-section input { font: inherit; font-size: .82rem; width: 3.4rem; min-width: 0; min-height: 35px; padding: .32rem .35rem; border: 1px solid var(--hairline); border-radius: 5px; color: var(--ink); background: #11191b; font-variant-numeric: tabular-nums; }
.hall-section input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hall-section button { min-height: 35px; border: 1px solid var(--hairline); border-radius: 5px; padding: .32rem .46rem; color: var(--ink); background: #22302e; white-space: nowrap; font-size: .75rem; }
.hall-section button:hover:not(:disabled) { border-color: var(--accent); }
.hall-section button:disabled { opacity: .6; }
.section-next { margin-inline-start: auto; }
.seat-layout { display: grid; gap: .5rem; padding: .62rem .6rem; border: 1px solid #dcd7c01f; border-radius: 7px; background: #0e181b; }
.seat-zones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .3rem; padding: 0; margin: 0; min-width: 0; border: 0; }
.zone-option { position: relative; display: grid; cursor: pointer; }
.zone-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.zone-option-face { display: flex; align-items: center; justify-content: space-between; gap: .15rem; padding: .25rem .3rem; min-height: 35px; border: 1px solid #a59f8d40; border-radius: 5px; color: #c1c1b6; font-size: .71rem; line-height: 1.15; }
.zone-option-face:hover, .zone-option input:checked + .zone-option-face { border-color: #edbc9098; color: #ffe1c3; }
.zone-option input:checked + .zone-option-face { background: #302826; }
.zone-option input:focus-visible + .zone-option-face { outline: 2px solid var(--accent); outline-offset: 2px; }
.zone-availability { font-size: .66rem; font-variant-numeric: tabular-nums; opacity: .85; }
.seat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) .36rem repeat(3, minmax(0, 1fr)); gap: .32rem .26rem; }
.seat-grid button:nth-child(6n + 4) { grid-column: 5; }
.seat-grid button { min-width: 0; min-height: 39px; padding: 0; border: 1px solid #a59f8d46; border-radius: 5px; background: #232d2e; color: #e1ded0; font-size: .74rem; font-variant-numeric: tabular-nums; }
.seat-grid button:hover:not(:disabled) { border-color: var(--accent); }
.seat-grid button[aria-pressed="true"] { border-color: var(--accent); background: #ebbd92; color: #242019; }
.seat-grid button[data-occupied="true"] { color: #aaa99c; border-color: #7f807934; background: #182022; text-decoration: line-through; }
.seat-controls { display: flex; align-items: center; gap: .56rem; margin-top: .8rem; }
.duration { display: grid; gap: .2rem; align-items: center; color: var(--muted); font-size: .72rem; }
.duration input { width: 100%; min-width: 4rem; min-height: 34px; color: var(--ink); border: 1px solid var(--hairline); background: #11191b; border-radius: 5px; padding: .32rem .48rem; font: inherit; font-size: .88rem; }
.duration input[aria-invalid="true"] { border-color: var(--accent); }
.primary, .outline { display: inline-flex; align-items: center; justify-content: space-between; gap: .7rem; border-radius: 5px; min-height: 42px; padding: .6rem .8rem; font-size: .86rem; font-weight: 600; }
.primary { flex: 1 1 auto; color: #221811; border: 1px solid transparent; background: var(--accent); }
.primary:hover:not(:disabled) { background: #f7d0aa; }
.primary:disabled { background: #66594a; color: #f0e7d9; }
.outline { color: var(--ink); border: 1px solid #e9cba450; background: #202a2c; }
.outline:hover:not(:disabled) { border-color: var(--accent); }
.outline:disabled { opacity: .62; }
.seat-note { margin: .56rem 0 0; min-height: 1.3em; color: var(--muted); line-height: 1.35; font-size: .76rem; }
.seat-note[data-error="true"] { color: #ffd0a9; }
.group-strip { position: absolute; bottom: 1.45rem; left: clamp(1rem, 4vw, 4.5rem); display: flex; align-items: center; gap: .75rem; max-width: calc(100% - 2rem); border: 1px solid #f4e0c52d; border-radius: 8px; padding: .62rem .72rem; background: #111c20e8; }
.group-icon { border: 1px solid #a89c7e70; border-radius: 50%; color: var(--accent); display: grid; flex: 0 0 29px; height: 29px; place-items: center; }
.group-strip strong { display: block; font-size: .85rem; line-height: 1.1; }
.group-meta { display: block; color: var(--muted); font-size: .74rem; margin-top: .23rem; }
.group-strip button { min-height: 36px; flex: 0 0 auto; white-space: nowrap; font-size: .76rem; }
.scene-toolbar { display: flex; flex-wrap: wrap; gap: .4rem; position: absolute; bottom: 1.55rem; right: clamp(1rem, 4vw, 4.5rem); }
.scene-toolbar button, .bowl-settings summary { border-radius: 5px; min-height: 39px; padding: .4rem .65rem; border: 1px solid #ffffff36; color: #f4e9d8; background: #0f191ddc; font-size: .78rem; }
.scene-toolbar button:hover, .scene-toolbar button[aria-pressed="true"], .bowl-settings summary:hover, .bowl-settings[data-repeat="true"] summary { border-color: var(--accent); }
.bowl-settings { position: relative; }
.bowl-settings summary { align-content: center; width: max-content; cursor: pointer; }
.bowl-panel { position: absolute; z-index: 2; inset: auto 0 calc(100% + .45rem) auto; width: 15rem; display: grid; gap: .55rem; padding: .75rem; border: 1px solid #e9cba450; border-radius: 8px; background: #162023; color: var(--ink); font-size: .78rem; }
.bowl-repeat, .bowl-minutes { display: flex; align-items: center; gap: .4rem; }
.bowl-repeat { min-height: 32px; cursor: pointer; }
.bowl-repeat input { width: 1rem; height: 1rem; margin: 0; accent-color: var(--accent); }
.bowl-minutes { justify-content: space-between; }
.bowl-minutes input { width: 4.2rem; min-height: 35px; padding: .3rem .44rem; border: 1px solid var(--hairline); border-radius: 5px; background: #11191b; color: var(--ink); font: inherit; }
.bowl-minutes input[aria-invalid="true"] { border-color: var(--accent); }
.bowl-panel p { margin: 0; color: #ffd0a9; }
.bowl-panel button { justify-self: start; }
.bowl-volume { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .15rem .5rem; }
.bowl-volume input { grid-column: 1 / -1; width: 100%; min-height: 26px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.bowl-volume span:last-of-type { color: var(--muted); font-variant-numeric: tabular-nums; }
.music-control { position: relative; display: flex; align-items: stretch; gap: .4rem; }
.music-volume { display: grid; align-content: center; gap: .15rem; border: 1px solid #ffffff36; border-radius: 5px; padding: .2rem .55rem; color: var(--ink); background: #0f191ddc; font-size: .68rem; }
.music-volume input { width: 5.5rem; margin: 0; accent-color: var(--accent); cursor: pointer; }
.music-feedback { position: absolute; bottom: calc(100% + .4rem); inset-inline-start: 0; width: max-content; max-width: 12rem; padding: .4rem .55rem; border-radius: 5px; background: #11191b; color: #ffd0a9; font-size: .75rem; }
.room-help { align-self: center; padding-inline: .12rem .4rem; text-shadow: 0 1px 6px #0a1014; color: #e3dfd1; font-size: .76rem; }
.session-card { text-align: center; padding: 1.25rem 1rem; }
.session-card .floor { margin-bottom: .9rem; }
.timer { display: grid; place-items: center; width: 144px; aspect-ratio: 1; margin: 0 auto .85rem; border-radius: 50%; background: conic-gradient(var(--accent) var(--remaining, 100%), #d6c1a53a 0); }
.timer span { display: grid; place-items: center; width: calc(100% - 4px); height: calc(100% - 4px); border-radius: 50%; background: #162023; font: 2.15rem var(--serif); font-variant-numeric: tabular-nums; }
.session-card > p:not(.floor) { color: var(--muted); min-height: 1.3em; font-size: .87rem; line-height: 1.4; }
.session-card #history-note { font-size: .76rem; }
.session-card #history-retry { margin-inline-end: .35rem; }
.sitting .hall-intro .intro, .sitting .presence, .sitting .group-strip, .sitting .hall-capacity { display: none; }
.sitting .hall-intro h1 { font-size: clamp(2.6rem, 5vw, 4rem); }
.sitting .scene-shade { background: linear-gradient(90deg, #101719a6, transparent 60%); }
.flat-mode .scene { visibility: hidden; }
.flat-mode .scene-shade { background: radial-gradient(ellipse at 71% 29%, #6a77895c, transparent 52%), linear-gradient(95deg, #121c20 0, #17272b 35%, #243947 70%, #17262c); }
.schedule-page { position: relative; display: grid; align-items: center; min-height: calc(100svh - 68px); padding: clamp(2rem, 8vw, 7rem); isolation: isolate; }
.schedule-backdrop { position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 81% 10%, #5964765c, transparent 65%), linear-gradient(150deg, #172023, #121c20 55%, #2c3e48); }
.agenda { width: min(100%, 650px); }
.back { display: inline-block; font-size: .92rem; margin-bottom: 2.1rem; color: var(--accent); }
.back:hover { text-decoration: underline; }
.agenda h1 { font-size: clamp(2.85rem, 7vw, 6.2rem); letter-spacing: -.065em; line-height: 1; margin-bottom: 1.1rem; }
.agenda .intro { max-width: 48ch; }
.agenda-time { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); margin: 1.65rem 0; padding: 1rem 0; }
.agenda-time h2 { margin: .15rem 0 .35rem; font-size: 1.5rem; }
.agenda-date { color: var(--accent); font-variant-numeric: tabular-nums; }
.agenda-time p { margin-bottom: .35rem; color: var(--muted); }
.agenda-action { width: fit-content; min-width: 220px; }
.noscript { position: absolute; top: 80px; left: 1rem; background: var(--panel); padding: 1rem; }

@media (max-width: 760px) {
  .site-header { height: 58px; padding: 0 .85rem; gap: .55rem; }
  .brand { font-size: 1.05rem; gap: .4rem; }
  .brand-symbol { width: 22px; }
  .site-header nav { gap: .75rem; }
  .site-header nav a { font-size: .78rem; }
  .utility { padding-inline: .48rem; min-height: 34px; }
  .experience { min-height: calc(100svh - 58px); }
  .scene { height: clamp(280px, 43svh, 400px); }
  .lobby { min-height: calc(100svh - 58px); }
  .lobby .scene { height: 100%; }
  .lobby-shade { background: linear-gradient(0deg, #121c1bed 4%, #121c1b98 30%, transparent 72%); }
  .lobby-content { bottom: 2rem; }
  .lobby-content h1 { font-size: clamp(2.5rem, 11vw, 4.5rem); }
  .lobby-tools { display: none; }
  .scene-status { inset: 6rem 1rem auto; text-align: center; }
  .scene-shade { background: linear-gradient(180deg, #11191b9e, #11191b00 22%, #11191b00 26%, #11191b 52%); }
  .experience-content { display: grid; grid-template-columns: minmax(0, 1fr); align-content: end; padding: clamp(208px, 34svh, 320px) 1rem 1.2rem; min-height: inherit; }
  .hall-intro, .seat-card, .session-card { width: 100%; max-width: 430px; margin-inline: auto; }
  .hall-intro h1 { font-size: clamp(2.8rem, 11vw, 4.8rem); margin-bottom: .6rem; }
  .hall-intro .intro { margin-bottom: .65rem; }
  .seat-card, .session-card { margin-top: 1rem; }
  .zone-option-face, .seat-grid button { min-height: 44px; }
  .hall-section input, .hall-section button { min-height: 39px; }
  .group-strip, .scene-toolbar { position: relative; inset: auto; width: 100%; max-width: 430px; margin-inline: auto; }
  .scene-toolbar { margin-block: .7rem; }
  .bowl-settings[open] { flex-basis: 100%; }
  .bowl-panel { position: relative; inset: auto; width: min(100%, 19rem); margin-top: .4rem; }
  .room-help { display: none; }
  .group-strip { order: 1; }
  .group-strip button { margin-inline-start: auto; }
  .sitting .scene-shade { background: linear-gradient(180deg, transparent 20%, #11191b 56%); }
  .sitting .scene-toolbar { justify-content: center; }
  .flat-mode .experience-content { padding-top: 2.2rem; align-content: start; }
  .schedule-page { min-height: calc(100svh - 58px); }
}
@media (max-width: 560px) {
  .site-header { height: 84px; grid-template-columns: 1fr auto; grid-template-rows: 48px 36px; gap: 0; }
  .site-header nav { grid-row: 2; grid-column: 1 / -1; justify-content: center; gap: clamp(.45rem, 3vw, 1.3rem); }
  .site-header .utility { grid-row: 1; grid-column: 2; }
  .lobby, .experience, .schedule-page { min-height: calc(100svh - 84px); }
}
@media (max-width: 350px) {
  .brand-symbol { display: none; }
  .site-header nav { gap: .45rem; }
  .seat-grid { column-gap: .18rem; }
  .zone-option-face { padding-inline: .2rem; }
  .group-strip { gap: .5rem; }
  .group-icon { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .primary, .outline, .seat-grid button { transition: background-color .18s, border-color .18s; }
}
