:root{--bg: rgba(16, 18, 22, .72);--fg: #f3f3f1;--muted: #a9adb3;--good: #38c77a;--bad: #e8503f;--info: #4a9eff}*{box-sizing:border-box}html,body{margin:0;height:100%;overflow:hidden;overscroll-behavior:none;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;background:#000;font-family:-apple-system,Apple SD Gothic Neo,Noto Sans KR,Hiragino Sans,sans-serif;color:var(--fg)}#c{display:block;width:100vw;height:100vh;touch-action:none}#hud{position:fixed;top:0;right:0;bottom:0;left:0;pointer-events:none}#hud>*{pointer-events:auto}.hidden{display:none!important}.panel{background:var(--bg);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);border-radius:10px;padding:10px 14px}#left-panel{position:absolute;left:16px;top:16px;width:230px}#speed{display:flex;align-items:baseline;gap:6px}#speed-val{font-size:46px;font-weight:700;font-variant-numeric:tabular-nums;line-height:1}#speed .unit{color:var(--muted);font-size:14px}#gear-row{display:flex;align-items:center;gap:10px;margin-top:8px}#gear-val{font-size:22px;font-weight:700;width:30px;text-align:center}.sig{font-size:22px;color:#5a5349;cursor:pointer;-webkit-user-select:none;user-select:none;transition:color .08s}.sig.armed{color:#8a6a20}.sig.on{color:#ffb020;text-shadow:0 0 8px #ffb020}#wiper-ind{margin-top:6px;font-size:12px;color:#9ad}#light-ind{margin-top:8px;font-size:12px;padding:4px 8px;border-radius:6px;background:#2a2d33}#light-ind.green{background:#124d36;color:#5ff0b2}#light-ind.yellow{background:#4d3f0e;color:#ffd86b}#light-ind.red{background:#4d1414;color:#ff7b7b}#keys{margin-top:10px;font-size:11.5px;color:var(--muted);line-height:1.55}#keys b{color:var(--fg);font-weight:600}#shifter{position:absolute;left:50%;bottom:20px;transform:translate(-50%);display:flex;flex-direction:column;gap:4px;padding:8px}#shifter button{width:54px;height:38px;border:1px solid #444;background:#23262b;color:#ccc;font-size:18px;font-weight:700;border-radius:6px;cursor:pointer}#shifter button:hover{background:#2f333a}#shifter button.active{background:#e8503f;color:#fff;border-color:#ff8a7a}#shifter .label{font-size:10px;color:var(--muted);text-align:center;margin-bottom:2px}#wheel-wrap{position:absolute;left:calc(50% + 70px);bottom:36px;display:flex;flex-direction:column;align-items:center;gap:6px}#wheel-icon{width:64px;height:64px;border-radius:50%;border:7px solid #ddd;position:relative;transition:transform .05s linear}#wheel-icon:before{content:"";position:absolute;left:50%;top:50%;width:46px;height:7px;background:#ddd;transform:translate(-50%,-50%);border-radius:3px}#wheel-icon:after{content:"";position:absolute;left:50%;top:50%;width:7px;height:26px;background:#ddd;transform:translate(-50%);border-radius:3px}#wiper-btn{font-size:11px;background:#23262b;color:#ccc;border:1px solid #444;border-radius:6px;padding:3px 8px;cursor:pointer}#right-panel{position:absolute;right:16px;top:16px;width:240px;display:flex;flex-direction:column;gap:10px}#minimap{width:100%;aspect-ratio:1;border-radius:8px;display:block}#score-row{display:flex;align-items:center;justify-content:space-between}#score-val{font-size:28px;font-weight:700}#score-row small{color:var(--muted)}.btn-row{display:flex;gap:6px}.btn-row button{flex:1;background:#23262b;color:#ddd;border:1px solid #444;border-radius:6px;padding:6px 4px;font-size:12px;cursor:pointer}.btn-row button:hover{background:#2f333a}#checklist{max-height:calc(100vh - 420px);overflow:auto}#checklist h3{margin:0 0 6px;font-size:13px;display:flex;justify-content:space-between}#checklist h3 span{color:var(--muted);font-weight:400}#check-list{list-style:none;margin:0;padding:0}#check-list li{display:flex;gap:8px;align-items:flex-start;padding:5px 0;border-top:1px solid #333;font-size:12px}#check-list li b{display:block;font-weight:600}#check-list li small{color:var(--muted);font-size:10.5px;line-height:1.35}#check-list .box{width:14px;height:14px;border:1.5px solid #666;border-radius:3px;flex:none;margin-top:2px}#check-list li.done .box{background:var(--good);border-color:var(--good)}#check-list li.done b{color:var(--good)}#checklist.collapsed #check-list{display:none}#toasts{position:absolute;left:50%;top:66px;transform:translate(-50%);width:min(620px,70vw);display:flex;flex-direction:column;gap:6px}.toast{display:flex;gap:10px;align-items:center;padding:10px 14px;border-radius:8px;background:var(--bg);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);font-size:14px;line-height:1.4;border-left:4px solid var(--info);animation:pop .2s ease-out}.toast.good{border-left-color:var(--good)}.toast.bad{border-left-color:var(--bad)}.toast .badge{font-weight:700;font-variant-numeric:tabular-nums;flex:none}.toast.bad .badge{color:var(--bad)}.toast.good .badge{color:var(--good)}.toast.out{opacity:0;transition:opacity .4s}@keyframes pop{0%{transform:translateY(-6px);opacity:0}}#overlay{position:absolute;top:0;right:0;bottom:0;left:0;background:#080a0ed1;display:flex;align-items:center;justify-content:center}#overlay .card{width:min(760px,92vw);max-height:90vh;overflow:auto;background:#15181d;border-radius:14px;padding:26px 30px}#overlay h1{margin:0 0 4px;font-size:24px}#overlay .sub{color:var(--muted);margin-bottom:16px;font-size:13px}#overlay h2,#rules-panel h2{font-size:14px;margin:16px 0 6px;color:#9ad}#overlay ul,#rules-panel ul{margin:0;padding-left:18px;font-size:13.5px;line-height:1.6}.keygrid{display:grid;grid-template-columns:repeat(2,1fr);gap:4px 20px;font-size:13.5px}.keygrid b{display:inline-block;min-width:86px;font-weight:600;color:#fff}kbd{background:#2b2f36;border:1px solid #555;border-bottom-width:2px;border-radius:4px;padding:0 6px;font-family:inherit;font-size:12px}#start-btn{margin-top:18px;width:100%;padding:12px;font-size:16px;font-weight:700;background:var(--bad);color:#fff;border:0;border-radius:8px;cursor:pointer}#rules-panel{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(720px,92vw);max-height:86vh;overflow:auto;padding:22px 28px}#rules-panel h1{font-size:18px;margin:0 0 4px}#rules-panel .close{position:absolute;right:14px;top:12px;background:none;border:0;color:#ccc;font-size:20px;cursor:pointer}#mission-hud{position:absolute;left:50%;top:14px;transform:translate(-50%);display:flex;align-items:center;gap:16px;font-size:15px;font-weight:600;padding:8px 18px;white-space:nowrap}#mission-hud .m-arrow{display:inline-block;font-size:22px;color:#3fa9ff;transition:transform .1s linear}#mission-hud .m-dist{color:#3fa9ff;font-variant-numeric:tabular-nums}#mission-hud .m-time{font-variant-numeric:tabular-nums;font-size:18px}#mission-hud .m-viol{color:var(--muted)}#mission-hud .m-viol.warn{color:var(--bad)}#mission-overlay{position:absolute;top:0;right:0;bottom:0;left:0;background:#080a0ed1;display:flex;align-items:center;justify-content:center}#mission-overlay .card,#overlay .card{position:relative}#mission-overlay .card{width:min(640px,92vw);max-height:90vh;overflow:auto;background:#15181d;border-radius:14px;padding:26px 30px}#mission-overlay h1{margin:0 0 4px;font-size:26px}#mission-overlay .sub{color:var(--muted);margin-bottom:14px;font-size:14px}#mission-overlay h2{font-size:14px;margin:16px 0 8px;color:#9ad}.big-time{color:#fff;font-size:20px}.muted{color:var(--muted);font-size:13px}.viol-list{margin:0;padding-left:20px;font-size:13px;line-height:1.5;color:#f0b0a8;max-height:30vh;overflow:auto}.btn-row.big{margin-top:18px}.btn-row.big button{padding:12px 8px;font-size:15px;font-weight:700}.btn-row.big button:first-child{background:var(--bad);border-color:#ff8a7a;color:#fff}.diff-row{display:flex;gap:10px;margin:6px 0 14px}.diff-btn{flex:1;background:#23262b;border:1px solid #444;border-radius:10px;color:#fff;padding:12px 8px;cursor:pointer;display:flex;flex-direction:column;gap:4px;align-items:center}.diff-btn:hover{background:#2f333a;border-color:#777}.diff-btn b{font-size:17px}.diff-btn small{color:var(--muted);font-size:11.5px}.diff-btn[data-diff=easy] b{color:var(--good)}.diff-btn[data-diff=normal] b{color:#ffd23c}.diff-btn[data-diff=hard] b{color:var(--bad)}#start-btn.secondary{background:#2b2f36;color:#ddd;border:1px solid #555}#rankings{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:6px}#rankings h3{font-size:13px;margin:0 0 4px}table.rank{width:100%;border-collapse:collapse;font-size:12.5px;font-variant-numeric:tabular-nums}table.rank th{text-align:left;color:var(--muted);font-weight:500;padding:3px 4px;border-bottom:1px solid #333}table.rank td{padding:3px 4px;border-bottom:1px solid #26292e}table.rank tr.me td{color:var(--good);font-weight:700}#rankings table.rank th:nth-child(4),#rankings table.rank td:nth-child(4),#rankings table.rank th:nth-child(5),#rankings table.rank td:nth-child(5){display:none}.initials{display:flex;gap:14px;justify-content:center;margin:10px 0}.initials .slot{display:flex;flex-direction:column;align-items:center;gap:4px}.initials .slot button{width:56px;background:#23262b;border:1px solid #444;color:#ccc;border-radius:6px;cursor:pointer;padding:4px}.initials .letter{width:56px;height:64px;display:flex;align-items:center;justify-content:center;font-size:40px;font-weight:800;background:#0f1114;border:2px solid #444;border-radius:8px}.initials .slot.active .letter{border-color:#3fa9ff;color:#3fa9ff}.touch-only{display:none}body.is-touch .touch-only{display:revert}body.is-touch .kb-only{display:none!important}#touch{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;touch-action:none}#touch>*{pointer-events:auto}#touch button{touch-action:none;font-family:inherit}.t-left{position:absolute;left:max(14px,env(safe-area-inset-left));bottom:max(12px,env(safe-area-inset-bottom));display:flex;flex-direction:column;align-items:center;gap:8px}.t-right{position:absolute;right:max(14px,env(safe-area-inset-right));bottom:max(12px,env(safe-area-inset-bottom));display:flex;flex-direction:column;align-items:flex-end;gap:8px}.t-top{position:absolute;left:50%;transform:translate(-50%);bottom:max(12px,env(safe-area-inset-bottom));display:flex;gap:8px}.t-row{display:flex;gap:8px;align-items:center}.t-btn{background:#101216b8;color:#eee;border:1px solid #555;border-radius:10px;padding:8px 12px;font-size:13px;font-weight:600;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}.t-btn:active{background:#3a3e46}.t-btn.on{background:#1b4fbf;border-color:#3fa9ff}.t-sig{font-size:20px;width:50px;color:#7a6a4a}.t-sig.armed{color:#c89020}.t-sig.on{color:#ffb020;text-shadow:0 0 10px #ffb020}.t-wheel{width:150px;height:150px;border-radius:50%;border:16px solid rgba(230,230,230,.92);background:#10121659;position:relative;box-shadow:0 4px 18px #0006;will-change:transform}.t-wheel:before{content:"";position:absolute;left:50%;top:50%;width:118px;height:14px;background:#e6e6e6eb;transform:translate(-50%,-50%);border-radius:7px}.t-wheel:after{content:"";position:absolute;left:50%;top:50%;width:14px;height:56px;background:#e6e6e6eb;transform:translate(-50%);border-radius:7px}.t-wheel-hub{position:absolute;left:50%;top:50%;width:40px;height:40px;border-radius:50%;background:#2b2f36;transform:translate(-50%,-50%);z-index:1}.t-wheel.disabled{opacity:.45}.t-gear button{width:44px;height:38px;border:1px solid #555;background:#101216b8;color:#ccc;font-size:16px;font-weight:700;border-radius:8px}.t-gear button.active{background:var(--bad);color:#fff;border-color:#ff8a7a}.t-pedals{display:flex;gap:10px;align-items:flex-end}.t-pedal{border-radius:16px;border:2px solid #666;color:#ddd;font-weight:800;font-size:13px;letter-spacing:1px;background:#1e2126cc;display:flex;align-items:flex-end;justify-content:center;padding-bottom:10px;box-shadow:0 4px 14px #0006}.t-gas{width:84px;height:140px;border-color:#38c77a}.t-brake{width:72px;height:104px;border-color:#e8503f}.t-pedal.down{background:#505660f2;transform:translateY(3px)}.t-gas.down{background:#38c77a99}.t-brake.down{background:#e8503f99}#rotate-hint{position:absolute;top:0;right:0;bottom:0;left:0;background:#0f1114;z-index:50;display:flex;align-items:center;justify-content:center;text-align:center;font-size:20px;font-weight:700}#rotate-hint .phone{font-size:64px;animation:rot 1.6s ease-in-out infinite}@keyframes rot{0%,20%{transform:rotate(0)}60%,to{transform:rotate(90deg)}}body.is-touch #shifter,body.is-touch #wheel-wrap,body.is-touch #keys,body.is-touch #help-btn,body.is-touch #reset-btn{display:none!important}body.is-touch #left-panel{width:auto;min-width:150px;padding:8px 12px;left:max(12px,env(safe-area-inset-left));top:max(10px,env(safe-area-inset-top))}body.is-touch #speed-val{font-size:34px}body.is-touch #right-panel{width:150px;right:max(12px,env(safe-area-inset-right));top:max(10px,env(safe-area-inset-top));gap:6px}body.is-touch #right-panel .panel{padding:6px 8px}body.is-touch #score-val{font-size:20px}body.is-touch #score-row>small{display:none}body.is-touch #cam-btn{padding:4px}body.is-touch #checklist{display:none;position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);width:min(420px,90vw);max-height:80vh;z-index:30}body.is-touch #checklist.open{display:block}body.is-touch #mission-hud{top:max(8px,env(safe-area-inset-top));font-size:13px;gap:10px;padding:6px 12px}body.is-touch #mission-hud .m-time{font-size:15px}body.is-touch #toasts{top:calc(max(8px,env(safe-area-inset-top)) + 46px);width:min(520px,56vw);gap:4px}body.is-touch .toast{font-size:12.5px;padding:7px 10px}body.is-touch #overlay .card,body.is-touch #mission-overlay .card,body.is-touch #rules-panel{padding:16px 18px;max-height:92vh}body.is-touch #overlay h1{font-size:19px}body.is-touch #overlay h2,body.is-touch #rules-panel h2{margin:10px 0 4px}body.is-touch #overlay ul,body.is-touch #rules-panel ul{font-size:12.5px;line-height:1.5}body.is-touch .diff-btn{padding:8px 4px}body.is-touch .diff-btn b{font-size:15px}body.is-touch #rankings{font-size:11px}body.is-touch #start-btn{padding:10px;font-size:14px;margin-top:10px}body.is-touch .initials .letter{width:48px;height:54px;font-size:32px}body.is-touch .btn-row.big button{padding:10px 6px;font-size:14px}@media(max-height:420px){body.is-touch .t-wheel{width:120px;height:120px;border-width:13px}body.is-touch .t-wheel:before{width:94px}body.is-touch .t-wheel:after{height:44px}body.is-touch .t-gas{width:76px;height:112px}body.is-touch .t-brake{width:64px;height:84px}body.is-touch #right-panel{width:120px}}#rank-modal{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(820px,94vw);max-height:88vh;overflow:auto;padding:20px 26px;z-index:40}#rank-modal h1{font-size:20px;margin:0 0 6px}#rank-modal .close{position:absolute;right:14px;top:10px;background:none;border:0;color:#ccc;font-size:22px;cursor:pointer}.rank-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;gap:10px}#rank-refresh{background:#23262b;color:#ddd;border:1px solid #444;border-radius:6px;padding:5px 10px;font-size:12px;cursor:pointer}.rank-cols{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.rank-cols h3{font-size:14px;margin:0 0 6px}.rank-cols h3 small{color:var(--muted);font-weight:400;font-size:11px;margin-left:4px}#rank-source{margin-top:4px}body.is-touch #rank-modal{padding:12px 14px;max-height:92vh}body.is-touch .rank-cols{gap:8px;font-size:11px}body.is-touch #rank-btn{display:none}@media(max-width:700px){.rank-cols{grid-template-columns:1fr}}.seo-intro{font-size:13px;color:var(--muted);line-height:1.6;margin:6px 0 0}.seo-intro a{color:#9ad}
