/* ============================================================================
   Joybox — hub styles
   Same luminous glassmorphism family as PRISMA: deep nebula, spectrum gradient,
   frosted-glass tiles. Self-contained (no dependency on the game bundle).
   ========================================================================== */

:root {
  --bg: radial-gradient(125% 125% at 50% 0%, #1a1340 0%, #0b0a1f 55%, #05040f 100%);
  --text: #f4f3ff;
  --text-dim: rgba(244, 243, 255, 0.62);
  --panel: rgba(255, 255, 255, 0.06);
  --panel-strong: rgba(255, 255, 255, 0.1);
  --panel-border: rgba(255, 255, 255, 0.12);
  --accent: #a78bfa;
  --radius: 20px;
  --radius-sm: 13px;
  --font: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --maxw: 980px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: #05040f;
  background-image: var(--bg);
  background-attachment: fixed;
  min-height: 100dvh;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

/* ── Ambient color blobs ─────────────────────────────────────────────────── */
.aura {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.blob {
  position: absolute;
  width: 46vmax;
  height: 46vmax;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  will-change: transform;
}
.blob--a {
  background: radial-gradient(circle, #7c3aed, transparent 70%);
  top: -14vmax;
  left: -10vmax;
  animation: drift 22s ease-in-out infinite alternate;
}
.blob--b {
  background: radial-gradient(circle, #22d3ee, transparent 70%);
  bottom: -18vmax;
  right: -12vmax;
  animation: drift 27s ease-in-out infinite alternate-reverse;
}
.blob--c {
  background: radial-gradient(circle, #f43f5e, transparent 70%);
  top: 30%;
  right: 20%;
  opacity: 0.22;
  animation: drift 31s ease-in-out infinite alternate;
}
@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(6vmax, 4vmax, 0) scale(1.12);
  }
}
@media (prefers-reduced-motion: reduce) {
  .blob {
    animation: none;
  }
}

/* ── Shell ───────────────────────────────────────────────────────────────── */
.shell {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(28px, 6vw, 72px) 20px 48px;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

/* ── Masthead ──────────────────────────────────────────────────────────── */
.masthead {
  text-align: center;
  margin-bottom: clamp(28px, 5vw, 52px);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.logo__mark {
  filter: drop-shadow(0 0 12px rgba(167, 139, 250, 0.45));
}
.logo__word {
  font-size: clamp(34px, 8vw, 56px);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(
    100deg,
    #f43f5e,
    #fb923c,
    #facc15,
    #4ade80,
    #22d3ee,
    #818cf8
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tagline {
  margin-top: 18px;
  font-size: clamp(20px, 4vw, 30px);
  font-weight: 700;
}
.subtag {
  margin-top: 8px;
  color: var(--text-dim);
  font-size: clamp(14px, 2.6vw, 17px);
}

/* ── Grid ──────────────────────────────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}
.tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 0% 0%, var(--tile-accent, #a78bfa), transparent 55%);
  opacity: 0.16;
  transition: opacity 0.22s ease;
}
.tile > * {
  position: relative;
}
.tile--live:hover,
.tile--live:focus-visible {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--tile-accent, #a78bfa) 55%, transparent);
  box-shadow: 0 16px 40px -16px var(--tile-accent, #a78bfa);
  outline: none;
}
.tile--live:hover::before,
.tile--live:focus-visible::before {
  opacity: 0.3;
}
.tile--soon {
  cursor: default;
}
.tile--soon .tile__icon,
.tile--soon .tile__title,
.tile--soon .tile__desc {
  opacity: 0.62;
}

.tile__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 30px;
  background: var(--panel-strong);
  border: 1px solid var(--panel-border);
}
.tile__title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.tile__desc {
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.5;
  flex: 1;
}
.tile__cta {
  align-self: flex-start;
  margin-top: 2px;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  background: var(--tile-accent, #a78bfa);
  color: #0b0a1f;
}
.tile__badge {
  align-self: flex-start;
  margin-top: 2px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: var(--panel-strong);
  border: 1px solid var(--panel-border);
}

/* ── Footer ────────────────────────────────────────────────────────────── */
.footer {
  margin-top: auto;
  padding-top: 44px;
  text-align: center;
  color: var(--text-dim);
  font-size: 13.5px;
}
.footer nav {
  margin-bottom: 8px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.footer a {
  color: var(--text-dim);
  text-decoration: none;
}
.footer a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* ── Content pages (about / privacy) ───────────────────────────────────── */
.page {
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
}
.page__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
}
.page__back:hover {
  color: var(--text);
}
.page h1 {
  font-size: clamp(28px, 6vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.page .updated {
  color: var(--text-dim);
  font-size: 13.5px;
  margin-bottom: 28px;
}
.page h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 30px 0 10px;
}
.page p,
.page li {
  color: rgba(244, 243, 255, 0.82);
  line-height: 1.7;
  font-size: 16px;
}
.page p {
  margin-bottom: 14px;
}
.page ul {
  margin: 0 0 14px 22px;
}
.page li {
  margin-bottom: 6px;
}
.page a {
  color: var(--accent);
  text-decoration: none;
}
.page a:hover {
  text-decoration: underline;
}
