:root {
  --yellow: #ffe500;
  --black: #151514;
  --ink: #23221f;
  --muted: #777268;
  --line: #ebe5d8;
  --paper: #f7f3ea;
  --white: #fffdf8;
  --green: #08b85a;
  --red: #f05245;
  --blue: #246bfe;
  --shadow: 0 22px 70px rgba(18, 18, 16, 0.16);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% -6%, rgba(255, 229, 0, 0.72), transparent 28%),
    linear-gradient(145deg, #f4f0e7 0%, #fffdf8 56%, #eaf1ff 100%);
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

h1,
h2,
h3,
p {
  margin: 0;
}

body.locked .site-shell {
  filter: blur(8px);
  pointer-events: none;
  user-select: none;
}

.invite-gate {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(15, 15, 14, 0.68);
  backdrop-filter: blur(10px);
}

body.locked .invite-gate {
  display: grid;
}

.gate-card,
.panel,
.wallet-card,
.api-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 12px 32px rgba(20, 19, 18, 0.08);
}

.gate-card {
  width: min(390px, 100%);
  padding: 26px;
}

.logo-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--black);
  background: var(--yellow);
  font-weight: 950;
}

.logo-mark.large {
  width: 66px;
  height: 66px;
  margin-bottom: 24px;
  font-size: 22px;
}

.eyebrow,
.muted {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.gate-card h1 {
  margin-top: 14px;
  font-size: 38px;
  line-height: 1;
}

.gate-copy {
  margin: 10px 0 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.45;
}

label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

input,
select {
  width: 100%;
  height: 46px;
  margin-top: 7px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  color: var(--black);
  background: #faf8f2;
  font-weight: 900;
}

.form-error {
  display: block;
  min-height: 18px;
  margin-top: 12px;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
}

.site-shell {
  width: min(1180px, calc(100vw - 28px));
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 414px;
  align-items: center;
  gap: 58px;
  margin: 0 auto;
  padding: 34px 0;
}

.desktop-panel h2 {
  max-width: 680px;
  color: var(--black);
  font-size: clamp(44px, 6vw, 82px);
  line-height: 0.95;
  letter-spacing: 0;
}

.desktop-panel p {
  max-width: 590px;
  margin-top: 24px;
  color: #4c4940;
  font-size: 19px;
  line-height: 1.5;
  font-weight: 760;
}

.desktop-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.desktop-proof span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(21, 21, 20, 0.14);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.7);
  font-size: 13px;
  font-weight: 950;
}

.app-frame {
  position: relative;
  width: 414px;
  height: 860px;
  display: flex;
  flex-direction: column;
  border: 10px solid #111;
  border-radius: 42px;
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.app-top,
.screen-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 8px;
}

.app-top strong,
.screen-head h2 {
  display: block;
  margin-top: 2px;
  font-size: 22px;
  line-height: 1.05;
}

.screen-head {
  justify-content: flex-start;
  padding: 4px 0 16px;
}

.screen-head > div {
  flex: 1;
}

.icon-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--black);
  background: #fff;
  font-size: 22px;
  font-weight: 950;
}

.screen {
  display: none;
  flex: 1;
  overflow: auto;
  padding: 10px 18px 92px;
  scrollbar-width: none;
}

.screen::-webkit-scrollbar {
  display: none;
}

.screen.active {
  display: block;
}

.hero-card,
.rank-hero {
  position: relative;
  min-height: 252px;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  border-radius: 8px;
  overflow: hidden;
  color: #fff;
  background: #111;
}

.hero-card img,
.rank-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card::after,
.rank-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.86));
}

.hero-card > div,
.rank-hero > div {
  position: relative;
  z-index: 1;
}

.hero-card h2 {
  max-width: 290px;
  font-size: 32px;
  line-height: 1;
}

.hero-card p {
  margin: 10px 0 16px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.4;
}

.pill,
.status {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--black);
  font-size: 11px;
  font-weight: 950;
}

.pill.dark {
  color: var(--yellow);
  background: #111;
}

.status {
  color: var(--black);
  background: var(--yellow);
}

.primary-btn,
.secondary-btn,
.mission-row button,
.section-title button {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 950;
}

.primary-btn {
  color: var(--yellow);
  background: var(--black);
}

.secondary-btn,
.mission-row button {
  color: var(--black);
  border: 1px solid var(--black);
  background: transparent;
}

.section-title button {
  color: var(--muted);
  background: transparent;
}

.full {
  width: 100%;
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.quick-stats article {
  min-height: 86px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.quick-stats strong,
.quick-stats span {
  display: block;
}

.quick-stats strong {
  font-size: 19px;
}

.quick-stats span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.progress-card,
.profile-hero-card {
  margin-top: 14px;
  padding: 16px;
  border-radius: 8px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 14%, rgba(255, 229, 0, 0.5), transparent 34%),
    linear-gradient(135deg, #121212, #2c2a22);
}

.progress-head,
.progress-meta,
.xp-reward {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.progress-head h3 {
  margin-top: 6px;
  font-size: 24px;
}

.progress-head strong {
  color: var(--yellow);
  font-size: 20px;
}

.xp-track {
  height: 10px;
  margin: 16px 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.xp-track span {
  display: block;
  width: 48%;
  height: 100%;
  border-radius: inherit;
  background: var(--yellow);
}

.progress-meta span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 900;
}

.panel {
  margin-top: 14px;
  padding: 16px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.section-title h3 {
  font-size: 18px;
}

.mission-row,
.mission-item,
.rank-row,
.tx,
.match-candidate {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.mission-list {
  display: grid;
  gap: 8px;
}

.mission-item {
  min-height: 58px;
}

.mission-item > span {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #c8c1b3;
}

.mission-item.active > span {
  background: var(--yellow);
  box-shadow: 0 0 0 5px rgba(255, 229, 0, 0.22);
}

.mission-item.done > span {
  background: var(--green);
}

.mission-item strong,
.mission-item small {
  display: block;
}

.mission-item small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.badge-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.badge-card {
  min-height: 72px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f6f1e7;
  opacity: 0.7;
}

.badge-card.unlocked {
  border-color: rgba(8, 184, 90, 0.4);
  background: #fff;
  opacity: 1;
}

.badge-card strong,
.badge-card span {
  display: block;
}

.badge-card span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.mission-row {
  justify-content: space-between;
}

.mission-row strong,
.mission-row span,
.rank-row strong,
.rank-row small,
.tx strong,
.tx small {
  display: block;
}

.mission-row span,
.rank-row small,
.tx small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.rank-row {
  margin-top: 8px;
}

.rank-number {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--black);
  font-weight: 950;
}

.rank-row div {
  flex: 1;
}

.rank-row em {
  color: var(--black);
  font-style: normal;
  font-size: 12px;
  font-weight: 950;
}

.flow-steps,
.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  min-height: 42px;
  padding: 4px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7f4ed;
}

.flow-steps span {
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
}

.flow-steps span.active {
  color: var(--yellow);
  background: var(--black);
}

.segmented {
  grid-template-columns: 1fr 1fr;
  margin-bottom: 13px;
}

.segmented button {
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 950;
}

.segmented button.active {
  color: var(--yellow);
  background: var(--black);
}

.form-panel label {
  margin-bottom: 13px;
}

.two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.conversion-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 10px 12px;
  margin-bottom: 13px;
  border-radius: 8px;
  background: #171717;
}

.conversion-card span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 11px;
  font-weight: 900;
}

.conversion-card strong {
  color: var(--yellow);
  font-size: 13px;
  text-align: right;
}

.api-preview {
  display: none;
  margin-top: 14px;
  padding: 16px;
}

.api-preview.visible {
  display: block;
}

.api-preview.success {
  border-color: rgba(8, 184, 90, 0.38);
}

.api-preview.error {
  border-color: rgba(240, 82, 69, 0.38);
}

.api-preview strong,
.api-preview span {
  display: block;
}

.api-preview span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.matchmaking-card,
.reward-card,
.result-card {
  margin-top: 14px;
  padding: 18px;
  border-radius: 8px;
  color: #fff;
  background:
    radial-gradient(circle at 86% 18%, rgba(255, 229, 0, 0.45), transparent 34%),
    linear-gradient(135deg, #151515, #33322b);
}

.matchmaking-card {
  display: none;
}

.matchmaking-card.visible {
  display: block;
}

.matchmaking-card h3,
.reward-card h3 {
  margin-top: 8px;
  font-size: 22px;
}

.matchmaking-card p,
.reward-card p {
  margin: 8px 0 16px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.42;
}

.match-candidate {
  margin-top: 10px;
  justify-content: space-between;
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
}

.match-candidate strong,
.match-candidate span {
  display: block;
}

.match-candidate span {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  font-weight: 800;
}

.match-candidate em {
  color: var(--yellow);
  font-style: normal;
  font-size: 12px;
  font-weight: 950;
}

.reward-card .secondary-btn {
  color: var(--yellow);
  border-color: var(--yellow);
}

.result-card {
  min-height: 292px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 229, 0, 0.9), transparent 34%),
    linear-gradient(155deg, #222 0%, #080808 100%);
}

.winner-badge {
  width: fit-content;
  margin-bottom: auto;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--black);
  background: var(--yellow);
  font-size: 12px;
  font-weight: 950;
}

.result-card h3 {
  font-size: 34px;
}

.result-card p {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 800;
}

.payout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.payout span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 900;
}

.payout strong {
  color: var(--yellow);
  font-size: 24px;
}

.xp-reward {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.xp-reward span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 900;
}

.xp-reward strong {
  color: var(--yellow);
  font-size: 16px;
}

.profile-hero-card {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar-mark {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: var(--black);
  background: var(--yellow);
  font-size: 28px;
  font-weight: 950;
}

.profile-hero-card h3 {
  margin-top: 8px;
  font-size: 28px;
}

.profile-hero-card p {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 800;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.profile-stats div {
  min-height: 76px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.profile-stats strong,
.profile-stats span {
  display: block;
}

.profile-stats strong {
  font-size: 24px;
}

.profile-stats span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.verification-list {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.verification-list div {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  font-weight: 900;
}

.verification-list div::before {
  content: "";
  width: 9px;
  height: 9px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--green);
}

.wallet-card {
  padding: 20px;
  color: #fff;
  background:
    radial-gradient(circle at 84% 20%, rgba(255, 229, 0, 0.46), transparent 32%),
    linear-gradient(135deg, #111, #282820);
}

.wallet-card span,
.wallet-card small,
.wallet-card strong {
  display: block;
}

.wallet-card span,
.wallet-card small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 850;
}

.wallet-card strong {
  margin: 10px 0 4px;
  color: var(--yellow);
  font-size: 34px;
}

.wallet-card button {
  margin-top: 18px;
  color: var(--black);
  background: var(--yellow);
}

.tx-list {
  display: grid;
  gap: 8px;
}

.tx-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: var(--black);
  background: var(--line);
  font-weight: 950;
}

.tx-icon.win {
  color: #fff;
  background: var(--green);
}

.tx-icon.hold {
  background: var(--yellow);
}

.rank-hero {
  min-height: 180px;
}

.rank-hero h3 {
  font-size: 27px;
}

.leaderboard {
  display: grid;
  gap: 8px;
}

.leaderboard .rank-row {
  margin-top: 0;
}

.bottom-nav {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 16px 40px rgba(20, 19, 18, 0.12);
}

.nav-btn {
  min-height: 42px;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 950;
}

.nav-btn.active {
  color: var(--yellow);
  background: var(--black);
}

@media (max-width: 900px) {
  body {
    background: var(--white);
  }

  .site-shell {
    width: 100%;
    min-height: 100vh;
    display: block;
    padding: 0;
  }

  .desktop-panel {
    display: none;
  }

  .app-frame {
    width: 100%;
    min-height: 100vh;
    height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .screen {
    padding-inline: 16px;
  }

  .app-top {
    padding-inline: 16px;
  }
}

@media (max-width: 360px) {
  .quick-stats {
    grid-template-columns: 1fr;
  }

  .two-cols {
    grid-template-columns: 1fr;
  }

  .hero-card h2 {
    font-size: 28px;
  }
}
