/* ── RESET & BASE ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: #02030f;
  color: #e2e8f0;
  overflow-x: hidden;
}
img { max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* ── VARIABLES ─────────────────────────────────────────────────────── */
:root {
  --cyan:    #00e5ff;
  --violet:  #c084fc;
  --blue:    #3b82f6;
  --gold:    #fde047;
  --bg:      #02030f;
  --bg2:     #06071a;
  --border:  rgba(255,255,255,0.08);
  --text:    #e2e8f0;
  --muted:   #64748b;
  --r:       14px;
}

/* ── NAV ───────────────────────────────────────────────────────────── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(2,3,15,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
#nav.scrolled { box-shadow: 0 0 30px rgba(0,229,255,0.08); }
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900; font-size: 20px;
  color: var(--cyan);
  letter-spacing: 4px;
  text-shadow: 0 0 20px rgba(0,229,255,0.5);
  text-decoration: none;
  transition: text-shadow .2s;
}
.nav-logo:hover { text-shadow: 0 0 36px rgba(0,229,255,.9); }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  font-size: 13px; font-weight: 500; letter-spacing: .5px;
  color: rgba(255,255,255,0.55);
  transition: color .2s;
}
.nav-links a:hover { color: var(--cyan); }
/* Library button — hero version */
.btn-library {
  background: linear-gradient(135deg, rgba(120,0,200,.18), rgba(60,0,120,.12));
  border: 1px solid rgba(192,132,252,.5);
  color: #c084fc; font-size: 15px; font-weight: 700;
  padding: 13px 28px; border-radius: var(--r);
  letter-spacing: .5px; transition: all .25s;
  box-shadow: 0 0 20px rgba(120,0,200,.12), inset 0 0 20px rgba(120,0,200,.06);
}
.btn-library:hover {
  background: linear-gradient(135deg, rgba(120,0,200,.32), rgba(60,0,120,.2));
  border-color: var(--violet); color: #e0aaff;
  box-shadow: 0 0 35px rgba(120,0,200,.28);
  transform: translateY(-2px);
}

/* Scroll-to-top button */
#scrollTop {
  position: fixed; bottom: 28px; right: 24px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(0,0,20,.7);
  border: 1px solid rgba(0,229,255,.25);
  color: rgba(0,229,255,.45);
  font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .25s, border-color .2s, color .2s;
  backdrop-filter: blur(8px);
}
#scrollTop.visible { opacity: 1; pointer-events: auto; }
#scrollTop:hover {
  border-color: var(--cyan); color: var(--cyan);
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(0,229,255,.2);
}
.nav-cta {
  background: var(--cyan); color: #000;
  padding: 8px 20px; border-radius: 6px;
  font-size: 13px; font-weight: 700; letter-spacing: 1px;
  transition: all .2s;
}
.nav-cta:hover { background: #fff; transform: translateY(-1px); }

/* ── HERO ──────────────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  padding: 80px 24px 60px;
}
.stars-bg { position: absolute; inset: 0; pointer-events: none; }
.stars { position: absolute; inset: 0; }
.stars::before, .stars::after {
  content: ''; position: absolute;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Ccircle cx='10' cy='15' r='1' fill='%23fff' opacity='.4'/%3E%3Ccircle cx='50' cy='40' r='.8' fill='%23fff' opacity='.3'/%3E%3Ccircle cx='90' cy='10' r='1.2' fill='%23fff' opacity='.5'/%3E%3Ccircle cx='130' cy='80' r='.9' fill='%23fff' opacity='.3'/%3E%3Ccircle cx='170' cy='30' r='1' fill='%23fff' opacity='.4'/%3E%3Ccircle cx='20' cy='120' r='.7' fill='%23fff' opacity='.25'/%3E%3Ccircle cx='100' cy='150' r='1.1' fill='%23fff' opacity='.45'/%3E%3Ccircle cx='160' cy='160' r='.8' fill='%23fff' opacity='.3'/%3E%3Ccircle cx='40' cy='180' r='1' fill='%23fff' opacity='.35'/%3E%3Ccircle cx='140' cy='110' r='.6' fill='%23fff' opacity='.2'/%3E%3C/svg%3E") repeat;
}
.s1::before { animation: drift1 40s linear infinite; opacity: .7; }
.s2::before { animation: drift2 60s linear infinite; opacity: .4; width: 150%; height: 150%; }
.s3::before { animation: drift1 80s linear infinite reverse; opacity: .3; }
@keyframes drift1 { from { transform: translate(0,0); } to { transform: translate(-200px,-100px); } }
@keyframes drift2 { from { transform: translate(0,0); } to { transform: translate(150px,-200px); } }

.hero-glow {
  position: absolute; top: 30%; left: 50%; transform: translate(-50%,-50%);
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,229,255,0.1) 0%, rgba(120,0,255,0.06) 40%, transparent 70%);
  pointer-events: none;
  animation: pulseGlow 4s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%,100% { transform: translate(-50%,-50%) scale(1); opacity: .8; }
  50% { transform: translate(-50%,-50%) scale(1.15); opacity: 1; }
}

.hero-content {
  position: relative; z-index: 2;
  text-align: center; max-width: 700px;
  animation: fadeUp .8s ease-out;
}
@keyframes fadeUp { from { opacity:0; transform:translateY(30px); } to { opacity:1; transform:none; } }

.hero-badge {
  display: inline-block;
  font-size: 10px; letter-spacing: 4px; font-weight: 700;
  color: var(--cyan); border: 1px solid rgba(0,229,255,.3);
  padding: 5px 14px; border-radius: 99px;
  margin-bottom: 20px;
  background: rgba(0,229,255,.06);
}
.hero-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(72px, 15vw, 130px);
  font-weight: 900; line-height: .9;
  letter-spacing: 12px;
  margin-bottom: 8px;
}
.hero-l { color: #00e5ff; text-shadow: 0 0 40px rgba(0,229,255,.7); }
.hero-u { color: #c084fc; text-shadow: 0 0 40px rgba(192,132,252,.7); }
.hero-m { color: #00e5ff; text-shadow: 0 0 40px rgba(0,229,255,.7); }
.hero-i { color: #c084fc; text-shadow: 0 0 40px rgba(192,132,252,.7); }
.hero-s { color: #00e5ff; text-shadow: 0 0 40px rgba(0,229,255,.7); }

.hero-sub {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(12px, 2vw, 16px);
  letter-spacing: 8px; color: rgba(255,255,255,.35);
  margin-bottom: 24px;
}
.hero-desc {
  font-size: clamp(15px, 2vw, 18px);
  color: rgba(255,255,255,.65); line-height: 1.7;
  margin-bottom: 36px; max-width: 520px; margin-left: auto; margin-right: auto;
}
.hero-btns { display: flex; gap: 14px; justify-content: center; margin-bottom: 48px; flex-wrap: wrap; }
.btn-primary {
  background: linear-gradient(135deg, var(--cyan), #0080ff);
  color: #000; font-weight: 800; font-size: 15px;
  padding: 14px 32px; border-radius: var(--r);
  letter-spacing: 1px; transition: all .25s;
  box-shadow: 0 0 30px rgba(0,229,255,.3);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 0 50px rgba(0,229,255,.5); }
.btn-outline {
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.7); font-size: 15px;
  padding: 14px 32px; border-radius: var(--r);
  transition: all .25s;
}
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); }

.hero-stats {
  display: flex; align-items: center; justify-content: center;
  gap: 0; flex-wrap: wrap;
}
.hstat { text-align: center; padding: 0 24px; }
.hstat-n {
  display: block;
  font-family: 'Orbitron', sans-serif; font-size: 28px; font-weight: 900;
  color: var(--cyan); text-shadow: 0 0 16px rgba(0,229,255,.5);
}
.hstat-l { display: block; font-size: 11px; color: var(--muted); letter-spacing: 1px; margin-top: 3px; }
.hstat-div { width: 1px; height: 36px; background: var(--border); }

.hero-lumis {
  position: absolute; right: 5%; bottom: 0;
  width: min(320px, 40vw); z-index: 1;
  pointer-events: none;
}
.hero-lumis img { width: 100%; animation: float 4s ease-in-out infinite; }
.hero-lumis-glow {
  position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%);
  width: 80%; height: 40px;
  background: radial-gradient(ellipse, rgba(0,229,255,.3), transparent 70%);
  filter: blur(8px);
  animation: float 4s ease-in-out infinite;
}
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-16px)} }

/* ── CONTAINER ─────────────────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ── SECTION COMMON ────────────────────────────────────────────────── */
section { padding: 100px 0; }
section:nth-child(even) { background: var(--bg2); }
.section-tag {
  font-size: 11px; letter-spacing: 4px; font-weight: 700; color: var(--cyan);
  text-transform: uppercase; margin-bottom: 10px;
}
.section-title {
  font-family: 'Orbitron', sans-serif; font-weight: 800;
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 14px;
  background: linear-gradient(135deg, #fff, rgba(255,255,255,.7));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.section-sub { font-size: 16px; color: var(--muted); margin-bottom: 48px; }

/* ── STORY ─────────────────────────────────────────────────────────── */
.story-grid {
  display: grid; grid-template-columns: 1fr 340px; gap: 64px; align-items: center;
}
.story-text p {
  font-size: 16px; line-height: 1.8; color: rgba(255,255,255,.7);
  margin-bottom: 18px;
}
.story-quote {
  font-family: 'Orbitron', sans-serif;
  font-size: 16px; font-weight: 600;
  color: var(--cyan);
  border-left: 3px solid var(--cyan);
  padding: 12px 20px; margin: 28px 0;
  background: rgba(0,229,255,.05);
  border-radius: 0 var(--r) var(--r) 0;
}
.story-visual {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-align: center;
}
.story-planet {
  width: 64px; height: 64px; border-radius: 50%;
  animation: float 4s ease-in-out infinite;
}
.p1 { background: radial-gradient(circle at 35% 35%, #4488ff, #001155); box-shadow: 0 0 20px rgba(0,100,255,.4); }
.p2 { background: radial-gradient(circle at 35% 35%, #aa44ff, #220033); box-shadow: 0 0 20px rgba(150,0,255,.4); animation-delay: .5s; }
.p3 { background: radial-gradient(circle at 35% 35%, #ff4444, #220000); box-shadow: 0 0 20px rgba(255,50,50,.4); animation-delay: 1s; }
.story-label { font-size: 11px; letter-spacing: 2px; color: var(--muted); }
.story-arrow { font-size: 24px; color: var(--cyan); }
.story-home { text-align: center; }
.story-home span { font-size: 40px; }
.story-home div { font-size: 12px; color: var(--muted); margin-top: 6px; letter-spacing: 2px; }

/* ── FEATURES ──────────────────────────────────────────────────────── */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-bottom: 48px;
}
.feat-card {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: var(--r); padding: 28px 24px;
  transition: all .25s;
}
.feat-card:hover { border-color: rgba(0,229,255,.3); background: rgba(0,229,255,.04); transform: translateY(-4px); }
.feat-card--highlight {
  border-color: rgba(255,80,80,.3);
  background: rgba(255,50,50,.04);
}
.feat-card--highlight:hover { border-color: rgba(255,80,80,.5); background: rgba(255,50,50,.07); }
.feat-icon { font-size: 32px; margin-bottom: 14px; }
.feat-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feat-card p { font-size: 14px; color: rgba(255,255,255,.55); line-height: 1.6; }

.phases { display: flex; align-items: center; gap: 12px; }
.phase-card {
  flex: 1; padding: 24px; border-radius: var(--r);
  border: 1px solid rgba(0,229,255,.18);
  background: linear-gradient(135deg, rgba(0,229,255,.06), transparent);
}
.phase-card--2 { border-color: rgba(192,132,252,.18); background: linear-gradient(135deg, rgba(192,132,252,.06), transparent); }
.phase-card--3 { border-color: rgba(255,80,80,.18); background: linear-gradient(135deg, rgba(255,80,80,.06), transparent); }
.phase-num { font-family: 'Orbitron', sans-serif; font-weight: 900; font-size: 18px; color: var(--cyan); }
.phase-card--2 .phase-num { color: var(--violet); }
.phase-card--3 .phase-num { color: #ff8888; }
.phase-range { font-size: 12px; color: var(--muted); letter-spacing: 1px; margin: 4px 0 10px; }
.phase-desc { font-size: 13px; color: rgba(255,255,255,.55); line-height: 1.6; }
.phase-arrow { font-size: 24px; color: var(--muted); flex-shrink: 0; }

/* ── MONSTERS ──────────────────────────────────────────────────────── */
#monsters { background: var(--bg); }
.monster-tabs { display: flex; gap: 8px; margin-bottom: 32px; }
.mtab {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted); font-size: 13px; font-weight: 600;
  padding: 8px 22px; border-radius: 6px; cursor: pointer;
  transition: all .2s;
}
.mtab:hover { border-color: var(--cyan); color: var(--cyan); }
.mtab.active { background: rgba(0,229,255,.1); border-color: var(--cyan); color: var(--cyan); }

.monster-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px;
}
.m-card {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: var(--r); padding: 20px 16px;
  text-align: center; transition: all .25s;
  animation: fadeUp .4s ease-out;
}
.m-card:hover { border-color: rgba(0,229,255,.3); transform: translateY(-4px); background: rgba(0,229,255,.04); }
.m-img {
  width: 72px; height: 72px; margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px;
}
.m-img img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 8px rgba(0,229,255,.3)); }
.m-name { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.m-phase { font-size: 10px; color: var(--cyan); letter-spacing: 1px; margin-bottom: 8px; }
.m-desc { font-size: 12px; color: var(--muted); line-height: 1.5; }

/* ── MODES ─────────────────────────────────────────────────────────── */
.modes-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.mode-card {
  border-radius: var(--r); padding: 32px 28px;
  border: 1px solid var(--border); position: relative; overflow: hidden;
  transition: transform .25s;
}
.mode-card:hover { transform: translateY(-4px); }
.mode-main  { background: linear-gradient(135deg, rgba(0,229,255,.08), rgba(0,80,180,.05)); border-color: rgba(0,229,255,.2); }
.mode-cosmic{ background: linear-gradient(135deg, rgba(0,229,255,.06), rgba(80,0,200,.06)); border-color: rgba(0,229,255,.15); }
.mode-maze  { background: linear-gradient(135deg, rgba(180,0,255,.08), rgba(0,0,50,.05)); border-color: rgba(180,0,255,.2); }
.mode-ngp   { background: linear-gradient(135deg, rgba(255,215,0,.06), rgba(200,100,0,.04)); border-color: rgba(255,215,0,.2); }
.mode-icon { font-size: 36px; margin-bottom: 10px; }
.mode-badge {
  display: inline-block; font-size: 9px; letter-spacing: 2px;
  color: var(--muted); border: 1px solid var(--border);
  padding: 3px 10px; border-radius: 99px; margin-bottom: 10px;
}
.mode-card h3 { font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.mode-card p { font-size: 14px; color: rgba(255,255,255,.6); line-height: 1.7; margin-bottom: 16px; }
.mode-list { list-style: none; }
.mode-list li { font-size: 13px; color: rgba(255,255,255,.55); padding: 4px 0; }

/* ── CREATOR ───────────────────────────────────────────────────────── */
.creator-card {
  display: flex; gap: 48px; align-items: flex-start;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border); border-radius: 20px;
  padding: 48px; max-width: 820px; margin: 0 auto;
}
.creator-avatar {
  width: 100px; height: 100px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  display: flex; align-items: center; justify-content: center;
}
.creator-initials {
  font-family: 'Orbitron', sans-serif; font-size: 28px; font-weight: 900;
  color: #000;
}
.creator-info h3 { font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.creator-title { font-size: 13px; color: var(--cyan); letter-spacing: 1px; margin-bottom: 4px; }
.creator-city { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.creator-bio { font-size: 15px; color: rgba(255,255,255,.65); line-height: 1.8; margin-bottom: 20px; }
.creator-link {
  display: inline-block; font-size: 14px; font-weight: 600;
  color: var(--cyan); border: 1px solid rgba(0,229,255,.3);
  padding: 8px 20px; border-radius: 8px; transition: all .2s;
}
.creator-link:hover { background: rgba(0,229,255,.1); }

/* ── DOWNLOAD ──────────────────────────────────────────────────────── */
#download { padding: 120px 0; }
.download-box {
  position: relative; text-align: center;
  border: 1px solid rgba(0,229,255,.2);
  border-radius: 24px; padding: 80px 40px;
  background: linear-gradient(135deg, rgba(0,229,255,.06) 0%, rgba(80,0,200,.06) 100%);
  overflow: hidden;
}
.download-glow {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 500px; height: 200px; pointer-events: none;
  background: radial-gradient(ellipse, rgba(0,229,255,.12), transparent 70%);
  filter: blur(30px);
}
.download-title {
  font-family: 'Orbitron', sans-serif; font-size: clamp(28px, 4vw, 48px);
  font-weight: 900; margin-bottom: 14px;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.download-sub { font-size: 16px; color: var(--muted); margin-bottom: 40px; }
.download-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.dl-btn {
  display: flex; flex-direction: column; align-items: center;
  padding: 16px 32px; border-radius: var(--r); font-weight: 700;
  font-size: 16px; transition: all .25s; position: relative; z-index: 1;
}
.dl-btn span { font-size: 10px; font-weight: 400; opacity: .6; letter-spacing: 1px; margin-top: 2px; }
.dl-web { background: linear-gradient(135deg, var(--cyan), #0080ff); color: #000; box-shadow: 0 0 30px rgba(0,229,255,.25); }
.dl-web:hover { transform: translateY(-3px); box-shadow: 0 0 50px rgba(0,229,255,.4); }
.dl-ios  { border: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.7); }
.dl-ios:hover { border-color: rgba(255,255,255,.4); color: #fff; }
.dl-android { border: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.7); }
.dl-android:hover { border-color: rgba(255,255,255,.4); color: #fff; }

/* ── FOOTER ────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  background: var(--bg);
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-logo {
  font-family: 'Orbitron', sans-serif; font-weight: 900; font-size: 18px;
  color: var(--cyan); letter-spacing: 4px;
}
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 13px; color: var(--muted); transition: color .2s; }
.footer-links a:hover { color: var(--cyan); }
.footer-copy { font-size: 12px; color: var(--muted); }
.footer-copy a { color: var(--cyan); }

/* ── Comic modal open ───────────────────────────────────────────────── */
@keyframes comicOpen {
  from { opacity:0; transform:scale(.92); }
  to   { opacity:1; transform:scale(1); }
}

/* ── REVEAL ANIMATIONS ─────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── RESPONSIVE ────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .story-grid { grid-template-columns: 1fr; }
  .story-visual { display: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .phases { flex-direction: column; }
  .phase-arrow { transform: rotate(90deg); }
  .modes-grid { grid-template-columns: 1fr; }
  .creator-card { flex-direction: column; align-items: center; text-align: center; padding: 32px 24px; }
  .nav-links { display: none; }
}
@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 0; }
  .hstat { padding: 0 12px; }
  .hstat-n { font-size: 22px; }
  footer .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

/* ── Minion idle life — breathing / bobbing / swaying ──────────────────
   Cards cycle through three motions and staggered delays, so the bestiary
   feels alive instead of sync-pulsing. */
@keyframes mBreathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.07); } }
@keyframes mBob     { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes mSway    { 0%,100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg) translateY(-4px); } }

.m-img img { animation: mBreathe 3.2s ease-in-out infinite; will-change: transform; }
.m-card:nth-of-type(3n)   .m-img img { animation: mBob 3.8s ease-in-out infinite; }
.m-card:nth-of-type(3n+2) .m-img img { animation: mSway 4.4s ease-in-out infinite; }
.m-card:nth-of-type(2n)   .m-img img { animation-delay: .6s; }
.m-card:nth-of-type(5n)   .m-img img { animation-delay: 1.2s; }
.m-card:nth-of-type(7n)   .m-img img { animation-duration: 5s; }
/* hover: the monster "wakes up" — faster motion + hotter glow */
.m-card:hover .m-img img {
  animation-duration: 1.3s;
  filter: drop-shadow(0 0 16px rgba(0,229,255,.6));
}

/* ── Ambient minions drifting in the hero ─────────────────────────── */
.hero-minions { position: absolute; inset: 0; pointer-events: none; }
.hm {
  position: absolute; width: 54px; opacity: .45;
  filter: drop-shadow(0 0 10px rgba(0,229,255,.3));
}
.hm1 { top: 20%; left: 7%;  animation: hmDrift1 9s  ease-in-out infinite; }
.hm2 { top: 66%; left: 13%; width: 44px; animation: hmDrift2 11s ease-in-out infinite; }
.hm3 { top: 24%; right: 9%; width: 60px; animation: hmDrift3 10s ease-in-out infinite; }
@keyframes hmDrift1 { 0%,100% { transform: translate(0,0) rotate(-4deg); } 50% { transform: translate(14px,-18px) rotate(4deg); } }
@keyframes hmDrift2 { 0%,100% { transform: translate(0,0) scale(1); }      50% { transform: translate(-12px,-12px) scale(1.1); } }
@keyframes hmDrift3 { 0%,100% { transform: translate(0,0) rotate(3deg); }  50% { transform: translate(-16px,14px) rotate(-4deg); } }
@media (max-width: 760px) { .hm { display: none; } }

/* Respect users who ask for less motion */
@media (prefers-reduced-motion: reduce) {
  .m-img img, .hm, .hero-lumis img { animation: none !important; }
}
