#modal:has(.strategy-detail){width:min(720px,calc(100vw - 24px));height:min(650px,calc(100dvh - 40px));padding:22px;overflow:hidden;display:flex;flex-direction:column;gap:12px}#modal:has(.strategy-detail)>.modal-close{position:absolute;top:8px;right:10px;left:auto;margin:0}#modal:has(.strategy-detail):not([open]){display:none}#modal:has(.strategy-detail)>h2{margin:0;padding-right:28px;font-size:25px;flex-shrink:0}.strategy-detail{display:flex;flex-direction:column;gap:12px;min-height:0;flex:1}.strategy-meta{display:flex;flex-wrap:wrap;gap:8px 18px;color:#6c714f;font-size:13px}.strategy-meta span{white-space:nowrap}.strategy-help{font-size:13px;color:#555d49;border-bottom:1px solid #b7aa8138;padding-bottom:8px;flex-shrink:0;max-height:36%;overflow:auto}.strategy-help summary{cursor:pointer;color:#536854;min-height:26px;line-height:26px}.strategy-help p{line-height:1.7;margin:7px 0}.strategy-picker{overflow:auto;min-height:0;flex:1;display:flex;flex-direction:column;gap:14px;overscroll-behavior:contain;padding:3px}.strategy-choice-group{margin:0;padding:0;border:0;min-width:0}.strategy-choice-group legend{font-size:14px;font-weight:600;padding:0 0 7px;color:#425342}.strategy-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.strategy-options.merchant-options{grid-template-columns:repeat(3,minmax(0,1fr))}.strategy-option{min-width:0;min-height:65px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;padding:7px;border:1px solid #aea17d;border-radius:7px;background:#faf4e0;color:#354934;box-shadow:0 2px 0 #b7a780}.strategy-option[aria-pressed=true]{background:#dee8ce;border:2px solid #55784b;box-shadow:0 0 0 1px #55784b}.strategy-option>img{width:36px;height:30px;object-fit:contain}.strategy-option>strong{font-size:14px}.strategy-option>span,.strategy-option>small{font-size:12px}.strategy-identity{display:flex;align-items:center;gap:6px;min-width:0}.strategy-identity>img{width:31px;height:31px;border:3px solid var(--player);border-radius:50%;object-fit:cover;flex-shrink:0}.strategy-identity>span{min-width:0;text-align:left}.strategy-identity strong{display:block;font-size:12px;overflow-wrap:anywhere}.strategy-identity small{font-size:10px;color:#6b7355}.strategy-stock{font-size:11px;color:#757557}.strategy-confirm{border-top:1px solid #aca17a77;padding-top:10px;flex-shrink:0}.strategy-confirm>p{font-size:14px;line-height:1.5;margin:0 0 10px;min-height:21px;color:#4d543c}.strategy-confirm>div{display:flex;justify-content:space-between;gap:10px}.strategy-confirm button{min-height:44px;font-size:14px;margin:0!important}.strategy-detail .strategy-unavailable{flex:1;min-height:0;overflow:auto;background:#c8a65b22;font-size:14px!important;padding:12px}.strategy-unavailable p{font-size:inherit;line-height:1.7;margin:0 0 8px}.strategy-feedback{background:#dce8ca;border:1px solid #9fae75;border-radius:6px;padding:10px 13px;color:#304b35}.strategy-feedback strong{font-size:14px}.strategy-feedback p{font-size:13px;line-height:1.65;margin:4px 0 0}.strategy-ready{font-size:13px;color:#52713a;line-height:1.5;margin:10px 0}.strategy-hand-footer{display:flex;justify-content:flex-end;margin-top:14px}.strategy-hand-footer button{min-height:44px}#modal .strategy-card{white-space:normal}
html[data-layout=phone] #modal:has(.strategy-detail){height:calc(var(--phone-height,100dvh) - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom));max-height:none;padding:12px 16px;gap:6px}html[data-layout=phone] #modal:has(.strategy-detail)>h2{font-size:20px;line-height:24px}html[data-layout=phone] .strategy-detail{gap:5px}html[data-layout=phone] .strategy-meta{font-size:11px;gap:5px 13px;min-height:14px}html[data-layout=phone] .strategy-help{font-size:12px;padding-bottom:2px}html[data-layout=phone] .strategy-help summary{min-height:23px;line-height:23px}html[data-layout=phone] .strategy-help p{line-height:1.5;margin:4px 0}html[data-layout=phone] .strategy-picker{gap:9px;padding:2px}html[data-layout=phone] .strategy-choice-group legend{font-size:12px;padding-bottom:4px}html[data-layout=phone] .strategy-options{gap:6px}html[data-layout=phone] .strategy-option{min-height:44px;padding:4px;flex-direction:row;flex-wrap:wrap;gap:3px 6px}html[data-layout=phone] .strategy-option>img{width:27px;height:27px}html[data-layout=phone] .strategy-option>strong{font-size:12px}html[data-layout=phone] .strategy-option>small,html[data-layout=phone] .strategy-option>span{font-size:11px}html[data-layout=phone] .strategy-option .strategy-identity{flex-basis:100%;justify-content:center}html[data-layout=phone] .strategy-identity strong{font-size:11px}html[data-layout=phone] .strategy-identity>img{width:27px;height:27px}html[data-layout=phone] .strategy-confirm{padding-top:5px}html[data-layout=phone] .strategy-confirm>p{font-size:11px;line-height:1.35;margin:0 0 5px;min-height:15px}html[data-layout=phone] .strategy-confirm button{min-height:38px;padding:5px 10px;font-size:12px}html[data-layout=phone] .strategy-detail .strategy-unavailable{font-size:12px!important;padding:7px}html[data-layout=phone] .strategy-unavailable p{margin-bottom:5px;line-height:1.45}html[data-layout=phone] .strategy-feedback{padding:6px 9px}html[data-layout=phone] .strategy-feedback p{font-size:11px;line-height:1.5}html[data-layout=phone] .strategy-hand-footer{margin-top:8px}html[data-layout=phone] .strategy-hand-footer button{min-height:36px;font-size:12px}html[data-layout=phone][lang=en] .strategy-option>strong{font-size:11px}
