/* ====================================================================
   ANIME SHONEN — BESPOKE AESTHETIC STYLESHEET
   Aura: Crimson Flame (#ef4444) & Super Saiyan Amber (#f59e0b)
   Theme: Shonen Hero Awakening, Speedlines & Manga Action
   ==================================================================== */

:root {
  --primary: #ef4444;
  --primary-glow: rgba(239, 68, 68, 0.45);
  --accent: #f59e0b;
  --accent-glow: rgba(245, 158, 11, 0.4);
  --bg-dark: #0c0a09;
  --bg-card: rgba(24, 24, 27, 0.85);
  --bg-card-border: rgba(245, 158, 11, 0.25);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --radius-lg: 20px;
  --radius-md: 12px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Ambient Anime Glow Orbs & Speedlines */
.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.25;
  animation: floatOrb 12s ease-in-out infinite alternate;
}

.orb-1 {
  width: 450px;
  height: 450px;
  background: var(--primary);
  top: -100px;
  left: -80px;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: var(--accent);
  bottom: -120px;
  right: -100px;
  animation-duration: 16s;
  animation-delay: -4s;
}

.orb-3 {
  width: 320px;
  height: 320px;
  background: #dc2626;
  top: 45%;
  left: 60%;
  animation-duration: 14s;
  animation-delay: -7s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.08); }
  100% { transform: translate(-30px, 40px) scale(0.95); }
}

canvas#particles-canvas,
canvas#confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

canvas#confetti-canvas {
  z-index: 999;
}

/* Container */
.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 3;
}

/* ====================================================================
   PASSCODE GATE SCREEN
   ==================================================================== */
.passcode-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 10, 9, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.passcode-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.passcode-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  box-shadow: 0 0 35px var(--primary-glow);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  width: 100%;
  max-width: 380px;
  text-align: center;
}

.passcode-icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
  filter: drop-shadow(0 0 12px var(--accent));
  animation: pulseIcon 2s ease infinite;
}

@keyframes pulseIcon {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

.passcode-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.passcode-sub {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.passcode-sub strong {
  color: var(--accent);
}

.passcode-prompt {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.passcode-dots-wrapper {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.passcode-dot-box {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  transition: all 0.25s ease;
}

.passcode-dot-box.filled {
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
  transform: scale(1.2);
}

.passcode-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.keypad-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  font-size: 1.25rem;
  font-weight: 700;
  padding: 0.85rem 0;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-heading);
}

.keypad-btn:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: var(--accent);
  transform: translateY(-2px);
}

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

.keypad-btn.action-btn {
  font-size: 0.9rem;
  color: var(--accent);
}

.passcode-error-msg {
  color: #f87171;
  font-size: 0.85rem;
  min-height: 1.2rem;
  font-weight: 600;
}

/* ====================================================================
   UNBOXING OVERLAY (ANIME SCROLL / AURA VAULT)
   ==================================================================== */
.unboxing-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 10, 9, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 8000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.unboxing-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.unboxing-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: var(--accent);
  padding: 0.45rem 1.1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.vault-box-container {
  cursor: pointer;
  margin-bottom: 2rem;
  perspective: 1000px;
}

.aura-orb-box {
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, #f59e0b 0%, #ef4444 60%, #7f1d1d 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 50px var(--primary), 0 0 80px var(--accent-glow);
  animation: pulseAura 1.8s infinite alternate;
  font-size: 4rem;
  user-select: none;
  transition: transform 0.4s ease;
}

@keyframes pulseAura {
  0% { transform: scale(0.96) rotate(-2deg); box-shadow: 0 0 35px var(--primary); }
  100% { transform: scale(1.08) rotate(4deg); box-shadow: 0 0 75px var(--accent), 0 0 100px var(--primary); }
}

.unboxing-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
  background: linear-gradient(135deg, #f8fafc, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.unboxing-sub {
  color: var(--text-muted);
  max-width: 440px;
  font-size: 1rem;
  margin-bottom: 2rem;
}

.btn-open-vault {
  background: linear-gradient(135deg, #ef4444, #f59e0b);
  color: #0c0a09;
  border: none;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  padding: 0.95rem 2.2rem;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 0 30px var(--primary-glow);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-open-vault:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 0 45px var(--accent);
}

/* ====================================================================
   FLOATING NAV
   ==================================================================== */
.floating-nav {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 5000;
  display: flex;
  gap: 0.6rem;
}

.nav-pill-btn {
  background: rgba(24, 24, 27, 0.85);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--text-main);
  padding: 0.55rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.25s ease;
}

.nav-pill-btn:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: var(--accent);
}

.music-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}

.music-bar {
  width: 3px;
  background: var(--accent);
  border-radius: 2px;
  height: 4px;
}

.playing .music-bar:nth-child(1) { animation: barDance 0.8s ease infinite alternate; }
.playing .music-bar:nth-child(2) { animation: barDance 0.6s ease infinite alternate 0.2s; }
.playing .music-bar:nth-child(3) { animation: barDance 0.9s ease infinite alternate 0.4s; }

@keyframes barDance {
  0% { height: 4px; }
  100% { height: 14px; }
}

/* ====================================================================
   SITE CONTENT
   ==================================================================== */
.site-wrapper {
  position: relative;
  z-index: 5;
  padding: 5rem 0 6rem;
}

.hero-section {
  text-align: center;
  padding: 3rem 0 4rem;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: var(--accent);
  padding: 0.45rem 1.25rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.title-glow {
  background: linear-gradient(135deg, #ef4444, #f59e0b, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 25px rgba(245, 158, 11, 0.35));
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 1.2rem;
  max-width: 620px;
  margin: 0 auto 2.25rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.25s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #ef4444, #f59e0b);
  color: #0c0a09;
  box-shadow: 0 0 25px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px var(--accent);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* Sections */
.section {
  padding: 3.5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 2.75rem;
}

.section-badge {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  display: block;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.3rem;
  font-weight: 800;
}

/* Letter Card */
.letter-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.apology-badge {
  display: inline-block;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid #ef4444;
  color: #fca5a5;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.25rem;
}

.letter-date {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.letter-salutation {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

.letter-body p {
  color: #cbd5e1;
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.letter-postscript {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px dashed rgba(245, 158, 11, 0.3);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
}

.letter-closing {
  margin-top: 2rem;
  text-align: right;
}

.signoff {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.author {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 0.25rem;
}

/* Saga Timeline */
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.timeline-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, #ef4444, #f59e0b);
}

.timeline-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.15);
}

.timeline-era {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.5rem;
}

.timeline-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.timeline-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Quotes */
.quotes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.quote-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
}

.quote-mark {
  font-size: 3rem;
  line-height: 1;
  color: var(--primary);
  opacity: 0.6;
}

.quote-text {
  font-size: 1.1rem;
  font-style: italic;
  color: #e2e8f0;
  margin-bottom: 1rem;
}

.quote-author {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Interactive Cake Stage */
.cake-section {
  text-align: center;
}

.cake-wrapper {
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.candles-row {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 10px;
}

.candle {
  width: 14px;
  height: 50px;
  background: repeating-linear-gradient(45deg, #f59e0b, #f59e0b 6px, #ef4444 6px, #ef4444 12px);
  border-radius: 4px;
  position: relative;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.flame {
  width: 16px;
  height: 24px;
  background: radial-gradient(ellipse at bottom, #fff 0%, #ffeb3b 40%, #ff5722 80%);
  border-radius: 50% 50% 35% 35%;
  position: absolute;
  top: -26px;
  left: -1px;
  box-shadow: 0 0 18px #ffeb3b, 0 0 35px #ff5722;
  animation: flicker 0.15s infinite alternate;
  cursor: pointer;
}

@keyframes flicker {
  0% { transform: scale(1) rotate(-2deg); }
  100% { transform: scale(1.1) rotate(2deg); }
}

.candle.blown .flame {
  display: none;
}

.cake-body {
  width: 240px;
  height: 90px;
  background: linear-gradient(to bottom, #7f1d1d, #450a0a);
  border-radius: 12px;
  border: 3px solid #f59e0b;
  box-shadow: 0 10px 30px rgba(0,0,0,0.7);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cake-frosting {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 24px;
  background: #f59e0b;
  border-radius: 9px 9px 0 0;
}

.cake-label {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  z-index: 2;
  letter-spacing: 2px;
}

.btn-blow-candles {
  margin-top: 1.5rem;
  background: linear-gradient(135deg, #ef4444, #f59e0b);
  color: #0c0a09;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  padding: 0.85rem 2rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 0 25px var(--primary-glow);
  transition: all 0.25s ease;
}

.btn-blow-candles:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px var(--accent);
}

.cake-wish-banner {
  margin-top: 1.5rem;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent);
  display: none;
}

.cake-wish-banner.active {
  display: block;
  animation: popIn 0.5s ease;
}

@keyframes popIn {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Reply Actions */
.reply-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  margin-top: 3rem;
}

.reply-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.reply-sub {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.reply-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-wa {
  background: #25d366;
  color: #fff;
  text-decoration: none;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.2s ease;
}

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

.btn-ig {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff;
  text-decoration: none;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.2s ease;
}

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

/* Footer */
footer {
  text-align: center;
  padding: 3rem 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 3rem;
}

/* Responsiveness */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.6rem;
  }
  .letter-card {
    padding: 2rem 1.5rem;
  }
  .section-title {
    font-size: 1.85rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.1rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .passcode-card {
    padding: 1.75rem 1.25rem;
  }
  .btn-primary, .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}
