/* Cup-only responsive layer. Never crop an EXUS logo to fit status text. */
.cup-page .cup-top{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:12px max(14px,env(safe-area-inset-right)) 12px max(14px,env(safe-area-inset-left));align-items:center}
.cup-page .cup-top .cup-brand{min-width:0;gap:10px;align-items:center}
.cup-page .cup-top .cup-brand img{width:76px;height:38px;max-width:100%;flex:0 0 76px;object-fit:contain}
.cup-page .cup-top .cup-brand span{min-width:0;font-size:12px;line-height:1.3;padding-left:10px;overflow-wrap:anywhere}
.cup-page .lobby-language{min-width:0}.cup-page .lobby-language select{width:100px;max-width:100%;min-height:44px;font-size:14px}
.lobby-hero{padding:6px 0 18px;text-align:left}.lobby-hero h1{font-size:clamp(25px,6vw,36px);line-height:1.2;overflow-wrap:anywhere}
.lobby-count{justify-content:space-between;flex-wrap:wrap;gap:8px;margin-bottom:8px}.lobby-count strong{font-size:28px;line-height:1.2}.lobby-count span{font-size:14px}
.lobby-batch-form{margin-top:18px;gap:11px}.lobby-batch-form h2{font-size:22px}.lobby-batch-form .lobby-help{font-size:14px;line-height:1.45;margin:4px 0}
.lobby-name-rows{gap:9px}.lobby-actions{gap:8px;margin-top:16px}.lobby-help{line-height:1.5}
.lobby-invite-compact{margin:16px 0}.lobby-invite-compact>.cup-btn{width:100%;min-height:48px}.lobby-invite-compact>p{font-size:13px;margin:8px 0 0;text-align:center}
.lobby-start-summary{font-size:16px;line-height:1.4;font-weight:700}.lobby-details{border-top:1px solid #344156;padding-top:5px}.lobby-details summary{font-size:14px}
.lobby-team{padding:18px}.lobby-team-symbol{font-size:42px}.lobby-team h2{font-size:26px}.lobby-team-buttons{margin-top:14px}
.lobby-progress .lobby-subtle:empty{display:none}.lobby-progress .lobby-help{font-size:13px;margin:8px 0 13px}
.cup-dialog .cup-dialog-head,.neongolf-cup-mode #cupUnifiedDialog>header{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:12px;align-items:start;position:static;min-width:0;width:100%;margin:0 0 14px;padding:0;float:none}
.cup-dialog-head h2,.neongolf-cup-mode #cupUnifiedDialog>header h2{min-width:0;max-width:100%;overflow-wrap:anywhere;margin:0;font-size:22px;line-height:1.2;text-align:left}
.cup-dialog #cupDialogClose,.neongolf-cup-mode #cupUnifiedDialog #cupDialogClose{display:grid;place-items:center;min-width:44px;max-width:44px;width:44px;min-height:44px;height:44px;padding:0;margin:0;line-height:1;font-size:24px;position:static;float:none}
.cup-dialog .cup-release-options{margin:14px 0 8px}.cup-dialog .cup-release-options label{padding:12px;min-height:48px;font-size:15px}.cup-release-options p{font-size:12px;line-height:1.5;margin:8px 0}
.cup-dialog .cup-actions{margin-top:14px}.cup-dialog .cup-actions>.cup-btn{min-height:50px;white-space:normal}
.cup-unified-dialog .button-grid>button{white-space:normal;min-height:48px}
.cup-dialog p,.neongolf-cup-mode #cupUnifiedDialog p{line-height:1.5}
/* Keep language/storage status next to the logo in a real grid, not in its image. */
html.neongolf-cup-mode body>.brand,html.neongolf-cup-mode body[data-view]>.brand{display:grid;grid-template-columns:minmax(0,1fr) minmax(78px,105px);gap:12px;align-items:center;width:100%;max-width:720px;padding:10px 16px;position:relative}
html.neongolf-cup-mode body>.brand .logo-plate{position:static;min-width:0;max-width:100%;width:100%;margin:0;box-sizing:border-box}
html.neongolf-cup-mode body>.brand .logo-plate img{display:block;width:100%;height:52px;max-height:52px;object-fit:contain;object-position:left center}
html.neongolf-cup-mode body>.brand .header-tools{position:static;min-width:0;max-width:100%;width:100%;margin:0;align-items:flex-end;box-sizing:border-box}
html.neongolf-cup-mode body>.brand #saveState{max-width:100%;white-space:normal;overflow-wrap:anywhere;font-size:11px;line-height:1.35;text-align:right}
html.neongolf-cup-mode .cup-context .cup-title{display:grid;grid-template-columns:minmax(0,1fr);gap:4px}
html.neongolf-cup-mode .cup-context .cup-title>*{min-width:0;overflow-wrap:anywhere;line-height:1.35}
html.neongolf-cup-mode .cup-context .cup-title>strong{font-size:13px}html.neongolf-cup-mode .cup-context .cup-title>span{font-size:19px}
html.neongolf-cup-mode .cup-context>p{font-size:12px;line-height:1.4;margin:6px 0}
html.neongolf-cup-mode .cup-context .cup-sync-line{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
html.neongolf-cup-mode .cup-context .cup-sync-line small{min-width:0;overflow-wrap:anywhere}
html.neongolf-cup-mode .cup-context .cup-sync-line button{min-height:44px;max-width:140px;white-space:normal}
html.neongolf-cup-mode .cup-finale-controls .cup-release-status{padding:12px 14px;margin:0}
html.neongolf-cup-mode .cup-finale-controls .cup-release-status p{font-size:13px;line-height:1.4;margin:6px 0 0}
html.neongolf-cup-mode .cup-finale-controls .cup-end-options{margin-top:10px}html.neongolf-cup-mode .cup-finale-controls .cup-end-options>p{display:none}
html.neongolf-cup-mode .cup-data-note{padding:12px 16px!important}html.neongolf-cup-mode .cup-data-note>p{display:none}
@media(max-width:359px){.cup-page .cup-top{grid-template-columns:minmax(0,1fr) 90px;gap:8px}.cup-page .cup-top .cup-brand{gap:8px}.cup-page .cup-top .cup-brand img{width:64px;flex-basis:64px}.cup-page .cup-top .cup-brand span{font-size:11px;padding-left:8px}.cup-page .lobby-language select{width:90px;font-size:13px}.cup-dialog{padding:16px}.cup-dialog-head h2,.neongolf-cup-mode #cupUnifiedDialog>header h2{font-size:20px}}

html.neongolf-cup-mode .cup-data-note>small{display:block;line-height:1.5;margin-bottom:5px}
html.neongolf-cup-mode:not(.cup-final-released) #resultView #reviewCard,
html.neongolf-cup-mode:not(.cup-final-released) #resultView .card:has(>#promoGrid){display:none}
