:root { --ink: #f4efe4; --soft: #cfc8da; --glass: rgba(14, 16, 30, .55); --line: rgba(255, 255, 255, .16); --gold: #f1c56b; }
[hidden] { display: none !important; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #0b1026; color: var(--ink); font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif; overflow: hidden; word-break: keep-all; }
#space { position: fixed; inset: 0; }
#stage { position: absolute; inset: 0; width: 100%; height: 100%; display: block; outline: none; }
.hud-top { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: max(12px, env(safe-area-inset-top)) 14px 0; pointer-events: none; }
.pill { pointer-events: auto; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; background: var(--glass); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--ink); text-decoration: none; font-size: 14px; }
.pill svg { width: 18px; height: 18px; flex: none; }
.pill-room b { font-weight: 700; }
.pill-room span { color: var(--soft); }
.pill-tools { gap: 4px; padding: 4px 6px 4px 12px; }
.cnt { display: inline-flex; align-items: center; gap: 6px; margin-right: 4px; }
.ico { appearance: none; border: 0; background: transparent; color: var(--ink); width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; cursor: pointer; }
.ico:hover, .ico:focus-visible { background: rgba(255, 255, 255, .1); outline: none; }
.ora-lang select { appearance: auto; background: rgba(255, 255, 255, .08); color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 5px 8px; font: inherit; font-size: 12px; max-width: 120px; margin-left: 2px; }
.ora-lang select option { color: #111; }
.panel { position: absolute; top: 62px; right: 14px; background: var(--glass); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; backdrop-filter: blur(8px); font-size: 14px; }
.panel label { display: flex; gap: 10px; align-items: center; }
.panel select { font: inherit; border-radius: 8px; padding: 4px 6px; }
.hint { position: absolute; left: 50%; bottom: 48px; transform: translateX(-50%); margin: 0; background: var(--glass); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 14px; color: var(--ink); pointer-events: none; width: max-content; max-width: calc(100% - 28px); text-align: center; }
.actbar { position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%); display: flex; gap: 6px; background: var(--glass); border: 1px solid var(--line); border-radius: 999px; padding: 6px; backdrop-filter: blur(8px); }
.actbar button { appearance: none; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 14px; padding: 10px 16px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.actbar button:hover, .actbar button:focus-visible { background: rgba(255, 255, 255, .12); outline: none; }
.actbar .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold); }
#space:not(.is-seated) .actbar { opacity: .55; }
.enter { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, rgba(11, 16, 38, .25), rgba(11, 16, 38, .78)); }
.enter-box { text-align: center; padding: 24px; }
.enter-name { margin: 0; font-family: "Noto Serif KR", Georgia, serif; font-size: clamp(34px, 7vw, 56px); font-weight: 700; }
.enter-sub { margin: 10px 0 22px; color: var(--soft); font-size: 15px; }
#btnEnter { appearance: none; border: 1px solid rgba(241, 197, 107, .6); background: rgba(241, 197, 107, .16); color: var(--ink); font: inherit; font-size: 17px; padding: 12px 34px; border-radius: 999px; cursor: pointer; }
#btnEnter:hover, #btnEnter:focus-visible { background: rgba(241, 197, 107, .3); outline: none; }
.fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; background: radial-gradient(circle at 50% 35%, #2a2a48, #0b1026 70%); }
.fallback h1 { margin: 0 0 8px; font-family: "Noto Serif KR", Georgia, serif; }
.fallback p { color: var(--soft); max-width: 420px; }
.fallback button { appearance: none; border: 1px solid var(--line); background: rgba(255, 255, 255, .1); color: var(--ink); font: inherit; padding: 10px 22px; border-radius: 999px; cursor: pointer; }
.toast { position: absolute; left: 50%; top: 70px; transform: translate(-50%, -8px); background: rgba(10, 12, 24, .82); border: 1px solid var(--line); border-radius: 12px; padding: 9px 16px; font-size: 14px; opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.sp-church { --glass: rgba(40, 32, 22, .45); }
#ora-tr, .goog-te-banner-frame, .skiptranslate > iframe { display: none !important; }
body { top: 0 !important; }
@media (max-width: 560px) {
  .pill { font-size: 13px; padding: 6px 11px; }
  .pill-tools { padding: 3px 4px 3px 10px; }
  .ico { width: 30px; height: 30px; }
  .ora-lang select { max-width: 86px; }
  .actbar { width: calc(100% - 24px); justify-content: space-around; }
  .actbar button { padding: 9px 8px; font-size: 13px; gap: 5px; }
  .hint { bottom: max(10px, env(safe-area-inset-bottom)); font-size: 13px; border-radius: 16px; }
  .actbar { bottom: 72px; }
}
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }
.stay { color: var(--gold); font-variant-numeric: tabular-nums; font-size: 13px; }
.panel { display: grid; gap: 10px; }
.panel input[type=range] { width: 120px; accent-color: var(--gold); }
.panel input[type=checkbox] { accent-color: var(--gold); width: 16px; height: 16px; }
#btnSound.off { opacity: .45; }
.seat-btns { position: absolute; left: 50%; bottom: 160px; transform: translateX(-50%); display: flex; gap: 10px; }
.big-btn { appearance: none; border: 1px solid rgba(159, 224, 182, .7); background: rgba(40, 90, 60, .55); color: #fff; font: inherit; font-size: 16px; font-weight: 700; padding: 12px 26px; border-radius: 999px; cursor: pointer; backdrop-filter: blur(8px); box-shadow: 0 8px 30px -8px rgba(120, 220, 160, .6); }
.big-btn.ghost { border-color: var(--line); background: var(--glass); box-shadow: none; font-weight: 500; }
.big-btn kbd { font: inherit; font-size: 12px; opacity: .75; border: 1px solid rgba(255, 255, 255, .35); border-radius: 6px; padding: 0 6px; margin-left: 6px; }
.joy { position: absolute; left: max(18px, env(safe-area-inset-left)); bottom: 160px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255, 255, 255, .08); border: 1px solid var(--line); backdrop-filter: blur(6px); touch-action: none; display: grid; place-items: center; }
.joy span { width: 50px; height: 50px; border-radius: 50%; background: rgba(241, 197, 107, .55); box-shadow: 0 0 18px rgba(241, 197, 107, .5); transition: transform .08s; }
.keys-hint { position: absolute; left: 50%; transform: translateX(-50%); bottom: max(10px, env(safe-area-inset-bottom)); margin: 0; width: max-content; max-width: calc(100% - 28px); text-align: center; line-height: 1.5; font-size: 12px; color: var(--soft); opacity: .8; pointer-events: none; }
#space.cam-free::after { content: ""; position: absolute; inset: 0; border: 2px solid rgba(241, 197, 107, .5); pointer-events: none; }
.act-panel { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); min-width: 260px; max-width: min(460px, calc(100% - 32px)); background: rgba(12, 14, 28, .82); border: 1px solid rgba(241, 197, 107, .35); border-radius: 22px; padding: 22px 24px; text-align: center; backdrop-filter: blur(10px); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8); }
.ap-close { position: absolute; right: 10px; top: 8px; appearance: none; border: 0; background: transparent; color: var(--soft); font-size: 22px; cursor: pointer; }
.ap-title { margin: 0 0 10px; color: var(--gold); font-weight: 700; }
.ap-big { margin: 0; font-size: 54px; font-family: "Noto Serif KR", Georgia, serif; line-height: 1.1; }
.ap-big small { font-size: 18px; color: var(--soft); }
.ap-beads { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin: 12px 0 4px; }
.ap-beads i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .15); }
.ap-beads i.on { background: var(--gold); box-shadow: 0 0 6px var(--gold); }
.ap-sub { margin: 8px 0 0; color: var(--soft); font-size: 14px; }
.ap-time { margin: 4px 0 0; font-variant-numeric: tabular-nums; color: var(--soft); }
.ap-circle { width: 120px; height: 120px; margin: 6px auto; border-radius: 50%; border: 2px solid rgba(241, 197, 107, .5); display: grid; place-items: center; }
.ap-circle span { width: 60px; height: 60px; border-radius: 50%; background: radial-gradient(circle, rgba(241, 197, 107, .8), rgba(241, 197, 107, .15)); animation: breathe 8s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(.7); } 50% { transform: scale(1.6); } }
.act-verse blockquote { margin: 6px 0 8px; font-family: "Noto Serif KR", Georgia, serif; font-size: 19px; line-height: 1.55; }
.ap-ref { margin: 0; color: var(--gold); font-size: 14px; }
@media (max-width: 560px) { .keys-hint { display: none; } .seat-btns { left: auto; right: max(14px, env(safe-area-inset-right)); bottom: 132px; transform: none; flex-direction: column; align-items: flex-end; } .big-btn { padding: 11px 20px; font-size: 15px; } .joy { bottom: 132px; } }
@media (prefers-reduced-motion: reduce) { .ap-circle span { animation: none; } }
.enter { background: rgba(8, 10, 24, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); z-index: 5; }
#space:not(.entered) .hint, #space:not(.entered) .keys-hint, #space:not(.entered) .seat-btns, #space:not(.entered) .actbar, #space:not(.entered) .joy, #space:not(.entered) .act-panel, #space:not(.entered) .compass { display: none !important; }
.hint { transition: opacity .6s; }
.hint.fade { opacity: 0; }
.enter-note { margin: 10px 0 0; font-size: 13px; color: var(--gold); }
.credit { margin: 12px 0 0; font-size: 11px; color: var(--soft); opacity: .85; }
.credit a { color: inherit; }
.panel .credit { margin: 2px 0 0; max-width: 220px; }
@media (pointer: coarse) { .pc-only { display: none; } }
@media (pointer: coarse) { .keys-hint { display: none; } .actbar { bottom: 72px; } .hint { bottom: max(10px, env(safe-area-inset-bottom)); border-radius: 16px; } .joy { bottom: 132px; } .seat-btns { bottom: 132px; left: auto; right: max(14px, env(safe-area-inset-right)); transform: none; flex-direction: column; align-items: flex-end; } }
:root { --hair: rgba(241, 197, 107, .3); --hair-hi: rgba(241, 197, 107, .66); --glass-hi: rgba(34, 36, 64, .64); --glass-lo: rgba(10, 12, 26, .5); --lift: 0 12px 34px -16px rgba(0, 0, 0, .75), inset 0 1px 0 rgba(255, 255, 255, .09); --ease: cubic-bezier(.22, .8, .3, 1); }
.sp-church { --glass-hi: rgba(58, 46, 32, .62); --glass-lo: rgba(26, 20, 12, .46); }
.pill, .actbar, .panel, .hint, .toast { background: linear-gradient(180deg, var(--glass-hi), var(--glass-lo)); border-color: var(--hair); box-shadow: var(--lift); backdrop-filter: blur(14px) saturate(150%); -webkit-backdrop-filter: blur(14px) saturate(150%); }
.pill-room { transition: border-color .25s var(--ease), box-shadow .25s var(--ease); }
.pill-room:hover, .pill-room:focus-visible { border-color: var(--hair-hi); box-shadow: var(--lift), 0 0 22px -8px rgba(241, 197, 107, .55); outline: none; }
.pill-room svg, .cnt svg { color: var(--gold); }
.pill-room b { letter-spacing: .01em; }
.cnt b { font-variant-numeric: tabular-nums; }
.ico { transition: background-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease); }
.ico:hover, .ico:focus-visible { background: radial-gradient(circle, rgba(241, 197, 107, .24), rgba(241, 197, 107, .08)); color: #ffe6ad; box-shadow: inset 0 0 0 1px rgba(241, 197, 107, .4); }
.ico:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.ora-lang select { background-color: rgba(255, 255, 255, .06); border-color: var(--hair); }
.ora-lang select:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.actbar { padding: 5px; gap: 4px; }
.actbar button { border: 1px solid transparent; transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease); }
.actbar button:hover, .actbar button:focus-visible { background: linear-gradient(180deg, rgba(241, 197, 107, .22), rgba(241, 197, 107, .06)); border-color: rgba(241, 197, 107, .42); color: #fff4da; }
.actbar button:active { transform: scale(.97); }
.actbar .dot { background: radial-gradient(circle at 40% 35%, #fff1c8, var(--gold) 60%); box-shadow: 0 0 10px rgba(241, 197, 107, .85); }
#space.is-seated .actbar { border-color: var(--hair-hi); box-shadow: var(--lift), 0 0 26px -8px rgba(241, 197, 107, .45); }
.hint { border-color: var(--hair); }
.big-btn { background: linear-gradient(180deg, rgba(78, 156, 108, .82), rgba(30, 88, 58, .76)); border-color: rgba(176, 238, 198, .78); box-shadow: 0 10px 30px -10px rgba(120, 220, 160, .7), inset 0 1px 0 rgba(255, 255, 255, .24); letter-spacing: .01em; transition: box-shadow .25s var(--ease), transform .25s var(--ease), border-color .25s var(--ease), background-color .25s var(--ease); }
.big-btn:hover, .big-btn:focus-visible { transform: translateY(-1px); box-shadow: 0 14px 34px -10px rgba(120, 220, 160, .85), inset 0 1px 0 rgba(255, 255, 255, .3); outline: none; }
.big-btn:focus-visible { outline: 2px solid #c9f3d6; outline-offset: 2px; }
.big-btn.ghost { background: linear-gradient(180deg, var(--glass-hi), var(--glass-lo)); border-color: var(--hair); box-shadow: var(--lift); }
.big-btn.ghost:hover, .big-btn.ghost:focus-visible { border-color: var(--hair-hi); box-shadow: var(--lift), 0 0 22px -8px rgba(241, 197, 107, .55); }
.big-btn.ghost:focus-visible { outline-color: var(--gold); }
.big-btn kbd { border-color: rgba(255, 236, 190, .45); background: rgba(255, 255, 255, .08); }
.joy { background: radial-gradient(circle, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03) 70%); border-color: var(--hair); box-shadow: var(--lift); }
.joy span { background: radial-gradient(circle at 40% 35%, rgba(255, 236, 190, .9), rgba(241, 197, 107, .55) 70%); }
.panel { border-radius: 16px; padding: 14px 16px; }
.panel select { background: rgba(255, 255, 255, .08); color: var(--ink); border: 1px solid var(--hair); }
.panel select option { color: #111; }
.act-panel { background: radial-gradient(120% 70% at 50% 0%, rgba(241, 197, 107, .16), transparent 62%), linear-gradient(180deg, rgba(24, 24, 46, .9), rgba(10, 12, 24, .88)); border-color: rgba(241, 197, 107, .42); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .85), 0 0 44px -14px rgba(241, 197, 107, .35), inset 0 1px 0 rgba(255, 255, 255, .08); }
.act-panel::before { content: ""; position: absolute; left: 50%; top: -1px; width: 140px; height: 2px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, var(--gold), transparent); pointer-events: none; }
.ap-title { letter-spacing: .04em; }
.ap-close { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; line-height: 1; transition: background-color .2s var(--ease), color .2s var(--ease); }
.ap-close:hover, .ap-close:focus-visible { background: rgba(241, 197, 107, .16); color: var(--gold); outline: none; }
.toast { border-color: var(--hair); }
.enter { background: radial-gradient(ellipse at 50% 42%, rgba(46, 38, 78, .62), rgba(8, 10, 24, .92) 72%); }
.enter-name { background: linear-gradient(180deg, #fff8e6 20%, #f1c56b); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 6px 26px rgba(241, 197, 107, .28)); }
.enter-box::before { content: ""; display: block; width: 9px; height: 9px; margin: 0 auto 18px; transform: rotate(45deg); border: 1px solid var(--gold); box-shadow: 0 0 14px rgba(241, 197, 107, .6); }
.enter-sub::before { content: ""; display: block; width: 96px; height: 1px; margin: 0 auto 14px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
#btnEnter { background: linear-gradient(180deg, rgba(241, 197, 107, .44), rgba(241, 197, 107, .14)); border-color: rgba(241, 197, 107, .78); font-weight: 600; letter-spacing: .04em; box-shadow: 0 12px 36px -12px rgba(241, 197, 107, .65), inset 0 1px 0 rgba(255, 240, 200, .4); transition: box-shadow .25s var(--ease), transform .25s var(--ease), background-color .25s var(--ease); }
#btnEnter:hover, #btnEnter:focus-visible { background: linear-gradient(180deg, rgba(241, 197, 107, .56), rgba(241, 197, 107, .2)); transform: translateY(-1px); box-shadow: 0 16px 40px -12px rgba(241, 197, 107, .85), inset 0 1px 0 rgba(255, 240, 200, .5); }
#btnEnter:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.fallback button { border-color: rgba(241, 197, 107, .6); background: linear-gradient(180deg, rgba(241, 197, 107, .3), rgba(241, 197, 107, .1)); }
@media (prefers-reduced-motion: reduce) {
  .big-btn:hover, .big-btn:focus-visible, #btnEnter:hover, #btnEnter:focus-visible, .actbar button:active { transform: none; }
}
@media (max-width: 560px) {
  .hud-top .pill-room { min-width: 0; flex: 0 1 auto; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 8px; row-gap: 1px; padding: 5px 12px 5px 11px; border-radius: 18px; line-height: 1.2; }
  .hud-top .pill-room svg { grid-row: 1 / span 2; }
  .hud-top .pill-room b { grid-column: 2 / span 2; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .hud-top .pill-room #roomLabel { grid-column: 2; grid-row: 2; font-size: 12px; }
  .hud-top .pill-room #stayLabel { grid-column: 3; grid-row: 2; font-size: 12px; }
  .hud-top .pill-tools { flex: none; }
  .hud-top .pill-tools select { max-width: 78px; }
}
.ap-circle.ap-still span { animation: none; transform: scale(1.1); box-shadow: 0 0 24px rgba(241, 197, 107, .45); }
