/* ==========================================================================
   JAYRAJSINH RANA — FANTASY KNIGHTLY LINKTREE THEME
   Inspired directly by the Electric Cobalt & Gothic Knight Business Card
   ========================================================================== */

:root {
  --cobalt-base: #0c45ff;
  --cobalt-mid: #124fff;
  --cobalt-bright: #2565ff;
  --cobalt-edge: #062ec7;
  --abyss-ink: #01082e;
  --abyss-mid: #031258;
  --panel-bg: rgba(2, 12, 66, 0.44);
  --panel-bg-hover: rgba(3, 18, 94, 0.68);
  --panel-featured: linear-gradient(135deg, rgba(4, 22, 112, 0.72) 0%, rgba(12, 62, 232, 0.48) 55%, rgba(2, 12, 68, 0.78) 100%);
  --ice-bright: #eef7ff;
  --ice-primary: #d4ebff;
  --ice-secondary: rgba(206, 231, 255, 0.82);
  --ice-muted: rgba(182, 216, 255, 0.62);
  --border-ice: rgba(184, 220, 255, 0.34);
  --border-ice-strong: rgba(218, 240, 255, 0.85);
  --border-abyss: rgba(1, 8, 46, 0.65);

  --font-gothic: 'Manufacturing Consent', 'Old English Text MT', serif;
  --font-condensed: 'Pathway Gothic One', system-ui, -apple-system, sans-serif;
  --font-crest: 'Cinzel', Georgia, serif;

  --ease-knight: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--cobalt-base);
  color: var(--ice-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  font-family: var(--font-condensed);
  background:
    radial-gradient(circle at 50% 14%, rgba(56, 122, 255, 0.52) 0%, rgba(14, 72, 255, 0) 54%),
    radial-gradient(circle at 80% 38%, rgba(4, 20, 115, 0.38) 0%, transparent 55%),
    radial-gradient(circle at 50% 88%, rgba(24, 96, 255, 0.35) 0%, rgba(5, 38, 190, 0.65) 100%),
    linear-gradient(180deg, #0f4bff 0%, #0b42fa 48%, #0838e8 100%);
  color: var(--ice-primary);
  overflow-x: hidden;
  position: relative;
}

.sr-only {
  position: absolute;
  width: 0;
  height: 0;
  pointer-events: none;
  opacity: 0;
}

/* Tactile Risograph / Print Stipple Grain matching Business Card */
.grain-overlay {
  position: fixed;
  inset: -20%;
  width: 140%;
  height: 140%;
  filter: url(#cobalt-grain);
  opacity: 0.28;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 40;
}

.ambient-glow {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at top center, rgba(168, 214, 255, 0.14), transparent 55%),
    inset 0 0 130px rgba(1, 8, 52, 0.52);
  pointer-events: none;
  z-index: 2;
}

#ember-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

/* ==========================================================================
   ATMOSPHERIC ORNAMENTS (HANGING CHAINS + ELDRITCH GUARDIAN KNIGHT)
   ========================================================================== */

.sanctum-ornaments {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  overflow: hidden;
}

.hanging-chain {
  position: absolute;
  top: -4px;
  width: clamp(92px, 14vw, 178px);
  height: auto;
  opacity: 0.92;
  transform-origin: top center;
  filter: drop-shadow(0 8px 18px rgba(1, 8, 46, 0.35));
}

.hanging-left {
  left: max(0px, calc(50% - 540px));
  animation: chainSwayLeft 9s ease-in-out infinite;
}

.hanging-right {
  right: max(0px, calc(50% - 540px));
  transform: scaleX(-1);
  animation: chainSwayRight 9s ease-in-out infinite;
}

@keyframes chainSwayLeft {

  0%,
  100% {
    transform: rotate(0deg);
  }

  50% {
    transform: rotate(0.9deg);
  }
}

@keyframes chainSwayRight {

  0%,
  100% {
    transform: scaleX(-1) rotate(0deg);
  }

  50% {
    transform: scaleX(-1) rotate(0.9deg);
  }
}

/* Eldritch Flame Knight from Card Front */
.guardian-eldritch {
  position: absolute;
  right: max(-120px, calc(50% - 690px));
  top: 52px;
  width: clamp(320px, 44vw, 620px);
  height: auto;
  opacity: 0.72;
  filter: drop-shadow(0 0 36px rgba(18, 92, 255, 0.45));
  transition: opacity 0.5s ease, transform 0.6s var(--ease-knight);
}

/* ==========================================================================
   MAIN SANCTUM SHELL
   ========================================================================== */

.sanctum-shell {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 22px 18px 56px;
}

/* Top Utility Bar */
.top-sigil-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.sigil-icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  background: rgba(1, 10, 56, 0.48);
  border: 1px solid var(--border-ice);
  color: var(--ice-bright);
  font-family: var(--font-condensed);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.25s var(--ease-knight);
}

.sigil-icon-btn svg {
  width: 15px;
  height: 15px;
}

.sigil-icon-btn:hover {
  background: rgba(212, 235, 255, 0.16);
  border-color: var(--border-ice-strong);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(1, 8, 48, 0.42);
}

.realm-crest {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ice-secondary);
  font-size: 0.85rem;
  opacity: 0.88;
}

.crest-line {
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ice-primary), transparent);
}

.cross-glyph {
  font-size: 1rem;
  color: var(--ice-bright);
}

/* ==========================================================================
   HERO IDENTITY SECTION (CARD FRONT HOMAGE)
   ========================================================================== */

.hero-card {
  position: relative;
  text-align: center;
  padding: 26px 20px 20px 20px;
  margin-bottom: 26px;
  background: linear-gradient(180deg, rgba(2, 12, 68, 0.54) 0%, rgba(4, 22, 108, 0.34) 100%);
  border: 1px solid var(--border-ice);
  box-shadow:
    0 18px 44px rgba(1, 8, 46, 0.42),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
}

/* Ornate Gothic Corner Finials */
.hero-card::before,
.hero-card::after {
  content: '✦';
  position: absolute;
  top: -7px;
  font-size: 0.85rem;
  color: var(--ice-bright);
  /* background: var(--cobalt-base); */
  padding: 0 5px;
  line-height: 1;
}

.hero-card::before {
  left: 14px;
}

.hero-card::after {
  right: 14px;
}

/* Pointed Gothic Arch Portrait Medallion */
.hero-arch-badge {
  position: relative;
  width: 96px;
  height: 114px;
  margin: 0 auto 14px;
  padding: 4px;
  border-radius: 52px 52px 10px 10px;
  background: linear-gradient(180deg, var(--ice-bright) 0%, rgba(145, 198, 255, 0.35) 100%);
  box-shadow:
    0 10px 28px rgba(1, 8, 46, 0.55),
    0 0 24px rgba(120, 185, 255, 0.32);
}

.arch-badge-inner {
  width: 100%;
  height: 100%;
  border-radius: 48px 48px 7px 7px;
  background:
    radial-gradient(circle at 50% 36%, #2e73ff 0%, #0a3fe8 62%, #021056 100%);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--abyss-ink);
}

.hero-badge-knight {
  width: 165%;
  height: auto;
  /* position: absolute;
  left: 0%;
  top: -12%; */
  filter: drop-shadow(0 0 8px rgba(112, 184, 255, 0.5));
}

.badge-star {
  position: absolute;
  bottom: 8px;
  font-size: 0.7rem;
  color: var(--ice-bright);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.7);
}

.badge-star-tl {
  left: -12px;
}

.badge-star-tr {
  right: -12px;
}

.knight-epithet {
  font-family: var(--font-crest);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  color: var(--ice-secondary);
  margin-bottom: 6px;
}

/* Exact Blackletter Display Name matching Card Front */
.gothic-name {
  font-family: var(--font-gothic);
  font-weight: 400;
  font-size: clamp(2.85rem, 10vw, 4.05rem);
  line-height: 0.96;
  color: var(--ice-primary);
  letter-spacing: 0.015em;
  text-shadow:
    0 2px 0 rgba(1, 9, 52, 0.75),
    0 0 26px rgba(168, 214, 255, 0.32);
  margin-bottom: 12px;
}

.role-banner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.role-ornament {
  font-size: 0.8rem;
  color: var(--ice-muted);
  letter-spacing: 0.08em;
}

/* Exact Tall Condensed Sans Role Title matching Card Front */
.role-title {
  font-family: var(--font-condensed);
  font-size: 1.32rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  color: var(--ice-bright);
  text-transform: uppercase;
}

.hero-tagline {
  max-width: 390px;
  margin: 0 auto 20px;
  font-size: 1.02rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  line-height: 1.4;
  color: var(--ice-secondary);
}

/* Quick Action Runes */
.quick-runes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.rune-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px 6px;
  text-decoration: none;
  color: var(--ice-bright);
  background: rgba(1, 9, 48, 0.52);
  border: 1px solid var(--border-ice);
  font-family: var(--font-condensed);
  cursor: pointer;
  transition: all 0.25s var(--ease-knight);
}

.rune-btn:hover {
  background: rgba(212, 235, 255, 0.18);
  border-color: var(--border-ice-strong);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(1, 8, 46, 0.45);
}

.rune-btn-accent {
  background: linear-gradient(180deg, rgba(196, 226, 255, 0.22) 0%, rgba(10, 56, 214, 0.45) 100%);
  border-color: rgba(212, 235, 255, 0.62);
}

.rune-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.rune-icon svg {
  width: 18px;
  height: 18px;
}

.rune-label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
}

/* ==========================================================================
   CHAPTERS & KNIGHTLY LINK RELIC CARDS
   ========================================================================== */

.links-sanctum {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.link-chapter {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.chapter-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 3px;
}

.chapter-heading::before,
.chapter-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(206, 231, 255, 0.45), transparent);
}

.chapter-title {
  font-family: var(--font-crest);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ice-bright);
  white-space: nowrap;
}

/* Relic Link Card */
.relic-row {
  position: relative;
  display: flex;
  align-items: stretch;
  background: var(--panel-bg);
  border: 1px solid var(--border-ice);
  backdrop-filter: blur(10px);
  box-shadow:
    0 8px 24px rgba(1, 8, 46, 0.34),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  overflow: hidden;
  transition:
    transform 0.28s var(--ease-knight),
    border-color 0.28s var(--ease-knight),
    background 0.28s var(--ease-knight),
    box-shadow 0.28s var(--ease-knight);
}

/* Sword-gleam sweep on hover */
.relic-row::before {
  content: '';
  position: absolute;
  top: 0;
  left: -110%;
  width: 65%;
  height: 100%;
  background: linear-gradient(105deg,
      transparent 0%,
      rgba(218, 240, 255, 0.18) 50%,
      transparent 100%);
  transition: left 0.55s var(--ease-knight);
  pointer-events: none;
}

.relic-row:hover::before {
  left: 145%;
}

.relic-row:hover {
  transform: translateY(-2px);
  background: var(--panel-bg-hover);
  border-color: var(--border-ice-strong);
  box-shadow:
    0 14px 32px rgba(1, 8, 48, 0.52),
    0 0 18px rgba(112, 180, 255, 0.24);
}

/* Featured Hero Portfolio Card */
.relic-row.is-featured {
  background: var(--panel-featured);
  border-color: rgba(216, 238, 255, 0.72);
  box-shadow:
    0 12px 34px rgba(1, 8, 52, 0.52),
    0 0 26px rgba(96, 168, 255, 0.28),
    inset 0 0 18px rgba(176, 218, 255, 0.12);
}

.relic-main-link {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.relic-crest-box {
  position: relative;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(1, 8, 46, 0.62);
  border: 1px solid rgba(196, 226, 255, 0.42);
  color: var(--ice-bright);
  transition: transform 0.28s var(--ease-knight), border-color 0.28s ease;
}

.relic-row:hover .relic-crest-box {
  transform: scale(1.05);
  border-color: var(--ice-bright);
}

.relic-crest-box svg {
  width: 21px;
  height: 21px;
}

.relic-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.relic-title-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.relic-title {
  font-family: var(--font-condensed);
  font-size: 1.18rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ice-bright);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.relic-badge {
  font-family: var(--font-crest);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  padding: 2px 6px;
  background: rgba(216, 238, 255, 0.18);
  border: 1px solid rgba(216, 238, 255, 0.55);
  color: var(--ice-bright);
  text-transform: uppercase;
  flex-shrink: 0;
}

.relic-subtitle {
  font-family: var(--font-condensed);
  font-size: 0.94rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--ice-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.relic-arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--ice-secondary);
  font-size: 0.9rem;
  transition: transform 0.28s var(--ease-knight), color 0.28s ease;
}

.relic-row:hover .relic-arrow {
  transform: translateX(3px);
  color: var(--ice-bright);
}

.relic-arrow svg {
  width: 17px;
  height: 17px;
}

/* Optional Secondary Copy Button inside Contact Relics */
.relic-copy-btn {
  flex-shrink: 0;
  width: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(1, 8, 44, 0.38);
  border: none;
  border-left: 1px solid rgba(184, 220, 255, 0.22);
  color: var(--ice-secondary);
  cursor: pointer;
  transition: all 0.22s ease;
}

.relic-copy-btn:hover {
  background: rgba(212, 235, 255, 0.2);
  color: var(--ice-bright);
}

.relic-copy-btn svg {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   MONUMENT FOOTER (CARD BACK HOMAGE: STAR QR + CRUSADER KNIGHT + SWORDS)
   ========================================================================== */

.monument-footer {
  margin-top: 38px;
  text-align: center;
}

.monument-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 235, 255, 0.55), transparent);
}

.divider-glyph {
  font-size: 0.9rem;
  letter-spacing: 0.28em;
  color: var(--ice-bright);
}

/* Recreating Jayraj Rana - Back Stage */
.monument-stage {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-top: 8px;
  margin-bottom: 24px;
}

.cathedral-column {
  position: relative;
  z-index: 2;
  width: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.inline-qr-crest {
  width: 192px;
  padding: 10px 10px 8px;
  background: rgba(2, 13, 74, 0.42);
  border: 1px solid rgba(196, 226, 255, 0.48);
  border-bottom: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: all 0.28s var(--ease-knight);
}

.inline-qr-crest:hover {
  background: rgba(6, 28, 128, 0.62);
  border-color: var(--ice-bright);
  box-shadow: 0 0 26px rgba(135, 195, 255, 0.3);
}

#footer-qr-canvas {
  width: 168px;
  height: 168px;
  display: block;
}

.qr-crest-caption {
  font-family: var(--font-condensed);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--ice-secondary);
}

.crusader-frame {
  width: 276px;
  margin-top: -2px;
  position: relative;
  pointer-events: none;
}

.crusader-knight {
  width: 100%;
  height: auto;
  display: block;
}

.flank-sword {
  position: absolute;
  bottom: 8px;
  width: clamp(92px, 22vw, 138px);
  height: auto;
  opacity: 0.92;
  pointer-events: none;
  z-index: 1;
}

.flank-sword-left {
  left: max(-14px, calc(50% - 248px));
}

.flank-sword-right {
  right: max(-14px, calc(50% - 248px));
  transform: scaleX(-1);
}

/* Card-Front Bottom Inscription Homage */
.card-inscription {
  padding-top: 18px;
  border-top: 1px solid rgba(184, 220, 255, 0.26);
}

.inscription-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 26px;
  margin-bottom: 16px;
}

.inscription-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.ins-label {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--ice-muted);
}

.ins-value {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ice-bright);
  text-decoration: none;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.ins-value:hover {
  color: #ffffff;
  text-shadow: 0 0 12px rgba(200, 230, 255, 0.7);
}

.copyright-mark {
  font-family: var(--font-crest);
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  color: var(--ice-muted);
}

/* ==========================================================================
   SCANNABLE STAR-MOSAIC QR MODAL
   ========================================================================== */

.qr-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(1, 7, 38, 0.82);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.qr-modal-backdrop[hidden] {
  display: none;
}

.qr-modal-panel {
  position: relative;
  width: 100%;
  max-width: 380px;
  padding: 28px 24px 24px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 20%, #1654ff 0%, #0a3de6 65%, #041d8c 100%);
  border: 1px solid var(--border-ice-strong);
  box-shadow:
    0 24px 64px rgba(0, 4, 26, 0.78),
    0 0 40px rgba(32, 108, 255, 0.45);
}

.modal-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: rgba(1, 8, 46, 0.55);
  border: 1px solid var(--border-ice);
  color: var(--ice-bright);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: rgba(212, 235, 255, 0.22);
  border-color: #fff;
}

.modal-kicker {
  font-family: var(--font-crest);
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  color: var(--ice-secondary);
  margin-bottom: 4px;
}

.modal-title {
  font-family: var(--font-gothic);
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--ice-bright);
  margin-bottom: 2px;
}

.modal-subtitle {
  font-size: 0.86rem;
  letter-spacing: 0.16em;
  color: var(--ice-secondary);
  margin-bottom: 18px;
}

.modal-qr-frame {
  display: inline-flex;
  padding: 14px;
  background: #0a41f5;
  border: 1px solid rgba(214, 238, 255, 0.65);
  box-shadow: inset 0 0 22px rgba(1, 8, 48, 0.42);
  margin-bottom: 14px;
}

#modal-qr-canvas {
  width: 240px;
  height: 240px;
  display: block;
}

.modal-url-readout {
  font-size: 0.92rem;
  letter-spacing: 0.12em;
  color: var(--ice-bright);
  margin-bottom: 16px;
  word-break: break-all;
}

.modal-actions {
  display: flex;
  gap: 10px;
}

.relic-action-pill {
  flex: 1;
  padding: 11px 12px;
  font-family: var(--font-condensed);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ice-bright);
  background: rgba(1, 8, 46, 0.58);
  border: 1px solid var(--border-ice);
  cursor: pointer;
  transition: all 0.22s ease;
}

.relic-action-pill:hover {
  background: rgba(212, 235, 255, 0.22);
  border-color: #fff;
}

.relic-action-primary {
  background: rgba(212, 235, 255, 0.2);
  border-color: var(--border-ice-strong);
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */

.royal-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 120;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(1, 9, 52, 0.92);
  border: 1px solid var(--border-ice-strong);
  color: var(--ice-bright);
  font-family: var(--font-condensed);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  box-shadow: 0 12px 30px rgba(0, 4, 24, 0.65);
  backdrop-filter: blur(8px);
}

.royal-toast[hidden] {
  display: none;
}

.toast-star {
  color: #8cc6ff;
}

/* ==========================================================================
   RESPONSIVE REFINEMENTS (MOBILE & DESKTOP)
   ========================================================================== */

@media (max-width: 640px) {
  .sanctum-shell {
    padding: 16px 14px 48px;
  }

  .hanging-chain {
    width: 82px;
    opacity: 0.55;
  }

  .hanging-left {
    left: -6px;
  }

  .hanging-right {
    right: -6px;
  }

  .guardian-eldritch {
    right: -95px;
    top: 76px;
    width: 300px;
    opacity: 0.34;
  }

  .hero-card {
    padding: 22px 14px 18px;
  }

  .quick-runes {
    gap: 6px;
  }

  .relic-main-link {
    padding: 13px 12px;
    gap: 11px;
  }

  .relic-crest-box {
    width: 40px;
    height: 40px;
  }

  .relic-title {
    font-size: 1.08rem;
  }

  .relic-subtitle {
    font-size: 0.86rem;
  }

  .flank-sword {
    width: 82px;
  }

  .flank-sword-left {
    left: -4px;
  }

  .flank-sword-right {
    right: -4px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .hanging-left,
  .hanging-right,
  .relic-row::before {
    animation: none !important;
    transition: none !important;
  }
}