:root {
  --bg: #07090f;
  --bg-deep: #0a0f1e;
  --panel: #0f1426;
  --panel-2: #141a33;
  --text: #f5f7ff;
  --muted: #9aa7c2;
  --accent: #15f4ff;
  --accent-2: #ff4fd8;
  --accent-3: #7a5cff;
  --border: rgba(21, 244, 255, 0.22);
  --ghost-border: rgba(255, 255, 255, 0.35);
  --shadow: rgba(4, 8, 20, 0.6);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --header-offset: 80px;
  --font-body: sans-serif;
  --font-logo: sans-serif
}

*,
::after,
::before {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset)
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: radial-gradient(circle at 20% 20%, rgba(21, 244, 255, .12), transparent 55%), radial-gradient(circle at 80% 10%, rgba(255, 79, 216, .15), transparent 45%), linear-gradient(135deg, var(--bg) 0, var(--bg-deep) 60%, #06070c 100%);
  min-height: 100vh;
  line-height: 1.5
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 60% 80%, rgba(124, 255, 107, .08), transparent 40%);
  pointer-events: none;
  z-index: -1
}

a {
  color: inherit;
  text-decoration: none
}

img {
  max-width: 100%;
  display: block
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(7, 9, 15, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(21, 244, 255, .12)
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 16px
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-logo);
  font-size: 1.4rem;
  letter-spacing: 2px
}

.logo-text {
  display: block;
  height: 24px;
  width: auto;
  max-width: min(320px, 60vw);
  object-fit: contain
}

.logo-mark {
  position: relative;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px
}

.logo-mark .jglogo {
  width: 100%;
  height: 100%;
  display: block
}

.logo-mark img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain
}

.nav {
  display: none;
  gap: 20px;
  font-weight: 500
}

.nav a {
  color: var(--muted)
}

.nav a:focus-visible,
.nav a:hover {
  color: var(--text)
}

.nav a[aria-current=page] {
  color: var(--text)
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  background: 0 0;
  color: var(--text);
  line-height: 1;
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease
}

.btn .icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 22px
}

.btn .icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block
}

.btn .icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: currentColor
}

.btn .icon .icon-envelope {
  fill: none;
  stroke: var(--text)
}

.btn .label {
  line-height: 1.1
}

.btn.primary {
  background: linear-gradient(120deg, rgba(21, 244, 255, .18), rgba(255, 79, 216, .18));
  border-color: var(--border);
  box-shadow: none
}

.btn.primary:focus-visible,
.btn.primary:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(21, 244, 255, .25)
}

.btn.ghost {
  --ghost-icon: var(--ghost-border);
  border-color: var(--ghost-border)
}

.btn.ghost:focus-visible,
.btn.ghost:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(21, 244, 255, .25)
}

.btn.ghost .EP2xGe {
  fill: transparent
}

.share-button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer
}

/* .btn is an author rule, so it outranks the display none the browser gives
   [hidden] and the attribute has to be honoured here by hand. */
.share-button[hidden] {
  display: none
}

.share-button.is-copied {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(21, 244, 255, .25)
}

.hero {
  padding: 24px 0 0
}

.hero-grid {
  display: grid;
  gap: 32px
}

.eyebrow {
  color: var(--accent);
  font-size: .78rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 600
}

h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  margin: 12px 0 16px
}

.hero p {
  color: var(--muted);
  margin: 0 0 24px
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px
}

.tag {
  display: grid;
  place-items: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(21, 244, 255, .2);
  background: rgba(7, 9, 15, .65);
  color: #d6def7;
  font-size: .78rem;
  letter-spacing: .3px;
  line-height: 1;
  text-align: center;
  box-shadow: inset 0 0 12px rgba(21, 244, 255, .08)
}

.neon-frame {
  display: grid;
  gap: 12px;
  border-radius: var(--radius-lg);
  padding: 12px;
  background: linear-gradient(140deg, rgba(21, 244, 255, .18), rgba(255, 79, 216, .16));
  box-shadow: 0 24px 50px var(--shadow);
  height: 100%;
  grid-template-rows: auto 1fr
}

.neon-frame img {
  border-radius: var(--radius-md);
  height: 220px;
  width: 100%;
  object-fit: cover
}

.frame-tags {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  padding: 10px 6px 2px;
  border-top: 1px solid rgba(21, 244, 255, .08)
}

section {
  padding: 24px 0
}

h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  margin: 0 0 16px
}

.section-lead {
  color: var(--muted);
  margin: 0 0 28px
}

.games-grid {
  display: grid;
  gap: 20px;
  align-items: stretch
}

.game-item {
  display: grid;
  gap: 12px;
  align-content: stretch;
  grid-template-rows: 1fr auto
}

.game-card {
  background: var(--panel);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(21, 244, 255, .08);
  overflow: hidden;
  box-shadow: 0 18px 40px var(--shadow)
}

.game-card img {
  width: 100%;
  height: 220px;
  object-fit: cover
}

.game-content {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  height: 100%
}

.game-content h3 {
  margin-top: 0
}

.game-content h3 a:focus-visible,
.game-content h3 a:hover {
  color: var(--accent)
}

.game-content p {
  color: var(--muted);
  margin-top: -8px;
  margin-bottom: 18px
}

.game-more {
  color: var(--accent);
  font-weight: 600;
  font-size: .92rem;
  margin: -8px 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px
}

.game-more:focus-visible,
.game-more:hover {
  text-decoration: underline
}

.game-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto
}

.faq-section {
  border-top: 1px solid rgba(21, 244, 255, .08)
}

.faq-card {
  background: rgba(8, 11, 21, .72);
  border: 1px solid rgba(21, 244, 255, .12);
  border-radius: var(--radius-lg);
  padding: 0;
  box-shadow: 0 18px 40px var(--shadow)
}

.faq-card+.faq-card {
  margin-top: 20px
}

.faq-group-summary {
  list-style: none;
  cursor: pointer;
  padding: 22px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px
}

.faq-group-summary::-webkit-details-marker {
  display: none
}

.faq-group-summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.4rem;
  line-height: 1;
  flex: 0 0 auto;
  margin-top: 4px
}

.faq-card[open] .faq-group-summary::after {
  content: "-"
}

.faq-group-heading h3 {
  margin: 0 0 8px
}

.faq-group-heading p {
  color: var(--muted);
  margin: 0
}

.faq-group-body {
  padding: 0 22px 22px
}

.faq-list {
  display: grid;
  gap: 12px
}

.faq-item {
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius-md);
  background: rgba(15, 20, 38, .78);
  overflow: hidden
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px
}

.faq-item summary::-webkit-details-marker {
  display: none
}

.faq-item summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.2rem;
  line-height: 1;
  flex: 0 0 auto
}

.faq-item[open] summary::after {
  content: "-"
}

.faq-answer {
  padding: 0 18px 18px;
  color: var(--muted)
}

.faq-answer p {
  margin: 0
}

.faq-trigger {
  min-width: 112px
}

.community {
  background: linear-gradient(120deg, rgba(15, 20, 38, .9), rgba(20, 26, 51, .9));
  border-top: 1px solid rgba(21, 244, 255, .08);
  border-bottom: 1px solid rgba(21, 244, 255, .08)
}

.community-card {
  display: grid;
  gap: 24px;
  background: rgba(8, 11, 21, .6);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, .08)
}

.community-card p {
  color: var(--muted)
}

.contact {
  color: var(--text);
  font-weight: 600;
  margin-top: 16px
}

.footer {
  padding: 36px 0 56px;
  color: var(--muted);
  font-size: .95rem
}

.footer .links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px
}

.footer .links a {
  color: var(--muted)
}

.footer .links a:focus-visible,
.footer .links a:hover {
  color: var(--text)
}

/* ============ Game pages ============ */

.crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 0 0;
  font-size: .82rem;
  color: var(--muted);
  list-style: none;
  margin: 0 auto
}

.crumbs li {
  display: inline-flex;
  align-items: center;
  gap: 8px
}

.crumbs a:focus-visible,
.crumbs a:hover {
  color: var(--text)
}

.crumbs svg {
  opacity: .5;
  flex: 0 0 14px
}

.crumbs [aria-current=page] {
  color: #d6def7
}

.ghero-grid {
  display: grid;
  gap: 32px;
  align-items: center
}

.ghero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start
}

.ghero-copy p {
  color: var(--muted);
  margin: 0 0 24px;
  max-width: 32em;
  text-wrap: pretty
}

.ghero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px
}

.ghero-art {
  border-radius: var(--radius-lg);
  padding: 12px;
  background: linear-gradient(140deg, rgba(21, 244, 255, .18), rgba(255, 79, 216, .16));
  box-shadow: 0 24px 50px var(--shadow)
}

.ghero-art img {
  border-radius: var(--radius-md);
  width: 100%;
  height: 240px;
  object-fit: cover
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0
}

.fact {
  background: rgba(8, 11, 21, .72);
  border: 1px solid rgba(21, 244, 255, .12);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px
}

.fact span {
  color: var(--muted);
  font-size: .74rem;
  letter-spacing: 1.6px;
  text-transform: uppercase
}

.fact strong {
  font-size: 1rem
}

.about-grid {
  display: grid;
  gap: 32px;
  align-items: start
}

.prose {
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--muted);
  font-size: 1.02rem;
  text-wrap: pretty
}

.prose p {
  margin: 0
}

.about-aside {
  background: rgba(15, 20, 38, .78);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px
}

.about-aside h3 {
  font-size: 1.05rem;
  margin: 0
}

.about-aside dl {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--muted);
  font-size: .94rem;
  margin: 0
}

.arow {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .07)
}

.arow:last-child {
  padding-bottom: 0;
  border-bottom: 0
}

.arow dt {
  color: #d6def7
}

.arow dd {
  margin: 0;
  text-align: right
}

.arow dd.is-boss {
  color: var(--accent)
}

.species-list .arow {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px
}

.species-list .arow dd {
  text-align: left;
  font-size: .85rem
}

.shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px
}

.shot {
  margin: 0;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(21, 244, 255, .12);
  box-shadow: 0 18px 40px var(--shadow)
}

.shot img {
  display: block;
  width: 100%;
  height: 196px;
  object-fit: cover
}

.shot-ph {
  height: 196px;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(21, 244, 255, .28);
  background: rgba(8, 11, 21, .5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 16px
}

.shot-ph svg {
  color: var(--accent);
  opacity: .8
}

.shot-ph b {
  font-size: .86rem;
  color: #d6def7
}

.shot-ph span {
  font-size: .78rem;
  color: var(--muted)
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px
}

.fcard {
  background: var(--panel);
  border: 1px solid rgba(21, 244, 255, .08);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 18px 40px var(--shadow)
}

.fcard-head {
  display: flex;
  align-items: center;
  gap: 10px
}

.fcard-head svg,
.fcard-head .fcard-icon {
  width: 26px;
  height: 26px;
  flex: none;
  color: var(--accent);
  stroke-width: 1.7;
  overflow: visible;
  shape-rendering: geometricPrecision
}

.fcard h3 {
  font-size: 1.08rem;
  margin: 0
}

.fcard p {
  color: var(--muted);
  font-size: .95rem;
  margin: 0;
  text-wrap: pretty
}

.steps-panel {
  background: linear-gradient(120deg, rgba(15, 20, 38, .9), rgba(20, 26, 51, .9));
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius-lg);
  padding: 28px
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step
}

.step {
  display: flex;
  flex-direction: column;
  gap: 8px;
  counter-increment: step
}

.step::before {
  content: "0" counter(step);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  opacity: .55
}

.step h3 {
  font-size: 1rem;
  margin: 0
}

.step p {
  color: var(--muted);
  font-size: .93rem;
  margin: 0;
  text-wrap: pretty
}

.cross {
  display: grid;
  gap: 20px;
  align-items: center;
  background: rgba(8, 11, 21, .72);
  border: 1px solid rgba(21, 244, 255, .12);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 18px 40px var(--shadow)
}

.cross:focus-visible,
.cross:hover {
  border-color: var(--accent)
}

.cross img {
  border-radius: var(--radius-md);
  width: 100%;
  height: 150px;
  object-fit: cover
}

.cross-body {
  display: flex;
  flex-direction: column;
  gap: 6px
}

.cross-body h2 {
  font-size: 1.5rem;
  margin: 0
}

.cross-body p {
  color: var(--muted);
  margin: 0;
  font-size: .97rem
}

@media (min-width:880px) {
  .nav {
    display: flex
  }

  .neon-frame img {
    height: 260px
  }

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

  .faq-trigger {
    min-width: 148px
  }

  .ghero-grid {
    grid-template-columns: minmax(0, 1fr) 470px;
    gap: 44px
  }

  .ghero-art img {
    height: 330px
  }

  .facts {
    grid-template-columns: repeat(4, minmax(0, 1fr))
  }

  .about-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 48px
  }

  .shots {
    grid-template-columns: repeat(3, minmax(0, 1fr))
  }

  .steps-panel {
    padding: 32px
  }

  .cross {
    grid-template-columns: 260px minmax(0, 1fr) auto;
    gap: 28px
  }
}

@media (max-width:879px) {
  .header-inner {
    justify-content: center
  }

  .logo {
    justify-content: center
  }

  .logo-text {
    margin: 0 auto
  }

  .ghero-actions {
    flex-direction: column;
    align-items: stretch;
    align-self: stretch;
    width: 100%
  }

  .ghero-actions .btn.primary {
    height: 52px
  }

  .ghero-secondary {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px
  }

  .ghero-secondary .btn {
    flex: 1 1 0;
    min-width: 0
  }

  /* Discord and Reddit already fill the row on a phone, so Share takes its own. */
  .ghero-secondary .share-button {
    flex: 1 1 100%
  }
}

@media (max-width:520px) {
  .game-actions {
    flex-wrap: wrap
  }

  .game-actions .btn {
    flex: 1 1 calc(50% - 10px);
    justify-content: center
  }

  .shot img,
  .shot-ph {
    height: 130px
  }

  .shot-ph svg {
    display: none
  }
}

@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto
  }

  .btn {
    transition: none
  }
}
