/* =========================================================
   RESET
   ========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #09080d;
  color: #eeeaf2;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

.starburst {
  position: fixed;
  left: 0;
  top: 0;
  width: 12px;
  height: 12px;
  pointer-events: none;
  z-index: 1500;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.95) 0%, rgba(196,169,255,0.9) 30%, rgba(152,115,216,0.2) 70%, transparent 100%);
  box-shadow:
    0 0 8px rgba(255,255,255,0.9),
    0 0 18px rgba(175, 138, 255, 0.8),
    0 0 28px rgba(152, 115, 216, 0.45);
  animation: starBurst 700ms ease-out forwards;
}

@keyframes starBurst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2);
  }
  15% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) scale(1.8);
  }
}

.archive-entry {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at center, rgba(80, 52, 98, 0.85), rgba(8, 7, 12, 0.98));
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.archive-entry.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.entry-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 52px 40px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(14, 11, 20, 0.72);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.entry-panel .eyebrow {
  margin: 0;
}

.entry-panel h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 5rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.enter-button {
  padding: 14px 32px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.04);
  color: #f3edf8;
  font-family: inherit;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.enter-button:hover,
.enter-button:focus-visible {
  background: rgba(200, 180, 220, 0.12);
  border-color: rgba(200, 180, 220, 0.8);
  transform: translateY(-2px);
}

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 5%;
  background: rgba(9, 8, 13, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
  color: #eeeaf2;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: bold;
  letter-spacing: 0.12em;
}

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  color: #aaa3b5;
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: #ffffff;
}

/* =========================================================
   GENERAL
   ========================================================= */

.section {
  width: min(1200px, 90%);
  margin: 0 auto;
  padding: 120px 0;
}

.notes-section {
  padding-top: 60px;
  padding-bottom: 40px;
}

.notes-panel {
  padding: 24px 28px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(18, 14, 24, 0.8);
  border-radius: 12px;
}

.notes-label {
  margin: 0 0 16px;
  color: #cbb7d8;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.notes-list {
  margin: 0;
  padding-left: 1.5rem;
  color: #f0eaf5;
  line-height: 1.9;
}

.notes-list li + li {
  margin-top: 8px;
}

.section-heading {
  margin-bottom: 50px;
}

.eyebrow {
  margin: 0 0 10px;
  color: #a998b9;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
}

.section-heading p:last-child {
  color: #9991a4;
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  width: min(1200px, 90%);
  min-height: 90vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 70px;
  padding: 80px 0;
}

.hero-content h1 {
  margin: 0;
  font-size: clamp(4rem, 10vw, 9rem);
  line-height: 0.85;
  letter-spacing: -0.05em;
}

.hero-text {
  max-width: 600px;
  margin: 30px 0;
  color: #aaa3b5;
  font-size: 1.05rem;
}

/* =========================================================
   BUTTON
   ========================================================= */

.button {
  display: inline-block;
  padding: 12px 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #eeeaf2;
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.button:hover {
  background: #eeeaf2;
  color: #09080d;
  transform: translateY(-2px);
}

/* =========================================================
   HERO CARD
   ========================================================= */

.prophetic-judge {
  position: relative;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: radial-gradient(
    circle at center,
    rgba(150, 110, 180, 0.15),
    transparent 55%
  );
}

.prophetic-judge::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.prophetic-judge p {
  margin: 20px 0 5px;
  color: #aaa3b5;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
}

.prophetic-judge h2 {
  margin: 0;
  font-size: 2.5rem;
  line-height: 1;
  letter-spacing: 0.08em;
}

.prophetic-judge span {
  margin-top: 20px;
  color: #777080;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
}

/* =========================================================
   OUROBOROS HERO EMBLEM
   ========================================================= */

.ouroboros-container {
  position: relative;
  width: 250px;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ouroboros-glow {
  position: absolute;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: rgba(150, 120, 190, 0.08);
  box-shadow:
    0 0 30px rgba(180, 150, 220, 0.18),
    0 0 70px rgba(120, 90, 170, 0.12),
    0 0 120px rgba(100, 80, 150, 0.06);
  animation: ouroborosGlow 4s ease-in-out infinite;
}

.ouroboros-image {
  position: relative;
  width: 235px;
  height: 235px;
  object-fit: contain;
  display: block;
  filter:
    drop-shadow(0 0 8px rgba(210, 190, 240, 0.35))
    drop-shadow(0 0 25px rgba(140, 100, 190, 0.18));
  animation: ouroborosRotate 18s linear infinite;
}

@keyframes ouroborosGlow {
  0%, 100% {
    transform: scale(0.92);
    opacity: 0.55;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes ouroborosRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(-360deg);
  }
}

/* =========================================================
   OC GRID
   ========================================================= */

.oc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

/* =========================================================
   TAROT CARD (3D ENGINE SETUP)
   ========================================================= */

.oc-card {
  position: relative;
  width: 100%;
  height: 650px;
  perspective: 1200px;
  cursor: pointer;
  outline: none;
  touch-action: pan-y;
}

.oc-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.oc-card.flipped .oc-card-inner {
  transform: rotateY(180deg);
}

/* Common Card Faces */
.oc-card-front,
.oc-card-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
}

/* Front Face */
.oc-card-front {
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.06),
      rgba(30, 20, 40, 0.8)
    ),
    #15121b;
  transform: rotateY(0deg);
}

/* Back Face */
.oc-card-back {
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.05),
      rgba(30, 20, 40, 0.9)
    ),
    #111016;
  transform: rotateY(180deg);
}

/* Tarot Borders & Icons */
.oc-card-front::before,
.oc-card-back::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(200, 180, 220, 0.18);
  border-radius: 8px;
  pointer-events: none;
  z-index: 10;
}

.oc-card-front::after,
.oc-card-back::after {
  content: "✦";
  position: absolute;
  top: 18px;
  left: 20px;
  color: #c9b7d8;
  font-size: 16px;
  opacity: 0.7;
  pointer-events: none;
  z-index: 11;
}

/* =========================================================
   IMAGES
   ========================================================= */

.Janus-image,
.Hezekial-image,
.Juliet-image {
  position: relative;
  flex-shrink: 0;
  width: 100%;
  height: 60%;
  overflow: hidden;
  background: #111;
}

.Janus-image img,
.Hezekial-image img,
.Juliet-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.oc-card:hover .Janus-image img,
.oc-card:hover .Hezekial-image img,
.oc-card:hover .Juliet-image img {
  transform: scale(1.04);
}

/* Image Bottom Fade */
.Janus-image::after,
.Hezekial-image::after,
.Juliet-image::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40%;
  background: linear-gradient(to bottom, transparent, rgba(10, 8, 14, 0.85));
  pointer-events: none;
}

/* =========================================================
   CARD TEXT & SCROLLBAR
   ========================================================= */

.Janus-info,
.Hezekial-info,
.Juliet-info,
.Janus-back-text,
.Hezekial-back-text,
.Juliet-back-text {
  position: relative;
  flex: 1;
  padding: 18px 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #4b4353 transparent;
}

.Janus-info,
.Hezekial-info,
.Juliet-info {
  max-height: 260px;
  padding-top: 20px;
}

.Janus-info::-webkit-scrollbar,
.Hezekial-info::-webkit-scrollbar,
.Juliet-info::-webkit-scrollbar,
.Janus-back-text::-webkit-scrollbar,
.Hezekial-back-text::-webkit-scrollbar,
.Juliet-back-text::-webkit-scrollbar {
  width: 6px;
  background: rgba(255, 255, 255, 0.04);
}

.Janus-info::-webkit-scrollbar-thumb,
.Hezekial-info::-webkit-scrollbar-thumb,
.Juliet-info::-webkit-scrollbar-thumb,
.Janus-back-text::-webkit-scrollbar-thumb,
.Hezekial-back-text::-webkit-scrollbar-thumb,
.Juliet-back-text::-webkit-scrollbar-thumb {
  background: rgba(175, 138, 255, 0.7);
  border-radius: 999px;
}

.Janus-info,
.Hezekial-info,
.Juliet-info,
.Janus-back-text,
.Hezekial-back-text,
.Juliet-back-text {
  scrollbar-width: thin;
  scrollbar-color: rgba(175, 138, 255, 0.7) rgba(255, 255, 255, 0.04);
}

.Janus-info h3,
.Hezekial-info h3,
.Juliet-info h3,
.Janus-back-text h3,
.Hezekial-back-text h3,
.Juliet-back-text h3 {
  margin: 8px 0;
  color: #f0eaf5;
  font-size: 1.3rem;
  letter-spacing: 0.08em;
}

.Janus-info p,
.Hezekial-info p,
.Juliet-info p,
.Janus-back-text p,
.Hezekial-back-text p,
.Juliet-back-text p {
  margin: 0;
  color: #aaa1b0;
  font-size: 0.88rem;
}

.Janus-back-text p,
.Hezekial-back-text p,
.Juliet-back-text p {
  margin-bottom: 12px;
  color: #bcb4c4;
  line-height: 1.6;
}
/* =========================================================
   TAGS
   ========================================================= */

.tag {
  display: inline-block;
  color: #b99bd0;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* =========================================================
   ABOUT
   ========================================================= */

.about-box {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 60px;
  padding: 45px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.025);
}

.about-box h3 {
  margin-top: 0;
  font-size: 1.8rem;
}

.about-box p {
  max-width: 650px;
  color: #aaa1b0;
}

/* =========================================================
   FACTS
   ========================================================= */

.facts {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.facts div {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #aaa1b0;
}

.facts span {
  margin-right: 12px;
  color: #706879;
  font-size: 0.75rem;
}

/* =========================================================
   FOOTER
   ========================================================= */

footer {
  padding: 40px 5%;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: #66616c;
  font-size: 0.75rem;
}

/* =========================================================
   ACCESSIBILITY & RESPONSIVE
   ========================================================= */

.oc-card:focus-visible {
  outline: 2px solid #d4c1e1;
  outline-offset: 5px;
}

@media (max-width: 1000px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .oc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-box {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  .site-header {
    padding: 15px 5%;
  }

  .logo {
    font-size: 0.65rem;
  }

  .nav {
    gap: 12px;
  }

  .nav a {
    font-size: 0.7rem;
  }

  .hero {
    width: 90%;
    min-height: auto;
    padding: 80px 0;
  }

  .hero-content h1 {
    font-size: 4rem;
  }

  .section {
    padding: 80px 0;
  }

  .oc-grid {
    grid-template-columns: 1fr;
  }

  .oc-card {
    height: 600px;
  }

  .about-box {
    padding: 25px;
  }
}

/* =========================================================
   FLOATING MUSIC PLAYER
   ========================================================= */

.music-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;

  display: flex;
  align-items: center;
  gap: 8px;

  padding: 8px 16px;
  border-radius: 20px;

  background: rgba(15, 12, 22, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #eeeaf2;

  font-family: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;

  cursor: pointer;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);

  transition: all 0.25s ease;
}

.music-toggle:hover {
  background: rgba(200, 180, 220, 0.15);
  border-color: rgba(200, 180, 220, 0.5);
  transform: translateY(-2px);
}

.music-toggle.playing {
  border-color: rgba(185, 155, 208, 0.6);
  color: #e5d4f5;
}
