*{box-sizing:border-box}html,body{color:#fff;background:#1b1612;height:100%;margin:0;font-family:Segoe UI,system-ui,sans-serif;overflow:hidden}#scene{width:100%;height:100%;display:block;position:fixed;inset:0}#hud{pointer-events:none;text-shadow:0 1px 3px #000000b3;position:fixed;top:16px;left:16px}#title{letter-spacing:.02em;font-size:20px;font-weight:600}#view-label,#time-label,#guide-progress{opacity:.9;margin-top:4px;font-size:13px}#bottom{pointer-events:none;flex-direction:column;align-items:center;gap:10px;width:min(560px,100% - 32px);display:flex;position:fixed;bottom:16px;left:50%;transform:translate(-50%)}#hints{pointer-events:none;background:#140e0a8c;border-radius:10px;flex-wrap:wrap;justify-content:center;gap:6px 16px;padding:8px 16px;font-size:13px;display:flex}#hints b{color:#ffd27a;font-weight:600}#crosshair{pointer-events:none;background:#fffc;border-radius:50%;width:6px;height:6px;margin:-3px 0 0 -3px;display:none;position:fixed;top:50%;left:50%;box-shadow:0 0 2px #000c}body.first-person #crosshair{display:block}#start{-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#140e0a8c;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}#start.hidden{display:none}#start .card{text-align:center;background:#281a10e6;border:1px solid #ffd27a59;border-radius:14px;padding:32px 40px}#start h1{color:#ffd27a;margin:0 0 8px;font-size:28px}#start p{opacity:.9;margin:0 0 20px}#start-btn{color:#2a1a0e;cursor:pointer;background:#ffd27a;border:0;border-radius:8px;padding:10px 28px;font-size:16px;font-weight:600}#start-btn:hover{background:#ffe0a0}html,body{overscroll-behavior:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}#scene,#joystick{touch-action:none}#touch-ui,#touch-hint{display:none}#joystick{left:max(24px, env(safe-area-inset-left));bottom:max(28px, env(safe-area-inset-bottom));background:#140e0a59;border:2px solid #ffffff73;border-radius:50%;width:132px;height:132px;position:fixed}#knob{pointer-events:none;background:#ffd27ad9;border-radius:50%;width:56px;height:56px;margin:-28px 0 0 -28px;position:absolute;top:50%;left:50%;box-shadow:0 2px 6px #0006}#touch-buttons{right:max(16px, env(safe-area-inset-right));bottom:max(36px, env(safe-area-inset-bottom));flex-direction:column;gap:12px;display:flex;position:fixed}#touch-buttons button{color:#fff;background:#140e0a8c;border:1px solid #ffffff73;border-radius:24px;min-height:48px;padding:0 16px;font-size:14px;font-weight:600}#touch-buttons button:active{background:#ffd27a99}#touch-hint{opacity:.9;text-shadow:0 1px 3px #000000b3;pointer-events:none;font-size:13px;position:fixed;top:122px;left:16px;right:124px}@media (pointer:coarse){#touch-ui,#touch-hint{display:block}#hints{display:none}}body.touch #touch-ui,body.touch #touch-hint{display:block}body.touch #hints{display:none}#minimap{opacity:.92;pointer-events:none;border:2px solid #ffffff8c;border-radius:10px;width:168px;height:auto;position:fixed;top:16px;right:16px;box-shadow:0 2px 10px #0006}#minimap.hidden{display:none}#guide{opacity:0;pointer-events:none;background:#281a10e0;border:1px solid #ffd27a66;border-radius:12px;width:100%;padding:14px 18px;transition:opacity .35s,transform .35s;transform:translateY(12px)}#guide.show{opacity:1;transform:none}#guide-title{color:#ffd27a;margin-bottom:4px;font-size:17px;font-weight:600}#guide-text{font-size:14px;line-height:1.5}@media (pointer:coarse){#minimap{width:100px;top:12px;right:12px}#bottom{top:170px;bottom:auto}#guide{padding:10px 14px}#guide-title{font-size:15px}#guide-text{font-size:13px}}#start .card.lobby{width:min(560px,100vw - 24px);max-height:calc(100dvh - 24px);padding:24px 24px 20px;overflow-y:auto}.carousel{touch-action:pan-y;height:300px;margin:8px 0 4px;position:relative}.carousel .track{position:absolute;inset:0 44px;overflow:hidden}.char-card{cursor:pointer;transform-origin:50% 100%;background:radial-gradient(at 50% 85%,#ffd27a29,#0000 70%);border:2px solid #0000;border-radius:14px;width:168px;height:300px;padding:0;transition:transform .35s,opacity .35s,border-color .2s;position:absolute;bottom:0;left:50%}.char-card img{object-fit:contain;pointer-events:none;-webkit-user-select:none;user-select:none;width:100%;height:100%}.char-card.active{background:radial-gradient(at 50% 85%,#ffd27a47,#ffffff0a 75%);border-color:#ffd27a8c}.carousel .nav{color:#ffd27a;cursor:pointer;background:#ffffff0f;border:1px solid #ffd27a4d;border-radius:10px;width:40px;height:56px;margin-top:-28px;font-size:34px;line-height:1;position:absolute;top:50%}.carousel .nav:hover{background:#ffd27a29}.carousel .prev{left:0}.carousel .next{right:0}.char-name{color:#ffd27a;margin-top:10px;font-size:18px;font-weight:600}.char-desc{opacity:.85;min-height:2.6em;margin:4px 0 8px;font-size:13px}.dots{justify-content:center;gap:8px;margin-bottom:16px;display:flex}.dots .dot{cursor:pointer;background:#ffffff4d;border:0;border-radius:50%;width:9px;height:9px;padding:0}.dots .dot.active{background:#ffd27a}#join-form{justify-content:center;gap:8px;display:flex}#player-name{min-width:0;max-width:280px;font:inherit;color:#fff;background:#ffffff14;border:1px solid #ffd27a66;border-radius:8px;outline:none;flex:1;padding:10px 14px;font-size:16px}#player-name:focus{background:#ffffff1f;border-color:#ffd27a}#start-btn:disabled{opacity:.45;cursor:not-allowed}#lobby-online{opacity:.8;min-height:1.4em;margin-top:12px;font-size:13px}#online-label{color:#9fd8ff;margin-top:4px;font-size:13px}@media (height<=640px){.carousel,.char-card{height:200px}.char-card{width:112px}.char-desc{display:none}}#chat{pointer-events:none;flex-direction:column;gap:6px;width:min(340px,100% - 32px);font-size:14px;line-height:1.4;display:flex;position:fixed;bottom:16px;left:16px}#chat.hidden{display:none}#chat-log{flex-direction:column;justify-content:flex-end;max-height:150px;display:flex;overflow:hidden}#chat .line{overflow-wrap:anywhere;background:#140e0a8c;border-radius:9px;flex:none;align-self:flex-start;max-width:100%;margin-top:3px;padding:3px 9px;transition:opacity .6s}#chat .line b{color:#ffd27a;font-weight:600}#chat .line.mine b{color:#a8e0b4}#chat .line.notice{color:#ffffffd9;font-style:italic}#chat .line.old{opacity:0}#chat.open{pointer-events:auto}#chat.open #chat-log{background:#140e0a99;border-radius:10px;max-height:240px;padding:4px;display:block;overflow-y:auto}#chat.open .line{background:0 0;width:fit-content;margin-top:0;padding:1px 6px}#chat.open .line.old{opacity:1}#chat-form{pointer-events:auto;gap:6px;display:flex;position:relative}#chat-input{min-width:0;font:inherit;color:#fff;opacity:.75;-webkit-user-select:text;user-select:text;background:#140e0a73;border:1px solid #ffffff40;border-radius:10px;outline:none;flex:1;padding:8px 12px}#chat-input::placeholder{color:#ffffffbf}#chat-input:focus{opacity:1;background:#1e140ceb;border-color:#ffd27acc}#chat-form button{font:inherit;border:0;border-radius:10px;padding:0 14px;font-weight:600;display:none}#chat-send{color:#2a1a0e;background:#ffd27a}#chat-close{color:#fff;background:#140e0ad9}#chat-note{opacity:0;pointer-events:none;background:#96321eeb;border-radius:8px;padding:4px 10px;font-size:13px;transition:opacity .25s;position:absolute;bottom:calc(100% + 6px);left:0}#chat-note.show{opacity:1}@media (pointer:fine) and (width<=1300px){#chat{bottom:96px}}@media (pointer:coarse){#chat{width:min(270px,100% - 150px);font-size:13px;bottom:176px;left:12px}#chat-log{max-height:96px}#chat-form{display:none}#chat.open{top:max(8px, env(safe-area-inset-top));z-index:5;flex-direction:column-reverse;width:auto;bottom:auto;left:8px;right:8px}#chat.open #chat-form{display:flex}#chat.open #chat-log{background:#140e0ad9;max-height:28vh}#chat-form button{display:block}#chat-input{padding:10px 12px;font-size:16px}#chat-note{top:calc(100% + 6px);bottom:auto}#touch-buttons{gap:8px}#touch-buttons button{min-height:40px}}
