/* Compact Premier hub: portraits first, details on demand. */
.premiere-app{max-width:1700px;margin:12px auto;padding:0 18px}.app-top{align-items:center;padding:12px 18px;flex-wrap:wrap}.queue-count{margin-left:auto}.app-top [hidden]{display:none!important}.app-stage .app-logo{width:185px;max-height:58px;margin:-44px auto 5px}.app-stage h1{font-size:clamp(24px,2.6vw,34px);margin:8px 0}.app-stage .intro{margin:4px 0}.hub-card{padding:10px 14px;min-width:160px}.hub-card strong{font-size:14px}.hub-upper{margin-bottom:0}.lobby-slots{max-width:1000px;gap:10px;margin:20px auto 12px}.lobby-slot{min-height:176px;font-size:14px}.lobby-slot .player-portrait{width:98px;height:98px}.lobby-slot .portrait-stack>.player-portrait{width:100%;height:100%}.lobby-slot button[data-invite-slot]{border:0;background:transparent;display:flex;flex-direction:column;align-items:center;gap:12px;width:100%;height:100%;font-size:13px;padding:12px 2px}.lobby-slot strong{max-width:100%;overflow-wrap:anywhere}.lobby-slot select{max-width:100%}.identity{font-size:13px}.about-app{padding:5px 10px;font-size:12px;background:transparent}.app-bottom{display:block;padding:12px 20px}.app-bottom[hidden]{display:none!important}.app-bottom h2{font-size:16px}.invite-toast button{padding:8px;margin:4px;font-size:13px}.hub-lower{align-items:center;gap:20px}.hub-team>small{display:none}.hub-team-summary>small{display:block}.coach-dock{flex:0 1 230px;position:relative;text-align:left}.coach-dock button{padding:12px;text-align:left;width:100%;border-color:#73578e;background:#19192c}.coach-dock small{display:block;margin-top:6px;font-size:12px;color:#bbcbda}.coach-dock img{display:none}#coach-quip{position:absolute;bottom:100%;left:0;width:260px;background:#152435;border:1px solid #859c56;border-radius:10px;padding:10px 30px 10px 12px;z-index:4;font-size:13px}#coach-quip p{margin:0}#coach-quip button{position:absolute;right:2px;top:0;width:25px;padding:4px;background:transparent;border:0}.hub-lower #hub-standings{max-width:720px}.hub-seed .hub-team-mark{height:18px;width:auto;font-size:12px}.hub-seed strong{font-size:12px}#hub-tabs{display:flex;gap:8px;flex-wrap:wrap;padding:12px 20px 0}#hub-tabs:empty{display:none}#hub-tabs button{padding:9px 12px;font-size:14px}#hub-tabs [aria-pressed=true]{border-color:#b2f52c;color:#b2f52c}.wallet-rewards{display:grid;gap:8px;background:#202416;padding:16px;border-radius:10px;margin-bottom:20px}.wallet-rewards b{color:#f5d26e}#coach-dialog{width:min(1100px,95vw);max-height:92dvh;padding:0}#coach-dialog>header{display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;background:#121d2c;padding:14px 20px;z-index:3}#coach-title{font-size:22px;margin:0}#coach-dialog button{padding:10px 14px;font-size:14px}.coach-layout{display:grid;grid-template-columns:240px 1fr;gap:22px;padding:20px}.coach-layout>img{width:100%;position:sticky;top:80px;align-self:start}.coach-layout section{min-width:0}#coach-topics{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:20px}#coach-topics button{font-size:12px;padding:7px}#coach-topics [aria-current=step]{border-color:#b2f52c;color:#b2f52c}#coach-content{line-height:1.65;font-size:16px}#coach-content h3{font-size:24px;margin:8px 0}#coach-content h4{margin:0}#coach-content input{display:block;width:100%;padding:12px;color:white;background:#080f1b;border:1px solid #607588;border-radius:7px}#coach-content .player-portrait{width:95px;height:95px}#coach-content .angle-options .player-portrait{width:45px;height:45px}.coach-columns{display:grid;grid-template-columns:1fr 1fr;gap:20px}.coach-rank-list{color:#b2f52c}#coach-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:24px}.coach-mute{display:block;font-size:13px;margin:18px 0;color:#b7cada}#coach-error{color:#ffd08b}.coach-layout .portrait-current{display:flex;align-items:center;gap:12px}
@media(max-width:1100px){.app-stage .app-logo{margin:8px auto}.hub-lower{flex-wrap:wrap}.coach-dock{flex:1}.lobby-slot .player-portrait{width:78px;height:78px}}
@media(max-width:700px){.premiere-app{padding:0 8px}.app-stage{padding:14px 10px}.lobby-slots{grid-template-columns:repeat(4,minmax(0,1fr))}.lobby-slot{min-height:150px;font-size:12px}.lobby-slot .player-portrait{width:65px;height:65px}.coach-layout{grid-template-columns:1fr;padding:14px}.coach-layout>img{width:110px;position:static;margin:auto}.coach-columns{grid-template-columns:1fr}.hub-card{min-width:0}.hub-upper .hub-card{max-width:48%}.hub-lower>.hub-card,.coach-dock{flex:1 1 40%}#hub-overlay>header{flex-wrap:wrap}}
@media(min-width:901px){#queue-progress{margin:10px 0;padding:10px 18px}#queue-progress .role-progress{margin:8px 0}#queue-progress small{font-size:12px}.lobby-slots{margin-top:14px}.lobby-slot{padding:9px 5px;gap:6px}.lobby-slot .player-portrait{width:86px;height:86px}.app-stage .intro{font-size:14px}.app-stage h1{margin:5px 0}.app-stage .app-logo{max-height:48px}.hub-lower{margin-top:8px}}

/* Coach uses one cached pose sheet, with no background animation. */
.coach-dock{min-width:190px;flex:0 1 230px;padding-left:72px;min-height:96px;display:flex;align-items:end}
#coach-stance{position:absolute;left:-14px;bottom:0;width:112px;height:112px;pointer-events:none;background:url('/assets/astro-coach-poses-v3849.webp') 0 0/300% 100% no-repeat}
#coach-stance[data-pose=welcome]{background-image:url('/assets/astro-coach-v3848.webp');background-size:contain;background-position:bottom center}
#coach-stance[data-pose=stern]{background-position:50% 0}#coach-stance[data-pose=funny]{background-position:100% 0}
.coach-dock #coach-open{position:relative;width:100%;padding:10px;font-size:14px;min-height:64px;border-color:#bd9c58;background:#151c2dee}
#coach-quip{bottom:calc(100% + 4px);left:0;width:min(280px,75vw);box-sizing:border-box;font-size:14px;border-color:#d4be79;box-shadow:0 5px 20px #0008}
#coach-quip:after{content:'';position:absolute;bottom:-9px;left:40px;width:14px;height:14px;background:#152435;border-right:1px solid #d4be79;border-bottom:1px solid #d4be79;transform:rotate(45deg)}
.coach-office{background:radial-gradient(at top right,#51366455,transparent 65%);padding:12px;border-top:2px solid #b3f335}.office-doors{display:grid;gap:14px;margin-top:24px}.office-doors button,.office-doors article{display:grid;gap:7px;text-align:left;padding:20px!important;background:#142536;border:1px solid #657486;border-radius:8px}.office-doors button:hover{border-color:#b3f335}.office-doors strong{font-size:18px;color:#eaf3ff}.office-doors span{font-size:14px;color:#b8cee0}.office-doors article{border-style:dashed;opacity:.7}.office-doors article span{color:#e9c970}
@media(max-width:700px){.coach-dock{min-width:170px}.coach-layout>img{max-height:130px;object-fit:contain}.office-doors button,.office-doors article{padding:14px!important}}
/* Retro briefing: lightweight board, one scene loaded at a time. */
#coach-dialog[data-view=story]{width:min(1160px,96vw);background:#0a141c;border:2px solid #7f8f89;box-shadow:0 0 0 5px #080d17,0 22px 90px #000c}
#coach-dialog[data-view=story] .coach-layout{display:block;padding:16px 22px;background:linear-gradient(100deg,#1b293122,#070c1222)}
#coach-dialog[data-view=story] .coach-layout>img{display:none}
#coach-dialog[data-view=story]>header{background:#121c24;border-bottom:1px solid #51605a}
#coach-dialog[data-view=story] #coach-topics{justify-content:space-between;align-items:center;margin-bottom:14px}
#coach-topics label{display:flex;align-items:center;gap:10px;font-size:14px}#brief-scene{background:#14232c;color:#e9f1df;border:1px solid #798b83;padding:8px;max-width:270px}
.brief-board{position:relative;border:9px solid #384741;outline:1px solid #7b887b;border-radius:3px;background:radial-gradient(ellipse at 50% 30%,#1b3c33,#0c211e 80%);color:#f0f0d5;box-shadow:inset 0 0 24px #0006,0 5px 0 #07100d;font-family:ui-monospace,Consolas,monospace}
.brief-board>header{display:flex;justify-content:space-between;gap:10px;padding:8px 14px;border-bottom:1px solid #78967955;letter-spacing:.12em;color:#b9c9ac;font-size:12px}
.board-content{padding:18px 24px;min-height:260px;background-image:linear-gradient(#98d6b506 1px,transparent 1px),linear-gradient(90deg,#98d6b506 1px,transparent 1px);background-size:26px 26px;animation:board-arrive .3s ease-out}
#coach-content .board-content h3{color:#eef1cf;font-size:23px;line-height:1.2;margin:0 0 18px}.board-content p{font-size:14px;line-height:1.5;margin:10px 0;color:#d0dfcd}.board-example{display:block;text-align:center;padding:5px 10px;font-size:11px;color:#a8bcaa;border-top:1px solid #78967933}
.board-stamp{font-size:12px;letter-spacing:.24em;color:#b6f635}.brief-welcome{text-align:center;padding:12px 0}.brief-welcome h3{font-size:clamp(28px,4vw,45px)!important;margin:14px 0!important;letter-spacing:-.02em}.brief-welcome em{font-style:normal;color:#c5f33c}.brief-welcome b{font-size:14px;letter-spacing:.15em}.board-rule{width:130px;height:2px;background:#bcf33a;margin:15px auto}
.board-row{display:flex;gap:14px;justify-content:center}.board-card{flex:1;padding:14px;border:1px dashed #b9d8ac77;background:#0a191b55}.board-card strong{color:#d6f2a2;font-size:17px}.board-card p{margin-bottom:0}.brief-ranks{display:grid;grid-template-columns:repeat(8,1fr);gap:10px;margin-top:18px}.brief-ranks figure,.brief-divisions figure{margin:0;text-align:center;animation:board-arrive .3s ease-out backwards;animation-delay:var(--reveal,0ms)}.brief-ranks img{width:44px;height:48px;object-fit:contain}.brief-ranks figcaption{font-size:12px}.brief-divisions{display:flex;justify-content:center;gap:38px}.brief-divisions img{height:102px;width:120px;object-fit:contain}.brief-divisions figcaption{font-size:17px;color:#c9f32c;font-weight:bold}
.brief-slots{display:grid;grid-template-columns:repeat(7,1fr);gap:8px}.brief-slot{border:1px dashed #adcbc8;padding:10px 5px;text-align:center;border-radius:4px;background:#152928}.brief-slot span{display:block;color:#b0d8d1;font-size:26px}.brief-slot b{font-size:13px}.brief-slot.is-core{border:2px solid #c6ee40;color:#e1f6a6;background:#38532255}.brief-slot.is-core span{color:#d8fb40}.board-flow{display:flex;justify-content:center;align-items:center;gap:12px;margin:20px 0 12px;flex-wrap:wrap}.board-flow b,.board-link-label{font-size:14px;padding:8px;background:#577a4444;border:1px solid #94b78566}.board-note{color:#e2edaa!important}.invite-demo{margin:18px auto 0;max-width:410px;background:#0c1725;border:1px solid #90ab94;border-left:4px solid #b8f12d;padding:12px;display:grid;gap:9px}.invite-demo>span{font-size:11px;letter-spacing:.12em}.invite-demo>b{font-size:15px}.mock-button{display:inline-block;padding:5px 10px;margin-right:8px;border:1px solid #617678;border-radius:4px;font-size:13px}.mock-button.green{background:#b8f12d;color:#101c10}
.brand-demo{display:grid;grid-template-columns:1fr 1fr;gap:16px}.brand-half{border:1px solid #64889b;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:12px;background:linear-gradient(#112239cc,#142436ee),url('/assets/lunar-arena.webp') center/cover;min-height:150px}.brand-half>span{font-size:11px;letter-spacing:.13em}.brand-half img{width:170px;height:56px;object-fit:contain}.team-demo{border-color:#e6c562;background:linear-gradient(#273610cc,#202812dd),url('/assets/stadium-field.webp') center/cover}.demo-team-shield{font-size:36px;color:#e9cf5c;line-height:1.2;border:2px solid #e9cf5c;border-radius:3px 3px 40% 40%;width:52px;text-align:center}.team-demo b{color:#f5d96c}.brand-half small{font-size:12px}.gear-tags{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;padding:20px 0}.gear-tags span{padding:12px;border:1px dashed #a9c99b}.board-content #brief-gear{display:block;margin:20px auto 4px}
.brief-dialogue{display:grid;grid-template-columns:155px 1fr;gap:18px;align-items:end;margin-top:18px}.brief-portrait{width:155px;height:155px;background:url('/assets/astro-coach-poses-v3849.webp') left center/300% 100% no-repeat}.brief-portrait[data-pose=welcome]{background-image:url('/assets/astro-coach-v3848.webp');background-size:contain;background-position:bottom center}.brief-portrait[data-pose=stern]{background-position:50% center}.brief-portrait[data-pose=funny]{background-position:100% center}.brief-bubble{position:relative;min-height:156px;padding:16px 18px;background:#111e2e;border:2px solid #e0cf8e;box-shadow:4px 4px 0 #0008;font-family:ui-monospace,Consolas,monospace}.speaker-tag{display:flex;gap:12px;flex-wrap:wrap;color:#d4f75c;font-size:14px;font-weight:bold;letter-spacing:.1em}.speaker-tag small{color:#a8bdc9;font-size:11px;align-self:center}#brief-speech{font-size:16px;line-height:1.6;min-height:76px;margin:12px 0 4px;color:#f5efda}#brief-reveal{font-size:12px!important;padding:3px 8px!important;border:0;background:transparent;color:#b3cad4}#coach-dialog[data-view=story] #coach-actions{margin-top:16px}#coach-dialog[data-view=story] #coach-actions>span{font-size:14px;flex:1;color:#d9e6c4}#coach-dialog[data-view=story] .coach-mute{margin:12px 0 0}.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
@keyframes board-arrive{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:700px){#coach-dialog[data-view=story] .coach-layout{padding:12px}.brief-board{border-width:5px}.board-content{padding:14px;min-height:180px}.board-row{flex-direction:column}.brief-ranks{grid-template-columns:repeat(4,1fr)}.brief-slots{gap:4px}.brief-slot{padding:8px 1px}.brief-slot b{font-size:10px}.brief-dialogue{grid-template-columns:72px 1fr;gap:8px}.brief-portrait{width:72px;height:90px;background-size:300% 100%}.brief-bubble{padding:10px}#brief-speech{font-size:14px}.speaker-tag small{display:none}.brief-divisions{gap:8px}.brief-divisions img{width:75px;height:75px}.brand-demo{grid-template-columns:1fr}.board-flow{gap:6px}.board-flow b{font-size:12px}.brief-board>header{font-size:10px}.board-card{padding:10px}}
@media(prefers-reduced-motion:reduce){.board-content,.brief-ranks figure,.brief-divisions figure{animation:none!important}}

.practice-match{max-width:650px;margin:auto;padding:18px;border:1px solid #8de9ca;border-radius:10px;background:#071c23}.practice-match label{display:inline-flex;flex-direction:column;gap:6px;margin:12px 18px 12px 0}.practice-match select,.practice-match input{max-width:220px;padding:10px;background:#102330;color:white;border:1px solid #7facae;border-radius:6px}.practice-match #practice-result{min-height:3em;color:#c8ffd7}

.brief-economy{display:grid;grid-template-columns:210px 1fr;gap:28px;align-items:center;margin:24px auto;max-width:850px}.brief-coin{width:200px;max-height:215px;object-fit:contain;filter:drop-shadow(0 0 22px #e9b62e44)}.brief-paychecks{display:grid;gap:12px}.brief-paychecks article{padding:16px 20px;background:#111e20;border:1px dashed #bdad68;transform:rotate(-1deg)}.brief-paychecks article:nth-child(2){transform:rotate(1deg)}.brief-paychecks span,.brief-paychecks strong,.brief-paychecks small{display:block}.brief-paychecks strong{font-size:24px;color:#f0ca70;margin:6px 0}.pay-stamps{display:flex;gap:12px;margin-top:10px;color:#b3d6a0;font-size:12px}.brief-character-rack{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:18px 0}.brief-character-rack figure{margin:0;text-align:center;background:#101c20;border-bottom:3px solid #bed469;padding:10px}.character-backlight{background:radial-gradient(ellipse,#57978366,transparent 70%)}.brief-character-rack img{height:180px;max-width:100%;object-fit:contain}.brief-character-rack figcaption{font-weight:bold;font-size:18px}.brief-character-rack span{font-size:11px;color:#b8c5b3}.brief-contracts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.brief-contract{background:linear-gradient(135deg,#242a24,#111813);border:1px solid #747a5a;padding:12px;text-align:center;position:relative}.brief-contract.selected{border:2px solid #b8ef42}.brief-contract img{width:112px;height:112px;object-fit:contain;max-width:100%}.brief-contract h4{font:700 18px system-ui;margin:8px 0;color:#e5e8d1}.brief-contract p{font:14px/1.5 system-ui;min-height:44px}.brief-contract strong,.brief-contract small{display:block;margin:8px 0}.brief-contract strong{font-size:14px;color:#f5d17b}.brief-contract small{font-size:12px}.brief-contract button{width:100%;font-size:13px!important;padding:9px!important}.contract-stamp{display:block;color:#c3ea88;font-size:12px;border:1px dashed #9fb879;padding:8px}
@media(max-width:800px){.brief-contracts{grid-template-columns:repeat(2,minmax(0,1fr))}.brief-economy{grid-template-columns:100px 1fr;gap:12px}.brief-coin{width:100px}.brief-character-rack img{height:110px}.brief-character-rack figcaption{font-size:14px}}@media(max-width:450px){.brief-economy{grid-template-columns:1fr}.brief-coin{margin:auto}.brief-character-rack{gap:5px}.brief-contract{padding:8px}}

/* Military treatment for ancillary dialogs only, never the main lobby. */
:is(#preferences-dialog,#invite-dialog,#coach-dialog){background:#10221e;color:#e2e8d5;border:2px solid #6f7b6b;border-radius:8px;box-shadow:0 24px 90px #000c,inset 0 0 0 6px #293931;background-image:linear-gradient(#a3bc9210 1px,transparent 1px),linear-gradient(90deg,#a3bc9210 1px,transparent 1px);background-size:32px 32px}
#coach-dialog>header{background:#111d1b;border-bottom:1px solid #637360}
:is(#preferences-dialog,#invite-dialog,#coach-dialog) h2{font-family:ui-monospace,monospace;letter-spacing:.04em}
:is(#preferences-dialog,#invite-dialog) p{color:#bdcab9}
:is(#preferences-dialog,#invite-dialog,#coach-dialog) :is(input,select){background:#101f19;border-color:#6c805b;color:#e2e8d5;border-radius:3px}
:is(#preferences-dialog,#invite-dialog,#coach-dialog) button{background:#263b2d;border-color:#6c805b;color:#e2e8d5;border-radius:3px}
:is(#preferences-dialog,#invite-dialog,#coach-dialog) :is(.primary,button[aria-pressed=true]){background:#b3cd62;border-color:#d0e486;color:#182311}
:is(#preferences-dialog,#invite-dialog,#coach-dialog) :is(button,input,select,a):focus-visible{outline:3px solid #c5ed5b;outline-offset:3px}

#coach-dialog[data-view=trends] .coach-layout{display:block}#coach-dialog[data-view=trends] .coach-layout>img{display:none}
.position-trends{padding:20px;background:#10221e;border:1px solid #687557}.trend-roles,.trend-pages{display:flex;gap:10px;margin:14px 0}.trend-roles [aria-pressed=true]{background:#b5d157!important;color:#142015!important}.position-trends .elo-trend-chart{width:100%;display:block;min-height:150px}.position-trends .elo-trend-summary{display:flex;justify-content:space-between;gap:12px}.position-trends .up{color:#76f48c}.position-trends .down{color:#ff788a}.position-trends .elo-trend-legend{display:flex;gap:18px;font-size:12px}.position-trends .elo-trend-legend .up,.position-trends .elo-trend-legend .down{display:inline-block;width:9px;height:9px;margin-right:5px;background:currentColor}.trend-table{overflow-x:auto}.trend-table table{width:100%;border-collapse:collapse;text-align:left;font-size:13px}.trend-table td,.trend-table th{padding:10px;border-bottom:1px solid #526348}.trend-note,.trend-empty{color:#bdcab9;line-height:1.5}@media(max-width:600px){.position-trends{padding:10px}.trend-table td,.trend-table th{padding:6px}}
