:root {
  --site-shell-bg: #020202;
  --site-shell-border: rgba(255, 255, 255, .075);
  --site-shell-muted: #74747e;
  --site-shell-ease: cubic-bezier(.16, 1, .3, 1);
}

html.site-shell-enabled,
html.site-shell-enabled body { min-height: 100%; }
html.site-shell-enabled body {
  min-height: 100vh !important;
  height: auto !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  display: flex !important;
  flex-direction: column !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
html.site-shell-enabled body > .top-nav,
html.site-shell-enabled body > .hub-tool-nav,
html.site-shell-enabled main.shell > header.top,
html.site-shell-enabled main.shell > header.site-header,
html.site-shell-enabled #main-header,
html.site-shell-enabled body > a.back,
html.site-shell-enabled footer.site-footer,
html.site-shell-enabled body > footer:not(.site-shell-footer) { display: none !important; }

.site-shell-header,
.site-shell-header *,
.site-shell-footer,
.site-shell-footer * { box-sizing: border-box; }

.site-shell-header {
  position: relative;
  z-index: 1000;
  left: 50%;
  width: 100vw;
  min-height: 76px;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  margin: 0 0 24px;
  padding: 14px 32px;
  transform: translateX(-50%);
  border-bottom: 1px solid var(--site-shell-border);
  background: rgba(2, 2, 2, .9);
  color: #fff;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.2;
  backdrop-filter: blur(18px);
  -webkit-font-smoothing: antialiased;
}
.site-shell-header a { color: inherit; text-decoration: none; }
.site-shell-back {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #777781 !important;
  font-size: .87rem;
  font-weight: 650;
  text-transform: none;
  letter-spacing: 0;
  transition: color .25s ease;
}
.site-shell-back:hover { color: #fff !important; }
.site-shell-back svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .3s var(--site-shell-ease); }
.site-shell-back:hover svg { transform: translateX(-4px); }
.site-shell-brand { grid-column: 2; justify-self: center; display: grid; justify-items: center; gap: 5px; min-width: 0; }
.site-shell-logo { display: block; line-height: 0; }
.site-shell-logo img { display: block; width: clamp(150px, 18vw, 225px); height: auto; max-height: none; object-fit: contain; }
.site-shell-page-label { color: #73737d; font-size: .6rem; font-weight: 780; letter-spacing: .28em; line-height: 1.15; text-align: center; text-transform: uppercase; }
.site-shell-discord {
  position: relative;
  grid-column: 3;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 40px;
  overflow: hidden;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 8px;
  background: linear-gradient(135deg, #5865f2, #404eed);
  box-shadow: 0 4px 14px rgba(88, 101, 242, .28);
  color: #fff !important;
  font-size: .8rem;
  font-weight: 690;
  text-transform: none;
  letter-spacing: 0;
  transition: transform .3s var(--site-shell-ease), box-shadow .3s ease, background .3s ease;
}
.site-shell-discord::before { content: ""; position: absolute; inset: 0; transform: translateX(-110%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent); transition: transform .5s ease; }
.site-shell-discord:hover { transform: translateY(-2px); background: linear-gradient(135deg, #6571f3, #4752c4); box-shadow: 0 7px 20px rgba(88, 101, 242, .42); }
.site-shell-discord:hover::before { transform: translateX(110%); }
.site-shell-discord svg { width: 19px; height: 19px; flex: 0 0 auto; fill: currentColor; }
.site-shell-toggle,
.site-shell-scrim,
.site-shell-drawer { display: none; }

.site-shell-footer {
  position: relative;
  left: 50%;
  width: 100vw;
  min-height: 66px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: auto;
  padding: 16px 32px 18px;
  transform: translateX(-50%);
  border-top: 1px solid rgba(255,255,255,.06);
  background: rgba(2,2,2,.54);
  color: #4e4e58;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: .67rem;
  line-height: 1.3;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.site-shell-footer nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.site-shell-footer a { color: #73737d; text-decoration: none; transition: color .2s ease; }
.site-shell-footer a:hover { color: #fff; }

@media (max-width: 700px) {
  html.site-shell-enabled body.site-shell-menu-open { overflow: hidden !important; }
  .site-shell-header { min-height: 66px; grid-template-columns: 44px 1fr 44px; gap: 10px; margin-bottom: 14px; padding: 11px 14px; }
  .site-shell-back { width: 42px; height: 42px; justify-content: center; border: 1px solid var(--site-shell-border); border-radius: 10px; }
  .site-shell-back span, .site-shell-header > .site-shell-discord { display: none; }
  .site-shell-brand { grid-column: 2; gap: 4px; }
  .site-shell-logo img { width: 145px; }
  .site-shell-page-label { max-width: 175px; overflow: hidden; font-size: .52rem; letter-spacing: .2em; text-overflow: ellipsis; white-space: nowrap; }
  .site-shell-toggle {
    position: relative;
    z-index: 130;
    grid-column: 3;
    justify-self: end;
    width: 42px;
    height: 42px;
    display: grid;
    place-content: center;
    gap: 4px;
    padding: 0;
    border: 1px solid var(--site-shell-border);
    border-radius: 10px;
    background: rgba(255,255,255,.025);
    cursor: pointer;
    transition: border-color .25s ease, background .25s ease;
  }
  .site-shell-toggle:hover,
  .site-shell-toggle[aria-expanded="true"] { border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.07); }
  .site-shell-toggle span { width: 18px; height: 2px; border-radius: 2px; background: #ddd; transition: transform .3s var(--site-shell-ease), opacity .2s ease; }
  .site-shell-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .site-shell-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .site-shell-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .site-shell-scrim {
    position: fixed;
    z-index: 110;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    padding: 0;
    border: 0;
    background: rgba(0,0,0,.62);
    opacity: 0;
    visibility: hidden;
    cursor: default;
    backdrop-filter: blur(0);
    transition: opacity .35s ease, visibility .35s, backdrop-filter .45s ease;
  }
  .site-shell-scrim.open { opacity: 1; visibility: visible; backdrop-filter: blur(5px); }
  .site-shell-drawer {
    position: fixed;
    z-index: 120;
    top: 0;
    right: 0;
    width: min(88vw, 370px);
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    padding: 92px 18px max(24px, env(safe-area-inset-bottom));
    overflow-y: auto;
    border-left: 1px solid rgba(255,255,255,.09);
    background: radial-gradient(circle at 85% 2%, rgba(88,101,242,.16), transparent 18rem), linear-gradient(165deg, #111116 0%, #09090c 52%, #050506 100%);
    box-shadow: -28px 0 70px rgba(0,0,0,.58);
    opacity: 0;
    visibility: hidden;
    transform: translateX(104%);
    transition: transform .5s var(--site-shell-ease), opacity .3s ease, visibility .5s;
  }
  .site-shell-drawer.open { opacity: 1; visibility: visible; transform: translateX(0); }
  .site-shell-drawer-head { padding: 0 8px 22px; border-bottom: 1px solid rgba(255,255,255,.075); }
  .site-shell-drawer-kicker { display: block; margin-bottom: 8px; color: #777782; font-size: .64rem; font-weight: 780; letter-spacing: .2em; text-transform: uppercase; }
  .site-shell-drawer-head > strong { display: block; color: #fff; font-size: 1.65rem; letter-spacing: -.045em; }
  .site-shell-drawer-head p { max-width: 250px; margin: 8px 0 0; color: #777782; font-size: .78rem; line-height: 1.55; }
  .site-shell-drawer-links { display: grid; gap: 8px; margin-top: 20px; }
  .site-shell-drawer-links a { position: relative; display: flex; align-items: center; min-height: 72px; padding: 14px 42px 14px 15px; overflow: hidden; border: 1px solid rgba(255,255,255,.075); border-radius: 13px; background: rgba(255,255,255,.025); color: #fff; text-decoration: none; transition: transform .3s var(--site-shell-ease), border-color .25s ease, background .25s ease; }
  .site-shell-drawer-links a::after { content: "\2192"; position: absolute; right: 16px; color: #656571; font-size: 1rem; transition: color .25s ease, transform .3s var(--site-shell-ease); }
  .site-shell-drawer-links a:hover { transform: translateX(-3px); border-color: rgba(255,255,255,.15); background: rgba(255,255,255,.055); }
  .site-shell-drawer-links a:hover::after { color: #fff; transform: translateX(3px); }
  .site-shell-drawer-links strong,
  .site-shell-drawer-links small { display: block; }
  .site-shell-drawer-links strong { color: #f2f2f5; font-size: .88rem; font-weight: 690; }
  .site-shell-drawer-links small { margin-top: 5px; color: #6f6f79; font-size: .68rem; }
  .site-shell-drawer .site-shell-mobile-discord { width: 100%; min-height: 48px; margin-top: auto; padding: 13px 16px; border-radius: 11px; }
  .site-shell-drawer-foot { padding: 15px 4px 0; color: #4f4f58; font-size: .62rem; letter-spacing: .04em; text-align: center; }
  .site-shell-footer { min-height: 82px; flex-direction: column; justify-content: center; gap: 12px; padding: 15px 16px max(23px, env(safe-area-inset-bottom)); text-align: center; }
  .site-shell-footer nav { order: 1; margin-left: 0; gap: 24px; }
  .site-shell-footer > span { order: 2; color: #42424b; }
}

@media (prefers-reduced-motion: reduce) {
  .site-shell-header *, .site-shell-footer *, .site-shell-scrim, .site-shell-drawer { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
