/* The Copero frame surrounds the game, which supplies its own court and controls. */
body {
  --site-paper: #f2f0e7;
  --site-forest: #092b20;
  --site-ink: #11251e;
  --site-muted: #405e52;
  --site-line: #b8c5bd;
  --site-accent: #d8ff4f;
  color-scheme: light;
  background: var(--site-paper);
  color: var(--site-ink);
  padding-bottom: var(--career-ad-bottom, 0px);
}

.game, .arena, #game, #arena {
  scroll-margin-top: max(12px, var(--career-ad-top, 0px));
}

.game, .arena {
  color-scheme: dark;
  color: var(--text, var(--ink));
}

.arena { background: var(--page); }

.mast {
  padding-top: var(--career-ad-flow-top, 0px);
  background: var(--site-paper);
  border-color: var(--site-line);
}

.mast .brand { color: var(--site-forest); }
.mast .back {
  color: var(--site-forest);
  font: 700 .78rem/1.35 ui-monospace, monospace;
  text-transform: uppercase;
  text-underline-offset: .2em;
}

.hero h1 {
  color: var(--site-forest);
  font: 850 clamp(2.55rem, 8vw, 5.3rem)/.95 system-ui, sans-serif;
  letter-spacing: -.04em;
  text-shadow: none;
  text-transform: none;
}
.hero .kicker, .hero p:last-child { color: var(--site-muted); }
.hero p:last-child { line-height: 1.5; }

.guide { margin: clamp(2rem, 5vw, 3.5rem) 0; }
.guide h2 { margin: 0 0 .65rem; font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.2; }
.guide p { max-width: 68ch; color: var(--site-muted); line-height: 1.7; }
.guide details, .guide .grades :is(th, td) { border-color: var(--site-line); }
.game-editorial { margin: 2rem 0; }
.game-editorial section + section { margin-top: 1.75rem; }
.game-editorial h3 { margin: 0 0 .55rem; font-size: clamp(1.15rem, 2.2vw, 1.4rem); line-height: 1.25; }
.game-editorial p { margin: .55rem 0; }

.languages {
  margin-bottom: clamp(1rem, 4vw, 2rem);
  border-top: 1px solid var(--site-line);
}
.languages a { color: var(--site-muted); text-underline-offset: .2em; }
.languages a[aria-current] { color: var(--site-forest); font-weight: 750; }

.site-game-footer { background: var(--site-forest); border: 0; color: white; }
.site-game-footer .shell { display: flex; flex-wrap: wrap; align-items: center; gap: .85rem 1.5rem; padding-block: 1.65rem; }
.site-game-footer .brand { color: white; }
.site-game-footer nav { display: flex; flex-wrap: wrap; gap: .6rem 1rem; }
.site-game-footer nav a { color: #e5ece8; font-size: .8rem; text-underline-offset: .22em; }
.site-game-footer small { margin-inline-start: auto; color: #c4d3ca; font: 600 .68rem/1.4 ui-monospace, monospace; letter-spacing: .07em; }
.site-game-footer a:hover { color: var(--site-accent); }
.mast a:focus-visible, .guide summary:focus-visible, .languages a:focus-visible { outline-color: var(--site-forest); }
.site-game-footer a:focus-visible { outline-color: var(--site-accent); }

@media (max-width: 42rem) {
  .site-game-footer .shell { flex-direction: column; align-items: flex-start; row-gap: .9rem; }
  .site-game-footer small { margin-inline-start: 0; }
}

.game-related {
  margin: clamp(1.15rem, 3.5vw, 2rem) 0;
  padding: .9rem 0;
  border-block: 1px solid var(--site-line);
}
.game-related h2 { margin: 0 0 .55rem; font: 750 .78rem/1.35 ui-monospace, monospace; letter-spacing: .07em; text-transform: uppercase; }
.game-related ul { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; list-style: none; }
.game-related li { flex: 0 1 16rem; }
.game-related a {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: .15rem .6rem;
  align-items: center;
  min-height: 2.7rem;
  padding: .5rem .7rem;
  border: 1px solid var(--site-line);
  border-radius: .35rem;
  color: var(--site-forest);
  background: #faf7ed;
  text-decoration: none;
}
.game-related a:hover { border-color: var(--site-forest); }
.game-related a:focus-visible { outline: 2px solid var(--site-forest); outline-offset: 2px; }
.game-related a span:not(.related-arrow) { grid-column: 1; color: var(--site-muted); font-size: .8rem; }
.game-related .related-arrow { grid-area: 1 / 2 / span 2; }
