/* Keep each game's own viewport and scrolling rules. The guide only scrolls
   inside its modal, never below the play area. */
.cp-game-information:not([open]) { display: none; }
.cp-game-information::backdrop { background: #10152db3; }
.cp-game-help-launcher {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  z-index: 60;
}
.cp-game-help-launcher,
.cp-game-navigation {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: .5rem;
  pointer-events: auto;
}
.cp-game-help-button,
.cp-game-help-launcher > a,
.cp-game-information__close button {
  box-sizing: border-box;
  display: inline-flex;
  width: auto;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  margin: 0;
  padding: .5rem .75rem;
  border: 2px solid #2457db;
  border-radius: .85rem;
  background: #fff;
  color: #19233d;
  font: 800 .9rem/1.2 Nunito, system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
}
.cp-game-help-button > span[aria-hidden] {
  display: inline-grid;
  width: 1.4rem;
  height: 1.4rem;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
}
.cp-game-help-button:focus-visible,
.cp-game-information :focus-visible {
  outline: 3px solid #2457db;
  outline-offset: 3px;
}
.cp-game-information__close {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 1rem;
}

.cp-game-information {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  width: min(74rem, calc(100% - 2rem));
  max-width: none;
  max-height: calc(100dvh - 2rem);
  margin: auto;
  overflow: auto;
  overscroll-behavior: contain;
  border: 2px solid #cbd8ef;
  border-radius: 1.25rem;
  padding: 1rem clamp(1rem, 4vw, 3rem) 2rem;
  color: #19233d;
  background: #fff9f2;
  font-family: Nunito, ui-rounded, system-ui, sans-serif;
}

.cp-game-information__inner {
  width: min(100%, 72rem);
  margin: 0 auto;
}

.cp-game-information__eyebrow {
  margin: 0 0 0.5rem;
  color: #2457db;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.cp-game-information__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1rem;
  color: #536079;
  font-size: .9rem;
}
.cp-game-information__breadcrumb a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: #2457db;
}

.cp-game-information h1,
.cp-game-information h2 {
  margin: 0;
  color: #19233d;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.08;
}

.cp-game-information__summary {
  max-width: 48rem;
  margin: 0.8rem 0 1.5rem;
  font-size: 1.08rem;
  line-height: 1.65;
}

.cp-game-information__facts,
.cp-game-information__access dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.75rem;
  margin: 0;
}

.cp-game-information__facts > div,
.cp-game-information__access dl > div {
  padding: 0.9rem 1rem;
  border: 1px solid #dce4f5;
  border-radius: 0.9rem;
  background: white;
}

.cp-game-information dt {
  color: #53627b;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.cp-game-information dd {
  margin: 0.25rem 0 0;
  font-weight: 750;
  line-height: 1.45;
}

.cp-game-information__details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.cp-game-information__details section {
  padding: 1.1rem;
  border-radius: 1rem;
  background: #eef4ff;
}

.cp-game-information__details h3,
.cp-game-information__details p {
  margin: 0;
}

.cp-game-information__details p {
  margin-top: 0.45rem;
  line-height: 1.55;
}

.cp-game-information__access {
  margin-top: 1.25rem;
  padding: 1rem;
  border: 1px solid #cbd8ef;
  border-radius: 1rem;
  background: white;
}

.cp-game-information__access summary {
  min-height: 44px;
  font-weight: 850;
  cursor: pointer;
}

.cp-game-information__access dl {
  margin-top: 0.8rem;
}

.cp-game-information__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 1.4rem;
}

.cp-game-information__links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: #1747bd;
  font-weight: 800;
  text-underline-offset: 0.2em;
}

.cp-game-information__links span {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.cp-game-information .playhouse-footer {
  margin: 1.5rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid #cbd8ef;
  color: #19233d;
  background: transparent;
  font: inherit;
}

.cp-game-information .playhouse-footer p {
  margin: 0;
}

.cp-game-information .playhouse-footer a {
  color: #1747bd;
  font-weight: 800;
  text-underline-offset: 0.2em;
}

@media (max-width: 35rem) {
  .cp-game-information__facts,
  .cp-game-information__access dl,
  .cp-game-information__details {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 50rem) {
  .cp-game-help-button { padding: .4rem; }
  .cp-game-help-label { display: none; }
  /* These games center the brand independently of their header controls. */
  .topbar:has(.cp-game-navigation) .brand { position: static; transform: none; margin: auto; }
  .topbar:has(.cp-game-navigation) { flex-wrap: wrap; height: auto; min-height: 62px; padding-block: .4rem; }
}

.cp-game-dialog-exit {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: .75rem;
  color: inherit;
  font-weight: 800;
}
