:root{font-family:-apple-system,BlinkMacSystemFont,Apple SD Gothic Neo,Noto Sans KR,sans-serif;color:#f2f5f1;background:#0b1c30;font-synthesis:none;--canvas:#0b1c30;--surface:#142a3b;--surface-raised:#203b4b;--text-primary:#f2f5f1;--text-secondary:#b8cbd5;--action:#d6ed99;--action-text:#193526;--border:#48616e;--danger:#ffc5b9;--space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-6:24px;--space-8:32px;--radius:12px;color-scheme:dark}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer;color:inherit;border:0;background:none;min-height:44px;-webkit-tap-highlight-color:transparent}button:disabled{opacity:.55;cursor:wait}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--action);outline-offset:3px}button:hover:not(:disabled){filter:brightness(1.12)}button:active:not(:disabled){transform:translateY(1px)}input,select{border:1px solid var(--border);border-radius:var(--radius);background:var(--canvas);color:var(--text-primary);padding:12px;min-height:48px;width:100%;font-size:1rem}h1,h2,p{margin:0}small{font-size:.75rem}.game-shell{height:100dvh;min-height:360px;position:relative;overflow:hidden}.scene{position:absolute;inset:0}.scene canvas{display:block;width:100%;height:100%}.lobby-shade{position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,rgba(11,28,48,.18),transparent 34%,rgba(11,28,48,.05) 47%,rgba(11,28,48,.9) 82%,#0b1c30)}.lobby-header{position:absolute;top:max(72px,calc(env(safe-area-inset-top) + 60px));left:24px;right:24px;pointer-events:none}.eyebrow{font-size:.58rem;font-weight:700;letter-spacing:.18em;color:#274959;margin-bottom:8px}.lobby-header h1{font-size:clamp(2.6rem,11vw,3.5rem);font-weight:900;letter-spacing:-.065em;line-height:1.1;color:#173b4c;white-space:nowrap}.lobby-header h1 span{font-weight:400}.lobby-header h1 i{font-style:normal;font-size:.35em;vertical-align:top;margin:4px 0 0 8px;display:inline-block;color:#487469}.lobby-header p{color:#3e5f6b;font-size:.86rem;margin-top:12px;letter-spacing:-.03em}.lobby-topline{position:absolute;top:max(16px,env(safe-area-inset-top));left:24px;right:16px;display:flex;align-items:center;gap:8px;font-size:.72rem;color:#21495c;font-weight:600}.lobby-topline button{margin-left:auto}.live-dot{width:6px;height:6px;background:#a2cf82;border-radius:50%;display:inline-block;flex-shrink:0;box-shadow:0 0 0 3px #a2cf821b}.lobby-topline .live-dot{background:#3e7664}.live-dot.offline{background:#efb78c}.icon-button{width:44px;height:44px;border-radius:50%;font-size:1.25rem;background:#e4eff02e;display:grid;place-items:center}.lobby-menu{position:absolute;left:24px;right:24px;bottom:max(24px,calc(env(safe-area-inset-bottom) + 16px));max-width:420px}.identity-row{display:flex;align-items:center;gap:12px;margin-bottom:16px}.identity-mark{height:40px;width:40px;display:grid;place-items:center;border:1px solid #b8cbd54d;border-radius:50%;font-weight:800;font-style:italic;font-size:1.2rem}.nickname-button{text-align:left;display:flex;flex-direction:column;padding:0;justify-content:center;font-weight:600;gap:4px}.nickname-button>span{font-size:.65rem;color:var(--text-secondary);font-weight:400}.course-badge{margin-left:auto;text-align:right;font-size:.65rem;line-height:1.5;color:#cedad9}.start-button{display:flex;align-items:center;justify-content:space-between;width:100%;height:66px;background:var(--action);color:var(--action-text);border-radius:4px;font-weight:800;font-size:1.4rem;padding:0 22px;letter-spacing:-.04em;box-shadow:0 6px 32px #071d2630}.start-button>span{font-weight:400;font-size:1.8rem}.lobby-nav{display:grid;grid-template-columns:1fr 1fr 1fr;margin-top:12px;border-bottom:1px solid #aec0c52f;padding-bottom:12px;gap:4px}.lobby-nav button{font-size:.85rem;padding:8px 0}.lobby-nav small{color:var(--text-secondary);margin-left:4px}.lobby-footnote{font-size:.62rem;color:#afc1cc;margin-top:16px;letter-spacing:.025em}.altitude-note{display:none;pointer-events:none}.notice{position:absolute;z-index:12;left:16px;right:16px;top:max(170px,calc(env(safe-area-inset-top) + 165px));background:#142a3bf5;border:1px solid #72939f;padding:12px 44px 12px 16px;border-radius:12px;font-size:.85rem;line-height:1.6;max-width:600px;margin:auto;box-shadow:0 8px 24px #0b1c3033}.notice button{position:absolute;right:0;top:0;width:44px}.game-header{position:absolute;top:max(12px,env(safe-area-inset-top));left:16px;right:16px;display:flex;justify-content:space-between;align-items:center}.game-header .icon-button{background:#112d43c9}.channel-pill{display:flex;align-items:center;gap:8px;padding:10px 14px;background:#112d43c9;border:1px solid #d8e6ee30;border-radius:24px;font-size:.75rem}.channel-pill>span:last-child{color:#bed2dd;margin-left:4px}.ride-info{position:absolute;top:max(72px,calc(env(safe-area-inset-top) + 65px));left:20px;color:#1a3d50;pointer-events:none;display:flex;flex-direction:column;gap:5px}.ride-info>strong{font-size:2rem;line-height:1;font-weight:800;font-variant-numeric:tabular-nums}.ride-info small{font-weight:500;font-size:.65rem;margin-left:5px}.ride-info>span{font-size:.68rem;font-weight:600}.course-track{height:3px;background:#264b6333;width:105px;margin-top:3px;border-radius:4px;overflow:hidden}.course-track i{display:block;background:#406961;height:100%}.actor-labels{position:absolute;inset:0;pointer-events:none;overflow:hidden}.actor-label{position:absolute;transform:translate(-50%,-100%);text-align:center;white-space:nowrap;font-size:.65rem;text-shadow:0 1px 4px #102b39}.actor-label>span{display:inline-block;background:#173242c2;padding:4px 8px;border-radius:8px}.npc-label>span{background:#e1d5b8;color:#4b3a26;text-shadow:none}.speech-bubble{white-space:normal;max-width:200px;min-width:100px;margin-bottom:6px;background:#f2f5f1;color:#1f3442;border-radius:12px;padding:10px;line-height:1.5;font-size:.75rem;text-shadow:none;box-shadow:0 3px 12px #0b1c302e}.riding-controls{position:absolute;bottom:max(84px,calc(env(safe-area-inset-bottom) + 76px));left:20px;right:16px;display:flex;align-items:end;justify-content:space-between;pointer-events:none}.joystick{position:relative;pointer-events:auto;height:136px;width:136px;flex-shrink:0;border-radius:50%;border:1px solid #d4e4eb66;background:radial-gradient(#15384e38,#15384e66);touch-action:none;user-select:none;box-shadow:inset 0 0 0 17px #e7f6ff07}.joystick-knob{position:absolute;left:43px;top:43px;width:50px;height:50px;border-radius:50%;background:#edf5f1a6;border:1px solid #fbfffaad;box-shadow:0 4px 10px #102b3945;pointer-events:none}.pad-up{position:absolute;top:12px;left:54px;font-size:.6rem;color:#e7f5f7}.pad-left,.pad-right{position:absolute;top:47px;color:#deedf1;font-size:1.5rem}.pad-left{left:10px}.pad-right{right:10px}.action-buttons{display:grid;grid-template-columns:68px 68px;grid-template-rows:56px 68px;gap:8px;pointer-events:auto;align-items:center}.action-buttons button{border:1px solid #d2e2e76b;background:#17364bd4;border-radius:50%;width:68px;height:68px;font-size:.82rem;touch-action:none;user-select:none;box-shadow:0 3px 12px #0b1c3019;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}.action-buttons .hold-button{grid-column:1/3;border-radius:28px;width:144px;height:48px;color:#183642;background:#edf4f1e8;font-weight:700}.action-buttons .punch-button{background:#d6ed99e8;border-color:#d6ed99;color:#26452f;font-weight:700}.action-buttons small{font-size:1.1rem}.hold-button:active{background:#bfdc88}.social-controls{position:absolute;bottom:max(16px,calc(env(safe-area-inset-bottom) + 8px));left:16px;right:16px;display:flex;gap:6px;justify-content:center}.social-controls button{border:1px solid #d2e2e74f;background:#16354add;border-radius:22px;padding:0 12px;font-size:.75rem}.social-controls button:first-child{background:#edf4f1ee;color:#183642;font-weight:600}.social-controls span{margin-left:5px}.context-actions{position:absolute;bottom:max(240px,calc(env(safe-area-inset-bottom) + 232px));left:0;right:0;display:flex;justify-content:center;pointer-events:none}.context-actions button{pointer-events:auto;background:#e4edddf2;color:#23452f;box-shadow:0 4px 24px #0b1c3026;padding:12px 20px;border-radius:24px;font-size:.85rem;font-weight:700}.context-actions span{font-size:.65rem;border:1px solid #55736370;border-radius:4px;padding:2px 4px;margin-left:8px}.recent-messages{position:absolute;top:135px;right:16px;width:min(52vw,260px);pointer-events:none;text-align:right}.recent-messages p{font-size:.65rem;color:#244856;background:#edf4f1b8;border-radius:8px;padding:6px 8px;margin:4px 0;line-height:1.5}.recent-messages strong{color:#1c4238}dialog{background:#142a3bf5;color:var(--text-primary);border:1px solid #6b899648;border-radius:24px;padding:0;width:calc(100% - 24px);max-width:460px;max-height:min(85dvh,760px);box-shadow:0 30px 100px #07172766}dialog::backdrop{background:#081c337a;backdrop-filter:blur(5px)}.panel-heading{display:flex;align-items:center;justify-content:space-between;padding:16px 16px 12px 24px;border-bottom:1px solid #a8bbc32e;position:sticky;top:0;background:#142a3b;z-index:1}.panel-heading h2{font-size:1.25rem;letter-spacing:-.04em}.panel-content{padding:24px;display:flex;flex-direction:column;gap:20px;font-size:.9rem;line-height:1.6}.field{display:flex;flex-direction:column;gap:8px;font-weight:600}.field input,.field select{font-weight:400}fieldset{margin:0;padding:0;border:0;min-width:0}legend{margin-bottom:8px;font-weight:600}.choices{display:flex;gap:8px;margin-bottom:8px}.choices button{flex:1;border:1px solid var(--border);border-radius:10px;padding:8px 4px;font-size:.82rem}.choices button[aria-pressed=true],.channel-row[aria-pressed=true]{color:var(--action);border-color:var(--action);background:#d6ed9910}.hint{font-size:.78rem;color:var(--text-secondary);font-weight:400}.channel-row{display:flex;justify-content:space-between;gap:8px;align-items:center;border:1px solid var(--border);padding:12px 16px;border-radius:12px;width:100%;font-size:.85rem}.channel-row span{color:var(--text-secondary);font-size:.75rem}.setting-row{display:flex;align-items:center;justify-content:space-between;min-height:44px;font-weight:600}.setting-row input{width:23px;height:23px;min-height:0;accent-color:var(--action)}.diagnostics{color:var(--text-secondary);font-size:.75rem;border-top:1px solid var(--border);padding-top:16px}.wide-button{width:100%;border:1px solid var(--border);border-radius:12px;padding:10px;font-size:.85rem}.leave-button{color:var(--danger)}.guide{display:grid;grid-template-columns:1fr 1.5fr;margin:0;gap:14px 8px}.guide dt{font-weight:600}.guide dd{margin:0;color:var(--text-secondary)}.conversation{min-height:140px;max-height:40dvh;overflow:auto;display:flex;flex-direction:column;gap:12px}.conversation>p:not(.hint){display:flex;flex-direction:column;gap:3px}.conversation strong{font-size:.7rem;color:var(--text-secondary)}.conversation span{font-size:.85rem;line-height:1.6}.conversation .npc-message{padding:12px;border-radius:12px;background:#d6ed9912}.conversation .npc-message strong{color:var(--action)}.chat-form{display:flex;gap:8px}.chat-form input{min-width:0}.chat-form button{border-radius:12px;background:var(--action);color:var(--action-text);font-weight:700;min-width:70px}.npc-state{font-size:.75rem;color:var(--text-secondary);display:flex;align-items:center;gap:8px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(min-width:760px),(orientation:landscape)and (min-width:600px){.lobby-header{top:17%;left:7%;right:auto}.lobby-header h1{font-size:clamp(3rem,5.5vw,5.8rem)}.eyebrow{font-size:.65rem}.lobby-topline{left:7%;right:4%}.lobby-menu{left:7%;right:auto;width:340px;bottom:8%}.lobby-shade{background:linear-gradient(90deg,#0b1c3099,transparent 65%),linear-gradient(0deg,#0b1c307d,transparent 40%)}.lobby-header h1,.lobby-header p,.eyebrow{color:#edf4f1;text-shadow:0 2px 15px #17394c33}.lobby-topline{color:#e6f0f0}.altitude-note{display:flex;position:absolute;right:5%;bottom:8%;flex-direction:column;align-items:flex-end}.altitude-note>span{font-size:.6rem;letter-spacing:.2em}.altitude-note strong{font-size:3.5rem;line-height:1.3;font-weight:300}.altitude-note strong span{font-size:1rem}.altitude-note small{font-size:.65rem;color:#e3ecef}.riding-controls{left:32px;right:32px;bottom:30px}.social-controls{left:210px;right:210px;bottom:24px}.context-actions{bottom:90px}.recent-messages{top:80px}.notice{top:75px}}@media(orientation:landscape)and (max-height:580px){.lobby-header{top:20%;left:5%}.lobby-header h1{font-size:2.6rem}.lobby-header p{font-size:.7rem;margin-top:8px}.lobby-menu{left:5%;width:280px;bottom:6%}.identity-row{margin-bottom:8px}.start-button{height:52px;font-size:1.1rem}.lobby-nav{margin-top:4px;padding-bottom:0}.lobby-footnote,.lobby-header .eyebrow{display:none}.joystick{height:112px;width:112px}.joystick-knob{left:31px;top:31px}.pad-up{left:42px}.pad-left,.pad-right{top:36px}.riding-controls,.social-controls{bottom:14px}.action-buttons{grid-template-rows:44px 58px;grid-template-columns:58px 58px;gap:6px}.action-buttons button{height:58px;width:58px}.action-buttons .hold-button{height:42px;width:122px}.context-actions{bottom:72px}.ride-info{top:70px}.recent-messages{top:60px;width:220px}.recent-messages p{font-size:.6rem}dialog{max-height:calc(100dvh - 16px)}}@media(max-width:359px){.lobby-menu{left:16px;right:16px}.lobby-header{left:16px}.lobby-header h1{font-size:2.6rem}.joystick{height:112px;width:112px}.joystick-knob{left:31px;top:31px}.pad-up{left:42px}.riding-controls{left:12px;right:12px}.social-controls{gap:4px;left:8px;right:8px}.social-controls button{padding:0 10px}.panel-content{padding:20px 16px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}.live-dot{box-shadow:none}}
