:root {
  color-scheme: dark;
  --bg: #0c0a0a;
  --bg-2: #131011;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --surface-3: rgba(255, 255, 255, 0.09);
  --solid: #171314;
  --solid-2: #1f1c1d;
  --line: rgba(255, 255, 255, 0.085);
  --line-2: rgba(255, 255, 255, 0.16);

  --text: #f7f1ee;
  --text-2: #c9bdb8;
  --text-3: #a3958f;

  --red: #e0161e;
  --red-glow: #ff2a2a;
  --red-text: #ff4d4d;
  --red-deep: #7a0a10;
  --btn-top: #d8141c;
  --btn-bot: #be0f17;
  --btn-top-hi: #dc1a22;
  --btn-bot-hi: #c4111a;
  --on-red: #ffffff;
  --amber: #ffb020;
  --amber-hi: #ffc94a;
  --on-amber: #1a0f00;
  --accent: var(--amber);
  --grad: linear-gradient(90deg, #a80d14 0%, var(--red) 55%, var(--red-glow) 100%);

  --ok: #3ddc97;
  --ok-bg: rgba(61, 220, 151, 0.1);
  --warn: #ffc857;
  --warn-bg: rgba(255, 200, 87, 0.1);
  --bad: #ff7070;
  --bad-bg: rgba(255, 112, 112, 0.1);
  --info: #86c8ff;
  --info-bg: rgba(134, 200, 255, 0.1);

  --font-display: 'Lilita One', 'Arial Rounded MT Bold', 'Arial Black', sans-serif;
  --font-ui: 'Manrope', ui-sans-serif, sans-serif;
  --font-num: 'Manrope', ui-sans-serif, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --r-lg: 20px;
  --r: 14px;
  --r-sm: 10px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 68px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --focus: 0 0 0 2px var(--bg), 0 0 0 4px var(--amber-hi);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
html.modal-open { overflow: hidden; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 500 15px/1.6 var(--font-ui);
  font-feature-settings: 'ss01';
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 560px at 80% -10%, rgba(224, 22, 30, 0.2), transparent 62%),
    radial-gradient(640px 420px at 6% -12%, rgba(255, 176, 32, 0.07), transparent 60%),
    radial-gradient(900px 600px at 50% 120%, rgba(224, 22, 30, 0.1), transparent 60%),
    var(--bg);
}
body::after {
  content: '';
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 10%, transparent 75%);
  opacity: 0.45;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 8px; }
::selection { background: rgba(224, 22, 30, 0.45); color: #fff; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; }
p { margin: 0; }
.ico { width: 20px; height: 20px; flex: none; }
.ico-s { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; }
.num, .tnum { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--font-mono); font-size: 0.92em; letter-spacing: -0.01em; }
.muted { color: var(--text-2); }
.dim { color: var(--text-3); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--solid-2); padding: 10px 14px; border-radius: 10px; color: var(--text); }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.row { display: flex; align-items: center; }
.wrap-row { flex-wrap: wrap; }
.gap-xs { gap: 6px; } .gap-s { gap: 10px; } .gap-m { gap: 16px; } .gap-l { gap: 24px; }
.end { justify-content: flex-end; } .between { justify-content: space-between; }
.mt-s { margin-top: 10px; } .mt-m { margin-top: 18px; } .mt-l { margin-top: 32px; } .mt-xl { margin-top: 64px; }
.grow { flex: 1 1 auto; min-width: 0; }
.center { text-align: center; }

.display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.98;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-2);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(61, 220, 151, 0.15); }
.hood-text {
  color: var(--red-text);
  text-shadow: 0 0 28px rgba(255, 42, 42, 0.45);
}
.h-page { font-size: clamp(36px, 6vw, 70px); }
.h-sec { font-size: clamp(26px, 3.4vw, 38px); }
.h-card { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.lead { font-size: clamp(16px, 1.6vw, 18px); color: var(--text-2); max-width: 60ch; }
.label { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }

.btn {
  --h: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--h); padding: 0 20px;
  border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--surface-2); color: var(--text);
  font-size: 13.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  white-space: nowrap; text-decoration: none !important;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.25s, opacity 0.2s;
}
.btn .ico { width: 18px; height: 18px; }
.btn:hover { background: var(--surface-3); border-color: rgba(255, 255, 255, 0.26); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled='true'] { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-primary {
  background: linear-gradient(180deg, var(--btn-top), var(--btn-bot)); color: var(--on-red); border-color: rgba(0, 0, 0, 0.35);
  box-shadow: 0 3px 0 var(--red-deep), 0 10px 30px -12px rgba(255, 42, 42, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.btn-primary:hover { background: linear-gradient(180deg, var(--btn-top-hi), var(--btn-bot-hi)); border-color: rgba(0, 0, 0, 0.35); box-shadow: 0 4px 0 var(--red-deep), 0 14px 38px -10px rgba(255, 42, 42, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.24); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--red-deep), 0 6px 18px -10px rgba(255, 42, 42, 0.7); }
.btn-primary[disabled] { box-shadow: none; }
.btn-ghost { background: transparent; border-color: var(--line-2); }
.btn-quiet { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-quiet:hover { color: var(--text); background: var(--surface-2); border-color: transparent; }
.btn-danger { background: var(--bad-bg); border-color: rgba(255, 107, 133, 0.45); color: #ffc2cd; }
.btn-danger:hover { background: rgba(255, 107, 133, 0.18); border-color: var(--bad); }
.btn-ok { background: var(--ok-bg); border-color: rgba(61, 220, 151, 0.45); color: #b8f5da; }
.btn-sm { --h: 44px; padding: 0 14px; font-size: 12px; }
.btn-lg { --h: 56px; padding: 0 28px; font-size: 14.5px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn .spinner { width: 16px; height: 16px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
  border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2);
  transition: background 0.2s, color 0.2s;
}
.icon-btn:hover { background: var(--surface-3); color: var(--text); }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent); font-weight: 700; min-height: 44px; }
.link-btn:hover { text-decoration: underline; text-underline-offset: 3px; }

.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: spin 0.7s linear infinite; flex: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(18px, 2.4vw, 26px);
}
.card-solid { background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02)), var(--bg-2); }
.card-glow::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(255, 42, 42, 0.75), rgba(224, 22, 30, 0.2) 45%, rgba(255, 176, 32, 0.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.divider { height: 1px; background: var(--line); border: 0; margin: 20px 0; }

.section { padding: clamp(48px, 7vw, 88px) 0 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head .lead { margin-top: 10px; }

.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); } }

.header {
  position: sticky; top: 0; z-index: 40;
  height: var(--header-h);
  background: rgba(12, 10, 10, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.header .wrap { height: 100%; display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none !important; min-height: 44px; flex: none; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 11px; flex: none; object-fit: cover; background: var(--red-deep);
  box-shadow: 0 0 0 2px var(--red), 0 0 14px -2px rgba(255, 42, 42, 0.6);
  transition: transform 0.25s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.04); }
.brand-mark-sm { width: 28px; height: 28px; border-radius: 8px; }
.brand-name { font-family: var(--font-display); font-weight: 400; font-size: 21px; letter-spacing: 0.02em; text-transform: uppercase; line-height: 1; }
.brand-name span { color: var(--red-text); }
.nav { display: flex; align-items: center; gap: 2px; margin: 0 auto; }
.nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; white-space: nowrap;
  color: var(--text-2); font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: 10px; text-decoration: none; transition: color 0.2s, background 0.2s;
}
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a[aria-current='page'] { color: var(--text); }
.nav a[aria-current='page']::after {
  content: ''; position: absolute; left: 10px; right: 10px; bottom: 6px; height: 3px; border-radius: 3px; background: var(--red);
  box-shadow: 0 0 10px rgba(255, 42, 42, 0.7);
}
.header-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.menu-btn { display: none; }
.nav a { padding: 0 6px; letter-spacing: 0.04em; }
.nav a[aria-current='page']::after { left: 6px; right: 6px; }
.header .wrap { max-width: 1440px; }
.nav-more { position: relative; display: flex; }
.nav-more-btn {
  position: relative; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 6px; border: 0; border-radius: 10px;
  background: none; color: var(--text-2); font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.nav-more-btn:hover, .nav-more-btn[aria-expanded='true'] { color: var(--text); background: var(--surface-2); }
.nav-more-btn .ico { width: 14px; height: 14px; transition: transform 0.2s var(--ease); }
.nav-more-btn[aria-expanded='true'] .ico { transform: rotate(180deg); }
.nav-more-btn.is-current { color: var(--text); }
.nav-more-btn.is-current::after {
  content: ''; position: absolute; left: 6px; right: 6px; bottom: 6px; height: 3px; border-radius: 3px; background: var(--red);
  box-shadow: 0 0 10px rgba(255, 42, 42, 0.7);
}
.nav-more-menu { min-width: 200px; }
.nav .nav-more-menu a { font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--text); }
.nav .nav-more-menu a[aria-current='page'] { background: var(--surface-2); box-shadow: inset 3px 0 0 var(--red); }
.nav .nav-more-menu a[aria-current='page']::after { display: none; }
@media (max-width: 1440px) { .header .wrap { gap: 8px; } }
@media (max-width: 1360px) {
  .nav { display: none; }
  .menu-btn { display: inline-grid; }
  .header .wrap { justify-content: space-between; }
}
@media (max-width: 420px) { .brand-name { display: none; } }

.noscript-note { padding: 48px 0; }

.wallet-slot { position: relative; display: flex; align-items: center; gap: 8px; }
.pts-chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px;
  border-radius: 999px; border: 1px solid rgba(255, 176, 32, 0.4); background: rgba(255, 176, 32, 0.08);
  font-size: 13px; font-weight: 800; color: var(--amber-hi); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.pts-chip .ico { width: 15px; height: 15px; color: var(--amber); }
.acct-btn { gap: 10px; padding: 0 12px 0 8px; letter-spacing: 0; text-transform: none; font-weight: 700; font-size: 14px; }
.acct-btn .ico { width: 16px; height: 16px; color: var(--text-3); }
.avatar { width: 26px; height: 26px; border-radius: 50%; flex: none; background: var(--grad); box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.25); }
.menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; min-width: 240px;
  padding: 6px; border-radius: 14px; border: 1px solid var(--line-2);
  background: rgba(23, 19, 20, 0.97); backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.8);
}
.menu-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.menu [role='menuitem'] {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 12px;
  border: 0; background: none; border-radius: 10px; text-align: left; color: var(--text); font-weight: 600; font-size: 14px;
  text-decoration: none;
}
.menu [role='menuitem']:hover, .menu [role='menuitem']:focus-visible { background: var(--surface-3); box-shadow: none; }
.menu [role='menuitem'] .ico { width: 18px; height: 18px; color: var(--text-3); }
.menu [role='menuitem'].danger { color: #ffb3b3; }
@media (max-width: 640px) {
  .pts-chip { display: none; }
  .acct-btn .addr { display: none; }
  .header .connect-label-long { display: none; }
}

.sheet-nav { display: grid; gap: 4px; }
.sheet-nav a {
  display: flex; align-items: center; justify-content: space-between; min-height: 54px; padding: 0 16px;
  border-radius: 14px; color: var(--text); font-family: var(--font-display); font-weight: 400; font-size: 22px;
  letter-spacing: 0.02em; text-transform: uppercase; text-decoration: none; border: 1px solid transparent;
}
.sheet-nav a .ico { color: var(--text-3); }
.sheet-nav a[aria-current='page'] { background: var(--surface-2); border-color: var(--line); box-shadow: inset 3px 0 0 var(--red); }
.sheet-nav a[aria-current='page'] .ico { color: var(--red-text); }

.modal-wrap { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(6, 4, 4, 0.75); backdrop-filter: blur(6px); animation: fade 0.2s ease; }
.modal {
  position: relative; width: 100%; max-height: min(88vh, 820px); overflow: auto; overscroll-behavior: contain;
  border-radius: 22px; border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)), #141112;
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.4);
  animation: pop 0.26s var(--ease);
}
.modal:focus-visible { box-shadow: none; }
.modal-sm { max-width: 420px; } .modal-md { max-width: 480px; } .modal-lg { max-width: 720px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 18px 0 22px; }
.modal-title { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 24px; letter-spacing: 0.02em; }
.modal-body { padding: 16px 22px 22px; }
.modal-wrap.closing .modal { animation: popout 0.18s ease forwards; }
.modal-wrap.closing .modal-backdrop { animation: fade 0.18s ease reverse forwards; }
@media (max-width: 640px) {
  .modal-wrap.modal-center, .modal-wrap.modal-sheet { place-items: end stretch; padding: 0; }
  .modal-center .modal, .modal-sheet .modal { max-width: none; border-radius: 22px 22px 0 0; max-height: 90vh; animation: sheet 0.3s var(--ease); padding-bottom: env(safe-area-inset-bottom); }
  .modal-wrap.closing .modal { animation: sheetout 0.18s ease forwards; }
}
.modal-drawer { place-items: stretch end; padding: 0; }
.modal-drawer .modal { max-width: 640px; height: 100vh; max-height: none; border-radius: 22px 0 0 22px; animation: drawer 0.3s var(--ease); }
.modal-wrap.modal-drawer.closing .modal { animation: drawerout 0.18s ease forwards; }
@media (max-width: 640px) { .modal-drawer .modal { border-radius: 0; } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.98); } }
@keyframes popout { to { opacity: 0; transform: translateY(8px) scale(0.98); } }
@keyframes sheet { from { transform: translateY(100%); } }
@keyframes sheetout { to { transform: translateY(100%); } }
@keyframes drawer { from { transform: translateX(100%); } }
@keyframes drawerout { to { transform: translateX(100%); } }

.wallet-list { display: grid; gap: 8px; }
.wallet-opt {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; padding: 10px 14px;
  border-radius: 14px; border: 1px solid var(--line); background: var(--surface); text-align: left;
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease);
}
.wallet-opt:hover { border-color: rgba(224, 22, 30, 0.7); background: var(--surface-2); transform: translateY(-1px); }
.wallet-opt img, .wallet-opt .w-ico { width: 38px; height: 38px; border-radius: 10px; flex: none; }
.wallet-opt .w-ico { display: grid; place-items: center; background: var(--surface-3); color: var(--text); }
.wallet-opt .w-name { font-weight: 800; font-size: 15px; }
.wallet-opt .w-sub { font-size: 12.5px; color: var(--text-3); }
.wallet-opt .tag { margin-left: auto; }
.wallet-opt.dev { border-style: dashed; border-color: rgba(255, 200, 87, 0.45); background: rgba(255, 200, 87, 0.04); }
.wallet-note { display: flex; gap: 10px; margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; color: var(--text-2); }
.wallet-note .ico { color: var(--ok); width: 18px; height: 18px; margin-top: 2px; }
.qr-box { display: grid; place-items: center; gap: 14px; text-align: center; }
.qr-box .qr { width: 260px; max-width: 100%; aspect-ratio: 1; border-radius: 18px; background: #fff; padding: 12px; display: grid; place-items: center; }
.qr-box .qr img { width: 100%; height: auto; image-rendering: pixelated; }
.connect-progress { display: grid; justify-items: center; gap: 14px; padding: 18px 0 6px; text-align: center; }
.connect-progress .spinner { width: 36px; height: 36px; border-width: 3px; color: var(--red-text); }

.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 120; display: grid; gap: 10px; width: min(380px, calc(100vw - 32px)); }
.toast {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px 10px 14px 14px;
  border-radius: 16px; border: 1px solid var(--line-2); background: rgba(26, 22, 23, 0.97);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.9); animation: toastin 0.3s var(--ease);
}
.toast.out { animation: toastout 0.2s ease forwards; }
.toast-ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; flex: none; }
.toast-ico .ico { width: 17px; height: 17px; }
.toast-success { border-color: rgba(61, 220, 151, 0.4); } .toast-success .toast-ico { background: var(--ok-bg); color: var(--ok); }
.toast-error { border-color: rgba(255, 112, 112, 0.4); } .toast-error .toast-ico { background: var(--bad-bg); color: var(--bad); }
.toast-warn .toast-ico { background: var(--warn-bg); color: var(--warn); }
.toast-info .toast-ico { background: var(--info-bg); color: var(--info); }
.toast-body { flex: 1; min-width: 0; display: grid; gap: 2px; padding-top: 4px; font-size: 14px; }
.toast-title { font-weight: 800; font-size: 14.5px; }
.toast-msg { color: var(--text-2); overflow-wrap: anywhere; }
.toast-action { justify-self: start; margin-top: 6px; min-height: 36px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--surface-2); font-weight: 800; font-size: 12.5px; letter-spacing: 0.05em; text-transform: uppercase; }
.toast-x { width: 36px; height: 36px; display: grid; place-items: center; border: 0; background: none; color: var(--text-3); border-radius: 9px; flex: none; }
.toast-x:hover { color: var(--text); background: var(--surface-2); }
.toast-x .ico { width: 16px; height: 16px; }
@keyframes toastin { from { opacity: 0; transform: translateY(12px); } }
@keyframes toastout { to { opacity: 0; transform: translateX(20px); } }
@media (max-width: 640px) { .toasts { left: 16px; right: 16px; width: auto; bottom: calc(16px + env(safe-area-inset-bottom)); } }

.badge {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap;
  border: 1px solid var(--line-2); color: var(--text-2); background: var(--surface);
}
.badge .ico { width: 13px; height: 13px; }
.badge-locked { color: var(--text-3); }
.badge-available { color: var(--amber-hi); border-color: rgba(255, 176, 32, 0.45); background: rgba(255, 176, 32, 0.08); }
.badge-verifying { color: var(--info); border-color: rgba(134, 200, 255, 0.4); background: var(--info-bg); }
.badge-verifying::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.2s ease-in-out infinite; }
.badge-completed, .badge-ok, .badge-valid, .badge-confirmed, .badge-active { color: var(--ok); border-color: rgba(61, 220, 151, 0.4); background: var(--ok-bg); }
.badge-pending, .badge-review, .badge-warn { color: var(--warn); border-color: rgba(255, 200, 87, 0.4); background: var(--warn-bg); }
.badge-rejected, .badge-failed, .badge-banned, .badge-bad { color: var(--bad); border-color: rgba(255, 112, 112, 0.4); background: var(--bad-bg); }
.badge-dev { color: var(--warn); border-style: dashed; border-color: rgba(255, 200, 87, 0.5); background: transparent; }
@keyframes pulse { 50% { opacity: 0.3; } }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; background: var(--surface-3); color: var(--text-2); }
.pts { font-family: var(--font-num); font-weight: 800; font-size: 24px; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--amber); }
.pts small { font-family: var(--font-ui); font-size: 11px; font-weight: 800; letter-spacing: 0.1em; color: var(--text-3); margin-left: 4px; }

.hero { padding: clamp(28px, 5vw, 72px) 0 0; overflow-x: clip; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 420px); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero-lines { margin: 22px 0 0; font-size: clamp(40px, 4.8vw, 68px); line-height: 1; }
.hero-art { position: relative; isolation: isolate; width: 100%; max-width: 420px; justify-self: end; }
.hero-art::before {
  content: ''; position: absolute; inset: -14%; z-index: -1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 42, 42, 0.55), rgba(224, 22, 30, 0.22) 55%, transparent 100%);
  filter: blur(8px); animation: glow 5s ease-in-out infinite;
}
@supports not (overflow: clip) { .hero-art::before { inset: -14% 0; } }
.hero-mascot {
  display: block; width: 100%; height: auto; aspect-ratio: 1; border-radius: 34px; background: var(--red-deep);
  border: 3px solid #050303;
  box-shadow: 0 0 0 2px var(--red), 0 0 60px -6px rgba(255, 42, 42, 0.65), 0 30px 70px -30px rgba(0, 0, 0, 0.9);
  transform: rotate(-2.5deg);
  animation: mascot-in 0.8s var(--ease) both, bob 6s ease-in-out 0.9s infinite;
}
.hero-sticker {
  position: absolute; right: -10px; bottom: 9%; z-index: 1;
  padding: 8px 14px 7px; border-radius: 12px; border: 3px solid #050303;
  background: var(--amber); color: var(--on-amber); box-shadow: 0 4px 0 #050303;
  font-family: var(--font-display); font-size: clamp(18px, 2vw, 24px); line-height: 1; letter-spacing: 0.02em;
  transform: rotate(7deg); animation: sticker-in 0.6s var(--ease) 0.55s both;
}
@keyframes glow { 50% { opacity: 0.72; transform: scale(0.96); } }
@keyframes bob { 50% { transform: rotate(-1deg) translateY(-8px); } }
@keyframes mascot-in { from { opacity: 0; transform: rotate(-9deg) scale(0.88); } }
@keyframes sticker-in { from { opacity: 0; transform: rotate(24deg) scale(0.4); } }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero-art { order: -1; justify-self: start; max-width: min(52vw, 280px); margin: 10px 0 0 6px; }
  .hero-sticker { right: -14px; }
  .hero-lines { font-size: clamp(34px, 9.4vw, 72px); }
}
.hero-lines span { display: block; }
.display, .brand-name, .sheet-nav a, .modal-title, .legend-t, .group-title h3, .step-n, .success-burst .big,
.hero-sticker, .rules li::before, .admin-drawer h3 { font-synthesis: none; }
.hero-lines .l { opacity: 0; transform: translateY(0.35em); animation: rise 0.8s var(--ease) forwards; }
.hero-lines .l:nth-child(1) { animation-delay: 0.05s; }
.hero-lines .l:nth-child(2) { animation-delay: 0.14s; }
.hero-lines .l:nth-child(3) { animation-delay: 0.23s; }
.hero-lines .l:nth-child(4) { animation-delay: 0.32s; }
.hero-lines .l:nth-child(5) { animation-delay: 0.44s; }
.hero-lines .l.dim-line { color: rgba(247, 241, 238, 0.52); }
@keyframes rise { to { opacity: 1; transform: none; } }
.hero-sub { margin-top: 26px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.live-panel { padding: 22px; }
.live-panel .stat-list { display: grid; margin-top: 8px; }
.live-strip { margin-top: clamp(36px, 5vw, 56px); padding: 18px 22px; }
.live-strip .stat-list { grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 10px 0 0; }
.live-strip .stat-row { flex-direction: column; align-items: flex-start; gap: 10px; padding: 8px 18px; border-bottom: 0; border-left: 1px solid var(--line); min-width: 0; }
.live-strip .stat-row:first-child { border-left: 0; padding-left: 0; }
.live-strip .stat-row:last-child { padding-bottom: 8px; }
.live-strip .stat-row dt { font-size: 13px; }
.live-strip .stat-row dd { font-size: clamp(22px, 2.3vw, 28px); overflow-wrap: anywhere; max-width: 100%; }
@media (max-width: 860px) {
  .live-strip .stat-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
  .live-strip .stat-row { border-left: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .live-strip .stat-row:nth-last-child(-n+1) { border-bottom: 0; }
}
.stat-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.stat-row:last-child { border-bottom: 0; padding-bottom: 0; }
.stat-row dt { color: var(--text-2); font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.stat-row dt .ico { width: 17px; height: 17px; color: var(--text-3); }
.stat-row dd { margin: 0; font-family: var(--font-num); font-weight: 800; font-size: 28px; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

.steps { counter-reset: s; }
.step { display: grid; gap: 10px; align-content: start; }
.step-n { font-family: var(--font-display); font-weight: 400; font-size: 18px; letter-spacing: 0.08em; color: var(--red-text); }
.step h3 { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }
.step p { color: var(--text-2); font-size: 14.5px; }
.reward { display: grid; gap: 14px; align-content: start; overflow: hidden; }
.reward .r-top { display: flex; justify-content: space-between; align-items: center; }
.reward .r-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-3); color: var(--text); }
.reward .r-label { font-size: 12px; font-weight: 800; letter-spacing: 0.12em; color: var(--text-2); text-transform: uppercase; }
.reward .r-val { font-family: var(--font-num); font-weight: 800; font-size: clamp(40px, 4.4vw, 54px); line-height: 0.95; letter-spacing: -0.03em; color: var(--amber); }
.reward .r-val small { font-size: 0.34em; font-weight: 800; letter-spacing: 0.08em; color: var(--text-2); margin-left: 8px; }
.reward p { color: var(--text-2); font-size: 14px; }
.reward::after { content: ''; position: absolute; right: -60px; top: -60px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(224, 22, 30, 0.22), transparent 70%); pointer-events: none; }
.reward:nth-child(2)::after { background: radial-gradient(circle, rgba(255, 176, 32, 0.14), transparent 70%); }

.kpi { display: grid; gap: 8px; align-content: start; padding: 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.kpi .k-label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.kpi .k-val { font-family: var(--font-num); font-weight: 800; font-size: clamp(26px, 3vw, 36px); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kpi .k-val small { font-size: 0.5em; color: var(--text-2); margin-left: 4px; letter-spacing: 0.04em; }
.kpi.kpi-hero { background: linear-gradient(160deg, rgba(224, 22, 30, 0.16), rgba(224, 22, 30, 0.03)); border-color: rgba(224, 22, 30, 0.45); }
.kpi.kpi-hero .k-val { color: var(--amber); }
.kpi-grid { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 380px) { .kpi-grid { grid-template-columns: minmax(0, 1fr); } }

.progress { display: grid; gap: 10px; }
.progress-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; font-weight: 700; }
.bar { position: relative; height: 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.bar-fill {
  position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: var(--grad);
  transition: width 1.2s var(--ease);
  box-shadow: 0 0 18px rgba(255, 42, 42, 0.6);
}
.bar-fill::after {
  content: ''; position: absolute; right: 0; top: 50%; width: 12px; height: 12px; transform: translate(40%, -50%);
  border-radius: 50%; background: var(--amber-hi); box-shadow: 0 0 12px 4px rgba(255, 176, 32, 0.75);
}
.bar-fill[style*='width: 0'], .bar-fill.zero { box-shadow: none; }
.bar-fill.zero::after { display: none; }

.alloc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
@media (max-width: 860px) { .alloc { grid-template-columns: minmax(0, 1fr); } }
.dl { display: grid; margin: 0; }
.dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.dl > div:last-child { border-bottom: 0; }
.dl dt { color: var(--text-2); font-size: 14px; }
.dl dd { margin: 0; font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; overflow-wrap: anywhere; min-width: 0; }
.formula { font-family: var(--font-mono); font-size: 13px; line-height: 1.7; padding: 14px 16px; border-radius: 12px; background: rgba(0, 0, 0, 0.4); border: 1px solid var(--line); color: var(--text-2); overflow-x: auto; }
.formula b { color: var(--text); font-weight: 600; }
.note { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; font-size: 13.5px; color: var(--text-2); background: var(--surface); border: 1px solid var(--line); }
.note .ico { width: 18px; height: 18px; margin-top: 2px; color: var(--info); }
.note-warn .ico { color: var(--warn); }

.task-groups { display: grid; gap: 36px; }
.group-title { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.group-title h3 { font-family: var(--font-display); font-weight: 400; font-size: 24px; text-transform: uppercase; letter-spacing: 0.02em; }
.group-title .count { color: var(--text-3); font-weight: 700; font-size: 13px; }
.task-list { display: grid; gap: 12px; }
.task {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center;
  padding: 16px 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line);
  transition: border-color 0.25s, background 0.25s;
}
.task:hover { border-color: var(--line-2); }
.task.is-completed { background: linear-gradient(90deg, rgba(61, 220, 151, 0.05), transparent 60%), var(--surface); }
.task-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-3); color: var(--text); flex: none; }
.task-ico .ico { width: 22px; height: 22px; }
.task-ico.p-x { background: var(--text); color: var(--bg); }
.task-ico.p-telegram { background: rgba(84, 169, 235, 0.16); color: #8fcaf5; }
.task-ico.p-discord { background: rgba(114, 137, 218, 0.18); color: #aab8f0; }
.task-ico.p-youtube { background: rgba(255, 70, 70, 0.14); color: #ff9a9a; }
.task-ico.p-website { background: rgba(255, 176, 32, 0.14); color: var(--amber); }
.task-main { min-width: 0; display: grid; gap: 4px; }
.task-name { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 800; font-size: 16px; letter-spacing: -0.01em; }
.task-desc { color: var(--text-2); font-size: 14px; }
.task-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; font-size: 12.5px; color: var(--text-3); }
.task-pts { font-family: var(--font-num); font-weight: 800; font-size: 19px; letter-spacing: -0.02em; color: var(--amber); font-variant-numeric: tabular-nums; }
.task-actions { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.task-dev {
  grid-column: 2 / -1; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 8px 12px; border-radius: 10px; border: 1px dashed rgba(255, 200, 87, 0.45); background: rgba(255, 200, 87, 0.04);
  font-family: var(--font-mono); font-size: 12px; color: var(--warn);
}
@media (max-width: 760px) {
  .task { grid-template-columns: auto minmax(0, 1fr); }
  .task-actions { grid-column: 1 / -1; justify-content: stretch; }
  .task-actions .btn { flex: 1; }
  .task-dev { grid-column: 1 / -1; }
}

.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; min-height: 44px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { width: 40px; height: 24px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--line-2); position: relative; transition: background 0.2s; flex: none; }
.switch .track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--text-2); transition: transform 0.2s var(--ease), background 0.2s; }
.switch input:checked + .track { background: rgba(61, 220, 151, 0.3); border-color: rgba(61, 220, 151, 0.6); }
.switch input:checked + .track::after { transform: translateX(16px); background: var(--ok); }
.switch input:focus-visible + .track { box-shadow: var(--focus); }
.switch.dev input:checked + .track { background: rgba(255, 200, 87, 0.3); border-color: rgba(255, 200, 87, 0.6); }
.switch.dev input:checked + .track::after { background: var(--warn); }

.acct-card { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); flex-wrap: wrap; }
.acct-card .grow { display: grid; gap: 2px; }
.acct-card strong { font-size: 15px; }

.table-wrap { border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.table-scroll { overflow-x: auto; position: relative; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 11.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); padding: 14px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; background: rgba(255, 255, 255, 0.02); }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .r { text-align: right; }
.table tbody tr { transition: background 0.2s; }
.table tbody tr:hover { background: rgba(255, 255, 255, 0.025); }
.table tr.is-me { background: rgba(224, 22, 30, 0.09); box-shadow: inset 3px 0 0 var(--red); }
.table tr.is-me:hover { background: rgba(224, 22, 30, 0.13); }
.rank { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 8px; border-radius: 10px; font-weight: 800; font-variant-numeric: tabular-nums; background: var(--surface-2); color: var(--text-2); }
.rank-1 { background: linear-gradient(140deg, var(--amber-hi), var(--amber)); color: var(--on-amber); }
.rank-2 { background: linear-gradient(140deg, #eef0f7, #aeb4c8); color: #151722; }
.rank-3 { background: linear-gradient(140deg, #f0b38c, #b86d45); color: #200e04; }
tr.top-1 td, tr.top-2 td, tr.top-3 td { font-weight: 700; }
.token-cell { display: flex; align-items: center; gap: 12px; min-width: 0; }
.token-logo { width: 36px; height: 36px; border-radius: 10px; flex: none; object-fit: cover; background: var(--surface-3); display: grid; place-items: center; font-weight: 800; font-size: 13px; color: var(--text-2); overflow: hidden; }
.me-pin { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--line); background: rgba(224, 22, 30, 0.09); font-weight: 700; }
.lb-short { display: none; }
@media (max-width: 560px) {
  .lb-table th, .lb-table td { padding: 10px 8px; }
  .lb-table th:first-child, .lb-table td:first-child { padding-left: 12px; }
  .lb-table th:last-child, .lb-table td:last-child { padding-right: 12px; }
  .lb-table th:nth-child(4), .lb-table td:nth-child(4) { display: none; }
  .lb-table .lb-long, .lb-table .lb-yes { display: none; }
  .lb-table .lb-short { display: inline; }
  .lb-table .badge { padding: 0 7px; }
  .lb-table .mono { font-size: 12px; }
  .lb-table .rank { min-width: 30px; height: 30px; }
}
@media (max-width: 640px) {
  .table-stack thead { display: none; }
  .table-stack, .table-stack tbody, .table-stack tr, .table-stack td { display: block; width: 100%; }
  .table-stack tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .table-stack tr:last-child { border-bottom: 0; }
  .table-stack td { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 0; border: 0; text-align: right; }
  .table-stack td::before { content: attr(data-label); font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); text-align: left; flex: none; }
  .table-stack td.r { text-align: right; }
  .table-stack td[data-label=''], .table-stack td:not([data-label])::before { content: none; }
  .table-stack tr.skel-row td::before { content: none; }
}

.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); max-width: 100%; overflow-x: auto; }
.tabs [role='tab'] {
  min-height: 44px; padding: 0 16px; border-radius: 10px; border: 0; background: none; color: var(--text-2);
  font-weight: 800; font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
}
.tabs [role='tab']:hover { color: var(--text); }
.tabs [role='tab'][aria-selected='true'] { background: var(--surface-3); color: var(--text); box-shadow: inset 0 -3px 0 0 var(--red); }

.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 8px; min-width: 0; }
.field-label { font-size: 13px; font-weight: 700; color: var(--text); display: flex; justify-content: space-between; gap: 8px; }
.field-label .opt { color: var(--text-3); font-weight: 600; }
.field-hint { font-size: 12.5px; color: var(--text-3); }
.field-err { font-size: 12.5px; color: var(--bad); font-weight: 600; }
.input {
  width: 100%; min-height: 48px; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--line-2); background: rgba(0, 0, 0, 0.3); color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
textarea.input { padding: 12px 14px; resize: vertical; min-height: 96px; line-height: 1.5; }
select.input { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23c9bdb8' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
select.input option { background: #1a1617; }
.input::placeholder { color: #998b86; }
.input:hover { border-color: rgba(255, 255, 255, 0.26); }
.input:focus { outline: none; border-color: var(--amber-hi); box-shadow: 0 0 0 3px rgba(255, 176, 32, 0.25); background: rgba(0, 0, 0, 0.4); }
.input[aria-invalid='true'] { border-color: var(--bad); }
.input-group { display: flex; gap: 8px; }
.input-group .input { flex: 1; min-width: 0; }
.input-prefix { position: relative; }
.input-prefix .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-3); width: 18px; height: 18px; pointer-events: none; }
.input-prefix .input { padding-left: 42px; }
.fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.fieldset legend { padding: 0; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.legend-n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--btn-top); font-weight: 800; font-size: 13px; color: var(--on-red); }
.legend-t { font-family: var(--font-display); font-weight: 400; font-size: 21px; text-transform: uppercase; letter-spacing: 0.02em; }

.logo-preview { width: 64px; height: 64px; border-radius: 16px; border: 1px dashed var(--line-2); display: grid; place-items: center; overflow: hidden; flex: none; color: var(--text-3); background: rgba(0, 0, 0, 0.25); }
.logo-preview img { width: 100%; height: 100%; object-fit: cover; }

.create-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.create-side { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 16px; }
@media (max-width: 1000px) { .create-grid { grid-template-columns: minmax(0, 1fr); } .create-side { position: static; } }
.token-preview { display: flex; align-items: center; gap: 14px; }
.token-preview .tp-name { font-weight: 800; font-size: 18px; overflow-wrap: anywhere; }
.token-preview .tp-sym { color: var(--text-3); font-weight: 700; font-size: 13px; letter-spacing: 0.06em; }

.stepper { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.stepper li { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding: 0 0 18px; color: var(--text-3); font-weight: 700; font-size: 14.5px; }
.stepper li:last-child { padding-bottom: 0; }
.stepper li::before { content: ''; position: absolute; left: 14px; top: 30px; bottom: 0; width: 2px; background: var(--line); }
.stepper li:last-child::before { display: none; }
.stepper .s-dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line-2); background: var(--bg-2); font-size: 12px; position: relative; z-index: 1; }
.stepper .s-dot .ico { width: 15px; height: 15px; }
.stepper .s-text { padding-top: 4px; }
.stepper .s-sub { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-3); margin-top: 2px; }
.stepper li.active { color: var(--text); }
.stepper li.active .s-dot { border-color: var(--red); color: var(--red-text); }
.stepper li.active .s-dot .spinner { width: 14px; height: 14px; }
.stepper li.done { color: var(--text); }
.stepper li.done .s-dot { border-color: transparent; background: var(--ok); color: #04150d; }
.stepper li.done::before { background: linear-gradient(var(--ok), rgba(61, 220, 151, 0.3)); }
.stepper li.error { color: var(--bad); }
.stepper li.error .s-dot { border-color: var(--bad); color: var(--bad); }

.success-burst { text-align: center; display: grid; gap: 12px; justify-items: center; padding: 8px 0; }
.success-burst .big { font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 3.6vw, 40px); line-height: 1; text-transform: uppercase; }
.kv { display: grid; gap: 6px; padding: 12px 14px; border-radius: 12px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line); text-align: left; width: 100%; }
.kv .label { font-size: 11px; }
.kv .val { display: flex; gap: 8px; align-items: center; justify-content: space-between; font-family: var(--font-mono); font-size: 13px; overflow-wrap: anywhere; word-break: break-all; }
.kv .val .icon-btn { width: 44px; height: 44px; }

.ref-link { display: flex; gap: 10px; align-items: stretch; padding: 8px; border-radius: 16px; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line-2); flex-wrap: wrap; }
.ref-link code { flex: 1 1 220px; min-width: 0; display: flex; align-items: center; padding: 0 10px; font-family: var(--font-mono); font-size: 14px; color: var(--text); overflow-wrap: anywhere; word-break: break-all; min-height: 44px; }
.ref-link .btn { flex: 0 0 auto; }
@media (max-width: 480px) { .ref-link .btn { flex: 1 1 100%; } }
.big-pill { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(255, 176, 32, 0.4); background: rgba(255, 176, 32, 0.08); font-weight: 800; letter-spacing: 0.08em; font-size: 13px; color: var(--amber-hi); text-transform: uppercase; }
.big-pill .ico { color: var(--amber); width: 18px; height: 18px; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checklist li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; color: var(--text-2); font-size: 14.5px; }
.checklist li .ico { width: 20px; height: 20px; margin-top: 2px; color: var(--ok); }
.checklist li.x .ico { color: var(--bad); }
.checklist li strong { color: var(--text); }

.rules { list-style: none; counter-reset: r; margin: 0; padding: 0; display: grid; gap: 0; }
.rules li { counter-increment: r; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--text-2); }
.rules li::before { content: counter(r, decimal-leading-zero); font-family: var(--font-display); font-weight: 400; font-size: 20px; color: var(--red-text); line-height: 1.2; }
.rules li strong { color: var(--text); }
.faq { display: grid; gap: 10px; }
.faq details { border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; padding: 12px 18px; font-weight: 800; font-size: 15.5px; border-radius: var(--r); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { transition: transform 0.25s var(--ease); color: var(--text-3); }
.faq details[open] summary .ico { transform: rotate(180deg); }
.faq details > div { padding: 0 18px 18px; color: var(--text-2); }
.docs-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; align-items: start; }
.docs-toc { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 2px; }
.docs-toc a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--text-2); font-weight: 700; font-size: 14px; }
.docs-toc a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
@media (max-width: 860px) { .docs-grid { grid-template-columns: minmax(0, 1fr); } .docs-toc { position: static; display: flex; flex-wrap: wrap; } }

.state { display: flex; align-items: center; gap: 14px; padding: 22px; border-radius: var(--r-lg); border: 1px dashed var(--line-2); flex-wrap: wrap; }
.state > .ico { width: 26px; height: 26px; color: var(--text-3); }
.state > div { flex: 1 1 200px; min-width: 0; display: grid; gap: 4px; }
.state-error > .ico { color: var(--bad); }
.state-empty > .ico { color: var(--amber); }
.gate { display: grid; justify-items: center; text-align: center; gap: 14px; padding: clamp(28px, 5vw, 48px) 20px; }
.g-ico { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: var(--surface-3); color: var(--red-text); }
.g-ico .ico { width: 28px; height: 28px; }
.gate p { max-width: 44ch; color: var(--text-2); }
.skel { display: inline-block; border-radius: 8px; background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.11) 40%, rgba(255, 255, 255, 0.05) 80%); background-size: 300% 100%; animation: shimmer 1.4s ease-in-out infinite; }
.skel-line { width: 100%; max-width: 160px; height: 14px; vertical-align: middle; }
.skel-num { width: 90px; height: 30px; }
.skel-block { display: block; width: 100%; height: 88px; border-radius: var(--r-lg); }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -50% 0; } }

.dev-banner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; border-radius: 12px; border: 1px dashed rgba(255, 200, 87, 0.5); background: rgba(255, 200, 87, 0.05); font-family: var(--font-mono); font-size: 12.5px; color: var(--warn); }
.dev-banner .ico { width: 16px; height: 16px; }

.footer { margin-top: clamp(64px, 9vw, 120px); border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--text-3); font-size: 13.5px; }
.footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.footer nav { display: flex; gap: 4px 16px; flex-wrap: wrap; }
.footer a { color: var(--text-2); display: inline-flex; align-items: center; min-height: 44px; }

.btn:focus-visible, .icon-btn:focus-visible, .link-btn:focus-visible, .toast-x:focus-visible, .toast-action:focus-visible,
.wallet-opt:focus-visible, .tabs [role='tab']:focus-visible, .faq summary:focus-visible, .brand:focus-visible { box-shadow: var(--focus); }
.btn-primary:focus-visible { box-shadow: var(--focus), 0 3px 0 var(--red-deep), 0 10px 30px -12px rgba(255, 42, 42, 0.75); }
.sheet-nav a:focus-visible { box-shadow: var(--focus); }
.sheet-nav a[aria-current='page']:focus-visible { box-shadow: inset 3px 0 0 var(--red), var(--focus); }
.tabs [role='tab'][aria-selected='true']:focus-visible { box-shadow: inset 0 -3px 0 0 var(--red), var(--focus); }
.brand:focus-visible { border-radius: 12px; }

.view { animation: viewin 0.4s var(--ease); }
@keyframes viewin { from { opacity: 0; transform: translateY(6px); } }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .hero-lines .l, .reveal { opacity: 1; transform: none; }
  .hero-mascot { transform: rotate(-2.5deg); }
  .hero-art::before, .hero-mascot, .hero-sticker { animation: none; }
  .skel { animation: none; }
  .badge-verifying::before { animation: none; }
}
