/* Header and footer rules reused from apps/hub/assets/hub-rework.css. */
.hub-site-header,.hub-site-footer { --ink:#071b59; --aqua:#10cbed; --pink:#f5239c; --yellow:#ffe147; --line:#d1e5ee; --page:1180px; }
.hub-site-header,.launch-hero {

  background-image:url('rework/sky-clouds.webp');
  background-size:max(100vw,calc(var(--sky-art-height) * 1.75)) auto;
  background-repeat:no-repeat

}
.hub-site-header {

  background-position:center top

}
.hub-site-header {

  height:86px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:32px;
  padding:0 max(32px,calc((100vw - var(--page))/2));
  position:relative;
  z-index:10;
  background:white;
  border-bottom:2px solid #ecfaff

}
.hub-site-header:before {

  content:'';
  position:absolute;
  left:0;
  top:0;
  width:74px;
  height:100%;
  background:repeating-linear-gradient(135deg,transparent 0 25px,#23d2ed 25px 37px,transparent 37px 43px);
  clip-path:polygon(0 0,100% 0,0 100%);
  pointer-events:none

}
.hub-wordmark {

  flex-shrink:0

}
.hub-wordmark img {

  width:188px;
  height:66px

}
.hub-desktop-nav {

  display:flex;
  align-items:center;
  gap:32px;
  font-weight:700;
  font-size:15px

}
.hub-desktop-nav a {

  padding:10px 0

}
.hub-desktop-nav a:hover {

  color:#c90879

}
.hub-mobile-menu-toggle,.hub-mobile-navigation {

  display:none

}
.hub-site-footer {

  border-top:1px solid var(--line);
  padding-block:26px 30px;
  position:relative

}
.footer-inner {

  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:30px

}
.footer-brand img {

  width:166px

}
.footer-meta {

  font-size:12px;
  color:#637492

}
.footer-links {

  display:flex;
  gap:24px;
  font-size:14px

}
.footer-links a:hover {

  text-decoration:underline

}
.account-footer {

  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:16px;
  margin-top:20px;
  font-size:13px

}
.account-footer form {

  margin:0

}
.account-footer button {

  background:none;
  border:0;
  padding:0;
  color:var(--ink);
  text-decoration:underline

}
.account-footer a {

  text-decoration:underline

}
@media(max-width:1100px) {
.hub-desktop-nav {

    gap:20px

}
}
@media(max-width:900px) {
.hub-desktop-nav {

    display:none

}
.hub-mobile-menu-toggle {

    display:flex;
    flex-direction:column;
    gap:5px;
    align-items:center;
    justify-content:center;
    width:44px;
    height:44px;
    border:1px solid var(--line);
    background:white

}
.hub-mobile-menu-toggle i {

    display:block;
    width:21px;
    height:2px;
    background:var(--ink)

}
.hub-mobile-navigation:not([hidden]) {

    display:grid;
    position:absolute;
    top:85px;
    right:0;
    left:0;
    background:white;
    padding:16px 32px;
    box-shadow:0 12px 15px #071b591a;
    gap:4px

}
.hub-mobile-navigation a {

    padding:12px;
    font-weight:700

}
}
@media(max-width:620px) {
.hub-site-header {

    height:72px;
    padding-inline:18px

}
.hub-wordmark img {

    width:158px;
    height:57px

}
.hub-mobile-navigation:not([hidden]) {

    top:71px;
    padding:12px 18px

}
.footer-inner {

    align-items:flex-start;
    flex-direction:column;
    gap:16px

}
.footer-links {

    font-size:13px

}
.footer-brand img {

    width:145px

}
}
.hub-site-header {

  padding-inline:clamp(24px,4vw,64px);
  gap:46px;
  isolation:isolate;
  --header-cut-start:56%;
  --header-step-y:28px;
  --header-lower-diagonal:54px;
  --header-shelf-width:132px;
  --header-upper-diagonal:28px;
  --header-panel-gap:calc(136px + 8vw);
  padding-right:24px;
  background:#82e0fa url('rework/sky-clouds.webp') center top/cover;
  border:0

}
.hub-site-header:before {

  inset:0;
  width:auto;
  height:auto;
  background:white;
  clip-path:polygon(
    0 0,
    calc(var(--header-cut-start) + var(--header-lower-diagonal) + var(--header-shelf-width) + var(--header-upper-diagonal)) 0,
    calc(var(--header-cut-start) + var(--header-lower-diagonal) + var(--header-shelf-width)) var(--header-step-y),
    calc(var(--header-cut-start) + var(--header-lower-diagonal)) var(--header-step-y),
    var(--header-cut-start) 100%,
    0 100%
  );
  z-index:-1

}
.header-graphics {

  position:absolute;
  inset:0;
  pointer-events:none

}
.header-graphics:before {

  content:'';
  position:absolute;
  left:0;
  top:0;
  width:94px;
  height:100%;
  background:linear-gradient(135deg,transparent 0 33%,#20cfea 33% 44%,transparent 44%);
  clip-path:polygon(0 0,100% 0,0 100%)

}
.header-graphics:after {

  content:'';
  position:absolute;
  left:calc(var(--header-cut-start) - 34px);
  bottom:4px;
  width:20px;
  height:calc(100% - var(--header-step-y) - 7px);
  background:var(--pink);
  transform:skewX(-45deg);
  transform-origin:left bottom;
  box-shadow:4px 0 white

}
.header-graphics i {

  position:absolute;
  left:calc(var(--header-cut-start) + var(--header-lower-diagonal) + var(--header-shelf-width) - 38px);
  top:0;
  width:32px;
  height:calc(var(--header-step-y) - 3px);
  background:var(--yellow);
  transform:skewX(-43deg);
  box-shadow:5px 0 white

}
.hub-site-header > .hub-wordmark,.hub-desktop-nav,.hub-mobile-menu-toggle {

  position:relative

}
.hub-desktop-nav {

  flex:1;
  gap:44px

}
.hub-desktop-nav .account-link {

  margin-left:auto

}
.hub-site-header:after {

  content:"";
  position:absolute;
  inset:0;
  height:auto;
  width:auto;
  transform:none;
  background:white;

  clip-path:polygon(
    calc(var(--header-cut-start) + var(--header-panel-gap) + var(--header-lower-diagonal) + var(--header-shelf-width) + var(--header-upper-diagonal)) 0,
    100% 0,
    100% 100%,
    calc(var(--header-cut-start) + var(--header-panel-gap)) 100%,
    calc(var(--header-cut-start) + var(--header-panel-gap) + var(--header-lower-diagonal)) var(--header-step-y),
    calc(var(--header-cut-start) + var(--header-panel-gap) + var(--header-lower-diagonal) + var(--header-shelf-width)) var(--header-step-y)
  );
  z-index:-1;
  pointer-events:none

}
@media(max-width:1100px) {
.hub-site-header {

    gap:25px;
    --header-cut-start:64%;
    --header-panel-gap:136px

}
.hub-desktop-nav {

    gap:26px

}
}
@media(max-width:900px) {
.hub-site-header {

    --header-cut-start:50%;
    --header-shelf-width:76px;
    --header-panel-gap:min(calc(84px + 6vw),calc(50% - 262px));
    padding-right:18px

}
}
@media(max-width:620px) {
.hub-site-header {

    padding-inline:18px;
    --header-cut-start:48%;
    --header-lower-diagonal:44px;
    --header-shelf-width:44px;
    --header-panel-gap:min(48px,calc(52% - 176px))

}
.header-graphics i {

    width:18px;
    height:calc(var(--header-step-y) - 3px)

}
}
.hub-wordmark img {

  object-fit:contain;
  width:192px;
  height:72px

}
.footer-brand img {

  height:auto

}
.hub-site-header {

  height:82px

}
@media(max-width:900px) {
.hub-mobile-navigation:not([hidden]) {

    top:81px

}
}
@media(max-width:620px) {
.hub-site-header {

    height:72px

}
.hub-wordmark img {

    width:166px;
    height:64px

}
.hub-mobile-navigation:not([hidden]) {

    top:71px

}
}
.hub-site-footer {

  position:relative;
  isolation:isolate;
  overflow:hidden;
  margin-top:18px;
  padding:122px 0 36px;
  border:0;
  color:#f5fbff;
  background:transparent;

}
.hub-site-footer::before,.hub-site-footer::after {

  content:'';
  position:absolute;
  inset:0;
  pointer-events:none;

}
.hub-site-footer::before {

  z-index:-2;
  background:linear-gradient(90deg,var(--aqua) 0 33.333%,var(--pink) 33.333% 66.667%,var(--yellow) 66.667%);
  clip-path:polygon(0 74px,18% 74px,27% 0,73% 0,82% 74px,100% 74px,100% 100%,0 100%);

}
.hub-site-footer::after {

  z-index:-1;
  background:
    linear-gradient(135deg,transparent 0 68%,rgba(24,196,232,.09) 68% 70%,transparent 70% 77%,rgba(255,255,255,.055) 77% 78%,transparent 78%),
    radial-gradient(circle at 80% 90%,#103b66 0,transparent 30%),
    linear-gradient(115deg,#071b59 0%,#081638 58%,#050c24 100%);
  clip-path:polygon(0 81px,18% 81px,27% 7px,73% 7px,82% 81px,100% 81px,100% 100%,0 100%);

}
.hub-site-footer .footer-inner {
 align-items:flex-start; gap:clamp(28px,5vw,76px);
}
.hub-site-footer .footer-brand {
 flex:0 0 auto; display:inline-block;
}
.hub-site-footer .footer-brand img {
 display:block; width:clamp(185px,20vw,235px); height:auto;
}
.hub-site-footer .footer-meta {
 flex:1 1 320px; max-width:440px; padding-top:7px; color:#bad0e7; font-size:13px; line-height:1.65;
}
.hub-site-footer .footer-links {
 display:grid; align-content:start; justify-items:start; gap:12px; min-width:170px; padding-top:4px; font:700 15px Tektur,Arial,sans-serif;
}
.hub-site-footer .footer-links a {
 color:#f5fbff; text-decoration:none; transition:color .15s,transform .15s;
}
.hub-site-footer .footer-links a:hover,.hub-site-footer .footer-links a:focus-visible {
 color:var(--aqua); transform:translateX(4px); text-decoration:none;
}
.hub-site-footer .account-footer {
 margin-top:32px; padding-top:17px; border-top:1px solid #ffffff38; color:#bad0e7;
}
.hub-site-footer .account-footer a,.hub-site-footer .account-footer button {
 color:#f5fbff; text-decoration:none; font-weight:700;
}
.hub-site-footer .account-footer a:hover,.hub-site-footer .account-footer button:hover,.hub-site-footer .account-footer a:focus-visible,.hub-site-footer .account-footer button:focus-visible {
 color:var(--aqua); text-decoration:underline;
}
@media(max-width:900px) {
.hub-site-footer .footer-inner {
 flex-wrap:wrap;
}
.hub-site-footer .footer-links {
 min-width:140px;
}
}
@media(max-width:620px) {
.hub-site-footer {
 padding-top:102px;
}
.hub-site-footer::before {
 clip-path:polygon(0 58px,15% 58px,37% 0,63% 0,85% 58px,100% 58px,100% 100%,0 100%);
}
.hub-site-footer::after {
 clip-path:polygon(0 65px,15% 65px,37% 7px,63% 7px,85% 65px,100% 65px,100% 100%,0 100%);
}
.hub-site-footer .footer-inner {
 display:grid; gap:24px;
}
.hub-site-footer .footer-brand {
 justify-self:center;
}
.hub-site-footer .footer-brand img {
 width:180px;
}
.hub-site-footer .footer-meta {
 padding:0;
}
.hub-site-footer .footer-links {
 display:flex; flex-wrap:wrap; gap:12px 22px; padding:0;
}
}
.hub-site-footer .footer-disclaimer {
 margin:10px 0 0; max-width:440px; color:#d7e6f3; line-height:1.55;
}
.hub-site-header {
 position:sticky; top:0; z-index:100;
}
.hub-site-header {
 background-image:none; background-color:transparent;
}

/* Adapt the hub shell to the nine game routes and direct game picker. */
.hub-site-header { gap:22px; }
.hub-wordmark { width:auto; }
.hub-desktop-nav { gap:18px; font-size:14px; justify-content:center; }
.hub-desktop-nav a[aria-current="page"] { color:#c90879; }
.hub-site-header .game-switcher { border:0; padding:0; margin-left:auto; position:relative; }
.hub-site-header .game-options { top:calc(100% + 18px); }
.hub-mobile-menu-toggle { order:0; }
.hub-mobile-navigation { flex:none; }
.hub-site-footer .footer-inner { display:flex; justify-content:flex-start; }
.hub-site-footer .footer-meta { margin:0; }
.hub-site-footer .account-footer { padding-bottom:0; }
/* Keep the desktop links clear of the avatar and diagonal accent area. */
@media(max-width:1700px) {
  .hub-desktop-nav { display:none; }
  .hub-mobile-menu-toggle { display:flex; flex-direction:column; gap:5px; align-items:center; justify-content:center; width:44px; height:44px; padding:0; border:1px solid var(--line); background:white; }
  .hub-mobile-menu-toggle i { display:block; width:21px; height:2px; background:var(--ink); }
  .hub-mobile-navigation:not([hidden]) { display:grid; grid-template-columns:repeat(3,1fr); position:absolute; top:81px; left:0; right:0; margin:0; padding:16px 24px; border:0; background:white; box-shadow:0 12px 15px #071b591a; gap:4px; }
  .hub-mobile-navigation a { padding:12px; font-size:14px; font-weight:700; }
  .hub-site-header .game-switcher summary>img { width:112px; }
}
@media(max-width:620px) {
  .hub-site-header { gap:12px; }
  .hub-site-header .game-switcher summary>img { width:80px; }
  .hub-site-header .game-switcher summary { gap:5px; }
  .hub-mobile-navigation:not([hidden]) { top:71px; grid-template-columns:repeat(2,1fr); padding:12px 18px; }
  .hub-site-footer .footer-inner { display:grid; justify-content:stretch; }
  .hub-site-footer .footer-brand { margin:0; }
  .hub-site-footer .footer-brand picture { display:block; }
  .hub-site-footer .account-footer { justify-content:center; }
}
@media(max-width:380px) {
  .hub-site-header { padding-inline:14px; gap:8px; }
  .hub-wordmark img { width:126px; }
  .hub-site-header .game-switcher summary>img { width:68px; }
}

.hub-desktop-nav a::after,.hub-mobile-navigation a::after { display:none; }

@media(min-width:1201px) {
  .hub-site-header .header-graphics:after { height:18px; width:12px; box-shadow:none; }
}
@media(min-width:1300px) {
  .hub-desktop-nav { font-size:15px; gap:24px; }
}
.hub-site-header .hub-mobile-menu-toggle { flex-shrink:0; }

/* Leave space for the stepped cutout after the final navigation link. */
@media(min-width:1201px) {
  .hub-site-header { --header-cut-start:calc(100% - 500px); --header-panel-gap:80px; }
  .hub-desktop-nav { flex:0 0 auto; white-space:nowrap; }
}
.hub-site-header .game-switcher { flex-shrink:0; }
@media(max-width:620px) {
  .hub-site-header { padding-inline:12px; gap:8px; }
  .hub-site-header .hub-wordmark img { width:128px; }
  .hub-site-header .game-switcher summary>img { width:68px; }
  .hub-site-header .hub-mobile-menu-toggle { width:38px; height:38px; }
  .hub-site-header .game-options { width:min(300px,calc(100vw - 24px)); }
}
.hub-site-header .game-switcher summary { background:white; }

/* Game preview header: one rectangular surface with full-height color strokes. */
.hub-site-header {
  background:#fff;
  border-bottom:1px solid var(--line);
}
.hub-site-header::before,
.hub-site-header::after { content:none; }
.hub-site-header .header-graphics::after,
.hub-site-header .header-graphics i {
  top:0;
  bottom:auto;
  width:88px;
  height:100%;
  transform:none;
  box-shadow:none;
  clip-path:polygon(70px 0, 88px 0, 18px 100%, 0 100%);
}
.hub-site-header .header-graphics::after {
  left:calc(100% - 470px);
  background:var(--pink);
}
.hub-site-header .header-graphics i {
  left:calc(100% - 350px);
  background:var(--yellow);
}
@media(max-width:900px) {
  .hub-site-header .header-graphics::after,
  .hub-site-header .header-graphics i { display:none; }
}

/* Fill the parallelogram bounded by the inner edges of the two strokes. */
.hub-site-header .nav-profile {
  position:absolute;
  left:calc(100% - 567px);
  top:0;
  z-index:3;
  display:grid;
  place-items:center;
  width:172px;
  height:100%;
  border:0;
  border-radius:0;
  padding:0;
  clip-path:polygon(70px 0,100% 0,102px 100%,0 100%);
  background:var(--navy,#10233b);
  flex-shrink:0;
}
.hub-site-header .nav-profile .table-initial { width:100%; height:100%; flex-basis:auto; border-radius:0; font-size:32px; }
.hub-site-header .nav-profile .player-avatar { border-radius:0; object-fit:cover; object-position:center 25%; }
.hub-site-header .nav-profile:hover { filter:brightness(1.12); }
.hub-site-header .nav-profile:focus-visible { outline:0; box-shadow:inset 0 0 0 4px var(--yellow); }
@media(max-width:900px) {
  .hub-site-header .nav-profile { position:static; width:38px; height:38px; clip-path:none; border-radius:4px; }
  .hub-site-header .nav-profile .table-initial { font-size:17px; }
}
@media(max-width:620px) {
  .hub-site-header.has-profile { gap:6px; }
  .hub-site-header.has-profile .hub-wordmark img { width:112px; }
  .hub-site-header.has-profile .theme-toggle { width:32px; min-height:32px; padding:5px; }
  .hub-site-header.has-profile .nav-profile { width:32px; height:32px; }
  .hub-site-header.has-profile .nav-profile .table-initial { font-size:13px; }
  .hub-site-header.has-profile .game-switcher summary>img { width:64px; }
}

/* Discord keeps its accessible name while using only the brand mark. */
.hub-site-header .nav-discord { display:inline-flex; align-items:center; justify-content:center; }
.hub-site-header .nav-discord svg { display:block; width:24px; height:18px; fill:currentColor; flex:none; }

/* Keep account and community links aligned inside the small-screen menu. */
.hub-site-header .mobile-profile { display:none; }
.hub-mobile-navigation .nav-utilities { grid-column:1/-1; display:flex; align-items:center; gap:8px; }
.hub-mobile-navigation .nav-utilities .nav-discord { min-width:44px; min-height:44px; padding:12px 10px; }
@media(max-width:1700px) {
  .hub-mobile-navigation:not([hidden]) { max-height:calc(100dvh - 125px); overflow-y:auto; overscroll-behavior:contain; }
}
@media(max-width:900px) {
  .hub-site-header .nav-profile { display:none; }
  .hub-site-header .mobile-profile { display:flex; align-items:center; gap:12px; grid-column:1/-1; margin-bottom:8px; border-bottom:1px solid var(--line); }
  .mobile-profile .table-initial { width:40px; height:40px; flex-basis:40px; border-radius:4px; }
  .mobile-profile>span:last-child { display:grid; gap:2px; }
  .mobile-profile small { font-size:11px; color:var(--muted); font-weight:400; }
}
