.fw-flow{display:flex!important;flex-direction:column!important;gap:12px!important;min-height:0!important;max-height:100%!important;overflow:hidden!important}
.fw-flow [hidden]{display:none!important}
.fw-flow[hidden],.fw-flow[style*="display: none"],.fw-flow[style*="display:none"]{display:none!important}
.fw-flow-section[data-flow-active="false"]{display:none!important}
.fw-flow-section[data-flow-active="true"]{display:flex!important;flex-direction:column!important;justify-content:center!important;min-height:0!important;flex:1 1 auto!important;margin:0!important}
.fw-flow-steps{display:flex;gap:6px;flex:0 0 auto;order:-2}
.fw-flow-steps button{flex:1;padding:8px!important;font-size:.8rem!important}
.fw-flow-steps [aria-current="step"]{border-color:#f6c85f;background:#4c235b;color:white;box-shadow:0 0 12px #f6c85f22}
.fw-flow-status{order:-1;flex:0 0 auto;color:#cbd5e1!important;font-size:.8rem!important;line-height:1.4!important;margin:0!important;max-width:none!important}
.fw-flow-navigation,.fw-choice-navigation{display:flex;align-items:center;justify-content:space-between;gap:10px;flex:0 0 auto}
.fw-flow-navigation .fw-flow-primary{margin-left:auto}
.fw-flow-navigation .btn-game{padding:8px 12px!important;min-height:40px!important;font-size:.8rem!important;margin:0!important}
.fw-choice-navigation{margin-top:12px;color:#cbd5e1;font-size:.8rem}
.fw-flow-button{min-height:40px;border:1px solid #7e618f;border-radius:10px;padding:9px 16px;background:#21152e;color:#fff;font:600 .85rem system-ui;cursor:pointer}
.fw-flow-button:focus-visible{outline:3px solid #f6c85f;outline-offset:2px}
.fw-flow-button:disabled{opacity:.45;cursor:default}
.fw-flow-primary{background:linear-gradient(120deg,#9f245c,#5b2ba4)}
.fw-run-result{width:min(92vw,560px);max-height:94vh;box-sizing:border-box;border:1px solid #8b6aa9;border-radius:18px;background:#141020;color:#e2e8f0;padding:20px;font:14px/1.5 system-ui;box-shadow:0 20px 60px #0008}
.fw-run-result::backdrop{background:#000b;backdrop-filter:blur(5px)}
.fw-run-result h2{font-size:clamp(1.2rem,4vw,1.7rem);margin:0;color:#e9d5ff}
.fw-run-result p{font-size:.85rem;color:#cbd5e1;margin:8px 0 16px}
.fw-run-result dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 16px}
.fw-run-result dl>div{background:#241b33;border:1px solid #5b456d;border-radius:10px;padding:10px;min-width:0}
.fw-run-result dt{font-size:.68rem;color:#c4b5d6}
.fw-run-result dd{font-size:1.2rem;font-weight:750;margin:4px 0 0;color:#fde68a}
.fw-result-actions{display:flex;justify-content:space-between;gap:8px}
@media(max-height:400px){.fw-run-result{padding:12px}.fw-run-result p{margin:4px 0 8px}.fw-run-result dl{gap:4px;margin-bottom:8px}.fw-run-result dl>div{padding:5px}.fw-run-result dd{font-size:1rem;margin:0}}
.fw-choice-deck{display:block!important;min-height:0!important;margin:0!important;width:100%!important}
.fw-choice-deck>button,.fw-choice-deck>[role="button"]{background:#20162d!important;color:#f8fafc!important;border:1px solid #78628e!important;border-radius:12px!important;font:500 .95rem system-ui!important;cursor:pointer}
.fw-choice-deck>.selected,.fw-choice-deck>.sel{background:#49314e!important;border-color:#f6c85f!important;box-shadow:0 0 0 1px #f6c85f44!important}
.fw-choice-deck>[data-choice-visible="false"]{display:none!important}
.fw-choice-deck>[data-choice-visible="true"]{display:flex!important;flex-direction:column;justify-content:center;align-items:center;width:100%!important;box-sizing:border-box;min-height:120px!important;padding:18px!important;gap:8px}
.fw-choice-card small,.fw-choice-card p{white-space:normal!important;line-height:1.5!important;max-width:520px}
.fw-setup-screen{overflow:hidden!important;padding:12px!important;justify-content:center!important}
.fw-setup-screen>.menu-content{width:min(100%,680px)!important;height:min(100%,560px)!important;margin:0!important;padding:18px!important;flex-shrink:1!important;box-sizing:border-box!important}
.fw-setup-screen .menu-title{font-size:clamp(1.15rem,3vw,1.7rem)!important;margin:0!important;flex:0 0 auto}
.fw-setup-screen #classGrid{display:block!important;margin:0!important}
.fw-setup-screen #classGrid button{min-height:64px;white-space:normal;padding:14px!important}
.fw-setup-actions{display:flex!important;flex:0 0 auto!important;gap:10px!important;margin:0!important;justify-content:space-between!important}
.fw-setup-actions button{min-height:40px!important;padding:8px 12px!important;font-size:.8rem!important}
.fw-setup-actions[data-final-step="false"]{justify-content:flex-start!important}
.fw-setup-screen .run-mode-label{display:none!important}
@media(max-width:480px){.fw-flow{gap:8px!important}.fw-setup-screen>.menu-content{padding:12px!important}.fw-flow-steps button{font-size:.7rem!important}.fw-choice-deck>[data-choice-visible="true"]{padding:12px!important;min-height:100px!important}.fw-choice-navigation{gap:6px}.fw-flow-button{padding:8px 10px}.fw-choice-card small{font-size:.8rem!important}}
@media(max-height:430px){.fw-setup-screen>.menu-content{gap:6px!important;padding:10px!important}.fw-flow-status{font-size:.7rem!important}.fw-choice-deck>[data-choice-visible="true"]{min-height:70px!important;padding:6px!important}.fw-choice-navigation{margin-top:4px}.fw-flow-button{min-height:32px!important;padding:5px 10px!important}.fw-setup-screen #classGrid button{min-height:40px!important}.fw-setup-actions button{min-height:32px!important}}

