/* ==========================================================================
   8 Ball Blaze: Neon Cue — Cyberpunk HUD landing page
   Palette from in-game UI: deep navy, neon cyan, hot pink, purple glass
   ========================================================================== */

:root {
  --bg-deep: #12132a;
  --bg-surface: #1a1b35;
  --bg-glass: rgba(30, 31, 58, 0.55);
  --cyan: #00e5ff;
  --cyan-dim: rgba(0, 229, 255, 0.15);
  --magenta: #ff4081;
  --magenta-dim: rgba(255, 64, 129, 0.15);
  --purple: #9b59b6;
  --purple-dim: rgba(155, 89, 182, 0.2);
  --orange: #ff9500;
  --lime: #a8ff3e;
  --gold: #ffd54f;
  --text: #f0f4ff;
  --text-muted: #8b90b8;
  --border-glass: rgba(255, 255, 255, 0.12);
  --glow-cyan: 0 0 20px rgba(0, 229, 255, 0.45), 0 0 60px rgba(0, 229, 255, 0.15);
  --glow-magenta: 0 0 20px rgba(255, 64, 129, 0.4);
  --font-display: "Rajdhani", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --dock-h: 76px;
  --top-h: 64px;
  --shot-ratio: 1242 / 2688;
  --transition: 200ms ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--top-h) + 16px);
  scroll-padding-bottom: calc(var(--dock-h) + 16px);
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-deep);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
  stroke-width: 2;
  flex-shrink: 0;
}

.icon--sm {
  width: 1rem;
  height: 1rem;
}

/* ---- Atmosphere ---- */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.atmosphere__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}

.atmosphere__orb--cyan {
  width: 50vw;
  height: 50vw;
  max-width: 600px;
  max-height: 600px;
  background: radial-gradient(circle, var(--cyan) 0%, transparent 70%);
  top: -10%;
  left: -10%;
}

.atmosphere__orb--magenta {
  width: 45vw;
  height: 45vw;
  max-width: 500px;
  max-height: 500px;
  background: radial-gradient(circle, var(--magenta) 0%, transparent 70%);
  bottom: 10%;
  right: -5%;
}

.atmosphere__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 80%);
}

.atmosphere__scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.06) 2px,
    rgba(0, 0, 0, 0.06) 4px
  );
  opacity: 0.4;
}

/* ---- Top bar ---- */
.top-bar {
  position: fixed;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: var(--bg-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-pill);
  transition: box-shadow var(--transition), border-color var(--transition);
}

.top-bar.is-scrolled {
  border-color: rgba(0, 229, 255, 0.25);
  box-shadow: var(--glow-cyan);
}

.top-bar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: opacity var(--transition);
}

.top-bar__brand:hover {
  opacity: 0.85;
}

.top-bar__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: var(--glow-cyan);
}

.top-bar__ball {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff 0%, #222 8%, #111 100%);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  box-shadow: var(--glow-cyan);
}

.top-bar__ball--sm {
  width: 28px;
  height: 28px;
  font-size: 0.75rem;
}

.top-bar__name {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.top-bar__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.top-bar__sub {
  font-size: 0.7rem;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.top-bar__cta {
  display: none;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: var(--cyan);
  color: #0a0b1a;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: box-shadow var(--transition), transform var(--transition);
  cursor: pointer;
}

.top-bar__cta:hover {
  box-shadow: var(--glow-cyan);
  transform: translateY(-1px);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: box-shadow var(--transition), transform var(--transition), background var(--transition);
  cursor: pointer;
}

.btn--shoot {
  background: var(--cyan);
  color: #0a0b1a;
  box-shadow: var(--glow-cyan);
}

.btn--shoot:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.6), 0 0 80px rgba(0, 229, 255, 0.2);
}

.btn--glass {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: var(--text);
}

.btn--glass:hover {
  border-color: rgba(0, 229, 255, 0.4);
  background: rgba(0, 229, 255, 0.08);
}

.btn--lg {
  padding: 14px 28px;
  font-size: 1rem;
}

/* ---- Glass card ---- */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
}

/* ---- Rarity tags ---- */
.rarity {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rarity--legendary { background: rgba(255, 149, 0, 0.2); color: var(--orange); }
.rarity--epic { background: rgba(155, 89, 182, 0.25); color: var(--purple); }
.rarity--rare { background: rgba(0, 229, 255, 0.15); color: var(--cyan); }
.rarity--sm { font-size: 0.58rem; padding: 2px 8px; }

/* ---- Stage / Hero ---- */
.stage {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  padding: calc(var(--top-h) + 32px) 20px calc(var(--dock-h) + 40px);
  gap: 24px;
}

.stage__center {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.stage__hud {
  display: none;
}

.stage__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--cyan-dim);
  border: 1px solid rgba(0, 229, 255, 0.25);
  color: var(--cyan);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stage__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

.stage__title-glow {
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 20px rgba(0, 229, 255, 0.4));
}

.stage__lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 480px;
  margin: 0 auto 28px;
}

.stage__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}

/* Pool table CSS stage */
.pool-stage {
  position: relative;
  width: min(100%, 380px);
  margin: 0 auto;
  aspect-ratio: 9 / 16;
}

.pool-stage__felt {
  position: absolute;
  inset: 8% 5% 28%;
  background: linear-gradient(145deg, #1a3a6e 0%, #0f2550 100%);
  border: 6px solid #5c3d2e;
  border-radius: 8px;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 229, 255, 0.1);
  overflow: hidden;
}

.pool-stage__pocket {
  position: absolute;
  width: 14%;
  aspect-ratio: 1;
  background: #0a0a12;
  border-radius: 50%;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.8);
}

.pool-stage__pocket--tl { top: -4%; left: -4%; }
.pool-stage__pocket--tr { top: -4%; right: -4%; }
.pool-stage__pocket--ml { top: 42%; left: -5%; }
.pool-stage__pocket--mr { top: 42%; right: -5%; }
.pool-stage__pocket--bl { bottom: -4%; left: 22%; }
.pool-stage__pocket--br { bottom: -4%; right: 22%; }

.pool-stage__balls {
  position: absolute;
  inset: 0;
}

.ball {
  position: absolute;
  width: 10%;
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
}

.ball--cue { bottom: 25%; left: 20%; background: radial-gradient(circle at 30% 30%, #fff, #ddd 40%, #bbb); }
.ball--1 { top: 30%; left: 42%; background: radial-gradient(circle at 30% 30%, #ffeb3b, #f9a825); }
.ball--9 { top: 28%; left: 52%; background: radial-gradient(circle at 30% 30%, #fff, #111 35%, #000); }
.ball--stripe { top: 32%; left: 48%; background: linear-gradient(90deg, #e53935 50%, #fff 50%); border-radius: 50%; }

.pool-stage__device {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 52%;
  border-radius: 20px;
  overflow: hidden;
  border: 3px solid rgba(0, 229, 255, 0.35);
  box-shadow: var(--glow-cyan), 0 20px 50px rgba(0, 0, 0, 0.5);
}

.pool-stage__device img {
  width: 100%;
  height: auto;
  aspect-ratio: var(--shot-ratio);
  object-fit: contain;
  display: block;
  vertical-align: top;
}

/* HUD cards */
.hud-card {
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
}

.hud-card--equipped {
  border-color: rgba(0, 229, 255, 0.35);
  box-shadow: var(--glow-cyan);
}

.hud-card__label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 4px;
}

.hud-card__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.stat-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stat-bar {
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 8px;
}

.stat-bar__key {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}

.stat-bar__track {
  height: 8px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.stat-bar__fill {
  height: 100%;
  width: var(--w, 50%);
  border-radius: var(--radius-pill);
  transition: width 1s ease;
}

.stat-bar__fill--pink { background: linear-gradient(90deg, var(--magenta), #ff79b0); }
.stat-bar__fill--cyan { background: linear-gradient(90deg, var(--cyan), #4df0ff); }
.stat-bar__fill--purple { background: linear-gradient(90deg, var(--purple), #c39bd3); }

/* Match HUD */
.match-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid;
}

.avatar--you {
  border-color: var(--cyan);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.5);
  background: rgba(0, 229, 255, 0.15);
  color: var(--cyan);
}

.avatar--rival {
  border-color: var(--magenta);
  box-shadow: 0 0 12px rgba(255, 64, 129, 0.5);
  background: rgba(255, 64, 129, 0.15);
  color: var(--magenta);
}

.match-row__center {
  text-align: center;
}

.match-row__turn {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.match-row__timer {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1;
}

.match-streak {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  margin-bottom: 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 213, 79, 0.1);
  border: 1px solid rgba(255, 213, 79, 0.25);
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 500;
}

.power-meter__label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.power-meter__track {
  position: relative;
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  overflow: visible;
}

.power-meter__track--lg {
  height: 14px;
}

.power-meter__fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 72%;
  background: linear-gradient(90deg, var(--cyan), #4df0ff);
  border-radius: var(--radius-pill);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

.power-meter__fill--animated {
  animation: powerPulse 2.5s ease-in-out infinite;
}

@keyframes powerPulse {
  0%, 100% { width: 55%; }
  50% { width: 88%; }
}

.power-meter__thumb {
  position: absolute;
  top: 50%;
  left: 72%;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 14px;
  background: #fff;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ---- Section head ---- */
.section-head {
  text-align: center;
  margin-bottom: 36px;
  padding: 0 20px;
}

.section-head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  text-align: left;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.section-head__tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 8px;
}

.section-head__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.section-head__desc {
  color: var(--text-muted);
  max-width: 520px;
  margin: 10px auto 0;
  font-size: 0.95rem;
}

.section-head__hint {
  color: var(--text-muted);
  font-size: 0.85rem;
  white-space: nowrap;
}

/* ---- Features bento ---- */
.features {
  padding: 60px 20px 80px;
  max-width: 1100px;
  margin: 0 auto;
}

.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.bento__cell {
  position: relative;
  padding: 24px;
  transition: border-color var(--transition), box-shadow var(--transition);
  cursor: default;
}

.bento__cell:hover {
  border-color: rgba(0, 229, 255, 0.3);
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.08);
}

.bento__cell .rarity {
  position: absolute;
  top: 16px;
  right: 16px;
}

.bento__icon-wrap {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  margin-bottom: 14px;
}

.bento__icon-wrap--cyan { background: var(--cyan-dim); color: var(--cyan); }
.bento__icon-wrap--pink { background: var(--magenta-dim); color: var(--magenta); }
.bento__icon-wrap--purple { background: var(--purple-dim); color: var(--purple); }
.bento__icon-wrap--orange { background: rgba(255, 149, 0, 0.15); color: var(--orange); }

.bento__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.bento__text {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.bento__list {
  list-style: none;
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bento__list li {
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---- Gallery cue strip ---- */
.gallery {
  padding: 0 20px 80px;
}

.gallery__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.gallery__viewport {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--cyan) transparent;
}

.gallery__viewport::-webkit-scrollbar {
  height: 4px;
}

.gallery__viewport::-webkit-scrollbar-thumb {
  background: var(--cyan);
  border-radius: 4px;
}

.gallery .section-head--row {
  max-width: none;
  margin-bottom: 36px;
  padding: 0;
}

.cue-strip {
  display: flex;
  gap: 20px;
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
  padding: 8px 4px 16px;
  scroll-snap-type: x proximity;
}

.cue-card {
  flex: 0 0 auto;
  width: clamp(148px, 28vw, 200px);
  scroll-snap-align: center;
  padding: 14px;
  border-radius: var(--radius-lg);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  text-align: center;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  cursor: pointer;
}

.cue-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 229, 255, 0.35);
}

.cue-card--active {
  border-color: var(--cyan);
  box-shadow: var(--glow-cyan);
}

.cue-card--locked {
  opacity: 0.65;
}

.cue-card__thumb {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 12px;
  aspect-ratio: var(--shot-ratio);
  background: rgba(8, 9, 22, 0.65);
  line-height: 0;
}

.cue-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  display: block;
}

.cue-card__name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.cue-card__lock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ---- Download ---- */
.download {
  padding: 0 20px 100px;
  max-width: 720px;
  margin: 0 auto;
}

.download__panel {
  position: relative;
  padding: 40px 28px;
  text-align: center;
  overflow: hidden;
}

.download__glow {
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.download__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2rem);
  font-weight: 700;
  margin: 8px 0 12px;
}

.download__desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 480px;
  margin: 0 auto 24px;
}

.download__power {
  max-width: 360px;
  margin: 0 auto 28px;
  text-align: left;
}

.download__buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

/* ---- Footer ---- */
.footer {
  padding: 32px 20px calc(var(--dock-h) + 24px);
  border-top: 1px solid var(--border-glass);
  background: rgba(10, 11, 26, 0.6);
}

.footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.footer__icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
}

.footer__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 24px;
  margin-bottom: 16px;
}

.footer__links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--transition);
  cursor: pointer;
}

.footer__links a:hover {
  color: var(--cyan);
}

.footer__copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---- Bottom dock nav ---- */
.dock {
  position: fixed;
  bottom: 12px;
  left: 12px;
  right: 12px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 8px 12px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-pill);
  max-width: 480px;
  margin: 0 auto;
}

.dock__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.62rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color var(--transition), background var(--transition);
  cursor: pointer;
}

.dock__item:hover,
.dock__item--active {
  color: var(--cyan);
}

.dock__item--active {
  background: var(--cyan-dim);
}

.dock__orb {
  position: relative;
  width: 52px;
  height: 52px;
  margin-top: -28px;
  border-radius: 50%;
  background: var(--cyan);
  display: grid;
  place-items: center;
  box-shadow: var(--glow-cyan);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}

.dock__orb:hover {
  transform: scale(1.06);
  box-shadow: 0 0 40px rgba(0, 229, 255, 0.7);
}

.dock__orb-ball {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: #0a0b1a;
}

/* ---- Modal ---- */
.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 6, 18, 0.75);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.modal__panel {
  position: relative;
  width: min(100%, 400px);
  padding: 36px 28px;
  text-align: center;
  animation: modalIn 0.25s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  transition: background var(--transition);
  cursor: pointer;
}

.modal__close:hover {
  background: rgba(255, 255, 255, 0.12);
}

.modal__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--cyan-dim);
  color: var(--cyan);
}

.modal__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.modal__body {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

/* ---- Responsive ---- */
@media (min-width: 640px) {
  .top-bar__cta {
    display: inline-flex;
  }

  .bento {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento__cell--wide {
    grid-column: span 2;
  }

  .bento__cell--tall {
    grid-row: span 2;
  }

  .download__buttons {
    flex-direction: row;
    justify-content: center;
  }
}

@media (min-width: 768px) {
  .gallery__viewport {
    overflow-x: visible;
  }

  .cue-strip {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }
}

@media (min-width: 900px) {
  .stage {
    grid-template-columns: 260px 1fr 260px;
    padding-top: calc(var(--top-h) + 48px);
    max-width: 1200px;
    margin: 0 auto;
  }

  .stage__hud {
    display: block;
  }

  .stage__center {
    max-width: none;
  }

  .pool-stage {
    width: 340px;
  }

  .bento {
    grid-template-columns: repeat(3, 1fr);
  }

  .bento__cell--wide {
    grid-column: span 2;
  }
}

@media (min-width: 1024px) {
  .dock {
    max-width: 520px;
  }
}

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

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---- Focus states ---- */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}
