.page-hero{
  overflow:visible;
}

.page-hero::after{
  content:none !important;
  border:0 !important;
  box-shadow:none !important;
}

.page-hero .eyebrow{
  color:var(--yellow) !important;
  text-shadow:0 0 12px var(--yellow),0 0 26px rgba(255,233,79,.42) !important;
}

.page-hero h1{
  line-height:1 !important;
  letter-spacing:0 !important;
  padding-bottom:.08em;
  -webkit-text-stroke:.8px #270038 !important;
  text-shadow:0 0 16px rgba(255,63,215,.62),0 0 32px rgba(139,92,255,.28) !important;
}

.hero,
.page-hero,
.social-hero{
  --hero-accent:rgba(255,63,215,.45);
  --hero-glow:rgba(255,63,215,.18);
  border-color:var(--hero-accent) !important;
  box-shadow:0 0 24px var(--hero-glow), inset 0 0 26px rgba(255,255,255,.05) !important;
}

.page-hero.start-hero,
.page-hero.search-hero{
  --hero-accent:rgba(255,233,79,.5);
  --hero-glow:rgba(255,233,79,.18);
}

.page-hero.library-hero{
  --hero-accent:rgba(0,240,255,.5);
  --hero-glow:rgba(0,240,255,.16);
}

.page-hero.levels-hero{
  --hero-accent:rgba(203,255,46,.48);
  --hero-glow:rgba(203,255,46,.14);
}

.people-hero,
.social-hero{
  --hero-accent:rgba(139,92,255,.52);
  --hero-glow:rgba(139,92,255,.17);
}

.profile-page .page-hero,
.profile-gate-page .social-hero{
  --hero-accent:rgba(0,240,255,.46);
  --hero-glow:rgba(0,240,255,.14);
}

.admin-page .page-hero{
  --hero-accent:rgba(255,159,67,.56);
  --hero-glow:rgba(255,159,67,.16);
}

.quests-page .page-hero{
  background:
    radial-gradient(circle at 18% 28%, rgba(255,63,215,.14), transparent 28rem),
    radial-gradient(circle at 76% 34%, rgba(139,92,255,.13), transparent 28rem),
    linear-gradient(135deg, rgba(29,6,56,.62), rgba(8,1,20,.66)) !important;
}

.quests-page .stats.neon-panel::after,
.quests-page .page-hero::after{
  content:none !important;
}


/* Social/public shell cleanup: keep the glitch mood, remove accidental box-in-box frames. */
.hero::after,
.neon-panel::after,
.card::after,
.form-card::after,
.footer::after,
.stat-card::after,
.game-panel::after{
  content:none !important;
  border:0 !important;
  box-shadow:none !important;
}

.neon-panel::before,
.hero::before,
.footer::before,
.card::before,
.page-hero::before,
.game-portal::before{
  opacity:.2 !important;
}

.game-portal{
  border-color:rgba(255,45,197,.34) !important;
  box-shadow:0 0 24px rgba(255,45,197,.16), inset 0 0 26px rgba(255,45,197,.05) !important;
}

.game-portal-hero{
  min-height:320px;
}

.game-portal-title{
  line-height:1 !important;
  padding-bottom:.05em;
}

/* Let sticker glow breathe instead of clipping at the card/image bounds. */
.hero,
.hero-art,
.page-hero,
.start-hero,
.game-portal-hero,
.level-card,
.welcome-card,
.path-card,
.library-card{
  overflow:visible !important;
}

.hero-art,
.page-hero,
.game-portal-hero,
.library-art,
.game-panel-orbs,
.game-tile,
.game-action,
.game-shortcut,
.game-badge{
  isolation:isolate;
}

.hero-art img,
.page-hero img,
.welcome-card img,
.path-card img,
.library-art img,
.game-portal-mascot,
.game-panel-orbs img,
.game-tile img,
.game-action img,
.game-shortcut img,
.game-badge img{
  overflow:visible !important;
  transform:translateZ(0);
}

.library-card{
  padding:1px;
}

.library-art{
  margin:8px;
  border-radius:16px;
  overflow:visible !important;
}

.hero-art img{
  margin:12px;
}

.portal-choice-grid{
  grid-template-columns:repeat(4,minmax(0,1fr));
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible{
  outline:3px solid var(--cyan);
  outline-offset:4px;
  box-shadow:0 0 0 6px rgba(61,246,255,.16),0 0 22px rgba(61,246,255,.36) !important;
}

.auth-nudge{
  margin-top:14px;
  color:var(--muted);
  font-size:.95rem;
}

.auth-nudge a{
  color:#fff;
  font-weight:900;
  text-decoration:none;
  border-bottom:1px solid rgba(255,63,215,.75);
}

.step-card{
  min-height:150px;
  display:grid;
  align-content:start;
  gap:10px;
}

.step-card .rank{
  width:42px;
  height:42px;
  border-radius:14px;
  display:grid;
  place-items:center;
  color:#10001f;
  font-weight:1000;
  background:linear-gradient(135deg,var(--yellow),var(--pink),var(--cyan));
  box-shadow:0 0 18px rgba(255,63,215,.48);
}

.first-quest-card{
  display:grid;
  grid-template-columns:1fr auto;
  align-items:center;
  gap:20px;
  padding:24px;
}

.preview-card{
  display:grid;
  grid-template-columns:64px 1fr;
  align-items:center;
  gap:14px;
  min-height:132px;
  text-decoration:none;
  color:inherit;
}

.preview-card img{
  width:64px;
  height:64px;
  object-fit:contain;
  filter:drop-shadow(0 0 14px rgba(255,63,215,.65));
}

.preview-card small{
  display:block;
  margin-top:6px;
  color:var(--muted);
  line-height:1.45;
}

@media (max-width:760px){
  .portal-choice-grid{
    grid-template-columns:1fr;
  }

  .first-quest-card,
  .preview-card{
    grid-template-columns:1fr;
  }

  .preview-card img{
    width:56px;
    height:56px;
  }
}

@media (prefers-reduced-motion: reduce){
  *,
  *::before,
  *::after{
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    scroll-behavior:auto !important;
    transition-duration:.01ms !important;
  }
}
