/* Shared public shell. Load after the page's stylesheets. */
@font-face {
  font-family: Manrope;
  src: url('assets/fonts/manrope-variable.woff') format('woff');
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: Oswald;
  src: url('assets/fonts/oswald-variable.woff') format('woff');
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
}

:root { --am-shell-header-height: 80px; }
html { scroll-padding-top: calc(var(--am-shell-header-height) + 16px); }
[data-site-header] {
  position: sticky;
  top: 0;
  z-index: 80;
  width: 100%;
  isolation: isolate;
}
[data-site-footer] { width: 100%; }
.am-shell, .am-shell * { box-sizing: border-box; }
.am-shell {
  --am-shell-ink: #eeeee2;
  --am-shell-muted: #b2bcb3;
  --am-shell-gold: #d2b083;
  --am-shell-line: #b2bca02b;
  --am-shell-bg: #101715;
  --am-shell-gutter: clamp(18px, 4.5vw, 76px);
  color: var(--am-shell-ink);
  font: 500 14px/1.5 Manrope, Arial, sans-serif;
  text-transform: none;
  letter-spacing: normal;
}
.am-shell a, .am-shell button {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
}
.am-shell a { color: inherit; }
.am-shell button {
  appearance: none;
  border-radius: 0;
  cursor: pointer;
  font: inherit;
}
.am-shell :is(a, button):focus-visible {
  outline: 2px solid #f4d9ae;
  outline-offset: 4px;
}
.am-shell ul { list-style: none; padding: 0; margin: 0; }
.am-shell p { margin: 0; }
.am-shell [hidden] { display: none !important; }
.am-shell-header {
  display: block;
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--am-shell-line);
  background: #101715f5;
  box-shadow: 0 2px 18px #03060526;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.am-shell-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--am-shell-header-height);
  max-width: 1740px;
  margin-inline: auto;
  padding: 12px var(--am-shell-gutter);
}
.am-shell-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  min-height: 48px;
  min-width: 0;
}
.am-shell-brand img { display: block; flex: 0 0 36px; width: 36px; height: 36px; max-width: none; }
.am-shell-brand-name {
  display: block;
  color: var(--am-shell-ink);
  font: 500 18px/1.2 Oswald, 'Arial Narrow', sans-serif;
  letter-spacing: .09em;
  white-space: nowrap;
}
.am-shell-brand-name small {
  display: block;
  margin-top: 4px;
  color: var(--am-shell-muted);
  font: 500 9px/1.2 Manrope, Arial, sans-serif;
  letter-spacing: .22em;
}
.am-shell-desktop-nav { margin-left: auto; min-width: 0; }
.am-shell-main-links { display: flex; align-items: center; gap: 2px; }
.am-shell-main-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 48px;
  padding: 10px 11px;
  color: var(--am-shell-muted);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: color .18s ease, background .18s ease;
}
.am-shell-main-links a:hover { color: var(--am-shell-ink); background: #d2b0830a; }
.am-shell-main-links a.is-current { color: #f1d6ad; }
.am-shell-main-links a.is-current::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 11px;
  right: 11px;
  height: 2px;
  background: var(--am-shell-gold);
}
.am-shell-actions { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.am-shell .am-shell-language {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 82px;
  min-height: 48px;
  padding: 10px;
  border: 1px solid #b2bca03d;
  background: transparent;
  color: #a9b6ac;
  font: 600 13px/1.4 Manrope, Arial, sans-serif;
  white-space: nowrap;
}
.am-shell-language .language-current { color: #f3d7ab; font-weight: 800; }
.am-shell-language:hover { border-color: var(--am-shell-gold); background: #d2b0830c; }
.am-shell .am-shell-join {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 17px;
  min-height: 48px;
  padding: 12px 17px;
  border: 1px solid var(--am-shell-gold);
  color: #131b17;
  background: var(--am-shell-gold);
  font: 750 13px/1.5 Manrope, Arial, sans-serif;
  white-space: nowrap;
  transition: background .18s ease, border-color .18s ease;
}
.am-shell .am-shell-join:hover { color: #101612; background: #e5c79b; border-color: #e5c79b; }
.am-shell-arrow { display: block; flex: 0 0 18px; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.am-shell .am-shell-menu {
  display: none;
  position: relative;
  flex: 0 0 48px;
  width: 48px;
  min-height: 48px;
  padding: 13px;
  border: 1px solid #b2bca03d;
  background: transparent;
  color: var(--am-shell-ink);
}
.am-shell-menu span {
  display: block;
  position: absolute;
  width: 22px;
  height: 1px;
  left: 12px;
  top: 19px;
  background: currentColor;
  transition: transform .18s ease, top .18s ease;
}
.am-shell-menu span + span { top: 27px; }
.am-shell-menu[aria-expanded='true'] span { top: 23px; transform: rotate(45deg); }
.am-shell-menu[aria-expanded='true'] span + span { transform: rotate(-45deg); }
.am-shell-menu:hover { border-color: var(--am-shell-gold); }
.am-shell-mobile-panel { display: none; }

/* The footer resets generic footer rules from the independent field exercises. */
.am-shell-footer {
  display: block;
  align-items: initial;
  justify-content: initial;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 64px var(--am-shell-gutter) 24px;
  border: 0;
  border-top: 1px solid var(--am-shell-line);
  background: linear-gradient(120deg, #14201b 0, #101715 38%, #0e1513 100%);
  color: var(--am-shell-ink);
  font: 500 14px/1.5 Manrope, Arial, sans-serif;
  letter-spacing: normal;
  text-transform: none;
}
.am-shell-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  max-width: 1588px;
  margin-inline: auto;
}
.am-shell-brand-footer .am-shell-brand-name { font-size: 24px; }
.am-shell-brand-footer img { width: 44px; height: 44px; flex-basis: 44px; }
.am-shell-footer .am-shell-slogan {
  max-width: 350px;
  margin-top: 23px;
  color: #bec7bc;
  font-size: 15px;
  line-height: 1.8;
}
.am-shell-footer .am-shell-status {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  color: var(--am-shell-muted);
  font-size: 12px;
}
.am-shell-status i { width: 5px; height: 5px; background: var(--am-shell-gold); }
.am-shell-footer .am-shell-label {
  margin: 5px 0 16px;
  color: #e1c49b;
  font: 600 11px/1.5 Manrope, Arial, sans-serif;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.am-shell-footer-explore { display: block; margin: 0; }
.am-shell-footer-links { display: grid; gap: 0; }
.am-shell-footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 0;
  color: #bec7bc;
  font-size: 14px;
  line-height: 1.5;
}
.am-shell-footer-links a:hover, .am-shell-footer-links a.is-current { color: #f1d6ad; }
.am-shell .am-shell-social {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 62px;
  padding: 11px 0;
  border-bottom: 1px solid var(--am-shell-line);
  color: var(--am-shell-ink);
}
.am-shell-social strong { display: block; font-size: 14px; font-weight: 650; line-height: 1.5; }
.am-shell-social small { display: block; margin-top: 2px; color: var(--am-shell-muted); font-size: 12px; line-height: 1.6; }
.am-shell-social .am-shell-arrow { color: var(--am-shell-gold); }
.am-shell .am-shell-social-discord strong { color: #f1d6ad; }
.am-shell .am-shell-social:hover strong { color: #f1d6ad; }
.am-shell-language-badge {
  display: inline-block;
  margin-left: 5px;
  padding: 1px 5px;
  border: 1px solid #b2bca044;
  color: #d2b894;
  font: 600 10px/1.4 Manrope, Arial, sans-serif;
  vertical-align: 1px;
}
.am-shell-steam {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  margin-top: 12px;
  color: #aab4aa;
  font-size: 13px;
}
.am-shell-steam small { color: #b6bdb3; font-size: 12px; text-align: right; }
.am-shell-footer-base {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  max-width: 1588px;
  margin: 40px auto 0;
  padding-top: 21px;
  border-top: 1px solid var(--am-shell-line);
  color: #8e9c90;
  font: 500 10px/1.5 Manrope, Arial, sans-serif;
  letter-spacing: .14em;
}

@media (max-width: 1180px) {
  .am-shell-desktop-nav { display: none; }
  .am-shell-actions { margin-left: auto; }
  .am-shell .am-shell-menu { display: block; }
  .am-shell-mobile-panel:not([hidden]) {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100svh - var(--am-shell-header-height));
    max-height: calc(100dvh - var(--am-shell-header-height));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px var(--am-shell-gutter) 24px;
    border-top: 1px solid var(--am-shell-line);
    background: #111b17;
    box-shadow: 0 18px 30px #02060342;
  }
  .am-shell-mobile-panel nav { display: block; margin: 0; }
  .am-shell-mobile-links { display: grid; gap: 0; }
  .am-shell-mobile-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 52px;
    padding: 12px 4px;
    border-bottom: 1px solid var(--am-shell-line);
    color: #dde2d6;
    font: 600 16px/1.5 Manrope, Arial, sans-serif;
  }
  .am-shell-mobile-links .am-shell-arrow { color: #8e9e8f; }
  .am-shell-mobile-links a.is-current { color: #f1d6ad; }
  .am-shell-mobile-links a.is-current .am-shell-arrow { color: var(--am-shell-gold); }
  .am-shell-mobile-links a:hover { color: #f1d6ad; }
  .am-shell .am-shell-mobile-join { display: flex; width: 100%; margin-top: 18px; }
}
@media (max-width: 720px) {
  :root { --am-shell-header-height: 72px; }
  .am-shell-bar { gap: 12px; padding-block: 11px; }
  .am-shell .am-shell-desktop-join { display: none; }
  .am-shell-actions { gap: 8px; }
  .am-shell-brand { gap: 9px; }
  .am-shell-brand-name { font-size: 17px; letter-spacing: .07em; }
  .am-shell-brand-name small { font-size: 8px; letter-spacing: .18em; }
  .am-shell-brand img { width: 32px; height: 32px; flex-basis: 32px; }
  .am-shell-footer { padding-top: 42px; }
  .am-shell-footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 24px; }
  .am-shell-footer-intro { grid-column: 1 / -1; }
  .am-shell-footer .am-shell-slogan { max-width: 420px; margin-top: 16px; }
  .am-shell-footer .am-shell-status { margin-top: 14px; }
  .am-shell-brand-footer .am-shell-brand-name { font-size: 24px; }
  .am-shell-brand-footer img { width: 40px; height: 40px; flex-basis: 40px; }
}
@media (max-width: 420px) {
  .am-shell { --am-shell-gutter: 16px; }
  .am-shell-bar { gap: 8px; }
  .am-shell-brand { gap: 7px; }
  .am-shell-brand-name { font-size: 15px; letter-spacing: .06em; }
  .am-shell-brand-name small { font-size: 7px; letter-spacing: .15em; }
  .am-shell-brand img { width: 28px; height: 28px; flex-basis: 28px; }
  .am-shell .am-shell-language { min-width: 74px; padding-inline: 7px; font-size: 12px; }
  .am-shell-actions { gap: 6px; }
  .am-shell .am-shell-menu { flex-basis: 44px; width: 44px; }
  .am-shell-menu span { left: 10px; }
  .am-shell-footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .am-shell-footer-intro { grid-column: auto; }
  .am-shell-footer-links { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 14px; }
  .am-shell-footer-links a { font-size: 14px; }
  .am-shell-brand-footer .am-shell-brand-name { font-size: 24px; }
  .am-shell-brand-footer img { width: 40px; height: 40px; flex-basis: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .am-shell *, .am-shell *::before, .am-shell *::after { transition: none !important; }
}

.am-shell-language .language-current{text-decoration:none}

.am-shell-footer-base { flex-wrap: wrap; gap: 12px; }
.am-shell-footer-base a { min-height: 44px; display: inline-flex; align-items: center; color: #c3ba9e; text-underline-offset: 4px; }
.am-shell-footer-base a:focus-visible { outline: 2px solid #c8b77b; outline-offset: 4px; }
