.p-wrap { max-width: 640px; }
.p-start p { margin: 0 0 12px; line-height: 1.45; font-size: 15px; }
.p-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.p-modes button { padding: 14px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); cursor: pointer; text-align: center; }
.p-modes button:hover { border-color: var(--accent); }
.p-modes b { display: block; font-size: 18px; color: var(--accent); }
.p-modes span { font-size: 12px; color: var(--muted); }
.p-best { font-size: 13px; color: var(--muted); text-align: center; margin: 10px 0 0 !important; }
.p-bar { display: grid; grid-template-columns: 1.6fr 1.2fr .8fr .8fr; gap: 8px; align-items: end; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.p-bar small { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.p-cur { font-size: 20px; color: var(--accent); }
.p-nxt { font-size: 14px; color: var(--muted); }
.p-pts { font-size: 20px; font-variant-numeric: tabular-nums; }
.p-x { font-size: 15px; letter-spacing: 1px; }
.p-strikes.off { visibility: hidden; }
.p-progress { height: 4px; background: var(--line); border-radius: 2px; margin: 6px 0 0; overflow: hidden; }
.p-progress span { display: block; height: 100%; width: 0; background: var(--good); transition: width .3s; }
.p-msg { min-height: 20px; margin: 6px 0; font-size: 14px; text-align: center; color: var(--muted); }
.p-msg.good { color: var(--good); } .p-msg.ok { color: var(--warm); } .p-msg.bad { color: var(--accent); }
.p-map-box { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 6px; }
.p-map { width: 100%; height: auto; display: block; touch-action: none; user-select: none; -webkit-user-select: none; cursor: crosshair; }
.p-base path { fill: var(--map-fill); stroke: var(--map-fill); stroke-width: 1.5; }
.p-placed path { stroke: var(--card); stroke-width: 1.4; transition: transform .45s ease-out, fill .3s; }
.p-placed path.perfect { fill: var(--good); }
.p-placed path.close { fill: var(--warm); }
.p-placed path.strike { fill: var(--accent); }
.p-drag { fill: var(--shape); fill-opacity: .75; stroke: var(--card); stroke-width: 1.5; pointer-events: none; }
.p-drag.locked { fill: var(--good); fill-opacity: .9; }
.p-miss { stroke: var(--accent); stroke-width: 3; stroke-dasharray: 8 6; opacity: 0; transition: opacity .3s; }
.p-miss.show { opacity: .9; }
.p-over { text-align: center; margin-top: 12px; }
.p-final { font-size: 17px; }
@media (max-width: 480px) { .p-bar { grid-template-columns: 1fr 1fr; } .p-cur { font-size: 18px; } }
