
    :root {
      --bg-abyss: #08060f;
      --bg-plum: #110b1f;
      --rose-quartz: #f4c2d7;
      --amethyst-glow: #d8b4fe;
      --silver-frost: #faf5ff;
      --parchment-lilac: #d8cee8;
      --border-arcane: rgba(233, 213, 255, 0.34);
    }
    * { box-sizing: border-box; }
    body {
      margin: 0;
      background-color: var(--bg-abyss);
      background-image:
        radial-gradient(circle at 18% 12%, rgba(244, 194, 215, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 84% 18%, rgba(192, 132, 252, 0.14) 0%, transparent 45%),
        radial-gradient(circle at 50% 85%, rgba(126, 34, 206, 0.16) 0%, transparent 55%),
        linear-gradient(165deg, #07050d 0%, #110b1f 48%, #090612 100%);
      color: var(--parchment-lilac);
      font-family: "Cormorant Garamond", Georgia, serif;
      overflow-x: hidden;
      min-height: 100vh;
    }
    .font-gothic { font-family: "Pirata One", "Cinzel Decorative", serif; letter-spacing: 0.04em; }
    .font-cinzel { font-family: "Cinzel Decorative", serif; }
    .font-garamond { font-family: "Cormorant Garamond", Georgia, serif; }
    .font-montserrat { font-family: "Montserrat", sans-serif; }
    .gothic-gradient-text {
      background: linear-gradient(135deg, #fff 0%, #f4c2d7 38%, #d8b4fe 72%, #a855f7 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      filter: drop-shadow(0 6px 26px rgba(216, 180, 254, 0.28));
    }
    @keyframes floatSlow {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-7px); }
    }
    .animate-float { animation: floatSlow 5.5s ease-in-out infinite; }
    #lantern-glow {
      position: fixed;
      width: 560px;
      height: 560px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(244, 194, 215, 0.16) 0%, rgba(216, 180, 254, 0.07) 44%, transparent 70%);
      pointer-events: none;
      transform: translate(-50%, -50%);
      z-index: 1;
      transition: width .3s, height .3s, opacity .3s;
    }
    #lantern-glow.bright {
      width: 860px;
      height: 860px;
      background: radial-gradient(circle, rgba(244, 194, 215, 0.26) 0%, rgba(216, 180, 254, 0.12) 46%, transparent 74%);
    }
    #lantern-glow.off { opacity: 0; }
    #celestialCanvas {
      position: fixed;
      inset: 0;
      width: 100%;
      height: 100%;
      z-index: 0;
      pointer-events: none;
    }
    .arcane-card {
      background: linear-gradient(155deg, rgba(23, 15, 42, 0.92) 0%, rgba(11, 7, 22, 0.96) 100%);
      border: 1px solid var(--border-arcane);
      position: relative;
      transition: transform .3s, border-color .3s, box-shadow .3s;
      box-shadow: 0 12px 34px rgba(3, 2, 8, 0.8), inset 0 0 22px rgba(216, 180, 254, 0.05);
    }
    .arcane-card::before, .arcane-card::after {
      content: "";
      position: absolute;
      width: 14px;
      height: 14px;
      border-color: var(--rose-quartz);
      border-style: solid;
      pointer-events: none;
      opacity: .75;
    }
    .arcane-card::before { top: 6px; left: 6px; border-width: 1.5px 0 0 1.5px; }
    .arcane-card::after { bottom: 6px; right: 6px; border-width: 0 1.5px 1.5px 0; }
    .arcane-card:hover {
      border-color: var(--rose-quartz);
      box-shadow: 0 16px 42px rgba(3, 2, 8, 0.92), 0 0 26px rgba(216, 180, 254, 0.2);
    }
    .portal-door-wrapper { perspective: 1100px; }
    .portal-door {
      background: linear-gradient(180deg, rgba(31, 20, 56, 0.95) 0%, rgba(16, 10, 31, 0.98) 58%, rgba(8, 5, 16, 0.99) 100%);
      border: 1.5px solid rgba(244, 194, 215, 0.45);
      border-radius: 140px 140px 10px 10px;
      position: relative;
      transform-origin: left center;
      transition: transform .45s cubic-bezier(.16, 1, .3, 1), border-color .35s, box-shadow .35s;
      overflow: hidden;
      box-shadow: 0 14px 36px rgba(4, 2, 10, 0.85), inset 0 0 28px rgba(216, 180, 254, 0.08);
    }
    .portal-door::before {
      content: "";
      position: absolute;
      inset: 8px;
      border: 1px solid rgba(233, 213, 255, 0.26);
      border-radius: 132px 132px 6px 6px;
      pointer-events: none;
    }
    .portal-door-wrapper:hover .portal-door {
      transform: rotateY(-12deg) translateY(-6px);
      border-color: var(--rose-quartz);
      box-shadow: -12px 16px 40px rgba(4, 2, 10, 0.95), 10px 0 32px rgba(216, 180, 254, 0.28);
    }
    .door-knocker {
      width: 38px;
      height: 38px;
      border-radius: 50%;
      border: 1.5px solid var(--rose-quartz);
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(18, 11, 34, 0.95);
      box-shadow: 0 0 14px rgba(244, 194, 215, 0.35);
      transition: transform .3s, box-shadow .3s;
    }
    .portal-door-wrapper:hover .door-knocker {
      transform: scale(1.12);
      box-shadow: 0 0 22px rgba(244, 194, 215, 0.75);
    }
    .portrait-frame {
      position: relative;
      border: 2px solid var(--border-arcane);
      background: #120b22;
      overflow: hidden;
      transition: all .35s;
    }
    .portrait-frame::before {
      content: "";
      position: absolute;
      inset: 8px;
      border: 1px solid rgba(244, 194, 215, 0.38);
      z-index: 3;
      pointer-events: none;
    }
    .portrait-frame:hover {
      border-color: var(--rose-quartz);
      box-shadow: 0 0 28px rgba(216, 180, 254, 0.35);
      transform: translateY(-4px);
    }
    .portrait-frame img { transition: transform .65s; }
    .portrait-frame:hover img { transform: scale(1.06); }
    #doorTransitionOverlay {
      position: fixed;
      inset: 0;
      z-index: 500;
      pointer-events: none;
      display: flex;
      overflow: hidden;
    }
    .castle-door-leaf {
      width: 50%;
      height: 100%;
      background: linear-gradient(180deg, #160f29 0%, #090612 100%);
      position: relative;
      transition: transform .32s cubic-bezier(.65, 0, .35, 1);
      display: flex;
      align-items: center;
    }
    .castle-door-left {
      transform: translateX(-102%);
      border-right: 2px solid var(--rose-quartz);
      justify-content: flex-end;
      box-shadow: 15px 0 50px rgba(4, 2, 10, 0.9);
    }
    .castle-door-right {
      transform: translateX(102%);
      border-left: 2px solid var(--rose-quartz);
      justify-content: flex-start;
      box-shadow: -15px 0 50px rgba(4, 2, 10, 0.9);
    }
    #doorTransitionOverlay.closing .castle-door-left,
    #doorTransitionOverlay.closed .castle-door-left,
    #doorTransitionOverlay.closing .castle-door-right,
    #doorTransitionOverlay.closed .castle-door-right {
      transform: translateX(0%);
    }
    .chamber-view {
      display: none;
      opacity: 0;
      transform: translateY(10px);
      transition: opacity .3s, transform .3s;
    }
    .chamber-view.active-chamber {
      display: block;
      opacity: 1;
      transform: translateY(0);
    }
    .kicker {
      font-family: "Montserrat", sans-serif;
      font-size: 10px;
      letter-spacing: .22em;
      text-transform: uppercase;
      color: #f4c2d7;
    }
    .btn-grad {
      background: linear-gradient(to right, #f4c2d7, #d8b4fe);
      color: #090612;
      font-family: "Cinzel Decorative", serif;
      font-weight: 700;
      text-transform: uppercase;
      transition: opacity .2s;
      cursor: pointer;
    }
    .btn-grad:hover { opacity: .94; }
    ::-webkit-scrollbar { width: 6px; }
    ::-webkit-scrollbar-track { background: #090612; }
    ::-webkit-scrollbar-thumb { background: #c084fc; border-radius: 3px; }
    @keyframes galleryMarquee {
      0% { transform: translateX(0); }
      100% { transform: translateX(-50%); }
    }
    .gallery-marquee-track {
      display: flex;
      width: max-content;
      animation: galleryMarquee 48s linear infinite;
    }
    .gallery-marquee-track:hover {
      animation-play-state: paused;
    }
  