/* ==========================================================================
   $PRESTIGE — stripped down
   ========================================================================== */

:root {
  --bg: #000;
  --panel: #0b0b0c;
  --panel-2: #101012;
  --line: #232326;
  --line-soft: #1a1a1d;
  --text: #ece9e2;
  --muted: #8b8b90;
  --gold: #e9c563;
  --orange: #ff8a1e;
  --wrap: 900px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Barlow Condensed', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

code { font-family: 'Share Tech Mono', ui-monospace, monospace; }

::selection { background: var(--orange); color: #000; }

/* ------------------------------------------------------------------ bar */
.bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 20px;
  background: rgba(0, 0, 0, .88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
}

.bar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: Teko, sans-serif;
  font-size: 26px;
  letter-spacing: .06em;
  line-height: 1;
}

.bar__brand img { border-radius: 6px; display: block; }

.bar__mc {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
}

.bar__mc-label {
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--muted);
  text-transform: uppercase;
}

.bar__mc-value {
  font-family: 'Share Tech Mono', monospace;
  font-size: 15px;
  color: var(--gold);
}

/* ------------------------------------------------------------------ hero */
.hero {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 54px 20px 40px;
  text-align: center;
}

.hero__icon {
  width: 260px;
  height: 260px;
  max-width: 62vw;
  display: block;
  margin: 0 auto;
  border-radius: 18px;
}

.hero__title {
  margin: 18px 0 22px;
  font-family: Teko, sans-serif;
  font-weight: 700;
  font-size: clamp(56px, 13vw, 104px);
  line-height: .92;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* tweet */
.tweet {
  max-width: 560px;
  margin: 0 auto 22px;
  padding: 16px 18px;
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.tweet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.tweet__who { display: flex; flex-direction: column; line-height: 1.15; }
.tweet__name { font-weight: 600; }
.tweet__handle { font-size: 14px; color: var(--muted); }
.tweet__logo { color: var(--muted); font-size: 18px; }

.tweet blockquote {
  margin: 0;
  font-size: 21px;
  line-height: 1.35;
}

.tweet__link {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}

.tweet__link:hover { color: var(--orange); }

/* contract address */
.ca {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  margin: 0 auto 22px;
  padding: 9px 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

.ca:hover, .ca:focus-visible { border-color: var(--orange); outline: none; }

.ca code {
  font-size: 13px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.ca__hint {
  flex: none;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--orange);
}

/* buttons */
.cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 128px;
  padding: 11px 22px;
  font-family: Teko, sans-serif;
  font-size: 20px;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color .15s, color .15s, transform .15s;
}

.btn:hover { border-color: #3b3b40; transform: translateY(-1px); }

.btn--primary {
  background: var(--orange);
  border-color: var(--orange);
  color: #000;
  font-weight: 600;
}

.btn--primary:hover { background: #ffa049; border-color: #ffa049; }

/* ------------------------------------------------------------------ live */
.live {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
}

@media (min-width: 620px) {
  .live { padding: 26px 28px; }
}

.live__now {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.live__emblem {
  flex: none;
  width: 72px;
  height: 72px;
  display: block;
}

.live__emblem svg { width: 100%; height: 100%; display: block; }
.live__emblem.is-locked { opacity: .3; filter: grayscale(1); }

.live__meta { display: flex; flex-direction: column; min-width: 0; }

.live__level {
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--orange);
}

.live__name {
  font-family: Teko, sans-serif;
  font-weight: 600;
  font-size: 40px;
  line-height: 1;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.live__mc {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.live__mc-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

.live__mc-value {
  font-family: 'Share Tech Mono', monospace;
  font-size: 30px;
  line-height: 1.1;
  color: var(--gold);
}

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3a3a3e;
}

.pulse.is-live {
  background: #4ade80;
  animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .25; }
}

/* progress */
.live__bar { margin-top: 20px; }

.live__bar-track {
  height: 10px;
  background: #16161a;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.live__bar-track i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #a3480a, var(--orange) 70%, var(--gold));
  transition: width .7s cubic-bezier(.2, .7, .2, 1);
}

.live__bar-legend {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.live__note {
  margin: 14px 0 0;
  font-size: 15px;
  color: var(--muted);
}

.live__note a { color: var(--orange); }

/* ------------------------------------------------------------------ ladder */
.ladder-sec {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 48px 20px 20px;
}

.ladder-sec h2 {
  margin: 0;
  font-family: Teko, sans-serif;
  font-weight: 600;
  font-size: 42px;
  line-height: 1;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.ladder-lede {
  margin: 6px 0 22px;
  color: var(--muted);
}

.ladder {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.rank {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  opacity: .5;
  transition: opacity .2s, border-color .2s, background .2s;
}

.rank__emblem {
  flex: none;
  width: 46px;
  height: 46px;
  display: block;
  filter: grayscale(1);
  transition: filter .2s;
}

.rank__emblem svg { width: 100%; height: 100%; display: block; }

.rank__text { display: flex; flex-direction: column; min-width: 0; }

.rank__level {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}

.rank__name {
  font-family: Teko, sans-serif;
  font-size: 26px;
  line-height: 1;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.rank__mc {
  margin-left: auto;
  font-family: 'Share Tech Mono', monospace;
  font-size: 16px;
  color: var(--muted);
}

.rank__state {
  flex: none;
  width: 24px;
  text-align: center;
  font-size: 15px;
  color: #4a4a50;
}

.rank.is-earned {
  opacity: 1;
  border-color: var(--line);
}

.rank.is-earned .rank__emblem { filter: none; }
.rank.is-earned .rank__mc { color: var(--gold); }
.rank.is-earned .rank__state { color: #4ade80; }

.rank.is-next {
  opacity: 1;
  border-color: #4a3413;
  background: linear-gradient(90deg, rgba(255, 138, 30, .07), transparent 60%);
}

.rank.is-next .rank__emblem { filter: grayscale(.6); }
.rank.is-next .rank__state { color: var(--orange); }

.rank--master.is-earned { border-color: var(--gold); }

/* ------------------------------------------------------------------ foot */
.foot {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 44px 20px 56px;
  text-align: center;
  border-top: 1px solid var(--line-soft);
  margin-top: 40px;
}

.foot code {
  display: inline-block;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  overflow-wrap: anywhere;
}

.foot code:hover { color: var(--orange); }

.foot p {
  max-width: 560px;
  margin: 14px auto 0;
  font-size: 13px;
  line-height: 1.6;
  color: #5f5f65;
}

/* ------------------------------------------------------------------ toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 20px);
  z-index: 40;
  padding: 10px 20px;
  background: #16161a;
  border: 1px solid var(--orange);
  border-radius: 999px;
  font-family: Teko, sans-serif;
  font-size: 20px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}

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

/* ------------------------------------------------------------------ small */
@media (max-width: 560px) {
  .live__mc { margin-left: 0; align-items: flex-start; width: 100%; }
  .live__mc-value { font-size: 26px; }
  .rank__mc { font-size: 14px; }
  .btn { flex: 1 1 auto; }
}

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