@font-face {
  font-family: "Sixtyfour";
  src: url("./fonts/Sixtyfour.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Handjet";
  src: url("./fonts/Handjet.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "DMMono";
  src: url("./fonts/DMMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "DMMono";
  src: url("./fonts/DMMono-Medium.ttf") format("truetype");
  font-weight: 600 800;
  font-display: swap;
}

:root {
  --ebony: #0a0b08;
  --ebony-soft: #12150f;
  --ebony-raised: #191d15;
  --ivory: #f1ead9;
  --ivory-deep: #ded4bd;
  --ivory-dim: #b9b09d;
  --gold: #c7a15b;
  --gold-light: #e7ca8d;
  --gold-deep: #7b5b2a;
  --felt: #14372e;
  --felt-deep: #0b261f;
  --felt-light: #225044;
  --wine: #6e2d2a;
  --ink-muted: #667064;
  --line-dark: rgba(231, 202, 141, 0.22);
  --line-light: rgba(20, 55, 46, 0.22);
  --display: "Sixtyfour", "Courier New", monospace;
  --body: "Handjet", "Trebuchet MS", sans-serif;
  --mono: "DMMono", "Courier New", monospace;
  --topline: 62px;
  --dock: 78px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ebony);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ivory);
  background:
    linear-gradient(90deg, rgba(199, 161, 91, 0.03) 1px, transparent 1px),
    linear-gradient(rgba(199, 161, 91, 0.03) 1px, transparent 1px),
    var(--ebony);
  background-size: 24px 24px;
  font-family: var(--body);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(50% 32% at 50% 0%, rgba(34, 80, 68, 0.26), transparent 75%),
    repeating-linear-gradient(0deg, transparent 0 7px, rgba(0, 0, 0, 0.035) 7px 8px);
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

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

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

[hidden] {
  display: none !important;
}

::selection {
  color: var(--ebony);
  background: var(--gold-light);
}

:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 4px;
}

.ec-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.ec-skip {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 16px;
  color: var(--ebony);
  background: var(--gold-light);
  transform: translateY(-150%);
  transition: transform 0.15s;
}

.ec-skip:focus {
  transform: translateY(0);
}

.ec-wrap {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.ec-overline,
.ec-field-label {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ec-overline {
  color: var(--gold);
}

.ec-overline::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 9px;
  background: currentColor;
  box-shadow: 7px 0 0 currentColor, 0 7px 0 currentColor;
  transform: translateY(-3px);
}

.ec-button {
  position: relative;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border: 2px solid transparent;
  border-radius: 0;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  clip-path: polygon(0 7px, 7px 7px, 7px 0, calc(100% - 7px) 0, calc(100% - 7px) 7px, 100% 7px, 100% calc(100% - 7px), calc(100% - 7px) calc(100% - 7px), calc(100% - 7px) 100%, 7px 100%, 7px calc(100% - 7px), 0 calc(100% - 7px));
  transition: transform 0.15s, filter 0.15s, background-color 0.15s, color 0.15s;
}

.ec-button::after {
  content: "";
  position: absolute;
  inset: 5px;
  pointer-events: none;
  border: 1px solid currentColor;
  opacity: 0.2;
}

.ec-button:hover:not(:disabled) {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.ec-button:active:not(:disabled) {
  transform: translateY(1px);
}

.ec-button:disabled {
  opacity: 0.42;
  filter: grayscale(0.5);
}

.ec-button--gold {
  color: var(--ebony);
  background: var(--gold-light);
  border-color: var(--gold-light);
  box-shadow: 5px 5px 0 var(--gold-deep);
}

.ec-button--ghost {
  color: var(--ivory);
  background: rgba(10, 11, 8, 0.25);
  border-color: var(--gold);
}

.ec-button--tiny {
  min-height: 36px;
  padding: 8px 14px;
  font-size: 10px;
}

.ec-button--connect {
  min-height: 38px;
  padding: 8px 16px;
  color: var(--ebony);
  background: var(--gold-light);
  box-shadow: 3px 3px 0 var(--gold-deep);
}

.ec-topline {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--topline);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--line-dark);
  background: rgba(10, 11, 8, 0.92);
  backdrop-filter: blur(14px);
}

.ec-topline::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 4px;
  background: repeating-conic-gradient(var(--gold) 0 25%, transparent 0 50%) 0 0 / 8px 8px;
  opacity: 0.46;
}

.ec-brand {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 11px;
  color: var(--ivory);
  font-family: var(--display);
  font-size: 18px;
  line-height: 1;
  letter-spacing: -0.025em;
}

.ec-brand-word span {
  color: var(--gold-light);
}

.ec-brand-sigil {
  position: relative;
  display: block;
  width: 28px;
  height: 26px;
  flex: none;
}

.ec-brand-sigil i {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--ivory);
  box-shadow: inset 0 0 0 1px rgba(10, 11, 8, 0.2);
}

.ec-brand-sigil i:nth-child(1) {
  top: 2px;
  left: 2px;
}

.ec-brand-sigil i:nth-child(2) {
  top: 2px;
  left: 12px;
  background: var(--gold);
}

.ec-brand-sigil i:nth-child(3) {
  top: 2px;
  left: 22px;
}

.ec-brand-sigil i:nth-child(4) {
  top: 12px;
  left: 2px;
  background: var(--gold);
}

.ec-brand-sigil i:nth-child(5) {
  top: 12px;
  left: 12px;
  background: var(--ivory);
}

.ec-topline-mark {
  margin: 0;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  white-space: nowrap;
}

.ec-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

select,
input,
textarea {
  border: 1px solid var(--line-dark);
  border-radius: 0;
  outline: none;
  color: var(--ivory);
  background: var(--ebony-soft);
}

select:focus,
input:focus,
textarea:focus {
  border-color: var(--gold-light);
  box-shadow: 0 0 0 2px rgba(231, 202, 141, 0.18);
}

.ec-tools select {
  width: 92px;
  height: 38px;
  padding: 5px 7px;
  color: var(--gold-light);
  font-family: var(--mono);
  font-size: 10px;
}

.ec-opening {
  position: relative;
  min-height: calc(100svh - var(--topline));
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(390px, 0.94fr);
  grid-template-rows: auto 1fr auto;
  gap: 10px 48px;
  align-items: center;
  padding: clamp(56px, 8vh, 94px) max(24px, calc((100vw - 1180px) / 2)) 50px;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 2px solid var(--gold-deep);
  background:
    radial-gradient(70% 55% at 72% 45%, rgba(199, 161, 91, 0.16), transparent 70%),
    linear-gradient(132deg, var(--ebony) 0%, var(--felt-deep) 56%, #0b0e09 100%);
  scroll-margin-top: var(--topline);
}

.ec-opening::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 38%;
  background:
    linear-gradient(90deg, transparent 0 5%, rgba(199, 161, 91, 0.08) 5% 5.5%, transparent 5.5%),
    linear-gradient(0deg, rgba(20, 55, 46, 0.68), transparent);
}

.ec-opening::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: repeating-linear-gradient(90deg, transparent 0 95px, rgba(231, 202, 141, 0.025) 95px 96px);
  mask-image: linear-gradient(to bottom, #000, transparent 84%);
}

.ec-opening-world {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.ec-opening-world > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  image-rendering: pixelated;
  filter: grayscale(0.3) sepia(0.18) contrast(1.18) brightness(0.42);
  opacity: 0.62;
}

.ec-opening-board {
  position: absolute;
  right: -7%;
  bottom: -28%;
  width: 76%;
  height: 66%;
  background:
    repeating-conic-gradient(rgba(241, 234, 217, 0.12) 0 25%, rgba(10, 11, 8, 0.18) 0 50%) 0 0 / 64px 64px;
  border: 2px solid rgba(231, 202, 141, 0.18);
  transform: perspective(460px) rotateX(54deg) rotateZ(-8deg);
  transform-origin: center top;
  opacity: 0.64;
}

.ec-opening-haze {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 11, 8, 0.98) 0%, rgba(10, 11, 8, 0.68) 38%, rgba(10, 11, 8, 0.08) 66%, rgba(10, 11, 8, 0.65) 100%),
    linear-gradient(0deg, var(--ebony) 0%, transparent 32%);
}

.ec-opening-crown {
  position: absolute;
  top: 9%;
  right: 12%;
  width: 54px;
  height: 38px;
  opacity: 0.18;
}

.ec-opening-crown i {
  position: absolute;
  bottom: 0;
  width: 14px;
  height: 18px;
  background: var(--gold-light);
}

.ec-opening-crown i:nth-child(1) {
  left: 0;
  height: 26px;
}

.ec-opening-crown i:nth-child(2) {
  left: 20px;
  height: 34px;
}

.ec-opening-crown i:nth-child(3) {
  left: 40px;
  height: 26px;
}

.ec-opening-copy {
  position: relative;
  z-index: 2;
  align-self: end;
  max-width: 760px;
  animation: ec-unseal 0.7s steps(8, end) both;
}

.ec-opening-copy h1 {
  margin: 15px 0 20px;
  font-family: var(--display);
  font-size: clamp(43px, 5.4vw, 78px);
  font-weight: 400;
  line-height: 0.99;
  letter-spacing: -0.045em;
  text-wrap: balance;
  text-shadow: 5px 5px 0 rgba(123, 91, 42, 0.28);
}

.ec-opening-copy h1 span {
  display: block;
}

.ec-opening-copy h1 span:last-child {
  color: var(--gold-light);
}

.ec-opening-lede {
  max-width: 640px;
  margin: 0;
  color: #c7c2b4;
  font-size: clamp(19px, 1.8vw, 24px);
  line-height: 1.42;
}

.ec-relic-stage {
  position: relative;
  z-index: 2;
  grid-row: 1 / 3;
  grid-column: 2;
  align-self: center;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: ec-unseal 0.9s 0.16s steps(8, end) both;
}

.ec-relic-rays {
  position: absolute;
  top: 4%;
  left: 50%;
  width: 420px;
  height: 420px;
  background:
    repeating-conic-gradient(from 0deg, rgba(231, 202, 141, 0.09) 0 5deg, transparent 5deg 15deg);
  border-radius: 50%;
  transform: translateX(-50%);
  mask-image: radial-gradient(circle, #000 0 18%, rgba(0, 0, 0, 0.5) 45%, transparent 72%);
  animation: ec-turn 30s linear infinite;
}

.ec-relic {
  position: relative;
  z-index: 2;
  width: min(86%, 390px);
  margin: 0;
  padding: 18px;
  border: 2px solid rgba(199, 161, 91, 0.46);
  background:
    linear-gradient(135deg, rgba(231, 202, 141, 0.1), transparent 55%),
    rgba(10, 11, 8, 0.48);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.58), 0 0 0 8px rgba(10, 11, 8, 0.38);
}

.ec-relic::before,
.ec-relic::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 32px;
  height: 32px;
  border: 2px solid var(--gold);
}

.ec-relic::before {
  top: -9px;
  left: -9px;
  border-right: 0;
  border-bottom: 0;
}

.ec-relic::after {
  right: -9px;
  bottom: -9px;
  border-top: 0;
  border-left: 0;
}

.ec-relic img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 16px 20px rgba(0, 0, 0, 0.6));
}

.ec-relic figcaption {
  padding-top: 8px;
  border-top: 1px solid var(--line-dark);
  color: var(--gold-light);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

.ec-pedestal {
  position: relative;
  z-index: 1;
  width: min(92%, 430px);
  height: 76px;
  margin-top: -13px;
}

.ec-pedestal span {
  position: absolute;
  left: 50%;
  display: block;
  transform: translateX(-50%);
}

.ec-pedestal span:nth-child(1) {
  top: 0;
  width: 88%;
  height: 18px;
  background: var(--gold);
  clip-path: polygon(7% 0, 93% 0, 100% 100%, 0 100%);
}

.ec-pedestal span:nth-child(2) {
  top: 18px;
  width: 72%;
  height: 26px;
  background: var(--felt-light);
  box-shadow: inset 0 8px 0 rgba(10, 11, 8, 0.28);
}

.ec-pedestal span:nth-child(3) {
  top: 44px;
  width: 94%;
  height: 16px;
  background: #1d2118;
  border-top: 2px solid rgba(231, 202, 141, 0.35);
}

.ec-relic-note {
  max-width: 390px;
  margin: 10px 0 0;
  color: #b7b3a7;
  font-size: 17px;
  line-height: 1.4;
  text-align: center;
}

.ec-opening-actions {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-self: start;
}

.ec-opening-facts {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-self: end;
  margin: 24px 0 0;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  background: rgba(10, 11, 8, 0.28);
}

.ec-opening-facts div {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 13px 12px;
  border-right: 1px solid var(--line-dark);
}

.ec-opening-facts div:last-child {
  border-right: 0;
}

.ec-opening-facts dt {
  order: 2;
  color: #a9a597;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ec-opening-facts dd {
  order: 1;
  margin: 0 0 2px;
  color: var(--ivory);
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.2;
}

.ec-chapter {
  position: relative;
  padding: 92px 0 104px;
  scroll-margin-top: var(--topline);
}

.ec-chapter::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 8px;
  background: repeating-conic-gradient(var(--chapter-line) 0 25%, transparent 0 50%) 0 0 / 16px 16px;
  opacity: 0.75;
}

.ec-chapter::after {
  content: "";
  position: absolute;
  top: 30px;
  bottom: 30px;
  left: 0;
  width: 10px;
  background:
    linear-gradient(var(--chapter-line) 0 0) 0 0 / 10px 10px no-repeat,
    linear-gradient(var(--chapter-line) 0 0) 0 calc(100% - 10px) / 10px 10px no-repeat,
    repeating-linear-gradient(var(--chapter-line) 0 3px, transparent 3px 13px) center / 2px 100% no-repeat;
  opacity: 0.55;
}

.ec-chapter--mint,
.ec-chapter--story,
.ec-chapter--endgame {
  --chapter-line: rgba(20, 55, 46, 0.55);
  color: var(--ebony);
  background:
    linear-gradient(90deg, rgba(20, 55, 46, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(20, 55, 46, 0.04) 1px, transparent 1px),
    var(--ivory);
  background-size: 32px 32px;
}

.ec-chapter--mint::after,
.ec-chapter--story::after,
.ec-chapter--endgame::after {
  left: 12px;
}

.ec-chapter--ranks,
.ec-chapter--pieces,
.ec-chapter--faq {
  --chapter-line: rgba(199, 161, 91, 0.45);
  color: var(--ivory);
  background:
    radial-gradient(60% 40% at 50% 0%, rgba(34, 80, 68, 0.22), transparent 72%),
    var(--ebony);
}

.ec-chapter-head {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 120px;
  gap: 28px;
  align-items: center;
  margin-bottom: 42px;
}

.ec-chapter-head > div {
  min-width: 0;
}

.ec-chapter-head h2,
.ec-story-head h2,
.ec-faq-head h2 {
  margin: 5px 0 10px;
  font-family: var(--display);
  font-size: clamp(33px, 4.1vw, 58px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.ec-chapter-head h2 {
  color: inherit;
}

.ec-chapter-lede,
.ec-story-head > p,
.ec-faq-head > p {
  max-width: 720px;
  margin: 0;
  color: var(--ink-muted);
  font-size: 20px;
  line-height: 1.42;
}

.ec-chapter--ranks .ec-chapter-lede,
.ec-chapter--pieces .ec-chapter-lede {
  color: var(--ivory-dim);
}

.ec-chapter-no {
  position: relative;
  display: block;
  color: transparent;
  font-family: var(--display);
  font-size: clamp(62px, 7vw, 94px);
  line-height: 0.8;
  letter-spacing: -0.08em;
  -webkit-text-stroke: 1px currentColor;
}

.ec-chapter--mint .ec-chapter-no,
.ec-chapter--story .ec-chapter-no,
.ec-chapter--endgame .ec-chapter-no {
  color: var(--felt);
  -webkit-text-stroke: 0;
}

.ec-chapter--ranks .ec-chapter-no,
.ec-chapter--pieces .ec-chapter-no,
.ec-chapter--faq .ec-chapter-no {
  color: var(--gold);
}

.ec-chapter-no::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 4px;
  width: 18px;
  height: 18px;
  background: var(--gold);
  box-shadow: -18px 0 0 var(--felt), 0 -18px 0 var(--ebony);
}

.ec-piece-mark {
  position: relative;
  justify-self: end;
  width: 72px;
  height: 88px;
  opacity: 0.78;
}

.ec-piece-mark::before,
.ec-piece-mark::after {
  content: "";
  position: absolute;
  background: currentColor;
}

.ec-piece-mark::before {
  top: 8px;
  left: 24px;
  width: 24px;
  height: 12px;
  box-shadow: -8px 8px 0 currentColor, 8px 8px 0 currentColor, -8px 16px 0 currentColor, 0 16px 0 currentColor, 8px 16px 0 currentColor, -16px 24px 0 currentColor, 0 24px 0 currentColor, 16px 24px 0 currentColor, -16px 32px 0 currentColor, 0 32px 0 currentColor, 16px 32px 0 currentColor, -24px 40px 0 currentColor, -16px 40px 0 currentColor, -8px 40px 0 currentColor, 0 40px 0 currentColor, 8px 40px 0 currentColor, 16px 40px 0 currentColor, 24px 40px 0 currentColor, -24px 52px 0 currentColor, 24px 52px 0 currentColor;
}

.ec-piece-mark::after {
  top: 68px;
  left: 12px;
  width: 48px;
  height: 12px;
  box-shadow: 0 12px 0 currentColor;
}

.ec-piece-mark--pawn {
  color: var(--felt-light);
}

.ec-piece-mark--knight {
  color: var(--gold);
}

.ec-piece-mark--rook {
  color: var(--gold);
}

.ec-piece-mark--queen {
  color: var(--felt);
}

.ec-shop {
  position: relative;
  border: 3px solid var(--ebony);
  color: var(--ivory);
  background:
    repeating-linear-gradient(135deg, rgba(231, 202, 141, 0.025) 0 2px, transparent 2px 12px),
    var(--felt-deep);
  box-shadow: 10px 10px 0 rgba(20, 55, 46, 0.22), 0 24px 60px rgba(20, 55, 46, 0.2);
}

.ec-shop::before {
  content: "";
  position: absolute;
  inset: 7px;
  pointer-events: none;
  border: 1px solid var(--line-dark);
}

.ec-shop-ribbon {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 20px;
  border-bottom: 1px solid var(--line-dark);
  background: rgba(10, 11, 8, 0.52);
}

.ec-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--gold-light);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ec-status i {
  width: 9px;
  height: 9px;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(199, 161, 91, 0.14), 0 0 14px var(--gold);
  animation: ec-pulse 2.6s steps(4, end) infinite;
}

.ec-status.live {
  color: #e9d39e;
}

.ec-status.live i {
  background: #f2ddab;
}

.ec-status.warn {
  color: #d5b0a4;
}

.ec-status.warn i {
  background: var(--wine);
}

.ec-shop-timer {
  color: var(--ivory-dim);
  font-family: var(--mono);
  font-size: 10px;
  text-align: right;
}

.ec-shop-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
}

.ec-item-slot {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 34px 30px 28px;
  border-right: 1px solid var(--line-dark);
  background:
    radial-gradient(circle at 50% 35%, rgba(199, 161, 91, 0.15), transparent 43%),
    rgba(10, 11, 8, 0.2);
}

.ec-slot-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: var(--gold);
  border-style: solid;
}

.ec-slot-corner--tl {
  top: 17px;
  left: 17px;
  border-width: 2px 0 0 2px;
}

.ec-slot-corner--tr {
  top: 17px;
  right: 17px;
  border-width: 2px 2px 0 0;
}

.ec-slot-corner--bl {
  bottom: 17px;
  left: 17px;
  border-width: 0 0 2px 2px;
}

.ec-slot-corner--br {
  right: 17px;
  bottom: 17px;
  border-width: 0 2px 2px 0;
}

.ec-slot-art {
  position: relative;
  margin: 0;
  padding: 22px;
  border: 1px solid var(--line-dark);
  background:
    linear-gradient(45deg, rgba(231, 202, 141, 0.05) 25%, transparent 25% 75%, rgba(231, 202, 141, 0.05) 75%) 0 0 / 20px 20px,
    var(--ebony);
}

.ec-slot-art img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.6));
}

.ec-slot-rune {
  position: absolute;
  top: 13px;
  left: 13px;
  width: 26px;
  height: 26px;
  border-top: 2px solid var(--gold);
  border-left: 2px solid var(--gold);
}

.ec-slot-caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line-dark);
}

.ec-slot-caption span {
  color: var(--ivory);
  font-size: 19px;
}

.ec-slot-caption strong {
  color: var(--gold-light);
  font-family: var(--mono);
  font-size: 11px;
  white-space: nowrap;
}

.ec-slot-odds {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 14px;
  margin-top: auto;
}

.ec-mini-odd {
  display: grid;
  grid-template-columns: 7px 1fr auto;
  gap: 7px;
  align-items: center;
  color: var(--ivory-dim);
  font-family: var(--mono);
  font-size: 9px;
}

.ec-mini-odd i {
  width: 7px;
  height: 7px;
  background: var(--tier);
}

.ec-mini-odd b {
  color: var(--ivory);
  font-weight: 600;
}

.ec-buy-panel {
  min-width: 0;
  padding: 30px 34px 28px;
}

.ec-count-block {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.ec-count-number {
  color: var(--ivory);
  font-family: var(--display);
  font-size: clamp(40px, 5.1vw, 68px);
  line-height: 1;
  letter-spacing: -0.055em;
}

.ec-count-total {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 14px;
}

.ec-count-label,
.ec-progress-label {
  color: var(--ivory-dim);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ec-count-label {
  margin-left: auto;
}

.ec-progress-label {
  margin: 9px 0 6px;
}

.ec-meter {
  display: grid;
  grid-template-columns: repeat(20, 1fr);
  gap: 3px;
  height: 12px;
}

.ec-meter i {
  border: 1px solid rgba(231, 202, 141, 0.14);
  background: var(--ebony);
}

.ec-meter i.on {
  background: var(--gold);
  box-shadow: 0 0 8px rgba(199, 161, 91, 0.5);
}

.ec-clock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 20px 0 14px;
  padding: 13px 15px;
  border: 1px solid var(--line-dark);
  background: rgba(10, 11, 8, 0.55);
}

.ec-clock div {
  min-width: 0;
  text-align: center;
}

.ec-clock strong {
  display: block;
  color: var(--gold-light);
  font-family: var(--display);
  font-size: clamp(20px, 2.3vw, 30px);
  font-weight: 400;
  line-height: 1;
}

.ec-clock span {
  display: block;
  margin-top: 4px;
  color: var(--ivory-dim);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ec-clock > b {
  color: var(--gold-deep);
  font-family: var(--mono);
  font-size: 15px;
}

.ec-route {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 44px;
  margin-bottom: 14px;
  padding: 10px 12px;
  border-left: 3px solid var(--gold);
  color: #c5c1b5;
  background: rgba(199, 161, 91, 0.055);
}

.ec-route i {
  width: 8px;
  height: 8px;
  flex: none;
  margin-top: 7px;
  background: var(--gold);
}

.ec-route p {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
}

.ec-route.eligible {
  border-color: var(--ivory);
  color: var(--gold-light);
  background: rgba(20, 55, 46, 0.42);
}

.ec-stepper-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 0;
  border-top: 1px solid var(--line-dark);
}

.ec-stepper-row label {
  margin-right: auto;
  color: var(--ivory);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ec-stepper {
  display: flex;
  border: 1px solid var(--line-dark);
  background: var(--ebony);
}

.ec-stepper button {
  width: 38px;
  height: 38px;
  border: 0;
  color: var(--gold-light);
  background: transparent;
  font-family: var(--mono);
  font-size: 18px;
}

.ec-stepper button:hover {
  background: rgba(199, 161, 91, 0.1);
}

.ec-stepper input {
  width: 55px;
  height: 38px;
  border-width: 0 1px;
  border-color: var(--line-dark);
  color: var(--ivory);
  font-family: var(--mono);
  font-size: 12px;
  text-align: center;
  -moz-appearance: textfield;
}

.ec-stepper input::-webkit-outer-spin-button,
.ec-stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.ec-totals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 14px;
  border: 1px solid var(--line-dark);
}

.ec-totals > div {
  min-width: 0;
  padding: 10px;
  border-right: 1px solid var(--line-dark);
}

.ec-totals > div:last-child {
  border-right: 0;
}

.ec-totals span {
  display: block;
  color: var(--ivory-dim);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ec-totals b {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: var(--ivory);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ec-totals .ec-total-earn {
  background: rgba(199, 161, 91, 0.1);
}

.ec-total-earn b {
  color: var(--gold-light);
}

.ec-button--mint {
  width: 100%;
  min-height: 60px;
  color: var(--ebony);
  background:
    repeating-linear-gradient(135deg, transparent 0 7px, rgba(10, 11, 8, 0.04) 7px 14px),
    var(--gold-light);
  border-color: var(--gold-light);
  box-shadow: 6px 6px 0 var(--gold-deep);
  font-size: 14px;
}

.ec-feedback,
.tx-feedback {
  display: none;
  margin-top: 10px;
  padding: 9px 11px;
  border: 1px solid var(--line-dark);
  color: var(--ivory-dim);
  font-size: 15px;
  line-height: 1.35;
}

.ec-feedback.show,
.tx-feedback.show {
  display: block;
}

.ec-feedback.ok,
.tx-feedback.ok {
  border-color: rgba(199, 161, 91, 0.55);
  color: var(--gold-light);
  background: rgba(199, 161, 91, 0.07);
}

.ec-feedback.err,
.tx-feedback.err {
  border-color: rgba(110, 45, 42, 0.7);
  color: #e0b6ab;
  background: rgba(110, 45, 42, 0.15);
}

.ec-referral {
  margin: 10px 0 0;
  color: var(--gold-light);
  font-family: var(--mono);
  font-size: 10px;
}

.ec-quest-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.ec-quest {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  min-width: 0;
  padding: 21px;
  border: 2px solid var(--felt);
  color: var(--ebony);
  background: rgba(255, 255, 255, 0.24);
}

.ec-quest::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 18px;
  width: 54px;
  height: 4px;
  background: var(--felt);
}

.ec-quest--x {
  display: block;
  grid-column: 1 / -1;
  order: 3;
  padding: 0;
  border-color: var(--gold-deep);
  background: var(--ebony-soft);
}

.ec-quest--x > summary {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 28px;
  gap: 14px;
  align-items: start;
  padding: 21px;
  color: var(--ivory);
  list-style: none;
  cursor: pointer;
}

.ec-quest--x > summary::-webkit-details-marker,
.ec-ledger > summary::-webkit-details-marker {
  display: none;
}

.ec-quest-summary {
  display: grid;
  gap: 4px;
}

.ec-quest-summary strong {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.18;
}

.ec-quest-summary small {
  color: var(--ivory-dim);
  font-size: 15px;
  line-height: 1.38;
}

.ec-quest-disclosure {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-family: var(--mono);
  font-size: 16px;
}

.ec-quest--x[open] .ec-quest-disclosure {
  color: var(--ebony);
  background: var(--gold-light);
}

.ec-quest-icon {
  position: relative;
  display: block;
  width: 38px;
  height: 38px;
  border: 1px solid currentColor;
}

.ec-quest-icon::before,
.ec-quest-icon::after {
  content: "";
  position: absolute;
  background: currentColor;
}

.ec-quest-icon--agent {
  color: var(--felt);
}

.ec-quest-icon--agent::before {
  top: 9px;
  left: 13px;
  width: 10px;
  height: 10px;
  box-shadow: -5px 5px 0 currentColor, 5px 5px 0 currentColor, -10px 10px 0 currentColor, 0 10px 0 currentColor, 10px 10px 0 currentColor;
}

.ec-quest-icon--agent::after {
  right: 8px;
  bottom: 7px;
  left: 8px;
  height: 3px;
  box-shadow: 0 -4px 0 currentColor;
}

.ec-quest-icon--x {
  color: var(--gold-light);
}

.ec-quest-icon--x::before {
  top: 9px;
  left: 14px;
  width: 8px;
  height: 8px;
  box-shadow: 7px 7px 0 currentColor, -7px 7px 0 currentColor, 0 14px 0 currentColor;
}

.ec-quest-icon--x::after {
  top: 18px;
  left: 17px;
  width: 4px;
  height: 4px;
  background: var(--ebony-soft);
}

.ec-quest-copy {
  min-width: 0;
}

.ec-quest-copy .ec-overline {
  color: var(--felt);
}

.ec-quest--xcount .ec-quest-copy .ec-overline {
  color: var(--felt);
}

.ec-quest-copy h3 {
  margin: 3px 0 5px;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.18;
}

.ec-quest-copy p {
  margin: 0;
  color: #405248;
  font-size: 16px;
  line-height: 1.38;
}

.ec-quest-copy small {
  display: block;
  min-height: 18px;
  margin-top: 8px;
  color: var(--felt-light);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.4;
}

.ec-quest-count {
  min-width: 100px;
  text-align: right;
}

.ec-quest-count > span {
  color: var(--felt);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.ec-quest-count i {
  font-style: normal;
  font-size: 15px;
}

.ec-slot-bar {
  height: 6px;
  margin-top: 7px;
  border: 1px solid rgba(20, 55, 46, 0.42);
  background: rgba(20, 55, 46, 0.12);
}

.ec-slot-bar i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--felt);
  transition: width 0.4s steps(8, end);
}

.ec-quest-count small {
  display: block;
  margin-top: 5px;
  color: var(--felt-light);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ec-x-body {
  padding: 0 21px 22px 77px;
  color: var(--ivory);
}

.ec-x-body > p:first-child {
  margin: 0 0 16px;
  color: var(--ivory-dim);
  font-size: 16px;
}

.ec-field-label {
  display: block;
  margin: 12px 0 6px;
  color: var(--gold);
}

.ec-x-body textarea {
  width: 100%;
  min-height: 148px;
  padding: 11px;
  resize: vertical;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.6;
}

.ec-inline-actions,
.ec-sell-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ec-inline-actions {
  margin-top: 8px;
}

.ec-x-body input {
  width: 100%;
  padding: 11px;
  font-family: var(--mono);
  font-size: 11px;
}

.ec-turnstile {
  margin: 12px 0;
}

.ec-turnstile:empty {
  display: none;
}

.ec-x-note {
  margin: 11px 0 0;
  color: var(--ivory-dim);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.45;
}

.ec-ledger {
  margin-top: 18px;
  border: 2px solid var(--felt);
  background: rgba(255, 255, 255, 0.22);
}

.ec-ledger > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 21px;
  color: var(--felt);
  font-family: var(--display);
  font-size: 18px;
  list-style: none;
  cursor: pointer;
}

.ec-ledger > summary i {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--felt);
  font-family: var(--mono);
  font-size: 16px;
  font-style: normal;
}

.ec-ledger[open] > summary i {
  transform: rotate(45deg);
}

.ec-ledger-list {
  padding: 0 21px 18px;
  border-top: 1px solid var(--line-light);
}

.ec-ledger-list p {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  margin: 0;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-light);
}

.ec-ledger-list p:last-child {
  border-bottom: 0;
}

.ec-ledger-list b {
  color: var(--felt-light);
  font-family: var(--mono);
  font-size: 10px;
}

.ec-ledger-list span {
  color: #38493f;
  font-size: 17px;
  line-height: 1.42;
}

.ec-rank-stack {
  display: grid;
  gap: 10px;
}

.ec-rank {
  position: relative;
  border: 1px solid var(--line-dark);
  background: var(--ebony-soft);
  transition: background-color 0.2s;
}

.ec-rank[open] {
  background: var(--felt-deep);
}

.ec-rank > summary {
  display: grid;
  grid-template-columns: 90px 100px minmax(0, 1fr) auto 28px;
  gap: 18px;
  align-items: center;
  min-height: 106px;
  padding: 12px 20px;
  list-style: none;
  cursor: pointer;
}

.ec-rank > summary::-webkit-details-marker {
  display: none;
}

.ec-rank-number {
  color: var(--gold);
  font-family: var(--display);
  font-size: 25px;
}

.ec-rank-thumb {
  width: 80px;
  height: 80px;
  border: 1px solid var(--line-dark);
  object-fit: cover;
  image-rendering: pixelated;
  filter: saturate(0.72) contrast(1.08);
}

.ec-rank-name {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.ec-rank-name strong {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.15;
}

.ec-rank-name small {
  color: var(--ivory-dim);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ec-rank-count {
  color: var(--gold-light);
  font-family: var(--mono);
  font-size: 10px;
  text-align: right;
  white-space: nowrap;
}

.ec-rank-plus {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--gold-deep);
  color: var(--gold);
  font-family: var(--mono);
  font-size: 16px;
}

.ec-rank[open] .ec-rank-plus {
  color: var(--ebony);
  background: var(--gold-light);
}

.ec-rank-body {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
  padding: 0 20px 20px 228px;
}

.ec-rank-body p {
  margin: 0;
  color: var(--ivory-dim);
  font-size: 17px;
}

.ec-rank-body dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 14px;
  margin: 0;
}

.ec-rank-body dt {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ec-rank-body dd {
  margin: 0;
  color: var(--ivory);
  font-family: var(--mono);
  font-size: 10px;
  text-align: right;
}

.ec-archive {
  margin-top: 72px;
  padding-top: 42px;
  border-top: 1px solid var(--line-dark);
  scroll-margin-top: calc(var(--topline) + 20px);
}

.ec-archive-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 28px;
}

.ec-archive-head h3 {
  margin: 4px 0 8px;
  font-family: var(--display);
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 400;
  line-height: 1.05;
}

.ec-archive-head p:last-child {
  max-width: 680px;
  margin: 0;
  color: var(--ivory-dim);
  font-size: 18px;
}

.ec-model-case {
  display: grid;
  gap: 34px;
}

.ec-model-group {
  display: grid;
  gap: 14px;
}

.ec-model-group-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line-dark);
}

.ec-model-group-head i {
  width: 9px;
  height: 9px;
}

.ec-model-group-head h4 {
  margin: 0;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 400;
}

.ec-model-group-head span {
  margin-left: auto;
  color: var(--ivory-dim);
  font-family: var(--mono);
  font-size: 9px;
}

.ec-model-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.ec-model-grid--preview {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.ec-model {
  min-width: 0;
  border: 1px solid var(--line-dark);
  background: var(--ebony-soft);
}

.ec-model-art {
  position: relative;
  overflow: hidden;
  background: var(--felt-deep);
}

.ec-model-art::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 4px solid rgba(10, 11, 8, 0.22);
}

.ec-model-art img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  image-rendering: pixelated;
  filter: saturate(0.92) contrast(1.05);
  transition: transform 0.25s steps(5, end);
}

.ec-model:hover .ec-model-art img {
  transform: scale(1.04);
}

.ec-model-art > span {
  position: absolute;
  right: 7px;
  bottom: 7px;
  z-index: 1;
  display: grid;
  width: 25px;
  height: 19px;
  place-items: center;
  color: var(--ebony);
  background: var(--tier);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 600;
}

.ec-model-copy {
  display: grid;
  gap: 2px;
  padding: 9px 10px 11px;
  border-top: 1px solid var(--line-dark);
}

.ec-model-copy small {
  color: var(--tier);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.ec-model-copy strong {
  overflow: hidden;
  font-family: var(--body);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ec-model-copy span {
  color: var(--ivory-dim);
  font-family: var(--mono);
  font-size: 8px;
}

.ec-story-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  grid-template-rows: auto auto;
  gap: 40px 54px;
}

.ec-story-head {
  grid-row: 1 / 3;
  align-self: start;
}

.ec-story-head .ec-chapter-no {
  margin-bottom: 30px;
}

.ec-story-head h2 {
  margin-top: 8px;
}

.ec-story-head > p {
  color: #4f5f55;
}

.ec-story-head > p:first-of-type {
  margin-bottom: 17px;
  color: var(--felt);
  font-size: 24px;
}

.ec-story-passage {
  padding-top: 20px;
  border-top: 1px solid var(--line-light);
}

.ec-story-head .ec-button {
  margin-top: 26px;
}

.ec-move-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--felt);
  list-style: none;
}

.ec-move-list li {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 18px;
  min-height: 88px;
  align-items: center;
  border-bottom: 1px solid var(--line-light);
}

.ec-move-list > li > span {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  color: var(--ivory);
  background: var(--felt);
  font-family: var(--mono);
  font-size: 11px;
  box-shadow: 5px 5px 0 rgba(20, 55, 46, 0.16);
}

.ec-move-list li:nth-child(even) > span {
  color: var(--ebony);
  background: var(--gold);
}

.ec-move-list li > div {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 11px;
  align-items: start;
}

.ec-move-list b {
  color: var(--felt-light);
  font-family: var(--mono);
  font-size: 9px;
}

.ec-move-list p {
  margin: 0;
  color: #33443a;
  font-size: 18px;
  line-height: 1.45;
}

.ec-story-vignette {
  position: relative;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  min-height: 160px;
  margin: 0;
  border: 2px solid var(--felt);
  background: var(--felt-deep);
  overflow: hidden;
}

.ec-story-vignette img {
  width: 180px;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  filter: saturate(0.7) contrast(1.1);
}

.ec-story-vignette figcaption {
  align-self: end;
  padding: 22px;
  color: var(--gold-light);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ec-piece-desk {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 16px;
}

.ec-ledger-card {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line-dark);
  background: var(--ebony-soft);
}

.ec-ledger-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 20px;
  width: 54px;
  height: 3px;
  background: var(--gold);
  box-shadow: 60px 0 0 var(--felt-light);
}

.ec-ledger-card--claim {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background:
    radial-gradient(circle at 100% 0%, rgba(199, 161, 91, 0.16), transparent 46%),
    var(--ebony-soft);
}

.ec-ledger-card--claim > strong {
  margin: 17px 0 19px;
  color: var(--gold-light);
  font-family: var(--display);
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 400;
  line-height: 0.95;
  overflow-wrap: anywhere;
}

.ec-ledger-card--claim .ec-button {
  margin-top: auto;
}

.ec-inline-note {
  margin: 10px 0 0;
  color: var(--ivory-dim);
  font-size: 15px;
  line-height: 1.4;
}

.ec-ledger-card--invite > p:nth-child(2) {
  margin: 8px 0 16px;
  color: var(--ivory-dim);
  font-size: 17px;
}

.ec-copy-row {
  display: flex;
  gap: 7px;
}

.ec-copy-row input {
  min-width: 0;
  flex: 1;
  padding: 9px 11px;
  font-family: var(--mono);
  font-size: 10px;
}

.ec-invite-numbers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 17px;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.ec-invite-numbers div {
  padding: 12px 0;
}

.ec-invite-numbers div + div {
  padding-left: 17px;
  border-left: 1px solid var(--line-dark);
}

.ec-invite-numbers span {
  display: block;
  color: var(--ivory-dim);
  font-family: var(--mono);
  font-size: 8px;
  text-transform: uppercase;
}

.ec-invite-numbers b {
  display: block;
  margin-top: 3px;
  color: var(--gold-light);
  font-family: var(--mono);
  font-size: 13px;
}

.ec-collection-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 30px 0 18px;
  padding: 13px 0;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.ec-collection-bar p {
  margin: 0;
  color: var(--ivory-dim);
  font-size: 17px;
}

.ec-piece-shelf,
.ec-trade-shelf {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.ec-piece-card,
.ec-trade-card {
  min-width: 0;
  border: 1px solid var(--line-dark);
  background: var(--ebony-soft);
}

.ec-piece-card {
  position: relative;
}

.ec-piece-art {
  position: relative;
  background: var(--felt-deep);
}

.ec-piece-art img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  image-rendering: pixelated;
}

.ec-piece-card--sealed .ec-piece-art img {
  object-fit: contain;
  padding: 24px;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.5));
}

.ec-sealed-label {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  padding: 5px 7px;
  color: var(--ebony);
  background: var(--gold);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 600;
}

.ec-piece-body,
.ec-trade-body {
  padding: 11px 12px 13px;
}

.ec-piece-kicker,
.ec-trade-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--ivory-dim);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ec-tier-dot {
  width: 7px;
  height: 7px;
  flex: none;
}

.ec-piece-body > strong,
.ec-trade-body > strong {
  display: block;
  margin: 5px 0 9px;
  overflow: hidden;
  font-size: 19px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ec-piece-body .ec-button {
  width: 100%;
}

.ec-empty {
  grid-column: 1 / -1;
  padding: 30px;
  border: 1px dashed var(--line-dark);
  color: var(--ivory-dim);
  font-size: 18px;
  text-align: center;
}

.ec-token-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
}

.ec-ramp,
.ec-supply {
  border: 2px solid var(--felt);
  background: rgba(255, 255, 255, 0.2);
}

.ec-ramp {
  padding: 26px;
}

.ec-ramp-copy {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 22px;
  align-items: start;
}

.ec-ramp-copy p:last-child {
  margin: 0;
  color: #405248;
  font-size: 17px;
}

.ec-ramp-steps {
  height: 205px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin: 26px 0 18px;
  padding-top: 26px;
  border-bottom: 2px solid var(--felt);
  background:
    linear-gradient(rgba(20, 55, 46, 0.1) 1px, transparent 1px) 0 0 / 100% 25%;
}

.ec-ramp-steps span {
  position: relative;
  flex: 1;
  height: calc(var(--step) * 17%);
  min-height: 27px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.ec-ramp-steps i {
  width: 100%;
  height: 100%;
  background:
    repeating-linear-gradient(0deg, var(--felt) 0 6px, transparent 6px 9px);
}

.ec-ramp-steps b {
  position: absolute;
  bottom: -22px;
  color: var(--felt);
  font-family: var(--mono);
  font-size: 9px;
}

.ec-ramp-steps small {
  position: absolute;
  top: -20px;
  color: var(--gold-deep);
  font-family: var(--mono);
  font-size: 8px;
}

.ec-next-reward {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 13px 15px;
  color: var(--ivory);
  background: var(--felt);
}

.ec-next-reward span {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ec-next-reward strong {
  color: var(--gold-light);
  font-family: var(--display);
  font-size: 17px;
  font-weight: 400;
}

.ec-supply {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 26px;
}

.ec-supply-medallion {
  width: 164px;
  height: 164px;
  display: grid;
  place-items: center;
  border: 2px solid var(--felt);
  background:
    conic-gradient(from 20deg, var(--felt) 0 58%, var(--gold) 58% 64%, var(--felt-light) 64% 88%, var(--ivory-deep) 88%);
  clip-path: polygon(50% 0, 63% 6%, 76% 3%, 85% 15%, 97% 24%, 94% 37%, 100% 50%, 94% 63%, 97% 76%, 85% 85%, 76% 97%, 63% 94%, 50% 100%, 37% 94%, 24% 97%, 15% 85%, 3% 76%, 6% 63%, 0 50%, 6% 37%, 3% 24%, 15% 15%, 24% 3%, 37% 6%);
}

.ec-supply-medallion span {
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
  align-content: center;
  color: var(--ivory);
  background: var(--felt-deep);
  border-radius: 50%;
  font-family: var(--display);
  font-size: 20px;
}

.ec-supply-medallion small {
  display: block;
  margin-top: 5px;
  color: var(--gold-light);
  font-family: var(--mono);
  font-size: 8px;
}

.ec-supply-copy {
  width: 100%;
  margin-top: 22px;
}

.ec-supply-copy > div {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-light);
}

.ec-supply-copy > div span {
  color: #405248;
  font-size: 16px;
}

.ec-supply-copy > div b {
  color: var(--felt);
  font-family: var(--mono);
  font-size: 9px;
}

.ec-swatch {
  width: 9px;
  height: 9px;
}

.ec-swatch--mint {
  background: var(--felt);
}

.ec-swatch--invite {
  background: var(--gold);
}

.ec-swatch--rest {
  background: var(--ivory-deep);
  border: 1px solid var(--felt);
}

.ec-supply-copy > p:last-child {
  margin: 12px 0 0;
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 9px;
  text-align: right;
}

.ec-market {
  margin-top: 58px;
  padding: 30px;
  border: 3px solid var(--ebony);
  color: var(--ivory);
  background: var(--ebony-soft);
  scroll-margin-top: calc(var(--topline) + 20px);
}

.ec-market-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.ec-market-head h3 {
  margin: 4px 0 7px;
  color: var(--ivory);
  font-family: var(--display);
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 400;
  line-height: 1;
}

.ec-market-head > div > p:last-child {
  margin: 0;
  color: var(--ivory-dim);
  font-size: 17px;
}

.ec-market-head > span {
  padding: 7px 9px;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-family: var(--mono);
  font-size: 9px;
  white-space: nowrap;
}

.ec-market-state {
  margin: 0 0 17px;
  color: var(--ivory-dim);
  font-size: 17px;
}

.ec-market-state:empty {
  display: none;
}

.ec-trade-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  background: var(--felt-deep);
}

.ec-trade-card > img {
  width: 96px;
  height: 100%;
  min-height: 144px;
  object-fit: cover;
  image-rendering: pixelated;
}

.ec-trade-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 4px 0 9px;
}

.ec-trade-price strong {
  color: var(--gold-light);
  font-family: var(--mono);
  font-size: 11px;
}

.ec-trade-price span {
  color: #d1a89b;
  font-family: var(--mono);
  font-size: 8px;
}

.ec-trade-body .ec-button {
  width: 100%;
}

.ec-sell-desk {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
}

.ec-sell-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.ec-sell-head p {
  margin: 0;
}

.ec-sell-head > div > p:last-child {
  margin-top: 5px;
  color: var(--ivory-dim);
  font-size: 16px;
}

.ec-sell-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 24px;
}

.ec-piece-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  gap: 6px;
  max-height: 300px;
  overflow: auto;
  padding-right: 3px;
}

.ec-piece-picker button {
  min-width: 0;
  padding: 0;
  border: 1px solid var(--line-dark);
  color: var(--ivory);
  background: var(--ebony);
  overflow: hidden;
}

.ec-piece-picker button.selected {
  border-color: var(--gold-light);
  box-shadow: inset 0 0 0 1px var(--gold-light);
}

.ec-piece-picker img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  image-rendering: pixelated;
}

.ec-piece-picker span {
  display: block;
  overflow: hidden;
  padding: 5px;
  font-family: var(--mono);
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ec-sell-form {
  min-width: 0;
}

.ec-sell-form > input {
  width: 100%;
  padding: 11px;
  font-family: var(--mono);
  font-size: 11px;
}

.ec-sell-actions {
  margin-top: 13px;
}

.ec-sell-actions .ec-button {
  flex: 1 1 130px;
}

.ec-faq-grid {
  display: grid;
  grid-template-columns: minmax(250px, 0.56fr) minmax(0, 1.44fr);
  gap: 50px;
  align-items: start;
}

.ec-faq-head {
  position: sticky;
  top: calc(var(--topline) + 30px);
}

.ec-faq-head .ec-chapter-no {
  margin-bottom: 30px;
}

.ec-faq-head h2 {
  color: var(--ivory);
}

.ec-faq-king {
  position: relative;
  display: block;
  width: 92px;
  height: 118px;
  margin-top: 32px;
  color: var(--gold);
  opacity: 0.44;
}

.ec-faq-king::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 30px;
  width: 32px;
  height: 16px;
  background: currentColor;
  box-shadow: -12px 8px 0 currentColor, 12px 8px 0 currentColor, -12px 16px 0 currentColor, 0 16px 0 currentColor, 12px 16px 0 currentColor, -20px 24px 0 currentColor, 0 24px 0 currentColor, 20px 24px 0 currentColor, -20px 36px 0 currentColor, 0 36px 0 currentColor, 20px 36px 0 currentColor, -28px 48px 0 currentColor, -20px 48px 0 currentColor, -12px 48px 0 currentColor, 0 48px 0 currentColor, 12px 48px 0 currentColor, 20px 48px 0 currentColor, 28px 48px 0 currentColor, -20px 64px 0 currentColor, 20px 64px 0 currentColor, -36px 82px 0 currentColor, 36px 82px 0 currentColor;
}

.ec-faq-king::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 12px;
  width: 68px;
  height: 13px;
  background: currentColor;
  box-shadow: 0 13px 0 currentColor;
}

.ec-faq-list {
  border-top: 2px solid var(--gold);
}

.ec-faq-item {
  border-bottom: 1px solid var(--line-dark);
}

.ec-faq-item summary {
  position: relative;
  padding: 20px 46px 20px 0;
  color: var(--ivory);
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}

.ec-faq-item summary::-webkit-details-marker {
  display: none;
}

.ec-faq-item summary::before {
  content: "+";
  position: absolute;
  top: 17px;
  right: 0;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--gold-deep);
  color: var(--gold);
  font-family: var(--mono);
  font-size: 15px;
}

.ec-faq-item[open] summary {
  color: var(--gold-light);
}

.ec-faq-item[open] summary::before {
  content: "−";
  color: var(--ebony);
  background: var(--gold-light);
}

.ec-faq-item p {
  max-width: 720px;
  margin: -4px 0 21px;
  padding-right: 42px;
  color: var(--ivory-dim);
  font-size: 18px;
  line-height: 1.52;
}

.ec-footer {
  padding: 54px 0 calc(var(--dock) + 34px);
  border-top: 1px solid var(--line-dark);
  background: #080906;
}

.ec-footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
}

.ec-brand--footer {
  margin-bottom: 18px;
}

.ec-footer p {
  margin: 0;
  color: var(--ivory-dim);
  font-family: var(--mono);
  font-size: 9px;
}

.ec-footer small {
  display: block;
  margin-top: 7px;
  color: var(--gold);
  font-size: 17px;
}

.ec-chain-links {
  display: grid;
  gap: 7px;
  text-align: right;
}

.ec-chain-links p {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.ec-chain-links a,
.ec-chain-links button {
  color: var(--gold-light);
  font-family: var(--mono);
  font-size: 9px;
}

.ec-chain-links button {
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--gold-deep);
  background: transparent;
  cursor: pointer;
}

.ec-dock {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 110;
  height: calc(var(--dock) + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  padding: 0 max(10px, calc((100vw - 1180px) / 2)) env(safe-area-inset-bottom);
  border-top: 2px solid var(--gold-deep);
  background: rgba(9, 10, 7, 0.97);
  backdrop-filter: blur(16px);
}

.ec-dock::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 0;
  left: 0;
  height: 4px;
  background: repeating-conic-gradient(var(--gold) 0 25%, transparent 0 50%) 0 0 / 8px 8px;
  opacity: 0.56;
}

.ec-dock a {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-right: 1px solid rgba(231, 202, 141, 0.08);
  color: var(--ivory-dim);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.1;
  text-align: center;
  transition: color 0.15s, background-color 0.15s;
}

.ec-dock a:last-child {
  border-right: 0;
}

.ec-dock a:hover,
.ec-dock a:focus-visible {
  color: var(--gold-light);
  background: rgba(199, 161, 91, 0.06);
}

.ec-dock a > span:last-child {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ec-tab-icon {
  position: relative;
  display: block;
  width: 18px;
  height: 17px;
  color: currentColor;
}

.ec-tab-icon::before,
.ec-tab-icon::after {
  content: "";
  position: absolute;
  background: currentColor;
}

.ec-tab-icon--mint::before {
  top: 2px;
  left: 4px;
  width: 10px;
  height: 5px;
  box-shadow: -3px 4px 0 currentColor, 3px 4px 0 currentColor, -5px 8px 0 currentColor, 0 8px 0 currentColor, 5px 8px 0 currentColor, -6px 12px 0 currentColor, 6px 12px 0 currentColor;
}

.ec-tab-icon--piece::before {
  top: 2px;
  left: 6px;
  width: 6px;
  height: 6px;
  box-shadow: -4px 4px 0 currentColor, 4px 4px 0 currentColor, -6px 8px 0 currentColor, 0 8px 0 currentColor, 6px 8px 0 currentColor, -7px 12px 0 currentColor, 7px 12px 0 currentColor;
}

.ec-tab-icon--rank::before {
  top: 3px;
  left: 5px;
  width: 8px;
  height: 8px;
  background: transparent;
  border: 2px solid currentColor;
  box-shadow: 0 0 0 2px var(--ebony);
}

.ec-tab-icon--rank::after {
  right: 1px;
  bottom: 1px;
  width: 5px;
  height: 5px;
}

.ec-tab-icon--board::before {
  inset: 1px;
  background: transparent;
  border: 2px solid currentColor;
}

.ec-tab-icon--board::after {
  top: 5px;
  left: 5px;
  width: 4px;
  height: 4px;
  box-shadow: 6px 0 0 currentColor, 0 6px 0 currentColor;
}

.ec-tab-icon--gambit::before {
  top: 2px;
  left: 5px;
  width: 8px;
  height: 3px;
  box-shadow: -3px 3px 0 currentColor, 3px 3px 0 currentColor, 0 6px 0 currentColor, -5px 9px 0 currentColor, 0 9px 0 currentColor, 5px 9px 0 currentColor, -7px 13px 0 currentColor, 7px 13px 0 currentColor;
}

.ec-tab-icon--market::before {
  top: 4px;
  left: 2px;
  width: 14px;
  height: 2px;
  box-shadow: -1px 3px 0 currentColor, 1px 3px 0 currentColor, 3px 3px 0 currentColor, -3px 3px 0 currentColor, 0 6px 0 currentColor, -5px 9px 0 currentColor, 5px 9px 0 currentColor, -6px 13px 0 currentColor, 6px 13px 0 currentColor;
}

.ec-tab-icon--faq::before {
  top: 1px;
  left: 3px;
  width: 12px;
  height: 10px;
  background: transparent;
  border: 2px solid currentColor;
  box-shadow: 3px 10px 0 -1px currentColor;
}

.ec-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(5, 6, 4, 0.78);
}

.ec-modal.show {
  display: grid;
}

.ec-modal-box {
  width: min(410px, 100%);
  padding: 22px;
  border: 2px solid var(--gold);
  color: var(--ivory);
  background: var(--ebony-soft);
  box-shadow: 10px 10px 0 rgba(123, 91, 42, 0.28);
}

.ec-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 17px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--display);
}

.ec-modal-close {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-dark);
  color: var(--gold-light);
  background: transparent;
  font-family: var(--mono);
  font-size: 18px;
}

.ec-wallet-options {
  display: grid;
  gap: 8px;
}

.ec-wallet-options .ec-button {
  justify-content: flex-start;
}

.ec-toast {
  position: fixed;
  bottom: calc(var(--dock) + env(safe-area-inset-bottom) + 14px);
  left: 50%;
  z-index: 350;
  max-width: min(430px, calc(100vw - 30px));
  padding: 11px 16px;
  border: 1px solid var(--gold);
  color: var(--ebony);
  background: var(--gold-light);
  font-family: var(--mono);
  font-size: 10px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition: opacity 0.2s, transform 0.2s;
}

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

.art-missing {
  position: relative;
}

.art-missing::after {
  content: "GAMBITCORE";
  display: grid;
  position: absolute;
  inset: 0;
  place-items: center;
  color: rgba(231, 202, 141, 0.18);
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: 0.08em;
}

@keyframes ec-unseal {
  0% {
    opacity: 0;
    transform: translateY(20px);
    clip-path: inset(0 0 100% 0);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    clip-path: inset(0);
  }
}

@keyframes ec-turn {
  to {
    transform: translateX(-50%) rotate(360deg);
  }
}

@keyframes ec-pulse {
  50% {
    opacity: 0.48;
    transform: scale(0.72);
  }
}

@media (max-width: 1050px) {
  .ec-opening {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.78fr);
    gap: 10px 28px;
  }

  .ec-opening-copy h1 {
    font-size: clamp(42px, 5.7vw, 62px);
  }

  .ec-relic-stage {
    min-height: 420px;
  }

  .ec-relic {
    width: min(90%, 330px);
  }

  .ec-model-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .ec-model-grid--preview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ec-piece-shelf,
  .ec-trade-shelf {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ec-trade-card {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .ec-trade-card > img {
    width: 82px;
  }

  .ec-rank-body {
    padding-left: 208px;
  }
}

@media (max-width: 820px) {
  :root {
    --dock: 72px;
  }

  .ec-topline {
    grid-template-columns: 1fr auto;
    padding-inline: 16px;
  }

  .ec-topline-mark {
    display: none;
  }

  .ec-wrap {
    width: min(100% - 30px, 700px);
  }

  .ec-opening {
    min-height: calc(100svh - var(--topline));
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    gap: 26px;
    padding: 48px 20px 42px;
    text-align: center;
  }

  .ec-opening-copy {
    align-self: auto;
  }

  .ec-opening-copy h1 {
    font-size: clamp(38px, 9.2vw, 60px);
  }

  .ec-opening-lede {
    margin-inline: auto;
  }

  .ec-opening .ec-overline {
    justify-content: center;
  }

  .ec-opening .ec-overline::before {
    display: none;
  }

  .ec-relic-stage {
    grid-row: auto;
    grid-column: auto;
    min-height: 0;
    padding: 12px 0 0;
  }

  .ec-relic {
    width: min(72vw, 310px);
  }

  .ec-relic-rays {
    width: 330px;
    height: 330px;
  }

  .ec-pedestal {
    width: min(82vw, 350px);
    height: 60px;
  }

  .ec-pedestal span:nth-child(2) {
    height: 20px;
  }

  .ec-pedestal span:nth-child(3) {
    top: 38px;
  }

  .ec-relic-note {
    margin-top: 4px;
    font-size: 16px;
  }

  .ec-opening-actions {
    justify-content: center;
  }

  .ec-opening-facts {
    margin-top: 4px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ec-opening-facts div:nth-child(2) {
    border-right: 0;
  }

  .ec-opening-facts div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line-dark);
  }

  .ec-chapter {
    padding: 72px 0 80px;
  }

  .ec-chapter::after {
    display: none;
  }

  .ec-chapter-head {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 16px;
    margin-bottom: 30px;
  }

  .ec-chapter-head .ec-piece-mark {
    display: none;
  }

  .ec-chapter-no {
    font-size: 58px;
  }

  .ec-chapter-no::after {
    right: 2px;
    width: 12px;
    height: 12px;
    box-shadow: -12px 0 0 var(--felt), 0 -12px 0 var(--ebony);
  }

  .ec-chapter-head h2,
  .ec-story-head h2,
  .ec-faq-head h2 {
    font-size: clamp(30px, 7.3vw, 46px);
  }

  .ec-shop-grid {
    grid-template-columns: 1fr;
  }

  .ec-item-slot {
    border-right: 0;
    border-bottom: 1px solid var(--line-dark);
  }

  .ec-slot-art {
    width: min(100%, 340px);
    margin-inline: auto;
  }

  .ec-slot-odds {
    width: min(100%, 340px);
    margin-inline: auto;
  }

  .ec-quest-board {
    grid-template-columns: 1fr;
  }

  .ec-quest--x {
    grid-column: auto;
  }

  .ec-x-body {
    padding-left: 21px;
  }

  .ec-rank > summary {
    grid-template-columns: 56px 68px minmax(0, 1fr) 24px;
    gap: 12px;
    min-height: 88px;
    padding: 10px 13px;
  }

  .ec-rank-number {
    font-size: 18px;
  }

  .ec-rank-thumb {
    width: 62px;
    height: 62px;
  }

  .ec-rank-name strong {
    font-size: 16px;
  }

  .ec-rank-count {
    display: none;
  }

  .ec-rank-body {
    grid-template-columns: 1fr;
    padding: 0 16px 17px 149px;
  }

  .ec-archive-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .ec-model-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ec-model-grid--preview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ec-story-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .ec-story-head {
    grid-row: auto;
  }

  .ec-piece-desk {
    grid-template-columns: 1fr;
  }

  .ec-piece-shelf,
  .ec-trade-shelf {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ec-token-grid {
    grid-template-columns: 1fr;
  }

  .ec-market {
    padding: 22px;
  }

  .ec-sell-grid {
    grid-template-columns: 1fr;
  }

  .ec-faq-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .ec-faq-head {
    position: static;
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 0 16px;
    align-items: start;
  }

  .ec-faq-head .ec-chapter-no {
    grid-row: 1 / 4;
    margin: 0;
  }

  .ec-faq-head .ec-overline,
  .ec-faq-head h2 {
    grid-column: 2;
  }

  .ec-faq-king {
    display: none;
  }

  .ec-footer-inner {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .ec-chain-links {
    text-align: left;
  }

  .ec-chain-links p {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  :root {
    --topline: 58px;
    --dock: 68px;
  }

  body {
    font-size: 18px;
  }

  .ec-brand {
    gap: 8px;
    font-size: 14px;
  }

  .ec-brand-sigil {
    width: 22px;
    height: 21px;
    transform: scale(0.78);
    transform-origin: left center;
    margin-right: -4px;
  }

  .ec-tools {
    gap: 6px;
  }

  .ec-tools select {
    width: 74px;
    height: 36px;
    padding-inline: 4px;
    font-size: 9px;
  }

  .ec-button--connect {
    min-height: 36px;
    padding: 7px 10px;
    font-size: 9px;
  }

  .ec-opening {
    padding: 38px 15px 34px;
  }

  .ec-opening-copy h1 {
    font-size: clamp(34px, 10.4vw, 49px);
  }

  .ec-opening-lede {
    font-size: 18px;
  }

  .ec-opening-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .ec-opening-actions .ec-button {
    width: 100%;
  }

  .ec-opening-facts dd {
    font-size: 14px;
  }

  .ec-opening-facts dt {
    font-size: 8px;
  }

  .ec-chapter {
    padding: 58px 0 68px;
  }

  .ec-chapter-head {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 12px;
  }

  .ec-chapter-no {
    font-size: 42px;
  }

  .ec-chapter-head h2,
  .ec-story-head h2,
  .ec-faq-head h2 {
    font-size: clamp(27px, 8.6vw, 38px);
  }

  .ec-chapter-lede,
  .ec-story-head > p,
  .ec-faq-head > p {
    font-size: 18px;
  }

  .ec-shop-ribbon {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    padding: 10px 14px;
  }

  .ec-shop-timer {
    text-align: left;
  }

  .ec-item-slot {
    padding: 27px 17px 21px;
  }

  .ec-buy-panel {
    padding: 21px 15px 20px;
  }

  .ec-count-number {
    font-size: 43px;
  }

  .ec-clock {
    gap: 3px;
    padding: 11px 7px;
  }

  .ec-clock strong {
    font-size: 19px;
  }

  .ec-clock > b {
    font-size: 10px;
  }

  .ec-totals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ec-totals > div:nth-child(2) {
    border-right: 0;
  }

  .ec-totals > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line-dark);
  }

  .ec-button--mint {
    min-height: 55px;
    font-size: 12px;
  }

  .ec-quest {
    grid-template-columns: 34px minmax(0, 1fr);
    padding: 17px;
  }

  .ec-quest-count {
    grid-column: 2;
    min-width: 0;
    text-align: left;
  }

  .ec-quest-count > span {
    float: left;
  }

  .ec-slot-bar {
    overflow: hidden;
  }

  .ec-quest--x > summary {
    grid-template-columns: 34px minmax(0, 1fr) 26px;
    gap: 11px;
    padding: 17px;
  }

  .ec-quest-icon {
    width: 32px;
    height: 32px;
    transform: scale(0.86);
    transform-origin: left top;
  }

  .ec-quest-copy h3 {
    font-size: 16px;
  }

  .ec-quest-copy p,
  .ec-quest-summary small {
    font-size: 15px;
  }

  .ec-x-body {
    padding: 0 16px 18px;
  }

  .ec-ledger-list {
    padding-inline: 15px;
  }

  .ec-ledger-list p {
    grid-template-columns: 30px 1fr;
    gap: 8px;
  }

  .ec-model-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ec-model-grid--preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ec-rank > summary {
    grid-template-columns: 32px 52px minmax(0, 1fr) 22px;
    gap: 8px;
    padding: 9px;
  }

  .ec-rank-number {
    font-size: 13px;
  }

  .ec-rank-thumb {
    width: 50px;
    height: 50px;
  }

  .ec-rank-name strong {
    font-size: 14px;
  }

  .ec-rank-plus {
    width: 22px;
    height: 22px;
  }

  .ec-rank-body {
    padding: 0 12px 14px 101px;
  }

  .ec-rank-body dl {
    grid-template-columns: 1fr;
  }

  .ec-move-list li {
    grid-template-columns: 55px 1fr;
    gap: 12px;
  }

  .ec-move-list > li > span {
    width: 46px;
    height: 46px;
  }

  .ec-move-list p {
    font-size: 17px;
  }

  .ec-story-vignette {
    grid-template-columns: 110px 1fr;
  }

  .ec-story-vignette img {
    width: 110px;
  }

  .ec-piece-desk {
    gap: 12px;
  }

  .ec-ledger-card {
    padding: 18px;
  }

  .ec-copy-row {
    flex-direction: column;
  }

  .ec-copy-row .ec-button {
    width: 100%;
  }

  .ec-collection-bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 11px;
  }

  .ec-piece-shelf,
  .ec-trade-shelf {
    gap: 8px;
  }

  .ec-piece-body,
  .ec-trade-body {
    padding: 9px;
  }

  .ec-piece-body > strong,
  .ec-trade-body > strong {
    font-size: 16px;
  }

  .ec-token-grid {
    gap: 12px;
  }

  .ec-ramp,
  .ec-supply {
    padding: 18px;
  }

  .ec-ramp-copy {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .ec-ramp-steps {
    height: 170px;
  }

  .ec-next-reward {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .ec-supply-medallion {
    width: 142px;
    height: 142px;
  }

  .ec-supply-medallion span {
    width: 96px;
    height: 96px;
    font-size: 17px;
  }

  .ec-market {
    margin-top: 40px;
    padding: 17px;
  }

  .ec-market-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .ec-sell-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .ec-trade-card {
    grid-template-columns: 1fr;
  }

  .ec-trade-card > img {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 1;
  }

  .ec-faq-grid {
    gap: 22px;
  }

  .ec-faq-head {
    grid-template-columns: 50px 1fr;
    gap: 0 12px;
  }

  .ec-faq-item summary {
    padding: 17px 38px 17px 0;
    font-size: 15px;
  }

  .ec-faq-item p {
    padding-right: 15px;
    font-size: 16px;
  }

  .ec-footer {
    padding-top: 42px;
  }

  .ec-dock {
    padding-inline: 0;
  }

  .ec-dock a {
    gap: 4px;
    padding: 0 2px;
    font-size: 7px;
  }

  .ec-tab-icon {
    transform: scale(0.9);
  }
}

@media (max-width: 370px) {
  .ec-topline {
    padding-inline: 10px;
  }

  .ec-brand-word {
    display: none;
  }

  .ec-dock a {
    font-size: 6.5px;
  }

  .ec-dock a:nth-child(6) span:last-child {
    display: none;
  }

  .ec-clock span {
    font-size: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
