/* ═══════════════════════════════════════════════════════════════════════════
   PEDIDO DE NAMORO — Hero Progressivo
   Chainsaw Man × Tokyo Ghoul × Rosa
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --bg: #0a0b09;
  --text: #f0ece4;
  --text-dim: #9a9488;
  --text-soft: #c5bfb2;
  --pink: #ff6b9d;
  --pink-light: #ff8db5;
  --pink-glow: #ff4088;
  --pink-deep: #e91e63;
  --pink-soft: #ffc2d9;
  --green: #4a7c59;
  --gold: #f0c060;
  --red: #c0392b;
  --border: rgba(255,255,255,0.06);
  --radius: 6px;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-mono: 'DM Mono', 'Consolas', monospace;
  --font-anime: 'Bebas Neue', 'Impact', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scrollbar-width: thin; scrollbar-color: var(--pink) var(--bg); }

body {
  width: 100%; min-height: 100vh; overflow-x: hidden;
  background: var(--bg); color: var(--text);
  font-family: var(--font-mono); font-size: 16px; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── Cursor ── */
body::after {
  content: ''; position: fixed; z-index: 9999; pointer-events: none;
  width: 10px; height: 10px; border: 1.5px solid var(--pink);
  border-radius: 50%; transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
  mix-blend-mode: difference;
}

/* ── Grain ── */
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Canvas ── */
#particles, #fireworks { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

/* ════════════════ HERO ══════════════════════════════════════════════════════ */
#hero {
  position: relative; z-index: 2;
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 2rem 1.5rem 6rem;
}

#hero-content {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.5rem; min-height: 50vh; width: 100%; max-width: 650px;
  text-align: center;
}

/* ── Steps ── */
.step {
  display: none; flex-direction: column; align-items: center; gap: 1.2rem;
  width: 100%; animation: stepIn 0.6s var(--ease) forwards;
}
.step.active { display: flex; }

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

/* ── Sakura layer ── */
.sakura-layer { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.sakura-petal {
  position: absolute; font-size: 1.4rem; opacity: 0.4;
  animation: petalFall linear infinite;
}
@keyframes petalFall {
  0% { transform: translateY(-10vh) rotate(0deg) translateX(0); opacity: 0.6; }
  100% { transform: translateY(110vh) rotate(720deg) translateX(120px); opacity: 0; }
}

/* ── Kagune ── */
.kagune-left, .kagune-right {
  position: fixed; top: 0; width: 60px; height: 100%; z-index: 0; pointer-events: none; opacity: 0.04;
}
.kagune-left {
  left: 0;
  background: linear-gradient(90deg, var(--pink-deep) 0%, transparent 100%);
  clip-path: polygon(0 0, 100% 10%, 50% 30%, 90% 50%, 40% 70%, 80% 100%, 0 100%);
}
.kagune-right {
  right: 0;
  background: linear-gradient(270deg, var(--pink) 0%, transparent 100%);
  clip-path: polygon(100% 0, 0 10%, 50% 30%, 10% 50%, 60% 70%, 20% 100%, 100% 100%);
}

/* ════════════════ STEP CONTENT ══════════════════════════════════════════════ */

/* Logos */
.anime-logos {
  display: flex; align-items: center; justify-content: center; gap: 1.2rem; flex-wrap: wrap;
}
.logo { height: 38px; filter: brightness(0.9); }
.logo-csm { height: 44px; }
.logo-tg { height: 36px; opacity: 0.85; }
.logo-x {
  font-family: var(--font-display); font-size: 2rem; color: var(--pink); font-style: italic;
}

/* Hero text */
.hero-text {
  font-family: var(--font-display); font-size: 1.55rem; color: var(--text-soft);
  line-height: 1.5;
}
.hero-text.delay-1 { animation-delay: 0.3s; }
.hero-pink {
  font-size: 2rem; font-weight: 700; color: var(--pink-light);
}

/* Pochita */
.pochita-container { margin: 0.5rem 0; }
.pochita-float {
  width: 120px; height: auto;
  animation: floatP 3s ease-in-out infinite;
  filter: drop-shadow(0 0 25px rgba(255,107,157,0.25));
}
@keyframes floatP {
  0%,100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-14px) rotate(2deg); }
}

/* Quote card */
.quote-card {
  background: rgba(16,18,14,0.9); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.8rem 1.6rem;
  position: relative; width: 100%; text-align: center;
}
.quote-card::before {
  content: ''; position: absolute; inset: -1px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--pink), transparent, var(--pink-deep));
  z-index: -1; opacity: 0.2; background-size: 300% 300%;
  animation: shimmer 4s linear infinite;
}
@keyframes shimmer {
  0%,100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.quote-text {
  font-family: var(--font-display); font-size: 1.2rem; font-style: italic;
  color: var(--text-soft); line-height: 1.6; margin-bottom: 0.6rem;
}
.quote-from {
  font-family: var(--font-mono); font-size: 0.7rem; color: var(--pink);
  letter-spacing: 1px; text-transform: uppercase;
}

/* Question card */
.question-card { width: 100%; position: relative; }
.card-inner {
  background: rgba(16,18,14,0.92); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2.5rem 2rem;
  position: relative; backdrop-filter: blur(10px);
}
.card-border-glow {
  position: absolute; inset: -1.5px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--pink), var(--pink-deep), var(--gold), var(--pink));
  z-index: -1; opacity: 0.3; background-size: 300% 300%;
  animation: shimmer 3.5s linear infinite;
}
.pre-question {
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-dim);
  letter-spacing: 3px; text-transform: uppercase; margin-bottom: 1.2rem;
}
.main-question { margin-bottom: 1rem; }
.q-line { display: block; font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; line-height: 1.15; color: var(--text); }
.q-highlight {
  font-size: 3.2rem;
  background: linear-gradient(135deg, var(--pink-light), var(--pink-glow), var(--pink-deep));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  animation: shimmer 2.5s ease-in-out infinite; background-size: 200% 200%;
}
.pochita-witness {
  display: flex; align-items: center; justify-content: center; gap: 0.6rem; margin-bottom: 2rem;
}
.pochita-smol { width: 40px; height: auto; }
.pochita-bubble {
  font-size: 0.72rem; color: var(--pink-light);
  background: rgba(255,107,157,0.06); padding: 0.25rem 0.8rem;
  border-radius: 12px; border: 1px solid rgba(255,107,157,0.15);
}

/* Buttons */
.button-arena {
  display: flex; gap: 2rem; justify-content: center; align-items: center; flex-wrap: wrap;
  min-height: 55px; position: relative;
}
.btn-answer {
  padding: 0.9rem 3rem; font-family: var(--font-anime); font-size: 1.4rem;
  letter-spacing: 3px; cursor: pointer; position: relative;
  transition: transform 0.2s, box-shadow 0.2s; text-transform: uppercase;
  user-select: none; outline: none; border-radius: var(--radius);
}
.btn-sim {
  background: var(--pink); color: #fff; border: 2px solid var(--pink); z-index: 5;
}
.btn-sim:hover {
  transform: scale(1.06);
  box-shadow: 0 0 40px rgba(255,107,157,0.45), 0 0 80px rgba(255,107,157,0.12);
  background: var(--pink-glow);
}
.btn-sim:active { transform: scale(0.94); }
.btn-sim .btn-sparkle {
  position: absolute; top: -8px; right: -8px; font-size: 1rem;
  animation: spark 0.7s ease-in-out infinite alternate;
}
@keyframes spark {
  from { transform: translateY(0) scale(0.8); opacity: 0.6; }
  to { transform: translateY(-4px) scale(1.3); opacity: 1; }
}
.btn-nao {
  background: transparent; color: var(--text-dim);
  border: 1.5px solid rgba(255,255,255,0.12); z-index: 3;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.btn-nao:hover { color: var(--text); border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.03); }
.btn-nao.fleeing {
  position: fixed; z-index: 100; background: var(--red); color: #fff;
  border-color: var(--red); box-shadow: 0 0 30px rgba(192,57,43,0.4);
  animation: shake 0.25s ease-in-out; pointer-events: none;
}
@keyframes shake {
  0%,100% { transform: translate(0,0); }
  20% { transform: translate(-4px,2px); }
  40% { transform: translate(5px,-3px); }
  60% { transform: translate(-3px,4px); }
  80% { transform: translate(2px,-2px); }
}
.btn-nao .btn-sweat {
  position: absolute; top: -5px; right: 8px; font-size: 0.75rem; opacity: 0; transition: opacity 0.3s;
}
.btn-nao:hover .btn-sweat { opacity: 1; }
.btn-nao.fleeing .btn-sweat { opacity: 1; animation: sweat 0.6s ease-in infinite; }
@keyframes sweat {
  0%,100% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(8px); opacity: 0; }
}

/* Chase trail */
.chase-msg {
  position: fixed; z-index: 50; pointer-events: none;
  font-family: var(--font-mono); font-size: 0.68rem; color: var(--red); opacity: 0.7;
  animation: trailFade 1.8s forwards;
}
@keyframes trailFade {
  0% { opacity: 0.9; transform: translateY(0) rotate(0deg); }
  100% { opacity: 0; transform: translateY(-40px) rotate(8deg); }
}

/* ════════════════ RESULT ═══════════════════════════════════════════════════ */
.result-hearts { display: flex; gap: 1.2rem; justify-content: center; flex-wrap: wrap; }
.heart-big { font-size: 3rem; animation: pump 0.5s ease-in-out infinite alternate; }
.heart-big.delay-1 { animation-delay: 0.15s; }
.heart-big.delay-2 { animation-delay: 0.3s; }
@keyframes pump {
  from { transform: scale(1); filter: drop-shadow(0 0 5px rgba(255,107,157,0.3)); }
  to { transform: scale(1.3); filter: drop-shadow(0 0 20px rgba(255,107,157,0.6)); }
}
.result-title { margin: 0.5rem 0; }
.r-line { display: block; font-family: var(--font-display); }
.r-line:first-child {
  font-size: 3.5rem; font-weight: 700; letter-spacing: 5px;
  background: linear-gradient(135deg, var(--pink-light), var(--pink-glow), var(--pink-deep), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  animation: shimmer 2s ease-in-out infinite; background-size: 200% 200%;
}
.r-sub { font-size: 2.2rem; color: var(--text); font-weight: 600; margin-top: 0.3rem; }
.result-sub { font-family: var(--font-mono); color: var(--text-dim); font-size: 0.85rem; }
.pochita-approved { color: var(--pink-light); font-size: 0.75rem; }

.pochita-happy {
  width: 120px; height: auto;
  animation: floatP 2s ease-in-out infinite, spin 3s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.love-letter {
  background: rgba(16,18,14,0.9); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem; margin-top: 0.5rem;
  font-family: var(--font-display); font-size: 1.1rem; color: var(--text-soft);
  font-style: italic; line-height: 1.7; max-width: 500px;
}
.love-letter::before { content: '💌 '; font-style: normal; font-size: 1.3rem; }

/* ════════════════ NEXT BUTTON ══════════════════════════════════════════════ */
#btn-area {
  position: fixed; bottom: 2.5rem; left: 0; right: 0;
  display: flex; justify-content: center; z-index: 10;
  transition: opacity 0.3s;
}
#btn-area.hidden { opacity: 0; pointer-events: none; }

.btn-next {
  background: transparent; border: 1.5px solid var(--pink);
  color: var(--pink); padding: 0.7rem 2.5rem;
  font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 3px;
  cursor: pointer; text-transform: uppercase;
  transition: all 0.3s var(--ease);
  position: relative;
}
.btn-next:hover {
  background: rgba(255,107,157,0.08); border-color: var(--pink-light);
  color: var(--pink-light); box-shadow: 0 0 30px rgba(255,107,157,0.1);
}

/* ════════════════ TOAST ════════════════════════════════════════════════════ */
.toast-hidden {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%);
  z-index: 200; font-family: var(--font-mono); font-size: 0.78rem;
  color: var(--pink-light); background: rgba(10,11,9,0.95);
  border: 1px solid rgba(255,107,157,0.3); padding: 0.6rem 1.3rem;
  border-radius: var(--radius); opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.toast-show {
  opacity: 1; pointer-events: all;
  animation: toastIn 0.4s var(--ease), toastOut 0.4s 3s forwards;
}
@keyframes toastIn {
  from { transform: translateX(-50%) translateY(20px); opacity: 0; }
  to { transform: translateX(-50%) translateY(0); opacity: 1; }
}
@keyframes toastOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* ════════════════ RESPONSIVE ════════════════════════════════════════════════ */
@media (max-width: 600px) {
  .hero-text { font-size: 1.2rem; }
  .hero-pink { font-size: 1.5rem; }
  .q-line { font-size: 1.8rem; }
  .q-highlight { font-size: 2.4rem; }
  .r-line:first-child { font-size: 2.4rem; letter-spacing: 3px; }
  .r-sub { font-size: 1.6rem; }
  .btn-answer { padding: 0.7rem 2rem; font-size: 1.1rem; }
  .card-inner { padding: 1.8rem 1.2rem; }
  .button-arena { gap: 1rem; flex-direction: column; }
  .quote-text { font-size: 1rem; }
}
