/* ============================================================
   SUPPORT HUB - Design System & Styles
   support.wellerdeveler.com
   ============================================================ */

/* --- CSS Variables / Design Tokens --- */
:root {
  /* Colors */
  --bg: #0a0a0f;
  --bg-raised: #111118;
  --card-bg: rgba(255, 255, 255, 0.04);
  --card-bg-hover: rgba(255, 255, 255, 0.07);
  --card-border: rgba(255, 255, 255, 0.06);
  --card-border-hover: rgba(255, 255, 255, 0.12);

  --primary: #ec4899;
  --primary-dim: rgba(236, 72, 153, 0.15);
  --primary-glow: rgba(236, 72, 153, 0.4);
  --secondary: #8b5cf6;
  --secondary-dim: rgba(139, 92, 246, 0.15);
  --secondary-glow: rgba(139, 92, 246, 0.4);
  --accent: #fbbf24;
  --accent-dim: rgba(251, 191, 36, 0.15);
  --accent-glow: rgba(251, 191, 36, 0.4);
  --success: #22c55e;
  --success-dim: rgba(34, 197, 94, 0.15);
  --info: #06b6d4;
  --info-dim: rgba(6, 182, 212, 0.15);

  --text-primary: #f4f4f5;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;

  /* Typography */
  --font-display: 'Fredoka', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  /* Spacing */
  --section-gap: 6rem;
  --card-radius: 20px;
  --btn-radius: 16px;
  --pill-radius: 999px;

  /* Transitions */
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 0.2s;
  --t-med: 0.35s;
  --t-slow: 0.6s;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-primary);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

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

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

ul, ol {
  list-style: none;
}

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

/* --- Animated Background --- */
.bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(236, 72, 153, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 80% 30%, rgba(139, 92, 246, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 50% 90%, rgba(251, 191, 36, 0.05) 0%, transparent 50%);
  animation: gradientDrift 20s ease-in-out infinite alternate;
}

@keyframes gradientDrift {
  0%   { transform: scale(1) translate(0, 0); }
  33%  { transform: scale(1.05) translate(-2%, 1%); }
  66%  { transform: scale(0.98) translate(1%, -1%); }
  100% { transform: scale(1.02) translate(-1%, 2%); }
}

/* Floating particles */
.particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0% {
    opacity: 0;
    transform: translateY(100vh) scale(0);
  }
  10% {
    opacity: 0.6;
    transform: translateY(90vh) scale(1);
  }
  90% {
    opacity: 0.3;
  }
  100% {
    opacity: 0;
    transform: translateY(-10vh) scale(0.5);
  }
}

/* --- Layout --- */
.page-wrapper {
  position: relative;
  z-index: 1;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: var(--section-gap) 0;
  position: relative;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.section-subtitle {
  color: var(--text-secondary);
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Typography --- */
.display-xl {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.1;
}

.display-lg {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-warm {
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Cards --- */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  padding: 2rem;
  transition:
    background var(--t-med) var(--ease-smooth),
    border-color var(--t-med) var(--ease-smooth),
    transform var(--t-med) var(--ease-bounce),
    box-shadow var(--t-med) var(--ease-smooth);
}

.card:hover {
  background: var(--card-bg-hover);
  border-color: var(--card-border-hover);
  transform: translateY(-4px);
}

.card-glow-pink:hover {
  box-shadow: 0 8px 40px var(--primary-dim), 0 0 0 1px rgba(236, 72, 153, 0.1);
}

.card-glow-purple:hover {
  box-shadow: 0 8px 40px var(--secondary-dim), 0 0 0 1px rgba(139, 92, 246, 0.1);
}

.card-glow-gold:hover {
  box-shadow: 0 8px 40px var(--accent-dim), 0 0 0 1px rgba(251, 191, 36, 0.1);
}

.card-glow-cyan:hover {
  box-shadow: 0 8px 40px var(--info-dim), 0 0 0 1px rgba(6, 182, 212, 0.1);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  padding: 0.875rem 2rem;
  border-radius: var(--btn-radius);
  transition:
    transform var(--t-fast) var(--ease-bounce),
    box-shadow var(--t-fast) var(--ease-smooth),
    background var(--t-fast) var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-2px) scale(1.03);
}

.btn:active {
  transform: translateY(1px) scale(0.98);
}

/* Button variants */
.btn-pink {
  background: linear-gradient(135deg, var(--primary), #d946a8);
  color: #fff;
  box-shadow: 0 4px 20px var(--primary-dim);
}
.btn-pink:hover {
  box-shadow: 0 8px 30px var(--primary-glow);
}

.btn-purple {
  background: linear-gradient(135deg, var(--secondary), #7c3aed);
  color: #fff;
  box-shadow: 0 4px 20px var(--secondary-dim);
}
.btn-purple:hover {
  box-shadow: 0 8px 30px var(--secondary-glow);
}

.btn-gold {
  background: linear-gradient(135deg, var(--accent), #f59e0b);
  color: #1a1a2e;
  box-shadow: 0 4px 20px var(--accent-dim);
}
.btn-gold:hover {
  box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-green {
  background: linear-gradient(135deg, var(--success), #16a34a);
  color: #fff;
  box-shadow: 0 4px 20px var(--success-dim);
}
.btn-green:hover {
  box-shadow: 0 8px 30px rgba(34, 197, 94, 0.4);
}

.btn-cyan {
  background: linear-gradient(135deg, var(--info), #0891b2);
  color: #fff;
  box-shadow: 0 4px 20px var(--info-dim);
}
.btn-cyan:hover {
  box-shadow: 0 8px 30px rgba(6, 182, 212, 0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--card-border-hover);
  color: var(--text-primary);
}
.btn-outline:hover {
  border-color: var(--primary);
  background: var(--primary-dim);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

/* Button sizes */
.btn-sm {
  font-size: 0.9rem;
  padding: 0.6rem 1.25rem;
  border-radius: 12px;
}

.btn-lg {
  font-size: 1.25rem;
  padding: 1.1rem 2.5rem;
  border-radius: 20px;
}

.btn-xl {
  font-size: 1.4rem;
  padding: 1.25rem 3rem;
  border-radius: 24px;
}

/* Ripple effect */
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  animation: rippleOut 0.6s ease-out;
  pointer-events: none;
}

@keyframes rippleOut {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* --- Badges --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--pill-radius);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-pink {
  background: var(--primary-dim);
  color: var(--primary);
}

.badge-purple {
  background: var(--secondary-dim);
  color: var(--secondary);
}

.badge-gold {
  background: var(--accent-dim);
  color: var(--accent);
}

.badge-green {
  background: var(--success-dim);
  color: var(--success);
}

.badge-cyan {
  background: var(--info-dim);
  color: var(--info);
}

/* ============================================================
   HERO SECTION (Support-first layout)
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 0;
  position: relative;
}

.hero-support {
  min-height: auto;
  padding: 3rem 0 2rem;
}

.hero-content {
  max-width: 820px;
}

/* Name row at top of hero */
.hero-name-row {
  animation: heroSlideUp 0.6s var(--ease-bounce) both;
  margin-bottom: 2rem;
}

.hero-name-label {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.hero-greeting {
  margin-bottom: 0.75rem;
  animation: heroSlideUp 0.7s var(--ease-bounce) 0.1s both;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  animation: heroSlideUp 0.7s var(--ease-bounce) 0.2s both;
}

/* Fuel gauge in hero */
.hero-fuel {
  animation: heroSlideUp 0.7s var(--ease-bounce) 0.3s both;
  margin-bottom: 2rem;
}

/* Hero tip grid: bigger, bolder */
.tip-grid-hero {
  animation: heroSlideUp 0.8s var(--ease-bounce) 0.4s both;
  max-width: 720px;
}

.tip-grid-hero .tip-card {
  padding: 1.75rem 1.25rem;
}

.tip-grid-hero .tip-amount {
  font-size: 2rem;
}

.tip-grid-hero .tip-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  margin-bottom: 0.75rem;
}

/* Hero support note */
.hero-note {
  animation: heroSlideUp 0.8s var(--ease-bounce) 0.5s both;
  margin-top: 1.5rem;
}

@keyframes heroSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Name generator */
.name-generator {
  animation: heroSlideUp 0.8s var(--ease-bounce) 0.3s both;
}

.name-generator-label {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.name-display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 3.5vw, 2rem);
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  display: inline-block;
  min-width: 240px;
  cursor: pointer;
  transition:
    transform var(--t-fast) var(--ease-bounce),
    border-color var(--t-med) var(--ease-smooth),
    box-shadow var(--t-med) var(--ease-smooth);
  position: relative;
}

.name-display:hover {
  transform: scale(1.04);
  border-color: var(--secondary);
  box-shadow: 0 0 30px var(--secondary-dim);
}

.name-display:active {
  transform: scale(0.97);
}

.name-display .name-text {
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.name-display .name-text.swapping {
  opacity: 0;
  transform: scale(0.8) rotateX(20deg);
}

.name-regen-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  opacity: 0.6;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollBounce 2s ease-in-out infinite;
  color: var(--text-muted);
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.scroll-arrow {
  width: 24px;
  height: 24px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ============================================================
   SUPPORT / TIPS SECTION
   ============================================================ */
.support-section {
  background:
    radial-gradient(ellipse 50% 40% at 50% 0%, rgba(236, 72, 153, 0.06) 0%, transparent 70%);
}

/* Fuel gauge */
.fuel-gauge-wrap {
  max-width: 400px;
  margin: 0 auto 3rem;
  text-align: center;
}

.fuel-gauge {
  position: relative;
  height: 40px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--pill-radius);
  overflow: hidden;
  border: 1px solid var(--card-border);
}

.fuel-fill {
  position: absolute;
  inset: 3px;
  border-radius: var(--pill-radius);
  width: 18%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 1.5s var(--ease-bounce);
  box-shadow: 0 0 20px var(--primary-glow);
}

.fuel-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, transparent 60%);
}

.fuel-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

.fuel-label strong {
  color: var(--primary);
}

/* Tip buttons grid */
.tip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  max-width: 900px;
  margin: 0 auto 2rem;
}

.tip-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  transition:
    transform var(--t-med) var(--ease-bounce),
    border-color var(--t-med) var(--ease-smooth),
    box-shadow var(--t-med) var(--ease-smooth),
    background var(--t-med) var(--ease-smooth);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.tip-card:hover {
  transform: translateY(-6px) scale(1.02);
  background: var(--card-bg-hover);
}

.tip-card-coffee:hover {
  border-color: rgba(251, 191, 36, 0.3);
  box-shadow: 0 12px 40px rgba(251, 191, 36, 0.12);
}

.tip-card-lunch:hover {
  border-color: rgba(236, 72, 153, 0.3);
  box-shadow: 0 12px 40px rgba(236, 72, 153, 0.12);
}

.tip-card-incredible:hover {
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 12px 40px rgba(139, 92, 246, 0.12);
}

.tip-card-mega:hover {
  border-color: rgba(34, 197, 94, 0.3);
  box-shadow: 0 12px 40px rgba(34, 197, 94, 0.12);
}

.tip-card-custom:hover {
  border-color: rgba(6, 182, 212, 0.3);
  box-shadow: 0 12px 40px rgba(6, 182, 212, 0.12);
}

.tip-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.6rem;
  transition: transform var(--t-med) var(--ease-bounce);
}

.tip-card:hover .tip-icon {
  transform: scale(1.15) rotate(-5deg);
}

.tip-card-mega:hover .tip-icon {
  animation: rocketShake 0.4s ease-in-out;
}

@keyframes rocketShake {
  0%, 100% { transform: scale(1.15) rotate(0deg); }
  20%      { transform: scale(1.2) rotate(-8deg); }
  40%      { transform: scale(1.15) rotate(6deg); }
  60%      { transform: scale(1.2) rotate(-4deg); }
  80%      { transform: scale(1.15) rotate(3deg); }
}

.tip-icon-coffee  { background: var(--accent-dim); color: var(--accent); }
.tip-icon-lunch   { background: var(--primary-dim); color: var(--primary); }
.tip-icon-sparkle { background: var(--secondary-dim); color: var(--secondary); }
.tip-icon-rocket  { background: var(--success-dim); color: var(--success); }
.tip-icon-custom  { background: var(--info-dim); color: var(--info); }

.tip-amount {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
}

.tip-label {
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.support-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 440px;
  margin: 0 auto;
}

.support-note strong {
  color: var(--text-secondary);
}

/* ============================================================
   GAME HUB SECTION
   ============================================================ */
.games-section {
  background:
    radial-gradient(ellipse 50% 40% at 50% 0%, rgba(139, 92, 246, 0.05) 0%, transparent 70%);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

/* Hub page: wider grid, 3 columns for 5 games */
.games-grid-hub {
  max-width: 1060px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.games-grid-hub .game-preview {
  height: 130px;
}

.games-grid-hub .game-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.games-grid-hub .game-card-desc {
  font-size: 0.9rem;
}

.game-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}

.game-preview {
  height: 160px;
  border-radius: var(--card-radius) var(--card-radius) 0 0;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-preview-clicker {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.15), rgba(251, 191, 36, 0.1));
}

.game-preview-brain {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(6, 182, 212, 0.1));
}

/* Clicker animation dots */
.click-dots {
  position: absolute;
  inset: 0;
}

.click-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.4;
  animation: clickPulse 2s ease-in-out infinite;
}

.click-dot:nth-child(1) { left: 20%; top: 30%; animation-delay: 0s; }
.click-dot:nth-child(2) { left: 50%; top: 60%; animation-delay: 0.4s; background: var(--accent); }
.click-dot:nth-child(3) { left: 75%; top: 25%; animation-delay: 0.8s; background: var(--secondary); }
.click-dot:nth-child(4) { left: 35%; top: 70%; animation-delay: 1.2s; }
.click-dot:nth-child(5) { left: 65%; top: 45%; animation-delay: 1.6s; background: var(--accent); }

@keyframes clickPulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50%      { transform: scale(1.8); opacity: 0.6; }
}

/* Brain game pattern */
.brain-pattern {
  display: grid;
  grid-template-columns: repeat(3, 32px);
  gap: 8px;
}

.brain-cell {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.15);
  animation: brainFlash 3s ease-in-out infinite;
}

.brain-cell:nth-child(2) { animation-delay: 0.3s; }
.brain-cell:nth-child(3) { animation-delay: 0.6s; }
.brain-cell:nth-child(4) { animation-delay: 0.9s; }
.brain-cell:nth-child(5) { animation-delay: 0.2s; background: rgba(6, 182, 212, 0.25); }
.brain-cell:nth-child(6) { animation-delay: 1.2s; }
.brain-cell:nth-child(7) { animation-delay: 0.5s; }
.brain-cell:nth-child(8) { animation-delay: 0.8s; background: rgba(6, 182, 212, 0.25); }
.brain-cell:nth-child(9) { animation-delay: 1.1s; }

@keyframes brainFlash {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.1); }
}

.game-preview-icon {
  font-size: 3rem;
  position: relative;
  z-index: 1;
}

.game-card-body {
  padding: 1.5rem 2rem 2rem;
}

.game-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.game-card-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

.game-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary);
  transition: gap var(--t-fast) var(--ease-bounce);
}

.game-card:hover .game-card-cta {
  gap: 0.75rem;
}

/* ============================================================
   COMPLIMENTS / WISDOM ROTATOR
   ============================================================ */
.wisdom-section {
  text-align: center;
  padding: 4rem 0;
}

.wisdom-display {
  max-width: 640px;
  margin: 0 auto;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.wisdom-quote {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 2.5vw, 1.6rem);
  color: var(--text-primary);
  line-height: 1.5;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.wisdom-quote.fading {
  opacity: 0;
  transform: translateY(10px);
}

.wisdom-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.wisdom-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease-smooth), transform var(--t-fast) var(--ease-bounce);
  padding: 0;
}

.wisdom-dot.active {
  background: var(--primary);
  transform: scale(1.3);
}

.wisdom-dot:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ============================================================
   CROSS-PROMOTION SECTION
   ============================================================ */
.promo-section {
  background:
    radial-gradient(ellipse 50% 40% at 50% 0%, rgba(251, 191, 36, 0.04) 0%, transparent 70%);
}

.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}

.promo-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}

.promo-icon-disc   { background: var(--secondary-dim); color: var(--secondary); }
.promo-icon-tools  { background: var(--info-dim); color: var(--info); }
.promo-icon-sheets { background: var(--success-dim); color: var(--success); }

.promo-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.promo-card-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
  line-height: 1.5;
}

.promo-card-bonus {
  font-size: 0.85rem;
  color: var(--accent);
  font-style: italic;
}

.promo-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary);
  transition: gap var(--t-fast) var(--ease-bounce);
}

.promo-card:hover .promo-card-link {
  gap: 0.75rem;
}

/* ============================================================
   SUPPORTER WALL SECTION
   ============================================================ */
.wall-section {
  background:
    radial-gradient(ellipse 50% 40% at 50% 0%, rgba(34, 197, 94, 0.04) 0%, transparent 70%);
}

.supporter-wall {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto 2rem;
}

.supporter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--pill-radius);
  font-size: 0.9rem;
  transition:
    transform var(--t-fast) var(--ease-bounce),
    box-shadow var(--t-med) var(--ease-smooth);
  animation: chipIn 0.5s var(--ease-bounce) both;
}

.supporter-chip:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.05);
}

.supporter-chip-new {
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-dim);
  animation: chipIn 0.5s var(--ease-bounce) both, newGlow 2s ease-in-out;
}

@keyframes chipIn {
  from {
    opacity: 0;
    transform: scale(0.7) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes newGlow {
  0%   { box-shadow: 0 0 20px var(--accent-dim); }
  50%  { box-shadow: 0 0 40px var(--accent-glow); }
  100% { box-shadow: 0 0 20px var(--accent-dim); }
}

.supporter-chip .chip-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.chip-avatar-pink   { background: var(--primary-dim); color: var(--primary); }
.chip-avatar-purple { background: var(--secondary-dim); color: var(--secondary); }
.chip-avatar-gold   { background: var(--accent-dim); color: var(--accent); }
.chip-avatar-green  { background: var(--success-dim); color: var(--success); }
.chip-avatar-cyan   { background: var(--info-dim); color: var(--info); }

.supporter-chip .chip-name {
  font-weight: 600;
  color: var(--text-primary);
}

.supporter-chip .chip-amount {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.wall-cta {
  text-align: center;
}

.wall-cta-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--card-border);
  padding: 3rem 0;
  text-align: center;
}

.footer-tagline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-link {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--t-fast) var(--ease-smooth);
}

.footer-link:hover {
  color: var(--primary);
}

.footer-privacy {
  color: var(--text-muted);
  font-size: 0.8rem;
  opacity: 0.7;
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column-reverse;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  padding: 1rem 1.5rem;
  background: var(--bg-raised);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  font-size: 0.95rem;
  color: var(--text-primary);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  animation: toastIn 0.4s var(--ease-bounce) both;
  max-width: 360px;
}

.toast.exiting {
  animation: toastOut 0.3s ease-in forwards;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
  }
}

/* ============================================================
   CONFETTI
   ============================================================ */
.confetti-canvas {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-smooth), transform 0.6s var(--ease-bounce);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --section-gap: 4rem;
  }

  .container {
    padding: 0 1rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

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

  .tip-grid-hero {
    gap: 0.75rem;
  }

  .tip-grid-hero .tip-card {
    padding: 1.25rem 0.75rem;
  }

  .tip-grid-hero .tip-amount {
    font-size: 1.5rem;
  }

  .tip-grid-hero .tip-icon {
    width: 52px;
    height: 52px;
  }

  .games-grid,
  .games-grid-hub {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }

  .promo-grid {
    grid-template-columns: 1fr;
  }

  .toast-container {
    left: 1rem;
    right: 1rem;
    bottom: 5rem;
  }

  .toast {
    max-width: 100%;
  }

  .hero-support {
    padding-top: 2rem;
  }

  .hero-sub {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .tip-grid {
    grid-template-columns: 1fr;
  }

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

  .tip-grid-hero .tip-card-custom {
    grid-column: 1 / -1;
  }

  .hero-scroll-hint {
    display: none;
  }

  .name-display {
    min-width: auto;
    width: 100%;
    font-size: 1.1rem;
    padding: 0.6rem 1rem;
  }

  .supporter-wall {
    gap: 0.6rem;
  }

  .supporter-chip {
    font-size: 0.8rem;
    padding: 0.45rem 0.9rem;
  }
}

/* ============================================================
   STICKY TIP BUTTON (Injected by common.js on game pages)
   ============================================================ */
.sticky-tip-wrap {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9990;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  pointer-events: none;
}

/* Expanded panel */
.sticky-tip-panel {
  pointer-events: auto;
  background: var(--bg-raised);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 1.25rem;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(12px) scale(0.92);
  transition: opacity 0.25s var(--ease-smooth), transform 0.3s var(--ease-bounce);
  visibility: hidden;
  min-width: 200px;
}

.sticky-tip-wrap.open .sticky-tip-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
}

.sticky-tip-panel-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sticky-tip-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.sticky-tip-opt {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 0.75rem;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  text-decoration: none;
  transition:
    background 0.2s var(--ease-smooth),
    transform 0.15s var(--ease-bounce),
    box-shadow 0.2s var(--ease-smooth);
  pointer-events: auto;
}

.sticky-tip-opt:hover {
  transform: scale(1.06);
}

.sticky-tip-opt:active {
  transform: scale(0.96);
}

.sticky-tip-opt-3 {
  background: var(--accent-dim);
  color: var(--accent);
}
.sticky-tip-opt-3:hover {
  box-shadow: 0 4px 16px rgba(251, 191, 36, 0.25);
}

.sticky-tip-opt-5 {
  background: var(--primary-dim);
  color: var(--primary);
}
.sticky-tip-opt-5:hover {
  box-shadow: 0 4px 16px rgba(236, 72, 153, 0.25);
}

.sticky-tip-opt-10 {
  background: var(--secondary-dim);
  color: var(--secondary);
}
.sticky-tip-opt-10:hover {
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.25);
}

.sticky-tip-opt-25 {
  background: var(--success-dim);
  color: var(--success);
}
.sticky-tip-opt-25:hover {
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.25);
}

.sticky-tip-stripe {
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.6rem;
  opacity: 0.7;
}

/* Main toggle button */
.sticky-tip-btn {
  pointer-events: auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(236, 72, 153, 0.35);
  transition:
    transform 0.2s var(--ease-bounce),
    box-shadow 0.3s var(--ease-smooth);
  position: relative;
  flex-shrink: 0;
}

.sticky-tip-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(236, 72, 153, 0.5);
}

.sticky-tip-btn:active {
  transform: scale(0.95);
}

/* Heart SVG inside button */
.sticky-tip-btn svg {
  width: 26px;
  height: 26px;
  fill: #fff;
  transition: transform 0.3s var(--ease-bounce);
}

.sticky-tip-wrap.open .sticky-tip-btn svg {
  transform: rotate(45deg) scale(0.85);
}

/* Gentle attention pulse every ~60s */
@keyframes stickyPulse {
  0%, 92%  { box-shadow: 0 6px 24px rgba(236, 72, 153, 0.35); }
  95%      { box-shadow: 0 6px 36px rgba(236, 72, 153, 0.6); transform: scale(1.08); }
  97%      { box-shadow: 0 6px 24px rgba(236, 72, 153, 0.35); transform: scale(1); }
  100%     { box-shadow: 0 6px 24px rgba(236, 72, 153, 0.35); }
}

.sticky-tip-btn {
  animation: stickyPulse 60s ease-in-out infinite;
}

.sticky-tip-wrap.open .sticky-tip-btn {
  animation: none;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .sticky-tip-wrap {
    bottom: 1rem;
    right: 1rem;
  }

  .sticky-tip-btn {
    width: 48px;
    height: 48px;
  }

  .sticky-tip-btn svg {
    width: 22px;
    height: 22px;
  }

  .sticky-tip-panel {
    min-width: 180px;
    padding: 1rem;
  }

  .sticky-tip-opt {
    padding: 0.5rem 0.6rem;
    font-size: 0.85rem;
  }
}

/* Prevent overlap with toast container */
.sticky-tip-wrap ~ .toast-container,
body:has(.sticky-tip-wrap) .toast-container {
  bottom: 5.5rem;
}

/* --- Utility Classes --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
