/* Galaxy Aliens — neon space aesthetic */
:root {
  --bg: #050510;
  --bg-2: #0c0820;
  --neon-cyan: #00ffcc;
  --neon-magenta: #ff2bd6;
  --neon-purple: #7b5cff;
  --neon-yellow: #ffe566;
  --neon-red: #ff4466;
  --text: #e8f0ff;
  --muted: #8a9bb8;
  --panel: rgba(12, 8, 40, 0.92);
  --border: rgba(0, 255, 204, 0.35);
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --display: "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  line-height: 1.5;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(123, 92, 255, 0.25), transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(255, 43, 214, 0.12), transparent 50%),
    radial-gradient(ellipse 50% 40% at 10% 70%, rgba(0, 255, 204, 0.1), transparent 50%),
    var(--bg);
}

a { color: var(--neon-cyan); text-decoration: none; }
a:hover { color: var(--neon-magenta); text-shadow: 0 0 8px rgba(255, 43, 214, 0.5); }

/* Header / nav */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: rgba(5, 5, 16, 0.85);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--text);
  text-transform: uppercase;
}

.logo img { width: 36px; height: 36px; }

.logo span {
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple), var(--neon-magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 6px rgba(0, 255, 204, 0.4));
}

.nav { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }

.nav a, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, border-color 0.15s;
}

.nav a:hover, .btn:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 16px rgba(0, 255, 204, 0.35);
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, rgba(0, 255, 204, 0.25), rgba(123, 92, 255, 0.35));
  border-color: var(--neon-cyan);
  box-shadow: 0 0 20px rgba(0, 255, 204, 0.25);
}

.btn-magenta {
  background: linear-gradient(135deg, rgba(255, 43, 214, 0.3), rgba(123, 92, 255, 0.3));
  border-color: var(--neon-magenta);
}

.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Layout */
.wrap {
  width: min(960px, 100% - 1.5rem);
  margin-inline: auto;
  padding: 1.25rem 0 2.5rem;
}

.hero {
  text-align: center;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--neon-cyan), #fff, var(--neon-magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 0 18px rgba(0, 255, 204, 0.35));
  margin-bottom: 0.35rem;
}

.hero p {
  color: var(--muted);
  max-width: 36rem;
  margin: 0 auto 0.75rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(123, 92, 255, 0.5);
  color: var(--neon-purple);
  background: rgba(123, 92, 255, 0.12);
}

/* Game shell */
.game-shell {
  position: relative;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow:
    0 0 0 1px rgba(255, 43, 214, 0.08),
    0 0 40px rgba(0, 255, 204, 0.12),
    0 20px 50px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.hud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid rgba(0, 255, 204, 0.2);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(0, 0, 0, 0.35);
}

.hud-group { display: flex; flex-wrap: wrap; gap: 0.75rem 1.1rem; align-items: center; }

.hud .label { color: var(--muted); font-weight: 600; margin-right: 0.25rem; }
.hud .val-score { color: var(--neon-cyan); }
.hud .val-wave { color: var(--neon-purple); }
.hud .val-lives { color: var(--neon-magenta); }
.hud .val-combo { color: var(--neon-yellow); }

.canvas-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: min(70vh, 640px);
  background: #000;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

#gameCanvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
}

.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.25rem;
  text-align: center;
  background: rgba(5, 5, 16, 0.82);
  backdrop-filter: blur(6px);
  z-index: 10;
  transition: opacity 0.25s;
}

.overlay.hidden { display: none; }

.overlay h2 {
  font-family: var(--display);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.overlay p { color: var(--muted); max-width: 28rem; font-size: 0.95rem; }

.mode-pick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin: 0.5rem 0;
}

.mode-card {
  width: min(200px, 42vw);
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(12, 8, 40, 0.9);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  text-align: center;
}

.mode-card:hover, .mode-card:focus-visible {
  outline: none;
  transform: translateY(-3px);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 24px rgba(0, 255, 204, 0.35);
}

.mode-card.alien:hover, .mode-card.alien:focus-visible {
  border-color: var(--neon-magenta);
  box-shadow: 0 0 24px rgba(255, 43, 214, 0.35);
}

.mode-card .icon { font-size: 2rem; margin-bottom: 0.35rem; }
.mode-card h3 {
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}
.mode-card p { font-size: 0.75rem; color: var(--muted); }

.overlay-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 0.5rem;
}

.high-score-line {
  font-size: 0.9rem;
  color: var(--neon-yellow);
  font-weight: 700;
}

.controls-hint {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.controls-hint kbd {
  display: inline-block;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  border: 1px solid rgba(138, 155, 184, 0.4);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.75rem;
  font-family: inherit;
}


/* Floating mobile controls */
.touch-controls {
  display: none;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem 0.85rem;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid rgba(0, 255, 204, 0.15);
}

@media (pointer: coarse), (max-width: 720px) {
  .touch-controls { display: flex; }
}

.dpad {
  display: grid;
  grid-template-columns: repeat(3, 48px);
  grid-template-rows: repeat(3, 48px);
  gap: 4px;
}

.dpad .pad-btn {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(0, 255, 204, 0.1);
  color: var(--neon-cyan);
  font-size: 1.1rem;
  font-weight: 800;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.dpad .pad-btn:active, .dpad .pad-btn.active {
  background: rgba(0, 255, 204, 0.35);
  box-shadow: 0 0 12px rgba(0, 255, 204, 0.5);
}

.dpad .empty { visibility: hidden; }
.dpad .up { grid-column: 2; grid-row: 1; }
.dpad .left { grid-column: 1; grid-row: 2; }
.dpad .right { grid-column: 3; grid-row: 2; }
.dpad .down { grid-column: 2; grid-row: 3; }

.fire-btn {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 2px solid var(--neon-magenta);
  background: radial-gradient(circle at 35% 30%, rgba(255, 43, 214, 0.45), rgba(123, 92, 255, 0.25));
  color: #fff;
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 0 24px rgba(255, 43, 214, 0.4);
}

.fire-btn:active, .fire-btn.active {
  transform: scale(0.95);
  box-shadow: 0 0 32px rgba(255, 43, 214, 0.7);
}

/* How to play / footer */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.card {
  padding: 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 255, 204, 0.2);
  background: rgba(12, 8, 40, 0.6);
}

.card h3 {
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  margin-bottom: 0.4rem;
}

.card p, .card li { font-size: 0.88rem; color: var(--muted); }
.card ul { padding-left: 1.1rem; }
.card li { margin-bottom: 0.25rem; }

.site-footer {
  margin-top: 2rem;
  padding: 1.25rem;
  text-align: center;
  border-top: 1px solid rgba(0, 255, 204, 0.15);
  color: var(--muted);
  font-size: 0.85rem;
}

/* Monetize page */
.page-title {
  font-family: var(--display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  background: linear-gradient(90deg, var(--neon-yellow), var(--neon-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead { color: var(--muted); margin-bottom: 1.5rem; max-width: 40rem; }

.mono-section {
  margin-bottom: 1.75rem;
  padding: 1.25rem;
  border-radius: 14px;
  border: 1px solid rgba(0, 255, 204, 0.2);
  background: rgba(12, 8, 40, 0.65);
}

.mono-section h2 {
  font-size: 1.15rem;
  color: var(--neon-cyan);
  margin-bottom: 0.5rem;
  letter-spacing: 0.03em;
}

.mono-section h2 .num {
  display: inline-flex;
  width: 1.6rem;
  height: 1.6rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-right: 0.4rem;
  font-size: 0.8rem;
  background: rgba(0, 255, 204, 0.15);
  border: 1px solid var(--border);
}

.mono-section p, .mono-section li { color: var(--muted); font-size: 0.92rem; }
.mono-section ul { padding-left: 1.2rem; margin: 0.5rem 0; }
.mono-section li { margin-bottom: 0.35rem; }

.callout {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border-left: 3px solid var(--neon-yellow);
  background: rgba(255, 229, 102, 0.08);
  font-size: 0.88rem;
  color: var(--text);
}

.ad-placeholder-demo {
  margin-top: 0.75rem;
  padding: 1.5rem;
  border: 2px dashed rgba(255, 229, 102, 0.45);
  border-radius: 8px;
  text-align: center;
  background: rgba(255, 229, 102, 0.05);
  color: var(--neon-yellow);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.code-hint {
  margin-top: 0.5rem;
  padding: 0.75rem;
  border-radius: 8px;
  background: #0a0a18;
  border: 1px solid rgba(138, 155, 184, 0.25);
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.75rem;
  color: #a8e6cf;
  overflow-x: auto;
  white-space: pre-wrap;
}

.disclaimer {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 68, 102, 0.35);
  background: rgba(255, 68, 102, 0.08);
  font-size: 0.88rem;
  color: var(--text);
}

@media (max-width: 520px) {
  .site-header { padding: 0.6rem 0.85rem; }
  .logo span { font-size: 0.95rem; }
  .hud { font-size: 0.75rem; gap: 0.35rem; }
  .dpad { grid-template-columns: repeat(3, 42px); grid-template-rows: repeat(3, 42px); }
  .fire-btn { width: 76px; height: 76px; font-size: 0.75rem; }
}

/* ——— Subscription / paywall (no ads) ——— */
.sub-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.65rem 0.95rem;
  border-top: 1px solid rgba(123, 92, 255, 0.35);
  background: linear-gradient(90deg, rgba(123, 92, 255, 0.12), rgba(255, 43, 214, 0.1));
}

.sub-status {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.sub-status.demo { color: var(--neon-yellow); }
.sub-status.active { color: var(--neon-cyan); }
.sub-status.locked { color: var(--neon-magenta); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.85rem;
  margin: 0.75rem 0;
  width: min(520px, 100%);
}

.price-card {
  padding: 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(12, 8, 40, 0.95);
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.price-card:hover, .price-card:focus-visible {
  outline: none;
  transform: translateY(-3px);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 24px rgba(0, 255, 204, 0.3);
}

.price-card.featured {
  border-color: var(--neon-magenta);
  box-shadow: 0 0 20px rgba(255, 43, 214, 0.25);
}

.price-card .plan-name {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.price-card .plan-price {
  font-family: var(--display);
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--neon-cyan);
  margin-bottom: 0.25rem;
}

.price-card .plan-price small {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}

.price-card .plan-desc {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.65rem;
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  color: var(--text);
  text-align: left;
}

.price-card li {
  padding: 0.2rem 0 0.2rem 1.1rem;
  position: relative;
}

.price-card li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--neon-purple);
  font-size: 0.7rem;
}

.demo-timer {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 5;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: rgba(255, 229, 102, 0.15);
  border: 1px solid rgba(255, 229, 102, 0.45);
  color: var(--neon-yellow);
  pointer-events: none;
}

.demo-timer.hidden { display: none; }

.paywall-overlay .price-note {
  font-size: 0.78rem;
  color: var(--muted);
  max-width: 26rem;
}

.login-stub {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin-top: 0.5rem;
  width: min(360px, 100%);
}

.login-stub input {
  flex: 1 1 160px;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.45);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
}

.login-stub input:focus {
  outline: none;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(0, 255, 204, 0.25);
}

.dev-tools {
  margin-top: 0.75rem;
  padding: 0.65rem;
  border-radius: 8px;
  border: 1px dashed rgba(138, 155, 184, 0.35);
  font-size: 0.75rem;
  color: var(--muted);
  max-width: 28rem;
}

.dev-tools strong { color: var(--neon-yellow); }

.badge-sub {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(0, 255, 204, 0.15);
  border: 1px solid var(--border);
  color: var(--neon-cyan);
  margin-left: 0.35rem;
}

.hidden { display: none !important; }


/* Lemon Squeezy setup hints */
.lemon-setup-hint:not([hidden]) {
  display: block;
  margin: 0.75rem 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 214, 10, 0.45);
  background: rgba(255, 214, 10, 0.08);
  color: var(--neon-yellow);
  font-size: 0.9rem;
  line-height: 1.45;
}

.paywall-overlay .lemon-setup-hint:not([hidden]) {
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.setup-steps {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
  color: var(--text);
  line-height: 1.55;
}

.setup-steps li {
  margin-bottom: 0.85rem;
}

.setup-steps code {
  font-size: 0.85em;
  word-break: break-all;
}

/* ——— Shop page ——— */
.shop-hero { margin-bottom: 1.5rem; }

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.shop-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.2rem;
  border-radius: 14px;
  border: 1px solid rgba(0, 255, 204, 0.25);
  background: rgba(12, 8, 40, 0.85);
  box-shadow: 0 0 24px rgba(0, 255, 204, 0.08);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.shop-card:hover {
  transform: translateY(-3px);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 28px rgba(0, 255, 204, 0.28);
}

.shop-card-pass {
  border-color: rgba(255, 43, 214, 0.45);
  background: linear-gradient(160deg, rgba(255, 43, 214, 0.12), rgba(12, 8, 40, 0.9));
}

.shop-card-pass:hover {
  border-color: var(--neon-magenta);
  box-shadow: 0 0 28px rgba(255, 43, 214, 0.3);
}

.shop-card-badge {
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(123, 92, 255, 0.5);
  color: var(--neon-purple);
  background: rgba(123, 92, 255, 0.12);
}

.shop-card-pass .shop-card-badge {
  border-color: rgba(255, 43, 214, 0.5);
  color: var(--neon-magenta);
  background: rgba(255, 43, 214, 0.12);
}

.shop-card-title {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--text);
}

.shop-card-blurb {
  font-size: 0.88rem;
  color: var(--muted);
  flex: 1;
}

.shop-card-price {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--neon-cyan);
}

.shop-card .shop-buy { width: 100%; margin-top: 0.25rem; }

.shop-card-link {
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
}

.shop-howto { margin-top: 0.5rem; }

.shop-toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%) translateY(120%);
  z-index: 200;
  max-width: min(420px, calc(100% - 2rem));
  padding: 0.85rem 1.15rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 229, 102, 0.5);
  background: rgba(12, 8, 40, 0.96);
  color: var(--neon-yellow);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.shop-toast.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.footer-note {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--muted);
  opacity: 0.9;
}

/* ——— Explore page ——— */
.explore-hero { margin-bottom: 1rem; }

.affiliate-disclosure {
  margin-bottom: 1.25rem;
  border-left-color: var(--neon-cyan);
  background: rgba(0, 255, 204, 0.08);
}

.explore-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.explore-toc a {
  display: inline-flex;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  background: rgba(12, 8, 40, 0.6);
}

.explore-toc a:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
}

.explore-intro {
  margin-bottom: 0.85rem !important;
}

.explore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}

.explore-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 255, 204, 0.2);
  background: rgba(5, 5, 16, 0.55);
  color: var(--text);
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
  text-decoration: none;
}

.explore-card:hover {
  transform: translateY(-2px);
  border-color: var(--neon-magenta);
  box-shadow: 0 0 20px rgba(255, 43, 214, 0.2);
  color: var(--text);
  text-shadow: none;
}

.explore-card h3 {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--neon-cyan);
}

.explore-card p {
  font-size: 0.82rem;
  color: var(--muted);
  flex: 1;
}

.explore-card-go {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--neon-purple);
}

.nav a[aria-current="page"] {
  border-color: var(--neon-cyan);
  background: rgba(0, 255, 204, 0.12);
  box-shadow: 0 0 12px rgba(0, 255, 204, 0.2);
}


/* ——— Galaxy Club Lobby ——— */
.lobby-page .lobby-wrap {
  width: min(1100px, 100% - 1.5rem);
}

.lobby-hero p { max-width: 42rem; }

.lobby-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.85fr);
  gap: 1rem;
  align-items: start;
  margin-bottom: 1.5rem;
}

.lobby-stage { position: relative; }

.lobby-hud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid rgba(0, 255, 204, 0.2);
  background: rgba(0, 0, 0, 0.35);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.lobby-hud .label {
  display: block;
  font-size: 0.65rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.lobby-status { color: var(--neon-yellow); }
.lobby-status.club { color: var(--neon-cyan); }

.lobby-hint {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}
.lobby-hint.warn { color: var(--neon-magenta); }

.lobby-canvas-wrap {
  position: relative;
  background: #050510;
  line-height: 0;
}

#lobbyCanvas {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(62vh, 520px);
  cursor: crosshair;
  touch-action: none;
}

.lobby-phrase {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  max-width: 90%;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(12, 8, 40, 0.92);
  color: var(--neon-cyan);
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 0 20px rgba(0, 255, 204, 0.25);
  pointer-events: none;
  z-index: 2;
  line-height: 1.3;
}

.lobby-touch {
  display: none;
  padding: 0.65rem 0.85rem 0.85rem;
  border-top: 1px solid rgba(0, 255, 204, 0.15);
  background: rgba(0, 0, 0, 0.25);
  justify-content: center;
}

.lobby-touch .pad-btn.active {
  border-color: var(--neon-cyan);
  background: rgba(0, 255, 204, 0.2);
}

.lobby-panel {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.lobby-panel-card {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--panel);
  padding: 0.9rem 1rem 1rem;
  box-shadow: 0 0 24px rgba(0, 255, 204, 0.08);
}

.lobby-panel-card h2 {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  margin-bottom: 0.25rem;
}

.lobby-h3 {
  margin-top: 0.85rem;
  margin-bottom: 0.4rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--neon-purple);
}

.lobby-panel-sub {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.65rem;
}

.lobby-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 0.4rem;
}

.lobby-picker-sm {
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
}

.lobby-pick {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.45rem 0.25rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 255, 204, 0.22);
  background: rgba(5, 5, 16, 0.55);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.lobby-pick:hover {
  border-color: var(--neon-cyan);
  transform: translateY(-1px);
}

.lobby-pick.selected {
  border-color: var(--neon-magenta);
  box-shadow: 0 0 14px rgba(255, 43, 214, 0.35);
  background: rgba(255, 43, 214, 0.1);
}

.lobby-pick.locked {
  opacity: 0.55;
}

.lobby-pick-emoji { font-size: 1.35rem; line-height: 1; }
.lobby-pick-name {
  font-size: 0.62rem;
  font-weight: 700;
  text-align: center;
  color: var(--muted);
  line-height: 1.2;
}

.lobby-emotes,
.lobby-phrases {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.lobby-emote-btn,
.lobby-phrase-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(5, 5, 16, 0.55);
  color: var(--text);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.lobby-emote-btn:hover,
.lobby-phrase-btn:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(0, 255, 204, 0.25);
}

.lobby-emote-btn.locked,
.lobby-phrase-btn.locked {
  opacity: 0.5;
}

.lobby-club-cta .btn { margin: 0.35rem 0.35rem 0 0; }
.lobby-club-cta.is-member {
  border-color: rgba(0, 255, 204, 0.55);
}
.lobby-club-cta.is-member h2::after {
  content: " ✓";
  color: var(--neon-cyan);
}
.lobby-club-cta.is-member #lobbySubscribe {
  display: none;
}

.lobby-dev-note {
  margin-top: 0.75rem;
  font-size: 0.75rem;
}
.lobby-dev-note .btn {
  padding: 0.25rem 0.55rem;
  font-size: 0.72rem;
  margin: 0.15rem 0.15rem 0 0;
}

.lobby-info { margin-top: 0.5rem; }


@media (max-width: 860px) {
  .lobby-layout {
    grid-template-columns: 1fr;
  }
  .lobby-touch { display: flex; }
}

@media (max-width: 520px) {
  .lobby-picker {
    grid-template-columns: repeat(4, 1fr);
  }
}
