.fun-modes{max-width:1100px;margin:0 auto;padding:48px 18px 20px}
.fun-modes-title{font-size:clamp(1.4rem,3vw,2rem);text-align:center;margin:0 0 24px;font-weight:700}
.fun-modes-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
@media(max-width:800px){.fun-modes-grid{grid-template-columns:1fr}}
.fun-mode-card{
  display:flex;flex-direction:column;min-height:320px;padding:22px 20px;
  border-radius:18px;text-decoration:none;color:#fff;
  transition:transform .2s ease, box-shadow .2s ease;
}
.fun-mode-card:hover{transform:translateY(-4px);box-shadow:0 20px 40px rgba(0,0,0,.35)}
.fun-mode-community{background:#4a0d2e}
.fun-mode-astro{background:#1a1228}
.fun-mode-music{background:#f5f0fa;color:#111}
.fun-mode-music .fun-mode-link{color:#111}
.fun-mode-label{font-size:12px;font-weight:700;opacity:.85;margin-bottom:8px}
.fun-mode-card h3{margin:0;font-size:1.6rem;line-height:1.15;font-weight:800}
.fun-mode-art{font-size:3rem;margin:auto 0;text-align:center;opacity:.95}
.fun-mode-desc{font-size:13px;line-height:1.45;opacity:.85;margin:0 0 12px}
.fun-mode-link{font-size:13px;font-weight:700;margin-top:auto}

.fun-astro-hero{
  margin:32px 0;padding:56px 18px;
  background:radial-gradient(ellipse at center,#2a1f3d 0%,#120c1a 70%);
  text-align:center;position:relative;overflow:hidden;
}
.fun-astro-hero::before{
  content:"";position:absolute;inset:0;
  background-image:radial-gradient(1px 1px at 20% 30%,#fff8,transparent),
    radial-gradient(1px 1px at 60% 70%,#fff6,transparent),
    radial-gradient(1px 1px at 80% 20%,#fff5,transparent),
    radial-gradient(1px 1px at 40% 80%,#fff4,transparent);
  pointer-events:none;
}
.fun-astro-inner{position:relative;max-width:720px;margin:0 auto}
.fun-astro-kicker{color:#c4b5fd;font-size:13px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.fun-astro-inner h2{color:#f0abfc;font-size:clamp(1.8rem,4vw,2.6rem);margin:8px 0 14px;line-height:1.15}
.fun-astro-lead{color:#d8d0e8;line-height:1.55;margin:0 0 22px}
.fun-elements{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;margin-bottom:18px}
.fun-el{
  width:120px;padding:12px 8px;border-radius:16px;
  background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);
  display:flex;flex-direction:column;align-items:center;gap:4px;color:#eee
}
.fun-el span{font-size:1.4rem}
.fun-el b{font-size:13px}
.fun-el small{font-size:10px;opacity:.75;text-align:center}
.fun-astro-note{font-size:12px;color:#a89bb8;margin:0 0 16px}

.fun-safety{max-width:1100px;margin:0 auto;padding:40px 18px 20px}
.fun-safety-head{margin-bottom:20px;max-width:640px}
.fun-safety-head h2{margin:0 0 8px;font-size:clamp(1.4rem,3vw,1.9rem)}
.fun-safety-head p{margin:0;color:#a89bb8;line-height:1.5}
.fun-safety-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
@media(max-width:900px){.fun-safety-grid{grid-template-columns:1fr 1fr}}
@media(max-width:520px){.fun-safety-grid{grid-template-columns:1fr}}
.fun-safety-card{
  background:#16141c;border:1px solid rgba(255,255,255,.08);border-radius:16px;
  padding:18px 16px;min-height:200px;display:flex;flex-direction:column
}
.fun-safety-label{font-size:11px;font-weight:700;color:#a89bb8;text-transform:uppercase;letter-spacing:.04em}
.fun-safety-card h3{margin:8px 0;font-size:1.15rem}
.fun-safety-card p{margin:0;font-size:13px;color:#b4adbf;line-height:1.5;flex:1}
.fun-safety-ico{font-size:2rem;margin-top:12px}

.zodiac-chip{
  display:inline-flex;align-items:center;gap:4px;padding:3px 9px;border-radius:999px;
  font-size:11px;font-weight:700;border:1px solid rgba(240,171,252,.35);
  background:rgba(192,38,211,.12);color:#f0abfc;vertical-align:middle;margin-left:4px
}
.zodiac-chip.el-fire{border-color:rgba(251,146,60,.4);color:#fdba74;background:rgba(249,115,22,.12)}
.zodiac-chip.el-water{border-color:rgba(56,189,248,.4);color:#7dd3fc;background:rgba(14,165,233,.12)}
.zodiac-chip.el-earth{border-color:rgba(52,211,153,.4);color:#6ee7b7;background:rgba(16,185,129,.12)}
.zodiac-chip.el-air{border-color:rgba(167,139,250,.4);color:#c4b5fd;background:rgba(124,58,237,.12)}


/* —— Animated mode icons —— */
.fun-icon-stage{
  position:relative;height:120px;margin:12px 0 auto;
  display:flex;align-items:center;justify-content:center;gap:8px;
}
.fun-ico{
  font-size:2.4rem;display:inline-flex;line-height:1;
  animation:funFloat 3.2s ease-in-out infinite;
  filter:drop-shadow(0 8px 16px rgba(0,0,0,.25));
}
.fun-ico-cross{animation-delay:.4s;font-size:2.1rem}
.fun-ico-crescent{animation-delay:.8s}
.fun-ico-star{animation:funTwinkle 2.4s ease-in-out infinite;color:#f0abfc}
.fun-ico-spark{animation:funTwinkle 2.4s ease-in-out infinite .6s;font-size:1.4rem;opacity:.8}
.fun-ico-moon{animation:funFloat 3.6s ease-in-out infinite;font-size:3rem;color:#c4b5fd}
.fun-ico-note{animation:funFloat 2.8s ease-in-out infinite .5s;font-size:1.6rem;opacity:.7}
.fun-mode-music .fun-ico{color:#a21caf}

@keyframes funFloat{
  0%,100%{transform:translateY(0) scale(1)}
  50%{transform:translateY(-10px) scale(1.06)}
}
@keyframes funTwinkle{
  0%,100%{opacity:.55;transform:scale(.9) rotate(0deg)}
  50%{opacity:1;transform:scale(1.15) rotate(12deg)}
}

/* Element orbs */
.el-orb{
  width:48px;height:48px;border-radius:50%;display:block;margin:0 auto 6px;
  position:relative;animation:orbPulse 2.8s ease-in-out infinite;
  box-shadow:0 0 24px rgba(255,255,255,.15);
  will-change:transform;
}
.el-orb-fire{
  background:radial-gradient(circle at 35% 30%,#fde68a,#f97316 45%,#9a3412);
  animation-delay:0s;
}
.el-orb-water{
  background:radial-gradient(circle at 35% 30%,#e0f2fe,#0ea5e9 50%,#075985);
  animation-delay:.3s;
}
.el-orb-earth{
  background:radial-gradient(circle at 35% 30%,#bbf7d0,#16a34a 50%,#14532d);
  animation-delay:.6s;
}
.el-orb-air{
  background:radial-gradient(circle at 35% 30%,#ede9fe,#8b5cf6 50%,#4c1d95);
  animation-delay:.9s;
}
@keyframes orbPulse{
  0%,100%{transform:scale(1)}
  50%{transform:scale(1.08)}
}

/* Safety soft icons */
.ssi{
  display:inline-flex;width:52px;height:52px;border-radius:14px;
  align-items:center;justify-content:center;font-size:1.5rem;font-weight:800;
  background:linear-gradient(145deg,rgba(255,255,255,.1),rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.12);
}
.ssi-check{color:#6ee7b7}
.ssi-smile{color:#fbbf24}
.ssi-pin{color:#f87171}
.ssi-shield{color:#7dd3fc}
.fun-safety-pulse .ssi{animation:funFloat 3.5s ease-in-out infinite}

/* Starfield drift on astro hero */
.fun-astro-hero::after{
  content:"";position:absolute;inset:-20%;
  background-image:
    radial-gradient(1.5px 1.5px at 10% 20%,#fff9,transparent),
    radial-gradient(1px 1px at 30% 60%,#fff7,transparent),
    radial-gradient(1.5px 1.5px at 70% 40%,#fff8,transparent),
    radial-gradient(1px 1px at 90% 80%,#fff6,transparent);
  animation:starDrift 40s linear infinite;
  pointer-events:none;opacity:.7;
}
@keyframes starDrift{
  from{transform:translateY(0)}
  to{transform:translateY(12%)}
}

/* Layout polish */
.fun-modes{padding-top:36px}
.fun-mode-card{backdrop-filter:blur(6px)}
.fun-mode-community{background:linear-gradient(160deg,#5b0f38,#2a0a1c)}
.fun-mode-astro{background:linear-gradient(160deg,#25183a,#120c1c)}
.fun-mode-music{background:linear-gradient(160deg,#faf5ff,#f3e8ff);color:#1f1235}

/* Zodiac badges (profiles / discover) */
.zodiac-badge{
  display:inline-flex;align-items:center;gap:4px;
  font-size:11px;font-weight:700;letter-spacing:.02em;
  padding:3px 9px;border-radius:999px;line-height:1.2;
  vertical-align:middle;white-space:nowrap;
  border:1px solid transparent;
}
.zodiac-badge-fire,.zodiac-badge.el-fire{
  color:#fdba74;background:rgba(249,115,22,.14);border-color:rgba(251,146,60,.4);
}
.zodiac-badge-water,.zodiac-badge.el-water{
  color:#7dd3fc;background:rgba(14,165,233,.14);border-color:rgba(56,189,248,.4);
}
.zodiac-badge-earth,.zodiac-badge.el-earth{
  color:#6ee7b7;background:rgba(16,185,129,.14);border-color:rgba(52,211,153,.4);
}
.zodiac-badge-air,.zodiac-badge.el-air{
  color:#c4b5fd;background:rgba(124,58,237,.14);border-color:rgba(167,139,250,.4);
}


/* Safety section — headline-matching SVG icons */
.fun-safety-card{
  position:relative;
}
.fun-safety-ico{
  margin:0 0 14px;
  display:flex;
}
.fun-safety-ico .ssi{
  width:56px;height:56px;border-radius:16px;
  display:inline-flex;align-items:center;justify-content:center;
  border:1px solid rgba(255,255,255,.12);
  background:linear-gradient(145deg,rgba(255,255,255,.1),rgba(255,255,255,.02));
  box-shadow:0 8px 24px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.08);
  animation:funFloat 3.5s ease-in-out infinite;
}
.fun-safety-ico .ssi svg{display:block}
.ssi-verify{color:#5eead4;background:linear-gradient(145deg,rgba(45,212,191,.2),rgba(15,23,42,.4))}
.ssi-respect{color:#fbbf24;background:linear-gradient(145deg,rgba(251,191,36,.18),rgba(15,23,42,.4));animation-delay:.2s}
.ssi-control{color:#f472b6;background:linear-gradient(145deg,rgba(244,114,182,.18),rgba(15,23,42,.4));animation-delay:.4s}
.ssi-support{color:#7dd3fc;background:linear-gradient(145deg,rgba(56,189,248,.18),rgba(15,23,42,.4));animation-delay:.6s}
.fun-safety-card:hover .ssi{
  transform:translateY(-3px) scale(1.05);
  box-shadow:0 12px 28px rgba(0,0,0,.35), 0 0 20px rgba(192,38,211,.15);
  transition:transform .2s ease, box-shadow .2s ease;
}

/* ========== Icon system: pure CSS (no icon-font / no JS lib) ==========
   Alternatives considered for later:
   - Lucide / Heroicons / Phosphor (SVG sprites)
   - Icon fonts (FA, Material) — heavier, less crisp on retina
   We keep inline SVG + CSS for speed and zero CDN dependency.
*/

.fun-safety-card{
  transition: transform .25s cubic-bezier(.22,1,.36,1), border-color .25s ease, box-shadow .25s ease;
  cursor: default;
}
.fun-safety-card:hover,
.fun-safety-card:focus-within{
  transform: translateY(-6px);
  border-color: rgba(192,38,211,.35);
  box-shadow: 0 18px 40px rgba(0,0,0,.35), 0 0 0 1px rgba(192,38,211,.12);
}
.fun-safety-card:hover .ssi,
.fun-safety-card:focus-within .ssi{
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 14px 32px rgba(0,0,0,.4), 0 0 24px rgba(192,38,211,.2);
}
.fun-safety-card:hover .ico-ring,
.fun-safety-card:focus-within .ico-ring{
  opacity: .7;
  animation: icoRingPulse 1.2s ease-out;
}
.fun-safety-card:hover .ico-draw,
.fun-safety-card:focus-within .ico-draw{
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: icoDraw .7s ease forwards;
}
.fun-safety-card:hover .ico-fill,
.fun-safety-card:focus-within .ico-fill{
  opacity: .45;
  transition: opacity .3s ease;
}

@keyframes icoDraw{
  to{ stroke-dashoffset: 0; }
}
@keyframes icoRingPulse{
  0%{ transform-origin: center; transform: scale(1); opacity: .35; }
  50%{ transform: scale(1.06); opacity: .85; }
  100%{ transform: scale(1); opacity: .7; }
}

/* Tooltip detail on hover/focus */
.ssi[data-tip]{ position: relative; }
.ssi[data-tip]::after{
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(6px);
  white-space: nowrap;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  padding: 6px 10px;
  border-radius: 8px;
  background: #1a1624;
  color: #f3eef8;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 8px 20px rgba(0,0,0,.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 5;
}
.ssi[data-tip]::before{
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1a1624;
  opacity: 0;
  transition: opacity .2s ease;
  z-index: 5;
}
.fun-safety-card:hover .ssi[data-tip]::after,
.fun-safety-card:focus-within .ssi[data-tip]::after,
.ssi[data-tip]:hover::after{
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.fun-safety-card:hover .ssi[data-tip]::before,
.fun-safety-card:focus-within .ssi[data-tip]::before{
  opacity: 1;
}

/* Mode cards — richer hover */
.fun-mode-card{
  position: relative;
  overflow: hidden;
  transition: transform .28s cubic-bezier(.22,1,.36,1), box-shadow .28s ease;
}
.fun-mode-card::after{
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 200px at var(--mx,50%) var(--my,0%), rgba(255,255,255,.12), transparent 55%);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.fun-mode-card:hover{
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 24px 50px rgba(0,0,0,.4);
}
.fun-mode-card:hover::after{ opacity: 1; }
.fun-mode-card:hover .fun-ico{
  animation-duration: 1.6s;
  filter: drop-shadow(0 12px 20px rgba(0,0,0,.35));
}
.fun-mode-card:hover .fun-mode-link{
  letter-spacing: .03em;
}

/* Element orbs — stronger hover */
.fun-el{
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
  cursor: default;
}
.fun-el:hover{
  transform: translateY(-6px);
  border-color: rgba(255,255,255,.25);
  background: rgba(255,255,255,.1);
}
.fun-el:hover .el-orb{
  animation-duration: 1.4s;
  box-shadow: 0 0 32px rgba(255,255,255,.35);
}

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce){
  .fun-ico, .el-orb, .fun-safety-ico .ssi, .fun-astro-hero::after{
    animation: none !important;
  }
  .fun-safety-card:hover,
  .fun-mode-card:hover,
  .fun-el:hover{
    transform: none;
  }
}
