:root {
  --cq3-void: #050b12;
  --cq3-deep: #0a1520;
  --cq3-panel: #122433;
  --cq3-line: rgba(140, 190, 220, 0.16);
  --cq3-foam: #e8f4fa;
  --cq3-mist: #9bb4c8;
  --cq3-sea: #2eb8e0;
  --cq3-gold: #e2b45a;
  --cq3-gold-ink: #1a1408;
  --cq3-radius: 6px;
  --cq3-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body.cq3-body {
  margin: 0;
  min-height: 100vh;
  color: var(--cq3-foam);
  background: var(--cq3-deep);
  font-family: "Atkinson Hyperlegible", "Segoe UI", sans-serif;
  font-size: 1.05rem;
  line-height: 1.65;
  text-underline-offset: 0.18em;
  caret-color: var(--cq3-sea);
}

body.cq3-body::-webkit-scrollbar {
  width: 10px;
}

body.cq3-body::-webkit-scrollbar-track {
  background: var(--cq3-void);
}

body.cq3-body::-webkit-scrollbar-thumb {
  background: rgba(46, 184, 224, 0.35);
  border-radius: 6px;
  border: 2px solid var(--cq3-void);
}

a {
  color: var(--cq3-sea);
}

a:hover {
  color: #7ad7f2;
}

::selection {
  background: rgba(46, 184, 224, 0.35);
  color: #fff;
}

.cq3-skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: #000;
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}

.cq3-skip:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.cq3-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent);
}

.cq3-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.85rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cq3-brand {
  font-family: "Bricolage Grotesque", "Segoe UI", sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: #fff !important;
  text-decoration: none !important;
  letter-spacing: -0.02em;
}

.cq3-nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  padding: 0.45rem 0.75rem;
  border-radius: 4px;
  cursor: pointer;
}

.cq3-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cq3-menu a {
  color: rgba(255, 255, 255, 0.9) !important;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 0.92rem;
}

.cq3-menu a:hover {
  color: var(--cq3-gold) !important;
}

.cq3-menu .current-menu-item > a,
.cq3-menu .current_page_item > a {
  color: var(--cq3-gold) !important;
}

.cq3-main {
  padding: 0;
}

/* Hero — peak of the page (bolder pass) */
.cq3-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--cq3-void);
  color: #fff;
  isolation: isolate;
}

.cq3-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("https://cdn.akamai.steamstatic.com/steam/apps/2305840/library_hero.jpg") center / cover;
  transform: scale(1.04);
}

.cq3-hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cq3-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(5, 11, 18, 0.92) 0%, rgba(5, 11, 18, 0.55) 42%, rgba(5, 11, 18, 0.2) 68%, rgba(5, 11, 18, 0.75) 100%),
    linear-gradient(180deg, rgba(5, 11, 18, 0.35) 0%, transparent 35%, rgba(5, 11, 18, 0.95) 100%),
    radial-gradient(ellipse 80% 55% at 70% 40%, rgba(46, 184, 224, 0.18), transparent 55%);
}

.cq3-hero-stage {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 7.5rem 0 5.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(160px, 280px);
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: end;
  animation: cq3-rise 0.95s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.cq3-hero-content {
  text-align: left;
  max-width: 36rem;
}

.cq3-hero-title {
  margin: 0 0 0.85rem;
  font-family: "Bricolage Grotesque", "Segoe UI", sans-serif;
  font-weight: 800;
  font-size: clamp(2.1rem, 7.5vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-shadow:
    0 2px 0 rgba(5, 11, 18, 0.85),
    0 18px 60px rgba(0, 0, 0, 0.75);
  text-wrap: balance;
}

.cq3-hero-sub {
  margin: 0 0 1.75rem;
  color: rgba(232, 244, 250, 0.9);
  max-width: 32rem;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  line-height: 1.45;
}

.cq3-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.cq3-hero-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.85rem;
  min-height: 2.75rem;
  min-width: 9.5rem;
  padding: 0.55rem 1.15rem;
  border-radius: 3px;
  border: 1px solid rgba(226, 180, 90, 0.7);
  background: rgba(5, 11, 18, 0.72);
  color: var(--cq3-gold);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cq3-hero-play:hover {
  background: rgba(226, 180, 90, 0.18);
  border-color: var(--cq3-gold);
  color: #fff;
}

.cq3-hero-play:disabled {
  opacity: 0.7;
  cursor: wait;
}

.cq3-btn--hero {
  min-height: 3.35rem;
  padding: 0.75rem 1.55rem;
  font-size: 1.08rem;
  letter-spacing: 0.01em;
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.45),
    0 10px 28px rgba(226, 180, 90, 0.32);
}

.cq3-btn--hero:hover {
  filter: brightness(1.06);
  transform: translateY(-3px);
}

.cq3-hero .cq3-btn--ghost {
  min-height: 3.35rem;
  padding: 0.75rem 1.25rem;
  backdrop-filter: blur(6px);
  background: rgba(5, 11, 18, 0.55);
  border-color: rgba(46, 184, 224, 0.55);
}

.cq3-hero-status {
  margin: 0.95rem 0 0;
  min-height: 1.25rem;
  font-size: 0.85rem;
  color: rgba(185, 224, 247, 0.92);
}

.cq3-hero-keyart {
  margin: 0;
  justify-self: end;
  width: min(100%, 280px);
  filter: drop-shadow(0 28px 48px rgba(0, 0, 0, 0.65));
  transform: rotate(-2.5deg);
}

.cq3-hero-keyart img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: var(--cq3-radius);
  border: 2px solid rgba(226, 180, 90, 0.55);
  box-shadow:
    0 0 0 1px rgba(46, 184, 224, 0.25),
    0 22px 40px rgba(0, 0, 0, 0.5);
}

.cq3-hero-wave {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 72px;
  background:
    radial-gradient(120% 90% at 10% 0%, transparent 42%, var(--cq3-deep) 43%),
    radial-gradient(90% 90% at 45% 0%, transparent 42%, var(--cq3-deep) 43%),
    radial-gradient(110% 90% at 80% 0%, transparent 42%, var(--cq3-deep) 43%),
    linear-gradient(180deg, transparent 35%, var(--cq3-deep) 85%);
  pointer-events: none;
}

@keyframes cq3-rise {
  from {
    opacity: 0;
    transform: translateY(22px);
    filter: blur(5px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* Buttons */
.cq3-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.55rem 1.15rem;
  border-radius: 3px;
  font-weight: 700;
  text-decoration: none !important;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.cq3-btn:hover {
  transform: translateY(-2px);
}

.cq3-btn--gold {
  background: var(--cq3-gold);
  color: var(--cq3-gold-ink) !important;
}

.cq3-btn--sea {
  background: var(--cq3-sea);
  color: #04202c !important;
}

.cq3-btn--ghost {
  background: rgba(8, 18, 28, 0.45);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff !important;
}

.cq3-btn--steam {
  background: #1b2838;
  color: #fff !important;
}

.cq3-btn--ps {
  background: #003087;
  color: #fff !important;
}

.cq3-btn--xbox {
  background: #107c10;
  color: #fff !important;
}

.cq3-btn--nintendo {
  background: #e60012;
  color: #fff !important;
}

/* Hub */
.cq3-hub {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(1.25rem, 3.5vw, 2.25rem) clamp(1rem, 3vw, 1.5rem) 3.5rem;
}

#cq3-stores,
#cq3-wiki,
#cq3-hub {
  scroll-margin-top: 5rem;
}

.cq3-disclaimer {
  margin: 0 0 1.5rem;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(226, 180, 90, 0.28);
  border-radius: var(--cq3-radius);
  background: rgba(226, 180, 90, 0.12);
  color: #f0d9a8;
  font-size: 0.92rem;
}

.cq3-band {
  margin-bottom: 2.25rem;
}

.cq3-band h2,
.cq3-spotlight h2,
.cq3-article-head h1 {
  margin: 0 0 0.55rem;
  font-family: "Bricolage Grotesque", "Segoe UI", sans-serif;
  font-weight: 800;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  letter-spacing: -0.02em;
  color: #fff;
}

.cq3-muted {
  color: var(--cq3-mist);
  margin: 0 0 0.85rem;
}

.cq3-stores {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.cq3-stores--quiet .cq3-store {
  min-height: 2.6rem;
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: none;
  opacity: 0.92;
}

.cq3-band--stores {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--cq3-line);
}

.cq3-editorial {
  margin: 0 0 2.25rem;
  max-width: 68ch;
}

.cq3-editorial h2 {
  margin: 0 0 0.75rem;
  font-family: "Bricolage Grotesque", "Segoe UI", sans-serif;
  font-weight: 800;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  letter-spacing: -0.02em;
  color: #fff;
}

.cq3-editorial h3 {
  margin: 1.35rem 0 0.55rem;
  font-family: "Bricolage Grotesque", "Segoe UI", sans-serif;
  font-size: 1.15rem;
  color: #fff;
}

.cq3-editorial p,
.cq3-editorial li {
  color: var(--cq3-mist);
}

.cq3-editorial ul,
.cq3-editorial ol {
  margin: 0.5rem 0 1rem;
  padding-left: 1.2rem;
}

.cq3-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 0 0 0.85rem;
}

.cq3-footer-nav a {
  font-weight: 700;
}

.cq3-store {
  display: grid;
  place-items: center;
  min-height: 3.25rem;
  border-radius: var(--cq3-radius);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  transition: filter 0.2s ease, transform 0.2s ease;
}

.cq3-store--steam {
  background: linear-gradient(160deg, #243447, #171e28);
}

.cq3-store--ps {
  background: linear-gradient(160deg, #1a4fb5, #0b2a6b);
}

.cq3-store--xbox {
  background: linear-gradient(160deg, #1aa31a, #0d5c0d);
}

.cq3-store--nintendo {
  background: linear-gradient(160deg, #ff2a3c, #b00014);
}

.cq3-store:hover {
  filter: brightness(1.08);
  color: #fff !important;
  transform: translateY(-2px);
}

.cq3-wiki-tile:focus-visible,
.cq3-hero-play:focus-visible,
.cq3-btn:focus-visible {
  outline: 2px solid var(--cq3-gold);
  outline-offset: 3px;
}

.cq3-more {
  margin: 0.75rem 0 0;
}

.cq3-wiki-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 0.85rem 0 0.65rem;
}

.cq3-start-label {
  margin: 0.35rem 0 0.45rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--cq3-mist);
  letter-spacing: 0.02em;
}

.cq3-wiki-tile {
  display: grid;
  overflow: hidden;
  background: var(--cq3-panel);
  border: 1px solid var(--cq3-line);
  border-radius: var(--cq3-radius);
  box-shadow: var(--cq3-shadow);
  text-decoration: none !important;
  color: var(--cq3-foam) !important;
  transition: transform 0.2s ease;
}

.cq3-wiki-tile:hover {
  transform: translateY(-3px);
  color: #fff !important;
}

.cq3-wiki-tile img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.cq3-wiki-tile span {
  display: grid;
  gap: 0.25rem;
  padding: 0.95rem 1rem 1.1rem;
}

.cq3-wiki-tile strong {
  font-family: "Bricolage Grotesque", "Segoe UI", sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
}

.cq3-wiki-tile em {
  font-style: normal;
  color: var(--cq3-mist);
  font-size: 0.95rem;
}

.cq3-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cq3-quick a {
  font-weight: 700;
}

.cq3-spotlight {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  padding: 1.1rem;
  background: linear-gradient(165deg, #183044, var(--cq3-panel));
  border: 1px solid var(--cq3-line);
  border-radius: var(--cq3-radius);
  box-shadow: var(--cq3-shadow);
}

.cq3-spotlight__art {
  width: 100%;
  max-width: 220px;
}

.cq3-spotlight__art img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: center top;
  border-radius: 4px;
}

.cq3-spotlight__copy p,
.cq3-spotlight__copy li {
  color: var(--cq3-mist);
}

.cq3-spotlight__copy ul {
  margin: 0.75rem 0 1rem;
  padding-left: 1.15rem;
}

/* Inner pages */
.cq3-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 5.5rem 1.15rem 3rem;
}

body:not(.home) .cq3-header {
  position: sticky;
  background: rgba(5, 11, 18, 0.92);
  border-bottom: 1px solid var(--cq3-line);
  backdrop-filter: blur(8px);
}

body:not(.home) .cq3-brand,
body:not(.home) .cq3-menu a {
  color: var(--cq3-foam) !important;
}

.cq3-article {
  background: var(--cq3-panel);
  border: 1px solid var(--cq3-line);
  border-radius: var(--cq3-radius);
  padding: clamp(1.1rem, 3vw, 1.75rem);
  box-shadow: var(--cq3-shadow);
}

.cq3-article-body h2 {
  margin-top: 1.6rem;
  font-family: "Bricolage Grotesque", "Segoe UI", sans-serif;
  color: #fff;
}

.cq3-article-body .cq3-btn {
  margin: 0.35rem 0.35rem 0.35rem 0;
}

.cq3-note {
  color: var(--cq3-mist);
  font-size: 0.95rem;
}

.cq3-footer {
  border-top: 1px solid var(--cq3-line);
  padding: 1.25rem;
  color: var(--cq3-mist);
  font-size: 0.9rem;
}

.cq3-footer-inner {
  max-width: 1080px;
  margin: 0 auto;
}

@media (max-width: 820px) {
  .cq3-nav-toggle {
    display: inline-flex;
  }

  .cq3-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(5, 11, 18, 0.96);
    padding: 0.75rem 1rem 1rem;
  }

  .cq3-nav.is-open {
    display: block;
  }

  .cq3-menu {
    flex-direction: column;
  }

  .cq3-hero-stage {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding: 6.5rem 0 4.75rem;
  }

  .cq3-hero-content {
    text-align: center;
    max-width: 40rem;
  }

  .cq3-hero-actions {
    justify-content: center;
  }

  .cq3-hero-play {
    margin-left: auto;
    margin-right: auto;
  }

  .cq3-hero-keyart {
    justify-self: center;
    width: min(42vw, 180px);
    transform: rotate(-1.5deg);
    order: -1;
  }

  .cq3-stores,
  .cq3-wiki-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cq3-spotlight {
    grid-template-columns: 1fr;
  }

  .cq3-spotlight__art {
    max-width: 180px;
    margin: 0 auto;
  }
}

@media (max-width: 520px) {
  .cq3-stores,
  .cq3-wiki-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cq3-hero-stage {
    animation: none;
  }

  .cq3-hero-media {
    transform: none;
  }

  .cq3-hero-video,
  .cq3-hero-play {
    display: none;
  }

  .cq3-btn--hero:hover,
  .cq3-btn:hover {
    transform: none;
  }
}

a:focus-visible,
button:focus-visible,
.cq3-store:focus-visible {
  outline: 2px solid var(--cq3-gold);
  outline-offset: 3px;
}
