:root{color-scheme:dark;font:16px/1.5 system-ui,sans-serif;color:#fff3dd;background:#101326}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{margin:0;overscroll-behavior:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}*:not(input):not(textarea):not(select):not([contenteditable]){user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}input,textarea,select{user-select:text;-webkit-user-select:text;-webkit-touch-callout:default}img,canvas,a,button{-webkit-user-drag:none}button{font:inherit;font-weight:650;border:1px solid #526079;border-radius:8px;background:#192338;color:inherit;padding:.65em 1em;cursor:pointer;touch-action:manipulation}button:hover,button:focus-visible,button[aria-pressed=true]{border-color:#74ffda;color:#9dffe1}button:focus-visible{outline:2px solid white}header{position:absolute;z-index:2;pointer-events:none;top:clamp(14px,4vh,42px);left:5vw;text-shadow:0 2px 8px #05051a}small{letter-spacing:.18em;color:#9ce9ce;font:700 .72rem/1.4 monospace}h1{font-size:clamp(18px,3vw,32px);margin:3px 0}i{font: .6em serif;color:#ffc08f}#lang-toggle{pointer-events:auto;margin-top:8px;padding:.35em .78em;font-size:.78rem;border-radius:99px;background:#101326db;border:1px solid rgba(156,233,206,.45);color:#9ce9ce}body>header{right:3vw;display:flex;flex-wrap:wrap;align-items:flex-start;gap:4px 16px}body>header>nav{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px;margin-inline-start:auto;pointer-events:auto}body:has(#hall[hidden],#hall.intro,#hall.editing)>header>nav{display:none}#lobby{position:relative;overflow:hidden;min-height:100svh;display:grid;place-items:center;background:#040612}#lobby-bg{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;pointer-events:none;z-index:0}#lobby[hidden],#hall[hidden]{display:none!important}.ticket,dialog{position:relative;z-index:1;max-width:90vw;padding:clamp(24px,6vw,64px);border:1px solid #7c7397;border-radius:14px;background:linear-gradient(130deg,#1a2338d1,#0f1122e0);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);box-shadow:0 16px 80px #0009}.ticket h2{font-size:clamp(48px,9vw,100px);margin:.15em 0;letter-spacing:-.09em}.ticket p{color:#d7cdd0;margin-bottom:1.2em}.name-row{display:flex;flex-direction:column;gap:8px;margin:0 0 10px;font-size:13px;letter-spacing:.12em;color:#9ce9ce}#visitor-name{width:100%;box-sizing:border-box;font:inherit;letter-spacing:0;color:#fff3dd;background:#101326;border:1px solid #7c7397;border-radius:10px;padding:12px 14px}#name-note{min-height:1.2em;margin:0 0 14px;font-size:13px;color:#f6c884}#enter,#play,#next{background:#f6c884;color:#211526;border-color:transparent}#hall,#viewport{position:fixed;top:0;right:0;bottom:0;left:0}canvas{display:block}aside{position:absolute;z-index:2;bottom:max(12px,3vh,env(safe-area-inset-bottom,0px));left:50%;transform:translate(-50%);width:max-content;max-width:96vw;background:#0e1628ed;border:1px solid #526079;border-radius:14px;padding:12px 16px;text-align:center}#stations,#pads,footer{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin:8px 0}#hint{font-size:.84rem;margin:4px;color:#d9dae8;white-space:pre-line;line-height:1.45}dialog{width:min(520px,92vw);color:inherit;text-align:center}dialog::backdrop{background:#050718d9}dialog h2{font-size:2rem;margin:.3em}#track{position:relative;height:24px;background:#080f22;border:1px solid #5a5477;overflow:hidden;border-radius:6px}#track span{position:absolute;left:45%;width:10%;height:100%;background:#338c7b}#track b{position:absolute;left:0;width:4px;height:100%;background:#ffe0a1;transform:translate(-50%)}#pads button{flex:1;min-height:60px}footer{margin-top:18px}[hidden]{display:none!important}.arcade-shell{position:fixed;top:0;right:0;bottom:0;left:0;z-index:200;display:flex;flex-direction:column;background:#111;color:#eee;font-family:sans-serif}.arcade-shell.hidden{display:none}.arcade-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 12px;font-size:14px;line-height:1.4}.arcade-bar p{margin:0;min-width:0}.arcade-bar button,.arcade-net button{flex:0 0 auto;white-space:nowrap;border:1px solid #648b8c;border-radius:9px;background:#1b323b;color:#f1f6f7;padding:8px 12px;font:inherit}.arcade-net{display:flex;gap:8px;align-items:center;padding:0 12px 8px;flex-wrap:wrap}.arcade-net input,.arcade-net select{flex:1 1 8rem;min-width:0;border:1px solid #648b8c;border-radius:9px;background:#0c1216;color:#f1f6f7;padding:8px 10px;font:inherit}.arcade-status{margin:0;padding:0 12px 8px;font-size:13px;line-height:1.4;color:#c9d4d4;min-height:1.2em}.arcade-screen{width:min(100vw,calc((100dvh - 11rem)*4/3));height:min(75vw,calc(100dvh - 11rem));margin-inline:auto;position:relative;flex:0 0 auto}#arcadeGame{position:absolute;top:0;right:0;bottom:0;left:0}@media(max-width:500px){.arcade-screen,#arcadeGame{overflow:visible}.arcade-shell .ejs_virtualGamepad_parent{transform:translateY(240px)}}.bubble-duo header{position:relative;inset:auto;pointer-events:auto;z-index:4;text-shadow:none}.bubble-duo .duo-stage{overflow:hidden}.bubble-duo .duo-screen{z-index:1}.arcade-bar{position:relative;inset:auto;pointer-events:auto;z-index:3;text-shadow:none}#viewport canvas{touch-action:none}#hall.chat-focused{top:var(--chat-top,0px);bottom:auto;height:var(--chat-height,100dvh)}#hall.chat-focused>#viewport{position:absolute}#hall.chat-focused>aside{max-height:calc(var(--chat-height,100dvh) / 2);overflow:auto;background:#0e12246b;-webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:0 8px 24px #03020c52}#hall.chat-focused :is(#hall-message,#hall-log){background:#07081466}#hall.chat-focused #walk-pad{display:none}#hall.chat-focused .hall-bubble:not(.hall-nearest){max-width:min(300px,75vw)}#walk-pad{position:relative;display:flex;align-items:center;justify-content:flex-end;gap:6px}.walk-actions{display:flex;gap:6px}#walk-stick,#walk-jump{display:none}@media(pointer:coarse){#walk-pad{justify-content:space-between}#walk-stick,#walk-jump{display:block}#walk-stick{width:72px;height:72px;position:relative;border-radius:50%;border:1px solid #737399;background:#24243e;touch-action:none}#walk-stick i{position:absolute;top:32%;right:32%;bottom:32%;left:32%;border-radius:50%;background:#9debd8;pointer-events:none}#walk-pad button{min-width:44px;min-height:44px}}#walk-motion{touch-action:none}#walk-motion[aria-expanded=true]{border-color:#9ce9ce;color:#9ce9ce}.hall-motion-category{display:block;color:#a8e2d5;font-size:.7rem;line-height:1.2}.hall-motion-wheel{position:absolute;z-index:3;right:0;bottom:calc(100% + 8px);background:#14192e;border:1px solid #665c83;border-radius:12px;box-shadow:0 10px 30px #05051ace;display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);gap:4px;width:min(248px,82vw);padding:8px;pointer-events:none}.hall-motion-slot,.hall-motion-center{display:grid;place-items:center;min-height:35px;padding:2px;text-align:center;font-size:.78rem;font-weight:650}.hall-motion-slot{background:#262641;border:1px solid #4c456b;border-radius:7px;color:#f3f1fa}.hall-motion-slot.up{grid-area:1 / 2}.hall-motion-slot.left{grid-area:2 / 1}.hall-motion-slot.right{grid-area:2 / 3}.hall-motion-slot.down{grid-area:3 / 2}.hall-motion-center{grid-area:2 / 2;color:#ada8c8}.hall-motion-slot.selected{border-color:#9ce9ce;background:#9ce9ce;color:#102628}#hall.editing aside,.av-ed.hidden{display:none}#hall.intro :is(aside,#hall-bubbles,#walk-pad){display:none!important}#ark-intro{position:fixed;inset:auto 0 max(20px,calc(env(safe-area-inset-bottom,0px) + 16px)) 0;z-index:5;display:flex;align-items:flex-end;justify-content:center;gap:14px;padding:0 4vw;pointer-events:none}.ark-intro-card{max-width:min(660px,86vw);padding:16px 22px;border-radius:14px;background:linear-gradient(160deg,#140e22e0,#080a16eb);border:1px solid rgba(210,165,104,.55);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);box-shadow:0 12px 40px #000000d9;text-align:center}#ark-intro-tag{display:block;color:#f6c884;font:700 .72rem/1.4 monospace;letter-spacing:.16em;margin-bottom:6px}#ark-intro-text{margin:0;color:#fff3dd;font-size:clamp(.92rem,2vw,1.12rem);line-height:1.5;text-shadow:0 1px 6px rgba(0,0,0,.8)}#ark-intro-skip{pointer-events:auto;flex:none;touch-action:manipulation;min-height:44px;background:#101224e0;border:1px solid rgba(210,165,104,.55);color:#f6c884;padding:.6em 1.1em;border-radius:10px;font-size:.86rem}@media(max-width:640px){#ark-intro{flex-direction:column;align-items:center;gap:10px}.ark-intro-card{max-width:92vw;width:100%;padding:12px 16px}}.av-ed{position:fixed;z-index:8;inset:1rem 1rem 1rem auto;width:min(360px,94vw);background:#17162af2;border:1px solid #736a91;border-radius:15px;padding:14px;display:flex;flex-direction:column;gap:8px}.av-ed .av-options{overflow:auto;min-height:0;flex:1}.av-head,.av-row,.av-step,.av-range,.av-gender,.av-foot,.av-tabs,.av-sw{display:flex;align-items:center;gap:6px}.av-head,.av-row{justify-content:space-between}.av-row{margin:.4rem 0}.av-row.col{display:block}.av-sw,.av-gender{flex-wrap:wrap}.av-head h2{margin:0}.av-kick,.av-note{font-size:.75rem;color:#a8d5d2}.av-ed .on,#avSave{border-color:#82f5da}.av-ed button{padding:.45em .6em}.av-ed .sw{min-width:26px;height:26px;border-radius:20px}.av-foot{justify-content:flex-end}@media(max-width:760px){.av-ed{inset:auto 2vw 1vh;width:96vw;max-height:49dvh}.av-ed button{font-size:.85rem}}@media not all and (orientation:landscape)and (max-height:560px){.bubble-duo .duo-stage{grid-template-rows:minmax(0,1fr) auto;align-content:stretch}.bubble-duo .duo-screen{width:auto;max-width:100%;height:100%;justify-self:center}}@media(max-width:620px){header{top:10px}body>header{right:2vw}body>header>nav{width:100%}nav button,#stations button{font-size:12px;padding:8px}header small{font-size:8px}aside{padding:8px}#stations{gap:4px}}#hall>aside{width:min(540px,96vw);padding:10px 14px;text-align:left;background:linear-gradient(165deg,#181028e6,#0a0c1af2);border:1px solid rgba(210,165,104,.46);border-radius:16px;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);box-shadow:0 16px 46px #03020cd9,0 0 24px #74ffda14,inset 0 1px #f6c88447}.hall-bar,.hall-voice-row,#hall-chat{display:flex;align-items:center;gap:8px}.hall-bar{position:relative;padding-bottom:6px;border-bottom:1px solid rgba(210,165,104,.22)}#presence,.hall-voice-row>span,.hall-voice-row>strong,#hall-message{flex:1;min-width:0}#presence{display:flex;align-items:center;gap:7px;color:#f6c884;font:650 .76rem/1.3 monospace;letter-spacing:.08em}#presence:before{content:"";width:7px;height:7px;border-radius:50%;flex:none;background:#74ffda;box-shadow:0 0 8px #74ffda}#hall-games[open]{padding-bottom:2px}#hall-games[open] #stations{position:relative}#hall-games summary,#hall-history summary{cursor:pointer;color:#9ce9ce;font-size:.82rem;font-weight:650;letter-spacing:.06em;display:inline-flex;align-items:center;gap:7px;-webkit-user-select:none;user-select:none}#hall-history summary:before{content:"◆";color:#f6c884;font-size:.7rem;text-shadow:0 0 8px rgba(246,200,132,.7)}.log-kicker{font:700 .66rem/1 monospace;letter-spacing:.16em;color:#211526;background:linear-gradient(135deg,#f8d294,#d29b4d);padding:2px 6px;border-radius:4px}#hall-games[open]{flex:1}#hall-games[open] #stations{margin:4px 0;justify-content:flex-start}#hall>aside button{padding:.38em .68em;font-size:.84rem;min-height:36px;border:1px solid rgba(210,165,104,.38);background:linear-gradient(180deg,#241b38e6,#141126f2);transition:border-color .15s,box-shadow .15s,transform .1s}#hall>aside button:hover,#hall>aside button:focus-visible{border-color:#74ffda;box-shadow:0 0 12px #74ffda3d}#hall>aside #play,#hall-accept{background:linear-gradient(135deg,#f9d595,#d89d4c);color:#211526;border-color:#ffe5b4;box-shadow:0 0 14px #f6c88459}#hint{font-size:.8rem;margin:6px 2px 4px;color:#d6d4e6;white-space:pre-line;line-height:1.45}#hall-chat{margin-top:6px}#hall-message{font:inherit;font-size:.88rem;padding:.46em .78em;border:1px solid rgba(210,165,104,.34);border-radius:10px;background:#070814d6;color:#fff3dd;box-shadow:inset 0 2px 8px #0000008c;transition:border-color .15s,box-shadow .15s}#hall-message::placeholder{color:#d6cdda85}#hall-message:focus{outline:none;border-color:#f6c884;box-shadow:inset 0 2px 8px #0000008c,0 0 0 2px #f6c88438}#hall-message:disabled{opacity:.5;cursor:default}.hall-voice-row{flex-wrap:wrap;padding:6px 0;border-top:1px solid rgba(210,165,104,.22);font-size:.85rem}.hall-voice-row>span,.hall-voice-row>strong{min-width:6rem;overflow-wrap:anywhere}#hall-social-note{font-size:.82rem;margin:4px 0;color:#f6c884}#hall-history{margin:6px 0 2px}#hall-log{list-style:none;margin:6px 0 2px;padding:8px 10px;max-height:17dvh;overflow:auto;background:linear-gradient(180deg,#070814e0,#0e0b1ceb);border:1px solid rgba(210,165,104,.28);border-radius:10px;box-shadow:inset 0 2px 12px #000000a6;font-size:.84rem;line-height:1.45;overflow-wrap:anywhere;scrollbar-width:thin;scrollbar-color:rgba(210,165,104,.45) transparent}#hall-log:empty:before{content:"기록된 항해일지가 아직 없어요. 동료 승객에게 인사를 건네 보세요.";display:block;color:#d6cdda7a;font-size:.8rem;text-align:center;padding:6px 0}#hall-log li{display:flex;align-items:baseline;gap:7px;padding:4px 8px;margin-bottom:4px;border-left:2px solid rgba(246,200,132,.65);border-radius:0 6px 6px 0;background:#ffffff08;animation:log-in .18s ease-out}#hall-log li:last-child{margin-bottom:0}#hall-log time{font:600 .7rem/1 monospace;color:#9ce9cea6;flex:none}#hall-log strong{color:#f6c884;font-weight:700;flex:none;text-shadow:0 0 8px rgba(246,200,132,.25)}#hall-log span{color:#f4ecdf;min-width:0}@keyframes log-in{0%{opacity:0;transform:translateY(3px)}to{opacity:1;transform:none}}#hall-bubbles{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;pointer-events:none;overflow:hidden}#hall.editing #hall-bubbles{visibility:hidden}.hall-bubble{position:absolute;transform:translate(-50%,-100%);max-width:min(230px,48vw);width:max-content;padding:6px 10px;border-radius:10px;background:#fff3dd;color:#171728;text-align:center;overflow-wrap:anywhere;line-height:1.25;font-size:.88rem;box-shadow:0 2px 12px #05071890}.hall-bubble:after{content:"";position:absolute;top:100%;left:calc(50% - 5px);border:5px solid transparent;border-top-color:#fff3dd}.hall-nearest{background:#1b3a39;color:#9dffe1;border:1px solid #9ce9ce;font-size:.78rem}.hall-nearest:after{border-top-color:#9ce9ce}.bubble-duo .duo-connection{z-index:2}@media(pointer:coarse){#hall>aside{bottom:max(4px,env(safe-area-inset-bottom))}#hall-message{font-size:16px}#hall>aside button{min-height:44px}}#arcade-progress{position:fixed;width:min(620px,92vw);max-height:85dvh;padding:clamp(14px,4vw,24px);text-align:left;overflow:auto;border-color:#9f8063;background:linear-gradient(155deg,#282135,#111528 55%)}#arcade-progress h2{margin:0;font-size:clamp(1.25rem,5vw,1.65rem)}#arcade-progress h3{margin:0 0 8px;font-size:1rem}#arcade-progress-status:empty{display:none}.arcade-progress-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px 12px}.arcade-level-card{margin-top:16px;padding:14px;border:1px solid #6d5b61;border-radius:12px;background:linear-gradient(115deg,#49333b,#20263e 70%)}#arcade-level{font-size:1.1rem;color:#ffdfaa}#arcade-level-total,#arcade-level-next,#arcade-board-pane>p,.arcade-record-detail>span{color:#d0ccdd;font-size:.82rem}#arcade-level-bar{display:block;width:100%;height:8px;margin:10px 0 6px;border:0;border-radius:8px;overflow:hidden;accent-color:#9ce9ce;background:#171829}#arcade-level-bar::-webkit-progress-bar{background:#171829}#arcade-level-bar::-webkit-progress-value{background:linear-gradient(90deg,#f6c884,#9ce9ce);border-radius:8px}#arcade-level-bar::-moz-progress-bar{background:linear-gradient(90deg,#f6c884,#9ce9ce);border-radius:8px}#arcade-level-next{margin:0}.arcade-progress-tabs{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0 6px;padding-bottom:10px;border-bottom:1px solid #403852}.arcade-progress-tabs button{min-height:44px;padding:.45em .72em;font-size:.88rem}.arcade-progress-tabs button[aria-pressed=true]{background:#263d45}#arcade-logout{margin-inline-start:auto}#arcade-progress-content section{margin-top:14px}#arcade-board-game{font:inherit;color:inherit;min-height:40px;padding:4px 6px;border:1px solid #625878;border-radius:8px;background:#192338}#arcade-board,#arcade-history{display:grid;gap:6px;list-style:none;padding:0;margin:0}.arcade-record{display:flex;align-items:center;gap:8px;min-width:0;padding:9px 11px;border:1px solid #3c3650;border-radius:10px;background:#1b2034}.arcade-record-detail{flex:1;min-width:0;display:grid;overflow-wrap:anywhere}.arcade-result{flex:none;border-radius:999px;padding:2px 9px;background:#35334c;color:#ded6f0;font-size:.78rem;font-weight:700}.arcade-result.win{background:#203f39;color:#a3f3d6}.arcade-result.loss{background:#49293c;color:#ffc5d0}.arcade-ranking-row{flex-wrap:wrap}.arcade-rank{display:grid;place-items:center;flex:0 0 2rem;height:2rem;background:#2f3148;color:#e7def5;border-radius:8px;font:700 .9rem monospace}.arcade-ranking-row:first-child .arcade-rank{background:#583f2e;color:#ffdfaa}.arcade-ranking-stats{font-size:.8rem;color:#9ce9ce;font-variant-numeric:tabular-nums}.arcade-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(56px,1fr));gap:6px;margin:0 0 16px}.arcade-stat{min-width:0;text-align:center;padding:8px 3px;background:#1b2538;border:1px solid #3e4b63;border-radius:9px}.arcade-stat dt{color:#d0ccdd;font-size:.78rem}.arcade-stat dd{margin:2px 0 0;color:#9ce9ce;font-size:1.15rem;font-weight:750;font-variant-numeric:tabular-nums}@media(max-width:480px){.arcade-ranking-stats{flex-basis:100%;padding-inline-start:calc(2rem + 8px)}}#arcade-google{min-height:44px}#lang-toggle{position:fixed;top:calc(max(14px,env(safe-area-inset-top,0px)) + 34px);right:16px;z-index:5;min-height:36px;padding:0 14px;font-size:13px}body:has(#hall:not([hidden])) #lang-toggle{display:none}.ark-loading-poster{position:fixed;top:0;right:0;bottom:0;left:0;width:100%;height:100%;object-fit:contain;background:#040714;pointer-events:none;z-index:4}#audio-choice{position:fixed;width:min(380px,90vw);padding:24px}#audio-choice h2{margin:0 0 16px;font-size:1.25rem}#audio-choice>div{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}#audio-on{background:#f6c884;color:#211526;border-color:transparent}
