/* Shop and matchday decisions live over their actual scene. */
#game[data-mode=trade]::after{content:'';position:absolute;inset:0;pointer-events:none;z-index:1;background:linear-gradient(#0a17242b,transparent 35%,#0b172a1a 50%,#0b172ad6)}
.trade-title{position:absolute;left:var(--edge);top:96px;z-index:3;max-width:65%;text-shadow:0 2px 3px #071627}
.trade-title h1{font-size:29px;line-height:1.12;margin:0 0 6px;font-weight:850}.trade-title p{font-size:13px;margin:0;line-height:1.35;font-weight:600;color:#e1edf5}
.trade-console{position:absolute;z-index:4;left:max(var(--edge),calc(50% - 400px));right:calc(var(--right) + 220px);bottom:calc(var(--bottom) + 76px);pointer-events:none!important}
.trade-tabs{display:flex;gap:6px;justify-content:center;margin-bottom:9px}.trade-tabs button,.trade-choices button{pointer-events:auto}
.trade-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;align-items:start}
.trade-choice,.trade-product{display:flex;flex-direction:column;align-items:center;text-align:center;gap:4px;min-width:0;padding:5px 5px 12px;background:transparent;color:#fff6e9;text-shadow:0 1px 3px #07172b}
.trade-choice{border:0;border-bottom:3px solid transparent;border-radius:16px 16px 4px 4px;min-height:160px}.trade-choice[aria-pressed=true]{border-bottom-color:#98e9ff;background:linear-gradient(transparent,#326a8c33)}
.trade-choice b,.trade-product b{font-size:16px;font-weight:850;line-height:1.2}.trade-choice-detail{font-size:17px;font-weight:850;color:#d0f4ff}.trade-choice small,.trade-product small{font-size:11.5px;line-height:1.3;font-weight:600;max-width:220px;color:#e0eaf1}
.trade-choice-art{display:grid;place-items:center;width:100%;height:94px}.trade-choice-art .game-pictogram{width:68px;height:68px}.trade-art{display:block;width:100%;height:100%;filter:drop-shadow(0 4px 4px #08162680)}
.trade-price-options{display:flex;align-items:center;gap:6px;justify-content:center;margin:5px 0}.price-button{min-height:44px;min-width:47px;padding:6px 8px;border:1px solid #9bb3cb88;border-radius:15px;background:linear-gradient(#526d8d,#253b57);box-shadow:inset 0 1px #e6f2ff66,0 3px 0 #0c1c33;color:#fff9ef;font:600 15px var(--font-ui);pointer-events:auto}.price-button[aria-pressed=true]{background:linear-gradient(#70d9fa,#3076c8);border-color:#d1f6ff;color:#fff;box-shadow:inset 0 1px #fff9,0 3px 0 #153951}.price-button:disabled{opacity:.55}
.trade-stock-strip{position:absolute;top:164px;left:var(--edge);display:flex;gap:14px;z-index:3;pointer-events:none}.trade-stock{display:flex;align-items:center;gap:3px;text-shadow:0 1px 4px #08172c;font-size:13px;font-weight:600}.trade-stock .trade-art{width:42px;height:36px}
.trade-forecast{position:absolute;right:var(--right);bottom:calc(var(--bottom) + 100px);width:205px;z-index:3;display:grid;gap:14px;text-align:right;text-shadow:0 2px 4px #061525}.trade-metric small{display:block;font-size:11.5px;font-weight:850;letter-spacing:0.035em;color:#d3e7f3}.trade-metric strong{display:block;font-size:30px;line-height:1.12;color:#fff4da;font-weight:850;font-variant-numeric:tabular-nums}.trade-metric.profit strong{color:#9ff3d6}.forecast-note{font-size:13px;line-height:1.3;color:#cbdfeb}
.trade-note{margin:6px 0 0;text-align:center;font-size:13px;font-weight:750;color:#ffe0a5;text-shadow:0 1px 3px #071729}
.trade-bar .pill{font-size:15px!important;min-height:49px!important;padding:11px 20px 15px!important}.trade-bar .left,.trade-bar .right{gap:7px;align-items:center}.trade-bar .round{width:47px;height:47px}.matchday-action{--bezel:url('./game-ui/premium/purple-bezel.svg')!important}
.matchday-summary{position:absolute;top:165px;left:var(--edge);display:flex;gap:35px;z-index:3;text-shadow:0 2px 4px #081627}.matchday-summary .trade-metric strong{font-size:28px}
.trade-food{position:absolute;bottom:calc(var(--bottom) + 95px);left:var(--edge);z-index:3;max-width:290px;text-shadow:0 1px 4px #07172b}.trade-food h2{font-size:22px;margin:0 0 4px}.trade-food p{font-size:13px;margin:0 0 5px}.trade-food small{font-size:11.5px;line-height:1.3;display:block;margin-top:7px;color:#d1e3ed}.trade-food .trade-price-options{justify-content:start}.trade-food .price-button{min-width:60px;font-size:18px}
.matchday-advice,.trade-takeaway{position:absolute;bottom:calc(var(--bottom) + 105px);right:var(--right);z-index:3;width:320px;text-shadow:0 1px 4px #08172b;text-align:right}.matchday-advice b,.trade-takeaway b{display:block;font-size:19px;line-height:1.2;margin-bottom:5px}.matchday-advice span,.trade-takeaway span{display:block;font-size:13px;line-height:1.4;color:#dfebf3}
.trade-periods{position:absolute;left:50%;transform:translateX(-50%);bottom:calc(var(--bottom) + 95px);width:min(700px,88%);z-index:3;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;text-align:center;text-shadow:0 1px 3px #08172a}.trade-periods i{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;margin:0 auto 8px;font-size:15px;font-style:normal;background:#28415fe6;border:1px solid #a3bdd4;color:#eef6ff}.trade-periods b,.trade-periods small{display:block}.trade-periods b{font-size:16px}.trade-periods small{font-size:11.5px;color:#c5dbea;margin-top:3px}.trade-periods .complete i{background:#276a62;color:#b6ffe4}.trade-periods .current i{background:#387fc2;border-color:#bcecff;box-shadow:0 0 0 4px #84d7ff22}.trade-live-note{position:absolute;left:var(--edge);right:var(--right);text-align:center;bottom:calc(var(--bottom) + 63px);z-index:3;font-size:13px;color:#dbeaf3;text-shadow:0 1px 3px #07172a}
.trade-result{position:absolute;left:var(--edge);top:180px;width:420px;z-index:3;text-shadow:0 1px 4px #08172a}.result-profit small{font-size:11.5px;letter-spacing:0.035em;font-weight:850}.result-profit strong{display:block;font-size:51px;line-height:1.1;color:#a7f3d8;font-weight:850;margin:4px 0 15px}.result-profit strong.loss{color:#ffc398}.result-breakdown{display:grid;gap:7px;max-width:350px}.result-breakdown>div{display:flex;justify-content:space-between;gap:15px;font-size:14px}.result-breakdown b{font-weight:850}.result-cash{font-size:17px;font-weight:600;color:#cff7ee;margin:14px 0 5px}.result-note{display:block;max-width:360px;font-size:13px;line-height:1.4;color:#d6e7f1}
@media(max-height:450px) and (orientation:landscape){.trade-title{top:78px;max-width:70%}.trade-title h1{font-size:23px}.trade-title p{font-size:13px}.trade-stock-strip{top:132px;gap:9px}.trade-stock{font-size:13px}.trade-stock .trade-art{width:31px;height:28px}.trade-console{left:96px;right:calc(var(--right) + 165px);bottom:calc(var(--bottom) + 55px)}.trade-tabs{margin-bottom:2px}.trade-tabs .tab{font-size:13px;min-height:36px;padding:8px 17px 12px}.trade-choices{gap:9px}.trade-choice,.trade-product{padding:0 2px 6px;gap:2px}.trade-choice{min-height:125px}.trade-choice-art{height:64px}.trade-choice-art .game-pictogram{height:50px;width:50px}.trade-choice b,.trade-product b{font-size:13px}.trade-choice-detail{font-size:14px}.trade-choice small,.trade-product small{font-size:11.5px}.trade-price-options{gap:4px;margin:4px 0}.price-button{min-width:36px;padding:5px 6px;font-size:13px}.trade-forecast{width:150px;bottom:calc(var(--bottom) + 98px);gap:9px}.trade-metric strong{font-size:25px}.forecast-note{font-size:13px}.trade-bar .pill{font-size:13px!important;padding:10px 14px 14px!important;min-height:44px!important}.trade-bar .round{height:44px;width:44px}.matchday-summary{top:135px;gap:24px}.matchday-summary .trade-metric strong{font-size:23px}.trade-food{bottom:calc(var(--bottom) + 64px)}.trade-food h2{font-size:18px}.trade-food p,.trade-food small{font-size:13px}.trade-food .price-button{min-width:48px;font-size:16px}.matchday-advice,.trade-takeaway{bottom:calc(var(--bottom) + 87px);width:260px}.matchday-advice b,.trade-takeaway b{font-size:17px}.matchday-advice span,.trade-takeaway span{font-size:13px}.trade-periods{bottom:calc(var(--bottom) + 85px)}.trade-periods i{width:32px;height:32px;margin-bottom:5px}.trade-periods b{font-size:14px}.trade-live-note{bottom:calc(var(--bottom) + 47px);font-size:13px}.trade-result{top:132px;width:340px}.result-profit strong{font-size:37px;margin-bottom:9px}.result-breakdown{gap:4px}.result-breakdown>div{font-size:13px}.result-cash{font-size:14px;margin:8px 0 4px}.result-note{font-size:13px;max-width:320px}}
@media(orientation:portrait){.trade-title{top:146px;left:var(--edge);max-width:94%}.trade-title h1{font-size:26px}.trade-title p{font-size:13px}.trade-stock-strip{top:218px;right:var(--right);gap:4px;justify-content:space-between}.trade-stock{font-size:13px}.trade-stock .trade-art{width:31px;height:31px}.trade-console{left:var(--edge);right:var(--right);bottom:calc(var(--bottom) + 151px)}.trade-choices{gap:7px}.trade-tabs{gap:5px;margin-bottom:8px}.trade-tabs .tab{min-height:42px;font-size:13px;padding:10px 20px 14px}.trade-choice{min-height:145px;padding-inline:1px}.trade-choice-art{height:76px}.trade-choice b,.trade-product b{font-size:13px}.trade-choice-detail{font-size:15px}.trade-choice small,.trade-product small{font-size:11.5px}.trade-price-options{gap:3px}.price-button{min-width:30px;min-height:44px;font-size:13px;padding:5px 6px;border-radius:12px}.trade-forecast{display:flex;left:var(--edge);right:var(--right);bottom:calc(var(--bottom) + 97px);width:auto;justify-content:space-between;text-align:left}.trade-forecast .forecast-note{display:none}.trade-forecast .trade-metric strong{font-size:25px}.trade-bar .left,.trade-bar .right{width:100%;justify-content:space-between}.trade-bar .pill{font-size:13px!important;min-height:44px!important;padding:10px 13px 14px!important;min-width:0}.trade-bar .left .pill{flex:1}.trade-bar .right .pill{flex:1}.trade-bar{gap:5px;padding-top:25px}.trade-bar .round{height:42px;width:42px}.matchday-summary{top:225px;right:var(--right);gap:10px;justify-content:space-between}.matchday-summary .trade-metric strong{font-size:25px}.matchday-summary .trade-metric small{font-size:11.5px}.trade-food{bottom:calc(var(--bottom) + 215px);max-width:90%}.trade-food h2{font-size:21px}.trade-food .price-button{min-width:63px;font-size:17px}.trade-food p,.trade-food small{font-size:13px}.matchday-advice,.trade-takeaway{left:var(--edge);right:var(--right);bottom:calc(var(--bottom) + 125px);text-align:left;width:auto}.matchday-advice b,.trade-takeaway b{font-size:18px}.matchday-advice span,.trade-takeaway span{font-size:13px}.trade-periods{bottom:calc(var(--bottom) + 175px);width:94%;gap:8px}.trade-periods b{font-size:13px}.trade-periods small{font-size:11.5px}.trade-live-note{bottom:calc(var(--bottom) + 119px);font-size:13px}.trade-result{top:230px;width:calc(100% - 24px)}.result-profit strong{font-size:46px}.result-breakdown{max-width:none}.result-breakdown>div{font-size:13px}.result-cash{font-size:16px}.trade-result .result-note{font-size:13px}.trade-takeaway{bottom:calc(var(--bottom) + 128px)}}
@media(max-width:359px) and (orientation:portrait){.trade-title h1{font-size:23px}.trade-title p{font-size:13px}.trade-title{top:137px}.trade-stock-strip{top:194px}.trade-console{bottom:calc(var(--bottom) + 146px)}.trade-choice-art{height:53px}.trade-choice{min-height:117px}.trade-choice b,.trade-product b{font-size:13px}.trade-choice-detail{font-size:13px}.trade-choice small{font-size:11.5px}.trade-choice-art .game-pictogram{height:43px;width:43px}.trade-price-options{gap:2px}.price-button{min-width:28px;font-size:13px;padding-inline:4px}.trade-food{bottom:calc(var(--bottom) + 215px)}.matchday-summary{top:206px}.trade-result{top:201px}.result-profit strong{font-size:36px;margin-bottom:10px}.result-breakdown{gap:4px}.result-breakdown>div{font-size:13px}.result-cash{font-size:14px;margin-top:8px}.trade-takeaway{bottom:calc(var(--bottom) + 112px)}.trade-takeaway b{font-size:15px}.trade-takeaway span{font-size:13px}}

/* Give each of the nine price choices a full finger-width in portrait. */
@media(orientation:portrait){
 .trade-title{top:156px}
 .trade-product>.trade-price-options{flex-direction:column;align-items:stretch;width:100%;gap:6px}
 .trade-product>.trade-price-options .price-button{min-height:44px;width:100%;font-size:14px}
}
@media(max-width:359px) and (orientation:portrait){
 .trade-title{top:154px}.trade-stock-strip{top:214px}.matchday-summary{top:226px}.trade-result{top:219px}
}
@media(max-height:700px) and (orientation:portrait){
 .trade-product>.trade-choice-art{display:none}.trade-product{padding-bottom:0}.trade-product>.trade-price-options{gap:4px;margin-block:4px}
 .trade-product>.trade-price-options .price-button{font-size:13px}
}
