/* New games share the established Footy Arcade colour and type system. */
.gold{--accent:#f5c665}.pink{--accent:#ed9bcc}.game-nav.gold .nav-number{background:#f5c665}.game-nav.pink .nav-number{background:#ed9bcc}.game-nav.gold.active{border-color:#f5c665}.game-nav.pink.active{border-color:#ed9bcc}
.home-card.gold{background:radial-gradient(ellipse at 80% 0,#6b50222a,transparent 70%),var(--surface);border-color:#51472f}.home-card.pink{background:radial-gradient(ellipse at 80% 0,#7f346c2a,transparent 70%),var(--surface);border-color:#56334e}.home-card.gold .card-bottom>span,.home-card.gold .card-status{color:#f5c665}.home-card.pink .card-bottom>span,.home-card.pink .card-status{color:#ed9bcc}
.mini-market{position:relative;display:flex;align-items:flex-end;gap:8px;height:136px;width:210px;margin:auto;padding:12px 18px 24px}.mini-market>span{font-size:72px;font-weight:900;color:#f5c665;align-self:center;margin-right:8px}.mini-market i{width:25px;height:42px;border-radius:4px 4px 0 0;background:#f5c66577;border:1px solid #f5c665}.mini-market i:nth-child(3){height:67px}.mini-market i:nth-child(4){height:94px;background:#f5c665}.mini-market b{position:absolute;bottom:0;left:0;right:0;text-align:center;letter-spacing:2px;font:9px 'Courier New',monospace;color:#d2ba8a}
.mini-atlas{width:130px;height:130px;position:relative;display:grid;place-items:center;margin:auto;border:1px solid #ed9bcc88;border-radius:50%;background:repeating-linear-gradient(0deg,transparent 0 24px,#ed9bcc22 24px 25px),repeating-linear-gradient(90deg,transparent 0 24px,#ed9bcc22 24px 25px);box-shadow:0 0 40px #ed9bcc12;transform:rotate(-12deg)}.mini-atlas span{font:100px Georgia,serif;color:#ed9bcc88;line-height:1}.mini-atlas i{position:absolute;top:16px;right:11px;width:32px;height:32px;background:#ed9bcc;color:#1c1420;font-size:30px;font-style:normal;line-height:28px;border-radius:50%;box-shadow:0 0 0 8px #ed9bcc22}
.new-game-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:15px}.new-game-heading .eyebrow{font-size:10px;margin:0 0 5px;color:#f5c665}.new-game-heading h1{font-size:30px;letter-spacing:-1px;margin:0;display:flex;align-items:center;gap:10px}.game-new-tag{font:9px 'Courier New',monospace;letter-spacing:1px;border:1px solid #f5c66566;color:#f5c665;border-radius:4px;padding:4px 6px}.new-game-heading .mode-switch{flex-shrink:0}.new-game-heading .mode-switch span{font-size:10px;opacity:.7;margin-left:3px}
.market-game{--market:#f5c665;min-width:0}.market-game p{line-height:1.6}.market-message:empty{display:none}.market-message{font-size:13px;background:#17342b;border:1px solid #47775e;padding:10px 14px;border-radius:8px;margin:0 0 12px}.market-message.error{background:#3b2524;border-color:#99574e;color:#ffc4b6}
.market-intro,.market-waiting{position:relative;overflow:hidden;padding:30px;text-align:center;border:1px solid #4d4431;border-radius:16px;background:radial-gradient(ellipse at 50% 0,#a4793033,transparent 62%),linear-gradient(155deg,#19232a,#111b25)}.market-intro:before{content:'';position:absolute;inset:0;background:repeating-linear-gradient(90deg,transparent 0 79px,#ffffff02 79px 80px);pointer-events:none}.market-intro>*{position:relative}.market-emblem{display:flex;align-items:center;justify-content:center;width:82px;height:82px;margin:0 auto 22px;background:linear-gradient(145deg,#ffe0a4,#d8a54b);color:#30291b;border:1px solid #ffe3a8;border-radius:22px;font-size:48px;font-weight:900;box-shadow:0 14px 40px #f5c66514;transform:rotate(-7deg)}.market-emblem span{font-size:15px;align-self:flex-end;margin:0 0 18px 3px}.market-intro>.eyebrow,.market-waiting>.eyebrow{font-size:10px;color:#f5c665}.market-intro h2,.market-waiting h2{font-size:clamp(32px,4.4vw,48px);line-height:1.04;letter-spacing:-1.7px;margin:14px 0}.market-intro>p,.market-waiting>p{color:#b9c4d0;max-width:420px;margin:12px auto;font-size:14px}.market-features{display:flex;justify-content:center;gap:32px;margin:24px 0}.market-features>span{display:flex;flex-direction:column;gap:6px;font:9px 'Courier New',monospace;letter-spacing:1px;color:#aeb7c1}.market-features b{color:#f5c665;font:bold 25px Arial,sans-serif;letter-spacing:-1px}.market-game .primary{background:var(--market);color:#1b1d19;border:1px solid #f8d389}.market-start{width:min(100%,330px);padding:14px!important}.market-fine{font-size:11px!important;color:#9baabc!important;line-height:1.6}.market-club-line{font:9px 'Courier New',monospace;letter-spacing:.6px;border-top:1px solid #ffffff13;padding-top:22px;margin-top:25px;color:#a9b2bf;line-height:2}.market-club-line i{font-style:normal;color:#f5c665;padding:0 5px}
.market-room-form{text-align:left;max-width:390px;margin:24px auto 0;display:grid;gap:12px}.market-room-form label{font-size:12px;color:#bbc8d5;font-weight:bold;display:flex;flex-direction:column;gap:7px}.market-room-form input,.market-search{width:100%;min-width:0;padding:12px 14px;background:#0d1721;border:1px solid #3b4d5f;border-radius:8px;font-size:16px;outline-offset:2px}.market-room-form input::placeholder,.market-search::placeholder{color:#8895a5}.market-or{text-align:center;border-top:1px solid var(--line);height:8px;margin:16px 0 5px}.market-or span{position:relative;top:-8px;padding:0 12px;background:#162027;color:#9aa9bc;font:10px 'Courier New',monospace}.market-join-row{display:flex;gap:8px}.market-join-row input{text-transform:uppercase;font-family:'Courier New',monospace;letter-spacing:2px}.market-secondary{padding:11px 15px;border:1px solid #546476;border-radius:7px;background:#213041;color:#e3eaf1;font-size:13px;font-weight:bold;white-space:nowrap}.market-secondary:hover{background:#2d4052}.market-room-code{font:bold clamp(27px,6vw,42px) 'Courier New',monospace;letter-spacing:8px;border:1px dashed #f5c66588;border-radius:10px;padding:18px 12px;margin:24px auto;max-width:350px;color:#f5c665;background:#0d1721}
.market-scorebar{display:flex;align-items:center;justify-content:space-between;margin:18px 0 16px}.market-scorebar>span:first-child{display:flex;align-items:center;gap:14px;font:10px 'Courier New',monospace;letter-spacing:1px;color:#9daabd}.market-scorebar strong{font:bold 29px Arial,sans-serif;letter-spacing:-1px;color:#f5c665}.market-round-label{font:11px 'Courier New',monospace;color:#e1e6eb}.market-round-label b{font-weight:normal;color:var(--muted)}.market-progress{display:flex;gap:6px;margin:0 0 17px}.market-progress span{flex:1;text-align:center;border-radius:4px;border:1px solid #2c3b49;background:#131d29;padding:7px 2px;font:10px 'Courier New',monospace;color:#718093}.market-progress .complete{background:#263528;color:#bdfd50;border-color:#4b6745}.market-progress .current{background:#413824;color:#f5c665;border-color:#f5c665aa}
.market-club-card{display:flex;align-items:center;gap:16px;padding:21px 20px;border:1px solid #4d4431;border-radius:13px;background:linear-gradient(110deg,#2a2c24,#19242e);margin-bottom:16px}.market-club-monogram{flex-shrink:0;width:60px;height:68px;clip-path:polygon(0 0,100% 0,100% 70%,50% 100%,0 70%);display:grid;place-items:center;padding-bottom:8px;background:#f5c665;color:#282719;font:bold 18px 'Courier New',monospace;letter-spacing:-1px}.market-club-card .eyebrow{font-size:9px;letter-spacing:1.4px;color:#d5bf92}.market-club-card h2{font-size:25px;letter-spacing:-.8px;margin:5px 0}.market-club-card p{font-size:11px;color:#b5bfcb;margin:0}.market-club-card p span{padding:0 4px;color:#f5c665}.market-clock{margin-left:auto;text-align:center;min-width:52px;color:#f5c665}.market-clock strong{display:block;font:32px 'Courier New',monospace}.market-clock small{font:8px 'Courier New',monospace;letter-spacing:1px}.market-clock.urgent{color:#ff9682}.market-picker{border:1px solid var(--line);border-radius:13px;background:#131d29;padding:18px}.market-picker-top{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:12px}.market-picker-top label{font-size:13px;font-weight:bold}.market-picker-top>span{font:9px 'Courier New',monospace;color:#98a7b8;white-space:nowrap}.market-search{font-size:14px;padding:10px 12px;margin-bottom:12px}.market-roster{display:grid;grid-template-columns:1fr 1fr;gap:7px;max-height:320px;overflow-y:auto;padding:3px;scrollbar-width:thin;scrollbar-color:#4a5865 transparent}.market-player{min-width:0;display:flex;align-items:center;gap:9px;text-align:left;background:#182532;border:1px solid #304252;border-radius:8px;padding:10px}.market-player:hover{border-color:#bfa160;background:#26313a}.market-player[aria-pressed=true]{border-color:#f5c665;background:#393729;box-shadow:0 0 0 1px #f5c665 inset}.market-avatar{flex-shrink:0;width:34px;height:38px;border-radius:7px;background:#2b3b49;color:#cbd6de;display:inline-grid;place-items:center;font:bold 12px 'Courier New',monospace}.market-player>span:nth-child(2){min-width:0;flex:1}.market-player strong{display:block;font-size:12px;overflow-wrap:anywhere}.market-player small{font-size:10px;color:#99aabc;display:block;margin-top:4px}.market-hidden-value{color:#9ba18f;white-space:nowrap;font:11px 'Courier New',monospace}.market-player[aria-pressed=true] .market-hidden-value{color:#f5c665}.market-lock-row{display:flex;align-items:center;gap:14px;border-top:1px solid var(--line);margin-top:14px;padding-top:14px}.market-lock-row>span{font-size:11px;color:#adb9c7;flex:1}.market-lock-row .primary{white-space:nowrap;font-size:13px;padding:12px 16px}.market-empty{grid-column:1/-1;font-size:13px;text-align:center;color:var(--muted)}
.market-locked{padding:40px 20px;text-align:center;border:1px dashed #59614a;border-radius:12px;background:#1f2b27}.market-locked>span{font-size:28px}.market-locked h3{font-size:22px;margin:16px 0 8px}.market-locked p{font-size:13px;color:var(--muted)}.market-versus-scores{display:flex;align-items:center;gap:12px;margin-bottom:15px}.market-versus-scores>div{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px;border:1px solid #48406c;background:#211e33;border-radius:10px;padding:13px 16px}.market-versus-scores>div.is-you{border-color:#5b5136;background:#2c2b22}.market-versus-scores>div>span{font-size:12px;overflow-wrap:anywhere}.market-versus-scores small{font:9px 'Courier New',monospace;color:#ad9fcf}.market-versus-scores .is-you small{color:#d2bf8f}.market-versus-scores>div>strong{font-size:25px;letter-spacing:-1px}.market-vs{font:bold 10px 'Courier New',monospace;color:#7f8e9e}
.market-reveal{border:1px solid #5e5133;border-radius:14px;text-align:center;padding:28px 20px;background:radial-gradient(ellipse at 50% 30%,#79632d2b,transparent 80%),#172029;animation:market-in .4s ease-out}.market-reveal>.eyebrow{font-size:9px;color:#d3bd91}.market-reveal-picks{display:flex;gap:18px;justify-content:space-evenly;margin:22px 0}.market-reveal-picks>div{flex:1;min-width:0}.market-reveal-picks .market-avatar{width:52px;height:57px;font-size:20px;background:#393e32;color:#f5c665}.market-reveal h3{font-size:20px;margin:14px 0 8px;overflow-wrap:anywhere}.market-reveal-picks strong{font-size:clamp(28px,4vw,43px);letter-spacing:-1.5px;color:#f5c665}.market-reveal-picks p{font-size:11px;color:#b6c0c9}.market-owner{font:10px 'Courier New',monospace;color:#a699ff}.market-history{margin-top:18px;border:1px solid var(--line);border-radius:10px;background:#101a24}.market-history summary{display:flex;justify-content:space-between;padding:15px;font-size:13px;cursor:pointer}.market-history summary:before{content:'▾';margin-right:8px;color:#f5c665}.market-history summary span{margin-left:auto;font:10px 'Courier New',monospace;color:var(--muted)}.market-history ol{margin:0;padding:0 15px 10px;list-style:none}.market-history li{display:flex;justify-content:space-between;gap:12px;border-top:1px solid var(--line);padding:11px 0;font-size:11px;color:#99a9b9}.market-history li strong{display:block;font-size:12px;color:#e3eaf1;margin-top:4px}.market-history li>b{align-self:center;color:#f5c665;font-size:13px;white-space:nowrap}.market-rules{line-height:1.6;margin-top:24px!important}.market-rules p{font-size:12px}.market-data-note{border-top:1px solid var(--line);padding-top:12px}.market-result{border:1px solid #75603b;border-radius:15px;background:radial-gradient(ellipse at 50% 0,#a47c2a33,transparent 70%),#17212b;text-align:center;padding:32px 24px;animation:market-in .4s ease-out}.market-result>.eyebrow{color:#e0c487;font-size:10px}.market-result h2{font-size:26px;letter-spacing:-.8px;margin:15px 0 24px}.market-final-value{font-size:clamp(48px,7vw,70px);font-weight:900;letter-spacing:-3px;color:#f5c665;line-height:1}.market-final-value+p{color:#9fadb9;font-size:12px;margin:10px 0 28px}.market-result-stats{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:#3e443e;border:1px solid #3e443e;border-radius:10px;overflow:hidden;margin-bottom:18px}.market-result-stats>div{background:#18252d;padding:17px 8px;display:flex;flex-direction:column;gap:10px}.market-result-stats span{font:9px 'Courier New',monospace;letter-spacing:.8px;color:#aeb7b7}.market-result-stats strong{font-size:26px;letter-spacing:-.7px}.market-result-stats small{font-size:13px;color:#9daab5;letter-spacing:0}.market-result-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin-top:22px}.market-result-actions .text-button{flex-basis:100%;font-size:11px;margin-top:4px}.market-share-text{display:flex;flex-direction:column;gap:8px;font-size:12px;color:var(--muted);margin-top:18px}.market-share-text textarea{width:100%;padding:15px;border:1px solid var(--line);border-radius:8px;background:#0d1721;color:var(--ink);font:13px/1.6 monospace}.market-game>.result-link{display:block;margin-top:20px;font-size:13px}
@keyframes market-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media(max-width:1100px){#games{display:flex;gap:7px;overflow-x:auto;padding-bottom:6px}.game-nav{flex:0 0 148px}#games .home-nav{flex-shrink:0}.sidebar-note{display:none}}
@media(max-width:760px){.new-game-heading{align-items:center;gap:8px;margin:4px 0 12px}.new-game-heading h1{font-size:23px;gap:6px}.new-game-heading .eyebrow{font-size:8px;letter-spacing:.9px}.game-new-tag{font-size:7px;padding:3px 4px}.new-game-heading .mode-switch button{padding:7px 10px}.new-game-heading .mode-switch span{display:none}.market-intro,.market-waiting{padding:24px 18px}.market-intro h2{font-size:38px}.market-emblem{width:67px;height:67px;font-size:38px;margin-bottom:18px;border-radius:17px}.market-emblem span{margin-bottom:13px}.market-features{gap:25px;margin:23px 0}.market-scorebar strong{font-size:25px}.market-scorebar>span:first-child{font-size:9px;gap:9px}.market-club-card{padding:16px 13px;gap:12px}.market-club-monogram{width:46px;height:53px;font-size:14px}.market-club-card h2{font-size:22px}.market-club-card p{font-size:10px;line-height:1.5}.market-club-card .eyebrow{font-size:8px}.market-picker{padding:12px}.market-picker-top label{font-size:12px}.market-picker-top>span{font-size:8px}.market-roster{gap:6px;max-height:330px}.market-player{padding:9px 7px;gap:6px}.market-player .market-avatar{display:none}.market-player strong{font-size:12px;line-height:1.3}.market-player small{font-size:9px}.market-hidden-value{font-size:10px}.market-lock-row{gap:8px}.market-lock-row .primary{font-size:12px;padding:12px}.market-lock-row>span{font-size:10px}.market-result{padding:25px 15px}.market-result h2{font-size:23px}.market-reveal{padding:23px 14px}.market-reveal h3{font-size:17px}.market-versus-scores>div{padding:11px}.market-result-stats span{font-size:8px}.market-clock{min-width:41px}.market-clock strong{font-size:28px}.market-clock small{font-size:7px}.market-room-code{letter-spacing:6px}.market-join-row{gap:6px}.market-secondary{font-size:12px;padding:10px 12px}body.is-game #games .game-nav{flex-basis:126px}#games .home-nav{min-width:78px}body.is-game #games .game-nav small{display:none}body.is-game #games .game-nav strong{font-size:12px}body.is-game #games .nav-top{margin:0}.market-club-line{font-size:8px}.market-history summary span{font-size:9px}}
@media(prefers-reduced-motion:reduce){.market-result,.market-reveal{animation:none}}

.market-source-list{display:grid;grid-template-columns:1fr 1fr;gap:5px 15px;padding-left:17px;font-size:11px}

/* Squad pitch: signings appear in their positions as the team is built. */
.market-stage{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,340px);gap:16px;align-items:start}
.market-stage>.market-picker,.market-stage>.market-locked{margin:0}
.market-picker .guess-row .primary{min-width:92px}
.market-picker .feedback{margin:10px 0 0;font-size:13px;line-height:1.45;color:#f2c0a9}
.market-picker .feedback.is-hint{color:var(--muted)}
.market-picker .misses{margin:6px 0 0;font-size:12px;color:#c9a39a}
.market-pitch-wrap{min-width:0}
.market-pitch{position:relative;display:flex;flex-direction:column;aspect-ratio:4/5;padding:10px 6px;border:2px solid #ffffffcc;border-radius:6px;overflow:hidden;isolation:isolate;background:radial-gradient(ellipse 70% 45% at 50% 42%,#ffffff1f,transparent 70%),repeating-linear-gradient(0deg,#1f8b4c 0 12.5%,#27a05a 12.5% 25%);box-shadow:0 14px 34px #0005,inset 0 0 40px #0003}
.market-pitch:before{content:'';position:absolute;inset:50% 0 auto;border-top:2px solid #ffffffb3;z-index:-1}
.market-pitch .pitch-circle{position:absolute;left:50%;top:50%;width:26%;aspect-ratio:1;height:auto;border:2px solid #ffffffb3;border-radius:50%;transform:translate(-50%,-50%);z-index:-1}
.market-pitch .penalty-area{position:absolute;width:56%;height:15%;left:22%;border:2px solid #ffffffb3;z-index:-1}
.market-pitch .penalty-area.top{top:0;border-top:0}.market-pitch .penalty-area.bottom{bottom:0;border-bottom:0}
.market-pitch .penalty-area:before{display:none}
.market-line{flex:1;display:flex;justify-content:center;align-items:center;gap:4px;min-height:0}
.market-line-empty{font:700 10px 'Courier New',monospace;letter-spacing:2px;color:#ffffff8c;padding:4px 8px;border:1px dashed #ffffff66;border-radius:5px}
.market-pitch-player{position:relative;display:flex;flex-direction:column;align-items:center;gap:2px;min-width:0;flex:0 1 25%;max-width:92px;text-align:center}
.market-pitch-player .market-avatar,.market-pitch-player .player-photo{display:inline-grid!important;width:40px;height:44px;border-radius:8px;font-size:13px;background:#10261c;color:#dcffb4;border:1px solid #ffffff99;box-shadow:0 4px 10px #0004}
.market-pitch-player strong{display:block;max-width:100%;padding:2px 5px;border-radius:4px;background:#061e1bd9;color:#fff;font-size:11px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.market-pitch-player small{font:700 10px 'Courier New',monospace;color:#f5c665;background:#061e1bcc;padding:1px 4px;border-radius:3px}
.market-pitch-club{position:absolute;top:-4px;right:calc(50% - 30px);font:700 8px 'Courier New',monospace;background:#f5c665;color:#1a1a12;padding:1px 3px;border-radius:3px}
.market-pitch-player.is-new{animation:market-sign .5s ease-out}
.market-pitch-player.is-new .market-avatar,.market-pitch-player.is-new .player-photo{border-color:#bdfd50;box-shadow:0 0 0 3px #bdfd5055}
@keyframes market-sign{from{transform:scale(.6) translateY(8px);opacity:0}to{transform:none;opacity:1}}
.market-pitch-foot{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:8px;font:700 10px 'Courier New',monospace;letter-spacing:1px;color:#a9b8c6}
.market-pitch-foot i{font-style:normal;letter-spacing:2px;color:#6f8193}
.market-pitch-foot strong{color:#f5c665;font-size:13px}
.market-reveal .market-pitch-wrap,.market-result .market-pitch-wrap{max-width:340px;margin:16px auto}
@media(max-width:900px){.market-stage{grid-template-columns:minmax(0,1fr)}.market-stage .market-pitch-wrap{max-width:420px;width:100%;margin:0 auto}.market-stage .market-pitch{aspect-ratio:auto;height:clamp(220px,38vh,320px)}}
@media(max-width:760px){.market-pitch-player .market-avatar,.market-pitch-player .player-photo{width:32px;height:35px;font-size:11px}.market-pitch-player strong{font-size:10px}.market-pitch-player small{font-size:9px}}
@media(prefers-reduced-motion:reduce){.market-pitch-player.is-new{animation:none}}
.market-reveal .market-pitch{aspect-ratio:auto;height:clamp(190px,30vh,280px)}
.market-reveal .player-photo{width:52px;height:57px;border-radius:9px}
@media(min-width:901px){.market-stage .market-pitch{aspect-ratio:auto;height:clamp(250px,calc(100dvh - 430px),420px)}}
.market-progress{gap:4px}.market-progress span{min-width:0;padding:6px 0;font-size:9px;overflow:hidden}
.market-pitch-player.is-empty{gap:3px}
.market-slot{display:grid;place-items:center;width:40px;height:44px;border-radius:8px;border:1px dashed #ffffffaa;background:#ffffff14;color:#ffffffcc;font:700 16px 'Courier New',monospace}
.market-pitch-player.is-empty strong{background:#061e1b99;color:#ffffffb3;font:700 9px 'Courier New',monospace;letter-spacing:1px}
.market-pitch-player.is-now .market-slot{border:2px solid #f5c665;background:#f5c66533;color:#f5c665;animation:market-pulse 1.6s ease-in-out infinite}
.market-pitch-player.is-now strong{color:#f5c665}
@keyframes market-pulse{50%{box-shadow:0 0 0 5px #f5c66533}}
@media(max-width:760px){.market-slot{width:32px;height:35px;font-size:13px}.market-progress span{font-size:8px}}
@media(prefers-reduced-motion:reduce){.market-pitch-player.is-now .market-slot{animation:none}}

/* Bigger pitch: on wide screens the club card and search sit in a side column and the pitch takes the rest. */
.market-side{display:flex;flex-direction:column;gap:14px;min-width:0}
.market-side .market-club-card{margin:0}
.market-stage{grid-template-columns:minmax(280px,.8fr) minmax(0,1.2fr)}
@media(min-width:901px){.market-stage .market-pitch{height:clamp(380px,calc(100dvh - 330px),680px)}}
.market-pitch-player{max-width:120px}
.market-pitch-player .market-avatar,.market-pitch-player .player-photo,.market-slot{width:54px;height:60px}
.market-pitch-player strong{font-size:13px}
.market-pitch-player small{font-size:11px}
.market-pitch-club{right:calc(50% - 38px)}
@media(max-width:900px){.market-stage{grid-template-columns:minmax(0,1fr)}.market-stage .market-pitch-wrap{max-width:none}.market-stage .market-pitch{height:clamp(340px,58vh,520px)}}
@media(max-width:760px){.market-pitch-player .market-avatar,.market-pitch-player .player-photo,.market-slot{width:42px;height:47px}.market-pitch-player strong{font-size:11px}.market-pitch-player small{font-size:10px}.market-pitch-club{right:calc(50% - 30px)}}
.market-reveal .market-pitch-wrap,.market-result .market-pitch-wrap{max-width:560px}
.market-reveal .market-pitch{height:clamp(300px,50vh,480px)}
.market-result .market-pitch{aspect-ratio:auto;height:clamp(340px,60vh,560px)}
@media(min-width:901px){.market-side .guess-row{flex-direction:column}.market-side .guess-row .primary{width:100%}.market-side .market-picker-top{flex-direction:column;align-items:flex-start;gap:4px}}
/* Pitch sized like playfootball.games: a tall 3:4 pitch with large players. */
.market-stage{grid-template-columns:minmax(280px,1fr) auto}
.market-stage .market-pitch-wrap{width:clamp(340px,calc((100dvh - 330px) * .75),600px)}
.market-stage .market-pitch,.market-reveal .market-pitch,.market-result .market-pitch{aspect-ratio:3/4;height:auto!important;container-type:inline-size}
.market-reveal .market-pitch-wrap,.market-result .market-pitch-wrap{width:min(100%,440px);max-width:none}
.market-pitch-player{flex:0 1 24%;max-width:none}
.market-pitch-player .market-avatar,.market-pitch-player .player-photo,.market-slot{width:clamp(34px,12cqw,70px);height:clamp(38px,13.2cqw,77px)}
.market-pitch-player strong{font-size:clamp(10px,3cqw,15px);width:fit-content}
.market-pitch-player small{font-size:clamp(9px,2.5cqw,12px)}
.market-pitch-club{right:auto;left:calc(50% + clamp(10px,4cqw,24px))}
.market-line-empty,.market-pitch-player.is-empty strong{font-size:clamp(8px,2.2cqw,11px)}
@media(max-width:900px){.market-stage{grid-template-columns:minmax(0,1fr)}.market-stage .market-pitch-wrap{width:min(100%,520px);margin:0 auto}}
body.is-game .market-picker .feedback.is-hint{display:block}
/* Latest signing, shown above the search in the same view (no separate reveal screen). */
.market-last{display:flex;align-items:center;gap:12px;padding:10px 14px;border:1px solid #3a4556;border-radius:12px;background:#172230;text-align:left}
.market-last>div{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.market-last .eyebrow{font-size:9px;margin:0}
.market-last strong{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.market-last small{font-size:12px;color:var(--muted)}
.market-last>b{font-size:22px;color:#f5c665;white-space:nowrap}
.market-last .player-photo,.market-last .market-avatar{display:inline-grid!important;width:40px;height:44px;flex-shrink:0}
.market-last.is-top{border-color:#bdfd5088;background:linear-gradient(110deg,#1f3322,#172230)}
.market-last.is-top small{color:#bdfd50}
.market-last.is-new{animation:market-last-in .5s cubic-bezier(.3,1.4,.5,1)}
.market-last.is-new>b{animation:market-value-in .7s ease-out .15s backwards}
@keyframes market-last-in{from{opacity:0;transform:translateY(-8px) scale(.97)}to{opacity:1;transform:none}}
@keyframes market-value-in{from{opacity:0;transform:scale(1.6)}to{opacity:1;transform:none}}
.market-reveal-picks{display:grid;gap:8px}
.market-side>#market-next{width:100%}
@media(prefers-reduced-motion:reduce){.market-last.is-new,.market-last.is-new>b{animation:none}}
/* Swapping within a line */
button.market-pitch-player{border:0;background:none;padding:0;font:inherit;color:inherit;cursor:pointer}
button.market-pitch-player.is-empty{cursor:default}
.market-pitch-player.is-selected .player-photo,.market-pitch-player.is-selected .market-avatar{outline:3px solid #f5c665;outline-offset:2px;animation:market-pulse 1.2s ease-in-out infinite}
.market-pitch.is-swapping .market-pitch-player.is-target{cursor:pointer}
.market-pitch.is-swapping .market-pitch-player.is-target .market-slot{border:2px solid #f5c665;background:#f5c66533}
.market-pitch-hint{min-height:1.3em;margin:6px 0 0;font-size:12px;color:var(--muted);text-align:center}
.market-pitch-player{transition:transform .2s}
button.market-pitch-player:not(.is-empty):hover{transform:translateY(-2px)}
/* End of game: your XI beside the best possible XI */
.market-final-pitches{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:22px;align-items:start;margin:18px 0}
.market-final-pitches>section{min-width:0;text-align:center}
.market-final-pitches .market-pitch-wrap{width:min(100%,480px);margin:8px auto 0}
.market-final-pitches .market-pitch{aspect-ratio:3/4;height:auto!important;container-type:inline-size}
.market-best-head h3{margin:4px 0 2px;font-size:22px}
.market-best-head strong{display:block;font-size:30px;color:#f5c665;letter-spacing:-.5px}
.market-best-head p{margin:4px 0 0;font-size:13px;color:var(--muted)}
.market-pitch.is-best{border-color:#f5c665cc;box-shadow:0 14px 34px #0005,0 0 0 3px #f5c66522}
.market-pitch.is-best .market-pitch-player:not(.is-match){opacity:.9}
.market-match{position:absolute;top:-6px;left:calc(50% - clamp(22px,7cqw,40px));display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#bdfd50;color:#10200a;font:800 11px/1 Arial,sans-serif;box-shadow:0 2px 4px #0006}
/* Best XI locked behind a short ad */
.market-best.is-locked .market-pitch-wrap{position:relative}
.market-best.is-locked .market-pitch{filter:blur(2px) saturate(.7);opacity:.55}
.market-best.is-locked .market-slot{font-size:18px;color:#fff}
.market-best-reveal{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);white-space:nowrap;box-shadow:0 10px 30px #0008}
/* 1v1 on one device */
.market-local-names{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.market-local-names label{display:flex;flex-direction:column;gap:6px;text-align:left;font-size:12px;color:var(--muted)}
.market-handoff{max-width:520px;margin:10px auto 18px;padding:34px 22px;text-align:center;border:1px solid #4d4431;border-radius:18px;background:linear-gradient(160deg,#2a2c24,#172230)}
.market-handoff h2{margin:8px 0;font-size:clamp(26px,5vw,36px)}
.market-handoff p{color:var(--muted);margin:0 0 20px}
.market-handoff .primary{min-width:260px}
@media(max-width:480px){.market-local-names{grid-template-columns:1fr}}
