/* Result overlay; header JS supplies the host orientation attribute. */
#result { position:fixed; inset:auto; top:var(--iwashi-header-height,0px); left:0; display:grid; place-items:center; width:100dvw; height:calc(100dvh - var(--iwashi-header-height,0px)); min-width:0; min-height:0; max-width:none; max-height:none; margin:0; padding:8px; overflow:auto; transform:none; z-index:2000; background:#101214; }
#result[data-iwashi-result-host="rotated"] { left:50%; top:calc((100dvh + var(--iwashi-header-height,0px))/2); width:calc(100dvh - var(--iwashi-header-height,0px)); height:100dvw; transform:translate(-50%,-50%) rotate(90deg); }
.iwashi-result-ancestor { transform:none !important; perspective:none !important; filter:none !important; contain:none !important; container-type:normal !important; }
.result-card { width:min(100%,760px); max-height:100%; overflow:auto; padding:clamp(12px,2dvh,24px); border:1px solid #687077; background:#181b1e; text-align:center; }
.result-card h2 { margin:0 0 12px; font-size:clamp(20px,2.6dvh,30px); letter-spacing:.04em; }
.result-actions { display:flex; gap:8px; justify-content:flex-end; margin-top:12px; }
.result-actions :is(a,button) { display:grid; place-items:center; min-height:40px; padding:8px 12px; border:1px solid #687077; color:#fff; background:#252a2e; text-decoration:none; font-size:12px; }
.result-actions button:first-child { color:#111416; background:#c5d843; border-color:#c5d843; font-weight:700; }
#resultScores { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; margin-top: 12px; }
#resultScores div { border: 1px solid #687077; padding: 10px; }
#resultScores strong { display: block; font-size: 30px; }