.game-page .pe-panel{--pe-ink:#12374a;--pe-teal:#007f86;--pe-line:#d9e8eb;padding:24px;border:1px solid #d8e8eb;border-radius:20px;background:#f7fbfc;color:var(--pe-ink);box-shadow:0 12px 36px #1a6e7d0b;overflow:hidden}
.pe-panel *{box-sizing:border-box}.pe-panel button,.pe-panel input,.pe-panel select{font:inherit}.pe-panel button{cursor:pointer;touch-action:manipulation}.pe-panel button:disabled{opacity:.42;cursor:default}.pe-panel button:focus-visible,.pe-panel input:focus-visible,.pe-panel select:focus-visible,.pe-stage:focus-visible,.pe-help summary:focus-visible{outline:3px solid #14b8a6;outline-offset:3px}.pe-panel [hidden]{display:none!important}
.pe-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}.pe-heading .pe-eyebrow{margin:0 0 5px;font-size:11px;font-weight:800;letter-spacing:.16em;color:#007d83}.game-page .pe-heading h2{margin:0;font-size:32px;line-height:1.2;letter-spacing:-1.3px;color:#11394a}.pe-subtitle{font-size:13px;color:#617b86;margin:9px 0 0}.pe-best{text-align:right;border-left:1px solid var(--pe-line);padding-left:24px;white-space:nowrap}.pe-best span{display:block;font-size:11px;color:#6c8790}.pe-best strong{font-size:26px;font-variant-numeric:tabular-nums;letter-spacing:-1px}
.pe-toolbar,.pe-settings,.pe-actions{display:flex;align-items:center;gap:8px}.pe-toolbar{justify-content:space-between;flex-wrap:wrap;margin-bottom:14px}.pe-settings input,.pe-settings select{min-height:40px;border:1px solid var(--pe-line);background:#fff;border-radius:8px;padding:8px 11px;font-size:12px;color:var(--pe-ink);width:130px}.pe-settings select{width:132px}.pe-actions button,.pe-overlay-actions button{border:1px solid #c7dde1;border-radius:8px;min-height:40px;padding:8px 14px;background:#fff;color:var(--pe-ink);font-size:12px;font-weight:750;transition:background .16s,transform .16s}.pe-panel button:hover:not(:disabled){background:#e3f3f3}.pe-panel .pe-primary{background:#007f86;color:#fff;border-color:#007f86;box-shadow:0 3px 0 #005b65}.pe-panel .pe-primary:hover:not(:disabled){background:#006e75}.pe-primary span{padding-left:15px}.pe-panel button:active:not(:disabled){transform:translateY(2px)}.pe-actions .pe-sound{font-size:11px;min-width:64px;background:transparent;border-color:transparent}
.pe-stage{position:relative;width:100%;height:clamp(410px,46vw,570px);overflow:hidden;border-radius:15px;border:1px solid #b9dce3;background:#9dd5e6;isolation:isolate;touch-action:none;outline:none}.pe-stage canvas{display:block;width:100%;height:100%;position:absolute;inset:0;z-index:0}.pe-hud{position:absolute;top:18px;left:22px;right:22px;z-index:2;pointer-events:none;color:#12394b;text-shadow:0 1px 2px #ffffffa6}.pe-hud-main{display:flex;align-items:flex-start;gap:34px}.pe-hud-main>span{font-size:10px;font-weight:700;letter-spacing:.04em;display:grid;gap:3px}.pe-hud-main strong{font-size:29px;line-height:1.1;font-variant-numeric:tabular-nums;letter-spacing:-.7px}.pe-hud-main strong b{font-weight:800}.pe-hud-main small,.pe-route small{font-size:11px;margin-left:4px}.pe-hud-main .pe-health{margin-left:auto;text-align:right}.pe-hud-main .pe-health strong{color:#e95865;letter-spacing:2px}.pe-route{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #437d9326;margin-top:13px;padding-top:10px;font-size:11px}.pe-route>span{display:flex;align-items:center;gap:6px}.pe-route i{width:6px;height:6px;background:#07868c;border-radius:50%}.pe-route strong{font-size:14px;font-variant-numeric:tabular-nums}
.pe-overlay{position:absolute;inset:0;z-index:5;display:flex;align-items:center;justify-content:center;padding:100px 20px 60px;background:linear-gradient(180deg,#f2fcff00,#12364b12)}.pe-overlay-card{max-width:380px;width:100%;text-align:center;padding:27px 30px 20px;border:1px solid #fff;border-radius:16px;background:#f9fefff0;box-shadow:0 15px 55px #123d4c26;backdrop-filter:blur(9px)}.pe-overline{font-size:9px;letter-spacing:.24em;font-weight:850;color:#00868c}.pe-overlay-card h3{font-size:24px;line-height:1.3;color:#133b4d;margin:11px 0 12px;letter-spacing:-.8px}.pe-overlay-card p{font-size:12px;line-height:1.8;color:#527280;margin:0 0 20px}.pe-overlay-actions .pe-primary{width:100%;font-size:14px;min-height:46px}.pe-overlay-keys{display:flex;justify-content:center;gap:20px;margin-top:17px;font-size:10px;color:#78939c}.pe-stage[data-state=paused] .pe-overlay{background:#0c2f4d3b}.pe-stage[data-state=finished] .pe-overlay{background:#0e556029}
.pe-stage-bottom{display:flex;gap:18px;align-items:center;position:absolute;bottom:17px;left:22px;right:22px;z-index:3;pointer-events:none;color:#194659;font-size:11px;text-shadow:0 1px 3px #fff}.pe-combo strong{font-size:18px;margin-right:4px}.pe-fish{display:flex;gap:5px;align-items:center;color:#c77d12}.pe-fish strong{color:#194659;font-size:15px}.pe-tip{margin-left:auto;font-size:10px}.pe-progress{position:absolute;bottom:0;left:0;right:0;height:4px;background:#b8d6de80;z-index:4}.pe-progress i{display:block;width:0;height:100%;background:#04a8aa;box-shadow:0 0 8px #3af3e1}
.pe-console{display:grid;grid-template-columns:255px minmax(0,1fr);align-items:center;gap:22px;margin-top:14px}.pe-controls{display:grid;grid-template-columns:1fr 1.25fr 1fr;gap:8px}.pe-controls button{min-height:60px;border:1px solid #d1e4e8;border-bottom:3px solid #b6d3db;background:#fff;color:#174a5d;border-radius:10px;display:flex;align-items:center;justify-content:center;gap:7px;user-select:none;-webkit-user-select:none;touch-action:none}.pe-controls button span{font-size:23px;line-height:1}.pe-controls button small{font-size:10px;font-weight:800}.pe-controls .pe-jump{background:#e1f3f2;border-color:#b6deda;color:#087c80}.pe-discovery{min-width:0;border-left:1px solid var(--pe-line);padding:4px 0 4px 22px}.pe-discovery-label{display:flex;align-items:center;gap:6px;font-size:10px;font-weight:800;color:#6c8b96}.pe-discovery-label i{width:5px;height:5px;border-radius:50%;background:#1ca4a7}.pe-feed{margin:7px 0 0!important;min-height:20px;font-size:13px;line-height:1.55;color:#204d5d;word-break:keep-all;overflow-wrap:anywhere}.pe-feed.good{color:#087860}.pe-feed.bad{color:#bc4848}
.pe-help{margin:18px 0 0;border-top:1px solid var(--pe-line);padding-top:13px;font-size:11px;color:#6b8490}.pe-help summary{display:flex;align-items:center;justify-content:space-between;font-weight:700;cursor:pointer;list-style:none;min-height:25px}.pe-help summary::-webkit-details-marker{display:none}.pe-help summary span{font-size:16px}.pe-help p{margin:12px 0;line-height:1.9}.pe-help kbd{display:inline-flex;justify-content:center;min-width:22px;padding:0 5px;margin-right:3px;border:1px solid #cddfe4;border-bottom-width:2px;background:#fff;border-radius:4px;color:#365f70;font-family:inherit;font-size:10px}.pe-legend{display:flex;gap:15px;flex-wrap:wrap}.pe-legend span{display:inline-flex;align-items:center;gap:5px}.pe-dot{width:7px;height:7px;border-radius:50%}.pe-dot.civil{background:#3f8fdc}.pe-dot.criminal{background:#ef7765}.pe-dot.public{background:#33ab89}.pe-sr{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:700px){.game-page .pe-panel{padding:15px;border-radius:14px}.pe-heading{margin-bottom:15px;gap:12px}.game-page .pe-heading h2{font-size:26px}.pe-subtitle{font-size:11px;max-width:220px;line-height:1.6}.pe-best{padding-left:12px}.pe-best strong{font-size:23px}.pe-best span{font-size:9px}.pe-toolbar{display:grid;grid-template-columns:1fr;gap:9px}.pe-settings{display:grid;grid-template-columns:1fr 1fr}.pe-settings input,.pe-settings select{width:100%;font-size:16px;min-height:42px}.pe-actions{display:grid;grid-template-columns:1.45fr 1fr .7fr .8fr;gap:5px}.pe-actions button{font-size:11px;padding:8px 4px;min-height:40px}.pe-primary span{padding-left:4px}.pe-actions .pe-sound{min-width:0;font-size:10px}.pe-stage{height:440px;border-radius:11px}.pe-hud{top:14px;left:15px;right:15px}.pe-hud-main{gap:20px}.pe-hud-main strong{font-size:23px}.pe-hud-main>span{font-size:9px}.pe-route{padding-top:8px;margin-top:10px}.pe-overlay{padding:98px 16px 60px}.pe-overlay-card{padding:23px 18px 18px}.pe-overlay-card h3{font-size:22px}.pe-overlay-card p{font-size:11px}.pe-overlay-keys{display:none}.pe-stage-bottom{left:15px;right:15px;gap:12px}.pe-tip{font-size:8px;max-width:95px;text-align:right}.pe-console{grid-template-columns:1fr;gap:13px;margin-top:11px}.pe-controls button{min-height:62px}.pe-controls button span{font-size:25px}.pe-controls button small{font-size:11px}.pe-discovery{border-left:0;border-top:1px solid var(--pe-line);padding:12px 1px 0}.pe-feed{font-size:12px}.pe-help{margin-top:13px}.pe-help p{font-size:10px}}
@media(max-height:600px) and (min-width:701px){.pe-stage{height:360px}.pe-overlay-card{padding:18px}.pe-overlay-card h3{font-size:21px}.pe-overlay-keys{display:none}}
@media(prefers-reduced-motion:reduce){.pe-panel *{scroll-behavior:auto!important;transition:none!important}}
.game-page .pe-heading h2::before{display:none}.pe-hud-main .pe-health strong{font-size:21px;letter-spacing:1px}@media(max-width:700px){.pe-hud-main .pe-health strong{font-size:16px}}
.pe-panel .pe-overlay-card h3{color:var(--pe-ink)}.pe-dot.civil{background:#f27a53}.pe-dot.criminal{background:#a783df}.pe-dot.public{background:#53bda8}

.pe-actions button{white-space:nowrap}.pe-overlay-card h3{word-break:keep-all;text-wrap:balance}

.pe-overlay-card p{word-break:keep-all;text-wrap:pretty}
.pe-panel{--pe-civil:#3f8fdc;--pe-criminal:#ef7765;--pe-public:#33ab89}
.pe-journey{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));list-style:none;margin:0 0 22px;padding:0;border:1px solid #cbdfe4;border-radius:12px;overflow:hidden;background:#fff}
.pe-journey li{position:relative;min-height:62px;padding:12px 16px;display:flex;align-items:center;gap:10px;color:#78909a;border-right:1px solid #e2ecef;font-size:12px}
.pe-journey li:last-child{border-right:0}.pe-journey li>span{font-size:10px;font-weight:800;color:#8fa4ad}.pe-journey li strong{font-size:12px;word-break:keep-all}.pe-journey li.active{background:#e4f4ef;color:#006e64;box-shadow:inset 0 -3px #008c7c}.pe-journey li.active>span{color:#008c7c}.pe-journey li.done{background:#f0f8f6;color:#438878}.pe-journey li.done>span{font-size:0}.pe-journey li.done>span:before{content:'✓';font-size:13px}
.pe-settings select{width:170px}.pe-time{min-width:100px}.pe-route>span{min-width:0}.pe-route .pe-level{border-radius:4px;padding:4px 6px;background:#133d52;color:#fff;font-size:10px;letter-spacing:.05em;white-space:nowrap}.pe-route #polarGoal{font-size:13px;overflow-wrap:anywhere}.pe-route .pe-distance{flex:none;gap:2px;color:#3c6678;font-size:12px}
.pe-boss-hud{position:absolute;z-index:3;top:120px;left:50%;transform:translateX(-50%);width:min(400px,calc(100% - 34px));padding:9px 13px 7px;border:1px solid #ffbec0;background:#291b36e8;color:#fff;border-radius:10px;box-shadow:0 5px 20px #4c102e20;pointer-events:none}.pe-boss-hud>div{display:flex;align-items:center;gap:9px;font-size:12px}.pe-boss-alert{font-size:9px;font-weight:900;letter-spacing:.12em;color:#ffad96}.pe-boss-hud #polarBossHp{margin-left:auto;font-size:11px;font-variant-numeric:tabular-nums}.pe-boss-hud progress{display:block;appearance:none;width:100%;height:6px;border:0;margin:7px 0 0;background:#ffffff20;border-radius:6px;overflow:hidden;accent-color:#ff7a79}.pe-boss-hud progress::-webkit-progress-bar{background:#ffffff20}.pe-boss-hud progress::-webkit-progress-value{background:linear-gradient(90deg,#ff718a,#ffb47a);transition:width .2s}.pe-boss-hud progress::-moz-progress-bar{background:#ff8188}.pe-boss-hud p{font-size:9px;color:#efd6e1;margin:5px 0 0;text-align:center}
.pe-stage[data-state=cleared] .pe-overlay{background:#153b4140}.pe-stage[data-state=cleared] .pe-overlay-card{border:2px solid #e5bb59;background:#fffdf2f5}.pe-stage[data-state=cleared] .pe-overlay-card h3{color:#66501c}.pe-stage[data-state=finished] .pe-overlay-card{border-color:#e8b8b9}.pe-overlay-actions{display:grid;gap:9px}.pe-overlay-actions .pe-finish-run{border:0;background:transparent;font-size:11px;color:#63757d;min-height:33px}.pe-overlay-card .pe-overline{letter-spacing:.14em}.pe-panel .pe-overlay-card h3{font-size:25px;line-height:1.4}.pe-overlay-card p{white-space:pre-line}
.pe-flag-rack{margin-top:12px;border:1px solid #d2e2e8;border-radius:12px;background:#fff;padding:14px 16px}.pe-rack-heading{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:10px}.pe-rack-heading strong{font-size:12px;color:#244c60}.pe-rack-heading b{color:#007f86;font-size:12px;margin-left:5px;font-variant-numeric:tabular-nums}.pe-rack-heading>span{font-size:10px;color:#84949c}.pe-stack-slots{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:5px}.pe-stack-slots>span{display:flex;align-items:center;justify-content:center;height:28px;border:1px dashed #cddde3;border-radius:5px;background:#f3f7f9;font-size:11px;font-weight:850;color:#fff;transition:background .14s,transform .14s}.pe-stack-slots>span[data-subject=civil]{background:#3f8fdc;border:1px solid #2c75bc}.pe-stack-slots>span[data-subject=criminal]{background:#df6152;border:1px solid #ba493d}.pe-stack-slots>span[data-subject=public]{background:#268a6d;border:1px solid #197357}.pe-stack-slots[data-warning=true]>span{border-style:solid;box-shadow:0 0 0 1px #f3b5a9}.pe-match-guide{display:flex;justify-content:space-between;gap:9px;flex-wrap:wrap;margin-top:11px}.pe-match-guide>span{display:flex;align-items:center;gap:3px;color:#627b86;font-size:10px}.pe-match-guide b{font-size:9px;color:#426e7a;margin-left:4px;font-weight:650}.pe-dot.civil{background:#3f8fdc}.pe-dot.criminal{background:#ef7765}.pe-dot.public{background:#33ab89}.pe-dot.rainbow{background:linear-gradient(135deg,#e85f83,#f0bf54,#50bf91,#5c8add,#ad75cd)}.pe-match-guide .pe-dot{width:7px;height:7px;flex:none}
.pe-gameplay-note{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0 0}.pe-gameplay-note span{padding:10px 12px;background:#eff4f7;border-radius:7px;color:#667c8b;font-size:11px;line-height:1.7}.pe-gameplay-note b{color:#234c63}
@media(max-width:700px){.pe-journey{margin-bottom:16px;border-radius:9px}.pe-journey li{flex-direction:column;gap:5px;padding:9px 3px;min-height:58px;text-align:center}.pe-journey li strong{font-size:10px;line-height:1.4}.pe-journey li>span{font-size:9px}.pe-settings select{width:100%;font-size:14px}.pe-hud-main{gap:17px}.pe-time{min-width:76px}.pe-hud-main .pe-health strong{font-size:22px;letter-spacing:0}.pe-route #polarGoal{font-size:11px}.pe-route .pe-level{font-size:8px;padding:4px;letter-spacing:0}.pe-route .pe-distance{font-size:10px}.pe-route>span{gap:5px}.pe-boss-hud{top:108px;width:calc(100% - 28px);padding:8px 10px 6px}.pe-boss-hud>div{font-size:11px}.pe-boss-hud p{font-size:8px}.pe-boss-hud progress{height:5px}.pe-flag-rack{padding:11px;border-radius:9px}.pe-rack-heading strong,.pe-rack-heading b{font-size:11px}.pe-rack-heading>span{font-size:9px}.pe-stack-slots{gap:3px}.pe-stack-slots>span{height:26px;font-size:10px;border-radius:4px}.pe-match-guide{justify-content:flex-start;gap:7px}.pe-match-guide>span{font-size:9px}.pe-match-guide b{font-size:8px}.pe-gameplay-note{grid-template-columns:1fr}.pe-overlay-card{padding:20px 16px}.pe-panel .pe-overlay-card h3{font-size:22px}.pe-tip{max-width:125px}.pe-stage{height:480px}}
@media(prefers-reduced-motion:reduce){.pe-stack-slots>span,.pe-boss-hud progress::-webkit-progress-value{transition:none}}
.pe-controls button small{white-space:nowrap}.pe-match-guide>span{font-size:11px;color:#486571}.pe-match-guide b{font-size:10px;color:#365b69}.pe-gameplay-note{line-height:1.7}
@media(max-width:700px){.pe-settings{grid-template-columns:minmax(0,1fr) 154px}.pe-settings input{min-width:0}.pe-settings select{font-size:14px;padding-inline:8px}.pe-match-guide{display:grid;grid-template-columns:1fr;gap:8px}.pe-match-guide>span{font-size:11px}.pe-match-guide b{font-size:10px;margin-left:auto}.pe-match-guide .pe-dot{width:8px;height:8px}.pe-rack-heading>span{font-size:10px}.pe-help p{font-size:12px}.pe-help summary{font-size:12px}}
@media(max-width:700px){
  .game-page .pe-panel:not([hidden]){display:flex;flex-direction:column}
  .pe-heading{order:0}.pe-journey{order:1}.pe-toolbar{order:2}
  .pe-stage{order:3;height:clamp(280px,calc(100svh - var(--wiki-header-height,160px) - 96px),450px);flex:none;scroll-margin-top:calc(var(--wiki-header-height,160px) + 8px)}
  .pe-console{display:contents}.pe-controls{order:4;margin-top:10px;grid-template-columns:1fr 1.16fr 1fr;gap:8px;flex:none}
  .pe-controls button{min-height:64px;font-size:16px;border-radius:12px;-webkit-tap-highlight-color:transparent}
  .pe-controls button:active:not(:disabled){background:#cce9ee;border-color:#57a8b8;transform:translateY(1px)}
  .pe-controls .pe-jump:active:not(:disabled){background:#bde4dd;border-color:#379d8f}
  .pe-flag-rack{order:5;margin-top:12px}.pe-discovery{order:6;margin-top:12px}.pe-help{order:7}
  .pe-stage[data-state=running]~.pe-console .pe-controls{touch-action:none}
  body .ui-top.pe-playing{opacity:0;pointer-events:none}
}
.pe-controls button.is-held{background:#cce9ee;border-color:#57a8b8;transform:translateY(1px)}.pe-controls .pe-jump.is-held{background:#bde4dd;border-color:#379d8f}
.pe-dot.repel{background:#f4cc66;border:1px solid #147b78;box-shadow:0 0 0 1px #f7df9c}
.pe-boss-hud #polarBossName{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.pe-boss-hud #polarBossHp{flex:none}.pe-boss-hud #polarBossTactic{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pe-boss-hud[data-theme=interviewer]{background:#17334deb;border-color:#8ddce8}.pe-boss-hud[data-theme=massage]{background:#392348eb;border-color:#cdb0e6}.pe-boss-hud[data-theme=king]{background:#4c2330eb;border-color:#f3b3a3}.pe-boss-hud[data-theme=octopus]{background:#133c41eb;border-color:#94d8cb}.pe-boss-hud[data-theme=revision]{background:#392743eb;border-color:#e6b5d0}.pe-boss-hud[data-theme=midnight]{background:#1f2f50eb;border-color:#b1c9ef}
@media(max-width:700px){.pe-boss-hud{top:96px;padding:6px 10px}.pe-boss-hud p{display:none}.pe-boss-hud progress{margin-top:5px;height:4px}.pe-boss-hud>div{font-size:10px;line-height:14px}.pe-boss-hud .pe-boss-alert{font-size:8px}}

.pe-stage{contain:layout paint}.pe-progress i{width:100%;transform:scaleX(0);transform-origin:left center;will-change:transform}

@media(max-width:700px){.pe-panel .pe-overlay-card{backdrop-filter:none;background:#f9fefffa}.pe-stage[data-state=cleared] .pe-overlay-card{background:#fffdf2fa}}
