/* 주차왕 — 주차 연습 게임 화면 스타일 */
.pk-page{margin:0;background:#151a22;color:#eef3fa;font-family:-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Malgun Gothic","Segoe UI",Roboto,sans-serif;overflow-x:hidden}
html.pk-lock,html.pk-lock body{overflow:hidden;overscroll-behavior:none}
html.pk-lock #funsoft-fab,html.pk-lock #inq-float,html.pk-lock #fs-a2hs{opacity:0;pointer-events:none}
.pk-wrap,.pk-wrap *{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
.pk-wrap{position:relative;width:100%;max-width:1200px;margin:0 auto;height:100vh;height:100svh;min-height:460px;max-height:900px;overflow:hidden;background:#2f343b;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
@media (min-width:900px){.pk-wrap{max-height:820px}}
.pk-wrap canvas#pk-canvas{display:block;position:absolute;left:0;top:0;touch-action:none}
.pk-wrap.pk-playing{touch-action:none}
.pk-ui{position:absolute;inset:0;pointer-events:none;z-index:4}
.pk-screen{position:absolute;inset:0;pointer-events:auto;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:14px 16px;overflow-y:auto;touch-action:pan-y;text-align:center;background:rgba(10,14,22,.62);animation:pkIn .2s ease-out}
.pk-screen.pk-top{justify-content:flex-start;padding-top:62px}
.pk-screen.pk-fail{background:rgba(60,8,8,.62)}
@keyframes pkIn{from{opacity:0;transform:scale(1.02)}to{opacity:1;transform:none}}
.pk-logo{font-weight:900;font-size:clamp(42px,10vw,82px);line-height:1;display:flex;align-items:center;gap:.18em;text-shadow:0 .05em 0 rgba(0,0,0,.4)}
.pk-p{display:inline-flex;align-items:center;justify-content:center;width:1.1em;height:1.1em;border-radius:.2em;background:#2f6fe0;color:#fff;font-size:.8em;box-shadow:inset 0 0 0 .07em #fff}
.pk-sub{font-size:14px;line-height:1.5;opacity:.95;max-width:560px;margin:0}
.pk-h{margin:0;font-size:22px}
.pk-big-ico{font-size:46px;line-height:1}
.pk-stat{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;font-size:13px}
.pk-stat>span{background:rgba(0,0,0,.38);padding:5px 11px;border-radius:999px}
.pk-keys{font-size:12px;opacity:.75;max-width:520px;margin:4px 0 0}
.pk-btn{font:inherit;font-weight:800;font-size:16px;border:0;border-radius:14px;padding:12px 22px;margin:0;cursor:pointer;color:#06210f;background:linear-gradient(180deg,#9dffc0,#3fd27a);box-shadow:0 4px 0 #1f8a4a;transition:transform .08s,filter .15s;min-height:44px}
.pk-btn:active{transform:translateY(3px);box-shadow:0 1px 0 #1f8a4a}
.pk-btn:hover{filter:brightness(1.06)}
.pk-btn.pk-big{font-size:19px;padding:14px 34px}
.pk-btn.pk-g{background:rgba(255,255,255,.14);color:#fff;box-shadow:inset 0 0 0 2px rgba(255,255,255,.32)}
.pk-btn.pk-y{background:linear-gradient(180deg,#ffe58a,#ffc21a);color:#3a2600;box-shadow:0 4px 0 #b07a00}
.pk-btn.pk-sm{font-size:13px;padding:8px 12px;min-height:38px}
.pk-btn:disabled{opacity:.5;cursor:default}
.pk-row{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;align-items:center}
.pk-bar{position:absolute;top:0;left:0;right:0;display:flex;align-items:center;gap:8px;padding:10px 12px;z-index:2}
.pk-bar h2{flex:1;margin:0;text-align:left;font-size:18px;font-weight:900}
.pk-ib{font:inherit;font-weight:900;width:40px;height:40px;border-radius:12px;border:0;background:rgba(0,0,0,.45);color:#fff;font-size:17px;cursor:pointer;box-shadow:inset 0 0 0 2px rgba(255,255,255,.25);flex:none;display:inline-flex;align-items:center;justify-content:center;padding:0}
.pk-ib.off{opacity:.45}
.pk-hud{position:absolute;top:6px;right:6px;display:flex;gap:5px;z-index:3}
.pk-touch .pk-hud .pk-ib{width:36px;height:36px;font-size:15px}
.pk-tabs{display:flex;gap:6px;flex-wrap:wrap;justify-content:center;max-width:760px}
.pk-tabs button{font:inherit;font-size:13px;font-weight:800;border:0;border-radius:999px;padding:7px 11px;cursor:pointer;background:rgba(255,255,255,.12);color:#fff}
.pk-tabs button.on{background:#fff;color:#123}
.pk-tabs button.lock{opacity:.45}
.pk-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;width:100%;max-width:760px}
@media (max-width:560px){.pk-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.pk-card{font:inherit;color:#fff;border:0;border-radius:14px;padding:12px 8px 10px;cursor:pointer;background:linear-gradient(170deg,rgba(255,255,255,.18),rgba(255,255,255,.05));box-shadow:inset 0 0 0 2px rgba(255,255,255,.16),0 3px 0 rgba(0,0,0,.3);display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0}
.pk-card b{font-size:22px;line-height:1.1}
.pk-card .pk-cn{font-size:13px;font-weight:700;line-height:1.3;word-break:keep-all}
.pk-card small{font-size:11px;opacity:.8}
.pk-card.done{box-shadow:inset 0 0 0 2px rgba(93,255,154,.55),0 3px 0 rgba(0,0,0,.3)}
.pk-card.lock{opacity:.45;cursor:default}
.pk-stars{display:inline-flex;gap:2px;font-size:18px}
.pk-stars i{font-style:normal;color:rgba(255,255,255,.22)}
.pk-stars i.on{color:#ffd23f;text-shadow:0 0 8px rgba(255,210,63,.6)}
.pk-screen>.pk-stars{font-size:40px}
.pk-time{font-size:24px;font-weight:900}
.pk-time em{font-style:normal;font-size:13px;background:#ffd23f;color:#3a2600;border-radius:999px;padding:2px 8px;vertical-align:middle}
.pk-crit{list-style:none;margin:0;padding:0;font-size:13px;text-align:left;display:flex;flex-direction:column;gap:3px}
.pk-crit li{opacity:.6}
.pk-crit li.ok{opacity:1;color:#9dffc0}
.pk-reg{display:flex;gap:6px;justify-content:center}
.pk-reg input{font:inherit;font-size:14px;width:140px;padding:8px 10px;border-radius:10px;border:0;background:rgba(255,255,255,.92);color:#123}
.pk-board{width:100%;max-width:400px;display:flex;flex-direction:column;gap:3px;font-size:13px}
.pk-bt{font-weight:800;margin-bottom:2px}
.pk-rk{display:flex;justify-content:space-between;background:rgba(0,0,0,.3);padding:5px 10px;border-radius:8px}
.pk-rk.me{background:rgba(255,210,63,.3)}
.pk-rk small{color:#ffd23f}
.pk-muted{opacity:.7;font-size:13px}
.pk-rnav b{min-width:180px}
.pk-toast{position:absolute;left:50%;top:92px;transform:translateX(-50%) translateY(-6px);background:rgba(10,14,22,.86);color:#fff;font-size:13px;font-weight:700;padding:7px 14px;border-radius:999px;opacity:0;transition:opacity .2s,transform .2s;pointer-events:none;z-index:5;white-space:nowrap}
.pk-toast.on{opacity:1;transform:translateX(-50%)}
/* 휴대폰 조작판 */
.pk-pad{position:absolute;left:0;right:0;bottom:0;height:var(--padh,170px);z-index:3;display:flex;align-items:center;justify-content:space-between;padding:8px 10px calc(8px + env(safe-area-inset-bottom,0px));background:linear-gradient(0deg,rgba(10,14,22,.85),rgba(10,14,22,.55));touch-action:none}
.pk-wheel{position:relative;width:min(150px,calc(var(--padh,170px) - 16px));aspect-ratio:1;border-radius:50%;touch-action:none;cursor:grab}
.pk-wheel-i{position:absolute;inset:0;border-radius:50%;border:12px solid #2a2f37;box-shadow:inset 0 0 0 2px #5b6470,0 0 0 2px #5b6470,0 4px 10px rgba(0,0,0,.5);background:radial-gradient(circle,#3a414b 0 18%,transparent 19%)}
.pk-wheel-i::before,.pk-wheel-i::after{content:"";position:absolute;background:#3a414b;left:50%;top:50%}
.pk-wheel-i::before{width:100%;height:12px;transform:translate(-50%,-50%)}
.pk-wheel-i::after{width:12px;height:50%;transform:translate(-50%,0)}
.pk-wheel-i span{position:absolute;top:-12px;left:50%;width:10px;height:12px;margin-left:-5px;background:#ffd23f;border-radius:3px}
.pk-wheel-l{position:absolute;bottom:-2px;left:0;right:0;text-align:center;font-size:10px;color:rgba(255,255,255,.55);pointer-events:none}
.pk-pr{display:flex;align-items:flex-end;gap:10px;height:100%}
.pk-gearb{font:inherit;font-weight:900;font-size:24px;width:56px;height:56px;border-radius:14px;border:0;background:#1f3b28;color:#7dff9e;box-shadow:inset 0 0 0 3px #3fd27a;align-self:center;padding:0}
.pk-gearb.r{background:#3b1f1f;color:#ff7b7b;box-shadow:inset 0 0 0 3px #ff5a5a}
.pk-ped{display:flex;align-items:center;justify-content:center;font-weight:900;font-size:14px;color:#fff;border-radius:12px;background:repeating-linear-gradient(0deg,#3b424c 0 6px,#2c323a 6px 12px);box-shadow:inset 0 0 0 2px #66707d,0 4px 0 #11151a;touch-action:none}
.pk-ped.on{filter:brightness(1.5);transform:translateY(2px);box-shadow:inset 0 0 0 2px #fff}
.pk-brake{width:74px;height:72%}
.pk-gas{width:58px;height:92%}
/* 아래 설명 */
.pk-below{max-width:820px;margin:0 auto;padding:18px 16px 10px;line-height:1.7;font-size:15px;color:#dfe7f2}
.pk-below h1{font-size:22px;line-height:1.4;margin:14px 0 8px;color:#fff}
.pk-below h2{font-size:18px;margin:26px 0 8px;color:#fff}
.pk-below a{color:#8cc4ff}
.pk-below table{width:100%;border-collapse:collapse;font-size:14px}
.pk-below th,.pk-below td{border-bottom:1px solid rgba(255,255,255,.12);padding:7px 6px;text-align:left;vertical-align:top}
.pk-below th{white-space:nowrap;color:#fff}
.pk-below details{background:rgba(255,255,255,.06);border-radius:10px;padding:8px 12px;margin:8px 0}
.pk-below summary{cursor:pointer;font-weight:800;color:#fff}
.pk-below kbd{display:inline-block;padding:0 6px;border-radius:5px;background:rgba(255,255,255,.14);font-family:inherit;font-size:13px}
.pk-note{background:rgba(255,200,60,.1);border-left:4px solid #ffc21a;padding:8px 12px;border-radius:6px;font-size:14px}
.pk-more{font-size:14px;opacity:.9}
/* 모드·차 꾸미기·결과 카드 */
.pk-crumb{font-size:12px;opacity:.75;margin:6px 0 2px}
.pk-crumb a{color:inherit}
.pk-skin canvas{width:96px;height:56px;max-width:100%}
.pk-new{color:#ffe58a;font-weight:700}
.pk-cardscr{background:#0e131b;z-index:5;animation:none}
.pk-cardimg{width:min(86vw,420px);height:auto;border-radius:14px;box-shadow:0 6px 24px rgba(0,0,0,.5)}
