/* One focused, viewport-sized reward decision for campaign, co-op and farms. */
body:has(.reward-choice-dialog[open]){overflow:hidden}
dialog.reward-choice-dialog{box-sizing:border-box;width:min(1080px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);margin:auto;padding:18px;border:1px solid #cfb57565;border-radius:18px;background:linear-gradient(140deg,#211a2d,#100d19);color:#f4efdf;box-shadow:0 30px 100px #0009;overflow:auto;overscroll-behavior:contain}
.reward-choice-dialog::backdrop{background:#07050cba;backdrop-filter:blur(7px)}
.reward-choice-dialog .coop-dialog-actions{border:0;padding:0;margin:0;min-width:0}
.reward-choice-screen{min-width:0}
.reward-choice-heading{height:auto;min-height:0;padding:0;border:0;background:none;box-shadow:none;display:flex;justify-content:flex-start;text-align:left;align-items:center;gap:14px;margin:0 0 16px}
.reward-choice-heading>.character-portrait{width:46px;height:60px;object-fit:contain;flex:none}
.reward-choice-heading>div{min-width:0}
.reward-choice-heading .level-kicker{font:650 10px/1.4 'DM Sans',sans-serif;letter-spacing:.15em;color:var(--gold,#e6c76d)}
.reward-choice-heading h2{font:500 clamp(22px,2.5vw,30px)/1.2 'Cinzel',serif;margin:5px 0;outline:none}
.reward-choice-heading p{font-size:12px;line-height:1.4;margin:0;color:#bcb2cb}
.reward-pick-count{margin-left:auto;flex:none;font-size:11px;white-space:nowrap;padding:8px 11px;border:1px solid #d7bb6835;border-radius:20px;color:#ead18a;background:#d7bb6809}
.reward-choice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;align-items:stretch}
.reward-choice-card.reward-offer{display:flex;flex-direction:column;gap:8px;min-width:0;padding:13px;border-radius:12px}
.reward-choice-card .offer-rarity{min-height:28px;gap:8px}
.reward-choice-card .offer-rarity>b{height:28px;min-width:32px;padding:0 5px;font-size:12px}
.reward-choice-card .offer-rarity>span{font-size:12px}
.reward-choice-card .offer-rarity>i{font-size:18px}
.reward-choice-card .reward-inspect{margin:0;flex:none}
.reward-choice-card .reward-choice-art{display:block;width:auto;height:clamp(95px,calc(100dvh - 565px),270px);max-width:100%;object-fit:contain;margin:0 auto;border-radius:3px;box-shadow:0 7px 18px #0004;transition:transform .18s ease}
.reward-choice-card .reward-inspect:hover .reward-choice-art{transform:translateY(-2px)}
.reward-choice-card .reward-inspect>span{font-size:10px;padding-top:6px}
.reward-choice-card h3{font:650 14px/1.3 'DM Sans',sans-serif;text-align:center;margin:0;min-height:36px;display:grid;place-items:center;overflow-wrap:anywhere}
.reward-choice-card .pull-odds{margin:0;padding:8px;container-type:normal}
.reward-choice-card .pull-odds .pull-odds-context{font-size:9px!important;margin-bottom:5px}
.reward-choice-card .pull-odds-equation{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(85px,1.25fr);gap:8px;align-items:center}
.reward-choice-card .pull-odds-term{display:flex;flex-direction:column;align-items:center;gap:2px;grid-column:auto;position:relative;text-align:center}
.reward-choice-card .pull-odds-values{display:flex;flex-direction:column;align-items:center;gap:2px;min-width:0}
.reward-choice-card .pull-odds .pull-odds-term-label{font-size:9px!important;margin-bottom:2px}
.reward-choice-card .pull-odds .pull-odds-symbol{left:-7px;top:50%;font-size:10px!important}
.reward-choice-card .pull-odds .pull-odds-values>strong{font-size:11px!important;white-space:nowrap}
.reward-choice-card .pull-odds .pull-odds-values>small{font-size:9px!important}
.reward-choice-card .pull-odds .pull-odds-combined{grid-column:auto;flex-direction:row;gap:4px;padding:8px 4px;margin:0}
.reward-choice-card .pull-odds .pull-odds-combined>.pull-odds-symbol{position:static;align-self:center;margin:0}
.reward-choice-card .pull-odds .pull-odds-combined .pull-odds-values>strong{font-size:16px!important}
.reward-owned{border-top:1px solid #ffffff13;padding-top:8px;color:#bdb4c9;font-size:11px;line-height:1.4}
.reward-owned>span{display:flex;justify-content:space-between;gap:8px}
.reward-owned>span>strong{font-size:12px;color:#f0e9f5}
.reward-owned-rarities{display:flex;flex-wrap:wrap;gap:4px;margin-top:5px;max-height:61px;overflow:auto}
.reward-owned-rarities>span{border:1px solid color-mix(in srgb,var(--owned-color,#ac9db7) 30%,transparent);border-radius:4px;padding:2px 5px;color:#d8d1e1;font-size:10px;white-space:nowrap}
.reward-owned-rarities b{color:var(--owned-color);margin-right:2px}
.reward-owned-rarities>.reward-new-card{border:0;padding:2px 0;color:#a8d5be}
.reward-choice-goal{font-size:10px;color:#e0c578;line-height:1.35}
.reward-choice-card .reward-claim{min-height:40px;width:100%;padding:10px;margin-top:auto;font-size:13px;justify-content:center}
.reward-choice-footer{padding:0;border:0;background:none;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 18px;margin-top:14px;font-size:11px;line-height:1.4;color:#bdb4ca}
.reward-choice-footer>p{margin:0;flex:1 1 180px;max-width:260px}
.reward-choice-footer>.text-btn{font-size:11px;white-space:nowrap}
.reward-choice-footer .reward-reroll{margin:0;padding:0;display:flex;flex-direction:row;align-items:center;gap:9px;flex-wrap:wrap;border:0;background:none}
.reward-choice-footer .reward-reroll .btn{min-height:36px;padding:8px 12px;font-size:11px;margin:0}
.reward-choice-footer .reward-reroll small{font-size:10px;line-height:1.4;max-width:175px;text-align:left}
.reward-secondary-dialog .modal{width:100%;max-width:none;max-height:none;padding:0;border:0;box-shadow:none;background:none;overflow:visible}
.reward-awaiting{padding:40px;text-align:center;color:var(--muted)}
@media(max-width:700px){
 dialog.reward-choice-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);padding:14px;border-radius:14px}
 .reward-choice-heading{gap:9px;margin-bottom:12px}.reward-choice-heading h2{font-size:21px}.reward-choice-heading>.character-portrait{width:32px;height:44px}.reward-pick-count{display:none}
 .reward-choice-grid{grid-template-columns:1fr;gap:10px}
 .reward-choice-card.reward-offer{display:grid;grid-template-columns:88px minmax(0,1fr);gap:6px 12px;padding:11px}
 .reward-choice-card .reward-inspect{grid-column:1;grid-row:1/7;align-self:start}
 .reward-choice-card .reward-choice-art{width:88px;height:auto}
 .reward-choice-card>:not(.reward-inspect){grid-column:2;min-width:0}
 .reward-choice-card h3{text-align:left;place-items:start;min-height:0;font-size:13px}
 .reward-choice-card .offer-rarity>span{font-size:11px}.reward-choice-card .offer-rarity>b{min-width:28px;height:24px;font-size:11px}
 .reward-choice-card .pull-odds{padding:6px}.reward-choice-card .pull-odds-equation{gap:5px;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(69px,1.2fr)}
 .reward-choice-card .pull-odds .pull-odds-values>strong{font-size:10px!important}.reward-choice-card .pull-odds .pull-odds-combined .pull-odds-values>strong{font-size:12px!important}.reward-choice-card .pull-odds .pull-odds-values>small{font-size:8px!important}
 .reward-choice-card .pull-odds .pull-odds-context{font-size:8px!important}
 .reward-choice-card .reward-claim{min-height:36px;padding:8px}.reward-owned{font-size:10px;padding-top:6px}
 .reward-choice-footer{margin-top:12px}.reward-choice-footer .reward-reroll{width:100%}
}
@media(prefers-reduced-motion:reduce){.reward-choice-card .reward-choice-art{transition:none}}

.reward-connection{margin:0 0 12px;padding:10px 12px;border:1px solid #dfc17155;border-radius:8px;color:#f0d48a;background:#dfc1710b;font-size:12px}
