:root {
  color-scheme: dark;
  --bg: #080b0f;
  --panel: #111820;
  --panel-2: #17202a;
  --text: #eef5f8;
  --muted: #9fb0bb;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #3ddc97;
  --accent-2: #ffcf5a;
  --accent-3: #4cb7ff;
  --danger: #ff6b6b;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

/* SA1T campaign overrides */
.claim-flow-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: stretch;
}

.claim-rule-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.claim-rule-strip div {
  min-height: 76px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 8%, transparent), transparent),
    var(--bg);
}

.claim-rule-strip span,
.mini-rule-list span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.claim-rule-strip strong,
.mini-rule-list strong {
  display: block;
  color: var(--text);
  font-size: 20px;
}

.claim-panel,
.summary-panel,
.draw-guide-panel {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
}

.summary-panel,
.draw-guide-panel {
  align-self: stretch;
  align-content: start;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent-2) 10%, transparent), transparent 44%),
    var(--bg);
}

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

.status-row,
.claim-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.status-row span,
.claim-box span,
.allocation-list span,
.rule-grid span,
.mechanic-grid span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.status-row strong,
.claim-box strong {
  font-size: 20px;
}

.claim-box small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.allocation-list,
.mini-rule-list,
.rule-grid,
.mechanic-grid,
.faq-list {
  display: grid;
  gap: 12px;
}

.allocation-list div,
.mini-rule-list div,
.rule-grid article,
.mechanic-grid article,
.faq-list article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.allocation-list strong,
.mini-rule-list strong,
.rule-grid strong,
.mechanic-grid strong {
  display: block;
  color: var(--accent);
  font-size: 22px;
}

.summary-panel > p:not(.eyebrow),
.draw-guide-panel > p:not(.eyebrow),
.rule-grid p,
.mechanic-grid p,
.faq-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

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

.mechanic-grid code {
  overflow-wrap: anywhere;
  color: var(--accent-2);
  font-size: 12px;
}

.draw-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.draw-layout .draw-card {
  min-height: 100%;
}

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

.draw-progress i {
  width: var(--w, 0%);
}

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

.faq-list h3 {
  margin-bottom: 8px;
}

.eligible-card {
  background: var(--panel);
}

.eligible-card.active {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent),
    var(--panel);
}

.top-auth-user > div,
.status-row > div,
.claim-box > div {
  min-width: 0;
}

.status-row .button,
.claim-box .button {
  flex: 0 0 auto;
}

.button:focus-visible,
.auth-button:focus-visible,
.tab-button:focus-visible,
.language-button:focus-visible,
.icon-button:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

@media (max-width: 1180px) {
  .claim-flow-grid,
  .draw-layout,
  .mechanic-grid,
  .rule-grid,
  .faq-list {
    grid-template-columns: 1fr;
  }

  .claim-rule-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .claim-panel,
  .summary-panel,
  .draw-guide-panel {
    padding: 18px;
  }
}

@media (max-width: 560px) {
  .claim-rule-strip {
    grid-template-columns: 1fr;
  }

  .app-shell {
    padding-top: 194px;
  }

  .status-row,
  .claim-box {
    align-items: stretch;
    flex-direction: column;
  }

  .status-row .button,
  .claim-box .button {
    width: 100%;
  }
}

:root.light {
  color-scheme: light;
  --bg: #f4f7fb;
  --panel: #ffffff;
  --panel-2: #eef4f8;
  --text: #101923;
  --muted: #5d6b78;
  --line: rgba(15, 35, 52, 0.13);
  --accent: #10936f;
  --accent-2: #c58316;
  --accent-3: #2774bd;
  --danger: #c94545;
  --shadow: 0 18px 55px rgba(24, 43, 63, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button,
input,
select {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.topbar {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 52px);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(18px);
}

.brand,
.nav,
.hero-actions,
.metric-strip,
.rank-header,
.toolbar,
.footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--accent);
  color: #06120d;
  font-weight: 900;
}

.nav {
  gap: clamp(12px, 2vw, 28px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.nav a:hover {
  color: var(--text);
}

.tabs {
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.tab-button {
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.tab-button.active {
  background: var(--accent);
  color: #06120d;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
}

.toolbar {
  gap: 8px;
}

.top-auth {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.top-auth-user {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding-left: 4px;
}

.top-auth-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

.top-auth.connected .top-auth-avatar {
  background: var(--accent);
  color: #06120d;
}

.top-auth-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.top-auth strong,
.top-auth small {
  display: block;
  overflow: hidden;
  max-width: 126px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-auth strong {
  color: var(--text);
  font-size: 12px;
  line-height: 1.2;
}

.top-auth small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.auth-button {
  min-height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #06120d;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.language-button {
  min-width: 54px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.icon-button svg,
.button svg,
.card-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  padding: 130px clamp(18px, 5vw, 70px) 72px;
  overflow: hidden;
}

.app-shell {
  min-height: auto;
  padding: 88px clamp(18px, 4vw, 64px) 28px;
}

.app-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(380px, 0.8fr);
  gap: clamp(22px, 4vw, 56px);
  align-items: center;
  margin-bottom: 16px;
}

.app-intro h1 {
  max-width: 780px;
  margin-bottom: 16px;
  font-size: clamp(44px, 6.2vw, 92px);
  line-height: 0.96;
  text-wrap: balance;
}

.app-intro p:not(.eyebrow) {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.55;
}

.compact-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(132px, 1fr));
  justify-content: stretch;
  align-items: stretch;
}

.compact-strip div {
  min-width: 0;
  padding: 18px 20px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--panel) 92%, transparent), color-mix(in srgb, var(--panel-2) 74%, transparent));
}

.tab-panel {
  display: none;
  scroll-margin-top: 96px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.tab-panel.active {
  display: block;
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.panel-header h2 {
  max-width: 820px;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.05;
}

.panel-header p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.6;
}

.rank-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.panel-split {
  padding: 0;
}

.board-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.board-sidebar {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 10px;
}

.board-sidebar > div,
.reward-rule {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
}

.board-sidebar span,
.reward-rule span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.board-sidebar strong {
  display: block;
  line-height: 1.35;
}

.reward-rule strong {
  color: var(--accent);
  font-size: 24px;
}

.reward-rule.highlight strong {
  color: var(--accent-2);
}

.board-main {
  min-width: 0;
}

.board-filters {
  justify-items: start;
  justify-content: start;
  width: 100%;
  margin-bottom: 14px;
}

.board-filters .segmented,
.board-filters .tag-filter {
  justify-self: start;
}

.board-filters .tag-filter {
  justify-content: flex-start;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

#hookCanvas {
  width: 100%;
  height: 100%;
  display: block;
  background:
    radial-gradient(circle at 78% 22%, rgba(61, 220, 151, 0.3), transparent 26%),
    linear-gradient(135deg, #07100b 0%, #0f1821 45%, #17110a 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(52px, 12vw, 128px);
  line-height: 0.88;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4.8vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.hero-copy {
  max-width: 720px;
  color: rgba(238, 245, 248, 0.82);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.55;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  background: var(--accent);
  color: #06120d;
  border-color: transparent;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.button.full {
  width: 100%;
}

.button.is-loading {
  position: relative;
  overflow: hidden;
  opacity: 1;
}

.button.is-loading::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 999px;
  animation: button-spin 820ms linear infinite;
}

.button.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-110%);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, #fff 28%, transparent), transparent);
  animation: button-sheen 1400ms ease-in-out infinite;
}

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

@keyframes button-sheen {
  60%,
  100% {
    transform: translateX(110%);
  }
}

.metric-strip {
  flex-wrap: wrap;
  gap: 12px;
}

.metric-strip div {
  min-width: 180px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(8, 11, 15, 0.58);
}

.metric-strip strong {
  display: block;
  font-size: 24px;
}

.metric-strip span {
  color: rgba(238, 245, 248, 0.76);
  font-size: 13px;
}

.band {
  padding: 82px clamp(18px, 5vw, 70px);
}

.band.compact {
  padding-top: 68px;
}

.section-heading {
  width: min(820px, 100%);
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading.left {
  margin-left: 0;
  text-align: left;
}

.section-heading p {
  color: var(--muted);
  line-height: 1.65;
}

.flow-grid,
.safety-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.flow-item,
.subsidy-card,
.apply-form,
.safety-grid div,
.token-panel,
.leader-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.flow-item {
  min-height: 240px;
  padding: 22px;
}

.flow-item .step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 30px;
  margin-bottom: 34px;
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--accent-2);
  font-weight: 900;
}

.flow-item p,
.safety-grid p,
.subsidy-card p,
.draw-card p {
  color: var(--muted);
  line-height: 1.6;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
}

.token-panel {
  padding: 24px;
}

.airdrop-section {
  background: color-mix(in srgb, var(--accent-3) 6%, var(--bg));
}

.airdrop-panel {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.airdrop-status,
.claim-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.airdrop-status span,
.claim-row span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.airdrop-status strong,
.claim-row strong {
  font-size: 20px;
}

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

.eligible-card {
  min-height: 86px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.eligible-card.active {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
}

.eligible-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.eligible-card strong {
  line-height: 1.3;
}

.template-picker,
.tweet-link-input {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

#tweetText,
.tweet-link-input input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--text);
}

#tweetText {
  min-height: 132px;
  padding: 14px;
  resize: vertical;
  line-height: 1.5;
}

.tweet-link-input input {
  min-height: 44px;
  padding: 0 12px;
}

.tweet-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.claim-row {
  padding: 16px;
  border-radius: 8px;
  background: var(--panel-2);
}

.claim-message {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.claim-message.pending {
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--accent-2) 48%, var(--line));
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent-2) 14%, transparent), transparent),
    color-mix(in srgb, var(--panel-2) 78%, transparent);
  color: var(--text);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.draw-section {
  background: color-mix(in srgb, var(--accent) 6%, var(--bg));
}

.draw-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.draw-card {
  display: flex;
  flex-direction: column;
  min-height: 320px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.draw-card.highlight {
  border-color: color-mix(in srgb, var(--accent-2) 45%, var(--line));
}

.plan-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 28px;
  padding: 0 10px;
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 900;
}

.draw-progress {
  height: 12px;
  margin: 30px 0 14px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--panel-2);
}

.draw-progress i {
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.draw-meta,
.supply-number {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.draw-meta span {
  color: var(--muted);
  font-weight: 700;
}

.draw-meta strong {
  color: var(--accent);
}

.draw-countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin: 0 0 14px;
  padding: 9px 12px;
  border: 1px solid color-mix(in srgb, var(--accent-2) 28%, var(--line));
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent-2) 12%, transparent), transparent),
    color-mix(in srgb, var(--panel-2) 72%, transparent);
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.draw-entry-button {
  margin-top: auto;
}

.simple-token {
  display: grid;
}

.supply-number {
  align-items: flex-start;
  flex-direction: column;
  margin-bottom: 12px;
  padding: 18px;
  border-radius: 8px;
  background: var(--panel-2);
}

.supply-number span,
.supply-number small {
  color: var(--muted);
}

.supply-number strong {
  font-size: clamp(30px, 4vw, 44px);
}

.allocation-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.allocation-row:last-child {
  border-bottom: 0;
}

.allocation-row span {
  color: var(--muted);
}

.allocation-row i {
  grid-column: 1 / -1;
  display: block;
  height: 9px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--accent), var(--accent-2)) 0 0 / var(--w) 100% no-repeat,
    var(--panel-2);
}

.rank-header {
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.rank-header .section-heading {
  margin-bottom: 0;
}

.segmented {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  scrollbar-width: none;
}

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

.filter-panel {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.segment {
  min-width: 82px;
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

.segment.active {
  background: var(--accent);
  color: #06120d;
}

.tag-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.tag-pill {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.tag-pill.active {
  border-color: transparent;
  background: var(--accent-2);
  color: #17110a;
}

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

.leader-row {
  display: grid;
  grid-template-columns: 36px minmax(190px, 1fr) 112px minmax(210px, 1.1fr) minmax(142px, 0.78fr) 88px 124px;
  gap: 10px;
  align-items: center;
  min-height: 118px;
  padding: 14px;
}

.creator-row {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 8%, transparent), transparent 34%),
    var(--panel);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--accent-2);
  font-weight: 900;
}

.creator-profile {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.creator-avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 20%, var(--panel-2));
  color: var(--accent);
  font-weight: 900;
}

.creator-name {
  min-width: 0;
}

.creator-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.creator-tags i {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
}

.creator-name strong,
.creator-name span,
.wallet-button {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.creator-name span,
.leader-label {
  color: var(--muted);
  font-size: 13px;
}

.wallet-cell,
.yield-cell,
.score-cell,
.follow-cell {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.wallet-button {
  width: 100%;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--text);
  text-align: left;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.chain-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.chain-stats div,
.yield-cell,
.score-cell {
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-2) 76%, transparent);
}

.chain-stats strong,
.yield-cell strong,
.score-cell strong {
  display: block;
  margin-top: 4px;
}

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

.yield-cell small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-weight: 800;
}

.score-cell strong {
  color: var(--accent-2);
  font-size: 26px;
  line-height: 1;
}

.score-cell small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.follow-cell .button {
  min-height: 40px;
  padding: 0 10px;
}

.mutual-button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid color-mix(in srgb, var(--accent-2) 50%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent-2) 12%, transparent);
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.mutual-button.pending {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
}

.trust {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent);
  font-weight: 800;
}

.empty-state {
  min-height: 96px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--panel);
  font-weight: 800;
}

.board-message {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

.task-economy {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.task-economy article {
  min-height: 132px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
}

.task-economy span,
.task-card p {
  color: var(--muted);
}

.task-economy span {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 800;
}

.task-economy strong {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 22px;
}

.task-economy p,
.task-card p {
  margin: 0;
  line-height: 1.5;
}

.task-board {
  display: grid;
  gap: 10px;
}

.protocol-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.protocol-flow article {
  min-height: 146px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 8%, transparent), transparent 46%),
    var(--panel);
}

.protocol-flow span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.protocol-flow strong {
  display: block;
  margin-bottom: 10px;
  color: var(--accent-2);
  font-size: 20px;
}

.protocol-flow p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.claim-wallet {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) 160px;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
}

.claim-wallet div {
  min-height: 58px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.claim-wallet span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.claim-wallet strong {
  display: block;
  font-size: 20px;
}

.claim-wallet small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.manual-test-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(220px, 0.75fr) minmax(260px, 0.9fr);
  gap: 10px;
  align-items: end;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
}

.manual-test-panel strong {
  display: block;
  margin-bottom: 6px;
  color: var(--accent-2);
  font-size: 18px;
}

.manual-test-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.manual-test-panel label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.manual-test-panel input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
}

.manual-test-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.manual-test-actions .button {
  min-height: 44px;
  padding: 0 10px;
}

.manual-test-status {
  grid-column: 1 / -1;
  min-height: 38px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.task-card {
  display: grid;
  grid-template-columns: minmax(230px, 1.15fr) minmax(180px, 0.9fr) minmax(220px, 1.1fr) 96px 160px;
  gap: 10px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--accent-2) 8%, transparent), transparent 36%),
    var(--panel);
  box-shadow: var(--shadow);
}

.task-main {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.task-budget,
.task-rewards,
.task-slots {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-2) 76%, transparent);
}

.task-budget,
.task-rewards,
.task-actions {
  display: grid;
  gap: 8px;
}

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

.task-budget strong,
.task-rewards strong,
.task-slots strong {
  display: block;
  margin-top: 4px;
}

.task-progress {
  grid-column: 1 / -1;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--panel);
}

.task-progress i {
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.task-slots strong {
  color: var(--accent-2);
  font-size: 20px;
}

.task-actions .button {
  min-height: 40px;
  padding: 0 12px;
}

.task-status {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.task-status span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.subsidy-card,
.apply-form {
  padding: clamp(22px, 3vw, 32px);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: var(--accent-3);
  color: #06121a;
}

.subsidy-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.subsidy-steps span {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 700;
}

.apply-form label {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  color: var(--muted);
  font-weight: 700;
}

input[type="range"] {
  accent-color: var(--accent);
}

select {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--text);
}

.checkbox-row {
  display: flex !important;
  align-items: center;
  gap: 10px !important;
}

.score-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  margin: 22px 0;
  padding: 16px;
  border-radius: 8px;
  background: var(--panel-2);
}

.score-box span {
  color: var(--muted);
}

.score-box strong {
  font-size: 34px;
}

.safety {
  background: var(--panel-2);
}

.campaign {
  background: var(--panel-2);
}

.campaign-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.campaign-grid article {
  min-height: 180px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  box-shadow: var(--shadow);
}

.campaign-grid strong {
  display: block;
  margin-bottom: 18px;
  color: var(--accent-2);
  font-size: clamp(38px, 6vw, 64px);
  line-height: 0.9;
}

.campaign-grid span {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.5;
}

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

.safety-grid div {
  padding: 24px;
  background: var(--bg);
}

.tab-cards {
  margin-top: 14px;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.guide-grid article {
  min-height: 240px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
}

.guide-grid .step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 30px;
  margin-bottom: 34px;
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--accent-2);
  font-weight: 900;
}

.guide-grid p {
  color: var(--muted);
  line-height: 1.6;
}

.guide-token {
  margin-top: 14px;
}

.footer {
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 5vw, 70px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 1180px) {
  .topbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
  }

  .toolbar {
    margin-left: auto;
  }

  .hero {
    min-height: 88vh;
  }

  .flow-grid,
  .split,
  .draw-grid,
  .app-intro,
  .task-economy,
  .protocol-flow,
  .guide-grid,
  .safety-grid {
    grid-template-columns: 1fr;
  }

  .app-shell {
    padding-top: 138px;
  }

  .app-intro h1 {
    max-width: 760px;
    font-size: clamp(42px, 9vw, 74px);
  }

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

  .board-sidebar {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .leader-row {
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: start;
  }

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

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

  .manual-test-panel {
    grid-template-columns: 1fr;
  }

  .claim-wallet .button {
    grid-column: 1 / -1;
  }

  .creator-profile,
  .wallet-cell,
  .chain-stats,
  .yield-cell,
  .score-cell,
  .follow-cell {
    grid-column: 2;
    width: 100%;
  }

  .score-cell,
  .follow-cell {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
  }

  .score-cell .leader-label,
  .score-cell small {
    grid-column: 1 / -1;
  }

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

  .panel-header {
    flex-direction: column;
  }

  .rank-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .rank-actions .button {
    flex: 1 1 220px;
  }

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

  .filter-panel,
  .tag-filter {
    justify-items: stretch;
    justify-content: flex-start;
    width: 100%;
  }

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

@media (min-width: 1181px) and (max-width: 1440px) {
  .app-shell {
    padding-left: 32px;
    padding-right: 32px;
  }

  .tab-panel {
    padding: 16px;
  }

  .board-layout {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .leader-row {
    grid-template-columns: 34px minmax(178px, 1fr) 104px minmax(198px, 1.05fr) minmax(132px, 0.72fr) 78px 116px;
    gap: 8px;
  }

  .creator-avatar {
    width: 38px;
    height: 38px;
  }

  .creator-profile {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .leader-label,
  .creator-name span {
    font-size: 12px;
  }

  .chain-stats strong,
  .yield-cell strong,
  .wallet-button,
  .mutual-button {
    font-size: 12px;
  }
}

@media (max-width: 560px) {
  .topbar {
    min-height: 64px;
    gap: 10px;
  }

  .toolbar {
    order: 2;
    width: 100%;
    justify-content: space-between;
  }

  .top-auth {
    min-width: 0;
    flex: 1 1 auto;
  }

  .top-auth-user {
    flex: 1 1 auto;
  }

  .top-auth strong,
  .top-auth small {
    max-width: 120px;
  }

  .brand {
    min-width: 0;
  }

  .brand span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero {
    padding-top: 104px;
    padding-bottom: 44px;
  }

  .app-shell {
    padding-top: 150px;
  }

  .app-intro {
    gap: 16px;
  }

  .app-intro h1 {
    font-size: clamp(34px, 12vw, 48px);
    line-height: 1.02;
  }

  .app-intro p:not(.eyebrow) {
    font-size: 15px;
  }

  .compact-strip {
    grid-template-columns: 1fr;
  }

  .button,
  .hero-actions,
  .hero-actions a {
    width: 100%;
  }

  .metric-strip div,
  .segmented,
  .segment,
  .rank-actions .button {
    width: 100%;
  }

  .board-sidebar,
  .chain-stats,
  .yield-cell,
  .score-cell,
  .follow-cell,
  .task-rewards,
  .claim-wallet,
  .manual-test-actions {
    grid-template-columns: 1fr;
  }

  .leader-row {
    gap: 12px;
    padding: 14px;
  }

  .creator-profile {
    grid-template-columns: 1fr;
  }

  .creator-avatar {
    display: none;
  }

  .segmented {
    display: flex;
    width: 100%;
    overflow-x: auto;
  }

  .segment {
    flex: 0 0 94px;
  }

  .band {
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .subsidy-steps {
    grid-template-columns: 1fr;
  }

  .airdrop-status,
  .claim-row {
    align-items: stretch;
    flex-direction: column;
  }

  .eligibility-grid,
  .tweet-actions {
    grid-template-columns: 1fr;
  }

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

/* SA1T campaign final overrides */
.claim-panel,
.summary-panel {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
}

.summary-panel {
  align-self: stretch;
  align-content: start;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent-2) 10%, transparent), transparent 44%),
    var(--bg);
}

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

.status-row,
.claim-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.status-row span,
.claim-box span,
.allocation-list span,
.rule-grid span,
.mechanic-grid span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.status-row strong,
.claim-box strong {
  font-size: 20px;
}

.claim-box small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.allocation-list,
.rule-grid,
.mechanic-grid,
.faq-list {
  display: grid;
  gap: 12px;
}

.allocation-list div,
.rule-grid article,
.mechanic-grid article,
.faq-list article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.allocation-list strong,
.rule-grid strong,
.mechanic-grid strong {
  display: block;
  color: var(--accent);
  font-size: 22px;
}

.summary-panel > p:not(.eyebrow),
.rule-grid p,
.mechanic-grid p,
.faq-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

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

.mechanic-grid code {
  overflow-wrap: anywhere;
  color: var(--accent-2);
  font-size: 12px;
}

.draw-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.draw-layout .draw-card {
  min-height: 100%;
}

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

.draw-progress i {
  width: var(--w, 0%);
}

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

.faq-list h3 {
  margin-bottom: 8px;
}

.eligible-card {
  background: var(--panel);
}

.eligible-card.active {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent),
    var(--panel);
}

.top-auth-user > div,
.status-row > div,
.claim-box > div {
  min-width: 0;
}

.status-row .button,
.claim-box .button {
  flex: 0 0 auto;
}

.button:focus-visible,
.auth-button:focus-visible,
.tab-button:focus-visible,
.language-button:focus-visible,
.icon-button:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

@media (max-width: 1180px) {
  .draw-layout,
  .mechanic-grid,
  .rule-grid,
  .faq-list {
    grid-template-columns: 1fr;
  }

  .claim-panel,
  .summary-panel {
    padding: 18px;
  }
}

@media (max-width: 560px) {
  .status-row,
  .claim-box {
    align-items: stretch;
    flex-direction: column;
  }

  .status-row .button,
  .claim-box .button {
    width: 100%;
  }
}

/* Final SA1T claim-flow polish */
[hidden] {
  display: none !important;
}

.claim-flow-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: stretch;
}

.claim-rule-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.claim-rule-strip div,
.mini-rule-list div {
  min-height: 76px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 8%, transparent), transparent),
    var(--bg);
}

.claim-rule-strip span,
.mini-rule-list span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.claim-rule-strip strong,
.mini-rule-list strong {
  display: block;
  color: var(--text);
  font-size: 20px;
}

.draw-guide-panel {
  display: grid;
  align-self: stretch;
  align-content: start;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent-2) 10%, transparent), transparent 44%),
    var(--bg);
}

.draw-guide-panel > p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.mini-rule-list {
  display: grid;
  gap: 12px;
}

.next-draw-button {
  justify-self: stretch;
}

.standard-user-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.blue-draw-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

/* Full-fill draw experience */
#draw.tab-panel {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 28%),
    radial-gradient(circle at 92% 16%, color-mix(in srgb, var(--accent-2) 18%, transparent), transparent 26%),
    linear-gradient(180deg, color-mix(in srgb, var(--panel) 92%, #000), var(--panel));
}

#draw.tab-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 48%, color-mix(in srgb, var(--accent-2) 10%, transparent) 50%, transparent 52%),
    repeating-linear-gradient(135deg, color-mix(in srgb, #fff 4%, transparent) 0 1px, transparent 1px 18px);
  opacity: 0.24;
}

#draw > * {
  position: relative;
  z-index: 1;
}

#draw .panel-header {
  padding: 10px 0 8px;
}

#draw .panel-header h2 {
  max-width: 980px;
  text-shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
}

#draw .draw-layout {
  grid-template-columns: minmax(360px, 1.05fr) minmax(0, 1fr);
  gap: 16px;
}

#draw .draw-card {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  border-color: color-mix(in srgb, var(--accent-2) 58%, var(--line));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent-2) 18%, transparent), transparent 34%),
    linear-gradient(180deg, color-mix(in srgb, var(--panel-2) 76%, #000), var(--bg));
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 color-mix(in srgb, #fff 12%, transparent);
}

#draw .draw-card::before {
  content: "";
  position: absolute;
  inset: -40% -15% auto;
  height: 220px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent-2) 24%, transparent), transparent);
  transform: rotate(-8deg);
}

#draw .plan-tag {
  width: fit-content;
  color: #211604;
  background: linear-gradient(90deg, var(--accent-2), color-mix(in srgb, var(--accent) 60%, var(--accent-2)));
}

#draw .draw-card h3 {
  margin-bottom: 12px;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 0.95;
}

#draw .draw-card p {
  max-width: 760px;
}

#draw .draw-progress {
  height: 18px;
  margin-top: auto;
  border: 1px solid color-mix(in srgb, var(--accent-2) 32%, transparent);
  background: color-mix(in srgb, var(--bg) 68%, #000);
}

#draw .draw-progress i {
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 22px color-mix(in srgb, var(--accent) 46%, transparent);
}

#draw .draw-progress i::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, #fff 38%, transparent), transparent);
  animation: progress-flow 1800ms ease-in-out infinite;
}

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

#draw .draw-meta {
  margin-bottom: 12px;
}

#draw .draw-meta span {
  font-size: 18px;
  font-weight: 900;
}

.draw-balance-strip,
.draw-buy-panel {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-2) 70%, transparent);
}

.draw-balance-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.draw-balance-strip.low {
  border-color: color-mix(in srgb, var(--accent-2) 62%, var(--line));
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent-2) 13%, transparent), color-mix(in srgb, var(--panel-2) 70%, transparent));
}

.draw-balance-strip span,
.draw-buy-panel span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.draw-balance-strip strong {
  color: var(--text);
  font-size: 18px;
}

.draw-buy-panel {
  display: none;
}

.draw-buy-panel.active {
  display: grid;
}

.draw-entry-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-2) 70%, transparent);
}

.draw-entry-control span,
.draw-entry-control small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.draw-entry-control strong {
  display: block;
  margin: 4px 0;
  color: var(--text);
  font-size: 18px;
}

.entry-stepper {
  display: grid;
  grid-template-columns: 44px minmax(62px, 86px) 44px 62px;
  gap: 8px;
  align-items: center;
}

.entry-stepper input,
.icon-stepper,
.max-stepper {
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
  text-align: center;
}

.icon-stepper {
  cursor: pointer;
}

.max-stepper {
  cursor: pointer;
  background: color-mix(in srgb, var(--accent-2) 18%, var(--panel));
  color: var(--accent-2);
  font-size: 13px;
}

.icon-stepper:disabled,
.max-stepper:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.draw-buy-panel p {
  margin: 0;
}

.buy-route-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.buy-route {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
}

.buy-route.uniswap {
  background: #ff4fb8;
  color: #14050f;
  border-color: transparent;
}

.buy-route.gmgn {
  background: color-mix(in srgb, var(--accent-3) 72%, var(--panel));
  color: #041018;
  border-color: transparent;
}

.rules-faq-list {
  margin-top: 16px;
}

#draw .rule-grid {
  grid-template-columns: 1fr;
  gap: 16px;
}

#draw .rule-grid article {
  min-height: 160px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent 44%),
    color-mix(in srgb, var(--bg) 78%, var(--panel));
}

#draw .rule-grid strong {
  color: var(--accent-2);
  font-size: clamp(28px, 4vw, 44px);
}

@media (max-width: 1180px) {
  #draw .draw-layout,
  .draw-balance-strip,
  .buy-route-grid {
    grid-template-columns: 1fr;
  }

  #draw .draw-card {
    min-height: 0;
  }
}

.blue-draw-panel {
  display: grid;
  align-content: start;
  gap: 16px;
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
}

.stake-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.stake-panel {
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent-2) 12%, transparent), transparent 40%),
    var(--bg);
}

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

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

.stake-stats div {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-2) 74%, transparent);
}

.stake-stats span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.stake-stats strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--accent-2);
  font-size: clamp(18px, 2.4vw, 28px);
  line-height: 1.05;
}

.stake-input {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 900;
}

.stake-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px;
  gap: 8px;
}

.stake-input input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--text);
}

.stake-max-button {
  width: 100%;
  height: 48px;
}

.stake-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.referral-board {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-2) 74%, transparent);
}

.referral-rule-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.referral-rule-grid article {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
  border-radius: 8px;
  background:
    linear-gradient(180deg, color-mix(in srgb, #fff 5%, transparent), transparent 54%),
    color-mix(in srgb, var(--bg) 68%, transparent);
}

.referral-rule-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.referral-rule-grid strong {
  color: var(--accent-2);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.18;
}

.referral-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, auto) minmax(150px, auto);
  gap: 10px;
}

.referral-actions input {
  min-width: 0;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
}

.referral-sort-tabs {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  width: min(360px, 100%);
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
}

.referral-sort-tabs button {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
}

.referral-sort-tabs button.is-active {
  background: color-mix(in srgb, var(--accent-2) 18%, var(--panel));
  color: var(--text);
  box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 12%, transparent);
}

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

.referral-row {
  display: grid;
  grid-template-columns: 54px minmax(110px, 1fr) minmax(120px, 0.8fr) minmax(150px, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  animation: row-rise 260ms ease both;
}

.referral-row strong,
.referral-row em {
  color: var(--accent-2);
  font-style: normal;
  font-weight: 900;
}

.referral-row small {
  color: var(--muted);
  font-weight: 800;
}

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

.recent-claims-board {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent 42%),
    color-mix(in srgb, var(--panel-2) 78%, transparent);
}

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

.recent-claim-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) minmax(150px, 1fr) minmax(100px, auto);
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  animation: row-rise 260ms ease both;
}

.recent-claim-row strong,
.recent-claim-row em {
  display: block;
  color: var(--accent-2);
  font-style: normal;
  font-weight: 900;
}

.recent-claim-row span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.recent-claim-row a {
  justify-self: end;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
}

.draw-history-board {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--accent-2) 28%, var(--line));
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent-2) 12%, transparent), transparent 42%),
    color-mix(in srgb, var(--panel-2) 78%, transparent);
}

.draw-history-row {
  display: grid;
  grid-template-columns: minmax(160px, 0.75fr) minmax(180px, 1fr) minmax(220px, 1.1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  animation: row-rise 260ms ease both;
}

@keyframes row-rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .button.is-loading::before,
  .button.is-loading::after,
  #draw .draw-progress i::after,
  .referral-row,
  .recent-claim-row,
  .draw-participant,
  .draw-history-row {
    animation: none;
  }
}

.draw-history-row strong,
.draw-history-row em {
  display: block;
  color: var(--accent-2);
  font-style: normal;
  font-weight: 900;
}

.draw-history-row span,
.draw-history-row small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.draw-history-row nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.draw-history-row a {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  background: color-mix(in srgb, var(--panel-2) 72%, transparent);
}

.compact-rules {
  margin-bottom: 0;
}

.free-blue-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.free-blue-steps article {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 11%, transparent), transparent 52%),
    color-mix(in srgb, var(--panel-2) 78%, transparent);
}

.free-blue-steps span {
  color: var(--accent-2);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.free-blue-steps strong {
  color: var(--text);
  font-size: 18px;
  line-height: 1.2;
}

.free-blue-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.template-picker select,
#blueTweetText,
.tweet-link-input input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--text);
}

.template-picker select {
  min-height: 44px;
  padding: 0 12px;
}

#blueTweetText {
  min-height: 132px;
  padding: 14px;
  resize: vertical;
  line-height: 1.5;
}

.blue-entry-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.claim-rule-strip small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.home-blue-draw-panel {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 16px;
  align-items: stretch;
  margin-top: 16px;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid color-mix(in srgb, var(--accent-2) 30%, var(--line));
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent-2) 14%, transparent), transparent 38%),
    linear-gradient(225deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent 42%),
    color-mix(in srgb, var(--panel) 94%, transparent);
  box-shadow: var(--shadow);
}

.home-blue-copy h2 {
  max-width: 720px;
  margin-bottom: 12px;
  font-size: clamp(28px, 4.4vw, 58px);
  line-height: 1;
}

.home-blue-copy p:not(.eyebrow),
.participant-header span {
  color: var(--muted);
  line-height: 1.55;
}

.home-blue-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  grid-column: 1 / -1;
}

.home-blue-stats div,
.home-blue-entry,
.blue-participant-section {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-2) 72%, transparent);
}

.home-blue-stats span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.home-blue-stats strong {
  display: block;
  color: var(--text);
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1;
}

.home-blue-entry {
  display: grid;
  align-content: start;
  gap: 12px;
}

.blue-participant-section {
  display: grid;
  gap: 12px;
}

.participant-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.participant-header strong,
.participant-header span {
  display: block;
}

.blue-participant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 10px;
}

.draw-participant-section {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.draw-participant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

.draw-participant {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 86%, transparent);
  animation: row-rise 260ms ease both;
}

.draw-participant img,
.draw-participant > span {
  grid-row: span 3;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #06120d;
  font-weight: 900;
  object-fit: cover;
}

.draw-participant strong,
.draw-participant small,
.draw-participant em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.draw-participant strong {
  color: var(--text);
  font-size: 13px;
}

.draw-participant small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.draw-participant em {
  color: var(--accent-2);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.blue-participant,
.participant-empty {
  min-width: 0;
  min-height: 74px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.blue-participant {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.blue-participant img,
.blue-participant > span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #06120d;
  font-weight: 900;
  object-fit: cover;
}

.blue-participant strong,
.blue-participant small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.blue-participant strong {
  color: var(--text);
  font-size: 13px;
}

.blue-participant small,
.participant-empty {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.participant-empty {
  display: grid;
  place-items: center;
  grid-column: 1 / -1;
  border-style: dashed;
}

@media (max-width: 1180px) {
  .claim-flow-grid {
    grid-template-columns: 1fr;
  }

  .blue-draw-layout {
    grid-template-columns: 1fr;
  }

  .claim-rule-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .draw-guide-panel,
  .blue-draw-panel,
  .stake-panel {
    padding: 18px;
  }

  .stake-rule-grid {
    grid-template-columns: 1fr;
  }

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

  .referral-rule-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .free-blue-steps,
  .claim-rule-strip {
    grid-template-columns: 1fr;
  }

  .blue-entry-actions,
  .stake-actions,
  .standard-user-actions,
  .home-blue-draw-panel,
  .home-blue-stats {
    grid-template-columns: 1fr;
  }

  .stake-stats {
    grid-template-columns: 1fr;
  }

  .stake-input-row {
    grid-template-columns: minmax(0, 1fr) 76px;
  }

  .referral-actions,
  .referral-row,
  .recent-claim-row,
  .draw-history-row {
    grid-template-columns: 1fr;
  }

  .participant-header {
    display: grid;
  }
}

/* Unified premium UI pass */
body {
  background:
    linear-gradient(180deg, #070b10 0%, #0b1118 42%, #080b0f 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--accent) 14%, transparent), transparent 34%),
    linear-gradient(250deg, color-mix(in srgb, var(--accent-3) 12%, transparent), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 34%);
}

.topbar {
  min-height: 76px;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.28);
}

.brand-mark,
.top-auth-avatar,
.tab-button.active,
.button.primary,
.auth-button {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #05100c;
}

.tabs,
.top-auth,
.language-button,
.icon-button {
  border-color: color-mix(in srgb, var(--line) 72%, transparent);
  background: color-mix(in srgb, var(--panel) 82%, transparent);
  box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 8%, transparent);
}

.tab-button {
  min-width: 78px;
}

.app-shell {
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 108px clamp(14px, 3.4vw, 40px) 30px;
}

.app-intro {
  display: block;
  min-height: 0;
  margin-bottom: 14px;
  padding: clamp(18px, 3vw, 32px);
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, transparent), transparent 38%),
    linear-gradient(225deg, color-mix(in srgb, var(--accent-2) 13%, transparent), transparent 34%),
    color-mix(in srgb, var(--panel) 82%, transparent);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

.app-intro h1 {
  max-width: 860px;
  margin-bottom: 10px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.06;
  text-wrap: balance;
}

.app-intro p:not(.eyebrow) {
  max-width: 720px;
  font-size: clamp(15px, 1.3vw, 18px);
}

.eyebrow {
  color: var(--accent-2);
  letter-spacing: 0;
}

.metric-strip.compact-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  justify-content: stretch;
}

.metric-strip.compact-strip div {
  min-width: 0;
  padding: 18px;
  border-color: color-mix(in srgb, var(--line) 70%, transparent);
  background: color-mix(in srgb, #05080c 44%, transparent);
  box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 10%, transparent);
}

.metric-strip.compact-strip strong {
  font-size: clamp(24px, 2.7vw, 34px);
}

.tab-panel,
.claim-panel,
.draw-guide-panel,
.blue-draw-panel,
.stake-panel,
.status-row,
.claim-box,
.eligible-card,
.claim-rule-strip div,
.mini-rule-list div,
.rule-grid article,
.mechanic-grid article,
.faq-list article,
.draw-balance-strip,
.draw-buy-panel {
  border-color: color-mix(in srgb, var(--line) 72%, transparent);
  background:
    linear-gradient(180deg, color-mix(in srgb, #fff 4%, transparent), transparent 48%),
    color-mix(in srgb, var(--panel) 92%, transparent);
  box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 8%, transparent);
}

.tab-panel {
  padding: clamp(16px, 2.4vw, 30px);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.3);
}

.panel-header {
  margin-bottom: 22px;
}

.panel-header h2 {
  font-size: clamp(26px, 3.8vw, 48px);
  line-height: 1.04;
}

.button,
.auth-button,
.buy-route,
.language-button,
.icon-button {
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.auth-button:hover,
.buy-route:hover,
.language-button:hover,
.icon-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.wallet-help {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--accent-2) 42%, var(--line));
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent-2) 12%, transparent), transparent 48%),
    color-mix(in srgb, var(--panel) 92%, transparent);
  box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 8%, transparent);
}

.wallet-help[hidden] {
  display: none;
}

.wallet-help span {
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.wallet-help p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.wallet-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.wallet-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

#draw.tab-panel {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, transparent), transparent 36%),
    linear-gradient(225deg, color-mix(in srgb, var(--accent-2) 15%, transparent), transparent 34%),
    color-mix(in srgb, var(--panel) 94%, #000);
}

#draw.tab-panel::before {
  opacity: 0.16;
}

#draw .draw-card {
  min-height: 500px;
}

#draw .draw-card h3 {
  font-size: clamp(42px, 6vw, 76px);
}

#rules .mechanic-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 1180px) {
  .app-shell {
    width: 100%;
    padding-top: 156px;
  }

  .app-intro {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .metric-strip.compact-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #rules .mechanic-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .topbar {
    position: sticky;
    min-height: 0;
    padding: 10px 12px;
  }

  .brand {
    max-width: calc(100vw - 148px);
  }

  .tabs {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

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

  .tab-button {
    flex: 1 0 auto;
    min-width: max-content;
    padding: 0 14px;
  }

  .app-shell {
    padding: 14px 12px 24px;
  }

  .app-intro {
    gap: 18px;
    padding: 22px 16px;
  }

  .app-intro h1 {
    max-width: 100%;
    font-size: clamp(32px, 10vw, 42px);
    line-height: 1.02;
  }

  .metric-strip.compact-strip {
    grid-template-columns: 1fr;
  }

  .metric-strip.compact-strip div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
  }

  .panel-header {
    gap: 12px;
  }

  .claim-flow-grid,
  .blue-draw-layout,
  #draw .draw-layout {
    gap: 12px;
  }

  .claim-panel,
  .draw-guide-panel,
  .blue-draw-panel,
  .stake-panel,
  .draw-card {
    padding: 16px;
  }

  .eligibility-grid,
  .claim-rule-strip,
  .tweet-actions,
  .wallet-link-grid,
  .buy-route-grid,
  .draw-balance-strip,
  .home-blue-draw-panel,
  .home-blue-stats,
  .blue-entry-actions {
    grid-template-columns: 1fr;
  }

  #draw .draw-card {
    min-height: 0;
  }

  #draw .draw-card h3 {
    font-size: clamp(40px, 14vw, 58px);
  }

  .home-blue-draw-panel {
    gap: 12px;
    padding: 16px;
  }

  .home-blue-copy h2 {
    font-size: clamp(26px, 8vw, 34px);
  }

  .home-blue-stats div,
  .home-blue-entry,
  .blue-participant-section {
    padding: 12px;
  }

  .blue-participant-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .top-auth strong,
  .top-auth small {
    max-width: 94px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .brand span:last-child {
    max-width: 130px;
  }

  .app-intro h1 {
    font-size: clamp(34px, 10.6vw, 46px);
  }

  .panel-header h2 {
    font-size: clamp(25px, 8vw, 34px);
  }
}

/* Light theme premium pass */
:root.light body {
  background:
    linear-gradient(180deg, #f6f9fc 0%, #eef4f8 42%, #f8fafc 100%);
  color: var(--text);
}

:root.light body::before {
  background:
    radial-gradient(circle at 12% 5%, rgba(16, 147, 111, 0.16), transparent 30%),
    radial-gradient(circle at 88% 12%, rgba(197, 131, 22, 0.15), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(238, 244, 248, 0.24) 42%, transparent);
}

:root.light .topbar {
  border-color: rgba(15, 35, 52, 0.1);
  background: rgba(250, 252, 254, 0.86);
  box-shadow: 0 16px 42px rgba(30, 48, 68, 0.12);
}

:root.light .tabs,
:root.light .top-auth,
:root.light .language-button,
:root.light .icon-button,
:root.light .segmented {
  border-color: rgba(20, 42, 58, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(240, 246, 250, 0.82));
  box-shadow:
    0 10px 28px rgba(25, 46, 66, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

:root.light .tab-button,
:root.light .segment {
  color: #64727e;
}

:root.light .tab-button:hover,
:root.light .segment:hover,
:root.light .tag-pill:hover {
  color: #14212c;
  background: rgba(16, 147, 111, 0.08);
}

:root.light .brand-mark,
:root.light .top-auth-avatar,
:root.light .tab-button.active,
:root.light .segment.active,
:root.light .button.primary,
:root.light .auth-button {
  color: #06130f;
  background: linear-gradient(135deg, #2fd69a, #f0bc43);
  box-shadow:
    0 12px 30px rgba(16, 147, 111, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

:root.light .button.secondary,
:root.light .wallet-link,
:root.light .wallet-button,
:root.light .tag-pill,
:root.light .buy-route {
  color: #14212c;
  border-color: rgba(20, 42, 58, 0.13);
  background:
    linear-gradient(180deg, #ffffff, #f1f6fa);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

:root.light .button:hover,
:root.light .auth-button:hover,
:root.light .buy-route:hover,
:root.light .language-button:hover,
:root.light .icon-button:hover {
  box-shadow:
    0 14px 32px rgba(25, 46, 66, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

:root.light .button:disabled {
  background: #e6edf2;
  color: #87949e;
  box-shadow: none;
}

:root.light .app-intro {
  border-color: rgba(16, 147, 111, 0.16);
  background:
    radial-gradient(circle at 0% 0%, rgba(16, 147, 111, 0.16), transparent 34%),
    radial-gradient(circle at 100% 8%, rgba(197, 131, 22, 0.15), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 249, 252, 0.9));
  box-shadow: 0 26px 70px rgba(25, 46, 66, 0.14);
}

:root.light .app-intro h1,
:root.light .panel-header h2,
:root.light #draw .draw-card h3 {
  color: #0d1822;
  text-shadow: none;
}

:root.light .app-intro p:not(.eyebrow),
:root.light .panel-header p:not(.eyebrow),
:root.light .summary-panel > p:not(.eyebrow),
:root.light .draw-guide-panel > p:not(.eyebrow),
:root.light .rule-grid p,
:root.light .mechanic-grid p,
:root.light .faq-list p,
:root.light .free-blue-steps p,
:root.light .claim-message {
  color: #5f6f7c;
}

:root.light .eyebrow,
:root.light .wallet-help span,
:root.light .plan-tag {
  color: #9a6108;
}

:root.light .metric-strip.compact-strip div {
  border-color: rgba(20, 42, 58, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(237, 244, 248, 0.78));
  box-shadow:
    0 12px 30px rgba(25, 46, 66, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

:root.light .metric-strip.compact-strip span,
:root.light .metric-strip span {
  color: #6a7883;
}

:root.light .tab-panel,
:root.light .claim-panel,
:root.light .summary-panel,
:root.light .draw-guide-panel,
:root.light .blue-draw-panel,
:root.light .stake-panel,
:root.light .airdrop-panel,
:root.light .draw-card,
:root.light .flow-item,
:root.light .subsidy-card,
:root.light .apply-form,
:root.light .safety-grid div,
:root.light .token-panel,
:root.light .leader-row,
:root.light .task-card,
:root.light .campaign-grid article,
:root.light .guide-grid article {
  border-color: rgba(20, 42, 58, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 252, 0.9));
  box-shadow:
    0 20px 54px rgba(25, 46, 66, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

:root.light .tab-panel {
  box-shadow: 0 24px 68px rgba(25, 46, 66, 0.13);
}

:root.light .status-row,
:root.light .claim-box,
:root.light .eligible-card,
:root.light .claim-rule-strip div,
:root.light .mini-rule-list div,
:root.light .rule-grid article,
:root.light .mechanic-grid article,
:root.light .faq-list article,
:root.light .draw-balance-strip,
:root.light .draw-buy-panel,
:root.light .board-sidebar > div,
:root.light .reward-rule,
:root.light .task-economy article,
:root.light .protocol-flow article,
:root.light .claim-wallet,
:root.light .claim-wallet div,
:root.light .manual-test-panel,
:root.light .manual-test-status,
:root.light .task-budget,
:root.light .task-rewards,
:root.light .task-slots,
:root.light .score-box,
:root.light .free-blue-steps article,
:root.light .stake-input,
:root.light .home-blue-stats div,
:root.light .home-blue-entry,
:root.light .blue-participant-section,
:root.light .blue-participant,
:root.light .participant-empty {
  border-color: rgba(20, 42, 58, 0.11);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(239, 246, 250, 0.72));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 10px 28px rgba(25, 46, 66, 0.06);
}

:root.light .eligible-card.active,
:root.light .mutual-button.pending,
:root.light .creator-row,
:root.light .task-card {
  border-color: rgba(16, 147, 111, 0.22);
  background:
    linear-gradient(135deg, rgba(16, 147, 111, 0.12), transparent 44%),
    linear-gradient(180deg, #ffffff, #f1f7fa);
}

:root.light .rank-num,
:root.light .creator-avatar,
:root.light .creator-tags i,
:root.light .chain-stats div,
:root.light .yield-cell,
:root.light .score-cell,
:root.light .task-status span,
:root.light .plan-tag,
:root.light .supply-number,
:root.light .guide-grid .step,
:root.light .flow-item .step,
:root.light .manual-test-panel input,
:root.light select,
:root.light input,
:root.light textarea,
:root.light #tweetText,
:root.light #blueTweetText,
:root.light .tweet-link-input input,
:root.light .template-picker select,
:root.light .stake-input input {
  border-color: rgba(20, 42, 58, 0.12);
  background: #eef5f8;
  color: #101923;
}

:root.light input::placeholder,
:root.light textarea::placeholder {
  color: #8896a1;
}

:root.light .claim-rule-strip span,
:root.light .mini-rule-list span,
:root.light .allocation-list span,
:root.light .rule-grid span,
:root.light .mechanic-grid span,
:root.light .status-row span,
:root.light .claim-box span,
:root.light .draw-balance-strip span,
:root.light .draw-buy-panel span,
:root.light .free-blue-steps span,
:root.light .stake-input span,
:root.light .top-auth small,
:root.light .creator-name span,
:root.light .leader-label,
:root.light .score-cell small,
:root.light .yield-cell small {
  color: #6a7883;
}

:root.light .claim-rule-strip strong,
:root.light .mini-rule-list strong,
:root.light .allocation-list strong,
:root.light .rule-grid strong,
:root.light .mechanic-grid strong,
:root.light .reward-rule strong,
:root.light .task-economy strong,
:root.light .trust,
:root.light .mutual-button.pending {
  color: #0f8d68;
}

:root.light .reward-rule.highlight strong,
:root.light .score-cell strong,
:root.light .task-slots strong,
:root.light #draw .rule-grid strong {
  color: #a86608;
}

:root.light .trust,
:root.light .mutual-button {
  border-color: rgba(197, 131, 22, 0.24);
  background: rgba(197, 131, 22, 0.1);
  color: #9a6108;
}

:root.light .tag-pill.active {
  background: linear-gradient(135deg, #f2c257, #f6d891);
  color: #241704;
}

:root.light .top-auth.connected .top-auth-avatar {
  background: linear-gradient(135deg, #2fd69a, #f0bc43);
  color: #06130f;
}

:root.light .wallet-help {
  border-color: rgba(197, 131, 22, 0.32);
  background:
    linear-gradient(135deg, rgba(197, 131, 22, 0.12), transparent 52%),
    linear-gradient(180deg, #ffffff, #f4f8fb);
  box-shadow:
    0 16px 34px rgba(25, 46, 66, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

:root.light #draw.tab-panel {
  border-color: rgba(197, 131, 22, 0.22);
  background:
    radial-gradient(circle at 18% 0%, rgba(16, 147, 111, 0.18), transparent 30%),
    radial-gradient(circle at 92% 10%, rgba(197, 131, 22, 0.18), transparent 28%),
    linear-gradient(180deg, #ffffff, #f3f8fb 56%, #ffffff);
}

:root.light #draw.tab-panel::before {
  background:
    linear-gradient(90deg, transparent 0 48%, rgba(197, 131, 22, 0.08) 50%, transparent 52%),
    repeating-linear-gradient(135deg, rgba(16, 147, 111, 0.08) 0 1px, transparent 1px 18px);
  opacity: 0.42;
}

:root.light #draw .draw-card {
  border-color: rgba(197, 131, 22, 0.34);
  background:
    radial-gradient(circle at 8% 0%, rgba(240, 188, 67, 0.18), transparent 32%),
    linear-gradient(180deg, #ffffff, #f6fafc 64%, #eef6f3);
  box-shadow:
    0 26px 72px rgba(144, 92, 12, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

:root.light #draw .draw-card::before {
  background: linear-gradient(90deg, transparent, rgba(240, 188, 67, 0.28), transparent);
}

:root.light #draw .plan-tag {
  color: #241704;
  background: linear-gradient(90deg, #f0bc43, #69d79f);
}

:root.light #draw .draw-progress,
:root.light .task-progress,
:root.light .allocation-row i {
  border-color: rgba(16, 147, 111, 0.18);
  background: #e2edf1;
}

:root.light #draw .draw-progress i,
:root.light .draw-progress i,
:root.light .task-progress i {
  background: linear-gradient(90deg, #10a879, #f0bc43);
  box-shadow: 0 0 18px rgba(16, 147, 111, 0.24);
}

:root.light .draw-balance-strip.low {
  border-color: rgba(197, 131, 22, 0.38);
  background:
    linear-gradient(180deg, rgba(240, 188, 67, 0.16), rgba(255, 255, 255, 0.88));
}

:root.light .buy-route.uniswap {
  background: linear-gradient(135deg, #ff6cc4, #ff9fd8);
  color: #2d071f;
}

:root.light .buy-route.gmgn {
  background: linear-gradient(135deg, #54b5f2, #95d7f5);
  color: #061928;
}

:root.light .blue-draw-panel,
:root.light .stake-panel,
:root.light .home-blue-draw-panel {
  background:
    radial-gradient(circle at 96% 0%, rgba(39, 116, 189, 0.12), transparent 30%),
    linear-gradient(180deg, #ffffff, #f5f9fb);
}

:root.light .home-blue-draw-panel {
  border-color: rgba(197, 131, 22, 0.22);
  box-shadow:
    0 22px 58px rgba(25, 46, 66, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

:root.light .claim-rule-strip small,
:root.light .participant-header span,
:root.light .blue-participant small,
:root.light .participant-empty {
  color: #6a7883;
}

:root.light .free-blue-steps article {
  border-color: rgba(39, 116, 189, 0.16);
  background:
    linear-gradient(135deg, rgba(39, 116, 189, 0.11), transparent 50%),
    linear-gradient(180deg, #ffffff, #f1f7fa);
}

:root.light .stake-panel {
  border-color: rgba(197, 131, 22, 0.2);
}

:root.light .empty-state {
  border-color: rgba(20, 42, 58, 0.15);
  background: rgba(255, 255, 255, 0.72);
}

:root.light .footer {
  border-color: rgba(15, 35, 52, 0.1);
  color: #6a7883;
}

@media (max-width: 760px) {
  :root.light .topbar {
    background: rgba(250, 252, 254, 0.94);
  }

  :root.light .app-intro,
  :root.light .tab-panel {
    box-shadow: 0 16px 42px rgba(25, 46, 66, 0.1);
  }
}

.wallet-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.wallet-actions .button {
  min-width: 0;
}

.wallet-actions .button.ghost {
  border-color: color-mix(in srgb, var(--line) 86%, transparent);
  background: transparent;
  color: var(--muted);
}

@media (max-width: 640px) {
  .wallet-actions {
    width: 100%;
    justify-content: stretch;
  }

  .wallet-actions .button {
    flex: 1 1 120px;
  }

  .draw-entry-control {
    align-items: stretch;
    flex-direction: column;
  }

  .entry-stepper {
    grid-template-columns: 48px minmax(0, 1fr) 48px 64px;
  }
}

.airdrop-pool-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 26%, var(--line));
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent 48%),
    color-mix(in srgb, var(--panel-2) 82%, transparent);
}

.airdrop-pool-card.low {
  border-color: color-mix(in srgb, #f59e0b 42%, var(--line));
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.14), transparent 48%),
    color-mix(in srgb, var(--panel-2) 82%, transparent);
}

.airdrop-pool-card span,
.airdrop-pool-card small {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.airdrop-pool-card strong {
  display: block;
  margin-top: 4px;
  color: var(--accent-2);
  font-size: clamp(26px, 5vw, 42px);
  line-height: 1;
}

.airdrop-pool-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
