/* Match the Game Room's supported viewport; the shared frame's 20rem is 360px. */
body {
  min-width: 320px;
}

:root {
  --hex-ink: #342957;
  --hex-sand: #b5a4ed;
  --hex-paper: #dfd4fb;
  --hex-accent: #514178;
}

.game-brief {
  margin: clamp(2.5rem, 7vw, 5.5rem) auto 0;
  width: min(calc(100% - 2rem), 72rem);
}

.game-brief__breadcrumb {
  align-items: center;
  color: var(--rs-ink-soft);
  display: flex;
  flex-wrap: wrap;
  font-size: 1rem;
  gap: var(--rs-space-2);
  margin-bottom: var(--rs-space-5);
}

.game-brief__breadcrumb a {
  text-decoration: none;
}

.game-brief__breadcrumb [aria-current="page"] {
  color: var(--rs-ink);
}

.game-brief__hero {
  align-items: center;
  display: grid;
  gap: var(--rs-space-5);
  margin-bottom: var(--rs-space-6);
}

.game-brief__eyebrow {
  color: var(--hex-accent);
  font-family: var(--rs-font-mono);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: var(--rs-space-2);
  text-transform: uppercase;
}

.game-brief__hero h1 {
  color: var(--rs-ink);
  font-family: var(--rs-font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  letter-spacing: -0.055em;
  line-height: 0.98;
  margin: 0;
  text-wrap: balance;
}

.game-brief__hero > div > p {
  color: var(--rs-ink-soft);
  font-size: 1.08rem;
  max-width: 38rem;
}

.game-brief__facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--rs-space-2) 0;
  list-style: none;
  margin: var(--rs-space-4) 0 0;
  padding: 0;
}

.game-brief__facts li {
  color: var(--rs-ink-soft);
  padding: 0 var(--rs-space-3);
}

.game-brief__facts li:first-child {
  padding-left: 0;
}

.game-brief__facts li + li {
  border-left: 1px solid var(--rs-line);
}

.game-brief__play {
  align-items: start;
  background: color-mix(in srgb, var(--hex-sand) 24%, var(--rs-paper-raised));
  border: 1px solid color-mix(in srgb, var(--hex-ink) 24%, var(--rs-line));
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  gap: var(--rs-space-3);
  justify-self: start;
  padding: var(--rs-space-4);
}

.game-brief__play p {
  color: var(--rs-ink-soft);
  margin: 0;
}

.game-brief__play a {
  background: var(--hex-paper);
  border: 2px solid transparent;
  border-radius: 999px;
  color: #2b190e;
  display: inline-flex;
  font-family: var(--rs-font-mono);
  font-size: 1rem;
  font-weight: 700;
  justify-content: center;
  min-height: 48px;
  padding: 0.65rem 1rem;
  text-decoration: none;
}

.game-brief__play a:hover {
  background: #fff5df;
  color: #2b190e;
}

.game-brief__article {
  display: grid;
  gap: var(--rs-space-4);
}

.game-brief__section {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--hex-paper) 16%, transparent), transparent 38%),
    var(--rs-paper-raised);
  border: 1px solid color-mix(in srgb, var(--hex-ink) 24%, var(--rs-line));
  border-radius: 1rem;
  padding: clamp(1.3rem, 4vw, 2rem);
}

.game-brief__section h2 {
  color: var(--hex-ink);
  font-family: var(--rs-font-display);
  font-size: clamp(1.65rem, 4vw, 2.3rem);
  line-height: 1.08;
  margin: 0 0 var(--rs-space-3);
  text-wrap: balance;
}

.game-brief__section p:last-child,
.game-brief__section ul:last-child {
  margin-bottom: 0;
}

.game-brief__section li + li {
  margin-top: var(--rs-space-2);
}

:root[data-theme="dark"] .game-brief__eyebrow {
  color: #efc98c;
}

:root[data-theme="dark"] .game-brief__section h2 {
  color: #f4d5a4;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .game-brief__eyebrow {
    color: #efc98c;
  }

  :root:not([data-theme="light"]) .game-brief__section h2 {
    color: #f4d5a4;
  }
}

@media (min-width: 50rem) {
  .game-brief__hero {
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 20rem);
  }

  .game-brief__article {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .game-brief__section:nth-child(3),
  .game-brief__section:nth-child(5) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 34rem) {
  .game-brief__play {
    width: 100%;
  }

  .game-brief__play a {
    align-self: stretch;
  }
}

.game-brief { font-size: 1.125rem; line-height: 1.65; overflow-wrap: anywhere; }
.game-brief__section { min-width: 0; }
.game-brief__breadcrumb a { text-decoration: underline; }
.game-brief a:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }

/* The home-page introduction stays compact; supporting material is opt-in. */
.game-brief__hero--compact {
  grid-template-columns: minmax(0, 1fr);
  gap: var(--rs-space-3);
}

.game-brief__hero--compact .game-brief__play {
  background: none;
  border: 0;
  padding: 0;
}

.game-brief__details {
  border-top: 1px solid var(--rs-line);
}

.game-brief__details > summary {
  color: var(--rs-ink);
  cursor: pointer;
  font-weight: 600;
  padding: var(--rs-space-4) 0;
  min-height: 48px;
}

.game-brief__details > summary:hover {
  color: var(--rs-ink-soft);
}

.game-brief__details > summary:focus-visible,
.game-brief__hero--compact .game-brief__play a:focus-visible {
  outline: 3px solid var(--rs-ink);
  outline-offset: 5px;
  border-radius: 0.25rem;
}

.game-brief__supporting {
  padding: var(--rs-space-3) 0 var(--rs-space-5);
}

.game-brief__credits {
  grid-column: 1 / -1;
}

.game-brief__credits [data-game-credits] h2 {
  font-size: 1.4rem;
  margin-top: var(--rs-space-5);
}

/* Keep this informational page usable below the game's desktop play limit. */
body {
  min-width: 320px;
}

.rs-footer {
  overflow-wrap: anywhere;
}

.game-brief__credits [data-game-credits] > .game-brief__section {
  background: none;
  border: 0;
  padding: 0;
}
.game-brief__supporting p { color: var(--rs-ink-soft); }
