:root {
  --ink: #eae9d9;
  --muted: #b7c0ad;
  --gold: #d9c395;
  --paper: #f4f0e2;
  --line: #e9e6c929;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  font-synthesis: none;
}
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; }
body { background: #334c40; }
button, input, textarea { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid #ecd6a1; outline-offset: 5px; }
button, a, button svg { transition: background .25s, transform .25s, color .25s, opacity .25s; }
svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
#temple, #scene { position: absolute; inset: 0; width: 100%; height: 100%; }
#scene { outline: none; touch-action: none; cursor: default; }
body.joined #scene { cursor: crosshair; }
.vignette { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, #152c2bdc 0%, #172f2ba8 24%, #1e352630 48%, transparent 72%), linear-gradient(0deg, #172a2a60, transparent 25%, transparent 76%, #18312c45); transition: background 1s; }
body.joined .vignette { background: radial-gradient(ellipse at 50% 42%, transparent 52%, #17332748 100%), linear-gradient(0deg, #18382b48, transparent 22%, transparent 80%, #17372e26); }
.topbar { position: absolute; z-index: 3; top: 34px; left: 42px; right: 42px; display: flex; align-items: center; gap: 27px; pointer-events: none; }
.brand { display: flex; align-items: center; gap: 13px; color: #f0edda; text-decoration: none; pointer-events: auto; text-shadow: 0 2px 10px #14281f60; }
.brand > svg { width: 37px; height: 37px; stroke-width: 1.1; color: #ddc89c; }
.brand .brand-name { font-family: 'Noto Serif CJK SC', 'Songti SC', Georgia, serif; font-size: 24px; letter-spacing: 5px; line-height: 1.1; }
.brand-name small { display: block; font: 8px/1 Arial, sans-serif; letter-spacing: 5.2px; margin-top: 8px; color: #d1d5bc; }
.tagline { font-size: 8px; letter-spacing: 2.3px; color: #d4d9c6; border-left: 1px solid var(--line); padding: 9px 0 9px 25px; }
.presence { margin-left: auto; display: flex; align-items: center; gap: 9px; font-size: 10px; letter-spacing: .3px; padding: 11px 15px; border: 1px solid #e9edcd30; border-radius: 30px; background: #263e34b0; backdrop-filter: blur(16px); }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: #b7c59a; box-shadow: 0 0 0 4px #b9ce9d0e; }
.status-dot.online { background: #bdcfa0; box-shadow: 0 0 8px #c2dfa066; }
.status-dot.offline { background: #ddbd7b; }
.welcome { position: absolute; z-index: 2; left: 7.2%; top: 50%; transform: translateY(-44%); width: 330px; animation: arrive 1.5s ease both; }
.eyebrow { font-size: 8px; font-weight: 500; letter-spacing: 2.1px; color: #c3ceb3; display: flex; align-items: center; gap: 10px; }
.eyebrow > span { width: 22px; height: 1px; background: #bdac7b; }
h1 { font: 400 66px/1.07 Georgia, 'Times New Roman', serif; letter-spacing: -2.8px; margin: 26px 0 21px; color: #f3f0df; }
h1 em { font-weight: 400; color: #dfcba2; }
.welcome-copy { font: 16px/1.85 Georgia, 'Times New Roman', serif; color: #c4cfbc; margin: 0 0 32px; }
#join-form label { display: block; font-size: 10px; letter-spacing: .25px; margin-bottom: 11px; color: #c5cbb8; }
.name-field { position: relative; }
.name-field input { width: 100%; height: 48px; border: 1px solid #ecedd23d; background: #e6ebce0c; border-radius: 5px; padding: 0 43px 0 15px; color: #f1eedf; font-size: 13px; backdrop-filter: blur(12px); }
.name-field input::placeholder { color: #bcc5b599; font-size: 12px; }
.name-field > svg { position: absolute; right: 15px; top: 16px; width: 17px; height: 17px; color: #b6c497; }
.enter-button { width: 100%; border: 1px solid #dfd4ae; background: #ded6b4; color: #2a4235; border-radius: 5px; height: 49px; display: flex; align-items: center; justify-content: space-between; padding: 0 17px; margin-top: 11px; font-size: 12px; letter-spacing: .35px; box-shadow: 0 4px 22px #0a281624; }
.enter-button svg { width: 19px; height: 19px; }
.enter-button:hover:not(:disabled) { background: #eee6c6; transform: translateY(-1px); }
.enter-button:hover:not(:disabled) svg { transform: translateX(3px); }
.form-error { font-size: 12px; line-height: 1.5; color: #edc6a5; margin: 10px 0 0; }
.form-error:empty { display: none; }
.privacy-note { color: #b1bca6; font-size: 9px; line-height: 1.7; margin: 12px 0 26px; text-align: center; }
.welcome-divider { height: 1px; background: linear-gradient(90deg, #cbd1b330, transparent); }
.arrival-note { display: flex; align-items: center; gap: 9px; margin: 17px 0 0; color: #b9c3a9; font: 11px/1.7 Georgia, serif; }
.arrival-note > span { color: #d9c48d; font-size: 17px; }
.welcome-rituals { display: flex; gap: 33px; margin-top: 25px; color: #c6c9af; font-family: Georgia, serif; }
.welcome-rituals > span { display: flex; align-items: center; gap: 9px; font-size: 15px; }
.welcome-rituals small { font: 8px Arial, sans-serif; letter-spacing: 1px; color: #9dac95; }
.scene-caption { position: absolute; right: 6%; bottom: 11%; display: flex; align-items: center; gap: 17px; color: #faf0d7; text-shadow: 0 2px 15px #16392c; pointer-events: none; }
.scene-caption > span { writing-mode: vertical-rl; font: 25px Georgia, serif; letter-spacing: 7px; border-right: 1px solid #ede2b64d; padding-right: 16px; }
.scene-caption > div { font-size: 8px; letter-spacing: 2px; }
.scene-caption small { display: block; font: italic 13px Georgia, serif; letter-spacing: 0; margin-top: 10px; color: #d6dfc6; }
.ambient-note { position: absolute; bottom: 27px; left: 43px; display: flex; align-items: center; gap: 9px; font: italic 11px Georgia, serif; color: #bac9ac; }
.ambient-note > span { width: 18px; height: 1px; background: #acb697; }
#game-ui { position: absolute; inset: 0; pointer-events: none; }
#game-ui button { pointer-events: auto; }
.stillness-card { position: absolute; left: 42px; top: 119px; padding: 17px 20px; max-width: 260px; background: #233b31b5; border: 1px solid #dce6bc22; border-radius: 9px; backdrop-filter: blur(16px); }
.stillness-card .eyebrow { font-size: 7px; letter-spacing: 1.7px; color: #b7c4aa; }
.stillness-card p { margin: 12px 0 16px; font: 15px/1.7 Georgia, serif; color: #e2e6cf; }
.ritual-dots { display: flex; align-items: center; gap: 6px; }
.ritual-dots > span { width: 4px; height: 4px; border-radius: 50%; background: #788973; transition: background .7s, box-shadow .7s; }
.ritual-dots > span.done { background: #e2cd91; box-shadow: 0 0 8px #e2c78955; }
.ritual-dots small { margin-left: 5px; font-size: 8px; color: #b2bea1; }
.leave-button { position: absolute; top: 91px; right: 45px; border: 0; border-radius: 30px; padding: 8px 12px; background: #253e3280; color: #d6dfc6; font-size: 9px; }
.leave-button:hover { background: #314a3be0; }
.leave-button span { padding-left: 5px; }
.action-dock { position: absolute; bottom: 57px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #243b31df; backdrop-filter: blur(20px); border: 1px solid #d7d6ad4a; border-radius: 12px; box-shadow: 0 10px 40px #13271c30; pointer-events: auto; }
.ritual-button { display: flex; align-items: center; gap: 12px; min-width: 160px; padding: 8px 9px; border: 0; border-radius: 7px; background: transparent; color: #e3e4cc; text-align: left; position: relative; }
.ritual-button > svg { width: 27px; height: 27px; stroke-width: 1.2; flex-shrink: 0; color: #d2be8b; }
.ritual-button span { display: flex; flex-direction: column; gap: 5px; }
.ritual-button strong { font: 400 18px Georgia, serif; letter-spacing: 2px; }
.ritual-button small { color: #b7c3a7; font-size: 8px; white-space: nowrap; }
.ritual-button kbd { position: absolute; right: 3px; top: 5px; font: 8px Arial, sans-serif; padding: 2px 4px; border: 1px solid #c4c8a535; border-radius: 3px; color: #c2c9ad; }
.ritual-button:hover:not(:disabled), .ritual-button.active { background: #d6ddac14; }
.ritual-button.active > svg { color: #f2d99b; }
.ritual-button:disabled { opacity: .55; }
.dock-divider { width: 1px; height: 31px; background: #bdc8aa29; }
.location-label { position: absolute; bottom: 151px; left: 50%; transform: translateX(-50%); width: max-content; max-width: 90vw; padding: 9px 16px; border: 1px solid #e3dfb52b; border-radius: 25px; background: #213b30b0; color: #e1e5c9; font-size: 9px; letter-spacing: .9px; text-align: center; text-shadow: 0 1px 5px #1c312a; backdrop-filter: blur(10px); }
.movement-help { position: absolute; bottom: 25px; width: 100%; text-align: center; font-size: 9px; letter-spacing: .3px; color: #e1e5ce; text-shadow: 0 1px 6px #18392c; }
.desktop-help { letter-spacing: 1.8px; }
.help-or { letter-spacing: .3px; margin: 0 5px; }
.help-separator { margin: 0 12px; color: #c3cda9; }
.touch-help { display: none; }
.connection-banner { position: absolute; z-index: 4; left: 50%; top: 95px; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 30px); padding: 12px 19px; background: #e9dfbfed; border: 1px solid #f5e9c5; border-radius: 6px; color: #5c6245; text-align: center; font-size: 11px; }
.toast { position: absolute; left: 50%; bottom: 196px; transform: translate(-50%, 8px); width: max-content; max-width: min(90%, 540px); padding: 12px 23px; border: 1px solid #dce1ba3b; border-radius: 30px; color: #e6ead2; background: #2a4337db; backdrop-filter: blur(12px); font: italic 14px/1.6 Georgia, serif; text-align: center; opacity: 0; pointer-events: none; z-index: 3; transition: opacity .7s, transform .7s; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.player-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.player-labels span { position: absolute; left: 0; top: 0; white-space: nowrap; color: #eae9d4; background: #253e32a6; border: 1px solid #d8ddba24; border-radius: 20px; padding: 5px 9px; font-size: 9px; letter-spacing: .2px; box-shadow: 0 2px 8px #1533240d; }
.player-labels .is-self { color: #f4e5b9; border-color: #d9cd8b55; }
.player-labels .object-label { background: #384934a8; color: #eee0b6; font-size: 8px; padding: 6px 10px; letter-spacing: .3px; }
.object-label i { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: #dfc88d; margin-right: 6px; vertical-align: 1px; }
body.joined .scene-caption, body.joined .ambient-note { display: none; }
[hidden] { display: none !important; }
dialog { width: 420px; max-width: calc(100vw - 30px); padding: 39px 35px 32px; border: 1px solid #d5d4b481; border-radius: 14px; background: #f3f0e4; color: #344a3c; box-shadow: 0 25px 100px #0c251a55; overflow: visible; }
dialog::backdrop { background: #1734277a; backdrop-filter: blur(8px); }
.close-dialog { position: absolute; right: 13px; top: 13px; padding: 6px; border: 0; background: transparent; color: #7e8c71; border-radius: 5px; }
.close-dialog svg { width: 17px; height: 17px; }
.close-dialog:hover { background: #e0e4d4; }
.dialog-icon { display: flex; align-items: center; justify-content: center; width: 53px; height: 53px; margin: 0 auto 24px; border: 1px solid #b5a57244; border-radius: 50%; color: #a38a50; background: #e5dbb633; }
.dialog-icon svg { width: 27px; height: 27px; stroke-width: 1.15; }
dialog .eyebrow { justify-content: center; color: #879173; font-size: 8px; letter-spacing: 1.7px; }
dialog h2 { margin: 17px 0 13px; font: 400 27px/1.25 Georgia, serif; letter-spacing: -.6px; text-align: center; }
dialog p { font: 14px/1.7 Georgia, serif; color: #7a866e; text-align: center; }
dialog textarea { width: 100%; resize: none; border: 1px solid #cbd2ba; border-radius: 5px; padding: 15px; margin-top: 10px; background: #fffef480; color: #4e654e; font-size: 14px; line-height: 1.6; }
dialog textarea::placeholder { color: #9aa58b; font: italic 16px Georgia, serif; }
dialog .wish-privacy { font: 9px/1.7 Arial, sans-serif; color: #909a80; margin: 11px 3px 22px; }
dialog .enter-button { background: #425e46; border-color: #425e46; color: #fff9e5; }
dialog .enter-button:hover:not(:disabled) { background: #344f3c; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.joystick { display: none; position: absolute; z-index: 5; width: 110px; height: 110px; border-radius: 50%; border: 1px solid #eeeacb70; background: #ecedcb16; pointer-events: none; }
.joystick > div { position: absolute; left: 35px; top: 35px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid #eeeacb90; background: #e7e8be66; }
@keyframes arrive { from { opacity: 0; transform: translateY(calc(-44% + 14px)); } to { opacity: 1; transform: translateY(-44%); } }
@media (min-width: 1600px) { .welcome { left: 10%; width: 350px; } h1 { font-size: 74px; } }
@media (max-width: 1100px) { .welcome { left: 5%; width: 300px; } h1 { font-size: 59px; } .topbar { left: 28px; right: 28px; } .tagline { display: none; } .stillness-card { left: 28px; } .leave-button { right: 29px; } .scene-caption { right: 4%; } }
@media (max-height: 730px) and (min-width: 701px) { .topbar { top: 22px; } .welcome { transform: translateY(-43%); } h1 { font-size: 51px; margin: 20px 0 15px; } .welcome-copy { font-size: 14px; margin-bottom: 23px; } .privacy-note { margin-bottom: 19px; } .welcome-rituals { margin-top: 20px; } .arrival-note { margin-top: 13px; } .stillness-card { top: 98px; } }
@media (max-width: 700px) {
  .topbar { top: max(22px, env(safe-area-inset-top)); left: 21px; right: 21px; gap: 12px; }
  .brand { gap: 9px; } .brand > svg { width: 29px; height: 29px; } .brand .brand-name { font-size: 20px; letter-spacing: 3px; } .brand-name small { font-size: 6px; letter-spacing: 4px; margin-top: 6px; }
  .presence { font-size: 8px; padding: 9px 11px; gap: 7px; }
  .vignette { background: linear-gradient(0deg, #173329f2, #1a382d72 45%, transparent 75%); }
  .welcome { top: auto; bottom: max(25px, calc(env(safe-area-inset-bottom) + 18px)); left: 50%; transform: translateX(-50%); width: min(350px, calc(100vw - 44px)); padding: 23px 25px 19px; background: #1f382de8; backdrop-filter: blur(18px); border: 1px solid #d8d9b829; border-radius: 12px; box-shadow: 0 12px 45px #17332730; animation: none; }
  .welcome > .eyebrow { justify-content: center; font-size: 6px; letter-spacing: 1.5px; gap: 6px; } .eyebrow > span { width: 14px; }
  h1 { text-align: center; font-size: 41px; letter-spacing: -1.6px; margin: 15px 0 12px; line-height: 1.06; } h1 br { display: none; }
  .welcome-copy { font-size: 12px; line-height: 1.6; text-align: center; margin-bottom: 19px; } .welcome-copy br { display: none; }
  #join-form label { font-size: 9px; margin-bottom: 8px; }
  .name-field input { height: 43px; font-size: 16px; } .name-field > svg { top: 13px; }
  .enter-button { height: 44px; margin-top: 9px; font-size: 11px; }
  .privacy-note { margin: 11px 0 0; font-size: 8px; }
  .welcome-divider, .welcome-rituals, .arrival-note, .scene-caption, .ambient-note { display: none; }
  .stillness-card { top: 104px; left: 21px; padding: 12px 15px; max-width: 220px; } .stillness-card p { font-size: 12px; margin: 10px 0 12px; } .stillness-card .eyebrow { font-size: 6px; }
  .ritual-dots small { font-size: 7px; }
  .leave-button { top: 75px; right: 21px; font-size: 8px; }
  .action-dock { bottom: max(52px, calc(env(safe-area-inset-bottom) + 33px)); width: calc(100% - 30px); max-width: 390px; padding: 8px 6px; gap: 1px; border-radius: 11px; }
  .ritual-button { flex: 1; min-width: 0; flex-direction: column; gap: 5px; padding: 6px 3px; text-align: center; } .ritual-button > svg { width: 23px; height: 23px; } .ritual-button span { gap: 4px; } .ritual-button strong { font-size: 16px; } .ritual-button small { font-size: 7px; } .ritual-button kbd { display: none; } .dock-divider { height: 37px; }
  .location-label { bottom: max(154px, calc(env(safe-area-inset-bottom) + 135px)); max-width: 92vw; font-size: 8px; letter-spacing: .2px; padding: 8px 12px; }
  .movement-help { bottom: max(25px, calc(env(safe-area-inset-bottom) + 10px)); font-size: 7px; }.desktop-help { display: none; } .touch-help { display: inline; } .help-separator { margin: 0 5px; }
  .toast { bottom: 195px; font-size: 12px; padding: 10px 17px; }
  .connection-banner { top: 90px; font-size: 10px; }
  dialog { padding: 32px 25px 26px; } dialog h2 { font-size: 25px; }
}
@media (max-width: 700px) and (max-height: 680px) { .welcome { padding: 16px 21px; bottom: 15px; } .welcome > .eyebrow { display: none; } h1 { font-size: 34px; margin-top: 3px; } .welcome-copy { margin-bottom: 12px; } .stillness-card { top: 94px; } .stillness-card .eyebrow, .ritual-dots { display: none; } .stillness-card p { margin: 2px 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.ritual-button.nearby { background: #d5d8ac18; }
.ritual-button.nearby > svg { color: #f1d395; }
/* The space comes first. Quiet view is always reversible, including by keyboard. */
.quiet-toggle { position: absolute; top: 130px; right: 45px; display: flex; align-items: center; gap: 7px; border: 1px solid #dce4bf25; background: #233b3175; color: #d4dfc4; border-radius: 22px; padding: 8px 11px; font-size: 9px; backdrop-filter: blur(12px); }
.quiet-toggle svg { width: 13px; height: 13px; }
.quiet-toggle kbd { font: 7px Arial, sans-serif; color: #b8c9a7; border: 1px solid #d4dfba36; padding: 1px 3px; border-radius: 3px; }
.quiet-toggle:hover { background: #36503ebd; }
.music-toggle { position: absolute; top: 169px; right: 45px; display: flex; align-items: center; gap: 7px; min-height: 44px; min-width: 104px; padding: 10px 12px; border: 1px solid #dce4bf25; border-radius: 24px; background: #233b318c; color: #d4dfc4; font-size: 9px; backdrop-filter: blur(12px); }
.music-toggle svg { width: 14px; height: 14px; }
.music-toggle:hover { background: #36503ebd; }
.music-toggle[aria-pressed="false"] svg { opacity: .5; }
.stillness-card { background: #233b318c; padding: 14px 17px; }
.stillness-card .ritual-dots { display: none; }
.stillness-card p { margin-bottom: 0; }
.action-dock { padding: 8px 12px; }
.ritual-button { min-width: 145px; }
body.quiet-view .stillness-card, body.quiet-view .action-dock, body.quiet-view .location-label, body.quiet-view .movement-help, body.quiet-view .player-labels { visibility: hidden; opacity: 0; pointer-events: none; }
body.quiet-view .tagline { visibility: hidden; }
body.quiet-view .toast { bottom: 38px; }
body.scene-unavailable .ambient-note { display: none; }
@media (min-width: 701px) and (max-height: 800px) {
  .ambient-note { display: none; }
  .welcome { top: 105px; bottom: 26px; transform: none; animation: none; overflow-y: auto; scrollbar-width: thin; padding-right: 4px; }
  h1 { font-size: 51px; margin: 18px 0 15px; }
  .welcome-copy { font-size: 14px; margin-bottom: 23px; }
  .privacy-note { margin-bottom: 18px; }
  .welcome-rituals { margin-top: 18px; }
  .arrival-note { margin-top: 12px; }
}
@media (max-width: 1100px) { .quiet-toggle, .music-toggle { right: 29px; } }
@media (max-width: 700px) {
  .quiet-toggle { right: 21px; top: 109px; padding: 7px 9px; font-size: 8px; }
  .quiet-toggle kbd { display: none; }
  .music-toggle { right: 21px; top: 146px; min-width: 98px; font-size: 8px; }
  .stillness-card { max-width: 185px; padding: 11px 13px; }
  .stillness-card p { font-size: 11px; }
  .action-dock { padding: 8px 6px; }
  .ritual-button { min-width: 0; }
}
/* Cinematic sanctuary: charcoal, aged gold, and enough quiet space for the architecture. */
:root { --ink: #e6e0d3; --muted: #b4b2ab; --gold: #c9ad77; --line: #d6c8a329; }
body { background: #22292a; }
.vignette { background: linear-gradient(90deg, #131b21e8 0%, #1a2028aa 24%, #1a20282b 49%, transparent 76%), linear-gradient(0deg, #0e151c55, transparent 22%, transparent 84%, #10171e45); }
body.joined .vignette { background: radial-gradient(ellipse at 50% 46%, transparent 50%, #12192355 100%); }
h1 { font-family: 'Songti SC', 'Noto Serif CJK SC', Georgia, serif; font-size: 68px; line-height: 1.4; letter-spacing: 9px; margin: 19px 0 17px; }
h1 em { font-style: normal; color: #d0b581; }
.welcome-copy { color: #c6c4bc; }
.eyebrow, .tagline, .privacy-note, .arrival-note { color: #bdbab0; }
.presence, .stillness-card, .quiet-toggle, .music-toggle, .leave-button { background: #20272ab3; border-color: #c4b3862e; color: #d2cabb; }
.stillness-card { background: transparent; padding-left: 0; border: 0; backdrop-filter: none; max-width: 205px; }
.stillness-card p { font-size: 13px; color: #c4bfb4; }
.action-dock { background: #202529d9; border-color: #d0b88833; border-radius: 5px; box-shadow: 0 9px 35px #0003; }
.ritual-button { color: #e2d5b8; border-radius: 3px; }
.ritual-button small, .movement-help, .welcome-rituals small { color: #b8b7af; }
.enter-button { background: #c9b38b; border-color: #d3c19d; color: #252a2b; border-radius: 2px; }
.name-field input { border-radius: 2px; background: #18212966; border-color: #d4c7a73d; }
.player-labels .panda-label, .player-labels .object-label, .location-label { background: #20272ab5; border-color: #c0a97a33; color: #d6ccb8; border-radius: 3px; }
.scene-loading { position: absolute; left: 66%; top: 48%; transform: translate(-50%, -50%); color: #d5c19a; font: 26px 'Songti SC', Georgia, serif; letter-spacing: 10px; pointer-events: none; transition: opacity .8s; }
.scene-loading span { display: block; margin-top: 16px; font: 7px Arial, sans-serif; letter-spacing: 4px; text-align: center; }
body.scene-ready .scene-loading, body.scene-unavailable .scene-loading { opacity: 0; visibility: hidden; }
@media (max-width: 700px) {
  .welcome { background: #1b2229e8; border-radius: 4px; }
  h1 { font-size: 39px; line-height: 1.3; letter-spacing: 5px; }
  .scene-loading { left: 50%; top: 26%; font-size: 22px; }
  .stillness-card { display: none; }
  .action-dock { border-radius: 4px; }
}
.camera-reset{position:absolute;top:219px;right:45px;min-height:36px;border:1px solid #c4b3862e;background:#20272ab3;color:#d2cabb;padding:9px 12px;border-radius:20px;font-size:9px;backdrop-filter:blur(12px)}
.camera-reset kbd{font:7px Arial,sans-serif;margin-left:6px;border:1px solid #d4dfba36;padding:1px 3px;border-radius:3px}
.camera-reset:hover{background:#3b4140}
@media(max-width:1100px){.camera-reset{right:29px}}
@media(max-width:700px){.camera-reset{right:21px;top:194px;font-size:8px}.camera-reset kbd{display:none}}
.ritual-button.travelling{background:#bda67319}.ritual-button.travelling>svg{color:#f1d395}
.ritual-button[data-action="meditate"][aria-pressed="true"]{background:#bda67325}
@media(min-width:701px){.action-dock{gap:5px}.ritual-button{min-width:133px;padding:8px 6px}}
@media(max-width:700px){.ritual-button small{font-size:6px}.ritual-button strong{font-size:15px}.ritual-button>svg{width:21px;height:21px}}

/* A single quiet settings entry keeps utility controls away from the view. */
.settings { position: absolute; left: max(24px, env(safe-area-inset-left)); bottom: max(24px, env(safe-area-inset-bottom)); z-index: 30; pointer-events: auto; }
.settings-toggle { display: flex; align-items: center; justify-content: center; gap: 9px; min-width: 44px; min-height: 44px; padding: 11px 15px; border: 1px solid #c4b38655; border-radius: 24px; background: #20272ad9; color: #e2d5b8; font-size: 12px; box-shadow: 0 3px 16px #121a1720; }
.settings-toggle svg { width: 19px; height: 19px; }
.settings-toggle:hover, .settings-toggle[aria-expanded="true"] { background: #3b4140; }
.settings-panel { position: absolute; left: 0; bottom: calc(100% + 12px); width: 252px; max-width: calc(100vw - 32px); max-height: calc(100dvh - 100px); overflow-y: auto; padding: 16px; border: 1px solid #c4b38645; border-radius: 14px; background: #20272af5; color: #e2d5b8; box-shadow: 0 8px 30px #111b1740; pointer-events: auto; }
.settings-panel[hidden] { display: none; }
.settings-panel h2 { margin: 0 0 10px; font: 15px 'Songti SC', Georgia, serif; letter-spacing: 2px; }
.settings-panel .leave-button, .settings-panel .camera-reset, .settings-panel .quiet-toggle, .settings-panel .music-toggle { position: static; display: flex; align-items: center; justify-content: flex-start; gap: 9px; width: 100%; min-height: 44px; margin: 3px 0 0; padding: 10px; border: 0; border-radius: 7px; background: transparent; color: #e2d5b8; font-size: 12px; opacity: 1; backdrop-filter: none; }
.settings-panel button:hover { background: #e2d5b814; }
.settings-panel button kbd { margin-left: auto; }
.settings-panel .leave-button { margin-top: 10px; border-top: 1px solid #c4b38633; border-radius: 0 0 7px 7px; }
.settings-panel .quality-control { position: static; display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; font: 12px system-ui; color: #e2d5b8; }
.settings-panel .quality-control select { min-height: 40px; max-width: 174px; padding: 7px; border: 1px solid #c4b38655; border-radius: 6px; background: #303833; color: #e2d5b8; font: 12px system-ui; }
.performance-debug { left: 130px; }
@media(max-width:700px) { .settings { left: max(16px, env(safe-area-inset-left)); bottom: max(14px, env(safe-area-inset-bottom)); } .settings-toggle { width: 44px; padding: 11px; } .settings-toggle span { display: none; } }

/* Keep transient messages beside utilities, clear of the monk and altar. */
@media(min-width:701px){#toast{left:24px;top:auto;bottom:86px;max-width:280px;text-align:left;white-space:normal;transform:translateY(8px);}#toast.visible{transform:translateY(0);}body.quiet-view #toast{bottom:86px;}}

#ritual-guidance{position:fixed;left:50%;bottom:174px;transform:translateX(-50%);color:#f1dfb5;font-family:serif;font-size:16px;letter-spacing:.18em;text-shadow:0 1px 10px #21190f;opacity:0;transition:opacity 1s;pointer-events:none;white-space:nowrap;z-index:8}.ritual-active #ritual-guidance{opacity:1}.ritual-active .action-dock{opacity:.12;transition:opacity 1.2s}.ritual-active #toast{opacity:0}@media(max-width:600px){#ritual-guidance{bottom:155px;font-size:14px}}

.language-control { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:10px; font:12px system-ui; }
.language-control select { min-height:40px; width:145px; padding:7px; border:1px solid #c4b38655; border-radius:6px; background:#303833; color:#e2d5b8; font:13px system-ui; }
html[lang="en"] #welcome-title { font-size:clamp(42px,5vw,72px); letter-spacing:-1px; }

.bench-seat-button {position:absolute;left:50%;bottom:155px;transform:translateX(-50%);pointer-events:auto;padding:12px 24px;border:1px solid #cabd97;border-radius:24px;background:#26382eea;color:#f1e8d1;font:14px system-ui;z-index:25;}
.bench-seat-button[hidden]{display:none;}
html[lang="en"] .ritual-button strong { letter-spacing:.2px; font-size:16px; white-space:nowrap; }
@media(min-width:900px) { html[lang="en"] .ritual-button { min-width:170px; padding-right:18px; } }
@media(max-width:700px) { html[lang="en"] .ritual-button strong { font-size:11px; letter-spacing:0; } }

/* Names reduced 30% from 27px, with a softly rounded capsule. */
.player-labels span.panda-label{font-size:18.9px;line-height:1.2;padding:4px 10px;border-radius:999px;max-width:min(85vw,440px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-shadow:0 1px 3px #14281c}
.blessing-choices{position:absolute;left:24px;bottom:115px;width:min(330px,calc(100vw - 48px));padding:16px;border:1px solid #d8d0ad66;border-radius:14px;background:#172b24e8;color:#f4ebce;box-shadow:0 8px 30px #0002;z-index:12}
.blessing-choices[hidden]{display:none}.blessing-choices p{font-size:13px;margin:0 0 10px;line-height:1.5}
.blessing-choices button{display:block;width:100%;margin-top:7px;padding:10px 12px;border:1px solid #d6c99a55;border-radius:8px;background:#fff1;color:inherit;text-align:left;font:inherit;font-size:14px;line-height:1.4;cursor:pointer}
.blessing-choices button:hover,.blessing-choices button:focus-visible{background:#d5b96933;border-color:#e9d89c}.blessing-choices button:disabled{opacity:.5}
.blessing-feed{position:absolute;top:95px;left:50%;transform:translateX(-50%);width:min(560px,calc(100vw - 40px));pointer-events:none;z-index:15;text-align:center}
.blessing-feed p{display:table;margin:8px auto;padding:10px 18px;border-radius:20px;background:#1c3029e0;color:#f8edcf;box-shadow:0 3px 12px #0002;font-size:16px;line-height:1.5;overflow-wrap:anywhere;animation:blessing-arrive .4s ease-out}
@keyframes blessing-arrive{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:600px){.blessing-choices{bottom:130px;left:16px;width:calc(100vw - 32px);padding:12px}.blessing-feed{top:75px}.blessing-feed p{font-size:14px}}

#meditation-timer{position:absolute;left:50%;bottom:128px;transform:translateX(-50%);width:min(300px,calc(100vw - 48px));padding:12px 16px;border:1px solid #c4b38645;border-radius:16px;background:#202d27dd;color:#eee1c4;box-shadow:0 4px 20px #111b1720;pointer-events:none;z-index:9}
#meditation-timer[hidden]{display:none}
.meditation-timer-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:13px;line-height:1.5;margin-bottom:9px}
.meditation-clock{font-variant-numeric:tabular-nums;font-size:16px;letter-spacing:.04em}
#meditation-timer progress{display:block;appearance:none;-webkit-appearance:none;border:0;border-radius:99px;width:100%;height:6px;overflow:hidden;background:#eee1c424;color:#d8c18a}
#meditation-timer progress::-webkit-progress-bar{background:#eee1c424;border-radius:99px}
#meditation-timer progress::-webkit-progress-value{background:linear-gradient(90deg,#8baf94,#dfc58a);border-radius:99px}
#meditation-timer progress::-moz-progress-bar{background:linear-gradient(90deg,#8baf94,#dfc58a);border-radius:99px}
body.meditation-timing .location-label{visibility:hidden}
body.meditation-timing #ritual-guidance{bottom:204px}
body.quiet-view #meditation-timer{visibility:hidden}
@media(max-width:700px){#meditation-timer{bottom:max(136px,calc(env(safe-area-inset-bottom) + 117px));width:min(280px,calc(100vw - 48px))}body.meditation-timing #ritual-guidance{bottom:max(210px,calc(env(safe-area-inset-bottom) + 191px))}}
