/* Reuse the earlier level-card / choices markup and TalesWeaver theme. */
#run-overlay{position:fixed;inset:0;z-index:40;box-sizing:border-box;display:grid;place-content:normal;place-items:center;padding:12px;background:#17142dbb;overflow:hidden;backdrop-filter:none}
#run-overlay .level-card{box-sizing:border-box;width:min(580px,100%);max-height:calc(100dvh - 24px);min-width:0;overflow:auto;overscroll-behavior:contain;padding:14px;border:4px double #c2b0ed;border-radius:6px;background:linear-gradient(#4c3b6d,#261e3d);box-shadow:0 10px 32px #0007;text-align:center;scrollbar-width:thin}
#run-overlay .eyebrow{font-size:9px;letter-spacing:2px;color:#d2b8ec}
#run-overlay h2{font-size:20px;letter-spacing:2px;font-weight:400;line-height:1.3;margin:4px 0 6px;color:#ead4ff}
#run-overlay .level-card>p{font-size:11px;line-height:1.5;margin:4px 0 8px;color:#e0cde8}
#run-overlay .auto-choice{display:inline-flex;align-items:center;justify-content:center;gap:6px;font-size:11px;line-height:1.5;margin:0;min-height:24px}
#run-overlay .auto-choice input{margin:0;width:15px;height:15px;accent-color:#bba0d7}
#run-overlay #choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:10px 0 0;min-width:0}
#run-overlay #choices>button{box-sizing:border-box;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:7px;min-width:0;min-height:150px;margin:0;padding:12px 9px 9px;border:2px outset #bba0d7;border-radius:3px;background:linear-gradient(#5d4c83,#30213fee);color:#fff0cd;text-align:center;white-space:normal;overflow-wrap:anywhere;box-shadow:0 4px 12px #0003;transform:none}
#run-overlay #choices>button:hover{background:linear-gradient(#806697,#49305a);transform:none}
#run-overlay #choices>button:focus-visible{outline:2px solid #ffe2a1;outline-offset:2px}
#run-overlay #choices .symbol{display:grid;place-items:center;width:32px;height:32px;flex:none;font-size:27px;line-height:1;color:#e1d09a}
#run-overlay #choices .symbol img{width:32px;height:32px;object-fit:contain;image-rendering:pixelated}
#run-overlay #choices strong{font-size:13px;line-height:1.4;letter-spacing:0;font-weight:500}
#run-overlay #choices small{font-size:11px;line-height:1.5;color:#e0cde8}
#run-overlay #choices em{font-size:10px;line-height:1.4;font-style:normal;color:#ffe2a1;margin-top:auto}
#run-overlay #choices kbd{position:absolute;top:5px;right:5px;bottom:auto;left:auto;width:auto;min-width:14px;padding:1px 3px;border:1px solid #fff3ff;border-radius:2px;background:#e0d1f4;color:#403052;font:10px/1.2 monospace}
#run-overlay .run-result{width:min(360px,100%)}
#run-overlay .run-result button{font-size:13px;padding:9px 18px;margin:8px 0 0}
@media(max-width:520px){
 #run-overlay{padding:8px}
 #run-overlay .level-card{width:min(380px,100%);max-height:calc(100dvh - 16px);padding:8px}
 #run-overlay .eyebrow{display:block;font-size:8px;line-height:1.3}
 #run-overlay h2{font-size:17px;letter-spacing:1px;margin:3px 0 5px}
 #run-overlay .level-card>p{font-size:10px;line-height:1.4;margin:3px 0 5px}
 #run-overlay .auto-choice{font-size:10.5px;min-height:22px}
 #run-overlay #choices{grid-template-columns:minmax(0,1fr);gap:6px;margin-top:6px}
 #run-overlay #choices>button{display:grid;grid-template-columns:30px minmax(0,1fr);align-items:center;gap:1px 8px;min-height:66px;padding:6px 24px 6px 7px;text-align:left}
 #run-overlay #choices .symbol{grid-column:1;grid-row:1/4;width:30px;height:30px}
 #run-overlay #choices .symbol img{width:30px;height:30px}
 #run-overlay #choices strong,#run-overlay #choices small,#run-overlay #choices em{grid-column:2;min-width:0;margin:0}
 #run-overlay #choices strong{font-size:12px;line-height:1.3}
 #run-overlay #choices small{font-size:10px;line-height:1.3}
 #run-overlay #choices em{font-size:9.5px;line-height:1.3}
}
#run-overlay .choice-status{min-height:1.2em;margin:4px 0 0;font-size:12px;color:#ffe4a5}
#run-overlay #choices>button[aria-busy="true"]{opacity:.7;cursor:wait}
@media(max-height:420px) and (min-width:521px){
 #run-overlay .level-card{padding:9px}
 #run-overlay h2{font-size:17px;margin:2px 0}
 #run-overlay .level-card>p{margin:3px 0}
 #run-overlay #choices{margin-top:6px;gap:6px}
 #run-overlay #choices>button{min-height:132px;padding:9px 8px 7px;gap:5px}
 #run-overlay #choices small{font-size:10px}
}

#run-overlay #choices>button.choice-selected{border-color:#ffe2a1;background:linear-gradient(#806697,#49305a);opacity:1;box-shadow:inset 0 0 0 1px #ffe2a1}
