.bw-result-dialog{box-sizing:border-box;width:min(740px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 24px);max-height:calc(100dvh - max(12px,env(safe-area-inset-top)) - max(12px,env(safe-area-inset-bottom)));padding:0;margin:auto;border:1px solid var(--bw-border-strong);border-radius:20px;background:var(--bw-bg-elevated);color:var(--bw-text);overflow:hidden;box-shadow:0 20px 70px #0006}.bw-result-dialog::backdrop{background:#03101bd1;backdrop-filter:blur(5px)}html:has(.bw-result-dialog[open]),body:has(.bw-result-dialog[open]){overflow:hidden;overscroll-behavior:none}.bw-result-dialog[open]{display:flex}.bw-result-dialog>#results{display:flex;flex-direction:column;min-height:0;max-height:inherit;width:100%;max-width:none;box-sizing:border-box;margin:0;padding:0;border:0;border-radius:inherit;text-align:center;overflow:hidden}#results .bw-result-body{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px 16px;min-height:0;overflow:auto;overscroll-behavior:contain;padding:22px 24px;scrollbar-width:thin}#results .bw-result-body>*{grid-column:1/-1;min-width:0;margin:0}#results .bw-result-body :is(.daily-result-mark,.hl-result-sigil){display:none}#results .bw-result-body :is(.daily-kicker,.hl-kicker){font-size:10px;line-height:1.4;letter-spacing:1.5px}#results .bw-result-body #resultTitle{grid-column:1;grid-row:2;text-align:left;font:750 26px/1.2 Segoe UI,system-ui,sans-serif;letter-spacing:-.6px;max-width:none;margin:0}#results .bw-result-body #resultScore{grid-column:2;grid-row:2;font:850 48px/1.1 Segoe UI,system-ui,sans-serif;letter-spacing:-1px;margin:0}#results.bw-result-wide-score .bw-result-body #resultTitle{grid-column:1/-1}#results.bw-result-wide-score .bw-result-body #resultScore{grid-column:1/-1;grid-row:3;font-size:clamp(24px,6vw,42px);overflow-wrap:anywhere}#results .bw-result-body #resultSummary{font-size:13px;line-height:1.6;margin:0}#results .bw-result-body #resultDetail{margin:4px 0}#results .bw-result-body #resultSaved{font-size:11px;line-height:1.5;margin:0;color:var(--bw-text-muted)}#results .bw-result-body #resultTrail{font-size:14px;line-height:1.7;overflow-wrap:anywhere}#results .bw-result-body #shareText{box-sizing:border-box;width:100%;min-height:90px;height:110px;margin:0}#results .bw-result-body #shareNote{font-size:12px;line-height:1.5;margin:0}#results .bw-result-body #shareNote:empty{display:none}#results .bw-result-actions{display:grid;flex:none;grid-template-columns:repeat(var(--bw-result-columns,3),minmax(0,1fr));gap:8px;box-sizing:border-box;width:100%;margin:0;padding:12px 16px;border-top:1px solid var(--bw-border);background:var(--bw-bg-elevated)}#results .bw-result-actions>.bw-btn{min-width:0;min-height:46px;font-size:12px;padding:9px 10px;white-space:normal;transform:none}#results .bw-result-actions>.bw-btn--primary{grid-column:1/-1}#results .bw-result-actions>.bw-btn[hidden]{display:none!important}@media(max-width:520px){#results .bw-result-body{padding:16px;gap:7px 12px}#results .bw-result-body #resultTitle{font-size:22px}#results .bw-result-body #resultScore{font-size:38px}#results .bw-result-body #resultSummary{font-size:12px}#results .bw-result-body #resultDetail>div:has(.chess-board-frame){max-width:clamp(140px,calc(100dvh - 410px),240px)!important}#results .bw-result-actions{padding:10px;gap:7px}#results .bw-result-actions>.bw-btn{font-size:11px;padding:8px 6px}}@media(max-height:450px)and (orientation:landscape){.bw-result-dialog{width:min(700px,calc(100vw - 20px))}#results .bw-result-body{padding:12px 18px;gap:5px 12px}#results .bw-result-body #resultTitle{font-size:21px}#results .bw-result-body #resultScore{font-size:34px}#results .bw-result-actions{grid-template-columns:repeat(calc(var(--bw-result-columns,3) + 1),minmax(0,1fr));padding:8px;gap:6px}#results .bw-result-actions>.bw-btn--primary{grid-column:auto}#results .bw-result-actions>.bw-btn{font-size:11px}}
