/* Shared footer rules from apps/website/src/components/layout/footer.css. */
.site-footer--index {
  --footer-bg: #09121c;
  --footer-ink: #e2eaf2;
  --footer-heading: #f6f8fb;
  --footer-muted: #aebdcd;
  --footer-line: #334354;
  --footer-accent: #82a9ca;
  padding: clamp(42px, 5vw, 68px) 0 20px;
  border-top: 1px solid var(--footer-line);
  background: var(--footer-bg);
  color: var(--footer-ink);
}

:root[data-theme='light'] .site-footer--index,
[data-game-footer][data-theme='light'].site-footer--index {
  --footer-bg: #edf1f5;
  --footer-ink: #20374a;
  --footer-heading: #101f2e;
  --footer-muted: #4a5e71;
  --footer-line: #bbc9d6;
  --footer-accent: #476e90;
}

.site-footer--index :where(.footer-shell, .footer-base) {
  width: min(1200px, calc(100% - clamp(40px, 10vw, 112px)));
  margin-inline: auto;
}

.site-footer--index .footer-shell {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
}

.site-footer--index :where(.footer-shell > *, .footer-nav > *) {
  min-width: 0;
}

.site-footer--index p { margin: 0; }

.site-footer--index .footer-brand {
  display: block;
}

.site-footer--index .footer-brand-link {
  display: inline-flex;
  flex-direction: column;
  gap: 12px;
  width: fit-content;
  min-height: 44px;
  max-width: 100%;
  color: var(--footer-heading);
  text-decoration: none;
}

.site-footer--index .footer-wordmark {
  font-family: var(--font-display, 'Arial Narrow', sans-serif);
  font-size: clamp(4.25rem, 7.7vw, 7.2rem);
  font-weight: 650;
  letter-spacing: -.04em;
  line-height: .82;
  text-transform: uppercase;
}

.site-footer--index .footer-name {
  margin: 0;
  font-size: .82rem;
  font-weight: 650;
  letter-spacing: .12em;
  line-height: 1.45;
  text-transform: uppercase;
}

.site-footer--index .footer-copy {
  margin: 20px 0 0;
  color: var(--footer-ink);
  font-size: 1rem;
  line-height: 1.5;
}

.site-footer--index .footer-location {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 12px 0 0;
  color: var(--footer-muted);
  font-size: .875rem;
  line-height: 1.5;
}

.site-footer--index .footer-location .american-flag {
  flex: none;
  width: 30px;
  height: 16px;
}

.site-footer--index .footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 3.8vw, 58px);
}

.site-footer--index .footer-link-column {
  display: block;
  border-top: 1px solid var(--footer-line);
  padding-top: 11px;
}

.site-footer--index .footer-heading {
  margin: 0 0 9px;
  color: var(--footer-muted);
  font-family: var(--font-body, inherit);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.5;
  text-transform: uppercase;
}

.site-footer--index .footer-nav .footer-link-column > ul,
.site-footer--index .footer-utilities ul {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer--index .footer-link-column a {
  display: flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  padding-block: 7px;
  color: var(--footer-ink);
  font-size: .97rem;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
}

.site-footer--index .footer-link-column a:hover {
  color: var(--footer-heading);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer--index .footer-contact-link {
  justify-content: space-between;
  gap: 12px;
  padding-inline: 12px;
  border: 1px solid var(--footer-line);
  font-weight: 700;
}

.site-footer--index .footer-contact-link::after {
  width: .44em;
  height: .44em;
  flex: none;
  margin-inline-end: 2px;
  border: solid var(--footer-accent);
  border-width: 1px 1px 0 0;
  transform: rotate(45deg);
  content: '';
}

.site-footer--index .footer-contact-link:hover {
  border-color: var(--footer-accent);
}

.site-footer--index .footer-base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2px 28px;
  margin-top: 28px;
  padding-top: 10px;
  border-top: 1px solid var(--footer-line);
  color: var(--footer-muted);
}

.site-footer--index .copyright {
  font-size: .75rem;
  line-height: 1.5;
}

.site-footer--index .footer-utilities ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 20px;
}

.site-footer--index .footer-utilities :is(a, button) {
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--footer-muted);
  font: inherit;
  font-size: .75rem;
  line-height: 1.5;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.site-footer--index .footer-utilities :is(a, button):hover {
  color: var(--footer-heading);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer--index :is(a, button):focus-visible {
  outline: 2px solid var(--footer-accent);
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .site-footer--index .footer-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .site-footer--index .footer-base {
    align-items: flex-start;
    flex-direction: column-reverse;
    gap: 7px;
    margin-top: 20px;
  }
}

@media (max-width: 390px) {
  .site-footer--index .footer-heading { letter-spacing: .08em; }
  .site-footer--index .footer-link-column a { font-size: .9rem; }
  .site-footer--index .footer-utilities ul { column-gap: 14px; }
}

body[data-gt-game-page] > [data-game-footer] {
  --font-body: var(--gt-game-body);
  --font-display: var(--gt-game-display);
  margin: 0;
  font: 400 1rem/1.5 var(--font-body);
  text-align: start;
}

[data-game-footer] *, [data-game-footer] *::before, [data-game-footer] *::after { box-sizing: border-box; }
[data-game-footer] [data-game-analytics-open][hidden] { display: none; }

[data-game-analytics-settings] {
  width: min(560px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  padding: 20px;
  border: 1px solid var(--footer-line);
  border-radius: 6px;
  background: var(--footer-bg);
  color: var(--footer-ink);
  font: inherit;
}

[data-game-analytics-settings]::backdrop { background: rgb(4 16 32 / 65%); }

[data-game-analytics-settings] h2 {
  margin: 0 0 6px;
  color: var(--footer-heading);
  font: 700 1.65rem/1.12 var(--font-display);
}

[data-game-analytics-settings] p + p { margin-top: 10px; }

[data-game-analytics-settings] form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
}

[data-game-analytics-settings] button {
  min-height: 44px;
  min-width: 44px;
  padding: 6px 12px;
  border: 1px solid var(--footer-accent);
  border-radius: 3px;
  background: var(--footer-bg);
  color: var(--footer-heading);
  font: inherit;
  cursor: pointer;
}

[data-game-analytics-settings] button:is(:hover, [aria-pressed='true']) {
  background: var(--footer-heading);
  color: var(--footer-bg);
}
