:root {
  --book-open-width: 980px;
  --book-cover-width: 460px;
  --book-height: 560px;
  --bg: #050511;
  --panel: rgba(12, 12, 28, 0.88);
  --page: #111125;
  --page-light: #181833;
  --cyan: #4dfcff;
  --pink: #ff4fd8;
  --gold: #f7d774;
  --text: #f6f7ff;
  --muted: #aeb3d8;
  --shadow: rgba(0, 0, 0, 0.65);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 79, 216, 0.18), transparent 35%),
    radial-gradient(circle at bottom right, rgba(77, 252, 255, 0.16), transparent 35%),
    var(--bg);
  overflow-x: hidden;
}

.book-bg {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(77, 252, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 252, 255, 0.03) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
  opacity: 0.6;
}

.archive-header {
  position: relative;
  z-index: 2;
  padding: 32px 7vw 10px;
}

.back-link {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid var(--cyan);
}

.back-link:hover {
  color: var(--pink);
  border-bottom-color: var(--pink);
}

.eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
}

.archive-header h1 {
  margin: 0;
  font-size: clamp(2.4rem, 7vw, 5.2rem);
  color: var(--cyan);
  text-shadow: 0 0 24px rgba(77, 252, 255, 0.35);
}

.subtitle {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.7;
}

.book-stage {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 900px) 240px;
  gap: 24px;
  padding: 22px 7vw 90px;
  align-items: start;
  justify-content: center;
}

.book-container {
  width: 100%;
  max-width: var(--book-open-width);
  margin: 0 auto;
  perspective: 1800px;
}
}

.book {
  position: relative;
  width: 100%;
  max-width: var(--book-open-width);
  min-height: var(--book-height);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 34px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.75), rgba(18, 18, 45, 0.95), rgba(0, 0, 0, 0.75)),
    radial-gradient(circle at center, rgba(77, 252, 255, 0.12), transparent 55%);
  border: 2px solid rgba(77, 252, 255, 0.32);
  box-shadow:
    0 35px 90px rgba(0, 0, 0, 0.85),
    0 0 35px rgba(77, 252, 255, 0.22),
    0 0 70px rgba(255, 79, 216, 0.12),
    inset 0 0 35px rgba(255, 79, 216, 0.08);
  overflow: hidden;
  isolation: isolate;
  transition:
    width 0.6s ease,
    max-width 0.6s ease,
    min-height 0.6s ease;
}
.book::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 26px;
  border: 1px solid rgba(247, 215, 116, 0.25);
  pointer-events: none;
  box-shadow:
    inset 0 0 18px rgba(247, 215, 116, 0.12),
    0 0 18px rgba(77, 252, 255, 0.14);
  z-index: 8;
}

.book-glow-runes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 7;
  opacity: 0.35;
  background:
    linear-gradient(90deg, transparent 0 48%, rgba(77, 252, 255, 0.25) 50%, transparent 52%),
    repeating-linear-gradient(
      90deg,
      transparent 0 42px,
      rgba(255, 79, 216, 0.08) 42px 44px,
      transparent 44px 88px
    );
  mix-blend-mode: screen;
}

.book::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 18px;
  transform: translateX(-50%);
  background:
    linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.65), transparent);
  z-index: 5;
}

.book-page {
  position: relative;
  min-height: var(--book-height);
  padding: 52px;
  background:
    radial-gradient(circle at top left, rgba(120, 68, 25, 0.16), transparent 35%),
    radial-gradient(circle at bottom right, rgba(55, 32, 12, 0.2), transparent 42%),
    linear-gradient(135deg, #d9c69a, #bfa875 45%, #8e7447);
  box-shadow:
    inset 0 0 42px rgba(48, 25, 8, 0.42),
    inset 0 0 16px rgba(255, 246, 201, 0.28);
  color: #24170c;
}
.book-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(92, 49, 18, 0.16), transparent 10%),
    radial-gradient(circle at 77% 68%, rgba(92, 49, 18, 0.14), transparent 12%),
    radial-gradient(circle at 50% 90%, rgba(40, 20, 8, 0.16), transparent 18%),
    repeating-linear-gradient(
      0deg,
      rgba(65, 38, 15, 0.055) 0 1px,
      transparent 1px 28px
    );
  opacity: 0.9;
  pointer-events: none;
}

.book-page::after {
  content: "";
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(78, 41, 13, 0.28);
  border-radius: 20px;
  pointer-events: none;
  box-shadow:
    inset 0 0 18px rgba(78, 41, 13, 0.12),
    0 0 14px rgba(77, 252, 255, 0.08);
}

.left-page {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.right-page {
  transform-origin: left center;
}

.right-page.turning {
  animation: pageTurn 0.75s ease forwards;
}

@keyframes pageTurn {
  0% {
    transform: rotateY(0deg);
    filter: brightness(1);
    box-shadow: inset 0 0 30px rgba(77, 252, 255, 0.08);
  }

  35% {
    transform: rotateY(-70deg);
    filter: brightness(0.85);
    box-shadow:
      inset 40px 0 45px rgba(0, 0, 0, 0.5),
      0 0 35px rgba(255, 79, 216, 0.18);
  }

  55% {
    transform: rotateY(-105deg);
    filter: brightness(0.65);
  }

  100% {
    transform: rotateY(0deg);
    filter: brightness(1);
    box-shadow: inset 0 0 30px rgba(77, 252, 255, 0.08);
  }
}

.page-content {
  position: relative;
  z-index: 2;
}

.page-label {
  color: #5c320e;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.76rem;
  font-weight: bold;
  text-shadow: 0 1px 0 rgba(255, 238, 186, 0.35);
}

.book-page h2 {
  color: #271509;
  font-size: clamp(1.8rem, 4vw, 2.9rem);
  line-height: 1.05;
  margin: 12px 0 24px;
  text-shadow:
    0 1px 0 rgba(255, 238, 186, 0.4),
    0 0 12px rgba(77, 252, 255, 0.16);
}

.book-page p {
  font-size: 1.08rem;
  color: #2f1d0d;
  line-height: 1.9;
}

.book-page::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(77, 252, 255, 0.12);
  border-radius: 18px;
  pointer-events: none;
}

.book-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 24px;
}

.book-controls button,
.chapter-menu button {
  cursor: pointer;
  border: 1px solid rgba(77, 252, 255, 0.4);
  background: rgba(8, 8, 18, 0.8);
  color: var(--text);
  border-radius: 999px;
  padding: 11px 18px;
  transition: 0.3s ease;
}

.book-controls button:hover,
.chapter-menu button:hover {
  background: var(--cyan);
  color: #050511;
  box-shadow: 0 0 24px rgba(77, 252, 255, 0.35);
}

#pageCounter {
  color: var(--muted);
}

.chapter-menu {
  padding: 22px;
  border-radius: 24px;
  background: var(--panel);
  border: 1px solid rgba(255, 79, 216, 0.24);
  box-shadow: 0 0 35px rgba(255, 79, 216, 0.12);
}

.chapter-menu h3 {
  margin-top: 0;
  color: var(--pink);
}

.chapter-menu button {
  width: 100%;
  display: block;
  margin-top: 12px;
  text-align: left;
  border-radius: 16px;
}

@media (max-width: 900px) {
  .book-stage {
    grid-template-columns: 1fr;
  }

  .book {
    grid-template-columns: 1fr;
  }

  .book::before {
    display: none;
  }

  .left-page,
  .right-page {
    min-height: auto;
  }

  .left-page {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
}

@media (max-width: 600px) {
  .archive-header {
    padding: 24px 20px 8px;
  }

  .book-stage {
    padding: 20px;
  }

  .book-page {
    padding: 30px 24px;
  }

  .book-controls {
    flex-wrap: wrap;
  }
  .book.closed {
  width: min(100%, 400px);
  max-width: 400px;
  min-height: 520px;
}

.book.opened {
  width: 100%;
  max-width: 100%;
}
}
.page-corner {
  position: absolute;
  width: 48px;
  height: 48px;
  border-color: rgba(247, 215, 116, 0.55);
  z-index: 3;
  pointer-events: none;
}

.top-left {
  top: 24px;
  left: 24px;
  border-top: 2px solid;
  border-left: 2px solid;
}

.bottom-left {
  bottom: 24px;
  left: 24px;
  border-bottom: 2px solid;
  border-left: 2px solid;
}

.top-right {
  top: 24px;
  right: 24px;
  border-top: 2px solid;
  border-right: 2px solid;
}

.bottom-right {
  bottom: 24px;
  right: 24px;
  border-bottom: 2px solid;
  border-right: 2px solid;
}
.book-floating-menu {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  padding: 10px;
  border-radius: 999px;
  background: rgba(8, 8, 18, 0.86);
  border: 1px solid rgba(77, 252, 255, 0.28);
  backdrop-filter: blur(14px);
  z-index: 50;
  box-shadow:
    0 0 28px rgba(77, 252, 255, 0.14),
    0 0 45px rgba(255, 79, 216, 0.08);
}

.book-floating-menu button {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s ease;
}

.book-floating-menu button:hover {
  color: #050511;
  background: var(--cyan);
  box-shadow: 0 0 20px rgba(77, 252, 255, 0.45);
}

@media (max-width: 650px) {
  .book-floating-menu {
    width: calc(100% - 24px);
    overflow-x: auto;
    justify-content: flex-start;
    border-radius: 18px;
  }

  .book-floating-menu button {
    white-space: nowrap;
  }
}
.glitch-title {
  position: relative;
}

.glitch-title::before,
.glitch-title::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0.45;
  pointer-events: none;
}

.glitch-title::before {
  color: var(--pink);
  transform: translate(2px, 0);
  animation: glitchShift 2.2s infinite linear alternate-reverse;
}

.glitch-title::after {
  color: var(--cyan);
  transform: translate(-2px, 0);
  animation: glitchShift 1.7s infinite linear alternate;
}

@keyframes glitchShift {
  0% {
    clip-path: inset(0 0 80% 0);
  }

  20% {
    clip-path: inset(20% 0 45% 0);
  }

  40% {
    clip-path: inset(55% 0 20% 0);
  }

  60% {
    clip-path: inset(10% 0 65% 0);
  }

  80% {
    clip-path: inset(75% 0 5% 0);
  }

  100% {
    clip-path: inset(35% 0 35% 0);
  }
}
.hidden-until-open {
  display: none;
}

.book.closed {
  display: block;
  width: min(100%, var(--book-cover-width));
  max-width: var(--book-cover-width);
  min-height: var(--book-height);
  margin: 0 auto;
  cursor: pointer;
}
.book.opened {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  max-width: var(--book-open-width);
  min-height: var(--book-height);
  margin: 0 auto;
}

.book.closed .book-page,
.book.closed .book-glow-runes {
  opacity: 0;
  pointer-events: none;
}

.book.opened .book-cover {
  animation: openCover 1.15s ease forwards;
  pointer-events: none;
}

.book-cover {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  border-radius: 34px;
  transform-origin: left center;
  background:
    linear-gradient(135deg, rgba(3, 3, 10, 0.95), rgba(19, 9, 38, 0.96), rgba(4, 4, 14, 0.98)),
    radial-gradient(circle at 70% 28%, rgba(255, 79, 216, 0.22), transparent 32%),
    radial-gradient(circle at 25% 78%, rgba(77, 252, 255, 0.2), transparent 36%);
  border: 2px solid rgba(77, 252, 255, 0.45);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.9),
    0 0 40px rgba(77, 252, 255, 0.26),
    0 0 85px rgba(255, 79, 216, 0.16),
    inset 0 0 50px rgba(255, 79, 216, 0.08);
  overflow: hidden;
}

.book-cover::before {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 24px;
  border: 1px solid rgba(247, 215, 116, 0.38);
  box-shadow:
    inset 0 0 20px rgba(247, 215, 116, 0.12),
    0 0 24px rgba(77, 252, 255, 0.12);
}

.book-cover::after {
  content: "";
  position: absolute;
  top: 8%;
  bottom: 8%;
  left: 62px;
  width: 16px;
  border-radius: 999px;
  background:
    linear-gradient(
      to bottom,
      rgba(77, 252, 255, 0.05),
      rgba(77, 252, 255, 0.55),
      rgba(255, 79, 216, 0.45),
      rgba(77, 252, 255, 0.05)
    );
  box-shadow:
    0 0 18px rgba(77, 252, 255, 0.5),
    0 0 34px rgba(255, 79, 216, 0.24);
}

.cover-aura {
  position: absolute;
  inset: -40%;
  background:
    conic-gradient(
      from 0deg,
      transparent,
      rgba(77, 252, 255, 0.12),
      transparent,
      rgba(255, 79, 216, 0.14),
      transparent
    );
  animation: coverAuraSpin 12s linear infinite;
}

.cover-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 680px;
  padding: 44px;
}

.cover-kicker {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 0.78rem;
}

.cover-content h2 {
  margin: 14px 0;
  font-size: clamp(2.1rem, 7vw, 6rem);
  line-height: 0.92;
  color: var(--cyan);
  text-shadow:
    0 0 14px rgba(77, 252, 255, 0.85),
    0 0 35px rgba(255, 79, 216, 0.45);
}

.cover-subtitle {
  color: var(--muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.cover-symbol {
  width: 66px;
  height: 66px;
  margin: 32px auto 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--gold);
  font-size: 2rem;
  border: 1px solid rgba(247, 215, 116, 0.5);
  box-shadow:
    0 0 20px rgba(247, 215, 116, 0.22),
    inset 0 0 18px rgba(77, 252, 255, 0.12);
}

@keyframes coverAuraSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes openCover {
  0% {
    transform: rotateY(0deg);
    opacity: 1;
  }

  70% {
    transform: rotateY(-115deg);
    opacity: 1;
  }

  100% {
    transform: rotateY(-145deg);
    opacity: 0;
  }
}
.book.closing .book-cover {
  animation: closeCover 1s ease forwards;
  pointer-events: none;
}

.book.closing .book-page,
.book.closing .book-glow-runes {
  animation: fadePagesOut 0.75s ease forwards;
}

@keyframes closeCover {
  0% {
    transform: rotateY(-145deg);
    opacity: 0;
  }

  35% {
    opacity: 1;
  }

  100% {
    transform: rotateY(0deg);
    opacity: 1;
  }
}

@keyframes fadePagesOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

/* NARRATIVE DESIGN SHOWCASE PANEL */

.narrative-design-panel {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 14vw));
  margin: 0 auto 120px;
  padding: 30px;
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(77, 252, 255, 0.055), rgba(255, 79, 216, 0.04)),
    rgba(8, 8, 18, 0.78);
  border: 1px solid rgba(77, 252, 255, 0.22);
  box-shadow:
    0 0 34px rgba(77, 252, 255, 0.1),
    0 0 60px rgba(255, 79, 216, 0.06),
    inset 0 0 26px rgba(255, 255, 255, 0.025);
}

.design-panel-heading h2 {
  color: var(--cyan);
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin: 8px 0 12px;
  text-shadow: 0 0 18px rgba(77, 252, 255, 0.28);
}

.design-panel-heading p {
  max-width: 820px;
  color: var(--muted);
  line-height: 1.7;
}

.design-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 26px;
}

.design-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(255, 79, 216, 0.12), transparent 38%),
    rgba(12, 12, 28, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 0 20px rgba(77, 252, 255, 0.025),
    0 0 22px rgba(0, 0, 0, 0.22);
}

.design-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      120deg,
      transparent 0%,
      rgba(77, 252, 255, 0.09) 42%,
      transparent 65%
    );
  transform: translateX(-110%);
  transition: transform 0.55s ease;
}

.design-card:hover::before {
  transform: translateX(110%);
}

.design-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 50%;
  color: var(--gold);
  border: 1px solid rgba(247, 215, 116, 0.55);
  background: rgba(247, 215, 116, 0.08);
  box-shadow:
    0 0 16px rgba(247, 215, 116, 0.22),
    inset 0 0 16px rgba(77, 252, 255, 0.08);
}

.design-card h3 {
  color: var(--cyan);
  margin: 0 0 10px;
}

.design-card p {
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.95rem;
}

@media (max-width: 980px) {
  .design-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .narrative-design-panel {
    width: calc(100% - 40px);
  }
}

@media (max-width: 620px) {
  .design-card-grid {
    grid-template-columns: 1fr;
  }

  .narrative-design-panel {
    width: calc(100% - 28px);
    padding: 22px;
  }
}

/* ===============================
   CYBERPUNK CUSTOM CURSOR
================================ */

body {
  cursor: none;
}

button,
a,
.portal-card,
.unlock-card,
.world-card,
.case-card,
.video-card,
.skill-pill,
.branch-btn,
.tv-shell,
.book-cover {
  cursor: none;
}

.custom-cursor {
  position: fixed;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  border: 1px solid var(--cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 12px rgba(77, 252, 255, 0.9),
    0 0 24px rgba(255, 79, 216, 0.35);
  mix-blend-mode: screen;
}

.cursor-trail {
  position: fixed;
  left: 0;
  top: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(
      circle,
      rgba(77, 252, 255, 0.18),
      rgba(255, 79, 216, 0.12) 45%,
      transparent 70%
    );
  filter: blur(2px);
  mix-blend-mode: screen;
}

.custom-cursor.cursor-hover {
  width: 34px;
  height: 34px;
  border-color: var(--pink);
  box-shadow:
    0 0 14px rgba(255, 79, 216, 0.95),
    0 0 28px rgba(77, 252, 255, 0.4);
}

.cursor-trail.cursor-hover {
  width: 70px;
  height: 70px;
  background:
    radial-gradient(
      circle,
      rgba(255, 79, 216, 0.2),
      rgba(77, 252, 255, 0.13) 45%,
      transparent 72%
    );
}

@media (max-width: 850px) {
  body,
  button,
  a {
    cursor: auto;
  }

  .custom-cursor,
  .cursor-trail {
    display: none;
  }
}
/* Mobile*/
@media (max-width: 700px) {
  .book.closed {
    transform: scale(0.92);
    max-width: 100%;
    min-height: 460px;
  }

  .book.closed .book-cover {
    min-height: 460px;
  }
}

/*Magic Cover Effects*/

.magic-burst {
  position: absolute;
  inset: 50%;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  background:
    radial-gradient(circle, rgba(247, 215, 116, 0.95), rgba(77, 252, 255, 0.55), rgba(255, 79, 216, 0.2), transparent 70%);
  opacity: 0;
  pointer-events: none;
  z-index: 6;
}

.book.magic-open .magic-burst {
  animation: magicBurstOpen 0.9s ease-out forwards;
}

@keyframes magicBurstOpen {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
    filter: blur(0);
  }

  25% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(8);
  }

  65% {
    opacity: 0.85;
    transform: translate(-50%, -50%) scale(22);
    filter: blur(2px);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(35);
    filter: blur(6px);
  }
}

.rune-ring {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 1px dashed rgba(247, 215, 116, 0.5);
  box-shadow:
    0 0 20px rgba(247, 215, 116, 0.18),
    inset 0 0 18px rgba(77, 252, 255, 0.16);
  opacity: 0.5;
  z-index: 1;
  animation: runeRingSpin 18s linear infinite;
}

.rune-ring::before,
.rune-ring::after {
  content: "✦  01  SIGIL  09  LOCKED  ✦  77  ARCHIVE  04  ✦";
  position: absolute;
  inset: -34px;
  display: grid;
  place-items: center;
  color: rgba(247, 215, 116, 0.75);
  font-size: 0.72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(247, 215, 116, 0.45);
}

.rune-ring::after {
  inset: 34px;
  color: rgba(77, 252, 255, 0.65);
  font-size: 0.62rem;
  animation: runeReverseSpin 12s linear infinite;
}

@keyframes runeRingSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes runeReverseSpin {
  from {
    transform: rotate(360deg);
  }

  to {
    transform: rotate(0deg);
  }
}

.encrypted-lines {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.23;
  background:
    repeating-linear-gradient(
      0deg,
      transparent 0 18px,
      rgba(77, 252, 255, 0.12) 18px 19px,
      transparent 19px 34px
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0 36px,
      rgba(255, 79, 216, 0.08) 36px 37px,
      transparent 37px 72px
    );
  mix-blend-mode: screen;
}
/*Cover Decoration*/
.cover-corner {
  position: absolute;
  width: 72px;
  height: 72px;
  z-index: 3;
  pointer-events: none;
  opacity: 0.8;
}

.corner-one {
  top: 34px;
  left: 34px;
  border-top: 2px solid rgba(247, 215, 116, 0.65);
  border-left: 2px solid rgba(247, 215, 116, 0.65);
}

.corner-two {
  top: 34px;
  right: 34px;
  border-top: 2px solid rgba(77, 252, 255, 0.55);
  border-right: 2px solid rgba(77, 252, 255, 0.55);
}

.corner-three {
  bottom: 34px;
  left: 34px;
  border-bottom: 2px solid rgba(77, 252, 255, 0.55);
  border-left: 2px solid rgba(77, 252, 255, 0.55);
}

.corner-four {
  bottom: 34px;
  right: 34px;
  border-bottom: 2px solid rgba(255, 79, 216, 0.55);
  border-right: 2px solid rgba(255, 79, 216, 0.55);
}

.cover-seal {
  position: absolute;
  top: 50%;
  right: 80px;
  width: 92px;
  height: 92px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(247, 215, 116, 0.55);
  color: var(--gold);
  z-index: 4;
  box-shadow:
    0 0 22px rgba(247, 215, 116, 0.25),
    inset 0 0 24px rgba(255, 79, 216, 0.12);
}

.cover-seal::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 1px dashed rgba(77, 252, 255, 0.45);
  animation: sealSpin 10s linear infinite;
}

.cover-seal span {
  font-size: 2rem;
  text-shadow:
    0 0 12px rgba(247, 215, 116, 0.9),
    0 0 24px rgba(255, 79, 216, 0.35);
}

@keyframes sealSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  box-shadow: 0 0 18px rgba(247, 200, 115, 0.45);
}
