:root {
    --bg: #0b1020;
    --bg-elevated: #121a33;
    --card: #161f3d;
    --line: #2a3a6b;
    --text: #e8edff;
    --muted: #93a0c9;
    --primary: #6c5cff;
    --cyan: #00e0ff;
    --green: #36e0a4;
    --pink: #ff6ad5;
    --gold: #ffd166;
    --nav-h: 76px;
    --nav-max-w: 1400px;
    --max-w: 1200px;
    --display: "Orbitron", sans-serif;
    --body: "Exo 2", "Noto Sans SC", sans-serif;
  }

  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .marquee-track { animation: none !important; }
  }

  body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--body);
    line-height: 1.65;
    overflow-x: hidden;
  }

  body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
      radial-gradient(ellipse 80% 50% at 50% -10%, rgba(108,92,255,0.18), transparent),
      radial-gradient(ellipse 60% 40% at 100% 50%, rgba(0,224,255,0.08), transparent);
    pointer-events: none;
    z-index: 0;
  }

  a { color: inherit; text-decoration: none; }
  img, svg { display: block; max-width: 100%; }
  button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

  /* ── Nav ── */
  .nav {
    position: fixed;
    top: 16px;
    left: 24px;
    right: 24px;
    z-index: 100;
    height: var(--nav-h);
    width: auto;
    max-width: min(var(--nav-max-w), calc(100% - 48px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0 40px;
    background: rgba(11,16,32,0.85);
    backdrop-filter: blur(16px);
    border: 1px solid var(--line);
    border-radius: 16px;
  }

  @media (min-width: 1200px) {
    .nav {
      left: 50%;
      right: auto;
      transform: translateX(-50%);
      width: min(var(--nav-max-w), calc(100% - 48px));
    }
  }

  .nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--display);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.06em;
  }

  .nav-brand svg { width: 32px; height: 32px; flex-shrink: 0; }

  .nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: center;
    min-width: 0;
  }

  .nav-links a {
    padding: 10px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
  }

  .nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.05); }

  .nav-dropdown { position: relative; }

  .nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 10px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    transition: color 0.2s, background 0.2s;
    cursor: pointer;
    white-space: nowrap;
  }

  .nav-dropdown-toggle:hover,
  .nav-dropdown.open .nav-dropdown-toggle {
    color: var(--text);
    background: rgba(255,255,255,0.05);
  }

  .nav-dropdown.active .nav-dropdown-toggle {
    color: var(--text);
    background: rgba(0,224,255,0.1);
  }

  .nav-dropdown-chevron {
    flex-shrink: 0;
    transition: transform 0.2s;
    opacity: 0.75;
  }

  .nav-dropdown.open .nav-dropdown-chevron { transform: rotate(180deg); }

  .nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    min-width: 132px;
    padding: 8px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(11, 16, 32, 0.96);
    backdrop-filter: blur(16px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    z-index: 110;
    flex-direction: column;
    gap: 2px;
  }

  .nav-dropdown.open .nav-dropdown-menu {
    display: flex;
    animation: dropdownPop 0.22s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  @keyframes dropdownPop {
    from { opacity: 0; transform: translateX(-50%) translateY(8px) scale(0.97); }
    to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
  }

  .nav-dropdown-menu a {
    display: block;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    text-align: center;
    line-height: 1.35;
    transition: color 0.2s, background 0.2s;
  }

  .nav-dropdown-menu a:hover {
    color: var(--text);
    background: rgba(0, 224, 255, 0.1);
  }

  .nav-dropdown-soon {
    display: block;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
    text-align: center;
    line-height: 1.45;
    cursor: default;
    opacity: 0.75;
    border-top: 1px solid rgba(42, 58, 107, 0.6);
    margin-top: 2px;
    padding-top: 10px;
  }

  .mobile-menu .mobile-battle-soon {
    color: var(--muted);
    opacity: 0.75;
    cursor: default;
    font-size: 13px;
    padding: 10px 16px 10px 24px;
  }

  .mobile-menu .mobile-battle-link {
    padding: 10px 16px 10px 24px;
    font-size: 14px;
  }

  .mobile-menu .mobile-battle-label {
    padding: 10px 16px 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    pointer-events: none;
  }

  .nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

  .nav-balance {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(28, 41, 80, 0.45);
    font-size: 12px;
    white-space: nowrap;
  }

  .nav-balance-label {
    color: var(--muted);
    font-weight: 600;
    letter-spacing: 0.04em;
  }

  .nav-balance-value {
    font-family: var(--display);
    font-weight: 700;
    color: var(--green);
    font-variant-numeric: tabular-nums;
    min-width: 4.5em;
    text-align: right;
  }

  .nav-balance.empty .nav-balance-value { color: var(--muted); }

  .mobile-balance {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    margin-bottom: 4px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: rgba(28, 41, 80, 0.35);
    font-size: 13px;
  }

  .mobile-balance-label { color: var(--muted); font-weight: 600; }

  .mobile-balance-value {
    font-family: var(--display);
    font-weight: 700;
    color: var(--green);
    font-variant-numeric: tabular-nums;
  }

  .mobile-balance.empty .mobile-balance-value { color: var(--muted); }

  .nav-connect.connected {
    background: rgba(54,224,164,0.12);
    border: 1px solid rgba(54,224,164,0.35);
    color: var(--green);
    box-shadow: none;
  }

  /* ── Wallet modal ── */
  .wallet-modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
  }

  .wallet-modal.open { display: flex; }

  .wallet-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 8, 18, 0.75);
    backdrop-filter: blur(6px);
  }

  .wallet-modal-panel {
    position: relative;
    width: min(420px, 100%);
    padding: 32px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: linear-gradient(160deg, var(--card), var(--bg-elevated));
    box-shadow: 0 24px 64px rgba(0,0,0,0.55);
  }

  .wallet-modal-panel h3 {
    font-family: var(--display);
    font-size: 18px;
    margin: 0 0 10px;
  }

  .wallet-modal-panel .modal-desc {
    font-size: 14px;
    color: var(--muted);
    margin: 0 0 28px;
    line-height: 1.65;
  }

  .wallet-list {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .wallet-option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(11,16,32,0.5);
    text-align: left;
    transition: border-color 0.2s, background 0.2s;
    cursor: pointer;
  }

  .wallet-option:hover {
    border-color: rgba(0,224,255,0.4);
    background: #1c2950;
  }

  .wallet-option-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.06);
    padding: 6px;
    overflow: hidden;
  }

  .wallet-option-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
  }

  .wallet-option-icon.okx { background: #fff; border-color: rgba(255,255,255,0.15); }

  .wallet-option-name { font-size: 15px; font-weight: 600; display: block; }
  .wallet-option-sub { font-size: 12px; color: var(--muted); display: block; margin-top: 2px; }

  .wallet-modal-close {
    width: 100%;
    padding: 13px 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--muted);
    font-size: 14px;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
  }

  .wallet-modal-close:hover { color: var(--text); border-color: rgba(255,255,255,0.2); }

  .wallet-disconnect {
    width: 100%;
    margin: 0 0 12px;
    padding: 13px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255,106,213,0.35);
    background: rgba(255,106,213,0.08);
    color: var(--pink);
    font-size: 14px;
    cursor: pointer;
    display: none;
  }

  .wallet-modal.connected-state .wallet-list,
  .wallet-modal.connected-state .modal-desc { display: none; }

  .wallet-modal.connected-state .wallet-disconnect { display: block; }

  .wallet-modal.connected-state .wallet-modal-panel h3 {
    margin-bottom: 20px;
  }

  .wallet-connected-info {
    display: none;
    padding: 18px 20px;
    border-radius: 12px;
    border: 1px solid rgba(54,224,164,0.3);
    background: rgba(54,224,164,0.08);
    margin-bottom: 28px;
    font-size: 14px;
    line-height: 1.5;
  }

  .wallet-modal.connected-state .wallet-connected-info { display: block; }

  .wallet-connected-info strong {
    color: var(--green);
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
  }

  .wallet-connected-info span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    letter-spacing: 0.02em;
  }

  /* ── Nav profile + personal center page ── */
  .nav-profile {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(28, 41, 80, 0.45);
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    transition: color 0.2s, border-color 0.2s, background 0.2s;
  }

  .nav-profile:hover,
  .nav-profile.active {
    color: var(--text);
    border-color: rgba(108,92,255,0.45);
    background: rgba(108,92,255,0.1);
  }

  .nav-profile svg { flex-shrink: 0; opacity: 0.85; }

  .mobile-profile-link {
    display: block;
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 4px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: rgba(108,92,255,0.1);
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    color: var(--text);
    transition: border-color 0.2s, background 0.2s;
  }

  .mobile-profile-link:hover,
  .mobile-profile-link.active {
    border-color: rgba(0,224,255,0.35);
    background: rgba(0,224,255,0.08);
  }

  /* ── Profile page layout ── */
  .profile-page-hero {
    position: relative;
    z-index: 1;
    padding: calc(var(--nav-h) + 48px) 24px 40px;
    background:
      radial-gradient(ellipse 70% 80% at 20% 0%, rgba(108,92,255,0.2), transparent),
      radial-gradient(ellipse 50% 60% at 100% 30%, rgba(0,224,255,0.1), transparent);
    border-bottom: 1px solid var(--line);
  }

  .profile-page-hero-inner {
    max-width: var(--max-w);
    margin: 0 auto;
  }

  .profile-page-identity {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
  }

  .profile-page-identity.guest {
    flex-direction: column;
    text-align: center;
    padding: 32px 0 16px;
  }

  .profile-page-identity.guest h1 {
    font-family: var(--display);
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 800;
    margin: 0 0 10px;
  }

  .profile-page-identity.guest p {
    margin: 0 0 24px;
    max-width: 420px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
  }

  .profile-avatar.lg {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    border: 1px solid rgba(0,224,255,0.3);
    background: rgba(0,224,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .profile-page-identity h1 {
    font-family: var(--display);
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    font-weight: 700;
    margin: 8px 0 6px;
    line-height: 1.3;
  }

  .profile-page-tagline {
    margin: 0;
    font-size: 14px;
    color: var(--muted);
  }

  .profile-page-body {
    position: relative;
    z-index: 1;
    padding-bottom: 48px;
  }

  .profile-page-assets {
    padding: 32px 24px 8px;
  }

  .profile-asset-grid--page {
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 0;
  }

  .profile-asset--lg {
    padding: 22px 20px;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(22,31,61,0.85), rgba(11,16,32,0.55));
  }

  .profile-asset--lg .profile-asset-value {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  }

  .profile-page-grid-wrap {
    padding-top: 24px;
    padding-bottom: 80px;
  }

  /* ── Profile tabs (A+D layout) ── */
  .profile-tabs-wrap {
    padding-top: 8px;
    padding-bottom: 80px;
  }

  .profile-tabs {
    display: flex;
    gap: 8px;
    padding: 6px;
    margin-bottom: 20px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(11, 16, 32, 0.55);
  }

  .profile-tab {
    flex: 1;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    transition: color 0.2s, background 0.2s, box-shadow 0.2s;
    cursor: pointer;
  }

  .profile-tab:hover { color: var(--text); }

  .profile-tab.active {
    color: var(--text);
    background: linear-gradient(135deg, rgba(108, 92, 255, 0.35), rgba(0, 224, 255, 0.15));
    box-shadow: 0 4px 16px rgba(108, 92, 255, 0.2);
  }

  .profile-tab-panels { min-height: 200px; }

  .profile-tab-panel { display: none; animation: profileTabIn 0.28s ease both; }
  .profile-tab-panel.active { display: block; }

  @keyframes profileTabIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .profile-panel--tab { border-radius: 18px; }

  .profile-kpi-grid {
    display: grid;
    gap: 12px;
    padding: 16px 16px 0;
  }

  .profile-kpi-grid--4 { grid-template-columns: repeat(4, 1fr); }
  .profile-kpi-grid--3 { grid-template-columns: repeat(3, 1fr); }

  .profile-kpi {
    padding: 16px 12px;
    border-radius: 14px;
    border: 1px solid rgba(42, 58, 107, 0.55);
    background: rgba(11, 16, 32, 0.45);
    text-align: center;
  }

  .profile-kpi-val {
    display: block;
    font-family: var(--display);
    font-size: clamp(1.1rem, 2.2vw, 1.35rem);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
    margin-bottom: 6px;
  }

  .profile-kpi-val.sm { font-size: clamp(0.95rem, 1.8vw, 1.1rem); }
  .profile-kpi-val.accent { color: var(--primary); }
  .profile-kpi-val.green { color: var(--green); }
  .profile-kpi-val.muted { color: var(--muted); font-weight: 600; }

  .profile-kpi-lbl {
    display: block;
    font-size: 11px;
    color: var(--muted);
    line-height: 1.35;
  }

  .profile-kpi-footnote {
    margin: 10px 16px 0;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.5;
  }

  .profile-subsection-label {
    margin: 20px 16px 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .profile-unlock-ring-wrap {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 20px 16px;
    margin-top: 8px;
    border-top: 1px solid rgba(42, 58, 107, 0.45);
  }

  .profile-unlock-ring {
    --pct: 25;
    width: 88px;
    height: 88px;
    flex-shrink: 0;
    border-radius: 50%;
    background: conic-gradient(
      var(--cyan) calc(var(--pct) * 1%),
      rgba(42, 58, 107, 0.6) 0
    );
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }

  .profile-unlock-ring-inner {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: var(--card);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .profile-unlock-pct {
    font-family: var(--display);
    font-size: 18px;
    font-weight: 800;
    color: var(--cyan);
    line-height: 1.1;
  }

  .profile-unlock-lbl {
    font-size: 9px;
    color: var(--muted);
    letter-spacing: 0.04em;
    margin-top: 2px;
  }

  .profile-unlock-meta { flex: 1; min-width: 0; }

  .profile-progress-track--wide { margin-top: 10px; margin-bottom: 0; }

  .profile-blindbox-list--grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    padding: 12px 16px 20px;
  }

  .profile-stat-grid--solo {
    padding: 16px;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .profile-stat-box--hero {
    grid-column: 1 / -1;
    padding: 20px;
    background: linear-gradient(135deg, rgba(108, 92, 255, 0.15), rgba(0, 224, 255, 0.06));
    border-color: rgba(108, 92, 255, 0.35);
  }

  .profile-stat-box--hero .profile-stat-num {
    font-size: clamp(2rem, 4vw, 2.5rem);
  }

  .profile-tab-hint {
    margin: 0;
    padding: 0 16px 20px;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
  }

  .profile-quick-bar {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
    padding: 8px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(11, 16, 32, 0.45);
  }

  .profile-quick-bar-item {
    flex: 1;
    max-width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    transition: color 0.2s, background 0.2s;
  }

  .profile-quick-bar-item svg { opacity: 0.85; }

  .profile-quick-bar-item:hover {
    color: var(--cyan);
    background: rgba(0, 224, 255, 0.06);
  }

  @media (max-width: 768px) {
    .profile-kpi-grid--4 { grid-template-columns: repeat(2, 1fr); }
    .profile-kpi-grid--3 { grid-template-columns: repeat(2, 1fr); }
    .profile-unlock-ring-wrap { flex-direction: column; text-align: center; }
    .profile-quick-bar-item { font-size: 10px; max-width: none; }
  }

  @media (max-width: 480px) {
    .profile-tabs { gap: 4px; padding: 4px; }
    .profile-tab { padding: 10px 8px; font-size: 13px; }
  }

  .profile-page-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 20px;
    align-items: start;
  }

  .profile-page-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .profile-panel {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(160deg, rgba(22,31,61,0.65), rgba(11,16,32,0.45));
    overflow: hidden;
  }

  .profile-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px 14px;
    border-bottom: 1px solid rgba(42,58,107,0.5);
  }

  .profile-panel-head h2 {
    margin: 0;
    font-family: var(--display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .profile-panel-link {
    font-size: 12px;
    font-weight: 600;
    color: var(--cyan);
    transition: opacity 0.2s;
  }

  .profile-panel-link:hover { opacity: 0.8; }

  .profile-panel .profile-card { border: none; border-radius: 0; background: transparent; }
  .profile-panel .profile-stat-grid { padding: 16px 16px 20px; }
  .profile-stat-grid--page { gap: 12px; }

  .profile-blindbox-panel {
    padding: 4px 16px 16px;
  }

  .profile-blindbox-summary {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(11,16,32,0.35);
    margin-bottom: 18px;
    overflow: hidden;
  }

  .profile-holdings-title {
    margin: 20px 16px 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .profile-blindbox-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
  }

  .profile-holding {
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(42,58,107,0.65);
    background: rgba(11,16,32,0.45);
    transition: border-color 0.2s;
  }

  .profile-holding:hover {
    border-color: rgba(108,92,255,0.4);
  }

  .profile-holding-head {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
  }

  .profile-holding-tier {
    font-family: var(--display);
    font-size: 14px;
    font-weight: 800;
  }

  .profile-holding-tier.bronze { color: #cd7f32; }
  .profile-holding-tier.silver { color: #c0c0c0; }
  .profile-holding-tier.gold { color: var(--gold); }
  .profile-holding-tier.diamond { color: var(--cyan); }

  .profile-holding-qty {
    margin-left: auto;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
  }

  .profile-holding-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 10px;
  }

  .profile-holding-meta strong {
    color: var(--text);
    font-weight: 600;
  }

  .profile-holding-progress {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .profile-holding-progress .profile-progress-track {
    flex: 1;
    margin-bottom: 0;
    height: 4px;
  }

  .profile-holding-progress span {
    font-family: var(--display);
    font-size: 11px;
    font-weight: 700;
    color: var(--cyan);
    min-width: 32px;
    text-align: right;
  }

  .profile-progress-block--aggregate {
    border-top: 1px solid rgba(42,58,107,0.5);
    padding-top: 14px;
    margin-top: 4px;
  }

  .profile-blindbox-empty {
    padding: 24px 16px;
    text-align: center;
    border-radius: 12px;
    border: 1px dashed rgba(42,58,107,0.7);
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
  }

  .profile-quick--page {
    padding: 4px 16px 16px;
    margin-bottom: 0;
  }

  .profile-disclaimer--page {
    margin-top: 28px;
    text-align: center;
  }

  .profile-guest-icon {
    width: 88px;
    height: 88px;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: rgba(108,92,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
  }

  .profile-user-card {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(22,31,61,0.6);
    margin-bottom: 16px;
  }

  .profile-avatar {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    border: 1px solid rgba(0,224,255,0.25);
    background: rgba(0,224,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .profile-user-meta { min-width: 0; flex: 1; }

  .profile-user-top {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
  }

  .profile-captain {
    font-family: var(--display);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid;
  }

  .profile-captain.bronze { color: #cd7f32; border-color: rgba(205,127,50,0.4); background: rgba(205,127,50,0.1); }
  .profile-captain.silver { color: #c0c0c0; border-color: rgba(192,192,192,0.4); background: rgba(192,192,192,0.08); }
  .profile-captain.gold { color: var(--gold); border-color: rgba(255,209,102,0.4); background: rgba(255,209,102,0.08); }
  .profile-captain.diamond { color: var(--cyan); border-color: rgba(0,224,255,0.4); background: rgba(0,224,255,0.08); }
  .profile-captain.none { color: var(--muted); border-color: var(--line); background: transparent; }

  .profile-wallet {
    font-size: 12px;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
  }

  .profile-user-sub {
    margin: 0;
    font-size: 12px;
    color: var(--muted);
  }

  .profile-asset-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 22px;
  }

  .profile-asset {
    padding: 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(11,16,32,0.5);
  }

  .profile-asset-label {
    display: block;
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 6px;
    letter-spacing: 0.04em;
  }

  .profile-asset-value {
    font-family: var(--display);
    font-size: 1.05rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
  }

  .profile-asset-value.cyan { color: var(--cyan); }
  .profile-asset-value.gold { color: var(--gold); }
  .profile-asset-value.muted { color: var(--muted); }

  .profile-section { margin-bottom: 20px; }

  .profile-section-title {
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .profile-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(22,31,61,0.45);
    overflow: hidden;
  }

  .profile-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(42,58,107,0.45);
    font-size: 13px;
  }

  .profile-row:last-child { border-bottom: none; }
  .profile-row.sub { padding-top: 0; border-bottom: none; }
  .profile-row-label { color: var(--muted); }
  .profile-row-value { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
  .profile-row-value.accent { color: var(--primary); }
  .profile-row-value.green { color: var(--green); }
  .profile-row-value.muted { color: var(--muted); font-weight: 500; }

  .profile-progress-block {
    padding: 12px 14px 14px;
    border-top: 1px solid rgba(42,58,107,0.45);
  }

  .profile-progress-head {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 8px;
    color: var(--muted);
  }

  .profile-progress-head span:last-child {
    font-family: var(--display);
    font-weight: 700;
    color: var(--cyan);
  }

  .profile-progress-track {
    height: 6px;
    border-radius: 3px;
    background: rgba(42,58,107,0.6);
    overflow: hidden;
    margin-bottom: 8px;
  }

  .profile-progress-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--primary), var(--cyan));
  }

  .profile-progress-note {
    margin: 0;
    font-size: 11px;
    color: var(--muted);
    line-height: 1.5;
  }

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

  .profile-stat-box {
    padding: 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(11,16,32,0.45);
    text-align: center;
  }

  .profile-stat-num {
    display: block;
    font-family: var(--display);
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 4px;
  }

  .profile-stat-num.green { color: var(--green); }

  .profile-stat-lbl {
    font-size: 11px;
    color: var(--muted);
    line-height: 1.4;
  }

  .profile-quick {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 16px;
  }

  .profile-quick-link {
    padding: 11px 12px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: rgba(108,92,255,0.08);
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    transition: border-color 0.2s, background 0.2s;
  }

  .profile-quick-link:hover {
    border-color: rgba(0,224,255,0.35);
    background: rgba(0,224,255,0.08);
  }

  .profile-disclaimer {
    margin: 0;
    font-size: 11px;
    line-height: 1.6;
    color: var(--muted);
    padding: 12px;
    border-radius: 10px;
    border: 1px dashed rgba(42,58,107,0.7);
  }

  @media (max-width: 900px) {
    .nav-profile-text { display: none; }
    .nav-profile { padding: 8px 10px; }
    .profile-asset-grid--page { grid-template-columns: repeat(2, 1fr); }
    .profile-page-grid { grid-template-columns: 1fr; }
  }

  @media (max-width: 480px) {
    .profile-asset-grid--page { grid-template-columns: 1fr; }
  }

  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
    white-space: nowrap;
    cursor: pointer;
  }

  .btn:active { transform: scale(0.98); }

  .btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
  }

  .btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--cyan));
    color: #0b1020;
    box-shadow: 0 4px 24px rgba(108,92,255,0.35);
  }

  .btn-primary:hover { box-shadow: 0 6px 32px rgba(108,92,255,0.5); }

  .btn-ghost {
    border: 1px solid var(--line);
    background: rgba(28,41,80,0.5);
    color: var(--text);
  }

  .btn-ghost:hover { border-color: rgba(0,224,255,0.35); background: #1c2950; }

  .btn-sm { padding: 8px 16px; font-size: 12px; }

  .nav-toggle {
    display: none;
    width: 40px; height: 40px;
    align-items: center; justify-content: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(28,41,80,0.5);
  }

  .mobile-menu {
    display: none;
    position: fixed;
    top: calc(var(--nav-h) + 32px);
    left: 16px; right: 16px;
    z-index: 99;
    background: rgba(11,16,32,0.95);
    backdrop-filter: blur(16px);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 12px;
    flex-direction: column;
    gap: 4px;
  }

  .mobile-menu.open { display: flex; }
  .mobile-menu a,
  .mobile-menu button.mobile-connect {
    padding: 12px 16px;
    border-radius: 10px;
    color: var(--muted);
    font-size: 15px;
    width: 100%;
    text-align: left;
    border: none;
    background: none;
  }
  .mobile-menu a:hover,
  .mobile-menu button.mobile-connect:hover { color: var(--cyan); background: rgba(0,224,255,0.06); }

  /* ── Hero ── */
  .hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: calc(var(--nav-h) + 48px) 24px 100px;
    overflow: hidden;
  }

  .hero-marquee {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    opacity: 0.55;
    mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
    pointer-events: none;
  }

  .marquee-row { overflow: hidden; width: 100%; }

  .marquee-track {
    display: flex;
    gap: 28px;
    width: max-content;
    animation: scroll-left 120s linear infinite;
  }

  .marquee-row:nth-child(1) .marquee-track { animation-duration: 120s; }
  .marquee-row:nth-child(2) .marquee-track {
    animation-name: scroll-right;
    animation-duration: 135s;
  }
  .marquee-row:nth-child(3) .marquee-track { animation-duration: 110s; }

  @keyframes scroll-left {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
  }

  @keyframes scroll-right {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
  }

  .marquee-img {
    width: 220px;
    height: 280px;
    flex-shrink: 0;
    border-radius: 16px;
    border: 1px solid var(--line);
    object-fit: cover;
    box-shadow: 0 12px 36px rgba(0,0,0,0.5);
    background: var(--card);
  }

  @media (min-width: 768px) {
    .marquee-img { width: 300px; height: 380px; }
    .marquee-track { gap: 36px; }
    .hero-marquee { gap: 36px; }
  }

  @media (min-width: 1200px) {
    .marquee-img { width: 340px; height: 420px; }
    .marquee-track { gap: 40px; }
  }

  .hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 65% 55% at 50% 45%, rgba(11,16,32,0.2), rgba(11,16,32,0.9) 72%);
    pointer-events: none;
  }

  .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 760px;
  }

  .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(108,92,255,0.12);
    font-size: 11px;
    font-weight: 600;
    color: #b8aeff;
    margin-bottom: 48px;
    letter-spacing: 0.06em;
  }

  .hero-badge .dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
    animation: pulse 2s infinite;
  }

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

  .hero h1 {
    font-family: var(--display);
    font-size: clamp(2.25rem, 6.5vw, 4.25rem);
    font-weight: 800;
    line-height: 1.12;
    margin: 0 0 24px;
    letter-spacing: -0.02em;
  }

  .hero h1 .gradient {
    background: linear-gradient(135deg, #fff 0%, var(--cyan) 50%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  .hero-desc {
    font-size: clamp(15px, 2vw, 17px);
    color: var(--muted);
    max-width: 560px;
    margin: 0 auto 56px;
    line-height: 1.85;
  }

  .hero-desc strong { color: var(--text); font-weight: 600; }

  .hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-bottom: 64px;
  }

  .hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 56px;
    justify-content: center;
  }

  .stat .val {
    font-family: var(--display);
    font-size: 22px;
    font-weight: 700;
    color: var(--cyan);
  }

  .stat .lbl { font-size: 12px; color: var(--muted); margin-top: 2px; }

  .scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    font-size: 10px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .scroll-hint::after {
    content: "";
    width: 1px; height: 36px;
    background: linear-gradient(to bottom, var(--muted), transparent);
    animation: scroll-pulse 2s ease-in-out infinite;
  }

  @keyframes scroll-pulse {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 1; }
  }

  /* ── Sections ── */
  section { padding: 100px 24px; position: relative; z-index: 1; }
  .section-inner { max-width: var(--max-w); margin: 0 auto; }

  .section-label {
    font-family: var(--display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 12px;
  }

  .section-title {
    font-family: var(--display);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    margin: 0 0 16px;
    line-height: 1.2;
  }

  .section-desc {
    color: var(--muted);
    font-size: 16px;
    max-width: 620px;
    line-height: 1.75;
    margin: 0 0 48px;
  }

  /* ── Blind box tiers (collection style) ── */
  .tier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
  }

  .tier-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: linear-gradient(160deg, var(--card), var(--bg-elevated));
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
  }

  .tier-card:hover {
    border-color: rgba(0,224,255,0.4);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.35);
  }

  .tier-header {
    padding: 24px 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
  }

  .tier-rank {
    font-family: var(--display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid;
  }

  .tier-rank.bronze { color: #cd7f32; border-color: rgba(205,127,50,0.4); background: rgba(205,127,50,0.1); }
  .tier-rank.silver { color: #c0c0c0; border-color: rgba(192,192,192,0.4); background: rgba(192,192,192,0.08); }
  .tier-rank.gold { color: var(--gold); border-color: rgba(255,209,102,0.4); background: rgba(255,209,102,0.08); }
  .tier-rank.diamond { color: var(--cyan); border-color: rgba(0,224,255,0.4); background: rgba(0,224,255,0.08); }

  .tier-price {
    font-family: var(--display);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text);
  }

  .tier-body { padding: 16px 24px 24px; }

  .tier-name { font-size: 15px; font-weight: 700; margin: 0 0 4px; }
  .tier-stock { font-size: 12px; color: var(--muted); margin-bottom: 16px; }

  .tier-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 20px;
  }

  .tier-meta strong { color: var(--text); }

  .tier-card .btn { width: 100%; }

  /* ── Blind box specs / 盲盒说明 ── */
  .bb-spec-section {
    background: linear-gradient(180deg, rgba(18,26,51,0.55) 0%, transparent 100%);
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .bb-stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 32px;
  }

  .bb-stat {
    padding: 20px 22px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: linear-gradient(145deg, rgba(22,31,61,0.9), rgba(11,16,32,0.6));
    text-align: center;
  }

  .bb-stat-value {
    display: block;
    font-family: var(--display);
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 800;
    color: var(--cyan);
    line-height: 1.2;
    margin-bottom: 6px;
  }

  .bb-stat-label {
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 0.04em;
  }

  .bb-panel {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(160deg, rgba(22,31,61,0.75), rgba(11,16,32,0.5));
    padding: 28px 28px 24px;
    margin-bottom: 24px;
    overflow: hidden;
  }

  .bb-panel-title {
    font-family: var(--display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text);
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .bb-panel-title::before {
    content: "";
    width: 4px;
    height: 16px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--primary), var(--cyan));
    flex-shrink: 0;
  }

  .bb-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -4px;
    padding: 0 4px 4px;
  }

  .bb-table {
    width: 100%;
    min-width: 560px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
  }

  .bb-table thead th {
    padding: 12px 16px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
    background: rgba(0,0,0,0.15);
  }

  .bb-table thead th:first-child { border-radius: 10px 0 0 0; }
  .bb-table thead th:last-child { border-radius: 0 10px 0 0; text-align: right; }

  .bb-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(42,58,107,0.5);
    vertical-align: middle;
  }

  .bb-table tbody tr:last-child td { border-bottom: none; }
  .bb-table tbody tr:hover td { background: rgba(0,224,255,0.04); }
  .bb-table tbody td:last-child { text-align: right; font-variant-numeric: tabular-nums; }

  .bb-table .tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
  }

  .bb-table .tier-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
  }

  .bb-table .tier-dot.bronze { background: #cd7f32; box-shadow: 0 0 8px rgba(205,127,50,0.5); }
  .bb-table .tier-dot.silver { background: #c0c0c0; box-shadow: 0 0 8px rgba(192,192,192,0.4); }
  .bb-table .tier-dot.gold { background: var(--gold); box-shadow: 0 0 8px rgba(255,209,102,0.45); }
  .bb-table .tier-dot.diamond { background: var(--cyan); box-shadow: 0 0 8px rgba(0,224,255,0.45); }

  .bb-table tfoot td {
    padding: 14px 16px;
    font-weight: 700;
    font-size: 13px;
    color: var(--muted);
    border-top: 1px solid var(--line);
    background: rgba(108,92,255,0.06);
  }

  .bb-table tfoot td:last-child { text-align: right; color: var(--cyan); }

  .bb-unlock-intro {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.75;
    margin: 0 0 24px;
    white-space: nowrap;
  }

  @media (max-width: 900px) {
    .bb-unlock-intro { white-space: normal; }
  }

  .bb-unlock-intro strong { color: var(--text); }

  .bb-unlock-visual {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  @media (min-width: 900px) {
    .bb-unlock-visual { grid-template-columns: 200px 1fr; align-items: start; }
  }

  .bb-tge-card {
    padding: 24px 20px;
    border-radius: 14px;
    border: 1px solid rgba(0,224,255,0.35);
    background: linear-gradient(145deg, rgba(0,224,255,0.1), rgba(108,92,255,0.08));
    text-align: center;
  }

  .bb-tge-card .pct {
    font-family: var(--display);
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--cyan);
    line-height: 1;
    margin-bottom: 8px;
  }

  .bb-tge-card .lbl {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
  }

  .bb-tge-card .sub {
    font-size: 11px;
    color: var(--muted);
  }

  .bb-rounds { display: flex; flex-direction: column; gap: 10px; }

  .bb-round {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 12px 16px;
    align-items: center;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(42,58,107,0.6);
    background: rgba(11,16,32,0.4);
    transition: border-color 0.2s, background 0.2s;
  }

  .bb-round:hover {
    border-color: rgba(108,92,255,0.45);
    background: rgba(108,92,255,0.06);
  }

  .bb-round-num {
    font-family: var(--display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--primary);
    text-transform: uppercase;
  }

  .bb-round-trigger {
    font-size: 13px;
    color: var(--text);
  }

  .bb-round-trigger code {
    font-family: var(--display);
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(0,224,255,0.1);
    color: var(--cyan);
    border: 1px solid rgba(0,224,255,0.2);
  }

  .bb-round-pct {
    font-family: var(--display);
    font-size: 15px;
    font-weight: 700;
    color: var(--green);
    min-width: 48px;
    text-align: right;
  }

  .bb-round-bar-wrap {
    grid-column: 2 / -1;
    height: 4px;
    border-radius: 2px;
    background: rgba(42,58,107,0.5);
    overflow: hidden;
  }

  .bb-round-bar {
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--primary), var(--cyan));
    transition: width 0.4s ease;
  }

  .bb-compliance-note {
    margin-top: 20px;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.65;
    color: var(--muted);
    border: 1px dashed rgba(42,58,107,0.8);
    background: rgba(11,16,32,0.35);
  }

  @media (max-width: 640px) {
    .bb-stat-row { grid-template-columns: 1fr; }
    .bb-panel { padding: 20px 16px; }
    .bb-round {
      grid-template-columns: 1fr auto;
    }
    .bb-round-num { grid-column: 1; }
    .bb-round-pct { grid-column: 2; grid-row: 1; }
    .bb-round-trigger { grid-column: 1 / -1; }
    .bb-round-bar-wrap { grid-column: 1 / -1; }
  }

  /* ── Mint mock ── */
  .product-panel {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 32px;
    max-width: 480px;
    margin: 0 auto;
  }

  .wallet-status {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px dashed var(--line);
    background: rgba(108,92,255,0.06);
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--muted);
  }

  .wallet-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--muted);
    flex-shrink: 0;
  }

  .wallet-status.connected .wallet-dot { background: var(--green); box-shadow: 0 0 8px var(--green); }
  .wallet-status.connected { border-style: solid; border-color: rgba(54,224,164,0.3); color: var(--text); }

  /* ── Battle section ── */
  .battle-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
  }

  @media (max-width: 1100px) {
    .battle-grid { grid-template-columns: 1fr; }
  }

  .battle-card {
    padding: 32px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: linear-gradient(160deg, var(--card), var(--bg-elevated));
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s;
  }

  .battle-card:hover { border-color: rgba(0,224,255,0.35); }

  .battle-card.battle-card-soon {
    opacity: 0.85;
    border-style: dashed;
  }

  .battle-card.battle-card-soon:hover { border-color: var(--line); transform: none; }

  .battle-card.battle-card-soon .battle-icon {
    background: rgba(255,255,255,0.06);
    border-color: var(--line);
  }

  .battle-card.battle-card-soon .battle-icon svg { stroke: var(--muted); }

  .battle-card.battle-card-soon .param {
    background: rgba(255,255,255,0.04);
    border-color: var(--line);
    color: var(--muted);
  }

  .battle-card.featured {
    border-color: rgba(108,92,255,0.45);
    background: linear-gradient(160deg, rgba(108,92,255,0.15), var(--bg-elevated));
  }

  .battle-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
    background: rgba(108,92,255,0.15);
    border: 1px solid rgba(108,92,255,0.25);
  }

  .battle-icon svg { width: 24px; height: 24px; stroke: var(--cyan); fill: none; stroke-width: 1.8; }

  .battle-card h3 {
    font-family: var(--display);
    font-size: 18px;
    margin: 0 0 8px;
  }

  .battle-card p { font-size: 14px; color: var(--muted); margin: 0 0 20px; flex: 1; line-height: 1.65; }

  .battle-params {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
  }

  .param {
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(0,224,255,0.08);
    border: 1px solid rgba(0,224,255,0.2);
    color: var(--cyan);
  }

  .arena-preview {
    margin-top: 48px;
    padding: 28px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: rgba(11,16,32,0.6);
    text-align: center;
  }

  .arena-fighters {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin: 24px 0;
  }

  .fighter {
    width: 100px; height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--cyan));
    display: flex; align-items: center; justify-content: center;
    border: 2px solid rgba(0,224,255,0.3);
    position: relative;
  }

  .fighter svg { width: 52px; height: 52px; }

  .vs {
    font-family: var(--display);
    font-size: 20px;
    font-weight: 800;
    color: var(--pink);
    text-shadow: 0 0 20px rgba(255,106,213,0.5);
  }

  .timer {
    font-family: var(--display);
    font-size: 28px;
    font-weight: 700;
    color: var(--cyan);
    margin-bottom: 8px;
  }

  /* ── Home intro ── */
  .intro-section {
    background: rgba(18, 26, 51, 0.35);
  }

  .intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: stretch;
  }

  @media (max-width: 900px) {
    .intro-grid { grid-template-columns: 1fr; }
  }

  .intro-card {
    padding: 32px 28px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: linear-gradient(160deg, var(--card), var(--bg-elevated));
  }

  .intro-card-featured {
    border-color: rgba(108, 92, 255, 0.4);
    background: linear-gradient(160deg, rgba(108, 92, 255, 0.12), var(--bg-elevated));
  }

  .intro-card .section-label { margin-bottom: 10px; }

  .intro-title {
    font-family: var(--display);
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 700;
    margin: 0 0 16px;
    line-height: 1.25;
  }

  .intro-body {
    margin: 0;
    font-size: 15px;
    color: var(--muted);
    line-height: 1.85;
  }

  .intro-body strong { color: var(--text); font-weight: 600; }

  .intro-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
  }

  .intro-tag {
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(0, 224, 255, 0.22);
    background: rgba(0, 224, 255, 0.08);
    color: var(--cyan);
    font-weight: 600;
  }

  /* ── Modules ── */
  .modules-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
  }

  @media (max-width: 1024px) { .modules-grid { grid-template-columns: repeat(3, 1fr); } }
  @media (max-width: 600px) { .modules-grid { grid-template-columns: 1fr 1fr; } }

  .module-card {
    padding: 20px 16px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--card);
    transition: border-color 0.2s, transform 0.2s;
  }

  .module-card:hover { border-color: rgba(0,224,255,0.3); transform: translateY(-3px); }

  .module-card h4 {
    font-family: var(--display);
    font-size: 12px;
    margin: 0 0 6px;
    color: var(--cyan);
  }

  .module-card p { font-size: 12px; color: var(--muted); margin: 0; line-height: 1.5; }

  /* ── Steps ── */
  .steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }

  @media (max-width: 768px) { .steps { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

  .step {
    text-align: center;
    padding: 24px 16px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--card);
  }

  .step-num {
    width: 56px; height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    border: 2px solid var(--line);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--display);
    font-size: 18px;
    font-weight: 800;
    color: var(--cyan);
  }

  .step h4 { font-size: 14px; margin: 0 0 6px; }
  .step p { font-size: 13px; color: var(--muted); margin: 0; }

  /* ── FAQ ── */
  .faq-item {
    border: 1px solid var(--line);
    border-radius: 12px;
    margin-bottom: 10px;
    overflow: hidden;
    background: var(--card);
  }

  .faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
    transition: background 0.2s;
  }

  .faq-q:hover { background: #1c2950; }

  .faq-q svg {
    width: 18px; height: 18px;
    stroke: var(--muted);
    fill: none;
    stroke-width: 2;
    flex-shrink: 0;
    transition: transform 0.2s;
  }

  .faq-item.open .faq-q svg { transform: rotate(180deg); stroke: var(--cyan); }

  .faq-a {
    display: none;
    padding: 0 20px 18px;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.65;
  }

  .faq-item.open .faq-a { display: block; }

  /* ── CTA + compliance ── */
  .cta-banner {
    padding: 56px 40px;
    border-radius: 24px;
    border: 1px solid rgba(0,224,255,0.3);
    background: linear-gradient(135deg, rgba(108,92,255,0.2), rgba(0,224,255,0.08));
    text-align: center;
    margin-bottom: 48px;
  }

  .cta-banner h2 {
    font-family: var(--display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin: 0 0 12px;
  }

  .cta-banner p { color: var(--muted); margin: 0 0 28px; }

  .compliance-note {
    padding: 14px 18px;
    border-radius: 10px;
    border: 1px solid rgba(255,209,102,0.3);
    background: rgba(255,209,102,0.06);
    font-size: 13px;
    color: var(--gold);
    line-height: 1.6;
  }

  /* ── Footer ── */
  footer {
    border-top: 1px solid var(--line);
    padding: 48px 24px 32px;
    position: relative;
    z-index: 1;
  }

  .footer-grid {
    max-width: var(--max-w);
    margin: 0 auto 32px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
  }

  @media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; } }

  .footer-brand p { font-size: 13px; color: var(--muted); margin: 12px 0 0; max-width: 280px; }

  .footer-col h4 {
    font-family: var(--display);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 14px;
  }

  .footer-col a {
    display: block;
    font-size: 14px;
    padding: 5px 0;
    color: var(--text);
    transition: color 0.2s;
  }

  .footer-col a:hover { color: var(--cyan); }

  .footer-bottom {
    max-width: var(--max-w);
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    font-size: 12px;
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
  }

  /* ── Edit toolbar ── */
  .edit-toolbar {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 200;
    display: flex;
    gap: 8px;
    padding: 8px;
    background: rgba(11,16,32,0.95);
    border: 1px solid var(--line);
    border-radius: 12px;
    backdrop-filter: blur(12px);
  }

  .edit-toolbar button {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid var(--line);
    background: var(--card);
    transition: background 0.2s;
  }

  .edit-toolbar button:hover { background: #1c2950; }
  .edit-toolbar button.on { background: linear-gradient(135deg, var(--pink), var(--gold)); color: #2a0f2a; border: none; }

  [contenteditable="true"] { outline: 2px dashed rgba(0,224,255,0.35); outline-offset: 4px; border-radius: 4px; }

  @media (max-width: 1100px) {
    .nav { padding: 0 20px; gap: 12px; }
    .nav-links a { padding: 8px 10px; font-size: 12px; }
  }

  @media (max-width: 768px) {
    .nav-links, .nav-actions .btn-ghost { display: none; }
    .nav-balance { display: none; }
    .nav-profile { display: inline-flex; }
    .nav-toggle { display: flex; }
    .hero-ctas .btn { flex: 1; min-width: 140px; }
  }

  /* ── Nav active + subpage hero ── */
  .nav-links a.active {
    color: var(--text);
    background: rgba(0,224,255,0.1);
  }

  .page-hero {
    position: relative;
    z-index: 1;
    padding: calc(var(--nav-h) + 72px) 24px 56px;
    text-align: center;
    max-width: var(--max-w);
    margin: 0 auto;
  }

  .page-hero h1 {
    font-family: var(--display);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    margin: 0 0 16px;
    line-height: 1.15;
  }

  .page-hero p {
    color: var(--muted);
    font-size: 16px;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.75;
  }

  .page-section-first { padding-top: 0; }

  /* ── Page transition popup ── */
  .page-transition {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
  }

  .page-transition.active {
    pointer-events: all;
    opacity: 1;
    visibility: visible;
  }

  .page-transition-bg {
    position: absolute;
    inset: 0;
    background: rgba(4, 8, 18, 0.88);
    backdrop-filter: blur(14px);
    opacity: 0;
    transition: opacity 0.35s ease;
  }

  .page-transition.active .page-transition-bg { opacity: 1; }

  .page-transition-card {
    position: relative;
    z-index: 1;
    padding: 28px 40px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: linear-gradient(160deg, var(--card), var(--bg-elevated));
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    transform: scale(0.55) translateY(36px);
    opacity: 0;
    transition: transform 0.48s cubic-bezier(0.34, 1.45, 0.64, 1), opacity 0.32s ease;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
  }

  .page-transition.active .page-transition-card {
    transform: scale(1) translateY(0);
    opacity: 1;
  }

  .page-transition-card img { width: 44px; height: 44px; }

  .page-transition-label {
    font-family: var(--display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cyan);
  }

  /* ── Wallet modal popup (same motion as page transition) ── */
  .wallet-modal.open .wallet-modal-backdrop {
    animation: overlayFadeIn 0.35s ease both;
  }

  .wallet-modal.wallet-animate-in .wallet-modal-panel {
    animation: pagePopIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .wallet-modal.wallet-animate-out .wallet-modal-panel {
    animation: pagePopOut 0.32s cubic-bezier(0.4, 0, 0.2, 1) both;
  }

  .wallet-modal.wallet-animate-out .wallet-modal-backdrop {
    animation: overlayFadeOut 0.32s ease both;
  }

  @keyframes overlayFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  @keyframes overlayFadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
  }

  @keyframes pagePopOut {
    from {
      opacity: 1;
      transform: scale(1) translateY(0);
      filter: blur(0);
    }
    to {
      opacity: 0;
      transform: scale(0.93) translateY(20px);
      filter: blur(4px);
    }
  }

  main.page-shell {
    position: relative;
    z-index: 1;
  }

  body.page-enter main.page-shell {
    animation: pagePopIn 0.62s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  @keyframes pagePopIn {
    from {
      opacity: 0;
      transform: scale(0.93) translateY(28px);
      filter: blur(6px);
    }
    to {
      opacity: 1;
      transform: scale(1) translateY(0);
      filter: blur(0);
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .page-transition-card,
    .page-transition-bg,
    body.page-enter main.page-shell,
    .wallet-modal.open .wallet-modal-backdrop,
    .wallet-modal.wallet-animate-in .wallet-modal-panel,
    .wallet-modal.wallet-animate-out .wallet-modal-panel,
    .wallet-modal.wallet-animate-out .wallet-modal-backdrop {
      transition: none !important;
      animation: none !important;
    }
    body.page-enter main.page-shell { opacity: 1; transform: none; filter: none; }
  }
