.jig { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 10px 16px 12px; max-width: 760px; width: 100%; margin: 0 auto; min-height: 0; }
.piecebar { display: flex; align-items: center; justify-content: space-between; }
.dots { display: flex; gap: 6px; }
.dot { width: 26px; height: 26px; border-radius: 7px; background: var(--line); display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--muted); }
.dot.cur { outline: 2px solid var(--accent); outline-offset: 1px; background: var(--surface); color: var(--ink); }
.dot.r-g { background: var(--hit); color: #fff; } .dot.r-y { background: var(--near); color: #fff; }
.dot.r-o { background: var(--mid); color: #fff; } .dot.r-r { background: var(--far); color: #fff; }
.score { font: 800 22px/1 system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.score small { font-size: 13px; color: var(--muted); font-weight: 600; }
.stage { display: flex; align-items: center; gap: 12px; }
.piece { margin: 0; width: 104px; flex: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px; }
.piece svg { display: block; width: 100%; aspect-ratio: 1 / 1.12; }
.piece path.shape { fill: var(--accent); }
.piece figcaption { font-size: 11px; color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }
.piece .bar-line { stroke: var(--muted); stroke-width: 2; }
.status { margin: 0; font-size: 15px; font-weight: 600; }
.status .km { font-size: 22px; font-weight: 800; display: block; }
.status .name { font-size: 20px; font-weight: 800; display: block; }
.mapwrap { position: relative; flex: 1; min-height: 220px; border-radius: var(--radius); overflow: hidden; background: var(--ocean); border: 1px solid var(--line); }
#map { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; user-select: none; }
#lands path { fill: var(--land); stroke: var(--border); stroke-width: .6; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
#lands path.t-hit { fill: var(--hit); } #lands path.t-near { fill: var(--near); }
#lands path.t-mid { fill: var(--mid); } #lands path.t-far { fill: var(--far); }
#lands path.done { fill: color-mix(in srgb, var(--land) 60%, var(--hit)); }
.mk-line { stroke: var(--ink); stroke-width: 1.4; stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; fill: none; }
.mk-pin { fill: var(--guess); stroke: #fff; vector-effect: non-scaling-stroke; stroke-width: 1.5; }
.mk-pin.pending { fill: var(--accent); }
.mk-pin.ok { fill: var(--hit); }
.zoom { position: absolute; right: 8px; top: 8px; display: flex; flex-direction: column; gap: 6px; }
.zoom .icon { width: 36px; height: 36px; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.actions { display: flex; gap: 8px; }
.howto { padding-left: 20px; margin: 0 0 10px; } .howto li { margin-bottom: 6px; }
.legend { font-size: 15px; }
.big { font: 800 40px/1 system-ui, sans-serif; margin: 4px 0; font-variant-numeric: tabular-nums; }
.emoji { font-size: 28px; letter-spacing: 2px; margin: 6px 0 10px; }
.reslist { list-style: none; padding: 0; margin: 0 0 12px; font-size: 14px; }
.reslist li { display: flex; justify-content: space-between; padding: 3px 0; border-bottom: 1px dashed var(--line); }
.statsgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; text-align: center; margin: 14px 0 6px; }
.statsgrid b { display: block; font-size: 22px; } .statsgrid span { font-size: 11px; color: var(--muted); }
@media (min-width: 700px) {
  .piece { width: 150px; }
}
