:root {
  --void: #070504;
  --obsidian: #100a06;
  --soil: #1c120a;
  --bronze: #6a4314;
  --gold: #f0c14a;
  --gold-hot: #ffd36a;
  --gold-deep: #b8841c;
  --amber: #ff8a1a;
  --ember: #ffb347;
  --cream: #f6ebd2;
  --mist: #c9b89a;
  --ink: #2a1a0c;
  --line: rgba(240, 193, 74, 0.22);
  --glass: rgba(16, 10, 6, 0.72);
  --max: 1220px;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--void);
  color: var(--cream);
}

body {
  font-family: "Barlow", sans-serif;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 18% 12%, rgba(240, 193, 74, 0.12), transparent 58%),
    radial-gradient(720px 480px at 84% 22%, rgba(255, 138, 26, 0.08), transparent 60%),
    radial-gradient(1000px 700px at 50% 110%, rgba(184, 132, 28, 0.1), transparent 55%),
    linear-gradient(180deg, #090604 0%, #120b07 42%, #0a0704 100%);
}

#embers {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.fissure {
  position: absolute;
  filter: blur(40px);
  opacity: 0.42;
  animation: pulse 7s ease-in-out infinite;
}

.fissure-a {
  width: 38vw;
  height: 22vw;
  left: -6vw;
  top: 8vh;
  background: radial-gradient(circle, rgba(240, 193, 74, 0.45), transparent 70%);
}

.fissure-b {
  width: 28vw;
  height: 28vw;
  right: 4vw;
  top: 18vh;
  background: radial-gradient(circle, rgba(255, 138, 26, 0.32), transparent 70%);
  animation-delay: -2.4s;
}

.fissure-c {
  width: 50vw;
  height: 20vw;
  left: 26vw;
  bottom: 4vh;
  background: radial-gradient(circle, rgba(184, 132, 28, 0.28), transparent 70%);
  animation-delay: -4.2s;
}

.crack-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.38;
}

.crack {
  fill: none;
  stroke: #f0c14a;
  stroke-width: 1.4;
  stroke-linecap: round;
  filter: drop-shadow(0 0 8px rgba(240, 193, 74, 0.65));
  stroke-dasharray: 8 14 3 18 5 10;
  animation: crawl 18s linear infinite;
}

.crack.delay {
  animation-duration: 24s;
  animation-direction: reverse;
  opacity: 0.7;
}

.shard {
  position: absolute;
  background: linear-gradient(135deg, #ffe08a, #b8841c 55%, #5a3510);
  box-shadow: 0 0 18px rgba(240, 193, 74, 0.35);
  opacity: 0.55;
  animation: drift 16s ease-in-out infinite;
}

.s1 { width: 18px; height: 28px; clip-path: polygon(50% 0, 100% 38%, 72% 100%, 0 70%); top: 18%; left: 8%; animation-delay: -1s; }
.s2 { width: 14px; height: 22px; clip-path: polygon(20% 0, 100% 20%, 70% 100%, 0 80%); top: 62%; left: 14%; animation-delay: -5s; }
.s3 { width: 22px; height: 16px; clip-path: polygon(0 40%, 60% 0, 100% 50%, 40% 100%); top: 24%; right: 12%; animation-delay: -8s; }
.s4 { width: 12px; height: 20px; clip-path: polygon(50% 0, 100% 100%, 0 80%); top: 72%; right: 18%; animation-delay: -3s; }
.s5 { width: 16px; height: 16px; clip-path: polygon(0 0, 100% 30%, 70% 100%, 10% 80%); bottom: 16%; left: 46%; animation-delay: -11s; }
.s6 { width: 10px; height: 24px; clip-path: polygon(40% 0, 100% 20%, 60% 100%, 0 70%); top: 40%; left: 72%; animation-delay: -6s; }

.soot {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.62) 100%);
}

.halo {
  position: fixed;
  width: 220px;
  height: 220px;
  margin: -110px 0 0 -110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 193, 74, 0.18), transparent 68%);
  transform: translate(-200px, -200px);
  transition: transform 80ms linear;
  z-index: 1;
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 40;
  background: linear-gradient(90deg, var(--amber), var(--gold), #fff3c0);
  box-shadow: 0 0 16px var(--gold);
}

.ribbon {
  position: relative;
  z-index: 5;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 5, 4, 0.7);
  backdrop-filter: blur(10px);
}

.ribbon-track {
  display: flex;
  gap: 28px;
  width: max-content;
  padding: 10px 0;
  animation: marquee 32s linear infinite;
}

.ribbon span {
  font-family: "Bungee", sans-serif;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.ribbon i {
  width: 8px;
  height: 8px;
  align-self: center;
  background: var(--gold);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  opacity: 0.7;
  box-shadow: 0 0 10px var(--gold);
}

.mast {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 28px;
  background: rgba(7, 5, 4, 0.55);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
  transition: border-color 0.3s, background 0.3s;
}

.mast.stuck {
  border-color: var(--line);
  background: rgba(7, 5, 4, 0.86);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--gold-deep), 0 0 18px rgba(240, 193, 74, 0.35);
}

.brand strong {
  display: block;
  font-family: "Bungee", sans-serif;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--gold-hot);
}

.brand small {
  display: block;
  font-family: "Cinzel", serif;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--mist);
}

.mast-links {
  display: flex;
  gap: 26px;
}

.mast-links a {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 16px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist);
  position: relative;
}

.mast-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}

.mast-links a:hover {
  color: var(--gold-hot);
}

.mast-links a:hover::after {
  transform: scaleX(1);
}

.mast-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chip {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(180deg, #f6e2a2, #c58d22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 6px 16px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s, filter 0.2s;
}

.chip img {
  width: 18px;
  height: 18px;
}

.chip:hover {
  transform: translateY(-2px) rotate(-4deg);
  filter: brightness(1.08);
}

.burger {
  display: none;
  width: 40px;
  height: 40px;
  position: relative;
}

.burger span {
  position: absolute;
  left: 10px;
  width: 20px;
  height: 2px;
  background: var(--gold);
  transition: transform 0.25s, top 0.25s;
}

.burger span:first-child { top: 15px; }
.burger span:last-child { top: 23px; }

.burger.open span:first-child { top: 19px; transform: rotate(40deg); }
.burger.open span:last-child { top: 19px; transform: rotate(-40deg); }

main {
  position: relative;
  z-index: 2;
}

.monument {
  min-height: calc(100vh - 92px);
  display: grid;
  grid-template-columns: 72px 1fr 0.92fr;
  gap: 28px;
  align-items: center;
  padding: 40px 28px 80px;
  max-width: 1440px;
  margin: 0 auto;
}

.pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  font-family: "Cinzel", serif;
  font-size: 11px;
  letter-spacing: 0.28em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: var(--mist);
  opacity: 0.72;
}

.pillar b {
  writing-mode: horizontal-tb;
  transform: rotate(180deg);
  color: var(--gold);
  font-family: "Bungee", sans-serif;
  font-size: 18px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-family: "Cinzel", serif;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.kicker img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
}

.monument h1 {
  margin: 0;
  line-height: 0.88;
}

.monument h1 em,
.monument h1 span {
  display: block;
  font-family: "Bungee", sans-serif;
  font-style: normal;
  font-size: clamp(52px, 8vw, 104px);
  background: linear-gradient(180deg, #fff6cc 0%, #f0c14a 28%, #c78a18 62%, #7a4d0c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transform: skewX(-8deg);
  filter:
    drop-shadow(0 2px 0 #5a3510)
    drop-shadow(0 7px 0 #1a1008)
    drop-shadow(0 0 28px rgba(240, 193, 74, 0.38));
  animation: titlePulse 4.6s ease-in-out infinite;
}

.monument h1 span {
  animation-delay: 0.35s;
}

.sigil {
  margin: 18px 0 0;
  font-family: "Bungee", sans-serif;
  letter-spacing: 0.2em;
  color: var(--amber);
  text-shadow: 0 0 18px rgba(255, 138, 26, 0.45);
}

.lede {
  max-width: 520px;
  margin: 16px 0 28px;
  font-size: 20px;
  line-height: 1.5;
  color: var(--mist);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn img {
  width: 18px;
  height: 18px;
}

.btn.gold {
  color: var(--ink);
  background: linear-gradient(180deg, #ffe08a, #d49a20);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 10px 24px rgba(180, 110, 10, 0.28);
}

.btn.gold::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.45) 48%, transparent 72%);
  transform: translateX(-120%);
  animation: sheen 3.4s ease-in-out infinite;
}

.btn.stone {
  color: var(--gold-hot);
  border: 1px solid var(--gold-deep);
  background: rgba(16, 10, 6, 0.55);
}

.btn.stone img {
  filter: invert(78%) sepia(42%) saturate(700%) hue-rotate(2deg);
}

.btn.stone[data-link="pumpswap"] img,
.btn.gold[data-link="pumpswap"] img {
  filter: none;
}

.btn:hover {
  transform: translateY(-3px);
}

.ca-slab {
  margin-top: 22px;
  width: min(100%, 560px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  text-align: left;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(240, 193, 74, 0.08), transparent 30%),
    rgba(16, 10, 6, 0.7);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}

.ca-slab small {
  font-family: "Cinzel", serif;
  letter-spacing: 0.16em;
  color: var(--gold);
}

.ca-slab span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 16px;
  letter-spacing: 0.04em;
  color: var(--cream);
}

.ca-slab b {
  font-family: "Bungee", sans-serif;
  font-size: 11px;
  color: var(--ink);
  background: var(--gold);
  padding: 6px 8px;
}

.medallion {
  position: relative;
  height: min(74vh, 620px);
  display: grid;
  place-items: center;
}

.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(240, 193, 74, 0.35);
}

.ring-a {
  width: 86%;
  height: 86%;
  animation: spin 28s linear infinite;
}

.ring-b {
  width: 100%;
  height: 100%;
  border-style: solid;
  border-color: rgba(240, 193, 74, 0.14);
  animation: spin 40s linear infinite reverse;
}

.ring-c {
  width: 72%;
  height: 72%;
  border-style: dotted;
  animation: spin 18s linear infinite;
}

.burst {
  position: absolute;
  width: 78%;
  height: 78%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 179, 71, 0.28), transparent 62%);
  animation: pulse 3.2s ease-in-out infinite;
  filter: blur(8px);
}

.coin {
  position: relative;
  width: min(78%, 460px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow:
    0 0 0 3px #b8841c,
    0 0 0 8px rgba(16, 10, 6, 0.8),
    0 0 80px rgba(240, 193, 74, 0.35);
  animation: float 6.5s ease-in-out infinite;
}

.coin img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: rumble 7s ease-in-out infinite;
}

.orbit-words {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.orbit-words li {
  position: absolute;
  font-family: "Bungee", sans-serif;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--gold);
  text-shadow: 0 0 12px rgba(240, 193, 74, 0.7);
  animation: flicker 4s ease-in-out infinite;
}

.orbit-words li:nth-child(1) { top: 6%; left: 18%; }
.orbit-words li:nth-child(2) { top: 14%; right: 8%; animation-delay: -1s; }
.orbit-words li:nth-child(3) { bottom: 16%; left: 6%; animation-delay: -2s; }
.orbit-words li:nth-child(4) { bottom: 8%; right: 14%; animation-delay: -3s; }

.section-mark {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px 20px;
  margin-bottom: 28px;
}

.section-mark span {
  font-family: "Cinzel", serif;
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--gold);
}

.section-mark h2 {
  margin: 0;
  font-family: "Bungee", sans-serif;
  font-size: clamp(28px, 4vw, 48px);
  transform: skewX(-6deg);
  background: linear-gradient(180deg, #fff3c4, #f0c14a 50%, #b8841c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.relic,
.rites,
.ledger,
.congregation {
  padding: 90px 28px;
  max-width: var(--max);
  margin: 0 auto;
}

.relic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.pull,
.tablet,
.carvings,
.step,
.frame,
.banner-shrine {
  position: relative;
  background: linear-gradient(180deg, rgba(28, 18, 10, 0.82), rgba(10, 7, 4, 0.78));
  border: 1px solid var(--line);
}

.pull,
.tablet {
  padding: 32px;
}

.pull {
  grid-column: 1 / -1;
  font-family: "Cinzel", serif;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.35;
  color: var(--gold-hot);
  margin: 0;
}

.pull::before,
.tablet::after,
.step::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1px solid var(--gold);
  opacity: 0.55;
}

.pull::before { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.tablet::after { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }

.tablet p {
  margin: 0;
  font-size: 18px;
  line-height: 1.7;
  color: var(--mist);
}

.carvings {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}

.carvings li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
}

.carvings li:last-child {
  border-bottom: 0;
}

.carvings span {
  font-family: "Cinzel", serif;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--gold);
}

.carvings strong {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 18px;
  letter-spacing: 0.06em;
}

.lead {
  margin: -8px 0 28px;
  color: var(--mist);
  font-size: 18px;
}

.path {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  position: relative;
}

.path::before {
  content: "";
  position: absolute;
  top: 38px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 12px, transparent 12px 22px);
  opacity: 0.28;
}

.step {
  padding: 22px 20px 24px;
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
  transition: transform 0.35s, border-color 0.35s;
}

.step:nth-child(even) {
  transform: translateY(18px);
}

.step:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
}

.step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.step-head img {
  width: 36px;
  height: 36px;
  padding: 6px;
  border-radius: 8px;
  background: linear-gradient(180deg, #f6e2a2, #c58d22);
}

.step-head em {
  font-family: "Bungee", sans-serif;
  font-style: normal;
  color: var(--gold);
}

.step h3 {
  margin: 0 0 10px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 24px;
  letter-spacing: 0.04em;
}

.step p {
  margin: 0 0 14px;
  color: var(--mist);
  line-height: 1.55;
}

.ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Cinzel", serif;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--gold);
  border-bottom: 1px solid transparent;
}

.ghost img {
  width: 16px;
  height: 16px;
  filter: invert(78%) sepia(42%) saturate(700%) hue-rotate(2deg);
}

.ghost:hover {
  border-bottom-color: var(--gold);
}

.ghost.head {
  margin-left: auto;
}

.frame {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(240, 193, 74, 0.12), 0 20px 60px rgba(0, 0, 0, 0.45);
}

.frame::before,
.frame::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(240, 193, 74, 0.18);
  pointer-events: none;
  z-index: 2;
}

.frame::after {
  inset: 16px;
  border-style: dashed;
  animation: crawl 20s linear infinite;
}

.frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #0b0e13;
}

.frame-wait {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  align-content: center;
  text-align: center;
  gap: 16px;
  padding: 40px;
  background:
    radial-gradient(circle at 50% 40%, rgba(240, 193, 74, 0.12), transparent 50%),
    rgba(10, 7, 4, 0.92);
}

.frame-wait.show {
  display: grid;
}

.frame-wait img {
  width: 46px;
  height: 46px;
  margin: 0 auto;
  filter: invert(78%) sepia(42%) saturate(700%) hue-rotate(2deg);
}

.frame-wait p {
  margin: 0;
  color: var(--mist);
  font-size: 18px;
}

.banner-shrine {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  display: grid;
}

.banner-shrine img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
  object-position: center;
  animation: ken 22s ease-in-out infinite alternate;
}

.banner-shrine figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 36px 32px;
  background: linear-gradient(180deg, transparent, rgba(7, 5, 4, 0.92) 38%);
}

.banner-shrine h3 {
  margin: 8px 0 10px;
  font-family: "Bungee", sans-serif;
  font-size: clamp(28px, 4vw, 46px);
  transform: skewX(-6deg);
  color: var(--gold-hot);
  text-shadow: 0 6px 0 #1a1008, 0 0 24px rgba(240, 193, 74, 0.35);
}

.banner-shrine figcaption > p:not(.sigil) {
  max-width: 620px;
  margin: 0 0 20px;
  color: var(--mist);
  font-size: 18px;
}

.colophon {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 28px;
  border-top: 1px solid var(--line);
  background: rgba(7, 5, 4, 0.82);
}

.colophon p {
  margin: 0;
  color: var(--mist);
}

.colophon-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.colophon-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.colophon-links img {
  width: 16px;
  height: 16px;
  filter: invert(78%) sepia(42%) saturate(700%) hue-rotate(2deg);
}

.colophon-links a[href*="pump"] img {
  filter: none;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  padding: 10px 16px;
  background: var(--gold);
  color: var(--ink);
  font-family: "Bungee", sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  opacity: 0;
  pointer-events: none;
  z-index: 50;
  transition: opacity 0.25s, transform 0.25s;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.rise {
  opacity: 0;
  transform: translateY(28px);
  animation: rise 0.8s ease forwards;
}

.step:nth-child(1) { animation-delay: 0.05s; }
.step:nth-child(2) { animation-delay: 0.15s; }
.step:nth-child(3) { animation-delay: 0.25s; }
.step:nth-child(4) { animation-delay: 0.35s; }

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

@keyframes crawl {
  to { stroke-dashoffset: -240; }
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(18px, -26px) rotate(18deg); }
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@keyframes rumble {
  0%, 100% { transform: scale(1) rotate(0deg); }
  30% { transform: scale(1.03) rotate(-0.6deg); }
  62% { transform: scale(1.015) rotate(0.5deg); }
}

@keyframes flicker {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

@keyframes titlePulse {
  0%, 100% { filter: drop-shadow(0 2px 0 #5a3510) drop-shadow(0 7px 0 #1a1008) drop-shadow(0 0 22px rgba(240, 193, 74, 0.28)); }
  50% { filter: drop-shadow(0 2px 0 #5a3510) drop-shadow(0 7px 0 #1a1008) drop-shadow(0 0 36px rgba(255, 179, 71, 0.55)); }
}

@keyframes sheen {
  0%, 70% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

@keyframes ken {
  from { transform: scale(1) translate(0, 0); }
  to { transform: scale(1.08) translate(-1.5%, -1%); }
}

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1080px) {
  .monument {
    grid-template-columns: 1fr;
    padding-top: 24px;
  }

  .pillar {
    flex-direction: row;
    writing-mode: horizontal-tb;
    transform: none;
    justify-content: center;
    gap: 14px;
  }

  .pillar b {
    transform: none;
    writing-mode: horizontal-tb;
  }

  .medallion {
    height: auto;
    min-height: 420px;
    order: -1;
  }

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

  .path::before {
    display: none;
  }

  .step:nth-child(even) {
    transform: none;
  }
}

@media (max-width: 760px) {
  .mast-links {
    position: fixed;
    inset: 92px 16px auto;
    display: none;
    flex-direction: column;
    gap: 16px;
    padding: 18px;
    background: rgba(10, 7, 4, 0.96);
    border: 1px solid var(--line);
  }

  .mast-links.open {
    display: flex;
  }

  .burger {
    display: block;
  }

  .relic-grid,
  .path {
    grid-template-columns: 1fr;
  }

  .monument h1 em,
  .monument h1 span {
    font-size: 46px;
  }

  .banner-shrine figcaption {
    position: relative;
    background: #0b0704;
  }

  .frame {
    min-height: 460px;
  }

  .colophon {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
