body.in-play{margin:0;max-width:none;padding:0;background:linear-gradient(#041421c9,#041421e8),url('../assets/play-tunnel-v1.webp') center/cover fixed;color:#f4ead4}body.in-play>header,body.in-play>.game-navigation,body.in-play>#social,body.in-play>footer{display:none}body.in-play>#app{max-width:1240px;margin:auto;padding:24px}body.in-play .app-display-tools{display:none}.play-header{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 22px;background:#061e2eea;border:1px solid #b99c61;border-radius:15px;margin-bottom:22px}.play-header h2{margin:0;color:#f0d38b;letter-spacing:2px;font-size:26px}.play-header button,.lineup-footer button{border:1px solid #b99c61;background:#123344;color:#f4ead4;min-height:48px;padding:10px 20px;border-radius:9px}.play-intro{text-align:center;margin:20px}.play-intro h3{font-size:24px;margin:10px}.play-intro p{color:#bcd1da}.play-modes{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.play-mode{padding:0;overflow:hidden;text-align:left;border:1px solid #b99c61;border-radius:15px;background:#082638;color:#f4ead4;transition:transform .15s,border-color .15s}.play-mode:hover{transform:translateY(-4px);border-color:#6edaff}.play-mode:focus-visible{outline:3px solid #6edaff;outline-offset:4px}.play-mode>img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover}.play-mode-copy{display:grid;gap:12px;padding:22px}.play-mode-copy>strong{font-size:26px;color:#f0d38b}.play-mode-copy>small{font-size:16px;line-height:1.5;min-height:72px;color:#c5d8df}.play-mode-status{padding-top:12px;border-top:1px solid #396071;color:#78d7ec;font-size:15px}.play-coming{max-width:650px;margin:auto;text-align:center;background:#061e2eea}.play-coming img{width:100%;max-height:230px;object-fit:cover;border-radius:12px}.custom-room{max-width:950px;margin:auto;background:#082536ed;border:1px solid #b99c61;border-radius:15px;padding:24px}.custom-room h3{font-size:25px;color:#f0d38b}.custom-room select{min-height:48px}.custom-room label{display:grid;gap:8px;margin-bottom:16px}.custom-room .primary{margin-top:18px}.custom-invites{color:#c5d8df;margin-top:24px}.preparation-clock{display:flex;align-items:center;justify-content:center;gap:20px;background:#082638eb;border:1px solid #7f9a91;border-radius:12px;padding:10px 18px;margin-bottom:18px}.preparation-clock strong{font-size:30px;color:#9ceaff;font-variant-numeric:tabular-nums}.preparation-clock.urgent strong{color:#ffd77f}.team-lobby{min-height:75svh;text-align:center;background:linear-gradient(#04142388,#04142322 50%,#041423ee),url('../assets/play-tunnel-v1.webp') center/cover;border-radius:18px;padding:22px;border:1px solid #b99c61}.team-lobby h2{color:#f0d38b;margin:12px}.team-lobby>p{color:#c5d8df}.team-lineup{display:flex;justify-content:center;align-items:flex-end;gap:24px;min-height:320px}.lineup-champion{width:min(38vw,350px);display:flex;flex-direction:column;align-items:center}.lineup-champion>img{width:100%;height:clamp(200px,42svh,430px);object-fit:contain;filter:drop-shadow(0 10px 12px #0009)}.lineup-own{order:0}.lineup-champion:not(.lineup-own){order:1}.lineup-label{width:100%;padding:14px;background:#061e2ee6;border:1px solid #598b9d;border-radius:12px}.lineup-label h3{margin:6px;font-size:24px;color:#f0d38b}.lineup-label small{color:#c5d8df}.lineup-state{color:#8de6c5}.lineup-skills{display:flex;justify-content:center;gap:8px;margin-top:10px}.lineup-skills span{display:grid;place-items:center;width:35px;height:35px;background:#16455a;border:1px solid #688f9a;border-radius:7px;font-size:20px}.lineup-empty{height:260px;display:grid;place-items:center;font-size:80px;color:#6997ac}.lineup-footer{display:flex;flex-wrap:wrap;gap:16px;align-items:center;justify-content:center;margin-top:20px}.lineup-footer span{color:#bcd1da}.prep-title{color:#f0d38b}.preparation-actions{display:flex;gap:12px;justify-content:center;margin:16px}
@media(max-width:1000px){.play-modes{grid-template-columns:repeat(2,1fr)}.play-mode>img{aspect-ratio:2/1}.play-mode-copy{padding:16px;gap:8px}.play-mode-copy>small{min-height:0}}@media(max-width:550px){body.in-play>#app{padding:12px}.play-header{padding:12px}.play-header h2{font-size:20px}.play-header button{padding:9px 12px}.play-modes{grid-template-columns:1fr}.team-lineup{gap:10px}.lineup-champion{width:44vw}.lineup-label{padding:9px}.lineup-label h3{font-size:20px}.preparation-clock{gap:10px;font-size:14px}}

body.in-play>#app{padding:12px max(12px,env(safe-area-inset-right));margin:0 auto}.play-header{padding:6px 12px;margin-bottom:10px}.play-header button{min-height:40px;padding:7px 14px}.play-intro{margin:8px}.play-intro h3{margin:4px;font-size:20px}.play-intro p{margin:4px}.play-mode>img{height:clamp(70px,22dvh,210px);aspect-ratio:auto}.play-mode-copy{padding:12px;gap:6px}.play-mode-copy>strong{font-size:22px}.play-mode-copy>small{font-size:14px;min-height:0}.play-mode-status{padding-top:6px;font-size:13px}.play-modes{gap:12px}.preparation-clock{padding:5px 12px;margin-bottom:6px;gap:12px}.preparation-clock strong{font-size:24px}.room-bar{margin-bottom:6px}.prep-tabs{display:none}.prep-save{position:sticky;bottom:0;background:#15242ef5;padding:8px 0;z-index:2}.prep-room{min-width:0}.prep-editor{min-width:0}.team-lobby{min-height:0;padding:12px}.team-lobby h2{margin:4px}.team-lobby>p{margin:4px}.team-lineup{min-height:0;gap:12px}.lineup-champion{width:min(35vw,280px)}.lineup-champion>img{height:clamp(85px,28dvh,240px)}.lineup-label{padding:7px}.lineup-label h3{font-size:20px;margin:3px}.lineup-skills{margin-top:5px}.lineup-footer{margin-top:8px;gap:10px}.lineup-footer button{min-height:40px;padding:7px 12px}.lineup-empty{height:100px}
@media(max-width:1000px),(max-height:600px){#app.preparing{height:100dvh;display:flex;flex-direction:column;overflow:hidden}.preparing>.room-bar,.preparing>.preparation-clock{flex-shrink:0}.prep-tabs{display:flex}.prep-grid{display:flex;flex-direction:column;min-height:0;flex:1;gap:0}.prep-editor{display:flex;flex-direction:column;min-height:0;flex:1;padding:10px}.prep-champion-pane,.prep-skills-pane{overflow:auto;min-height:0;flex:1;overscroll-behavior:contain}.prep-grid[data-prep-tab=champion] .prep-skills-pane,.prep-grid[data-prep-tab=skills] .prep-champion-pane,.prep-grid:not([data-prep-tab=room]) .prep-room{display:none}.prep-grid[data-prep-tab=room] .prep-editor{flex:0;padding:0;border:0;order:2}.prep-grid[data-prep-tab=room] .prep-champion-pane,.prep-grid[data-prep-tab=room] .prep-skills-pane{display:none}.prep-grid[data-prep-tab=room] .prep-room{flex:1;overflow:auto;min-height:0}.prep-save{flex-shrink:0;margin:0}.prep-save button{min-height:40px;padding:8px 12px}.prep-skills-pane>p{margin:0 0 5px}.prep-skill{padding:8px;gap:5px;grid-template-columns:auto minmax(0,1fr) auto}.prep-skill strong{font-size:13px}.prep-skill small{font-size:11px}.prep-skill button{font-size:12px;min-height:32px;padding:4px 8px}.preparing>.team-lobby{min-height:0;flex:1;overflow:auto}.team-slot-chooser{display:flex;align-items:center;gap:8px;margin-bottom:8px}.team-slot-chooser select{min-height:36px;padding:5px}.guide-prep-link{margin:8px 0}}
@media(max-height:500px) and (orientation:landscape){body.in-play>#app{padding:6px 10px}.play-header h2{font-size:20px}.play-intro h3{font-size:17px}.play-intro p{font-size:12px}.play-modes{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.play-mode>img{height:70px}.play-mode-copy{padding:8px;gap:5px}.play-mode-copy>strong{font-size:18px}.play-mode-copy>small{font-size:12px;line-height:1.3}.play-mode-status{font-size:12px}.prep-skills-pane .skills{grid-template-columns:repeat(3,minmax(0,1fr));margin:4px 0;gap:6px}.preparation-clock{font-size:12px}.preparation-clock strong{font-size:20px}.room-bar button{min-height:34px;padding:5px 10px;font-size:12px}.prep-tabs{margin:3px 0}.prep-tabs button{min-height:34px;padding:5px 10px}.prep-editor h2{font-size:16px;margin-bottom:5px}.prep-save{padding:5px 0}.lineup-champion{flex-direction:row;width:min(46vw,350px);align-items:center}.lineup-champion>img{width:42%;height:110px}.lineup-label{width:58%}.lineup-skills{gap:4px}.lineup-skills span{width:28px;height:28px;font-size:17px}.team-lobby>p{font-size:12px}.team-lobby h2{font-size:18px}.lineup-label h3{font-size:18px}.team-lobby{padding:8px}.lineup-footer{font-size:12px}}
@media(max-width:550px) and (orientation:portrait){.play-modes{grid-template-columns:repeat(2,minmax(0,1fr))}.play-mode>img{height:90px}.play-mode-copy{padding:9px}.play-mode-copy>strong{font-size:19px}.play-mode-copy>small{font-size:12px}.prep-skill{grid-template-columns:auto minmax(0,1fr) auto}.prep-skill .guide-cost{grid-column:3}.prep-skill button{grid-column:2/4}}

/* Stadium palette shared with the home lobby. */
body.in-play .prep-editor,body.in-play .prep-room,body.in-play .custom-room{background:linear-gradient(135deg,#123c50f2,#061c2ef5);border-color:#a88c50;box-shadow:inset 0 0 0 2px #091c2b,0 4px 18px #0005}
body.in-play .responsive-tabs button,body.in-play .champion,body.in-play .prep-skill,body.in-play .guide-prep-link,body.in-play .prep-room button{background:linear-gradient(135deg,#17475cec,#081e32f0);border:1px solid #9d844c;color:#f6ecd6;box-shadow:inset 0 1px #d6bc6a24}
body.in-play .responsive-tabs [aria-pressed=true],body.in-play .champion.chosen{background:linear-gradient(135deg,#23788a,#103d53)!important;border-color:#edcc7c;outline:1px solid #edcc7c;color:#fff1ce;box-shadow:inset 0 0 14px #64d9ed20}
body.in-play .prep-editor h2,body.in-play .prep-room h2,body.in-play .prep-skill strong{color:#f2d995}.prep-skill input{accent-color:#e1bc65}.prep-save{background:linear-gradient(90deg,#0c2c3ff5,#081e30f5);border-top:1px solid #a88c5070;padding:7px}.prep-save .primary{background:linear-gradient(130deg,#228295,#07546b);border:1px solid #e1bc65;color:#fff0cb;box-shadow:0 0 10px #38c8e520}
body.in-play .unit-card{background:linear-gradient(130deg,#0d3244,#061c2e);border-top:1px solid #b99c6140;border-bottom:1px solid #b99c6140}
/* Central miniature, with compact information directly beneath each pedestal. */
.team-lobby .team-lineup{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:end;gap:12px;width:min(100%,850px);margin:0 auto;flex:1;min-height:0}.team-lobby .lineup-champion{display:flex;flex-direction:column;width:100%;min-width:0;order:0;grid-row:1;align-items:center}.lineup-center{grid-column:2}.lineup-left{grid-column:1}.lineup-right{grid-column:3}.team-lobby .lineup-champion>img{width:100%;height:clamp(130px,32dvh,340px);object-fit:contain}.team-lobby .lineup-label{width:100%;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:3px 8px;padding:6px 10px;border-color:#b99c61;background:linear-gradient(135deg,#123e50eb,#061e30ed)}.lineup-label>small{grid-column:1/-1;font-size:11px}.team-lobby .lineup-label h3{margin:0;font-size:18px;text-align:left}.lineup-label>.lineup-state{font-size:12px}.team-lobby .lineup-skills{grid-column:1/-1;margin:2px 0 0;gap:5px}.team-lobby .lineup-skills span{width:27px;height:27px;font-size:17px}.preparing>.team-lobby{display:flex;flex-direction:column}.team-lobby .lineup-footer{flex-shrink:0}
@media(max-height:500px) and (orientation:landscape){.team-lobby .team-lineup{width:min(100%,760px);gap:10px}.team-lobby .lineup-champion>img{height:clamp(75px,calc(100dvh - 225px),170px);width:100%}.team-lobby .lineup-label{padding:4px 8px;gap:1px 5px}.team-lobby .lineup-label h3{font-size:16px}.team-lobby .lineup-skills span{height:23px;width:23px;font-size:15px}.team-lobby .lineup-footer{margin-top:6px}.team-lobby>h2{margin:2px}.team-lobby>p{margin:2px 0}.team-lobby .lineup-champion:not(.lineup-center)>img{height:clamp(65px,calc(100dvh - 240px),145px)}}
@media(max-width:550px) and (orientation:portrait){.team-lobby .team-lineup{grid-template-columns:minmax(0,1fr) minmax(0,1.4fr) minmax(0,1fr);gap:5px}.team-lobby .lineup-label{padding:5px;display:flex;flex-direction:column}.team-lobby .lineup-label h3{font-size:15px}.team-lobby .lineup-skills{flex-wrap:wrap}.team-lobby .lineup-champion>img{height:180px}.team-lobby .lineup-champion:not(.lineup-center)>img{height:145px}}

/* Actions sit above the figures, leaving their skill strips clear. */
.team-lobby{position:relative}.team-lobby .lineup-footer{order:-1;justify-content:flex-end;margin:0 0 5px;gap:7px}.team-lobby .lineup-footer>span{margin-right:auto}.team-lobby .lineup-footer button{min-height:34px;padding:5px 10px;font-size:12px}.team-lobby .preparation-clock{order:-2}.team-lobby .team-lineup{margin-top:5px}

body.in-play .custom-room{max-height:calc(100dvh - 125px);overflow-y:auto;overscroll-behavior:contain}

/* Match Varkha’s complete miniature to the common peana scale. */
.team-lobby .lineup-champion>img[src*="/varkha/"]{object-fit:contain;transform:scale(.64);transform-origin:50% 100%}

.prep-room .unit-card .row{min-width:0;flex-wrap:wrap}.lineup-label .participant-nick{max-width:100%;font-size:12px}
