html{color-scheme:dark}.perfect-cut-page{background:var(--c-bg);color:var(--c-ink);font-family:var(--font-body);--pc-cut: var(--c-danger);--pc-ideal: var(--c-info);--pc-piece-a: var(--c-accent);--pc-piece-b: var(--c-primary)}.perfect-cut-page .tool-frame{max-width:640px;margin-inline:auto}.perfect-cut-page .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.perfect-cut-page .section-tool-page{padding-top:var(--s-2);padding-bottom:max(var(--s-6),env(safe-area-inset-bottom))}.perfect-cut-page .tool-header-block{margin-bottom:var(--s-3)}.perfect-cut-page .page-title{margin:0 0 var(--s-1);font-family:var(--t-headline-family);font-size:clamp(var(--t-headline-size),4vw,var(--t-display-size));font-weight:400;line-height:var(--t-headline-line);letter-spacing:var(--t-headline-tracking);color:var(--c-ink)}.perfect-cut-page .page-subtitle{margin:0;max-width:62ch;font-size:var(--t-caption-size);line-height:var(--t-caption-line);color:var(--c-ink-2)}.perfect-cut-page .tool-shell{padding:0;border:var(--card-border);border-radius:var(--r-lg);background:var(--card-bg);box-shadow:var(--card-shadow);margin-bottom:var(--s-6)}.perfect-cut-page .game-surface{display:flex;flex-direction:column;gap:0}.perfect-cut-page .mode-tabs{display:grid;grid-template-columns:1fr 1fr;border-bottom:var(--stroke-hairline) solid var(--c-ink)}.perfect-cut-page .mode-tab{min-height:44px;padding:var(--s-1) var(--s-3);border:0;border-radius:0;background:var(--c-surface-sunken);color:var(--c-ink-2);font:inherit;font-size:var(--t-label-size);font-weight:var(--t-label-weight);cursor:pointer;touch-action:manipulation;display:inline-flex;align-items:center;justify-content:center;gap:var(--s-2)}.perfect-cut-page .mode-tab+.mode-tab{border-left:var(--stroke-hairline) solid var(--c-ink)}.perfect-cut-page .mode-tab[aria-selected=true]{background:var(--c-surface);color:var(--c-ink);box-shadow:inset 0 calc(-1 * var(--stroke-regular)) 0 var(--c-ink)}.perfect-cut-page .mode-tab-date{font-family:var(--font-mono);font-size:var(--t-caption-size);font-weight:400;color:var(--c-ink-2)}.perfect-cut-page .mode-tab:focus-visible,.perfect-cut-page .new-set-btn:focus-visible,.perfect-cut-page .button:focus-visible{outline:var(--stroke-regular) solid var(--c-focus);outline-offset:2px}.perfect-cut-page .game-hud{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:var(--s-3);min-height:48px;padding:var(--s-1) var(--s-3);border-bottom:var(--stroke-hairline) solid var(--c-line)}.perfect-cut-page .hud-stage{font-family:var(--font-mono);font-size:var(--t-title-size);font-weight:700;font-variant-numeric:tabular-nums;color:var(--c-ink)}.perfect-cut-page .hud-shape-name{min-width:0;overflow-wrap:break-word;line-height:1.2;font-size:var(--t-label-size);font-weight:var(--t-label-weight);color:var(--c-ink-2)}.perfect-cut-page .hud-readout{font-family:var(--font-mono);font-size:var(--t-label-size);font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--c-ink)}.perfect-cut-page .hud-readout[data-tone=laser]{color:var(--fg-success)}.perfect-cut-page .hud-readout[data-tone=precision]{color:var(--fg-info)}.perfect-cut-page .hud-readout[data-tone=close]{color:var(--fg-warning)}.perfect-cut-page .hud-readout[data-tone=off]{color:var(--fg-danger)}.perfect-cut-page .mat-stage{background:var(--c-surface-sunken);touch-action:none;user-select:none;-webkit-user-select:none}.perfect-cut-page .cutting-mat-svg{display:block;width:min(100%,calc(min(56vh,430px) * 500 / 360));margin-inline:auto;height:auto;aspect-ratio:500 / 360;cursor:crosshair;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent}.perfect-cut-page .cutting-mat-svg:focus{outline:none}.perfect-cut-page .cutting-mat-svg:focus-visible{outline:var(--stroke-regular) solid var(--c-focus);outline-offset:-4px}.perfect-cut-page .mat-bg{fill:var(--c-surface-sunken)}.perfect-cut-page .mat-frame{fill:none;stroke:var(--c-line-strong);stroke-width:2;shape-rendering:crispEdges}.perfect-cut-page .mat-grid-minor{fill:none;stroke:var(--c-line);stroke-width:1;opacity:.45;shape-rendering:crispEdges}.perfect-cut-page .mat-grid-major{fill:none;stroke:var(--c-line);stroke-width:1;shape-rendering:crispEdges}.perfect-cut-page .mat-tick{stroke:var(--c-ink-3);stroke-width:1;shape-rendering:crispEdges}.perfect-cut-page .mat-tick--major{stroke:var(--c-ink-2);stroke-width:2}.perfect-cut-page .shape-shadow{fill:var(--c-bg)}.perfect-cut-page .shape-fill{fill:var(--pc-piece-a);stroke:var(--c-ink);stroke-width:2.5;stroke-linejoin:miter}.perfect-cut-page .shape-fill--b{fill:var(--pc-piece-b)}.perfect-cut-page .cut-edge{stroke:var(--c-ink);stroke-width:2.5}.perfect-cut-page .piece-label-group{pointer-events:none}.perfect-cut-page .piece-label-box{fill:var(--c-surface);stroke:var(--c-ink);stroke-width:2.5}.perfect-cut-page .piece-label-text{fill:var(--c-ink);font-family:var(--font-mono);font-size:23px;font-weight:700}.perfect-cut-page .bisector-line{stroke:var(--pc-ideal);stroke-width:3;stroke-dasharray:8 6}.perfect-cut-page .aim-line{stroke:var(--pc-cut);stroke-width:2.5;stroke-dasharray:6 5}.perfect-cut-page .laser-line{stroke:var(--pc-cut);stroke-width:3;stroke-linecap:square}.perfect-cut-page .laser-handle{fill:var(--c-surface-sunken);stroke:var(--pc-cut);stroke-width:2.5}.perfect-cut-page .laser-spark{fill:var(--pc-cut);stroke:var(--c-ink);stroke-width:1.5}.perfect-cut-page .piece-half{transition:transform var(--m-slow) var(--m-ease-standard)}.perfect-cut-page .mat-footer{display:flex;align-items:center;gap:var(--s-3);min-height:56px;padding:var(--s-2) var(--s-3);border-top:var(--stroke-hairline) solid var(--c-line)}.perfect-cut-page .mat-feedback{flex:1 1 auto;min-width:0;margin:0;font-size:var(--t-caption-size);line-height:1.4;color:var(--c-ink-2);text-wrap:pretty}.perfect-cut-page .mat-feedback-grade{display:block}.perfect-cut-page .mat-feedback-detail{display:block;font-family:var(--font-mono);font-weight:400}.perfect-cut-page .mat-feedback[data-tone=error]{color:var(--fg-danger);font-weight:700}.perfect-cut-page .mat-feedback[data-tone=laser]{color:var(--fg-success);font-weight:700}.perfect-cut-page .mat-feedback[data-tone=precision]{color:var(--fg-info);font-weight:700}.perfect-cut-page .mat-feedback[data-tone=close]{color:var(--fg-warning);font-weight:700}.perfect-cut-page .mat-feedback[data-tone=off]{color:var(--fg-danger);font-weight:700}.perfect-cut-page .button{min-height:44px;padding:0 var(--s-4);border:var(--btn-outline, var(--stroke-regular) solid var(--c-ink));border-radius:0;font:inherit;font-size:var(--t-label-size);font-weight:var(--t-label-weight);white-space:nowrap;cursor:pointer;touch-action:manipulation;transition:transform var(--m-fast) var(--m-ease-standard),box-shadow var(--m-fast) var(--m-ease-standard)}.perfect-cut-page .button-primary{background:var(--c-primary);color:var(--c-on-primary);box-shadow:0 4px 0 0 var(--c-ink)}.perfect-cut-page .button-secondary{background:var(--c-surface-2);color:var(--c-ink);box-shadow:0 4px 0 0 var(--c-ink)}.perfect-cut-page .button:active{transform:translateY(4px);box-shadow:none}.perfect-cut-page .primary-cta{flex:0 0 auto}.perfect-cut-page .primary-cta[hidden],.perfect-cut-page .new-set-btn[hidden]{display:none}.perfect-cut-page .mat-legend{display:flex;flex-wrap:wrap;gap:var(--s-1) var(--s-4);padding:0 var(--s-3) var(--s-2);font-size:var(--t-caption-size);color:var(--c-ink-2)}.perfect-cut-page .mat-legend-item{display:inline-flex;align-items:center;gap:var(--s-2)}.perfect-cut-page .mat-legend-line{display:inline-block;width:20px;height:0}.perfect-cut-page .mat-legend-line--cut{border-top:3px solid var(--pc-cut)}.perfect-cut-page .mat-legend-line--ideal{border-top:3px dashed var(--pc-ideal)}.perfect-cut-page .progress-strip{display:flex;align-items:center;gap:var(--s-3);padding:var(--s-2) var(--s-3) var(--s-3);border-top:var(--stroke-hairline) solid var(--c-line)}.perfect-cut-page .progress-rounds{flex:1 1 auto;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:var(--s-1);margin:0;padding:0;list-style:none;min-width:0}.perfect-cut-page .progress-slot{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:44px;padding:2px 0;border:var(--stroke-hairline) solid var(--c-line);background:var(--c-surface-sunken);font-family:var(--font-mono);font-size:12px;line-height:1.2;font-variant-numeric:tabular-nums;color:var(--c-ink-3);min-width:0}.perfect-cut-page .progress-slot-num{color:var(--c-ink-2)}.perfect-cut-page .progress-slot-score{font-weight:700}.perfect-cut-page .progress-slot.is-current{border-color:var(--c-ink);background:var(--c-surface-2);color:var(--c-ink)}.perfect-cut-page .progress-slot.is-current .progress-slot-num{color:var(--c-ink);font-weight:700}.perfect-cut-page .progress-slot[data-grade=laser] .progress-slot-score{color:var(--fg-success)}.perfect-cut-page .progress-slot[data-grade=precision] .progress-slot-score{color:var(--fg-info)}.perfect-cut-page .progress-slot[data-grade=close] .progress-slot-score{color:var(--fg-warning)}.perfect-cut-page .progress-slot[data-grade=off] .progress-slot-score{color:var(--fg-danger)}.perfect-cut-page .progress-side{flex:0 0 7.75rem;width:7.75rem;display:flex;flex-direction:column;align-items:flex-end;gap:var(--s-1)}.perfect-cut-page .progress-score{font-family:var(--font-mono);font-size:var(--t-caption-size);color:var(--c-ink-2);white-space:nowrap}.perfect-cut-page .progress-score strong{font-family:var(--font-mono);font-size:var(--t-title-size);color:var(--c-ink)}.perfect-cut-page .new-set-btn{width:100%;min-height:44px;padding:0 var(--s-3);border:var(--stroke-hairline) solid var(--c-ink-2);border-radius:0;background:transparent;color:var(--c-ink);font:inherit;font-size:var(--t-caption-size);font-weight:700;white-space:nowrap;cursor:pointer;touch-action:manipulation}.perfect-cut-page .new-set-btn[data-armed=true]{border-color:var(--c-danger);color:var(--fg-danger)}.perfect-cut-page .storage-note{margin:0;padding:var(--s-2) var(--s-3);border-top:var(--stroke-hairline) solid var(--c-line);font-size:var(--t-caption-size);color:var(--fg-warning)}.perfect-cut-page .play-area[hidden],.perfect-cut-page .summary-overlay[hidden]{display:none}.perfect-cut-page .summary-card{display:flex;flex-direction:column;gap:var(--s-3);padding:var(--s-4) var(--s-3) var(--s-5)}.perfect-cut-page .summary-kicker{margin:0;font-family:var(--font-mono);font-size:var(--t-caption-size);color:var(--c-ink-2)}.perfect-cut-page .summary-title{margin:0;font-family:var(--t-title-family);font-size:var(--t-title-size);font-weight:var(--t-title-weight);line-height:var(--t-title-line);color:var(--c-ink)}.perfect-cut-page .summary-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}.perfect-cut-page .summary-stats[data-count="3"]{grid-template-columns:repeat(3,minmax(0,1fr))}.perfect-cut-page .summary-stats{margin:0;border:var(--stroke-hairline) solid var(--c-ink)}.perfect-cut-page .summary-stat{padding:var(--s-2);min-width:0}.perfect-cut-page .summary-stat+.summary-stat{border-left:var(--stroke-hairline) solid var(--c-line)}.perfect-cut-page .summary-stat[hidden]{display:none}.perfect-cut-page .summary-stat dt{font-size:12px;line-height:1.3;color:var(--c-ink-2);overflow-wrap:break-word}.perfect-cut-page .summary-stat dd{margin:0;font-family:var(--font-mono);font-size:var(--t-title-size);font-weight:700;font-variant-numeric:tabular-nums;color:var(--c-ink);white-space:nowrap}.perfect-cut-page .summary-stat dd small{font-family:var(--font-mono);font-size:12px;font-weight:400;color:var(--c-ink-2)}.perfect-cut-page .summary-rounds{display:flex;flex-direction:column;gap:0;margin:0;padding:0;list-style:none;border:var(--stroke-hairline) solid var(--c-line)}.perfect-cut-page .summary-round-row{display:grid;grid-template-columns:28px 40px minmax(0,1fr) auto;align-items:center;gap:var(--s-2);padding:var(--s-1) var(--s-2)}.perfect-cut-page .summary-round-row+.summary-round-row{border-top:var(--stroke-hairline) solid var(--c-line)}.perfect-cut-page .summary-round-num{font-family:var(--font-mono);font-size:var(--t-caption-size);color:var(--c-ink-2)}.perfect-cut-page .summary-round-poly{display:block;width:40px;height:40px;background:var(--c-surface-sunken)}.perfect-cut-page .mini-poly{fill:var(--c-surface-2);stroke:var(--c-ink-2);stroke-width:1.4}.perfect-cut-page .mini-ideal{stroke:var(--pc-ideal);stroke-width:1.6;stroke-dasharray:3 2}.perfect-cut-page .mini-cut{stroke:var(--pc-cut);stroke-width:1.8}.perfect-cut-page .summary-round-name{min-width:0;overflow-wrap:break-word;hyphens:auto;line-height:1.3;font-size:var(--t-caption-size);color:var(--c-ink)}.perfect-cut-page .summary-round-badge{font-family:var(--font-mono);font-size:var(--t-caption-size);font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}.perfect-cut-page .summary-round-badge[data-grade=laser]{color:var(--fg-success)}.perfect-cut-page .summary-round-badge[data-grade=precision]{color:var(--fg-info)}.perfect-cut-page .summary-round-badge[data-grade=close]{color:var(--fg-warning)}.perfect-cut-page .summary-round-badge[data-grade=off]{color:var(--fg-danger)}.perfect-cut-page .summary-legend{display:flex;flex-wrap:wrap;gap:2px var(--s-3);margin:0;font-size:12px;line-height:1.6;color:var(--c-ink-2)}.perfect-cut-page .summary-legend-item{white-space:nowrap}.perfect-cut-page .summary-legend-rule{flex-basis:100%}.perfect-cut-page:lang(zh) .page-subtitle,.perfect-cut-page:lang(zh) .summary-title,.perfect-cut-page:lang(zh) .summary-next,.perfect-cut-page:lang(zh) .mat-feedback{word-break:keep-all;overflow-wrap:break-word}.perfect-cut-page .summary-next{margin:0;font-size:var(--t-caption-size);color:var(--c-ink-2)}.perfect-cut-page .summary-actions{display:grid;grid-template-columns:1fr 1fr;gap:var(--s-3);padding-bottom:var(--s-1)}.perfect-cut-page .summary-actions #share-btn{grid-column:1 / -1}.perfect-cut-page .share-feedback{margin:0;font-size:var(--t-caption-size);color:var(--fg-success)}.perfect-cut-page .share-feedback[data-tone=warn]{color:var(--fg-warning)}.perfect-cut-page .share-feedback[hidden],.perfect-cut-page .share-fallback-box[hidden],.perfect-cut-page .share-card-canvas[hidden]{display:none}.perfect-cut-page .share-fallback-box{width:100%;box-sizing:border-box;padding:var(--s-2);border:var(--stroke-hairline) solid var(--c-ink);border-radius:0;background:var(--c-surface-sunken);color:var(--c-ink);font-family:var(--font-mono);font-size:16px}.perfect-cut-page .nobr{white-space:nowrap}.perfect-cut-page .tool-notes h2{margin:0 0 var(--s-2);font-family:var(--t-title-family);font-size:var(--t-title-size);font-weight:var(--t-title-weight);color:var(--c-ink)}.perfect-cut-page .tool-notes p{margin:0 0 var(--s-3);max-width:72ch;font-size:var(--t-caption-size);line-height:1.75;color:var(--c-ink-2)}@media(max-width:520px){.perfect-cut-page .page-title{font-size:var(--t-title-size)}.perfect-cut-page .tool-header-block{margin-bottom:var(--s-2)}.perfect-cut-page .game-hud{gap:var(--s-2);padding:0 var(--s-2);min-height:44px}.perfect-cut-page .mat-footer{padding:var(--s-1) var(--s-2);min-height:52px}.perfect-cut-page .primary-cta{padding:0 var(--s-3)}.perfect-cut-page .mat-legend,.perfect-cut-page .progress-strip{padding-left:var(--s-2);padding-right:var(--s-2)}.perfect-cut-page .summary-stats[data-count="4"]{grid-template-columns:repeat(2,minmax(0,1fr))}.perfect-cut-page .summary-stats[data-count="4"] .summary-stat:nth-child(3){border-left:0}.perfect-cut-page .summary-stats[data-count="4"] .summary-stat:nth-child(n+3){border-top:var(--stroke-hairline) solid var(--c-line)}}@media(max-width:360px){.perfect-cut-page .game-hud{min-height:40px}.perfect-cut-page .summary-actions{grid-template-columns:1fr}.perfect-cut-page .summary-actions .button{white-space:normal}.perfect-cut-page .mat-feedback{font-size:13px;line-height:1.3}.perfect-cut-page .progress-strip{flex-wrap:wrap}.perfect-cut-page .progress-rounds{flex-basis:100%}.perfect-cut-page .progress-side{flex:1 1 100%;width:auto;flex-direction:row;align-items:center;justify-content:space-between}.perfect-cut-page .new-set-btn{width:auto;min-width:7.75rem}.perfect-cut-page .summary-round-row{grid-template-columns:24px minmax(0,1fr) auto}.perfect-cut-page .summary-round-row .summary-round-poly{display:none}.perfect-cut-page:lang(zh) .summary-round-name{word-break:keep-all}.perfect-cut-page .hud-shape-name{font-size:var(--t-caption-size)}.perfect-cut-page .tool-header-block{margin-bottom:var(--s-1)}}@media(prefers-reduced-motion:reduce){.perfect-cut-page .piece-half,.perfect-cut-page .button{transition:none!important}}
