/* Public-site component styles. Layout/spacing/colour mostly come from Mojo utility classes in the markup;
   this file only holds what utilities don't express well. Keep the palette in sync with assets/js/theme.js. */
:root {
  --c-body: #0d0d20;
  --c-surf: #171630;
  --c-surfhi: #221f45;
  --c-line: #2c2956;
  --c-pri: #7c3aed;
  --c-prilt: #a78bfa;
  --c-acc: #2dd4bf;
  --c-warm: #fbbf24;
  --c-muted: #a2a8c8;
}

/* ------------------------------------------------------------ accessibility */
.skip-link {
  position: absolute; top: -4rem; inset-inline-start: 1rem; z-index: 100;
  background: var(--c-acc); color: #04201c; padding: .6rem 1rem; border-radius: .6rem; font-weight: 700;
}
.skip-link:focus { top: .75rem; }

/* ------------------------------------------------------------------- header */
.site-header {
  background: rgba(13, 13, 32, .78);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--c-line);
}
.nav-link { position: relative; padding: .5rem .15rem; color: var(--c-muted); transition: color .2s; }
.nav-link:hover, .nav-link[aria-current="page"] { color: #fff; }

/* --------------------------------------------------------------------- hero */
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(42rem 28rem at 100% 0%, rgba(124, 58, 237, .34), transparent 62%),
    radial-gradient(40rem 26rem at 0% 0%, rgba(124, 58, 237, .30), transparent 62%),
    radial-gradient(32rem 22rem at 5% 55%, rgba(45, 212, 191, .16), transparent 60%);
}
.grad-text {
  background: linear-gradient(100deg, #c4b5fd 0%, #a78bfa 35%, #2dd4bf 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-fill-color: transparent;
}
.hero-art { position: relative; width: 100%; max-width: 26rem; margin-inline: auto; }
.hero-art::before {
  content: ""; position: absolute; inset: 8% 6% -4%; border-radius: 2rem; z-index: 0;
  background: linear-gradient(140deg, rgba(124, 58, 237, .55), rgba(45, 212, 191, .35));
  filter: blur(34px); opacity: .55;
}
.hero-art > a { position: relative; z-index: 1; display: block; transform: rotate(-2deg); transition: transform .35s cubic-bezier(.16, 1, .3, 1); }
.hero-art > a:hover { transform: rotate(0) translateY(-4px); }
.hero-art img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; border-radius: 1.5rem; border: 1px solid rgba(255, 255, 255, .12); }

/* -------------------------------------------------------------------- cards */
.card { background: var(--c-surf); border: 1px solid var(--c-line); border-radius: 1.25rem; }
.game-card { transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.game-card:hover { transform: translateY(-4px); border-color: rgba(167, 139, 250, .55); box-shadow: 0 18px 40px -18px rgba(124, 58, 237, .55); }
.stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.above { position: relative; z-index: 2; }

.cover { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.cover-ph {
  width: 100%; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, #2a1f63, #12303a); color: rgba(255, 255, 255, .85); font-size: 5rem; font-weight: 900;
}

.pill { display: inline-flex; align-items: center; gap: .4rem; border-radius: 999px; padding: .2rem .8rem; font-size: .85rem; font-weight: 700; line-height: 1.6; }
.pill-ok   { background: rgba(45, 212, 191, .16); color: #5eead4; border: 1px solid rgba(45, 212, 191, .35); }
.pill-soon { background: rgba(251, 191, 36, .14); color: #fcd34d; border: 1px solid rgba(251, 191, 36, .35); }
.chip { border: 1px solid var(--c-line); background: rgba(255, 255, 255, .04); color: var(--c-muted); }

/* buttons: shared glow for the primary action */
.btn-glow { box-shadow: 0 10px 28px -10px rgba(124, 58, 237, .85); }
.badge-link { display: inline-block; border-radius: .6rem; transition: transform .2s ease, filter .2s ease; }
.badge-link:hover { transform: translateY(-2px) scale(1.03); filter: brightness(1.1); }
.badge-link img { display: block; height: 100%; width: auto; }

/* --------------------------------------------------------------- game page */
.prose p { line-height: 2.1; max-width: 46rem; margin: 0 0 1rem; color: #d6d9ee; }
.meta-row { display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--c-line); }
.meta-row:last-child { border-bottom: 0; }

.shots {
  display: flex; gap: 1rem; overflow-x: auto; padding: .25rem .25rem 1rem;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
}
.shot { all: unset; box-sizing: border-box; flex: 0 0 auto; scroll-snap-align: start; cursor: zoom-in; border-radius: 1rem; }
.shot:focus-visible { outline: 3px solid var(--c-acc); outline-offset: 3px; }
.shot img {
  display: block; height: 20rem; width: auto; max-width: none; border-radius: 1rem;
  border: 1px solid var(--c-line); transition: transform .25s ease, border-color .25s ease;
}
.shot:hover img { transform: translateY(-3px); border-color: rgba(167, 139, 250, .6); }
@media (min-width: 768px) { .shot img { height: 26rem; } }

dialog.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(7, 7, 20, .92); color: #fff;
}
dialog.lightbox::backdrop { background: rgba(7, 7, 20, .6); }
dialog.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lb-img { max-width: min(92vw, 70rem); max-height: 86vh; width: auto; height: auto; border-radius: 1rem; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.lb-btn {
  position: absolute; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%;
  background: rgba(255, 255, 255, .12); color: #fff; border: 0; cursor: pointer; transition: background .2s;
}
.lb-btn:hover { background: rgba(255, 255, 255, .24); }
.lb-btn svg { width: 1.4rem; height: 1.4rem; }
.lb-close { top: 1rem; inset-inline-end: 1rem; }
.lb-prev  { top: 50%; inset-inline-start: 1rem; transform: translateY(-50%); }
.lb-next  { top: 50%; inset-inline-end: 1rem;   transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); font-size: .95rem; color: #cfd2ea; }

/* ------------------------------------------------------------------- footer */
.site-footer { background: #090918; border-top: 1px solid var(--c-line); }
.foot-link { color: var(--c-muted); transition: color .2s; }
.foot-link:hover { color: #fff; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--c-line), transparent); border: 0; }

.cta-band {
  background:
    radial-gradient(28rem 16rem at 100% 0%, rgba(124, 58, 237, .5), transparent 60%),
    radial-gradient(24rem 14rem at 0% 100%, rgba(45, 212, 191, .25), transparent 60%),
    var(--c-surf);
  border: 1px solid var(--c-line); border-radius: 1.75rem;
}

@media (prefers-reduced-motion: reduce) {
  .hero-art > a, .game-card, .shot img, .badge-link { transition: none; }
  .hero-art > a { transform: none; }
  .game-card:hover, .shot:hover img, .badge-link:hover, .hero-art > a:hover { transform: none; }
}
