@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;600;800;900&display=swap');
:root{font-family:'Noto Sans KR',sans-serif;color:#fff;background:#101a2f}*{box-sizing:border-box}body{margin:0;overflow:hidden}canvas{position:fixed;inset:0;width:100%;height:100%;touch-action:none}header{position:fixed;top:24px;left:32px;right:32px;display:flex;align-items:center;gap:16px}header b{font-size:21px}em{font-style:normal;color:#c2f56c}header span{font-size:10px;letter-spacing:2px;color:#a5b6cd;margin-right:auto}button,input{font:inherit}button{cursor:pointer;background:#26364e;color:white;border:1px solid #41516a;border-radius:12px;padding:12px 18px;font-weight:600}button:hover{filter:brightness(1.18)}button:disabled{opacity:.4;cursor:default}input{width:100%;background:#0c1629;border:1px solid #405069;color:white;padding:13px;border-radius:10px;outline:none}input:focus{border-color:#c2f56c}.panel{position:absolute;top:50%;left:6%;transform:translateY(-47%);width:355px;padding:28px;background:#152238eb;border:1px solid #35445c;border-radius:24px;box-shadow:0 24px 70px #0004;max-height:80dvh;overflow:auto}.eyebrow{font-size:11px;letter-spacing:2px;color:#c2f56c}h1{font-size:37px;line-height:1.35;margin:16px 0}p{font-size:13px;color:#afbed2;line-height:1.8}label{display:block;font-size:11px;color:#afbed2;margin-top:14px}label input{margin-top:6px}.row{display:flex;gap:8px;margin-top:12px}.row input{min-width:0;flex:1}.row button{white-space:nowrap;font-size:12px}.primary{background:#c2f56c;color:#182527;width:100%;margin-top:14px;border:0}small{display:block;font-size:10px;color:#98a9c0;margin-top:12px;text-align:center}#error{color:#ffad9f;font-size:12px;margin-top:8px}.hidden{display:none!important}footer{position:fixed;bottom:22px;text-align:center;width:100%;font-size:11px;color:#a8b8ce;pointer-events:none}footer span{margin:0 15px;color:#c2f56c}#hud{position:fixed;top:85px;left:50%;transform:translateX(-50%);display:flex;gap:20px;background:#101a2fbb;border:1px solid #405069;border-radius:30px;padding:12px 24px;font-size:13px;white-space:nowrap}#banner{position:fixed;top:28%;width:100%;text-align:center;font-size:42px;font-weight:900;color:#d9ff9a;pointer-events:none;text-shadow:0 4px 10px #000}#roster{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:20px 0}.person{background:#273850;border-radius:9px;padding:12px;font-size:12px;overflow-wrap:anywhere}#sharetext{overflow-wrap:anywhere;font-size:10px}#controls{position:fixed;bottom:max(30px,env(safe-area-inset-bottom));left:34px;right:34px;display:flex;justify-content:space-between;align-items:end;pointer-events:none}#stick{width:126px;height:126px;border-radius:50%;border:2px solid #fff5;background:#20314b66;position:relative;touch-action:none;pointer-events:auto}#knob{width:52px;height:52px;border-radius:50%;background:#c2f56cbb;position:absolute;left:35px;top:35px;pointer-events:none}.actions{display:grid;grid-template-columns:repeat(2,70px);gap:9px;pointer-events:auto}.actions button{height:66px;padding:6px;border-radius:20px;background:#243a53bb;touch-action:none;user-select:none}.actions button[data-action=attack]{background:#d1f58b;color:#192b23}.actions small{margin:1px;font-size:9px;color:inherit}.actions .pressed{transform:scale(.92);border:2px solid white}#rotate{display:none} @media(max-width:900px){header{top:12px;left:18px;right:18px;gap:8px}header b{font-size:16px}header span{display:none}header button{font-size:10px;padding:8px}header button:first-of-type{margin-left:auto}.panel{width:310px;left:4%;padding:18px;max-height:76dvh}h1{font-size:27px;margin:10px 0}.panel p{margin:8px 0}.panel input{padding:8px}.panel label{margin-top:8px}.panel button{padding:9px}footer{display:none}#hud{top:58px;font-size:11px;padding:8px 15px}#banner{font-size:30px}#controls{bottom:16px;left:22px;right:22px}#stick{width:110px;height:110px}#knob{left:27px;top:27px}.actions{grid-template-columns:repeat(2,60px)}.actions button{height:54px}}@media(orientation:portrait) and (pointer:coarse){#rotate{display:block;position:fixed;bottom:8px;width:100%;text-align:center;font-size:11px;color:#c2f56c;pointer-events:none}.panel{left:50%;transform:translate(-50%,-50%);width:min(355px,90%)}#controls{bottom:35px}#hud{gap:9px}}

details{margin-top:16px}summary{cursor:pointer;font-size:12px;color:#afbed2}

#roomheading{display:flex;flex-direction:column}#roomheading h2{margin-bottom:6px}#room.result #roomhint{order:0;font-size:24px;font-weight:800;color:#edff89;line-height:1.4;margin:16px 0 10px;overflow-wrap:anywhere}#room.result #roomtitle{order:1;font-size:13px;font-weight:400;color:#afbed2;line-height:1.8;margin:0 0 8px}

@media(max-width:900px),(pointer:coarse){
 #room.result{top:max(52px,env(safe-area-inset-top));left:12px;right:12px;width:auto;transform:none;padding:10px 12px;max-height:140px;border-radius:16px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 10px;overflow:auto}
 #room.result>.eyebrow,#room.result #roster,#room.result #sharetext{display:none}
 #room.result #roomheading{grid-row:1 / 3;min-width:0;justify-content:center}
 #room.result #roomhint{font-size:18px;margin:0 0 4px;line-height:1.3}
 #room.result #roomtitle{font-size:10px;margin:0;line-height:1.3}
 #room.result>.row{grid-column:2;margin:0;gap:5px}
 #room.result button{font-size:11px;padding:7px 10px;border-radius:8px}
 #room.result #start{grid-column:2;margin:0}
}

@media(max-width:900px),(pointer:coarse){
 .actions [data-action="guard"]{order:1}
 .actions [data-action="dash"]{order:2}
 .actions [data-action="attack"]{order:3}
 .actions [data-action="jump"]{order:4}
}
