:root{font-family:system-ui,-apple-system,BlinkMacSystemFont,sans-serif;color:#182130;background:#f1f3f7;--paper:#fff;--ink:#182130;--panel:#e9edf5;--stroke:#b6c2d2;--action:#263b5a;--short:#8a3d17;--hero:#245ea8}
:root[data-pg-theme=dark]{color:#eff4fd;background:#141c28;--paper:#1d2737;--ink:#eff4fd;--panel:#2b3a51;--stroke:#556b87;--action:#b8cdf0;--short:#ffb28b;--hero:#a9ccff}
body{margin:0;color:var(--ink)}*{box-sizing:border-box}
.op-wrap{max-width:780px;margin:0 auto;padding:14px clamp(14px,4vw,32px) 36px}
.op-wrap nav{display:flex;justify-content:space-between;flex-wrap:wrap;gap:4px 12px}
.op-wrap nav a{min-height:44px;display:inline-flex;align-items:center;color:var(--action);font-size:13px;text-decoration:none;font-weight:700}
.op-wrap header{padding:18px 0 12px}
.op-wrap header span,.op-overline{color:var(--action);font-size:12px;font-weight:750;letter-spacing:.04em}
.op-wrap h1{font-size:clamp(30px,7vw,52px);letter-spacing:-.06em;margin:7px 0 10px;line-height:1.13}
.op-wrap p{margin:7px 0;line-height:1.58}
.op-wrap :is(h1,h2,p,button){word-break:keep-all;overflow-wrap:anywhere}
.op-surface{padding:clamp(14px,4vw,24px);border:1px solid var(--stroke);background:var(--paper);border-radius:16px}
.op-handline{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:10px 0;font-size:14px}
.op-handline strong{font-size:25px;color:var(--hero)}
.op-seats{list-style:none;margin:10px 0;padding:0;display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:5px}
.op-seats li{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:46px;gap:2px;border-radius:7px;padding:3px;background:var(--panel);font-size:11px;text-align:center}
.op-seats [data-hero]{outline:2px solid var(--hero);outline-offset:-2px}
.op-seats [data-short] strong{color:var(--short)}
.op-action{color:var(--action);font-size:14px;font-weight:650}
.op-assumption{font-size:11px;opacity:.8}
#opPrompt{font-size:clamp(17px,4vw,22px);margin:13px 0 8px}
#opChoices{display:grid;gap:6px}
.op-surface button{font:inherit;font-size:14px;line-height:1.45;min-height:44px;padding:7px 11px;color:var(--ink);background:var(--panel);border:1px solid var(--stroke);border-radius:8px;text-align:left}
.op-surface button[data-chosen]{border-color:var(--hero);outline:1px solid var(--hero)}
.op-surface button:focus-visible,.op-wrap a:focus-visible{outline:2px solid var(--hero);outline-offset:2px}
#opFeedback:not(:empty){padding:7px 0;font-size:14px}
#opNext:not([hidden]){margin-top:2px;font-weight:750}
@media(max-width:550px){.op-seats{grid-template-columns:repeat(4,minmax(0,1fr))}}
#opHand{display:flex;gap:4px;align-items:center}
#opHand>span{display:grid;place-items:center;width:36px;min-height:50px;border-radius:5px;background:#f7f9ff;color:#24334b;border:1px solid var(--stroke)}
#opHand img{width:36px;height:50px;object-fit:contain}
#opHand [hidden]{display:none}
#opHistory:not([hidden]){font-size:13px;color:var(--action);border-inline-start:2px solid var(--stroke);padding-inline-start:8px}
.op-seats [data-all-in]{outline:2px solid var(--short);outline-offset:-2px}
#opAction[data-all-in]{color:var(--short)}
@media(prefers-reduced-motion:no-preference){#opHand>span,.op-seats [data-all-in]{animation:op-deal-in 170ms ease-out both}
@keyframes op-deal-in{from{opacity:.7;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}}
.op-depth{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-bottom:10px}
.op-surface .op-depth button{text-align:center;min-width:0;padding-inline:4px}
.op-depth [aria-pressed=true]{outline:1px solid var(--hero);border-color:var(--hero);font-weight:750}
