/* The non-demo home screen (globe-home.js): the globe on the left, a full-height panel on the right.
   Everything is scoped to `.front-menu.globe-home`, so the demo and the fallback tile menu are untouched.
   The rules in style.css (the 700px cap on the home view, the fitted scrolling menu) are overridden here by specificity. */
body.in-menu .front-menu.globe-home:has(.menu-home:not([hidden])){
 --gh-pw:min(430px,36vw);
 flex:1 1 0;min-height:0;max-width:none;width:100%;margin:0;padding:0;border:0;border-radius:0;
 background:#0b1510;backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:none;
 display:grid;grid-template-columns:minmax(0,1fr) var(--gh-pw);grid-template-rows:minmax(0,1fr);overflow:hidden;scrollbar-gutter:auto;
}
/* Brand line and title float over the globe; they never take pointer events from it. */
body.in-menu .front-menu.globe-home:has(.menu-home:not([hidden])) header{grid-column:1;grid-row:1;align-self:start;z-index:2;padding:22px 28px;pointer-events:none;text-shadow:0 2px 12px #000c}
body.in-menu .front-menu.globe-home:has(.menu-home:not([hidden])) header h2{margin:4px 0 0;font-size:clamp(24px,3.4vw,40px)}
body.in-menu .front-menu.globe-home .globe-stage{grid-column:1;grid-row:1;position:relative;min-width:0;min-height:0;overflow:hidden}
body.in-menu .front-menu.globe-home .globe-host{position:absolute;inset:0}
body.in-menu .front-menu.globe-home .globe-loading{position:absolute;inset:0;margin:0;display:flex;align-items:center;justify-content:center;color:#a5b5a8;font:800 15px/1 'Barlow Condensed','Arial Narrow',sans-serif;letter-spacing:.2em;text-transform:uppercase}
body.in-menu .front-menu.globe-home .globe-padhint{display:none;position:absolute;right:16px;bottom:16px;margin:0;padding:6px 12px;border:1px solid #2a3d31;border-radius:14px;background:#122019;color:#a5b5a8;font:600 11px/1.2 'Barlow Condensed','Arial Narrow',sans-serif;letter-spacing:.12em;text-transform:uppercase;z-index:3}
body.in-menu .front-menu.globe-home.controller-navigation .globe-padhint{display:block}
/* Status text and the controller hints sit over the globe instead of opening extra grid rows. */
body.in-menu .front-menu.globe-home:has(.menu-home:not([hidden])) #hub-status{grid-column:1;grid-row:1;align-self:end;justify-self:start;margin:0 0 64px 20px;z-index:3;pointer-events:none;max-width:60%}
body.in-menu .front-menu.globe-home:has(.menu-home:not([hidden])) #hub-status:empty{display:none}
body.in-menu .front-menu.globe-home:has(.menu-home:not([hidden])) .menu-controller-hints{display:none!important}

/* The panel: Resume, card with Kick Off, match settings, then the menu list (DOM order is list-first for Tab). */
body.in-menu .front-menu.globe-home .globe-panel{grid-column:2;grid-row:1;display:flex;flex-direction:column;gap:10px;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:12px 16px 12px;background:#122019;border-left:1px solid #34453a;scrollbar-color:#ffffff40 transparent}
body.in-menu .front-menu.globe-home .globe-panel>*{flex:none}
body.in-menu .front-menu.globe-home .globe-panel .menu-resume-tile{order:2;margin:0}
body.in-menu .front-menu.globe-home .globe-panel .globe-card{order:4;min-height:0}
body.in-menu .front-menu.globe-home .globe-panel .globe-settings{order:5}
body.in-menu .front-menu.globe-home .globe-panel .menu-home{order:6}
body.in-menu .front-menu.globe-home .globe-card .gp-nm{font-size:clamp(28px,3vw,38px)}
body.in-menu .front-menu.globe-home .globe-card .gp-mid{margin:6px 0 4px;gap:4px 12px;justify-content:flex-start}
body.in-menu .front-menu.globe-home .globe-card .gp-kits{gap:6px}
body.in-menu .front-menu.globe-home .globe-card .gp-chip{flex-direction:row;gap:6px;min-width:0;padding:3px 8px 3px 5px}
body.in-menu .front-menu.globe-home .globe-card .gp-chip svg{width:24px;height:22px}
body.in-menu .front-menu.globe-home .globe-card .gp-stars{margin:0 0 8px;min-height:0;font-size:12px;line-height:1.35}
body.in-menu .front-menu.globe-home .globe-card .gp-empty{padding:6px 0}
body.in-menu .front-menu.globe-home .globe-card .gp-acts{gap:6px}
body.in-menu .front-menu.globe-home .globe-card .gp-btn{height:46px;font-size:21px;margin:0;background:var(--gp-yellow,#ffe04a);color:var(--gp-on-yellow,#132016)}
body.in-menu .front-menu.globe-home .globe-card .gp-note{font-size:12px;line-height:1.2}

/* The fixture builder: YOUR TEAM v OPPONENT slots at the top of the panel; the active slot is outlined and filled. */
body.in-menu .front-menu.globe-home .globe-panel .globe-fixture{order:1;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1.3fr);align-items:start;gap:6px}
body.in-menu .front-menu.globe-home .globe-fixture .gf-v{align-self:start;margin-top:20px;font:800 14px/1 'Barlow Condensed','Arial Narrow',sans-serif;color:#a5b5a8;text-transform:uppercase}
body.in-menu .front-menu.globe-home .globe-fixture .gf-opp{display:flex;gap:4px;min-width:0}
body.in-menu .front-menu.globe-home .globe-fixture .gf-slot{flex:1 1 0;min-width:0;min-height:56px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:2px;padding:5px 9px;text-align:left;color:#f2f1df;background:#16241b;border:2px solid #2a3d31;border-radius:10px;cursor:pointer}
body.in-menu .front-menu.globe-home .globe-fixture .gf-slot:hover{border-color:#586c4e}
body.in-menu .front-menu.globe-home .globe-fixture .gf-slot.active{border-color:var(--brand-yellow,#ffe04a);background:#24391f;box-shadow:inset 0 0 0 1px var(--brand-yellow,#ffe04a),0 0 14px #ffe04a33}
body.in-menu .front-menu.globe-home .globe-fixture .gf-slot.active .gf-lbl{color:var(--brand-yellow,#ffe04a)}
body.in-menu .front-menu.globe-home .globe-fixture .gf-slot:focus-visible,
body.in-menu .front-menu.globe-home .globe-fixture .gf-random:focus-visible{outline:3px solid #fff;outline-offset:2px}
body.in-menu .front-menu.globe-home .globe-fixture .gf-lbl{font:800 10px/1 'Barlow Condensed','Arial Narrow',sans-serif;letter-spacing:.16em;text-transform:uppercase;color:#a5b5a8}
body.in-menu .front-menu.globe-home .globe-fixture .gf-nm{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:800 19px/1.05 'Barlow Condensed','Arial Narrow',sans-serif;letter-spacing:.02em;text-transform:uppercase}
body.in-menu .front-menu.globe-home .globe-fixture .gf-random{flex:none;min-width:56px;min-height:40px;align-self:start;margin-top:8px;padding:0 8px;font:800 12px/1 'Barlow Condensed','Arial Narrow',sans-serif;letter-spacing:.1em;text-transform:uppercase;color:#f2f1df;background:#16241b;border:2px solid #2a3d31;border-radius:20px;cursor:pointer}
body.in-menu .front-menu.globe-home .globe-fixture .gf-random:hover{border-color:#586c4e}
body.in-menu .front-menu.globe-home .globe-fixture .gf-random.active{border-color:#8fbe98;color:#cfe8d3}
body.in-menu .front-menu.globe-home .globe-card .gp-btn:disabled{opacity:.45;cursor:not-allowed;filter:none;box-shadow:none}

/* Match settings: the three dropdowns in one compact row, label above each. */
body.in-menu .front-menu.globe-home .globe-settings{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px 8px;padding:8px 10px 10px;border:1px solid #2a3d31;border-radius:10px;background:#18291f}
body.in-menu .front-menu.globe-home .globe-settings-title{grid-column:1/-1;margin:0;font:800 11px/1 'Barlow Condensed','Arial Narrow',sans-serif;letter-spacing:.18em;text-transform:uppercase;color:#a5b5a8}
body.in-menu .front-menu.globe-home .globe-settings label{display:flex;flex-direction:column;align-items:stretch;gap:3px;min-width:0;font-size:11px;line-height:1.1;color:#c9d3c4}
body.in-menu .front-menu.globe-home .globe-settings label>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.in-menu .front-menu.globe-home .globe-settings select{flex:none;width:100%;min-width:0;min-height:40px;padding:4px 6px;font:inherit;font-size:13px;color:#f2f1df;background:#21372a;border:1px solid #586c4e;border-radius:6px}

/* The existing home tiles become the panel's list: a compact 2-column grid, Quit on its own full-width row. */
body.in-menu .front-menu.globe-home .globe-panel .menu-home{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:none;gap:6px}
body.in-menu .front-menu.globe-home .globe-panel .menu-home button,
body.in-menu .front-menu.globe-home .globe-panel .menu-home button.menu-primary{grid-row:auto;grid-column:auto;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:0;width:100%;min-width:0;min-height:44px;height:auto;padding:6px 12px;text-align:left;transform:none;background:#16241bcc;color:#f2f1df;border:1px solid #ffffff1a;border-radius:10px}
body.in-menu .front-menu.globe-home .globe-panel .menu-home button:hover,
body.in-menu .front-menu.globe-home .globe-panel .menu-home button:focus-visible{transform:none;background:#1f3326e6;border-color:var(--brand-yellow,#ffe04a)}
body.in-menu .front-menu.globe-home .globe-panel .menu-home strong,
body.in-menu .front-menu.globe-home .globe-panel .menu-home button.menu-primary strong{font-size:20px;line-height:1.05;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
body.in-menu .front-menu.globe-home .globe-panel .menu-home span,
body.in-menu .front-menu.globe-home .globe-panel .menu-home button.menu-primary span{display:none}
body.in-menu .front-menu.globe-home .globe-panel .menu-home #menu-quit{grid-column:1/-1;margin-top:4px;background:#2a1a1acc;border-color:#ff6b6b33}
/* Scroll cue for windows too short for everything: a fade at the panel foot while more is below. */
body.in-menu .front-menu.globe-home .globe-panel{background:linear-gradient(#122019 30%,#12201900) top/100% 24px no-repeat local,linear-gradient(#12201900,#122019 70%) bottom/100% 28px no-repeat local,#122019;background-attachment:local,local,scroll}

/* Narrow screens: the globe on top at a fixed height, the panel beneath; the menu scrolls. */
@media (max-width:799px){
 body.in-menu .front-menu.globe-home:has(.menu-home:not([hidden])){grid-template-columns:minmax(0,1fr);grid-template-rows:clamp(280px,46vh,440px) auto;overflow-y:auto;overflow-x:hidden}
 body.in-menu .front-menu.globe-home .globe-panel{grid-column:1;grid-row:2;overflow:visible;border-left:0;border-top:1px solid #34453a}
 body.in-menu .front-menu.globe-home .globe-stage{grid-row:1}
 body.in-menu .front-menu.globe-home .globe-padhint{display:none!important}
}
@media (prefers-reduced-motion:reduce){body.in-menu .front-menu.globe-home .globe-panel *{transition:none!important}}

/* NATIONS | CLUBS: a segmented control at the very top of the panel. */
body.in-menu .front-menu.globe-home .globe-panel .globe-mode{order:0;display:grid;grid-template-columns:1fr 1fr;gap:0;padding:3px;border:1px solid #2a3d31;border-radius:12px;background:#0f1a13}
body.in-menu .front-menu.globe-home .globe-mode .gm-tab{min-height:54px;padding:0 10px;font:800 23px/1 'Barlow Condensed','Arial Narrow',sans-serif;letter-spacing:.06em;text-transform:uppercase;color:#a5b5a8;background:transparent;border:0;border-radius:9px;cursor:pointer}
body.in-menu .front-menu.globe-home .globe-mode .gm-tab:hover{color:#f2f1df}
body.in-menu .front-menu.globe-home .globe-mode .gm-tab.active{background:var(--brand-yellow,#ffe04a);color:#132016}
body.in-menu .front-menu.globe-home .globe-mode .gm-tab:focus-visible{outline:3px solid #fff;outline-offset:1px}

/* The fixture's kit chips: pick the kit each team wears (pressed = the kit it will wear). */
body.in-menu .front-menu.globe-home .globe-fixture .gf-team{display:flex;flex-direction:column;gap:4px;min-width:0}
body.in-menu .front-menu.globe-home .globe-fixture .gf-kitrow{display:flex;align-items:center;gap:4px;min-height:34px}
body.in-menu .front-menu.globe-home .globe-fixture .gf-kit{flex:none;width:40px;height:34px;display:inline-flex;align-items:center;justify-content:center;padding:0;color:#a5b5a8;background:#16241b;border:2px solid #2a3d31;border-radius:8px;cursor:pointer}
body.in-menu .front-menu.globe-home .globe-fixture .gf-kit[hidden]{display:none}
body.in-menu .front-menu.globe-home .globe-fixture .gf-kit svg{width:22px;height:20px}
body.in-menu .front-menu.globe-home .globe-fixture .gf-kit:hover:not(:disabled){border-color:#586c4e}
body.in-menu .front-menu.globe-home .globe-fixture .gf-kit.on{border-color:var(--brand-yellow,#ffe04a);background:#24391f}
body.in-menu .front-menu.globe-home .globe-fixture .gf-kit:disabled{opacity:.4;cursor:not-allowed}
body.in-menu .front-menu.globe-home .globe-fixture .gf-kit:focus-visible{outline:3px solid #fff;outline-offset:2px}
body.in-menu .front-menu.globe-home .globe-fixture .gf-adj{flex:none;padding:2px 6px;border:1px solid #ffe04a88;border-radius:9px;font:800 10px/1 'Barlow Condensed','Arial Narrow',sans-serif;letter-spacing:.1em;text-transform:uppercase;color:var(--brand-yellow,#ffe04a);cursor:help}
body.in-menu .front-menu.globe-home .globe-fixture .gf-adj[hidden]{display:none}

/* The club browser (CLUBS): the flexible region of the panel; the list scrolls inside it. */
body.in-menu .front-menu.globe-home .globe-panel .globe-clubs{order:3;display:flex;flex-direction:column;flex:1 1 150px;min-height:150px;overflow:hidden}
body.in-menu .front-menu.globe-home .globe-clubs[hidden]{display:none}
body.in-menu .front-menu.globe-home .globe-clubs .gc-empty{padding:12px 4px;color:#c9d3c4}
body.in-menu .front-menu.globe-home .globe-clubs .gc-ph{margin:0 0 4px;font:800 24px/1.05 'Barlow Condensed','Arial Narrow',sans-serif;letter-spacing:.03em;text-transform:uppercase;color:#f2f1df}
body.in-menu .front-menu.globe-home .globe-clubs .gc-empty p{margin:0;font-size:13px;line-height:1.3}
body.in-menu .front-menu.globe-home .globe-clubs .gc-empty .gc-soon{margin-top:8px;padding:6px 10px;border:1px solid #ffe04a66;border-radius:8px;color:var(--brand-yellow,#ffe04a);font-weight:700}
body.in-menu .front-menu.globe-home .globe-clubs .gc-body{display:flex;flex-direction:column;gap:6px;flex:1 1 auto;min-height:0}
body.in-menu .front-menu.globe-home .globe-clubs .gc-body[hidden],
body.in-menu .front-menu.globe-home .globe-clubs .gc-empty[hidden],
body.in-menu .front-menu.globe-home .globe-clubs .gc-card[hidden]{display:none}
body.in-menu .front-menu.globe-home .globe-clubs .gc-head{display:flex;align-items:center;gap:10px;flex:none}
body.in-menu .front-menu.globe-home .globe-clubs .gc-back{flex:0 1 auto;max-width:48%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-height:40px;padding:0 12px;font:800 16px/1 'Barlow Condensed','Arial Narrow',sans-serif;letter-spacing:.1em;text-transform:uppercase;color:#f2f1df;background:#16241b;border:2px solid #2a3d31;border-radius:10px;cursor:pointer}
body.in-menu .front-menu.globe-home .globe-clubs .gc-back:hover{border-color:#586c4e}
body.in-menu .front-menu.globe-home .globe-clubs .gc-title{margin:0;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:800 26px/1 'Barlow Condensed','Arial Narrow',sans-serif;letter-spacing:.03em;text-transform:uppercase;color:#f2f1df}
body.in-menu .front-menu.globe-home .globe-clubs .gc-chips{display:flex;gap:6px;flex:none;overflow-x:auto;scrollbar-width:none;padding:1px 0}
body.in-menu .front-menu.globe-home .globe-clubs .gc-chip{flex:none;min-height:40px;padding:0 12px;display:inline-flex;align-items:center;gap:6px;font:800 14px/1 'Barlow Condensed','Arial Narrow',sans-serif;letter-spacing:.06em;text-transform:uppercase;white-space:nowrap;color:#c9d3c4;background:#16241b;border:2px solid #2a3d31;border-radius:20px;cursor:pointer}
body.in-menu .front-menu.globe-home .globe-clubs .gc-chips.fade-r{-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent)}
body.in-menu .front-menu.globe-home .globe-clubs .gc-chips.fade-l{-webkit-mask-image:linear-gradient(270deg,#000 calc(100% - 28px),transparent);mask-image:linear-gradient(270deg,#000 calc(100% - 28px),transparent)}
body.in-menu .front-menu.globe-home .globe-clubs .gc-chips.fade-l.fade-r{-webkit-mask-image:linear-gradient(90deg,transparent,#000 28px,#000 calc(100% - 28px),transparent);mask-image:linear-gradient(90deg,transparent,#000 28px,#000 calc(100% - 28px),transparent)}
body.in-menu .front-menu.globe-home .globe-clubs .gc-chip{max-width:85%}
body.in-menu .front-menu.globe-home .globe-clubs .gc-chip .gc-cl{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.in-menu .front-menu.globe-home .globe-clubs .gc-list{scroll-snap-type:y proximity;scroll-padding:0;-webkit-mask-image:linear-gradient(#000 calc(100% - 16px),transparent);mask-image:linear-gradient(#000 calc(100% - 16px),transparent)}
body.in-menu .front-menu.globe-home .globe-clubs .gc-list.at-end{-webkit-mask-image:none;mask-image:none}
body.in-menu .front-menu.globe-home .globe-clubs .gc-row{scroll-snap-align:start}
body.in-menu .front-menu.globe-home .globe-clubs .gc-chip small{flex:none;font-size:11px;opacity:.7}
body.in-menu .front-menu.globe-home .globe-clubs .gc-chip.on{background:var(--brand-yellow,#ffe04a);border-color:var(--brand-yellow,#ffe04a);color:#132016}
body.in-menu .front-menu.globe-home .globe-clubs .gc-search{flex:1 1 0;min-width:0;min-height:40px;padding:0 12px;font:inherit;font-size:14px;color:#f2f1df;background:#0f1a13;border:2px solid #2a3d31;border-radius:10px}
body.in-menu .front-menu.globe-home .globe-clubs .gc-search:focus{outline:none;border-color:var(--brand-yellow,#ffe04a)}
body.in-menu .front-menu.globe-home .globe-clubs .gc-list{flex:1 1 auto;min-height:88px;overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:4px;padding-right:2px;scrollbar-color:#ffffff40 transparent}
body.in-menu .front-menu.globe-home .globe-clubs .gc-none{margin:8px 4px;color:#a5b5a8;font-size:13px}
body.in-menu .front-menu.globe-home .globe-clubs .gc-row{flex:none;display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;align-items:center;gap:8px;width:100%;min-height:44px;padding:4px 10px;text-align:left;color:#f2f1df;background:#16241b;border:2px solid #2a3d31;border-radius:10px;cursor:pointer}
body.in-menu .front-menu.globe-home .globe-clubs .gc-row:hover{border-color:#586c4e}
body.in-menu .front-menu.globe-home .globe-clubs .gc-row.picked{border-color:#8fbe98;background:#1d3324}
body.in-menu .front-menu.globe-home .globe-clubs .gc-row:focus-visible,
body.in-menu .front-menu.globe-home .globe-clubs .gc-back:focus-visible,
body.in-menu .front-menu.globe-home .globe-clubs .gc-chip:focus-visible{outline:3px solid #fff;outline-offset:2px}
body.in-menu .front-menu.globe-home .globe-clubs .gc-main{display:flex;flex-direction:column;min-width:0}
body.in-menu .front-menu.globe-home .globe-clubs .gc-main strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:800 18px/1.05 'Barlow Condensed','Arial Narrow',sans-serif;letter-spacing:.02em;text-transform:uppercase}
body.in-menu .front-menu.globe-home .globe-clubs .gc-main em{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-style:normal;line-height:1.1;color:#a5b5a8}
body.in-menu .front-menu.globe-home .globe-clubs .gc-tag{font:800 10px/1 'Barlow Condensed','Arial Narrow',sans-serif;font-style:normal;letter-spacing:.1em;text-transform:uppercase;color:#cfe8d3;white-space:nowrap}
body.in-menu .front-menu.globe-home .globe-clubs .gc-row:not(.picked) .gc-tag{display:none}
body.in-menu .front-menu.globe-home .globe-clubs .gc-rt{min-width:28px;text-align:center;font:800 18px/1 'Barlow Condensed','Arial Narrow',sans-serif;color:var(--brand-yellow,#ffe04a)}
body.in-menu .front-menu.globe-home .globe-clubs .gc-kits,
body.in-menu .front-menu.globe-home .globe-clubs .gc-ck{display:flex;gap:3px}
body.in-menu .front-menu.globe-home .globe-clubs .gc-kit{display:inline-flex;width:22px;height:20px}
body.in-menu .front-menu.globe-home .globe-clubs .gc-kit svg{width:22px;height:20px}
body.in-menu .front-menu.globe-home .globe-clubs .gc-card{flex:none;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 10px;align-items:center;padding:6px 10px;border:1px solid #2a3d31;border-radius:10px;background:#18291f}
body.in-menu .front-menu.globe-home .globe-clubs .gc-cn{grid-column:1;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:800 22px/1.05 'Barlow Condensed','Arial Narrow',sans-serif;letter-spacing:.02em;text-transform:uppercase}
body.in-menu .front-menu.globe-home .globe-clubs .gc-cm{grid-column:1;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:#a5b5a8}
body.in-menu .front-menu.globe-home .globe-clubs .gc-cr{grid-column:2;grid-row:1;margin:0;font:800 15px/1 'Barlow Condensed','Arial Narrow',sans-serif;letter-spacing:.06em;text-transform:uppercase;color:var(--brand-yellow,#ffe04a);text-align:right}
body.in-menu .front-menu.globe-home .globe-clubs .gc-ck{grid-column:2;grid-row:2;justify-content:flex-end}
body.in-menu .front-menu.globe-home .globe-clubs .gc-cs{grid-column:1/-1;margin:3px 0 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;color:#a5b5a8}

/* Clubs mode: Kick Off is on its own (the club card is in the browser). */
body.in-menu .front-menu.globe-home .globe-panel .globe-card.clubs{padding-top:0;padding-bottom:0}
/* The inline confirmation that takes the Kick Off card's place. */
body.in-menu .front-menu.globe-home .globe-panel .globe-confirm{order:4;padding:10px 12px;border:2px solid var(--brand-yellow,#ffe04a);border-radius:10px;background:#24391f}
body.in-menu .front-menu.globe-home .globe-confirm[hidden]{display:none}
body.in-menu .front-menu.globe-home .globe-card[hidden]{display:none}
body.in-menu .front-menu.globe-home .globe-confirm .gh-cq{margin:0 0 8px;font-size:14px;line-height:1.25;color:#f2f1df}
body.in-menu .front-menu.globe-home .globe-confirm .gh-ca{display:grid;grid-template-columns:1.4fr 1fr;gap:8px}
body.in-menu .front-menu.globe-home .globe-confirm .gp-btn{height:44px;font-size:18px;margin:0;background:var(--gp-yellow,#ffe04a);color:var(--gp-on-yellow,#132016)}
body.in-menu .front-menu.globe-home .globe-confirm .gh-cancel{min-height:44px;font:800 16px/1 'Barlow Condensed','Arial Narrow',sans-serif;letter-spacing:.1em;text-transform:uppercase;color:#f2f1df;background:#16241b;border:2px solid #586c4e;border-radius:10px;cursor:pointer}
body.in-menu .front-menu.globe-home .globe-confirm button:focus-visible{outline:3px solid #fff;outline-offset:2px}

/* Short windows (1280x720): tighter vertical rhythm so the nav and Kick Off stay on screen; the club list takes the slack. */
@media (max-height:940px){
 body.in-menu .front-menu.globe-home .globe-panel{gap:6px;padding:8px 14px}
 body.in-menu .front-menu.globe-home .globe-mode .gm-tab{min-height:44px}
 body.in-menu .front-menu.globe-home .globe-fixture .gf-slot{min-height:48px;padding:3px 8px}
 body.in-menu .front-menu.globe-home .globe-fixture .gf-nm{font-size:17px}
 body.in-menu .front-menu.globe-home .globe-fixture .gf-kitrow{min-height:30px}
 body.in-menu .front-menu.globe-home .globe-fixture .gf-kit{height:30px;width:38px}
 body.in-menu .front-menu.globe-home .globe-fixture .gf-kit svg{width:19px;height:17px}
 body.in-menu .front-menu.globe-home .globe-fixture .gf-v{margin-top:14px}
 body.in-menu .front-menu.globe-home .globe-fixture .gf-random{margin-top:4px}
 body.in-menu .front-menu.globe-home .globe-settings{padding:5px 8px 6px;gap:2px 8px}
 body.in-menu .front-menu.globe-home .globe-settings-title{display:none}
 body.in-menu .front-menu.globe-home .globe-settings label{font-size:10px;gap:1px}
 body.in-menu .front-menu.globe-home .globe-settings select{min-height:36px}
 body.in-menu .front-menu.globe-home .globe-panel .menu-home{gap:4px}
 body.in-menu .front-menu.globe-home .globe-panel .menu-home button,
 body.in-menu .front-menu.globe-home .globe-panel .menu-home button.menu-primary{min-height:40px;padding:3px 10px}
 body.in-menu .front-menu.globe-home .globe-panel .menu-home strong,
 body.in-menu .front-menu.globe-home .globe-panel .menu-home button.menu-primary strong{font-size:16px}
 body.in-menu .front-menu.globe-home .globe-panel .menu-home{grid-template-columns:repeat(3,minmax(0,1fr))}
 body.in-menu .front-menu.globe-home .globe-panel .menu-home #menu-quit{grid-column:auto;margin-top:0}
 body.in-menu .front-menu.globe-home .globe-settings label>span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
 body.in-menu .front-menu.globe-home .globe-card .gp-btn{height:42px;font-size:19px}
 body.in-menu .front-menu.globe-home .globe-card .gp-nm{font-size:26px}
 body.in-menu .front-menu.globe-home .globe-clubs .gc-body{gap:4px}
 body.in-menu .front-menu.globe-home .globe-clubs .gc-title{font-size:22px}
 body.in-menu .front-menu.globe-home .globe-clubs .gc-back,
 body.in-menu .front-menu.globe-home .globe-clubs .gc-chip,
 body.in-menu .front-menu.globe-home .globe-clubs .gc-search{min-height:40px}
 body.in-menu .front-menu.globe-home .globe-clubs .gc-list{gap:3px}
 body.in-menu .front-menu.globe-home .globe-clubs .gc-row{min-height:38px;padding:2px 8px}
 body.in-menu .front-menu.globe-home .globe-clubs .gc-chips .gc-chip{min-height:34px}
 body.in-menu .front-menu.globe-home .globe-clubs .gc-main strong{font-size:16px}
 body.in-menu .front-menu.globe-home .globe-clubs .gc-kit,
 body.in-menu .front-menu.globe-home .globe-clubs .gc-kit svg{width:18px;height:16px}
 body.in-menu .front-menu.globe-home .globe-clubs .gc-cn{font-size:18px}
 body.in-menu .front-menu.globe-home .globe-card .gp-note{font-size:11px}
}
/* 1280x720: the picked row already carries its tag, so the club card and the city line give way to the list. */
@media (max-height:780px){
 body.in-menu .front-menu.globe-home .globe-panel .menu-resume-tile{min-height:0;height:auto;padding:6px 14px;display:flex;flex-direction:row;align-items:center;gap:10px}
 body.in-menu .front-menu.globe-home .globe-panel .menu-resume-tile strong{font-size:20px;margin:0}
 body.in-menu .front-menu.globe-home .globe-panel .menu-resume-tile span{display:none}
 body.in-menu .front-menu.globe-home .globe-clubs .gc-card{display:none}
 body.in-menu .front-menu.globe-home .globe-clubs .gc-main em{display:none}
}
/* Stacked layout (narrow): the browser takes its natural height; the list is capped and scrolls. */
@media (max-width:799px){body.in-menu .front-menu.globe-home .globe-panel .globe-clubs{flex:none;min-height:0}body.in-menu .front-menu.globe-home .globe-clubs .gc-list{max-height:420px}}

/* The Play page: ONE mode (play-mode.js). The old club setup cards, the club chip and the second Kick Off are not shown while the
   unified block is mounted; the club squad editor is only offered in Clubs. Without the globe (fallback) the block is removed and all of this is off. */
.front-menu.globe-home .menu-content.play-unified .match-setup .fixture-cards,.front-menu.globe-home .menu-content.play-unified .match-setup .match-setup-footer,.front-menu.globe-home .menu-content.play-unified #play-selection{display:none!important}
.front-menu.globe-home .menu-content.play-unified[data-mode="nations"] details[data-menu="teams"]{display:none}
.front-menu.globe-home .play-mode{display:grid;gap:12px;margin:0 0 16px;padding:14px;border:1px solid #2a3d31;border-radius:12px;background:#0f1a13cc}
.front-menu.globe-home .play-mode-switch{display:grid;grid-template-columns:1fr 1fr;gap:0;padding:3px;border:1px solid #2a3d31;border-radius:12px;background:#0f1a13}
.front-menu.globe-home .play-mode-tab{min-height:44px;padding:0 10px;font:800 17px/1 'Barlow Condensed','Arial Narrow',sans-serif;letter-spacing:.12em;text-transform:uppercase;color:#a5b5a8;background:transparent;border:0;border-radius:9px;cursor:pointer}
.front-menu.globe-home .play-mode-tab:hover{color:#f2f1df}
.front-menu.globe-home .play-mode-tab.active{background:var(--brand-yellow,#ffe04a);color:#132016}
.front-menu.globe-home .play-mode-tab:focus-visible{outline:3px solid #fff;outline-offset:1px}
.front-menu.globe-home .play-mode .play-team{margin:0}
.front-menu.globe-home .play-mode .play-opp,.front-menu.globe-home .play-mode .play-wait{margin:0;color:#c9d3c4}
.front-menu.globe-home .play-mode .play-kickoff{width:100%;min-height:52px;font-size:20px}
.front-menu.globe-home .play-mode .play-kickoff:disabled{opacity:.5;cursor:not-allowed}
body.touch-device .front-menu.globe-home .play-mode button{min-height:48px}

/* Match options: a small text link under the card with Kick Off (opens the Play page). */
body.in-menu .front-menu.globe-home .globe-panel .globe-options-link{order:4;align-self:flex-start;margin:-4px 0 0;padding:4px 2px;background:none;border:0;color:#a5b5a8;font-size:14px;font-weight:600;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
body.in-menu .front-menu.globe-home .globe-panel .globe-options-link:hover{color:#f2f1df}
body.in-menu .front-menu.globe-home .globe-panel .globe-options-link:focus-visible{outline:3px solid #fff;outline-offset:2px}

/* ---- Two views (data-view on .front-menu.globe-home): MENU, the choices up front with the globe a dim backdrop; GLOBE, the globe up front with the team pickers. ---- */
body.in-menu .front-menu.globe-home .globe-explore,body.in-menu .front-menu.globe-home .globe-done{display:none}
/* MENU view: one centred column over the whole-screen globe. */
body.in-menu .front-menu.globe-home[data-view="menu"]:has(.menu-home:not([hidden])){grid-template-columns:minmax(0,1fr);position:relative}
body.in-menu .front-menu.globe-home[data-view="menu"] .globe-stage{grid-column:1;grid-row:1;opacity:.34;filter:saturate(.8);transition:opacity .25s}
body.in-menu .front-menu.globe-home[data-view="menu"] .globe-host{pointer-events:none}
body.in-menu .front-menu.globe-home[data-view="menu"] .globe-explore{display:block;position:absolute;left:20px;bottom:18px;z-index:4;padding:10px 18px;border:1px solid #ffffff40;border-radius:20px;background:#0b1510cc;color:#d8e3d6;font:800 14px/1 'Barlow Condensed','Arial Narrow',sans-serif;letter-spacing:.14em;text-transform:uppercase;cursor:pointer}
body.in-menu .front-menu.globe-home[data-view="menu"] .globe-explore:hover,body.in-menu .front-menu.globe-home[data-view="menu"] .globe-explore:focus-visible{border-color:var(--brand-yellow,#ffe04a);color:#fff}
body.in-menu .front-menu.globe-home[data-view="menu"]:has(.menu-home:not([hidden])) header{justify-self:center;text-align:center;padding:14px 28px 0}
body.in-menu .front-menu.globe-home[data-view="menu"] .globe-panel{grid-column:1;grid-row:1;justify-self:center;align-self:center;width:min(580px,calc(100% - 32px));max-height:calc(100% - 96px);margin-top:48px;position:relative;z-index:3;border:1px solid #ffffff26;border-radius:16px;padding:16px;gap:12px;background:#0d1611e6;box-shadow:0 24px 60px #000a;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
body.in-menu .front-menu.globe-home[data-view="menu"] .globe-panel .globe-mode{order:0}
body.in-menu .front-menu.globe-home[data-view="menu"] .globe-panel .globe-fixture{order:1}
body.in-menu .front-menu.globe-home[data-view="menu"] .globe-panel .globe-card{order:2;padding:0;background:none;border:0}
body.in-menu .front-menu.globe-home[data-view="menu"] .globe-card .gp-nm,
body.in-menu .front-menu.globe-home[data-view="menu"] .globe-card .gp-mid,
body.in-menu .front-menu.globe-home[data-view="menu"] .globe-card .gp-stars,
body.in-menu .front-menu.globe-home[data-view="menu"] .globe-card .gp-empty{display:none}
body.in-menu .front-menu.globe-home[data-view="menu"] .globe-card .gp-btn{height:52px}
body.in-menu .front-menu.globe-home[data-view="menu"] .globe-panel .menu-resume-tile{order:3}
body.in-menu .front-menu.globe-home[data-view="menu"] .globe-panel .menu-home{order:4}
body.in-menu .front-menu.globe-home[data-view="menu"] .globe-panel .globe-settings{order:5}
body.in-menu .front-menu.globe-home[data-view="menu"] .globe-panel .globe-options-link{order:6}
body.in-menu .front-menu.globe-home[data-view="menu"] .globe-clubs,body.in-menu .front-menu.globe-home[data-view="menu"] .globe-confirm{display:none}
body.in-menu .front-menu.globe-home[data-view="menu"] .globe-panel .menu-home{gap:10px}
body.in-menu .front-menu.globe-home[data-view="menu"] .globe-panel .menu-home button{min-height:68px;padding:10px 16px}
body.in-menu .front-menu.globe-home[data-view="menu"] .globe-panel .menu-home strong{font-size:24px}
body.in-menu .front-menu.globe-home[data-view="menu"] .globe-panel .menu-home span{display:block;font-size:13px;line-height:1.25;color:#c9d3c4}
body.in-menu .front-menu.globe-home[data-view="menu"] .globe-panel .menu-home #menu-training span,
body.in-menu .front-menu.globe-home[data-view="menu"] .globe-panel .menu-home #menu-settings span,
body.in-menu .front-menu.globe-home[data-view="menu"] .globe-panel .menu-home #menu-club span,
body.in-menu .front-menu.globe-home[data-view="menu"] .globe-panel .menu-home #menu-editors span{display:none}
/* The headline buttons: World Championship (national teams), Competitions (clubs), then Custom Competition across the width. */
body.in-menu .front-menu.globe-home[data-view="menu"] .globe-panel .menu-home #menu-worldchamp,
body.in-menu .front-menu.globe-home[data-view="menu"] .globe-panel .menu-home #menu-competitions,
body.in-menu .front-menu.globe-home[data-view="menu"] .globe-panel .menu-home #menu-custom{grid-column:1/-1}
body.in-menu .front-menu.globe-home[data-view="menu"] .globe-panel .menu-home #menu-worldchamp,
body.in-menu .front-menu.globe-home[data-view="menu"] .globe-panel .menu-home #menu-competitions{min-height:128px;justify-content:center;background:var(--brand-yellow,#ffe04a);color:#132016;border-color:transparent}
body.in-menu .front-menu.globe-home[data-view="menu"] .globe-panel .menu-home #menu-worldchamp strong,
body.in-menu .front-menu.globe-home[data-view="menu"] .globe-panel .menu-home #menu-competitions strong{font-size:44px;white-space:normal;line-height:1}
body.in-menu .front-menu.globe-home[data-view="menu"] .globe-panel .menu-home #menu-worldchamp span,
body.in-menu .front-menu.globe-home[data-view="menu"] .globe-panel .menu-home #menu-competitions span{color:#132016cc;font-size:15px}
body.in-menu .front-menu.globe-home[data-view="menu"] .globe-panel .menu-home #menu-worldchamp:hover,
body.in-menu .front-menu.globe-home[data-view="menu"] .globe-panel .menu-home #menu-worldchamp:focus-visible,
body.in-menu .front-menu.globe-home[data-view="menu"] .globe-panel .menu-home #menu-competitions:hover,
body.in-menu .front-menu.globe-home[data-view="menu"] .globe-panel .menu-home #menu-competitions:focus-visible{background:#ffe766}
body.in-menu .front-menu.globe-home[data-view="menu"] .globe-panel .menu-home #menu-custom{min-height:80px}
body.in-menu .front-menu.globe-home[data-view="menu"] .globe-panel .menu-home #menu-custom strong{font-size:30px}
/* GLOBE view: today's layout (globe left, picker panel right) with a Done button to go back; the menu list and match settings step aside. */
body.in-menu .front-menu.globe-home[data-view="globe"] .globe-done{display:block;position:absolute;top:14px;right:14px;z-index:4;min-height:44px;padding:0 16px;text-align:left;background:#0b1510e6!important;font:800 16px/1 'Barlow Condensed','Arial Narrow',sans-serif;letter-spacing:.12em;text-transform:uppercase;color:#f2f1df;background:#16241b;border:2px solid #2a3d31;border-radius:10px;cursor:pointer}
body.in-menu .front-menu.globe-home[data-view="globe"] .globe-done:hover,
body.in-menu .front-menu.globe-home[data-view="globe"] .globe-done:focus-visible{border-color:var(--brand-yellow,#ffe04a)}
body.in-menu .front-menu.globe-home[data-view="globe"] .globe-panel .menu-home,
body.in-menu .front-menu.globe-home[data-view="globe"] .globe-panel .globe-settings,
body.in-menu .front-menu.globe-home[data-view="globe"] .globe-panel .globe-options-link,
body.in-menu .front-menu.globe-home[data-view="globe"] .globe-panel .menu-resume-tile{display:none}
@media (max-width:799px){body.in-menu .front-menu.globe-home[data-view="menu"]:has(.menu-home:not([hidden])){grid-template-rows:minmax(0,1fr)}body.in-menu .front-menu.globe-home[data-view="menu"] .globe-panel{grid-row:1;max-height:none;overflow-y:auto}}
