.prep-v21{display:grid;grid-template-columns:minmax(230px,.85fr) minmax(380px,1.65fr) minmax(240px,.95fr);gap:18px;align-items:start}.prep-v21 .panel{padding:16px}.prep-v21 h2{font-size:21px}.prep-v21 .prep-workbench{min-width:0}.prep-v21 .map-banner{padding:12px;gap:12px;margin-bottom:12px}.prep-v21 .map-mini{width:65px;height:65px;flex-shrink:0}.prep-v21 .map-banner h2{font-size:24px}.prep-v21 .map-banner p{font-size:11px}.prep-v21 .squad-slot{padding:10px 0;margin:0;gap:8px}.prep-champion{border-bottom:1px solid #ffffff17;padding-bottom:12px;margin-bottom:12px}.prep-champion:last-child{border:0;margin:0;padding-bottom:0}.prep-champion .slot-portrait{width:43px;flex-shrink:0}.prep-champion small{display:block;color:#a8b9af;font-size:10px}.prep-champion b{font-size:13px}.prep-champion .slot-order{margin-left:auto}.prep-champion .muted{font-size:11px}.prep-stats{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:10px 0 0;font-size:11px}.prep-stats div{display:flex;gap:6px;justify-content:space-between}.prep-stats dt{color:#acbdb2}.prep-stats dd{margin:0;color:#eee2bd}.prep-v21 .report-perks{display:flex;flex-wrap:wrap;gap:5px;font-size:10px}.new-perk{color:#9bf0c1}.prep-right{display:grid;gap:14px}.prep-v21 .formation-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px}.prep-v21 .formation-choice{font-size:11px;padding:8px}.prep-v21 .formation-choice svg{width:50px;display:block;margin:auto}.prep-v21 .formation-canvas{width:100%;height:auto;aspect-ratio:800 / 240;display:block;margin-top:8px}.prep-v21 .section-title{margin:8px 0}.prep-v21 .section-title small{font-size:10px}.prep-standings table{width:100%;border-collapse:collapse;font-size:11px}.prep-standings th,.prep-standings td{padding:5px 3px;text-align:left}.prep-standings tr.you{color:#f6d78f;background:#bda45b1a}.prep-standings th:last-child,.prep-standings td:last-child{text-align:right}.round-score{margin:0 0 14px;padding:14px}.round-score h2{font-size:19px}.point-equation{display:flex;flex-wrap:wrap;gap:8px 18px;margin:10px 0;font-size:12px}.point-equation span{color:#c0ccc3}.point-equation b,.point-equation strong{color:#f3d190}.round-score small{color:#9caea3;font-size:10px}.prep-v21 .perk-grid{display:grid;grid-template-columns:1fr;gap:8px}.prep-v21 .perk-card{min-height:100px;padding:12px 14px 12px 56px;position:relative}.prep-v21 .perk-icon{position:absolute;left:15px;top:22px}.prep-v21 .perk-card h3{font-size:20px;margin:4px 0}.prep-v21 .perk-card p{font-size:12px;min-height:0;margin:4px 0}.prep-v21 .perk-chosen{padding-top:3px;font-size:10px}.prep-v21 .prepare-bottom{margin-top:12px}.prep-v21 .prepare-bottom p{font-size:11px}.prep-instructions p{line-height:1.8;font-size:13px}.prep-v21 .perk-workshop{padding:12px}.recap-round small{line-height:1.7}
@media(max-width:1100px){.prep-v21{grid-template-columns:minmax(210px,.8fr) minmax(310px,1.2fr)}.prep-right{grid-column:1 / -1;grid-template-columns:1fr 1fr}.prep-v21 .formation-grid{grid-template-columns:repeat(4,1fr)}}
@media(max-width:700px){.prep-v21{grid-template-columns:1fr}.prep-v21 .prep-workbench{grid-row:1}.prep-right{grid-template-columns:1fr}.prep-champions{grid-row:2}.prep-v21 .formation-grid{grid-template-columns:1fr 1fr}}

.prep-v21 .map-banner{min-height:100px}.prep-v21 .formation-choice{min-height:68px}.prep-v21 .squad-slot>div:not(.slot-order){display:block;min-width:0;flex:1}.prep-v21 .squad-slot b,.prep-v21 .squad-slot small{position:static;opacity:1;visibility:visible}

@media(min-width:1101px){
 .prep-v21 .map-banner{min-height:70px;padding:8px 12px}.prep-v21 .map-mini{width:45px;height:45px}
 .prep-v21 .squad-slot{min-height:58px;padding:5px 0}.prep-v21 .slot-portrait{height:48px}
 .prep-v21 .prep-champion{padding-bottom:8px;margin-bottom:8px}.prep-v21 .prep-stats{gap:4px;margin-top:6px}
 .prep-v21 .round-score{padding:10px;margin-bottom:8px}.prep-v21 .point-equation{margin:7px 0;gap:5px 12px}
 .prep-v21 .perk-workshop{padding:8px 4px}.prep-v21 .perk-card{min-height:76px;padding:7px 10px 7px 48px}
 .prep-v21 .perk-card h3{font-size:17px;margin:2px 0}.prep-v21 .perk-card p{font-size:11px;margin:2px 0}
 .prep-v21 .perk-icon{left:12px;top:17px}.prep-v21 .upgrade-tab{padding:8px;font-size:11px;min-height:36px}
 .prep-v21 .prepare-bottom{margin-top:6px}.prep-v21 .prep-standings td,.prep-v21 .prep-standings th{padding:4px 3px}
}

@media(min-width:1101px){
 .online-game[data-screen="prepare"] #connection:empty{display:none}
 .online-game[data-screen="prepare"] #online{padding-top:14px}
 .online-game[data-screen="prepare"] .intro{margin:0 0 12px}
 .online-game[data-screen="prepare"] .intro h1{font-size:30px;margin:5px 0}
 .prep-v21 .formation-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
 .prep-v21 .formation-choice{padding:5px 2px;font-size:10px;min-height:58px}
 .prep-v21 .map-banner h2{margin:2px 0;font-size:21px}.prep-v21 .map-banner p{margin:2px 0}
 .prep-v21 .perk-card .rarity{font-size:8px;letter-spacing:1px}.prep-v21 .perk-card p{line-height:1.35}
 .prep-v21 .perk-chosen{margin-top:2px}.prep-v21 .perk-workshop .section-title{margin:3px 0 6px}
}

@media(min-width:1101px){
 .prep-v21 .perk-grid{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch}
 .prep-v21 .perk-card{padding:10px;min-height:178px;display:flex;flex-direction:column;align-items:flex-start}
 .prep-v21 .perk-icon{position:static;display:block;margin:5px 0}
 .prep-v21 .perk-card h3{font-size:16px;line-height:1.2}.prep-v21 .perk-card p{flex:1;text-align:left}
 .prep-v21 .map-banner p{line-height:1.3}.prep-v21 .map-banner h2{line-height:1.2}
 .prep-v21 .prep-standings table{line-height:1.3}.prep-v21 .prep-standings th,.prep-v21 .prep-standings td{padding:3px}
}

.formation-hint{font-size:10px;color:#aabdb1;line-height:1.4;margin:8px 0}
.formation-board{height:245px;position:relative;background:#192829;border-radius:6px}
.formation-slot{position:absolute;transform:translate(-50%,-50%);width:96px;height:72px;border:1px solid transparent;background:transparent;border-radius:6px;touch-action:none;color:#ead3a3;cursor:grab;padding:0;font-size:10px;line-height:1.1}
.formation-slot canvas{display:block;width:72px;height:51px;margin:auto;pointer-events:none}.formation-slot span{pointer-events:none}
.formation-slot:hover,.formation-slot:focus-visible,.formation-slot[aria-pressed=true]{border-color:#e8c787;background:#e8c78715;outline-offset:2px}
.formation-slot.drop-target{background:#b4e5a53d;border-color:#b4e5a5}.formation-slot:disabled{cursor:default;opacity:.6}
.recap-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,320px);gap:18px;align-items:start}
.recap-layout .panel{padding:15px}.recap-layout h2{font-size:22px}.compact-champion{display:grid;grid-template-columns:150px 1fr;gap:12px;align-items:center;padding:10px 0;border-bottom:1px solid #ffffff18}
.compact-champion:last-child{border:0}.compact-champion>div{display:flex;align-items:center;gap:8px}.compact-champion svg{width:40px;height:48px}.compact-champion b{font-size:14px}
.compact-champion dl{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin:0;font-size:12px}.compact-champion dt{font-size:10px;color:#acbdb2}.compact-champion dd{margin:3px 0 0;color:#efdaad}
.recap-layout .prep-standings table{line-height:1.4}.recap-layout .prep-standings td,.recap-layout .prep-standings th{padding:5px 3px}
.online-game[data-screen=recap] #online{padding-top:12px}.online-game[data-screen=recap] .intro h1{font-size:32px}.online-game[data-screen=recap] .intro{margin:0 0 12px}
@media(min-width:1101px){.formation-board{height:210px}.formation-slot{height:64px}.formation-slot canvas{height:43px;width:60px}.prep-v21 .prep-formation{padding:10px}.prep-v21 .prep-right{gap:8px}}
@media(max-width:900px){.recap-layout{grid-template-columns:minmax(0,1fr) 225px;gap:10px}.compact-champion{grid-template-columns:1fr;gap:4px}.compact-champion dl{font-size:11px}}
@media(max-width:650px){.recap-layout{grid-template-columns:1fr}.compact-champion dl{gap:4px}}

@media(min-width:1101px){
 .formation-board{height:156px}.formation-slot{width:80px;height:44px;font-size:9px}.formation-slot canvas{height:30px;width:42px}
 .prep-v21 .formation-hint{margin:5px 0}.prep-v21 .prep-standings h2{margin:0 0 5px}
}
.recap-page{padding-top:16px}.recap-page .intro{margin-bottom:12px}.recap-page .intro h1{font-size:32px}
.hero-contribution{margin-top:12px;min-width:0}
.hero-contribution h2{font-size:20px;margin-bottom:10px}
.contribution-scroll{max-width:100%;overflow-x:auto}
.contribution-table{width:100%;border-collapse:collapse;font-size:12px;font-variant-numeric:tabular-nums}
.contribution-table th,.contribution-table td{padding:10px 8px;border-bottom:1px solid #ffffff18;text-align:right}
.contribution-table thead th{font-size:11px;font-weight:400;color:var(--muted);white-space:nowrap}
.contribution-table th:first-child{text-align:left}
.contribution-table tbody th{font-weight:400;min-width:135px}
.contribution-table td{color:var(--gold2);white-space:nowrap}
.contribution-table tr:last-child th,.contribution-table tr:last-child td{border-bottom:0}
.contribution-hero{display:flex;align-items:center;gap:8px}
.contribution-portrait svg{width:30px;height:38px;display:block}
.contribution-hero b{font-size:12px;display:block}
.contribution-hero small{display:block;font-size:9px;color:var(--muted);line-height:1.5;margin-top:3px}
.contribution-note{font-size:10px;color:var(--muted);line-height:1.5;margin-top:8px}
@media(max-width:650px){.contribution-table th,.contribution-table td{padding:8px 4px}.contribution-table{font-size:11px}.contribution-portrait{display:none}.contribution-table tbody th{min-width:100px}}

@media(min-width:1101px){
 .prep-v21 .prep-standings{padding:10px}.prep-v21 .prep-standings table{line-height:12px}
 .prep-v21 .prep-standings th,.prep-v21 .prep-standings td{padding:2px 3px}
 .prep-v21 .prep-formation .section-title{margin:2px 0 6px}
 .preparation-page .intro h1{font-size:30px;margin:5px 0}
}

@media(min-width:1101px){
 .prep-v21 .prep-champions{padding:12px}.prep-v21 .prep-champion{padding-bottom:6px;margin-bottom:6px}
 .prep-v21 .perk-card{min-height:154px}
 .online-game[data-screen="prepare"] .intro p{margin:4px 0;font-size:12px}
}

/* 0.2.4: terrain is large enough to plan routes before the next round. */
.prep-v21 .map-banner{padding:10px;gap:14px;min-height:160px}
.prep-v21 .map-mini{width:156px;height:156px;max-width:none;max-height:none;flex:none}
.prep-v21 .map-banner h2{font-size:23px}.prep-v21 .map-banner p{font-size:12px;line-height:1.5}
@media(min-width:1101px) and (max-height:800px){.prep-v21 .map-mini{width:132px;height:132px}.prep-v21 .map-banner{min-height:144px}.prep-v21 .perk-card{min-height:140px}}
@media(max-width:700px){.prep-v21 .map-banner{gap:10px}.prep-v21 .map-mini{width:140px;height:140px}}

.prep-v21 .map-mini{transform:none}
@media(min-width:900px) and (max-width:1100px){
 .online-game[data-screen="prepare"] #online,.preparation-page{padding:12px 16px}
 .prep-v21{grid-template-columns:190px minmax(300px,1fr) 210px;gap:12px}
 .prep-v21 .prep-right{grid-column:auto;grid-template-columns:1fr}
 .prep-v21 .formation-grid{grid-template-columns:repeat(4,1fr)}
 .prep-v21 .formation-choice{min-height:48px;padding:4px 1px;font-size:9px}
 .prep-v21 .formation-choice svg{width:35px}.prep-v21 .formation-board{height:130px}
 .prep-v21 .perk-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 .prep-v21 .perk-card{padding:8px;min-height:150px}.prep-v21 .perk-icon{position:static}
 .prep-v21 .perk-card h3{font-size:15px}.prep-v21 .perk-card p{font-size:11px}
 .prep-v21 .map-mini{width:132px;height:132px}.prep-v21 .map-banner h2{font-size:19px}
 .prep-v21 .prep-standings td,.prep-v21 .prep-standings th{padding:2px;font-size:10px}
 .prep-v21 .panel{padding:10px}.prep-v21 .squad-slot{padding:5px 0;min-height:58px}.prep-v21 .slot-portrait{height:48px}.prep-v21 .prep-stats{gap:4px;font-size:10px;margin-top:6px}
}
@media(min-width:900px) and (max-height:850px){
 .online-game[data-screen="prepare"] .intro,.preparation-page .intro{margin:0 0 8px}
 .online-game[data-screen="prepare"] .intro h1,.preparation-page .intro h1{font-size:26px;margin:3px 0}
 .prep-v21 .map-banner{padding:6px 10px;min-height:0;margin-bottom:8px}
 .prep-v21 .round-score{padding:8px;margin-bottom:6px}.prep-v21 .round-score h2{font-size:17px;margin:0}
 .prep-v21 .perk-card{min-height:130px;padding:8px}.prep-v21 .perk-card h3{font-size:15px}
 .prep-v21 .perk-card p{font-size:11px;line-height:1.3}.prep-v21 .perk-icon{margin:2px 0}
 .prep-v21 .prepare-bottom{margin-top:3px}.prep-v21 .prepare-bottom .primary{min-height:40px;padding:10px 20px}
}
/* Map and previous-round results share the preparation overview row. */
.prep-arena-summary{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:12px;margin-bottom:10px}
.prep-v21 .prep-arena-summary .map-banner{display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px;min-height:0;margin:0;text-align:center}
.prep-v21 .prep-arena-summary .map-mini{width:min(100%,240px);height:auto;aspect-ratio:1;flex:none}
.prep-v21 .prep-arena-summary .map-banner h2{font-size:21px;margin:3px 0}
.prep-v21 .prep-arena-summary .map-banner p{font-size:11px;line-height:1.4;margin:3px 0}
.prep-v21 .prep-arena-summary .round-score{margin:0;padding:14px;align-self:stretch}
.prep-arena-summary .point-equation{display:flex;flex-direction:column;gap:10px;margin:16px 0}
.prep-arena-summary .point-equation>span{display:flex;justify-content:space-between;gap:8px}
.prep-arena-summary .point-equation>strong{border-top:1px solid #ffffff20;padding-top:10px;font-size:17px}
.prep-arena-summary .round-score small{display:block;line-height:1.5}
.prep-arena-summary.without-round{grid-template-columns:1fr}
.prep-v21 .prep-arena-summary.without-round .map-banner{flex-direction:row;text-align:left}
@media(min-width:701px) and (max-height:850px){
 .prep-v21 .prep-arena-summary .map-mini{width:min(100%,190px)}
 .prep-v21 .prep-arena-summary .map-banner{padding:8px}
 .prep-v21 .prep-arena-summary .map-banner h2{font-size:18px}
 .prep-v21 .prep-arena-summary .round-score{padding:10px}
 .prep-arena-summary .point-equation{gap:8px;margin:12px 0}
}
@media(max-width:700px){.prep-arena-summary{grid-template-columns:1fr}.prep-v21 .prep-arena-summary.without-round .map-banner{flex-direction:column;text-align:center}}
.prep-v21 .prep-arena-summary .map-banner>div{display:grid;gap:3px}
.prep-v21 .prep-arena-summary .map-banner .eyebrow{font-size:8px;line-height:1.1;letter-spacing:1.5px}
.prep-v21 .prep-arena-summary .map-banner h2{line-height:1.1;margin:0}
.prep-v21 .prep-arena-summary .map-banner p{line-height:1.3;margin:0}
@media(max-width:700px){.prep-v21>.prep-workbench,.prep-v21>.prep-champions,.prep-v21>.prep-right{grid-column:1}.prep-v21>.prep-right{grid-row:3}}
.prep-arena-summary{margin-bottom:6px}
/* Formation slots remain readable and visibly interactive at every preparation width. */
.prep-v21 .formation-hint{font-size:11px;line-height:1.5;margin:8px 0 4px}
.formation-hint b{color:#edd49b;font-size:12px}
.formation-selection{font-size:11px;color:#adc4cc;min-height:32px;line-height:1.4;margin:4px 0 8px}
.prep-v21 .formation-board{height:300px;background:radial-gradient(ellipse at center,#30434566,transparent),#192829;border:1px solid #ffffff12}
.prep-v21 .formation-slot{left:clamp(48px,var(--slot-x),calc(100% - 48px));width:88px;height:88px;padding:3px;border:1px solid #65716c;background:#223234;border-radius:8px;box-shadow:0 3px 8px #0003;font-size:11px;line-height:1.2;transition:border-color .15s,background .15s}
.prep-v21 .formation-slot canvas{width:64px;height:57px;margin:0 auto}
.formation-name{display:block;white-space:normal}
.formation-grip{position:absolute;top:3px;right:5px;font-size:18px;color:#b8c8be;line-height:1}
.prep-v21 .formation-slot:hover,.prep-v21 .formation-slot[aria-pressed=true]{border-color:#eed19a;background:#4b4631;box-shadow:0 0 0 2px #eed19a33}
.prep-v21 .formation-slot:focus-visible{outline:2px solid #eed19a;outline-offset:3px}
.prep-v21 .formation-slot.drop-target{border-color:#b4e5a5;background:#34543e;box-shadow:0 0 0 3px #b4e5a533}
.formation-board.dragging .formation-slot{cursor:grabbing}
