: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);
}

:root.light {
  color-scheme: light;
  --bg: #f6f8f9;
  --panel: #ffffff;
  --panel-2: #eaf0f3;
  --text: #111820;
  --muted: #596a73;
  --line: rgba(11, 18, 24, 0.12);
  --shadow: 0 18px 44px rgba(22, 35, 45, 0.12);
}

* {
  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;
}

.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 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, 1fr) minmax(360px, 0.9fr);
  gap: 20px;
  align-items: end;
  margin-bottom: 16px;
}

.app-intro h1 {
  margin-bottom: 10px;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1;
}

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

.compact-strip {
  justify-content: flex-end;
}

.compact-strip div {
  min-width: 142px;
}

.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%;
}

.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;
}

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-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;
  }

  .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 {
    justify-content: flex-start;
  }

  .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;
  }

  .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;
  }
}
