/* Ceremony occupies the existing PWA viewport, including its safe-area insets. */
.draft-entry{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:18px;flex:1;min-height:0;max-width:560px;overflow-y:auto}.draft-entry h2{font-size:28px;line-height:1.4;margin:0}.draft-entry p{font-size:16px;line-height:1.7;margin:0}.draft-entry>button{min-height:48px;min-width:180px}
.screen-active-draft{gap:12px}.screen-active-draft>.heading{margin:0}.active-nomination{display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;gap:12px;min-height:0;flex:1}.active-draft-selection{padding:12px 14px;background:var(--surface)}.active-draft-selection>strong{font-size:17px}.active-draft-selection>p{font-size:14px;line-height:1.5;margin:5px 0 0;overflow-wrap:anywhere}.active-draft-filters{display:grid;grid-template-columns:minmax(0,1fr) 110px;gap:12px}.active-draft-filters label{font-size:13px;display:flex;flex-direction:column;gap:5px}.active-draft-filters input,.active-draft-filters select{min-width:0;width:100%;min-height:44px}.active-candidates{overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;min-height:0}.active-candidate{display:flex;align-items:center;gap:12px;padding:12px 14px;min-height:74px;border-bottom:1px solid var(--border);cursor:pointer}.active-candidate.is-selected{background:var(--raised);outline:2px solid var(--accent);outline-offset:-2px}.active-candidate>input{width:22px;height:22px;min-height:22px;flex:none;accent-color:var(--accent)}.active-candidate>span{display:grid;grid-template-columns:minmax(0,1fr) max-content;align-items:center;gap:5px 12px;min-width:0;flex:1}.active-candidate strong{font-size:17px;line-height:1.4;overflow-wrap:anywhere}.active-candidate small{grid-row:2;grid-column:1/-1;color:var(--muted);font-size:13px;line-height:1.5}.active-candidate>span>span{grid-row:1;grid-column:2;font-size:15px;white-space:nowrap;font-variant-numeric:tabular-nums}.active-draft-footer{display:flex;justify-content:flex-end;gap:12px;flex:none}.active-draft-footer>button{min-height:48px}.active-draft-ready{display:flex;flex-direction:column;justify-content:center;gap:16px;flex:1;min-height:0;max-width:640px;overflow-y:auto}.active-draft-ready h2{font-size:22px;margin:0}.active-draft-ready>p{margin:0;line-height:1.6}.active-review-players{display:grid;gap:12px}.active-review-players>article{padding:16px;background:var(--surface);display:flex;flex-direction:column;gap:8px}.active-review-players strong{font-size:21px}.active-review-players small{font-size:14px;color:var(--muted)}.active-own-result{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;flex:none;padding:10px 12px;background:var(--surface)}.active-own-result p{font-size:13px;margin:0;min-width:0}.active-own-result strong{display:block;margin-top:4px;font-size:16px;overflow-wrap:anywhere}.screen-active-draft .draft-board{grid-template-columns:repeat(6,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));height:100%;min-height:0;overflow:hidden;gap:8px}.screen-active-draft .draft-club small{display:block;font-size:12px;color:var(--muted);line-height:1.3}.draft-club.is-own-club{outline:2px solid var(--accent);outline-offset:-2px}
body.game-mode.event-mode #game-shell{display:none!important}
body.game-mode.event-mode #app{inset:0;padding:calc(16px + var(--safe-top)) 24px calc(16px + var(--safe-bottom))}
html.ios-pwa body.game-mode.event-mode{grid-template-rows:minmax(0,1fr)}
html.ios-pwa body.game-mode.event-mode #app{position:relative;inset:auto;grid-row:1;padding:calc(12px + var(--safe-top)) 16px calc(12px + var(--safe-bottom))}
.draft-event-heading h1{font-size:24px}.draft-event-heading p{font-size:14px}.draft-event-tools{display:flex;justify-content:flex-end;gap:8px;flex:none}.draft-event-tools button{min-height:44px;padding:8px 12px}.draft-ceremony{display:grid;grid-template-rows:minmax(0,1fr) auto;gap:14px;flex:1;min-height:0;overflow:hidden}
.screen-draft .draft-board{max-height:none;min-height:0;height:100%;overflow:hidden;scrollbar-gutter:auto;grid-template-rows:repeat(2,minmax(0,1fr));gap:8px}.draft-region-US .draft-board{grid-template-columns:repeat(10,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr))}
.draft-club{justify-content:center;padding:8px 4px;overflow:hidden;gap:5px}.draft-club .crest,.draft-club .crest.crest-custom{width:32px;height:32px;flex:none}.draft-club strong{font-size:13px;line-height:1.35}.draft-club span{font-size:15px;line-height:1.5;white-space:normal;overflow-wrap:anywhere;max-height:3em}.draft-club small{display:none}
.draft-actions{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:10px;padding:0;min-height:44px}.draft-actions>button{margin:0}.draft-actions>strong{flex-basis:100%;text-align:center;font-size:18px}.lottery-stage{width:100%;display:flex;align-items:center;flex-direction:column;gap:8px}.lottery-stage h2{font-size:18px;margin:0}.lottery-stage p{margin:0;font-size:14px}.lottery-stage .lottery-ticket{width:160px;height:112px;margin:4px 0}.ticket-front{flex-direction:column;gap:10px}.ticket-front small{font-size:12px}.ticket-back{font-weight:700;font-size:20px}.lottery-winner{line-height:1.4}
.draft-selection{display:flex;flex-direction:column;flex:1;min-height:0;gap:10px}.draft-selection-actions{display:flex;flex:none;gap:8px;flex-wrap:wrap}.draft-selection-actions button{flex:1;font-size:14px}.draft-selection .draft-nomination{margin-top:0}.draft-selection .draft-candidate-profile{padding:0}.draft-selection .record-fields{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px 18px}.draft-selection .record-fields>div{padding:8px 0}.prospect-fame{color:var(--text);font-size:13px}
.event-results{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;border:0;background:var(--ground);color:var(--text);padding:calc(16px + var(--safe-top)) 24px calc(16px + var(--safe-bottom));overflow:hidden}.event-results[open]{display:flex;flex-direction:column;gap:14px}.event-results header{display:flex;justify-content:space-between;align-items:center;gap:16px;position:static;background:transparent;padding:0;border:0;flex:none}.event-results h2{font-size:22px;margin:0}.event-results h3{font-size:18px;margin:0 0 12px}.event-results button{min-height:44px;font-size:14px}.draft-result-clubs{display:grid;grid-template-columns:repeat(14,minmax(0,1fr));gap:6px;flex:none}.draft-result-clubs button{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;padding:6px;min-width:0;background:var(--surface);border:1px solid var(--border)}.draft-result-clubs button[aria-pressed=true]{outline:2px solid var(--text);outline-offset:-2px}.draft-result-clubs span{font-size:12px;white-space:nowrap;max-width:100%;text-overflow:ellipsis;overflow:hidden}.draft-result-clubs .crest,.draft-result-clubs .crest.crest-custom{width:22px;height:22px}.draft-result-players{min-height:0;flex:1;overflow:auto;overscroll-behavior:contain}.draft-result-players ol{list-style:none;padding:0;margin:0}.draft-result-players li{display:grid;grid-template-columns:60px 1fr;gap:5px 16px;align-items:center;padding:14px 0;border-bottom:1px solid var(--border);font-size:16px}.draft-result-players small{grid-column:2;color:var(--muted);font-size:13px}.draft-result-players li>span{font-size:13px;color:var(--muted)}
@media(max-width:700px){body.game-mode.event-mode #app{padding:calc(12px + var(--safe-top)) 16px calc(12px + var(--safe-bottom))}.screen-draft{gap:10px}.screen-draft .draft-board{grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));gap:5px}.draft-region-US .draft-board{grid-template-columns:repeat(6,minmax(0,1fr));grid-template-rows:repeat(5,minmax(0,1fr))}.draft-club{padding:4px 2px;gap:3px}.draft-club .crest,.draft-club .crest.crest-custom{width:24px;height:24px}.draft-club span{font-size:13px}.draft-club strong{font-size:12px}.draft-event-tools{gap:6px}.draft-event-tools button{font-size:12px;min-height:44px;padding:7px 8px;flex:1}.draft-selection .record-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.draft-selection-actions{gap:5px}.draft-selection-actions button{font-size:12px;padding:8px 5px}.draft-result-clubs{grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}.draft-result-clubs span{font-size:10px}.draft-result-clubs .crest,.draft-result-clubs .crest.crest-custom{width:18px;height:18px}.draft-result-clubs button{min-height:46px;padding:4px 1px}.event-results{padding:calc(12px + var(--safe-top)) 16px calc(12px + var(--safe-bottom));gap:10px}.event-results h2{font-size:21px}.event-results h3{font-size:17px}}
@media(max-height:700px){.screen-draft{gap:6px}.draft-ceremony{gap:6px}.draft-club .crest,.draft-club .crest.crest-custom{width:18px;height:18px}.draft-club strong{font-size:11px}.draft-club span{font-size:12px}.lottery-stage{gap:5px}.lottery-stage .lottery-ticket{height:82px;width:140px}.lottery-stage h2,.lottery-winner{font-size:15px}.draft-event-heading h1{font-size:21px}.draft-event-heading p{font-size:12px}}
@media(max-width:700px){.draft-entry h2{font-size:24px}.screen-active-draft .draft-board{grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));gap:5px}.active-nomination{gap:8px}.active-draft-selection{padding:10px 12px}.active-draft-filters{gap:8px;grid-template-columns:minmax(0,1fr) 90px}.active-candidate{padding:10px 8px;gap:10px}.active-candidate strong{font-size:16px}.active-candidate small{font-size:12px}.active-draft-footer{gap:8px}.active-draft-footer>button{font-size:14px;flex:1;padding:8px}.active-own-result{gap:8px}.active-own-result strong{font-size:14px}.screen-active-draft .draft-club small{font-size:11px}}

/* Announcement board: at 320px, (288px - 5 x 4px) / 6 = 44.67px per MLB club.
   Names and scouting reports live in the full-screen result view, never in a narrow logo cell. */
.screen-draft .draft-ceremony{grid-template-rows:minmax(0,1fr) auto auto;gap:10px}
.screen-draft .draft-logo-club{position:relative;display:flex;align-items:center;justify-content:center;min-width:0;min-height:0;width:100%;height:100%;margin:0;padding:4px;border:1px solid var(--border);border-radius:0;box-shadow:none;color:var(--text);background:var(--surface);overflow:hidden}
.screen-draft .draft-logo-club:disabled{opacity:1;cursor:default}
.screen-draft .draft-logo-club:disabled .crest{opacity:.48}
.screen-draft .draft-logo-club.is-announced{border-color:var(--control)}
.screen-draft .draft-logo-club.is-own-club{outline:2px solid var(--accent-text);outline-offset:-2px}
.screen-draft .draft-logo-club .crest,.screen-draft .draft-logo-club .crest.crest-custom{display:block;flex:none;width:min(76%,64px);height:auto;aspect-ratio:1;max-height:calc(100% - 6px);animation:none}
.screen-draft .draft-announced-mark{position:absolute;right:3px;bottom:1px;font-size:12px;font-style:normal;line-height:16px;color:var(--accent-text)}
.draft-board-summary{display:flex;align-items:center;gap:10px;min-width:0;min-height:40px;padding:6px 0;border-bottom:1px solid var(--border)}
.draft-board-summary>.crest,.draft-board-summary>.crest.crest-custom{width:28px;height:28px;flex:none}
.draft-board-summary>div{flex:1;min-width:0}
.draft-board-summary strong{display:block;font-size:17px;line-height:1.3;overflow-wrap:anywhere}
.draft-board-summary small,.draft-board-summary>span{font-size:12px;line-height:1.4;color:var(--muted)}
.draft-board-summary .draft-board-count{margin-left:auto;white-space:nowrap;flex:none;font-variant-numeric:tabular-nums}
.event-results .draft-result-content{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:stable}
.event-results .draft-result-switch{border-bottom:1px solid var(--border);margin-bottom:16px}
.event-results .draft-result-switch>summary{min-height:44px;display:flex;align-items:center;cursor:pointer;font-size:14px}
.event-results .draft-result-switch>summary::after{content:'＋';margin-left:auto}
.event-results .draft-result-switch[open]>summary::after{content:'−'}
.event-results .draft-result-clubs{padding-bottom:12px}
.event-results .draft-result-clubs button{min-height:44px}
.event-results .draft-result-clubs .crest,.event-results .draft-result-clubs .crest.crest-custom{width:28px;height:28px}
.event-results .draft-result-players{overflow:visible;min-width:0}
.draft-result-team{display:flex;align-items:center;gap:12px;margin-bottom:16px}
.draft-result-team>.crest,.draft-result-team>.crest.crest-custom{width:44px;height:44px;flex:none}
.event-results .draft-result-team h3{font-size:21px;line-height:1.4;margin:0;overflow-wrap:anywhere}
.draft-result-picks{position:static;inset:auto;display:flex;flex-direction:column;background:transparent;padding:0;border:0;border-top:1px solid var(--border);margin-bottom:20px}
.event-results .draft-result-picks>button{display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:10px;text-align:left;min-height:52px;padding:10px 8px;background:transparent;color:var(--text);border:0;border-bottom:1px solid var(--border);border-radius:0}
.event-results .draft-result-picks>button[aria-pressed=true]{background:var(--surface);box-shadow:inset 3px 0 var(--accent-text)}
.draft-result-picks span,.draft-result-picks small{font-size:12px;line-height:1.4;color:var(--muted);white-space:nowrap}
.draft-result-picks strong{font-size:16px;line-height:1.4;overflow-wrap:anywhere}
.event-results .draft-candidate-profile{padding:0}
.event-results .draft-profile-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:14px}
.event-results .draft-profile-heading h2{font-size:24px;line-height:1.4;overflow-wrap:anywhere}
.event-results .draft-profile-heading>span{font-size:12px;white-space:nowrap;flex:none;color:var(--muted)}
.event-results .record-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px}
.event-results .record-fields>div{display:flex;justify-content:space-between;align-items:baseline;gap:8px;min-width:0;padding:10px 0;border-bottom:1px solid var(--border)}
.event-results .record-fields dt{font-size:13px;color:var(--muted)}
.event-results .record-fields dd{font-size:14px;margin:0;text-align:right;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
@media(min-width:701px){.event-results .draft-result-content{width:min(100%,960px);margin:0 auto}}
@media(max-width:700px){
 .screen-draft .draft-board{gap:4px}
 .screen-draft .draft-actions{gap:6px}
 .screen-draft .draft-actions>button{min-width:0;min-height:44px;padding:8px 6px;font-size:13px;white-space:nowrap;flex:1}
 .screen-draft .draft-logo-club .crest,.screen-draft .draft-logo-club .crest.crest-custom{width:min(76%,52px)}
 .draft-board-summary{gap:8px}
 .draft-board-summary strong{font-size:16px}
 .event-results .draft-result-clubs{grid-template-columns:repeat(6,minmax(0,1fr));gap:4px}
 .event-results .draft-result-picks>button{grid-template-columns:42px minmax(0,1fr);gap:4px 10px}
 .draft-result-picks small{grid-column:2}
 .event-results .draft-profile-fields{grid-template-columns:minmax(0,1fr)}
 .event-results .draft-profile-heading h2{font-size:22px}
 .event-results .record-fields{column-gap:16px}
}
@media(max-height:640px){
 .screen-draft .draft-ceremony{gap:5px}
 .screen-draft .draft-board-summary{min-height:32px;padding:3px 0}
 .screen-draft .draft-board-summary>.crest{width:24px;height:24px}
 .screen-draft .draft-board-summary strong{font-size:14px}
 .screen-draft .draft-actions{gap:6px}
}
