/* Home page. */

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: min(100svh - var(--nav-h), 940px);
  min-height: max(640px, min(100svh - var(--nav-h), 940px));
  padding: 70px 0 190px;
  overflow: hidden;
  text-align: center;
}

.hero-sky {
  position: absolute; inset: 0; z-index: -4;
  background:
    radial-gradient(ellipse 70% 38% at 50% 100%, rgb(214 92 38 / 0.32), transparent 70%),
    radial-gradient(ellipse 26% 34% at 78% 74%, rgb(226 110 48 / 0.34), transparent 70%),
    radial-gradient(ellipse 40% 30% at 82% 90%, rgb(150 50 30 / 0.25), transparent 70%),
    linear-gradient(180deg, #050407 0%, #0b0809 38%, #170e0b 70%, #24140d 100%);
}

.stars {
  position: absolute; inset: 0 0 35% 0;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff8e0 60%, transparent),
    radial-gradient(1px 1px at 28% 8%, #fff 60%, transparent),
    radial-gradient(1.5px 1.5px at 41% 26%, #ffe9b8 60%, transparent),
    radial-gradient(1px 1px at 57% 12%, #fff 60%, transparent),
    radial-gradient(1px 1px at 66% 34%, #fff 60%, transparent),
    radial-gradient(1.5px 1.5px at 88% 30%, #fff4d0 60%, transparent),
    radial-gradient(1px 1px at 7% 42%, #fff 60%, transparent),
    radial-gradient(1px 1px at 34% 46%, #ffe9b8 60%, transparent),
    radial-gradient(1px 1px at 93% 9%, #fff 60%, transparent),
    radial-gradient(1px 1px at 50% 40%, #fff 60%, transparent),
    radial-gradient(1px 1px at 19% 60%, #fff 60%, transparent),
    radial-gradient(1px 1px at 74% 52%, #fff 60%, transparent);
  background-size: 640px 420px;
  opacity: 0.75;
  animation: twinkle 7s ease-in-out infinite alternate;
}

.stars::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 22% 30%, #fff 60%, transparent),
    radial-gradient(1px 1px at 61% 22%, #fff 60%, transparent),
    radial-gradient(1px 1px at 83% 58%, #fff 60%, transparent),
    radial-gradient(1px 1px at 9% 72%, #fff 60%, transparent),
    radial-gradient(1px 1px at 45% 64%, #fff 60%, transparent);
  background-size: 470px 330px;
  opacity: 0.5;
  animation: twinkle 5s ease-in-out infinite alternate-reverse;
}

@keyframes twinkle { from { opacity: 0.45; } to { opacity: 0.9; } }

.moon {
  position: absolute; top: 9%; right: 13%;
  width: 92px; height: 92px; border-radius: 50%;
  background:
    radial-gradient(circle at 34% 40%, rgb(180 160 120 / 0.35) 0 9%, transparent 10%),
    radial-gradient(circle at 62% 62%, rgb(180 160 120 / 0.3) 0 7%, transparent 8%),
    radial-gradient(circle at 60% 28%, rgb(180 160 120 / 0.25) 0 5%, transparent 6%),
    radial-gradient(circle at 40% 38%, #fbf4de, #e9dab4 60%, #c9b388);
  box-shadow: 0 0 50px 14px rgb(243 230 196 / 0.12), 0 0 160px 70px rgb(243 230 196 / 0.05);
  opacity: 0.88;
}

@media (max-width: 700px) {
  .hero { padding: 50px 0 130px; }
  .moon { top: 3%; right: 5%; width: 54px; height: 54px; }
}

.hero-land { position: absolute; left: 0; bottom: 0; width: 100%; height: 70%; z-index: -3; }

canvas.embers { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }

.hero-fog {
  position: absolute; left: 0; right: 0; bottom: 0; height: 30%; z-index: -1;
  background: linear-gradient(180deg, transparent, rgb(12 10 8 / 0.6) 60%, var(--bg-0));
}

.hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; }

.broken-crown {
  width: clamp(130px, 18vw, 190px);
  height: auto;
  margin-bottom: 8px;
  overflow: visible;
  filter: drop-shadow(0 10px 24px rgb(0 0 0 / 0.6));
  animation: float 7s ease-in-out infinite;
}

@keyframes float { 50% { transform: translateY(-6px); } }

.hero-kicker {
  margin: 0 0 6px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero-title {
  font-size: clamp(3.6rem, 1.5rem + 9vw, 8.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.12em;
  margin-right: -0.12em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #fff6d6 0%, #f1d27f 30%, #d4a93a 58%, #8f6416 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 0 rgb(60 36 8 / 0.9)) drop-shadow(0 12px 30px rgb(0 0 0 / 0.7));
}

.hero-tagline {
  margin: 14px 0 0;
  font-family: var(--accent);
  font-style: italic;
  font-size: clamp(1.35rem, 1rem + 1.3vw, 2rem);
  color: #f4e6c6;
  text-shadow: 0 2px 16px rgb(0 0 0 / 0.8);
}

.hero-lede {
  max-width: 600px;
  margin: 16px auto 0;
  font-size: clamp(1.05rem, 1rem + 0.25vw, 1.2rem);
  color: var(--text-2);
  text-shadow: 0 1px 10px rgb(0 0 0 / 0.9);
}

.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 30px; }

.address {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  padding: 6px 6px 6px 16px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  background: rgb(12 10 8 / 0.6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.address-label { font-family: var(--display); font-weight: 700; font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.address-value { background: none; border: 0; padding: 0; font-size: 0.95rem; color: var(--text); }
.address-value.pending { color: var(--muted); font-family: var(--body); font-style: italic; font-size: 0.95rem; }

.address-copy {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border: 1px solid var(--line-2); border-radius: 3px;
  background: var(--bg-3); color: var(--gold-hi);
  cursor: pointer;
}
.address-copy svg { width: 16px; height: 16px; }
.address-copy:hover:not(:disabled) { background: var(--bg-4); border-color: var(--gold); }
.address-copy:disabled { opacity: 0.35; cursor: not-allowed; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 26px;
  width: 26px; height: 42px;
  margin-left: -13px;
  border: 1.5px solid rgb(212 169 58 / 0.5);
  border-radius: 14px;
}
.scroll-cue span {
  position: absolute; left: 50%; top: 8px;
  width: 3px; height: 8px; margin-left: -1.5px;
  border-radius: 2px; background: var(--gold);
  animation: cue 2s ease-in-out infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ------------------------------------------------------------------ two paths */

.path-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 0; }

.path {
  position: relative;
  overflow: hidden;
  padding: 44px 40px 40px;
  border: 1px solid var(--line);
  background: var(--bg-2);
}

.path::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  opacity: 0.9;
  pointer-events: none;
}

.path > * { position: relative; z-index: 1; }

.path-hero { border-radius: 4px 0 0 4px; }
.path-hero::before { background: radial-gradient(circle at 0% 0%, rgb(156 196 216 / 0.14), transparent 55%), linear-gradient(160deg, #161a1d, #121010 60%); }

.path-lord { border-radius: 0 4px 4px 0; }
.path-lord::before { background: radial-gradient(circle at 100% 0%, rgb(212 169 58 / 0.18), transparent 55%), linear-gradient(200deg, #221a10, #121010 60%); }

.path-art { position: absolute; right: -20px; top: -10px; width: 210px; height: 210px; opacity: 0.08; color: #fff; z-index: 0; }
.path-lord .path-art { color: var(--gold-hi); opacity: 0.1; }
.path-art svg { width: 100%; height: 100%; }

.path h3 { margin: 18px 0 12px; font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.5rem); }
.path-hero h3 { color: #d7e7ef; }
.path-lord h3 { color: var(--gold-hi); }
.path > p { color: var(--text-2); font-size: 1.1rem; }

.ticks { margin: 22px 0 0; padding: 0; list-style: none; }
.ticks li { position: relative; padding: 10px 0 10px 28px; border-top: 1px solid var(--line); color: var(--text); }
.ticks li::before {
  content: '';
  position: absolute; left: 4px; top: 18px;
  width: 8px; height: 8px;
  transform: rotate(45deg);
  background: var(--gold);
}
.path-hero .ticks li::before { background: var(--frost); }

.path-bridge {
  display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 14px;
  padding: 0 18px;
  background: linear-gradient(180deg, transparent, rgb(212 169 58 / 0.06), transparent);
  border-block: 1px solid var(--line);
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  writing-mode: vertical-rl;
}
.path-bridge svg { width: 22px; height: 22px; color: var(--gold); writing-mode: horizontal-tb; }

.paths-note {
  max-width: 640px;
  margin: 40px auto 0;
  text-align: center;
  font-family: var(--accent);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--text-2);
}

@media (max-width: 900px) {
  .path-grid { grid-template-columns: 1fr; }
  .path-hero { border-radius: 4px 4px 0 0; }
  .path-lord { border-radius: 0 0 4px 4px; }
  .path { padding: 34px 24px 28px; }
  .path-bridge { writing-mode: horizontal-tb; flex-direction: row; flex-wrap: wrap; padding: 14px; border-block: 0; border-inline: 1px solid var(--line); background: linear-gradient(90deg, transparent, rgb(212 169 58 / 0.08), transparent); }
}

/* ------------------------------------------------------------------ systems showcase */

.systems { background: radial-gradient(ellipse 60% 50% at 50% 0%, rgb(212 169 58 / 0.05), transparent), var(--bg-0); }

.showcase { display: grid; grid-template-columns: 230px 1fr; gap: 40px; min-height: 480px; }

.showcase-tabs { display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--line); }

.showcase-tabs button {
  display: flex; align-items: baseline; gap: 14px;
  padding: 14px 18px;
  margin-left: -1px;
  border: 0; border-left: 2px solid transparent;
  background: none;
  color: var(--muted);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.showcase-tabs button b { font-size: 0.72rem; color: var(--gold-lo); letter-spacing: 0.1em; }
.showcase-tabs button:hover { color: var(--text); background: rgb(255 240 200 / 0.03); }
.showcase-tabs button[aria-selected='true'] { color: var(--gold-hi); border-left-color: var(--gold); background: linear-gradient(90deg, rgb(212 169 58 / 0.12), transparent); }
.showcase-tabs button[aria-selected='true'] b { color: var(--gold); }

.showcase-panel { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center; animation: panel-in 0.45s var(--ease); }
.showcase-panel[hidden] { display: none; }

@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.showcase-copy h3 { margin-bottom: 16px; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.showcase-copy p { color: var(--text-2); }

@media (max-width: 960px) {
  .showcase { grid-template-columns: 1fr; gap: 24px; }
  .showcase-tabs { flex-direction: row; overflow-x: auto; border-left: 0; border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .showcase-tabs::-webkit-scrollbar { display: none; }
  .showcase-tabs button { flex: none; margin: 0 0 -1px; border-left: 0; border-bottom: 2px solid transparent; padding: 12px 14px; font-size: 0.9rem; }
  .showcase-tabs button[aria-selected='true'] { border-bottom-color: var(--gold); background: none; }
  .showcase-panel { grid-template-columns: 1fr; gap: 28px; }
}

/* The mock in-game windows. */
.mock {
  position: relative;
  background: linear-gradient(180deg, #231d16, #17130f);
  border: 1px solid rgb(212 169 58 / 0.3);
  border-radius: 4px;
  box-shadow: 0 30px 60px rgb(0 0 0 / 0.5), 0 0 0 4px rgb(12 10 8 / 0.8), 0 0 0 5px rgb(212 169 58 / 0.12);
  font-size: 0.98rem;
}

.mock-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid rgb(212 169 58 / 0.22);
  background: linear-gradient(180deg, rgb(212 169 58 / 0.14), rgb(212 169 58 / 0.04));
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--gold-hi);
}
.mock-bar i { width: 10px; height: 10px; transform: rotate(45deg); border: 1.5px solid var(--gold); opacity: 0.6; }

.mock-body { padding: 18px 20px 20px; }

.kv { margin: 0; }
.kv div { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px dashed rgb(224 196 140 / 0.12); }
.kv div:last-child { border-bottom: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; font-weight: 500; }
.kv .gold { color: var(--gold-hi); }
.kv .ok { color: var(--green); }
.kv .no { color: #e08a7a; }

.land-mock { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; }

.chunkmap { display: grid; grid-template-columns: repeat(8, 16px); grid-auto-rows: 16px; gap: 2px; padding: 6px; background: #0e0b09; border: 1px solid var(--line); }
.chunkmap span { border-radius: 1px; background: #241d16; }
.chunkmap .a { background: #b8902f; box-shadow: inset 0 0 0 1px rgb(255 230 160 / 0.25); }
.chunkmap .r { background: #8d3a2e; box-shadow: inset 0 0 0 1px rgb(255 160 140 / 0.2); }
.chunkmap .me { position: relative; background: #f3d47c; }
.chunkmap .me::after { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: #1d150a; }

@media (max-width: 520px) {
  .land-mock { grid-template-columns: 1fr; }
  .chunkmap { justify-self: center; }
}

.slider-row { display: grid; grid-template-columns: 56px 1fr 86px; align-items: center; gap: 14px; margin-bottom: 14px; }
.slider-row span { color: var(--muted); }
.slider-row em { font-style: normal; font-weight: 700; color: var(--gold-hi); text-align: right; }
.slider { position: relative; height: 6px; border-radius: 3px; background: #0e0b09; box-shadow: inset 0 0 0 1px var(--line); }
.slider i { position: absolute; inset: 0 auto 0 0; border-radius: 3px; background: linear-gradient(90deg, var(--gold-lo), var(--gold)); }
.slider b { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; transform: rotate(45deg); background: var(--gold-hi); border: 2px solid #3a2a0c; }

.mock-foot { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 0.88rem; color: var(--muted); }

.why { margin: 0 0 16px; padding: 0; list-style: none; }
.why li { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px dashed rgb(224 196 140 / 0.1); }
.why span { color: var(--text-2); }
.why b { font-family: var(--mono); font-weight: 400; color: var(--muted); }
.why .plus { color: var(--green); }
.why .minus { color: #e08a7a; }

.scale { position: relative; display: grid; grid-template-columns: 20fr 25fr 30fr 25fr; gap: 2px; height: 10px; }
.scale i { border-radius: 2px; }
.scale .reb, .members .reb { background: #9c3328; }
.scale .res, .members .res { background: #c7772d; }
.scale .con { background: #5f9e84; }
.scale .dev { background: var(--gold); }
.scale b { position: absolute; top: -5px; width: 3px; height: 20px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 10px rgb(255 255 255 / 0.6); }
.scale-labels { display: grid; grid-template-columns: 20fr 25fr 30fr 25fr; gap: 2px; margin-top: 6px; font-size: 0.72rem; color: var(--muted); letter-spacing: 0.04em; }
.loyalty-total { margin: 14px 0 0; text-align: right; font-family: var(--display); font-weight: 700; color: var(--green); letter-spacing: 0.06em; }
.loyalty-total span { font-size: 1.8rem; margin-right: 6px; color: var(--text); }

.strength { margin: 18px 0; }
.strength-head { display: flex; justify-content: space-between; margin-bottom: 8px; color: var(--muted); }
.strength-head b { color: var(--ember); font-family: var(--display); }
.strength-bar { position: relative; height: 12px; border-radius: 2px; background: #0e0b09; box-shadow: inset 0 0 0 1px var(--line); }
.strength-bar i { position: absolute; inset: 0 auto 0 0; border-radius: 2px; background: repeating-linear-gradient(135deg, #c25a2a 0 8px, #a84b22 8px 16px); }
.strength-bar s { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -2px; background: var(--text); }
.strength p { margin: 8px 0 0; font-size: 0.86rem; color: var(--muted); }

.members { display: flex; flex-wrap: wrap; gap: 8px; }
.members span { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.88rem; }
.members i { width: 8px; height: 8px; border-radius: 50%; }

.seats { margin: 0 0 16px; padding: 0; list-style: none; }
.seats li { display: grid; grid-template-columns: 90px 1fr 30px 68px; align-items: center; gap: 12px; padding: 5px 0; }
.seats span { color: var(--text-2); }
.seats div { height: 6px; border-radius: 3px; background: #0e0b09; }
.seats div i { display: block; height: 100%; border-radius: 3px; background: var(--gold); }
.seats b { font-family: var(--mono); font-weight: 400; font-size: 0.86rem; text-align: right; }
.seats em { font-style: normal; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; text-align: right; }
.for { color: var(--green); }
.against { color: #e08a7a; }

.motion { padding-top: 14px; border-top: 1px solid var(--line); }
.motion-title { margin: 0 0 10px; font-weight: 700; }
.vote { display: flex; gap: 2px; height: 10px; }
.vote i { border-radius: 2px; }
.vote .for { background: var(--green); }
.vote .against { background: #b4392c; }
.vote-labels { display: flex; justify-content: space-between; margin-top: 6px; font-size: 0.86rem; color: var(--muted); }
.verdict { margin: 12px 0 0; padding: 8px 12px; border: 1px solid rgb(180 57 44 / 0.5); background: rgb(180 57 44 / 0.1); color: #f0a090; font-weight: 700; font-size: 0.92rem; }

@media (max-width: 520px) {
  .seats li { grid-template-columns: 80px 1fr 26px 58px; gap: 8px; }
}

.listing-title { margin: 0; font-family: var(--display); font-weight: 700; font-size: 1.35rem; color: var(--gold-hi); }
.listing-sub { margin: 2px 0 16px; color: var(--muted); font-size: 0.92rem; }

.bid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.bid div { padding: 10px 12px; border: 1px solid var(--line); background: #120f0c; }
.bid span { display: block; font-size: 0.76rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.bid b { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 1.1rem; }

.coin { image-rendering: pixelated; }

.fake-btn {
  display: block; margin-top: 16px; padding: 10px; text-align: center;
  border: 1px solid rgb(212 169 58 / 0.5);
  background: rgb(212 169 58 / 0.1);
  color: var(--gold-hi);
  font-family: var(--display); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase;
}

@media (max-width: 520px) {
  .bid { grid-template-columns: 1fr 1fr; }
  .bid div:last-child { grid-column: 1 / -1; }
  .mock-body { padding: 16px; }
}

/* ------------------------------------------------------------------ lore band */

.lore { position: relative; isolation: isolate; padding: 130px 0; overflow: hidden; }

.lore-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 50% 70% at 78% 50%, rgb(178 58 46 / 0.22), transparent 70%),
    linear-gradient(180deg, var(--bg-0), #170c0a 30%, #1a0d0b 70%, var(--bg-0));
}

.lore-bg::after {
  content: '';
  position: absolute; right: -6%; top: 50%;
  width: 640px; height: 640px;
  transform: translateY(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='none' stroke='%23d4a93a' stroke-width='.35' d='M7 37 L5 15 L14 25 L19 10 L24 20 L29 10 L34 25 L43 15 L41 37 Z M24 20 L22.5 26 L25 30 L23 37'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0.12;
}

.lore-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }

.lore-text h2 { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); margin-bottom: 22px; }
.lore-text p { color: var(--text-2); font-size: 1.12rem; }
.lore-text p:first-of-type::first-letter {
  float: left;
  margin: 6px 10px 0 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 3.6rem;
  line-height: 0.8;
  color: var(--gold);
}
.lore-text .btn { margin-top: 12px; }

.lore-quote {
  position: relative;
  margin: 0;
  padding: 40px 36px;
  border-left: 2px solid var(--gold);
  background: linear-gradient(90deg, rgb(212 169 58 / 0.08), transparent);
}
.lore-quote::before {
  content: '\201C';
  position: absolute; left: 22px; top: -30px;
  font-family: var(--accent);
  font-size: 7rem;
  line-height: 1;
  color: rgb(212 169 58 / 0.35);
}
.lore-quote p { margin: 0 0 16px; font-family: var(--accent); font-style: italic; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); line-height: 1.35; color: #f6ead0; }
.lore-quote cite { font-style: normal; font-size: 0.86rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

@media (max-width: 900px) {
  .lore { padding: 90px 0; }
  .lore-inner { grid-template-columns: 1fr; gap: 40px; }
}

/* ------------------------------------------------------------------ regions */

.region-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.region {
  position: relative;
  display: flex; flex-direction: column;
  padding: 24px 22px 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  color: var(--text);
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}

.region::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 0%, var(--c), transparent 60%);
  opacity: 0.08;
  transition: opacity 0.3s;
}

.region:hover { color: var(--text); transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 50%, transparent); box-shadow: 0 16px 40px rgb(0 0 0 / 0.4); }
.region:hover::before { opacity: 0.18; }

.region > * { position: relative; }
.region .glyph { width: 42px; height: 42px; margin-bottom: 14px; color: var(--c); }
.region h3 { margin-bottom: 8px; font-size: 1.15rem; }
.region p { flex: 1; margin-bottom: 16px; font-size: 0.98rem; color: var(--text-2); }

.danger { display: flex; gap: 3px; }
.danger i { flex: 1; height: 5px; border-radius: 1px; background: rgb(255 255 255 / 0.07); }
.danger i.on { background: var(--c); }
.danger i.on.lo { opacity: 0.35; }
.danger::after { content: attr(data-label); margin-left: 10px; flex: none; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--c); line-height: 5px; }

.lv { margin-top: 10px; font-size: 0.84rem; color: var(--muted); }

@media (max-width: 1040px) { .region-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .region-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ coin and cross-play */

.duo { background: linear-gradient(180deg, var(--bg-0), var(--bg-1) 15%, var(--bg-1) 85%, var(--bg-0)); }
.duo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.duo-card {
  position: relative;
  padding: 44px 40px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg-2);
}
.duo-card h2 { margin-bottom: 14px; font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); }
.duo-card > p { color: var(--text-2); }
.duo-card .small { font-size: 0.95rem; color: var(--muted); }
.duo-card .eyebrow::before { display: none; }

.coin-card { background: radial-gradient(circle at 100% 0%, rgb(212 169 58 / 0.12), transparent 50%), var(--bg-2); }

.coins { display: flex; gap: 12px; margin: 26px 0; }
.coins figure {
  flex: 1;
  margin: 0;
  padding: 18px 10px 14px;
  text-align: center;
  border: 1px solid var(--line);
  background: #120f0c;
}
.coins img { width: 56px; height: 56px; image-rendering: pixelated; filter: drop-shadow(0 6px 10px rgb(0 0 0 / 0.6)); transition: transform 0.3s var(--ease); }
.coins figure:hover img { transform: translateY(-4px) rotate(-8deg); }
.coins figcaption { margin-top: 8px; font-size: 0.86rem; color: var(--muted); }
.coins figcaption b { display: block; font-family: var(--display); color: var(--text); letter-spacing: 0.06em; }

.editions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 26px 0; }
.edition { padding: 18px; border: 1px solid var(--line); background: #120f0c; }
.edition h4 { margin-bottom: 6px; font-size: 1rem; color: var(--gold-hi); }
.edition p { margin: 0; font-size: 0.95rem; color: var(--text-2); }

@media (max-width: 900px) {
  .duo-grid { grid-template-columns: 1fr; }
  .duo-card { padding: 34px 24px; }
}
@media (max-width: 480px) {
  .editions { grid-template-columns: 1fr; }
  .coins { gap: 8px; }
}

/* ------------------------------------------------------------------ news */

.news-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 36px; }
.news-head .section-head { margin: 0; }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.news-card {
  display: flex; flex-direction: column;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold-lo);
  border-radius: 4px;
  background: var(--bg-2);
  color: var(--text);
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.news-card:hover { color: var(--text); transform: translateY(-4px); border-top-color: var(--gold); }
.news-card h3 { margin: 14px 0 10px; font-size: 1.2rem; line-height: 1.3; }
.news-card p { margin: 0; color: var(--text-2); font-size: 0.98rem; }
.news-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 0.86rem; color: var(--muted); }

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

/* ------------------------------------------------------------------ join */

.join { padding-top: 40px; }

.join-panel {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center;
  padding: 56px;
  background: radial-gradient(ellipse at 0% 0%, rgb(212 169 58 / 0.14), transparent 55%), radial-gradient(ellipse at 100% 100%, rgb(178 58 46 / 0.14), transparent 55%), var(--bg-2);
}
.join-copy h2 { margin-bottom: 16px; font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem); }
.join-copy p { color: var(--text-2); font-size: 1.1rem; }
.join-copy .eyebrow::before { display: none; }
.join-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.btn.is-pending { opacity: 0.7; cursor: default; filter: saturate(0.6); }
.btn.is-pending:hover { transform: none; }

.join-steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.join-steps li {
  position: relative;
  padding: 0 0 22px 60px;
  color: var(--text-2);
  counter-increment: step;
}
.join-steps li:last-child { padding-bottom: 0; }
.join-steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -2px;
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
  font-family: var(--display); font-weight: 800; color: var(--gold-hi);
}
.join-steps li::after {
  content: '';
  position: absolute; left: 20px; top: 46px; bottom: 6px;
  width: 1px; background: var(--line-2);
}
.join-steps li:last-child::after { display: none; }
.join-steps b { display: block; color: var(--text); font-size: 1.08rem; }

/* The counter digit sits upright inside the turned diamond. */
.join-steps li::before { content: ''; }
.join-steps li > b::before {
  content: counter(step);
  position: absolute; left: 0; top: -2px;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; color: var(--gold-hi);
}

@media (max-width: 900px) {
  .join-panel { grid-template-columns: 1fr; gap: 36px; padding: 38px 24px; }
}

/* =====================================================================
   Motion on the home page. js/fx.js adds .alive to the hero, splits the
   title into letters and moves the landscape layers; the rest is CSS.
   ===================================================================== */

/* ------------------------------------------------------------------ the hero arrives */

.js .hero-inner > :not(.hero-rays):not(.broken-crown):not(.hero-title) { animation: rise-in 1s var(--ease) both; }
.js .hero-kicker { animation-delay: 0.2s !important; }
.js .hero-tagline { animation-delay: 1.05s !important; }
.js .hero-lede { animation-delay: 1.2s !important; }
.js .hero-actions { animation-delay: 1.35s !important; }
.js .address { animation-delay: 1.5s !important; }
.js .hero-title:not([data-split]) { animation: rise-in 1s var(--ease) 0.3s both; }

.js .broken-crown { animation: crown-in 1.5s var(--ease) both, float 7s ease-in-out 1.5s infinite; }
@keyframes crown-in {
  from { opacity: 0; transform: translateY(-34px) scale(0.86); filter: blur(8px) brightness(2.4) drop-shadow(0 10px 24px rgb(0 0 0 / 0.6)); }
  to { opacity: 1; transform: none; filter: drop-shadow(0 10px 24px rgb(0 0 0 / 0.6)); }
}

/* SOLARIA: each letter is gilded on its own, and a glint runs along them now and then. */
.hero-title[data-split] { background: none; }
.hero-title .ch {
  display: inline-block;
  background-image:
    linear-gradient(100deg, transparent 42%, rgb(255 252 238 / 0.95) 50%, transparent 58%),
    linear-gradient(180deg, #fff6d6 0%, #f1d27f 30%, #d4a93a 58%, #8f6416 100%);
  background-size: 300% 100%, 100% 100%;
  background-position: 110% 0, 0 0;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: ch-in 1.25s var(--ease) both, ch-glint 9s ease-in-out infinite;
  animation-delay: calc(0.35s + var(--i) * 0.075s), calc(2.6s + var(--i) * 0.07s);
}
@keyframes ch-in {
  from { opacity: 0; transform: translateY(0.35em) scale(0.9); filter: blur(12px) brightness(2.4); }
  60% { filter: blur(0) brightness(1.4); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes ch-glint {
  0% { background-position: 110% 0, 0 0; }
  11%, 100% { background-position: -10% 0, 0 0; }
}

/* Sun rays turn slowly behind the crown. */
.hero-rays {
  position: absolute;
  left: 50%; top: 70px;
  width: 1200px; height: 1200px;
  margin: -600px 0 0 -600px;
  z-index: -1;
  pointer-events: none;
  background: repeating-conic-gradient(from 0deg, transparent 0deg, rgb(255 205 120 / 0.06) 1.5deg, transparent 3.5deg 12deg);
  -webkit-mask: radial-gradient(circle, #000 0, rgb(0 0 0 / 0.5) 18%, transparent 50%);
  mask: radial-gradient(circle, #000 0, rgb(0 0 0 / 0.5) 18%, transparent 50%);
  animation: rays-in 3s ease 0.3s both, spin 180s linear infinite;
}
@keyframes rays-in { from { opacity: 0; } }

/* The broken crown breathes: its halves part and close, the crack smoulders, motes rise. */
.crown-half { transform-box: view-box; transform-origin: 100px 124px; transition: translate 0.7s var(--ease); }
.crown-l { animation: half-l 6.5s ease-in-out infinite; }
.crown-r { animation: half-r 6.5s ease-in-out infinite; }
@keyframes half-l { 50% { transform: translate(-2.5px, 1px) rotate(-1.6deg); } }
@keyframes half-r { 50% { transform: translate(2.5px, 1.5px) rotate(1.4deg); } }
.broken-crown:hover .crown-l { translate: -7px 2px; }
.broken-crown:hover .crown-r { translate: 7px 3px; }
.crack { animation: crack 3.2s ease-in-out infinite; }
@keyframes crack { 50% { opacity: 0.5; stroke-width: 4; } }
.crown-aura { transform-box: fill-box; transform-origin: center; animation: aura 6.5s ease-in-out infinite; }
@keyframes aura { 50% { transform: scale(1.1); opacity: 0.7; } }
.motes circle { opacity: 0; animation: mote 4s ease-out infinite; }
.motes circle:nth-child(2) { animation-delay: 0.8s; animation-duration: 4.6s; }
.motes circle:nth-child(3) { animation-delay: 1.7s; animation-duration: 3.6s; }
.motes circle:nth-child(4) { animation-delay: 2.5s; animation-duration: 5s; }
.motes circle:nth-child(5) { animation-delay: 3.2s; animation-duration: 4.2s; }
@keyframes mote {
  0% { opacity: 0; transform: translate(0, 0); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translate(5px, -44px); }
}

/* Scrolling away, the words sink and fade behind you. */
.hero.alive .hero-inner { translate: 0 calc(var(--hs, 0) * 150px); opacity: calc(1 - var(--hs, 0) * 1.5); }
.hero.alive .scroll-cue { opacity: calc(1 - var(--hs, 0) * 5); }
.hero-sky, .hero-land .ly { will-change: transform; }

/* ------------------------------------------------------------------ the night sky */

.moon-cloud {
  position: absolute;
  height: 30px; width: 280px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgb(6 5 8 / 0.94), rgb(6 5 8 / 0.6) 45%, transparent 70%);
  animation: cloud 90s linear infinite;
  pointer-events: none;
}
.moon-cloud.c1 { right: 4%; top: 12%; }
.moon-cloud.c2 { right: 10%; top: 17%; width: 360px; height: 24px; opacity: 0.8; animation-duration: 120s; animation-delay: -55s; }
@keyframes cloud { from { transform: translateX(40vw); } to { transform: translateX(-75vw); } }

.shoot {
  position: absolute;
  height: 1.5px; width: 150px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgb(255 244 214 / 0), rgb(255 244 214 / 0.95));
  opacity: 0;
  animation: shoot 14s ease-in infinite;
  pointer-events: none;
}
.shoot.s1 { top: 8%; left: 18%; animation-delay: 3s; }
.shoot.s2 { top: 20%; left: 52%; width: 110px; animation-duration: 21s; animation-delay: 10s; }
@keyframes shoot {
  0% { opacity: 0; transform: rotate(17deg) translateX(0) scaleX(0.3); }
  1% { opacity: 1; }
  5% { opacity: 0; transform: rotate(17deg) translateX(300px) scaleX(1); }
  100% { opacity: 0; transform: rotate(17deg) translateX(300px) scaleX(1); }
}

/* ------------------------------------------------------------------ the castle at night */

.win { animation: candle 3.4s ease-in-out infinite alternate; }
.win:nth-child(2) { animation-duration: 2.6s; animation-delay: -1.2s; }
.win:nth-child(3) { animation-duration: 4.1s; animation-delay: -0.6s; }
.win:nth-child(4) { animation: lamp-out 19s linear infinite; }
.win:nth-child(5) { animation-duration: 3s; animation-delay: -2s; }
.win:nth-child(6) { animation-duration: 3.8s; animation-delay: -2.7s; }
.win.gate { animation: gate 5s ease-in-out infinite; }
@keyframes candle {
  0% { opacity: 1; } 18% { opacity: 0.78; } 22% { opacity: 0.95; } 47% { opacity: 0.68; }
  52% { opacity: 0.9; } 76% { opacity: 0.8; } 100% { opacity: 1; }
}
/* Someone up in the west tower blows out their candle, and lights it again. */
@keyframes lamp-out {
  0%, 58% { opacity: 1; } 60% { opacity: 0.5; } 61%, 79% { opacity: 0.06; } 81% { opacity: 0.7; } 83%, 100% { opacity: 1; }
}
@keyframes gate { 0%, 100% { opacity: 0.55; } 40% { opacity: 0.38; } 70% { opacity: 0.62; } }
.fire { animation: candle 1.7s ease-in-out infinite alternate; }
.fire:nth-child(2) { animation-duration: 2.3s; animation-delay: -0.9s; }
.fire:nth-child(3) { animation-duration: 1.4s; animation-delay: -0.4s; }

.mist-band { animation: mist-drift 48s ease-in-out infinite alternate; }
.mist-b { animation-duration: 36s; animation-direction: alternate-reverse; }
@keyframes mist-drift { from { transform: translateX(-100px); } to { transform: translateX(100px); } }

/* ------------------------------------------------------------------ two paths */

.path-art { opacity: 0.12; }
.path-lord .path-art { opacity: 0.15; }
.path-art svg { animation: art-float 10s ease-in-out infinite; }
@keyframes art-float { 50% { transform: translateY(-8px) rotate(-2deg); } }
.js .path .path-art path[pathLength] { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.8s var(--ease) 0.4s; }
.js .path.in .path-art path[pathLength] { stroke-dashoffset: 0; }

.path-bridge span { animation: trade 6s ease-in-out infinite; }
.path-bridge span:nth-child(2) { animation-delay: 0.75s; }
.path-bridge span:nth-child(4) { animation-delay: 1.5s; }
.path-bridge span:nth-child(5) { animation-delay: 2.25s; }
.path-bridge svg { animation: spin 24s linear infinite; }
@keyframes trade {
  0%, 30%, 100% { color: var(--muted); text-shadow: none; }
  12% { color: var(--gold-hi); text-shadow: 0 0 12px rgb(212 169 58 / 0.7); }
}

/* ------------------------------------------------------------------ the systems showcase */

.showcase-tabs button { position: relative; }
.showcase-tabs button::after {
  content: '';
  position: absolute;
  left: 18px; right: 18px; bottom: 5px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-lo), var(--gold-hi));
  transform: scaleX(var(--prog, 0));
  transform-origin: left;
  opacity: 0.85;
}
@media (max-width: 960px) { .showcase-tabs button::after { left: 14px; right: 14px; bottom: 2px; } }

.chunkmap .me::before {
  content: '';
  position: absolute;
  inset: -3px;
  border: 1px solid #f3d47c;
  border-radius: 2px;
  animation: ping 2.2s ease-out infinite;
}
@keyframes ping { from { transform: scale(0.7); opacity: 1; } to { transform: scale(2.4); opacity: 0; } }

.slider i, .strength-bar i, .seats div i, .vote i { transform-origin: left; }
.vote .against { transform-origin: right; }
.strength-bar i { animation: barber 1.1s linear infinite; }
@keyframes barber { to { background-position: 22.63px 0; } }
.fake-btn { animation: bid-glow 2.6s ease-in-out infinite; }
@keyframes bid-glow { 50% { box-shadow: 0 0 20px rgb(212 169 58 / 0.3); background: rgb(212 169 58 / 0.17); } }
.bid b { font-variant-numeric: tabular-nums; }

.play .showcase-copy > * { animation: fade-up 0.6s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms); }
.play .mock { animation: mock-in 0.75s var(--ease) both; }
@keyframes mock-in { from { opacity: 0; transform: perspective(1000px) rotateY(-9deg) translateX(24px); } }

.play .chunkmap span { animation: tile-in 0.5s var(--ease) both; animation-delay: calc(0.15s + var(--i, 0) * 80ms); }
@keyframes tile-in { from { opacity: 0; transform: scale(0.2) rotate(-25deg); } }
.play .kv div { animation: row-in 0.5s var(--ease) both; animation-delay: calc(0.3s + var(--i, 0) * 70ms); }
@keyframes row-in { from { opacity: 0; transform: translateX(16px); } }

.play .slider i { animation: grow-x 1s var(--ease) 0.25s both; }
.play .slider b { animation: knob-in 1s var(--ease) 0.25s both; }
.play .slider-row em { animation: fade-in 0.4s 0.9s both; }
@keyframes grow-x { from { transform: scaleX(0); } }
@keyframes knob-in { from { left: 0; } }

.play .why li { animation: row-in 0.45s var(--ease) both; animation-delay: calc(0.1s + var(--i, 0) * 80ms); }
.play .scale i { animation: fade-in 0.6s 0.3s both; }
.play .scale b { animation: knob-in 1.5s var(--ease) 0.5s both; }
.play .loyalty-total { animation: fade-up 0.6s var(--ease) 0.9s both; }

.play .strength-bar i { animation: grow-x 1.3s var(--ease) 0.25s both, barber 1.1s linear infinite; }
.play .members span { animation: pop-in 0.5s var(--ease) both; animation-delay: calc(1s + var(--i, 0) * 120ms); }
@keyframes pop-in { from { opacity: 0; transform: scale(0.7); } }

.play .seats div i { animation: grow-x 1s var(--ease) both; animation-delay: calc(0.15s + var(--i, 0) * 90ms); }
.play .seats em { animation: fade-in 0.4s both; animation-delay: calc(0.8s + var(--i, 0) * 90ms); }
.play .vote i { animation: grow-x 1s var(--ease) 1.2s both; }
.play .verdict { animation: stamp 0.55s cubic-bezier(0.3, 1.6, 0.5, 1) 2s both; }
@keyframes stamp { from { opacity: 0; transform: scale(1.9) rotate(-7deg); } to { opacity: 1; transform: none; } }

.play .listing-title, .play .listing-sub { animation: fade-up 0.5s var(--ease) 0.15s both; }
.play .bid div { animation: pop-in 0.5s var(--ease) both; animation-delay: calc(0.3s + var(--i, 0) * 110ms); }

/* ------------------------------------------------------------------ the lore band */

.lore-bg::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 42% 62% at 78% 50%, rgb(255 110 60 / 0.12), transparent 70%);
  animation: hearth 4.2s ease-in-out infinite;
}
@keyframes hearth { 0%, 100% { opacity: 0.6; } 30% { opacity: 1; } 55% { opacity: 0.72; } 72% { opacity: 0.95; } }
.lore-bg::after { transform: translateY(calc(-50% + var(--lp, 0) * 80px)) rotate(calc(var(--lp, 0) * -8deg)); }
.lore-text p:first-of-type::first-letter { text-shadow: 0 0 18px rgb(212 169 58 / 0.5); }

.ash {
  position: absolute;
  top: -12px;
  width: var(--sz, 2px); height: var(--sz, 2px);
  border-radius: 50%;
  background: rgb(196 172 148 / 0.45);
  animation: ash-fall var(--t, 14s) linear var(--dl, 0s) infinite;
  pointer-events: none;
}
.ash.hot { background: #ffb062; box-shadow: 0 0 6px 1px rgb(255 140 60 / 0.6); }
@keyframes ash-fall {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: 1; }
  50% { transform: translate(var(--sx, 30px), 480px); }
  90% { opacity: 0.8; }
  100% { transform: translate(0, 980px); opacity: 0; }
}

/* ------------------------------------------------------------------ regions */

.js .region.reveal .danger i.on { transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease); }
.js .region.reveal.in .danger i.on { transform: none; }
.js .region.reveal.in .danger i:nth-child(1) { transition-delay: calc(var(--d, 0s) + 0.5s); }
.js .region.reveal.in .danger i:nth-child(2) { transition-delay: calc(var(--d, 0s) + 0.6s); }
.js .region.reveal.in .danger i:nth-child(3) { transition-delay: calc(var(--d, 0s) + 0.7s); }
.js .region.reveal.in .danger i:nth-child(4) { transition-delay: calc(var(--d, 0s) + 0.8s); }
.js .region.reveal.in .danger i:nth-child(5) { transition-delay: calc(var(--d, 0s) + 0.9s); }
.region .glyph { transition: transform 0.45s var(--ease), filter 0.45s; }
.region:hover .glyph { transform: scale(1.1); filter: drop-shadow(0 0 8px var(--c)); }
.region:hover .glyph path[pathLength], .region:hover .glyph circle[pathLength] { animation: draw 1.2s var(--ease) both; }
@keyframes draw { from { stroke-dasharray: 1; stroke-dashoffset: 1; } to { stroke-dasharray: 1; stroke-dashoffset: 0; } }

/* ------------------------------------------------------------------ coins */

.coins figure { perspective: 500px; }
.coins img { animation: coin-bob 3.4s ease-in-out infinite; }
.coins figure:nth-child(2) img { animation-delay: -1.1s; }
.coins figure:nth-child(3) img { animation-delay: -2.2s; }
@keyframes coin-bob { 50% { transform: translateY(-5px); } }
.coins figure:hover img { transform: translateY(-6px); animation: coin-spin 1.1s var(--ease); }
@keyframes coin-spin { from { transform: translateY(-6px) rotateY(0); } to { transform: translateY(-6px) rotateY(720deg); } }

/* ------------------------------------------------------------------ join */

@property --trace { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.join-panel .trace {
  position: absolute;
  inset: -1px;
  z-index: 0;
  padding: 1px;
  border-radius: inherit;
  background: conic-gradient(from var(--trace), transparent 0 62%, rgb(243 212 124 / 0.9) 74%, rgb(232 131 60 / 0.7) 80%, transparent 88%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: trace 7s linear infinite;
  pointer-events: none;
}
@keyframes trace { to { --trace: 360deg; } }

.js .join-panel .join-steps li::after { transform: scaleY(0); transform-origin: top; transition: transform 0.7s var(--ease); }
.js .join-panel.in .join-steps li::after { transform: none; }
.js .join-panel.in .join-steps li:nth-child(1)::after { transition-delay: 0.9s; }
.js .join-panel.in .join-steps li:nth-child(2)::after { transition-delay: 1.3s; }
.join-panel.in .join-steps li::before { animation: diamond-lit 0.9s var(--ease) both; }
.join-panel.in .join-steps li:nth-child(1)::before { animation-delay: 0.5s; }
.join-panel.in .join-steps li:nth-child(2)::before { animation-delay: 0.95s; }
.join-panel.in .join-steps li:nth-child(3)::before { animation-delay: 1.4s; }
@keyframes diamond-lit {
  0% { background: transparent; box-shadow: none; }
  50% { background: rgb(212 169 58 / 0.3); box-shadow: 0 0 24px rgb(212 169 58 / 0.7); }
  100% { background: rgb(212 169 58 / 0.08); box-shadow: 0 0 10px rgb(212 169 58 / 0.25); }
}
