@font-face {
  font-family: "Source Sans 3";
  src: url("/fonts/source-sans-3-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("/fonts/barlow-condensed-700-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

html:has(body[data-gt-game-page]) { scroll-padding-top: 86px; }

body[data-gt-game-page] {
  --gt-game-navy: #081c36;
  --gt-game-ink: #f0f4fa;
  --gt-game-muted: #c2d2eb;
  --gt-game-body: "Source Sans 3", "Segoe UI", sans-serif;
  --gt-game-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  container-type: inline-size;
  margin: 0;
}

body[data-gt-game-page] .gt-game-header {
  position: sticky;
  z-index: 10;
  top: 0;
  margin: 0;
  border: 0;
  border-bottom: 1px solid #4e6684;
  padding: 0;
  background: var(--gt-game-navy);
  font: 600 1rem/1.2 var(--gt-game-body);
  color: var(--gt-game-ink);
}

body[data-gt-game-page] .gt-game-navigation {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2px 16px;
  max-width: 1264px;
  margin: 0 auto;
  border: 0;
  padding: 7px clamp(12px, 4vw, 32px);
  background: transparent;
}

body[data-gt-game-page] .gt-game-links,
body[data-gt-game-page] .gt-game-navigation a {
  display: flex;
  align-items: center;
  gap: 8px;
}

body[data-gt-game-page] .gt-game-navigation a {
  min-height: 44px;
  border: 0;
  font: inherit;
  color: var(--gt-game-ink);
  text-decoration: none;
  white-space: nowrap;
}

body[data-gt-game-page] .gt-game-brand img {
  display: block;
  flex: none;
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: grayscale(1);
}

body[data-gt-game-page] .gt-game-brand span {
  font: 700 1rem/0.98 var(--gt-game-display);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

body[data-gt-game-page] .gt-game-links a { padding: 0 10px; }

body[data-gt-game-page] .gt-game-links .gt-game-board-link {
  gap: 6px;
  border-radius: 3px;
  background: var(--gt-game-muted);
  color: var(--gt-game-navy);
  font-weight: 700;
}

body[data-gt-game-page] .gt-game-links a:hover { text-decoration: underline; text-underline-offset: 3px; }

body[data-gt-game-page] :is(.gt-game-navigation a, .gt-game-skip):focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

body[data-gt-game-page] .gt-game-skip {
  position: fixed;
  z-index: 11;
  top: 10px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-200%);
  background: var(--gt-game-navy);
  color: #fff;
  font-family: var(--gt-game-body);
}

body[data-gt-game-page] .gt-game-skip:focus { transform: none; }

body[data-gt-game-page] > main {
  margin-block-start: 0;
  padding-block-start: 0;
}

body[data-gt-game-page] main [data-gt-game-hero] {
  box-sizing: border-box;
  position: relative;
  display: block;
  grid-column: 1 / -1;
  inline-size: 100cqw;
  max-inline-size: none;
  min-height: 0;
  margin-block: 0 clamp(16px, 3vw, 28px);
  /* The body width excludes a classic scrollbar, including inside the G&T viewer. */
  margin-inline: calc(50% - 50cqw);
  border: 0;
  border-bottom: 1px solid #4e6684;
  border-radius: 0;
  padding-block: clamp(24px, 4vw, 48px);
  padding-inline: max(clamp(20px, 4vw, 48px), calc((100cqw - 1200px) / 2));
  background: linear-gradient(90deg, #081c36 0%, #081c36f0 40%, #081c36a6 75%, #081c366e 100%), var(--gt-game-photo) center / cover, #081c36;
  box-shadow: none;
  color: var(--gt-game-ink);
  text-align: left;
  font: 400 1.0625rem/1.5 var(--gt-game-body);
}

body[data-gt-game-page="gt-scheduler-control-room"] main [data-gt-game-hero] { margin-block-end: 0; }
body[data-gt-game-page="gt-scheduler-control-room"] main .board { grid-column: auto; }

body[data-gt-game-page] main [data-gt-game-hero]::before,
body[data-gt-game-page] main [data-gt-game-hero]::after,
body[data-gt-game-page] main [data-gt-game-hero] > .gtv-art { display: none; }

body[data-gt-game-page] main [data-gt-game-hero] > h1 {
  max-width: none;
  margin: 0;
  padding: 0;
  font: 700 clamp(2.3rem, 5.5vw, 4.2rem)/0.98 var(--gt-game-display);
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;
  text-wrap: balance;
  text-transform: none;
  color: #fff;
}

body[data-gt-game-page] main [data-gt-game-hero] > p {
  max-width: min(57ch, 100%);
  margin: 10px 0 0;
  padding: 0;
  font: inherit;
  color: var(--gt-game-ink);
}

body[data-gt-game-page] main [data-gt-game-hero] > p:first-child {
  margin: 0 0 10px;
  border: 0;
  color: var(--gt-game-muted);
  font: 700 0.8rem/1.3 var(--gt-game-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body[data-gt-game-page] main [data-gt-game-hero] > .tag {
  display: inline-block;
  margin: 12px 0 0;
  border: 1px solid #aec4e4;
  padding: 3px 9px;
  background: #0b2546;
  color: var(--gt-game-ink);
  font: 600 0.8rem/1.3 var(--gt-game-body);
}

@media (max-width: 560px) {
  body[data-gt-game-page] .gt-game-navigation { gap: 0 8px; }
  body[data-gt-game-page] .gt-game-links { gap: 2px; }
  body[data-gt-game-page] .gt-game-links a { padding: 0 7px; font-size: 0.9375rem; }
  body[data-gt-game-page] .gt-game-brand span { display: none; }

  body[data-gt-game-page] main [data-gt-game-hero] {
    background-image: linear-gradient(90deg, #081c36f4, #081c36c7), var(--gt-game-photo);
  }
}
