/* ===========================
   RESET & BASE
=========================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #000;
  color: #fff;
  font-family: 'Cinzel', serif;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ===========================
   CANVAS PARTICLES
=========================== */
#particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* ===========================
   MUSIC STATUS
=========================== */
#music-status {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(10, 0, 0, 0.85);
  border: 1px solid #440000;
  border-radius: 30px;
  padding: 8px 18px;
  font-size: 11px;
  color: #660000;
  letter-spacing: 2px;
  font-family: 'Cinzel', serif;
  z-index: 500;
  transition: all 0.4s ease;
  display: none;
  backdrop-filter: blur(6px);
}

#music-status.visible {
  display: block;
}

#music-status.playing {
  color: #cc3333;
  border-color: #880000;
  box-shadow: 0 0 15px rgba(150, 0, 0, 0.35);
}

/* ===========================
   ENTRY SCREEN
=========================== */
#entry-screen {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, #1a0000 0%, #000 70%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: opacity 1.5s ease, transform 1.5s ease;
}

#entry-screen.fade-out {
  opacity: 0;
  transform: scale(1.1);
  pointer-events: none;
}

.entry-symbol {
  font-size: 120px;
  animation: pulse-symbol 2s ease-in-out infinite;
  filter: drop-shadow(0 0 30px #ff0000) drop-shadow(0 0 60px #aa0000);
  margin-bottom: 30px;
  user-select: none;
  cursor: default;
}

.entry-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(18px, 4vw, 42px);
  color: #cc0000;
  letter-spacing: 6px;
  text-align: center;
  margin-bottom: 12px;
  text-shadow: 0 0 30px #ff0000, 0 0 60px #880000;
}

.entry-sub {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: clamp(12px, 2vw, 18px);
  color: #880000;
  letter-spacing: 3px;
  margin-bottom: 60px;
}

#enter-btn {
  position: relative;
  background: transparent;
  border: 2px solid #cc0000;
  color: #ff4444;
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(12px, 2vw, 18px);
  letter-spacing: 5px;
  padding: 16px 48px;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
  text-transform: uppercase;
}

#enter-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(200, 0, 0, 0.18), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

#enter-btn:hover::before {
  transform: translateX(100%);
}

#enter-btn:hover {
  color: #fff;
  border-color: #ff0000;
  box-shadow: 0 0 30px #ff0000, 0 0 60px #660000, inset 0 0 30px rgba(255, 0, 0, 0.1);
  transform: scale(1.05);
}

.key-hint {
  margin-top: 20px;
  font-size: 11px;
  color: #440000;
  letter-spacing: 3px;
  font-family: 'Cinzel', serif;
}

/* ===========================
   MAIN SITE
=========================== */
#main-site {
  display: none;
  position: relative;
  z-index: 1;
}

#main-site.visible {
  display: block;
}

/* ===========================
   HERO SECTION
=========================== */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  perspective: 1000px;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 40%, #1c0000 0%, #0a0000 40%, #000 100%);
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(150, 0, 0, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(150, 0, 0, 0.08) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: perspective(500px) rotateX(30deg) scale(1.5) translateY(20%);
  animation: grid-move 8s linear infinite;
  pointer-events: none;
}

.penta-wrap {
  display: inline-block;
  position: absolute;
  animation: spin-slow 20s linear infinite;
  opacity: 0.12;
  pointer-events: none;
  user-select: none;
}

.floating-devil {
  font-size: clamp(80px, 15vw, 160px);
  animation: float-devil 4s ease-in-out infinite;
  filter: drop-shadow(0 0 40px #ff0000) drop-shadow(0 0 80px #aa0000);
  position: relative;
  z-index: 2;
  margin-bottom: 20px;
}

.hero-eyebrow {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: clamp(11px, 2vw, 16px);
  color: #880000;
  letter-spacing: 6px;
  text-transform: uppercase;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}

.hero-name {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(32px, 8vw, 100px);
  font-weight: 900;
  line-height: 1;
  text-align: center;
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, #ff6666 0%, #cc0000 40%, #660000 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 30px rgba(255, 0, 0, 0.5));
  animation: name-flicker 6s ease-in-out infinite;
  margin-bottom: 8px;
}

.hero-real-name {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: clamp(14px, 3vw, 28px);
  color: #aa4444;
  letter-spacing: 4px;
  position: relative;
  z-index: 2;
  margin-bottom: 40px;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  font-size: 11px;
  color: #440000;
  letter-spacing: 4px;
  animation: bounce-hint 2s ease-in-out infinite;
  z-index: 2;
  font-family: 'Cinzel', serif;
}

/* ===========================
   SECTIONS
=========================== */
.section {
  padding: 100px 20px;
  position: relative;
  overflow: hidden;
  background: #000;
}

.section-dark {
  background: radial-gradient(ellipse at center, #0e0000 0%, #000 100%);
}

.section-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.blood-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #000, #880000 20%, #cc0000 50%, #880000 80%, #000);
}

.section-label {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(10px, 2vw, 13px);
  color: #660000;
  letter-spacing: 6px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-heading {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(20px, 4vw, 42px);
  color: #cc3333;
  text-shadow: 0 0 20px rgba(200, 0, 0, 0.4);
  line-height: 1.3;
  margin-bottom: 10px;
}

/* ===========================
   DIVIDER
=========================== */
.infernal-divider {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 20px auto 50px;
  max-width: 500px;
}

.div-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #660000, transparent);
}

.div-symbol {
  font-size: 24px;
  color: #880000;
}

/* ===========================
   INTRO PARAGRAPH
=========================== */
.intro-para {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: clamp(14px, 2.5vw, 20px);
  color: #886666;
  line-height: 2;
  max-width: 700px;
  margin: 0 auto 40px;
}

/* ===========================
   TRAIT CARDS
=========================== */
.trait-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.trait-card {
  background: rgba(20, 0, 0, 0.8);
  border: 1px solid rgba(150, 0, 0, 0.4);
  border-radius: 4px;
  padding: 30px 20px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  cursor: default;
  text-align: center;
}

.trait-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #cc0000, transparent);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.trait-card:hover::before {
  transform: scaleX(1);
}

.trait-card:hover {
  border-color: rgba(200, 0, 0, 0.7);
  box-shadow: 0 0 30px rgba(150, 0, 0, 0.3), inset 0 0 30px rgba(100, 0, 0, 0.1);
  transform: translateY(-6px);
}

.trait-icon {
  font-size: 40px;
  margin-bottom: 12px;
  display: block;
}

.trait-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: 11px;
  color: #cc0000;
  letter-spacing: 3px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.trait-text {
  font-family: 'IM Fell English', serif;
  font-size: 14px;
  color: #886666;
  line-height: 1.8;
  font-style: italic;
}

/* ===========================
   REASONS LIST
=========================== */
.reasons-list {
  display: grid;
  gap: 24px;
  margin-top: 20px;
}

.reason-card {
  background: rgba(20, 0, 0, 0.8);
  border: 1px solid rgba(150, 0, 0, 0.4);
  border-radius: 4px;
  padding: 24px 28px;
  text-align: left;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.reason-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #cc0000, transparent);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.reason-card:hover::before { transform: scaleX(1); }

.reason-card:hover {
  border-color: rgba(200, 0, 0, 0.7);
  box-shadow: 0 0 30px rgba(150, 0, 0, 0.25);
  transform: translateX(6px);
}

.reason-icon {
  font-size: 30px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ===========================
   PROPOSAL SECTION
=========================== */
#proposal {
  background: radial-gradient(ellipse at center, #140000 0%, #000 80%);
  padding: 120px 20px;
  text-align: center;
}

.proposal-ring {
  display: block;
  margin: 40px auto 0;
  font-size: 80px;
  animation: ring-pulse 2s ease-in-out infinite;
  filter: drop-shadow(0 0 20px #ff6600) drop-shadow(0 0 40px #cc4400);
}

.proposal-text {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(14px, 3vw, 28px);
  color: #ff4444;
  letter-spacing: 4px;
  line-height: 1.8;
  text-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
  margin: 30px 0 20px;
}

.proposal-poem {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: clamp(14px, 2.5vw, 22px);
  color: #aa6666;
  line-height: 2.2;
  max-width: 700px;
  margin: 0 auto 50px;
}

.the-question {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(20px, 5vw, 56px);
  color: #ff0000;
  text-shadow: 0 0 40px #ff0000, 0 0 80px #880000;
  margin: 40px 0 20px;
  animation: question-glow 3s ease-in-out infinite;
}

.prettiest-label {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 16px;
  color: #663333;
  margin-bottom: 36px;
  letter-spacing: 2px;
}

/* ===========================
   ANSWER BUTTONS
=========================== */
.answer-btns {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 10px;
}

.btn-yes {
  background: linear-gradient(135deg, #660000, #cc0000);
  border: 2px solid #ff0000;
  color: #fff;
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(12px, 2vw, 16px);
  letter-spacing: 4px;
  padding: 18px 50px;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  box-shadow: 0 0 20px rgba(200, 0, 0, 0.4);
}

.btn-yes:hover {
  transform: scale(1.08);
  box-shadow: 0 0 40px rgba(255, 0, 0, 0.6), 0 0 80px rgba(200, 0, 0, 0.3);
}

.btn-no {
  background: transparent;
  border: 1px solid #330000;
  color: #440000;
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 3px;
  padding: 12px 30px;
  cursor: pointer;
  transition: all 0.1s ease;
}

/* ===========================
   FOOTER
=========================== */
footer {
  background: #000;
  border-top: 1px solid #330000;
  padding: 40px 20px;
  text-align: center;
}

footer p {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 13px;
  color: #440000;
  letter-spacing: 2px;
}

.footer-sub {
  margin-top: 10px !important;
  font-size: 11px !important;
}

/* ===========================
   YES OVERLAY
=========================== */
#yes-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.96);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 40px;
}

#yes-overlay.active {
  display: flex;
}

.yes-emoji {
  font-size: 100px;
  animation: yes-bounce 0.8s ease-in-out infinite alternate;
}

.yes-text {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(20px, 5vw, 48px);
  color: #ff4444;
  text-shadow: 0 0 40px #ff0000;
  margin: 20px 0;
  line-height: 1.4;
}

.yes-sub {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 20px;
  color: #aa4444;
  margin-top: 10px;
}

.yes-icons {
  font-size: 60px;
  margin-top: 24px;
  animation: yes-bounce 0.5s ease-in-out infinite alternate;
}

/* ===========================
   FLAME PARTICLES
=========================== */
.flame {
  position: fixed;
  pointer-events: none;
  animation: flame-rise var(--dur, 3s) ease-out forwards;
  opacity: 0;
  z-index: 0;
}

/* ===========================
   SCROLL REVEAL
=========================== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   KEYFRAMES
=========================== */
@keyframes pulse-symbol {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 20px #ff0000); }
  50%       { transform: scale(1.08); filter: drop-shadow(0 0 50px #ff2200) drop-shadow(0 0 80px #660000); }
}

@keyframes grid-move {
  0%   { background-position: 0 0; }
  100% { background-position: 0 60px; }
}

@keyframes float-devil {
  0%, 100% { transform: translateY(0) rotateY(0deg); }
  25%       { transform: translateY(-20px) rotateY(5deg); }
  75%       { transform: translateY(-10px) rotateY(-5deg); }
}

@keyframes name-flicker {
  0%, 90%, 100% { opacity: 1; }
  92%            { opacity: 0.82; }
  94%            { opacity: 1; }
}

@keyframes bounce-hint {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}

@keyframes spin-slow {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes ring-pulse {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50%       { transform: scale(1.1) rotate(5deg); }
}

@keyframes question-glow {
  0%, 100% { text-shadow: 0 0 40px #ff0000, 0 0 80px #880000; }
  50%       { text-shadow: 0 0 60px #ff4444, 0 0 120px #cc0000, 0 0 200px #660000; }
}

@keyframes yes-bounce {
  0%   { transform: scale(1); }
  100% { transform: scale(1.15) rotate(8deg); }
}

@keyframes flame-rise {
  0%   { transform: translateY(0) scale(1); opacity: 0.9; }
  100% { transform: translateY(var(--rise, -300px)) scale(0.2) rotate(var(--rot, 20deg)); opacity: 0; }
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 600px) {
  .trait-grid { grid-template-columns: 1fr 1fr; }
  .reason-card { flex-direction: column; gap: 10px; }
  #enter-btn { padding: 14px 32px; }
  .answer-btns { flex-direction: column; align-items: center; }
  .btn-no { position: static !important; }
}