/* GAME HUB — DESIGN 02 COMPLETE PUBLIC-SITE REDESIGN
   27 Oct 2026
   Presentation-only continuation. Existing colours, fonts, content and backend APIs stay intact. */

:root{
  --gh-rail:92px;
  --gh-header:70px;
  --gh-radius:18px;
  --gh-radius-sm:12px;
  --gh-max:1480px;
}

/* ---------- Shared shell ---------- */
body.design-two{background:
  radial-gradient(circle at 78% -10%,color-mix(in srgb,var(--yellow) 8%,transparent),transparent 30%),
  var(--bg);
}
body.design-two .site-header{
  height:var(--gh-header);
  padding:0 22px 0 28px;
  gap:18px;
  background:color-mix(in srgb,var(--bg) 90%,transparent);
  border-bottom:1px solid color-mix(in srgb,var(--line) 85%,transparent);
  box-shadow:0 12px 35px rgba(0,0,0,.12);
}
body.design-two .site-header .brand{margin-right:0;min-width:176px}
body.design-two .site-header .nav{margin-inline:auto}
body.design-two .site-header .header-actions{margin-left:auto}
body.design-two .site-header .icon-btn,
body.design-two .page-refresh-btn{
  width:42px;height:42px;border-radius:50%;border:1px solid transparent;background:transparent;
  display:grid;place-items:center;color:var(--muted);font-size:0!important;transition:.18s ease;
}
body.design-two .site-header .icon-btn:hover,
body.design-two .page-refresh-btn:hover{background:var(--surface-2);color:var(--yellow);border-color:var(--line);transform:translateY(-1px)}
body.design-two .site-header .icon-btn svg,
body.design-two .page-refresh-btn svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
body.design-two .account-menu-trigger{border-radius:50%!important}
body.design-two .account-menu-popover{border-radius:18px!important;overflow:hidden!important}

/* Fixed desktop esports rail. */
.gh-desktop-rail{display:none}
@media(min-width:1101px){
  body.design-two:not(.admin-body){padding-left:var(--gh-rail)}
  body.design-two:not(.admin-body) .site-header{left:var(--gh-rail);width:calc(100% - var(--gh-rail))}
  body.design-two:not(.admin-body) .site-header .nav{display:none!important}
  body.design-two:not(.admin-body) .nav-toggle{display:none!important}
  .gh-desktop-rail{
    position:fixed;left:0;top:0;bottom:0;z-index:75;width:var(--gh-rail);display:flex;flex-direction:column;align-items:center;
    padding:15px 9px 14px;border-right:1px solid var(--line);background:color-mix(in srgb,var(--surface) 94%,var(--bg));
    box-shadow:14px 0 38px rgba(0,0,0,.12);
  }
  .gh-desktop-rail .gh-rail-mark{width:54px;height:48px;display:grid;place-items:center;margin-bottom:18px;border-radius:14px;background:var(--bg);border:1px solid var(--line)}
  .gh-desktop-rail .gh-rail-mark .brand-flag{transform:skew(-7deg) scale(.72)}
  .gh-desktop-rail nav{display:flex;flex-direction:column;gap:5px;width:100%}
  .gh-desktop-rail a{position:relative;min-height:62px;border-radius:14px;color:var(--muted);display:grid;place-items:center;align-content:center;gap:4px;font-size:7px;font-weight:950;letter-spacing:.05em;text-transform:uppercase;transition:.18s}
  .gh-desktop-rail a svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
  .gh-desktop-rail a:hover{background:var(--surface-2);color:var(--text);transform:translateX(2px)}
  .gh-desktop-rail a.active{background:color-mix(in srgb,var(--yellow) 12%,var(--surface-2));color:var(--yellow)}
  .gh-desktop-rail a.active:before{content:"";position:absolute;left:-9px;top:14px;bottom:14px;width:3px;border-radius:0 4px 4px 0;background:var(--yellow)}
  .gh-desktop-rail .gh-rail-bottom{margin-top:auto;width:100%;display:grid;gap:5px}
}

/* ---------- Shared page structure ---------- */
body.design-two .portal-main,
body.design-two .public-page,
body.design-two .help-page,
body.design-two .account-page{position:relative}
body.design-two .portal-hero{
  min-height:360px;padding:clamp(64px,7vw,112px) clamp(22px,6.2vw,92px) clamp(42px,5vw,74px);
  display:flex;flex-direction:column;justify-content:flex-end;position:relative;overflow:hidden;
  background:
    linear-gradient(120deg,color-mix(in srgb,var(--surface) 72%,transparent),color-mix(in srgb,var(--bg) 94%,transparent) 56%),
    radial-gradient(circle at 82% 38%,color-mix(in srgb,var(--yellow) 15%,transparent),transparent 31%),var(--bg);
}
body.design-two .portal-hero:after{content:"GH";position:absolute;right:2vw;bottom:-.18em;font-family:Impact,"Arial Black",sans-serif;font-size:clamp(180px,24vw,390px);line-height:.8;color:color-mix(in srgb,var(--text) 2.7%,transparent);pointer-events:none}
body.design-two .portal-hero>*{position:relative;z-index:1}
body.design-two .portal-hero h1{max-width:1050px;margin:10px 0 16px;font-size:clamp(64px,8.5vw,132px);line-height:.84;letter-spacing:-.02em}
body.design-two .portal-hero>p:last-child{max-width:720px;margin:0;font-size:13px;line-height:1.7}
body.design-two .portal-section{padding:42px clamp(18px,5vw,72px) 88px;max-width:var(--gh-max);margin-inline:auto;width:100%}
body.design-two .section{max-width:var(--gh-max);margin-inline:auto}
body.design-two .panel,
body.design-two .calendar-shell,
body.design-two .event-tile,
body.design-two .news-tile,
body.design-two .market-tile,
body.design-two .community-link-card,
body.design-two .history-card,
body.design-two .public-player-card,
body.design-two .directory-entity-card,
body.design-two .directory-member-card{
  border-radius:var(--gh-radius);overflow:hidden;border-color:color-mix(in srgb,var(--line) 92%,transparent);
}
body.design-two .mini-btn,
body.design-two .btn{border-radius:999px}
body.design-two .filter-pills{padding:4px;border:1px solid var(--line);border-radius:999px;background:var(--surface);width:max-content;max-width:100%;overflow:auto;flex-wrap:nowrap;scrollbar-width:none}
body.design-two .filter-pills::-webkit-scrollbar{display:none}
body.design-two .filter-pills .mini-btn{white-space:nowrap;border-color:transparent;background:transparent}
body.design-two .filter-pills .mini-btn.primary{background:var(--yellow);color:#111}

/* ---------- Home: compact tabbed command center ---------- */
body.design-two[data-page=home] main{padding-bottom:28px}
body.design-two .gh-home-tabs{position:sticky;top:calc(var(--gh-header) + 8px);z-index:28;display:flex;gap:6px;width:max-content;max-width:calc(100% - 28px);margin:28px auto 0;padding:5px;border:1px solid var(--line);border-radius:999px;background:color-mix(in srgb,var(--surface) 92%,transparent);backdrop-filter:blur(16px);overflow:auto;scrollbar-width:none}
body.design-two .gh-home-tabs::-webkit-scrollbar{display:none}
body.design-two .gh-home-tabs button{min-height:38px;padding:0 16px;border:0;border-radius:999px;background:transparent;color:var(--muted);font-size:9px;font-weight:950;letter-spacing:.08em;text-transform:uppercase;white-space:nowrap}
body.design-two .gh-home-tabs button.active{background:var(--yellow);color:#111}
body.design-two .gh-home-pane[hidden]{display:none!important}
body.design-two .gh-home-pane{animation:ghPaneIn .22s ease both}
@keyframes ghPaneIn{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}
body.design-two .reference-home-hero{min-height:calc(100vh - var(--gh-header));max-width:none;margin:0;padding-left:clamp(24px,7vw,112px);padding-right:clamp(24px,7vw,112px)}
body.design-two .command-strip{max-width:calc(var(--gh-max) - 40px);margin:0 auto;border-radius:20px;overflow:hidden}
body.design-two .live-hub-section,
body.design-two .home-updates,
body.design-two .home-rankings,
body.design-two .reference-about,
body.design-two .reference-paths{padding-top:54px;padding-bottom:54px}
body.design-two .reference-paths{display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}
body.design-two .reference-paths::-webkit-scrollbar{display:none}
body.design-two .reference-paths>a{min-width:min(360px,82vw);scroll-snap-align:start;border-radius:18px}

/* Home next-event collapse control for phones. */
.gh-event-collapse{display:none}

/* ---------- Events ---------- */
body.design-two[data-page=events] .portal-section>.toolbar{position:sticky;top:calc(var(--gh-header) + 12px);z-index:24;margin-bottom:22px;padding:10px 12px;border:1px solid var(--line);border-radius:18px;background:color-mix(in srgb,var(--bg) 90%,transparent);backdrop-filter:blur(16px)}
body.design-two .gh-view-switch{display:flex;gap:4px;padding:4px;border:1px solid var(--line);border-radius:999px;background:var(--surface)}
body.design-two .gh-view-switch button{min-height:34px;padding:0 12px;border:0;border-radius:999px;background:transparent;color:var(--muted);font-size:8px;font-weight:950;text-transform:uppercase;letter-spacing:.06em}
body.design-two .gh-view-switch button.active{background:var(--yellow);color:#111}
body.design-two[data-page=events] .calendar-shell{margin:22px 0 38px;box-shadow:0 24px 80px rgba(0,0,0,.14)}
body.design-two[data-page=events] .calendar-head{background:linear-gradient(90deg,color-mix(in srgb,var(--yellow) 8%,var(--surface)),var(--surface))}
body.design-two[data-page=events] #events-page-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
body.design-two[data-page=events] .event-tile{min-height:330px;padding:22px;box-shadow:0 16px 42px rgba(0,0,0,.1)}
body.design-two[data-page=events] .event-tile h3{font-size:30px;max-width:520px}
body.design-two[data-page=events].gh-events-list .calendar-shell{display:none}
body.design-two[data-page=events].gh-events-calendar #events-page-grid,
body.design-two[data-page=events].gh-events-calendar .compact-head{display:none}

/* ---------- Rankings ---------- */
body.design-two[data-page=rankings] .ranking-controls{position:sticky;top:calc(var(--gh-header) + 12px);z-index:24;margin-bottom:24px;padding:10px;border:1px solid var(--line);border-radius:18px;background:color-mix(in srgb,var(--bg) 90%,transparent);backdrop-filter:blur(16px)}
body.design-two[data-page=rankings] .ranking-podium{margin-bottom:22px;gap:12px}
body.design-two[data-page=rankings] .podium-card{border-radius:20px;min-height:285px;box-shadow:0 18px 55px rgba(0,0,0,.12)}
body.design-two[data-page=rankings] .leaderboard-panel{padding:0}
body.design-two[data-page=rankings] .leaderboard-panel .panel-head{padding:20px 22px;margin:0;border-bottom:1px solid var(--line)}
body.design-two[data-page=rankings] .table-wrap{border:0}
body.design-two[data-page=rankings] .rank-table td{padding-block:13px}
body.design-two .gh-pager{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;border-top:1px solid var(--line);background:var(--surface)}
body.design-two .gh-pager span{font-size:9px;color:var(--muted);font-weight:900;text-transform:uppercase;letter-spacing:.08em}
body.design-two .gh-pager div{display:flex;gap:6px}
body.design-two .gh-pager button{min-height:36px;padding:0 13px;border:1px solid var(--line);border-radius:999px;background:var(--surface-2);color:var(--text);font-size:8px;font-weight:950;text-transform:uppercase}
body.design-two .gh-pager button:disabled{opacity:.35}
body.design-two[data-page=rankings] .hall-panel{margin-top:18px}
body.design-two[data-page=rankings] .history-grid{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}
body.design-two[data-page=rankings] .history-grid::-webkit-scrollbar{display:none}
body.design-two[data-page=rankings] .history-card{min-width:min(330px,80vw);scroll-snap-align:start}

/* ---------- News ---------- */
body.design-two[data-page=news] #news-page-content{padding-top:34px}
body.design-two[data-page=news] .news-page-grid{display:grid;grid-template-columns:1.35fr .85fr .85fr;gap:14px}
body.design-two[data-page=news] .news-tile{min-height:330px;display:flex;flex-direction:column;background:var(--surface);box-shadow:0 18px 55px rgba(0,0,0,.1)}
body.design-two[data-page=news] .news-tile:first-child{grid-row:span 2;min-height:676px}
body.design-two[data-page=news] .news-tile:first-child img{height:360px}
body.design-two[data-page=news] .news-tile:not(:first-child) img{height:150px}
body.design-two[data-page=news] .news-tile>div{padding:20px;display:flex;flex-direction:column;flex:1}
body.design-two[data-page=news] .news-tile h3{font-size:clamp(20px,2vw,31px);margin:9px 0}
body.design-two[data-page=news] .news-tile p{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
body.design-two[data-page=news] .news-tile .content-open-cta{margin-top:auto;padding-top:16px}
body.design-two[data-page=news] .gh-news-pager{max-width:760px;margin:22px auto 0;border:1px solid var(--line);border-radius:999px;padding:6px 8px}
body.design-two[data-page=news] .article-detail{max-width:980px;margin-inline:auto;border-radius:24px;padding:clamp(24px,5vw,66px)}

/* ---------- Market / Community / Directory ---------- */
body.design-two[data-page=market] #market-page-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
body.design-two[data-page=market] .market-tile{box-shadow:0 16px 48px rgba(0,0,0,.1)}
body.design-two[data-page=community] .community-page-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
body.design-two[data-page=community] .community-link-card{min-height:205px}
body.design-two .directory-page-wrap{max-width:var(--gh-max);margin-inline:auto}

/* ---------- Public event/profile/team/detail pages ---------- */
body.design-two[data-public-page] .public-page{max-width:var(--gh-max);margin-inline:auto;padding:clamp(28px,5vw,72px) clamp(16px,4vw,58px) 90px}
body.design-two[data-public-page] .public-page>section{border-radius:24px}

/* ---------- Help: sideways guide instead of a long wall ---------- */
body.design-two[data-page=help] .help-hero{max-width:var(--gh-max);margin-inline:auto}
body.design-two[data-page=help] .help-step-grid{display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:8px;scrollbar-width:none}
body.design-two[data-page=help] .help-step-grid::-webkit-scrollbar{display:none}
body.design-two[data-page=help] .help-step-grid article{min-width:min(380px,82vw);scroll-snap-align:start;border-radius:18px}

/* ---------- Mobile ---------- */
@media(max-width:1100px){
  body.design-two .site-header{padding-inline:15px}
  body.design-two .site-header .brand{min-width:0;margin-right:auto}
  body.design-two .site-header .nav{margin-inline:0}
  body.design-two .portal-hero{min-height:315px}
}

@media(max-width:760px){
  :root{--gh-header:62px}
  body.design-two .site-header{height:var(--gh-header);padding:0 10px;border-bottom-color:color-mix(in srgb,var(--line) 70%,transparent)}
  body.design-two .site-header .nav-toggle{display:none!important}
  body.design-two .site-header .nav{display:none!important}
  body.design-two .site-header .brand b{font-size:14px}
  body.design-two .site-header .brand-flag{width:31px;height:28px}
  body.design-two .site-header .header-actions{gap:1px}
  body.design-two .site-header .icon-btn,
  body.design-two .page-refresh-btn{width:36px;height:36px;display:grid!important}
  body.design-two .site-header .icon-btn svg,
  body.design-two .page-refresh-btn svg{width:19px;height:19px}
  body.design-two .site-header .header-actions [data-auth-out],
  body.design-two .site-header .header-actions [data-auth-in],
  body.design-two .header-notification-link{display:none!important}

  body.design-two .mobile-app-dock{
    grid-template-columns:repeat(6,minmax(0,1fr))!important;
    height:calc(68px + env(safe-area-inset-bottom))!important;
    padding:6px 5px env(safe-area-inset-bottom)!important;
    gap:3px!important;
    background:color-mix(in srgb,var(--bg) 94%,transparent)!important;
    border-top-color:color-mix(in srgb,var(--line) 80%,transparent)!important;
    box-shadow:0 -12px 34px rgba(0,0,0,.28)!important;
  }
  body.design-two .mobile-app-dock>a{min-height:54px!important;border-radius:12px!important;font-size:6.7px!important;padding:5px 1px!important}
  body.design-two .mobile-app-dock>a.active{background:color-mix(in srgb,var(--yellow) 10%,var(--surface))!important;color:var(--yellow)!important}
  body.design-two{padding-bottom:calc(78px + env(safe-area-inset-bottom))!important}

  body.design-two .portal-hero{min-height:245px;padding:48px 14px 30px;border-bottom:1px solid var(--line)}
  body.design-two .portal-hero:after{font-size:44vw;right:-2vw}
  body.design-two .portal-hero h1{font-size:clamp(50px,17vw,74px);margin:7px 0 12px}
  body.design-two .portal-hero>p:last-child{font-size:11.5px;line-height:1.55;max-width:90%}
  body.design-two .portal-section{padding:18px 12px 56px}
  body.design-two .filter-pills{width:100%;border-radius:14px;padding:3px}
  body.design-two .filter-pills .mini-btn{flex:0 0 auto}

  /* Keep the three utility controls visible on every phone page. */
  body.design-two .premium-header #global-search,
  body.design-two .premium-header [data-page-refresh],
  body.design-two .premium-header #theme-toggle{display:grid!important}
  body.design-two .premium-header #theme-toggle[hidden]{display:grid!important}

  body.design-two[data-page=home] .reference-home-hero{min-height:auto;padding:44px 14px 18px;grid-template-columns:1fr!important;gap:18px}
  body.design-two[data-page=home] .reference-home-copy h1{font-size:clamp(55px,18vw,78px)!important}
  body.design-two[data-page=home] .command-strip{margin:0 10px;border-radius:16px;display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}
  body.design-two[data-page=home] .command-strip::-webkit-scrollbar{display:none}
  body.design-two[data-page=home] .command-strip>a{min-width:78%;min-height:102px;scroll-snap-align:start;border-right:1px solid var(--line)!important}
  body.design-two .gh-home-tabs{top:calc(var(--gh-header) + 6px);margin-top:16px;max-width:calc(100% - 20px)}
  body.design-two .gh-home-tabs button{min-height:34px;padding-inline:13px;font-size:7.5px}
  body.design-two .live-hub-section,
  body.design-two .home-updates,
  body.design-two .home-rankings,
  body.design-two .reference-about,
  body.design-two .reference-paths{padding:34px 12px}
  body.design-two .section-head{margin-bottom:18px}
  body.design-two .section-head h2{font-size:clamp(38px,13vw,56px)}

  .gh-event-collapse{display:flex;width:100%;justify-content:center;align-items:center;gap:7px;min-height:38px;margin-top:10px;border:1px solid var(--line);border-radius:999px;background:var(--surface-2);color:var(--text);font-size:8px;font-weight:950;text-transform:uppercase;letter-spacing:.08em}
  #home-next-event.gh-collapsed>*:not(.gh-event-collapse):not(.next-event-kicker):not(.eyebrow):not(h2){display:none!important}
  #home-next-event.gh-collapsed{min-height:0!important;padding-bottom:18px!important}

  body.design-two[data-page=events] .portal-section>.toolbar,
  body.design-two[data-page=rankings] .ranking-controls{position:static;margin-bottom:12px;padding:8px;border-radius:14px}
  body.design-two[data-page=events] .toolbar{align-items:stretch}
  body.design-two[data-page=events] .event-filter-groups{width:100%;display:grid;gap:7px}
  body.design-two[data-page=events] .gh-view-switch{width:100%;border-radius:14px}
  body.design-two[data-page=events] .gh-view-switch button{flex:1}
  body.design-two[data-page=events] #events-page-grid{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:5px;scrollbar-width:none}
  body.design-two[data-page=events] #events-page-grid::-webkit-scrollbar{display:none}
  body.design-two[data-page=events] .event-tile{min-width:86vw;max-width:86vw;min-height:335px;scroll-snap-align:center;padding:20px}
  body.design-two[data-page=events] .event-tile h3{font-size:25px}
  body.design-two[data-page=events] .calendar-shell{margin:12px 0 24px;border-radius:16px}
  body.design-two[data-page=events] .calendar-grid{display:none!important}
  body.design-two[data-page=events] .calendar-mobile-agenda{display:block!important}

  body.design-two[data-page=rankings] .ranking-controls{display:grid;gap:7px}
  body.design-two[data-page=rankings] .ranking-podium{display:flex!important;gap:9px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}
  body.design-two[data-page=rankings] .ranking-podium::-webkit-scrollbar{display:none}
  body.design-two[data-page=rankings] .podium-card{min-width:72vw;scroll-snap-align:center;min-height:245px}
  body.design-two[data-page=rankings] .leaderboard-panel{border-radius:16px}
  body.design-two[data-page=rankings] .table-wrap{overflow:visible}
  body.design-two[data-page=rankings] .rank-table thead{display:none}
  body.design-two[data-page=rankings] .rank-table,
  body.design-two[data-page=rankings] .rank-table tbody,
  body.design-two[data-page=rankings] .rank-table tr,
  body.design-two[data-page=rankings] .rank-table td{display:block;width:100%}
  body.design-two[data-page=rankings] .rank-table tr{position:relative;padding:11px 12px 11px 52px;border-bottom:1px solid var(--line)}
  body.design-two[data-page=rankings] .rank-table td{border:0!important;padding:2px 0!important;white-space:normal!important}
  body.design-two[data-page=rankings] .rank-table td:first-child{position:absolute;left:12px;top:15px;width:32px!important}
  body.design-two[data-page=rankings] .rank-table td:nth-child(3){display:none}
  body.design-two[data-page=rankings] .rank-table td:last-child{font-size:10px;color:var(--yellow)}
  body.design-two .gh-pager{padding:11px 12px;flex-wrap:wrap}
  body.design-two .gh-pager span{width:100%;text-align:center}
  body.design-two .gh-pager div{width:100%}
  body.design-two .gh-pager button{flex:1}

  body.design-two[data-page=news] #news-page-content{padding:18px 12px 54px}
  body.design-two[data-page=news] .news-page-grid{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}
  body.design-two[data-page=news] .news-page-grid::-webkit-scrollbar{display:none}
  body.design-two[data-page=news] .news-tile,
  body.design-two[data-page=news] .news-tile:first-child{min-width:84vw;max-width:84vw;min-height:440px;grid-row:auto;scroll-snap-align:center}
  body.design-two[data-page=news] .news-tile:first-child img,
  body.design-two[data-page=news] .news-tile:not(:first-child) img{height:210px}

  body.design-two[data-page=market] #market-page-grid,
  body.design-two[data-page=community] .community-page-grid{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}
  body.design-two[data-page=market] #market-page-grid::-webkit-scrollbar,
  body.design-two[data-page=community] .community-page-grid::-webkit-scrollbar{display:none}
  body.design-two[data-page=market] .market-tile,
  body.design-two[data-page=community] .community-link-card{min-width:84vw;scroll-snap-align:center}

  body.design-two[data-page=help] .help-page{padding-bottom:24px}
  body.design-two[data-page=help] .help-hero{padding-inline:14px}
  body.design-two[data-page=help] .help-steps{padding-inline:12px}

  body.design-two[data-public-page] .public-page{padding:18px 12px 58px}
}

@media(max-width:390px){
  body.design-two .premium-header .brand>span:last-child{display:flex!important}
  body.design-two .premium-header #global-search{display:grid!important}
  body.design-two .premium-header .brand small{display:none}
  body.design-two .site-header .icon-btn,
  body.design-two .page-refresh-btn{width:34px;height:34px}
  body.design-two .account-menu-trigger{width:34px!important;height:34px!important}
  body.design-two .mobile-app-dock>a{font-size:6px!important}
}

@media(prefers-reduced-motion:reduce){
  body.design-two *,body.design-two *:before,body.design-two *:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}

/* ---------- Directory ---------- */
body.design-two[data-public-page=directory] .directory-shell{padding-top:24px}
body.design-two[data-public-page=directory] .directory-toolbar{top:calc(var(--gh-header) + 12px);margin:0 0 24px;border-radius:18px;background:color-mix(in srgb,var(--bg) 90%,transparent);backdrop-filter:blur(16px)}
body.design-two[data-public-page=directory] .directory-card-grid{gap:12px}
body.design-two[data-public-page=directory] .directory-entity-card,
body.design-two[data-public-page=directory] .directory-member-card{box-shadow:0 16px 45px rgba(0,0,0,.1)}

/* ---------- Account area ---------- */
body.design-two .account-page{max-width:var(--gh-max);margin:0 auto;padding:38px clamp(16px,4.5vw,64px) 88px}
body.design-two .account-page-heading{padding:0 0 22px;border-bottom:1px solid var(--line);margin-bottom:20px}
body.design-two .account-page .stats-grid{gap:10px}
body.design-two .account-page .stat{border-radius:16px;background:linear-gradient(145deg,var(--surface),color-mix(in srgb,var(--surface-2) 88%,var(--yellow) 3%));box-shadow:0 14px 40px rgba(0,0,0,.08)}
body.design-two .account-page .panel{box-shadow:0 16px 50px rgba(0,0,0,.08)}
body.design-two .account-page .app-view.active{animation:ghPaneIn .22s ease both}

/* Help no longer consumes a full screen before the guide starts. */
body.design-two[data-page=help] .help-hero{min-height:560px;padding-top:70px;padding-bottom:58px}

@media(max-width:760px){
  body.design-two[data-public-page=directory] .directory-toolbar{position:static;margin-bottom:15px;padding:10px}
  body.design-two[data-public-page=directory] .directory-card-grid,
  body.design-two[data-public-page=directory] .member-directory-grid{display:flex;grid-template-columns:none;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:6px;scrollbar-width:none}
  body.design-two[data-public-page=directory] .directory-card-grid::-webkit-scrollbar,
  body.design-two[data-public-page=directory] .member-directory-grid::-webkit-scrollbar{display:none}
  body.design-two[data-public-page=directory] .directory-entity-card{min-width:82vw;max-width:82vw;scroll-snap-align:center}
  body.design-two[data-public-page=directory] .directory-member-card{min-width:86vw;max-width:86vw;scroll-snap-align:center}
  body.design-two .account-page{padding:20px 11px 54px}
  body.design-two .account-page-heading h1{font-size:clamp(40px,14vw,58px)}
  body.design-two .account-page .stats-grid{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}
  body.design-two .account-page .stats-grid::-webkit-scrollbar{display:none}
  body.design-two .account-page .stat{min-width:42vw;scroll-snap-align:start}
  body.design-two[data-page=help] .help-hero{min-height:0;padding-top:48px;padding-bottom:30px}
}

/* ==========================================================================\n   DESIGN 03 — PREMIUM CLEANUP / BUG FIX PASS — 27 OCT 2026\n   Keeps the existing Game Hub identity and backend; fixes shell behaviour and\n   makes the public/account surfaces feel cleaner and more deliberate.\n   ========================================================================== */

/* Header: the desktop rail already consumes its own width, so do not subtract
   the rail a second time from the sticky header. */
body.design-two .site-header{box-sizing:border-box}
@media(min-width:1101px){
  body.design-two:not(.admin-body) .site-header{left:0!important;right:0!important;width:100%!important;max-width:none!important}
}

/* Use the established Game Hub G mark instead of repeating the Uganda flag as
   a navigation emblem. The text branding remains untouched. */
body.design-two .site-header .brand-flag{
  width:38px!important;height:38px!important;flex:0 0 38px!important;border-radius:10px!important;
  background:#090a0b url("favicon.jpg") center/cover no-repeat!important;
  box-shadow:0 0 0 1px var(--line),0 8px 22px rgba(0,0,0,.18);overflow:hidden;
}
body.design-two .site-header .brand-flag>i{display:none!important}
.gh-desktop-rail .gh-rail-mark{overflow:hidden!important;padding:0!important}
.gh-desktop-rail .gh-rail-logo{width:100%;height:100%;object-fit:cover;display:block}

/* Menu sheet: it was previously forced to overflow:hidden, which prevented
   long menus from scrolling. This intentionally restores touch/mouse scroll. */
body.design-two .account-menu-popover{
  overflow-x:hidden!important;overflow-y:auto!important;
  max-height:calc(100dvh - var(--gh-header) - 22px)!important;
  scrollbar-width:thin!important;scrollbar-color:color-mix(in srgb,var(--yellow) 34%,var(--line)) transparent!important;
  overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
  border:1px solid color-mix(in srgb,var(--yellow) 20%,var(--line))!important;
  background:linear-gradient(160deg,color-mix(in srgb,var(--surface) 96%,transparent),color-mix(in srgb,var(--surface-2) 94%,transparent))!important;
  box-shadow:0 32px 100px rgba(0,0,0,.42)!important;
}
body.design-two .account-menu-popover::-webkit-scrollbar{width:7px!important;display:block!important}
body.design-two .account-menu-popover::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--yellow) 32%,var(--line));border-radius:999px}
body.design-two .account-menu-popover nav{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;padding:8px 0!important}
body.design-two .account-menu-popover nav a{min-height:62px!important;padding:11px 12px!important;border:1px solid color-mix(in srgb,var(--line) 82%,transparent)!important;border-left:1px solid color-mix(in srgb,var(--line) 82%,transparent)!important;border-radius:13px!important;background:color-mix(in srgb,var(--surface-2) 64%,transparent)!important}
body.design-two .account-menu-popover nav a:hover{transform:translateY(-1px)!important;border-color:color-mix(in srgb,var(--yellow) 44%,var(--line))!important;background:color-mix(in srgb,var(--yellow) 6%,var(--surface-2))!important}
body.design-two .account-menu-divider{grid-column:1/-1!important}

/* Respect the administrator's public-light-mode switch. No CSS may resurrect
   a theme control that JavaScript has hidden. */
body.design-two #theme-toggle[hidden]{display:none!important}

/* Cleaner search: floating command palette instead of a square dialog. */
body.design-two .search-modal{background:rgba(2,3,4,.68);-webkit-backdrop-filter:blur(18px) saturate(1.15);backdrop-filter:blur(18px) saturate(1.15)}
body.design-two .search-card{
  width:min(720px,100%);border-radius:26px!important;overflow:hidden!important;
  border:1px solid color-mix(in srgb,var(--yellow) 18%,var(--line))!important;
  background:linear-gradient(150deg,color-mix(in srgb,var(--surface) 97%,transparent),color-mix(in srgb,var(--surface-2) 93%,transparent))!important;
  box-shadow:0 38px 120px rgba(0,0,0,.52)!important;
}
body.design-two .search-head{padding:8px;border-bottom:1px solid color-mix(in srgb,var(--line) 86%,transparent);gap:6px}
body.design-two .search-head input{min-height:58px;padding:0 18px!important;border-radius:18px;background:color-mix(in srgb,var(--bg) 68%,transparent)!important}
body.design-two .search-head .modal-close{position:static!important;width:48px;height:48px;margin:5px!important;border-radius:50%!important;background:var(--surface-2)!important}
body.design-two .search-results{padding:9px 10px 12px!important}
body.design-two .search-results>a{margin:5px 0;padding:10px 12px!important;border:1px solid transparent!important;border-bottom:1px solid transparent!important;border-radius:15px;background:color-mix(in srgb,var(--surface-2) 58%,transparent)}
body.design-two .search-results>a:hover{border-color:color-mix(in srgb,var(--yellow) 36%,var(--line))!important;background:color-mix(in srgb,var(--yellow) 6%,var(--surface-2))!important;transform:translateY(-1px)}
body.design-two .search-avatar{width:46px;height:46px;box-shadow:0 0 0 1px color-mix(in srgb,var(--yellow) 24%,var(--line))}

/* Events: restore the calendar permanently. The list/calendar switch in Design
   02 hid a feature the site already had; both schedule and event cards now stay
   visible just like the original flow. */
body.design-two[data-page=events] .calendar-shell{display:block!important}
body.design-two[data-page=events] #events-page-grid{display:grid!important}
body.design-two[data-page=events] .compact-head{display:flex!important}
body.design-two[data-page=events] .gh-view-switch{display:none!important}

/* Home Discover: remove the heavy backing slab and make the cards feel like
   separate translucent surfaces. */
body.design-two .reference-paths{background:transparent!important;padding:0!important;border:0!important;gap:14px!important}
body.design-two .reference-paths>a{
  border:1px solid color-mix(in srgb,var(--line) 90%,transparent)!important;
  background:linear-gradient(145deg,color-mix(in srgb,var(--surface) 88%,transparent),color-mix(in srgb,var(--surface-2) 70%,transparent))!important;
  -webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);
  box-shadow:0 18px 54px rgba(0,0,0,.12);transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease;
}
body.design-two .reference-paths>a:hover{transform:translateY(-4px);border-color:color-mix(in srgb,var(--yellow) 42%,var(--line))!important;box-shadow:0 26px 68px rgba(0,0,0,.18)}

/* Top-player presentation: restrained premium glass instead of oversized glow. */
body.design-two .home-rankings .podium-card{
  animation:none!important;border-radius:20px!important;
  background:linear-gradient(150deg,color-mix(in srgb,var(--surface) 95%,transparent),color-mix(in srgb,var(--surface-2) 86%,transparent))!important;
  box-shadow:0 18px 52px rgba(0,0,0,.12)!important;overflow:hidden;
}
body.design-two .home-rankings .podium-card::after{animation:none!important;opacity:.28!important;filter:none!important}
body.design-two .home-rankings .podium-card:is(:hover,:focus-visible){transform:translateY(-4px);box-shadow:0 28px 72px rgba(0,0,0,.18)!important}

/* Profile/account cards: reduce dead space, prevent long UID explosions, and
   give the page the tighter premium rhythm seen in the clean reference site. */
body.design-two .account-page{max-width:1540px}
body.design-two .account-page .player-profile-grid{grid-template-columns:minmax(0,1.45fr) minmax(280px,.92fr) minmax(280px,.92fr);gap:14px}
body.design-two .account-page .player-about-card,
body.design-two .account-page .player-id-card,
body.design-two .account-page .player-account-card{min-height:0!important;position:relative;background:linear-gradient(150deg,var(--surface),color-mix(in srgb,var(--surface-2) 86%,transparent));border-color:color-mix(in srgb,var(--line) 92%,transparent)}
body.design-two .account-page .player-about-card::before,
body.design-two .account-page .player-id-card::before,
body.design-two .account-page .player-account-card::before{content:"";position:absolute;left:18px;right:18px;top:-1px;height:2px;border-radius:999px;background:linear-gradient(90deg,var(--yellow),transparent 78%);opacity:.72}
body.design-two .account-page .player-id-number{font-size:clamp(18px,1.65vw,28px)!important;line-height:1.12;letter-spacing:.04em;word-break:break-all;margin:10px 0 14px}
body.design-two .account-page .profile-account-lines{border-radius:14px;overflow:hidden}
body.design-two .account-page .profile-account-lines>div{padding:13px 14px}
body.design-two .account-page .profile-owner-facts>div{border-radius:12px}
body.design-two .player-profile-editor{max-width:none!important}
body.design-two .profile-settings-form{gap:13px}
body.design-two .profile-settings-form fieldset{padding:22px;border-radius:20px;background:linear-gradient(145deg,color-mix(in srgb,var(--surface) 96%,transparent),color-mix(in srgb,var(--surface-2) 86%,transparent));box-shadow:0 14px 44px rgba(0,0,0,.07)}
body.design-two .profile-settings-form label{margin-bottom:9px}
body.design-two .profile-settings-form input,
body.design-two .profile-settings-form select,
body.design-two .profile-settings-form textarea{background:color-mix(in srgb,var(--bg) 78%,var(--surface))}
body.design-two .profile-media-editor.single{grid-template-columns:1fr!important;max-width:none!important}
body.design-two .profile-media-editor.single>div{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,.82fr);column-gap:24px;align-items:center;border-radius:18px;padding:20px;background:linear-gradient(145deg,var(--surface-2),color-mix(in srgb,var(--surface) 90%,transparent))}
body.design-two .profile-media-editor.single h3,
body.design-two .profile-media-editor.single p{grid-column:1}
body.design-two .profile-media-editor.single input,
body.design-two .profile-media-editor.single button{grid-column:2}
body.design-two .profile-media-editor.single input{grid-row:1;margin:0 0 8px}
body.design-two .profile-media-editor.single button{grid-row:2;margin:0}

/* Directory: smaller stacked player cards on desktop, true 2-up compact cards
   on phones instead of one giant horizontal card per screen. */
body.design-two[data-public-page=directory] .member-directory-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
body.design-two[data-public-page=directory] .directory-member-card{grid-template-columns:54px minmax(0,1fr);gap:11px;min-height:86px;padding:12px 13px;border-radius:17px;background:linear-gradient(145deg,var(--surface),color-mix(in srgb,var(--surface-2) 86%,transparent))}
body.design-two[data-public-page=directory] .directory-member-card>img,
body.design-two[data-public-page=directory] .directory-member-card>.directory-card-avatar{width:54px;height:54px}
body.design-two[data-public-page=directory] .directory-member-card>b{grid-column:2;font-size:7px;justify-self:start}
body.design-two[data-public-page=directory] .directory-member-copy strong{font-size:13px}
body.design-two[data-public-page=directory] .directory-member-copy small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.design-two[data-public-page=directory] .directory-member-copy em{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden}

/* Profile pill and utility controls should read like one intentional header. */
body.design-two .profile-pill{border-radius:999px!important;padding:4px 12px 4px 5px!important;background:color-mix(in srgb,var(--surface-2) 78%,transparent)!important;border:1px solid var(--line)!important;gap:8px!important}
body.design-two .profile-pill-avatar{border-radius:50%!important;overflow:hidden}

@media(max-width:760px){
  html,body{height:auto!important;min-height:100%!important}
  body.design-two:not(.locked){overflow-x:hidden!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch}
  body.design-two main,body.design-two .portal-main,body.design-two .public-page,body.design-two .account-page{max-height:none!important;overflow:visible!important}

  body.design-two .site-header .brand-flag{width:34px!important;height:34px!important;flex-basis:34px!important;border-radius:9px!important}
  body.design-two .premium-header .brand b{font-size:13px!important;white-space:nowrap}
  body.design-two .premium-header .brand small{font-size:7px}

  body.design-two .account-menu-popover{top:calc(var(--gh-header) + 6px)!important;bottom:calc(70px + env(safe-area-inset-bottom))!important;max-height:none!important;padding-bottom:12px!important}
  body.design-two .account-menu-popover nav{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.design-two .account-menu-popover nav a{min-height:58px!important;padding:9px 10px!important}

  body.design-two .search-modal{padding:10px!important;place-items:start center!important}
  body.design-two .search-card{margin-top:6px;border-radius:22px!important;max-height:calc(100dvh - 20px)!important}
  body.design-two .search-head input{min-height:54px!important;padding-inline:14px!important}

  /* Restore the actual month grid on phones; the compact agenda stays below it. */
  body.design-two[data-page=events] .calendar-grid{display:grid!important}
  body.design-two[data-page=events] .calendar-mobile-agenda{display:grid!important}
  body.design-two[data-page=events] #events-page-grid{display:flex!important}

  body.design-two .reference-paths{padding-inline:0!important;background:transparent!important}
  body.design-two .reference-paths>a{background:linear-gradient(145deg,color-mix(in srgb,var(--surface) 80%,transparent),color-mix(in srgb,var(--surface-2) 68%,transparent))!important}

  body.design-two .account-page .player-profile-grid{grid-template-columns:1fr!important}
  body.design-two .account-page .player-id-number{font-size:clamp(20px,7vw,28px)!important;word-break:break-all}
  body.design-two .profile-settings-form fieldset{padding:16px 13px;border-radius:17px}
  body.design-two .profile-media-editor.single>div{grid-template-columns:1fr!important;gap:8px;padding:16px}
  body.design-two .profile-media-editor.single h3,
  body.design-two .profile-media-editor.single p,
  body.design-two .profile-media-editor.single input,
  body.design-two .profile-media-editor.single button{grid-column:1!important;grid-row:auto!important}

  body.design-two[data-public-page=directory] .member-directory-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;overflow:visible!important;padding-bottom:0!important}
  body.design-two[data-public-page=directory] #squad-directory{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;overflow:visible!important;padding-bottom:0!important}
  body.design-two[data-public-page=directory] .directory-member-card{min-width:0!important;max-width:none!important;display:grid!important;grid-template-columns:42px minmax(0,1fr)!important;gap:8px!important;min-height:92px!important;padding:10px!important;scroll-snap-align:none!important}
  body.design-two[data-public-page=directory] .directory-member-card>img,
  body.design-two[data-public-page=directory] .directory-member-card>.directory-card-avatar{width:42px!important;height:42px!important}
  body.design-two[data-public-page=directory] .directory-member-card>b{display:none!important}
  body.design-two[data-public-page=directory] .directory-member-copy{gap:3px}
  body.design-two[data-public-page=directory] .directory-member-copy strong{font-size:11px;white-space:nowrap}
  body.design-two[data-public-page=directory] .directory-member-copy small{font-size:7px}
  body.design-two[data-public-page=directory] .directory-member-copy em{font-size:6px;line-height:1.3}
  body.design-two[data-public-page=directory] .directory-entity-card{min-width:0!important;max-width:none!important;min-height:190px!important;padding:14px!important;scroll-snap-align:none!important}
  body.design-two[data-public-page=directory] .directory-card-avatar{width:52px;height:52px}
}

@media(max-width:390px){
  body.design-two .premium-header .brand>span:last-child{display:flex!important}
  body.design-two .premium-header .brand small{display:none!important}
  body.design-two[data-public-page=directory] .directory-member-card{grid-template-columns:38px minmax(0,1fr)!important;padding:9px!important}
  body.design-two[data-public-page=directory] .directory-member-card>img,
  body.design-two[data-public-page=directory] .directory-member-card>.directory-card-avatar{width:38px!important;height:38px!important}
}

/* ========================================================================
   DESIGN 04 — navigation, media reliability, squad identity, notification
   threads and consistent phone layout. Uses original Game Hub brand palette.
   ======================================================================== */
/* Use the same official G icon wherever the old decorative flag appeared,
   including footer and mobile authentication sheet. */
body.design-two .brand-flag{
  display:inline-flex!important; flex:0 0 38px!important;
  width:38px!important;height:38px!important;
  border:1px solid color-mix(in srgb,var(--line) 85%,transparent)!important;
  border-radius:10px!important;
  transform:none!important;
  background:#0b0b0c url('./favicon.jpg') center/cover no-repeat!important;
  box-shadow:0 9px 24px rgba(0,0,0,.18)!important;
  overflow:hidden;
}
body.design-two .brand-flag>i{display:none!important}
body.design-two .modal-brand .brand-flag,body.design-two footer .brand-flag{flex-shrink:0!important}

/* The theme utility must be uniform on all screen sizes. It remains hidden
   when the administrator disables public light mode. */
body.design-two .premium-header #theme-toggle:not([hidden]){display:grid!important;flex:0 0 42px!important;visibility:visible!important}
body.design-two .premium-header #theme-toggle[hidden]{display:none!important}

/* Desktop sheet and phone sheet share one measured viewport-bound width.
   Sticky menu heading plus true scrolling, and no stretched right overflow. */
body.design-two .account-menu-popover{
  box-sizing:border-box!important;min-width:0!important;
  width:min(390px,calc(100vw - 24px))!important;
  max-width:calc(100vw - 24px)!important;
  padding:12px!important;overflow-y:auto!important;overflow-x:hidden!important;
  overscroll-behavior:contain!important;
  -webkit-overflow-scrolling:touch!important;
}
body.design-two .account-menu-popover nav{min-width:0!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
body.design-two .account-menu-popover nav>a{min-width:0!important;word-wrap:break-word!important}
body.design-two .account-menu-popover .account-menu-head{position:sticky;top:0;z-index:2;box-shadow:0 10px 20px rgba(0,0,0,.16)}
@media(min-width:761px){
  body.design-two .account-menu-popover{right:0!important;left:auto!important;max-height:min(700px,calc(100dvh - 95px))!important}
}
@media(max-width:760px){
  body.design-two .account-menu-popover{
    position:fixed!important;inset:auto!important;
    top:calc(var(--gh-header) + 6px)!important;
    right:max(10px,env(safe-area-inset-right))!important;
    left:auto!important;
    bottom:auto!important;
    width:min(364px,calc(100vw - 20px))!important;
    max-width:calc(100vw - 20px)!important;
    max-height:calc(100dvh - var(--gh-header) - 90px - env(safe-area-inset-bottom))!important;
    border-radius:20px!important;
  }
  body.design-two .account-menu-popover nav{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
  body.design-two .account-menu-popover nav>a{min-height:60px!important;padding:10px!important}
  body.design-two .account-menu-popover nav a b{font-size:11px;line-height:1.2}
  body.design-two .account-menu-popover nav a span{font-size:8px}
  body.design-two .premium-header #theme-toggle:not([hidden]){flex-basis:36px!important}
  body.design-two .brand-flag{width:32px!important;height:32px!important;flex-basis:32px!important}
}
@media(max-width:340px){
  body.design-two .account-menu-popover nav{grid-template-columns:1fr!important}
  body.design-two .account-menu-popover nav>a{min-height:49px!important}
}

/* Profile "About me": structured typographic cells without nested boxes. */
body.design-two .account-page .player-about-card{
  background:radial-gradient(circle at 8% 110%,color-mix(in srgb,var(--yellow) 5%,transparent),transparent 50%),
    color-mix(in srgb,var(--surface) 70%,transparent)!important;
  border-color:color-mix(in srgb,var(--line) 50%,transparent)!important;
  backdrop-filter:blur(12px);
}
body.design-two .account-page .player-about-card .profile-owner-facts{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:0!important;background:transparent!important;
  border-top:1px solid color-mix(in srgb,var(--line) 75%,transparent);
  overflow:visible!important;
}
body.design-two .account-page .player-about-card .profile-owner-facts>div{
  min-width:0;background:transparent!important;border:0!important;
  border-radius:0!important;box-shadow:none!important;
  padding:16px 13px!important;
  border-bottom:1px solid color-mix(in srgb,var(--line) 62%,transparent)!important;
}
body.design-two .account-page .player-about-card .profile-owner-facts>div:nth-child(odd){
  border-right:1px solid color-mix(in srgb,var(--line) 62%,transparent)!important;
}
body.design-two .account-page .player-about-card .profile-owner-facts b{font-size:clamp(12px,1vw,15px);line-height:1.25}
body.design-two .account-page .player-about-card .profile-owner-facts span{font-size:9px;letter-spacing:.1em}
body.design-two .account-page .player-about-card .detail-copy{max-width:68ch}

/* Squad browsing deserves actual compact identity cards rather than a stretched
   five-column management table. Per-team detail pages remain intact. */
body.design-two[data-public-page="team"] .public-page{width:min(1360px,calc(100% - 30px));margin:0 auto;padding-top:35px}
body.design-two .gh-squad-directory-hero{padding:40px clamp(18px,3.5vw,52px)!important;border-radius:22px;background:
  radial-gradient(circle at 90% 0%,color-mix(in srgb,var(--yellow) 7%,transparent),transparent 45%),var(--surface);
  border:1px solid var(--line);min-height:0!important}
body.design-two .gh-squad-directory-hero h1{font-size:clamp(45px,5vw,74px);line-height:.94;max-width:650px}
body.design-two .gh-squad-directory-hero>p{max-width:630px}
body.design-two .gh-squad-list-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;margin:28px 0 14px}
body.design-two .gh-squad-list-heading h2{font-size:clamp(23px,2.4vw,34px);line-height:1.1;margin:4px 0}
body.design-two .gh-squad-list-heading h2 span{font-family:inherit;font-size:13px;font-weight:800;color:var(--muted);vertical-align:middle}
body.design-two .gh-squad-search{display:flex;align-items:center;gap:10px;background:var(--surface);padding:0 14px;border:1px solid var(--line);border-radius:999px;min-height:46px;width:min(310px,100%)}
body.design-two .gh-squad-search input{background:transparent;border:0;outline:0;width:100%;min-width:0;color:var(--text);font-size:13px}
body.design-two .gh-squad-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding-bottom:60px}
body.design-two .gh-squad-card{display:flex;flex-direction:column;min-width:0;min-height:214px;gap:10px;padding:23px;border:1px solid var(--line);border-radius:20px;overflow:hidden;
  background:linear-gradient(140deg,color-mix(in srgb,var(--surface) 90%,transparent),color-mix(in srgb,var(--surface-2) 70%,transparent));
  transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease}
body.design-two .gh-squad-card[hidden]{display:none!important}
body.design-two .gh-squad-card:hover{transform:translateY(-4px);border-color:color-mix(in srgb,var(--yellow) 45%,var(--line));box-shadow:0 18px 56px rgba(0,0,0,.24)}
body.design-two .gh-squad-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
body.design-two .gh-squad-image{width:56px;height:56px;flex:0 0 56px;border-radius:14px;overflow:hidden;background:var(--surface-2);border:1px solid color-mix(in srgb,var(--yellow) 28%,var(--line));display:grid;place-items:center}
body.design-two .gh-squad-image img{width:100%;height:100%;object-fit:cover}
body.design-two .gh-squad-image b{font-family:Impact,'Arial Black',sans-serif;font-size:23px;color:var(--yellow)}
body.design-two .gh-squad-card>strong{font-size:17px;letter-spacing:-.02em;line-height:1.15;overflow-wrap:anywhere}
body.design-two .gh-squad-card>small{color:var(--muted);font-size:11px;line-height:1.55;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
body.design-two .gh-squad-card-link{display:flex;justify-content:space-between;align-items:center;margin-top:auto;color:var(--yellow);font-size:10px;font-weight:900;letter-spacing:.04em;text-transform:uppercase}
body.design-two .gh-squad-card-link b{font-size:22px}
/* Reliable profiles/logos: failed image downloads render an initials emblem. */
body.design-two .gh-image-fallback{object-fit:cover!important;background:var(--surface-2)!important}

/* Notification inbox: single tidy group per competition, with expandable rows
   and controls that use the existing authenticated notifications API. */
body.design-two .gh-notification-list{display:grid!important;gap:10px!important}
body.design-two .gh-notification-thread{border:1px solid color-mix(in srgb,var(--line) 96%,transparent);border-radius:16px;overflow:hidden;background:color-mix(in srgb,var(--surface-2) 45%,transparent)}
body.design-two .gh-notification-thread.has-unread{border-left:3px solid var(--yellow)}
body.design-two .gh-notification-details>summary{display:flex;align-items:center;gap:14px;cursor:pointer;list-style:none;padding:16px 18px}
body.design-two .gh-notification-details>summary::-webkit-details-marker{display:none}
body.design-two .gh-notification-thread-icon{display:grid;place-items:center;width:39px;height:39px;border-radius:12px;background:color-mix(in srgb,var(--yellow) 12%,var(--surface));color:var(--yellow);font-size:20px;flex-shrink:0}
body.design-two .gh-notification-thread-summary{display:grid;gap:4px;min-width:0;flex:1}
body.design-two .gh-notification-thread-summary strong{font-size:14px;overflow-wrap:anywhere}
body.design-two .gh-notification-thread-summary small{font-size:10px;color:var(--muted)}
body.design-two .gh-notification-thread-expand{font-size:10px;white-space:nowrap;color:var(--yellow);font-weight:800}
body.design-two .gh-notification-entries{display:grid;gap:1px;border-top:1px solid var(--line)}
body.design-two .gh-notification-entry{display:flex;align-items:center;justify-content:space-between;gap:12px;background:color-mix(in srgb,var(--surface) 64%,transparent);padding:16px 18px}
body.design-two .gh-notification-entry.is-read{opacity:.7}
body.design-two .gh-notification-entry strong{font-size:12px}
body.design-two .gh-notification-entry p{font-size:12px;line-height:1.6;margin:5px 0 8px;white-space:pre-wrap;overflow-wrap:anywhere}
body.design-two .gh-notification-entry small{font-size:10px;color:var(--muted)}
body.design-two .gh-notification-entry-actions{display:flex;flex-wrap:wrap;gap:7px;flex-shrink:0}
body.design-two .gh-notification-thread-controls{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px;padding:10px 15px;border-top:1px solid var(--line)}
@media(max-width:970px){body.design-two .gh-squad-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){
  body.design-two[data-public-page="team"] .public-page{width:calc(100% - 22px);padding-top:20px}
  body.design-two .gh-squad-directory-hero{padding:27px 19px!important}
  body.design-two .gh-squad-list-heading{align-items:stretch;flex-direction:column}
  body.design-two .gh-squad-search{width:100%}
  body.design-two .gh-squad-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding-bottom:90px}
  body.design-two .gh-squad-card{padding:13px;min-height:200px;gap:7px;border-radius:15px}
  body.design-two .gh-squad-image{width:44px;height:44px;flex-basis:44px;border-radius:11px}
  body.design-two .gh-squad-card .badge{font-size:7px;padding:5px 7px}
  body.design-two .gh-squad-card>strong{font-size:14px}
  body.design-two .gh-squad-card>small{font-size:9px}
  body.design-two .gh-squad-card-link{font-size:8px}
  body.design-two .gh-notification-details>summary{padding:13px;gap:10px}
  body.design-two .gh-notification-thread-expand{font-size:8px}
  body.design-two .gh-notification-entry{padding:14px;flex-direction:column;align-items:flex-start}
  body.design-two .gh-notification-thread-controls{padding:9px 12px}
}
@media(max-width:360px){body.design-two .gh-squad-grid{grid-template-columns:1fr}}
/* The old menu's grid track rules were being applied to a non-grid nav on
   some pages: items collapsed into overlapping inline text. */
body.design-two .account-menu-popover nav{display:grid!important;align-content:start!important;}
body.design-two .account-menu-popover nav>a{
  display:flex!important;flex-direction:column!important;align-items:flex-start!important;
  justify-content:center!important;gap:5px!important;text-decoration:none!important;
}
body.design-two .account-menu-popover nav>a b{display:block;line-height:1.32!important;overflow-wrap:anywhere}
body.design-two .account-menu-popover nav>a span{display:block;line-height:1.2!important}
body.design-two .account-menu-head{display:grid!important;gap:6px!important;align-content:center!important;min-height:70px}
body.design-two .account-menu-head small{display:block!important;color:var(--yellow);font-size:9px;letter-spacing:.12em;font-weight:900;text-transform:uppercase}
body.design-two .account-menu-head b{display:block!important;max-width:100%;overflow-wrap:anywhere;font-size:17px;line-height:1.2}
