    :root {
      color-scheme: dark;
      --bg: #0c1116;
      --panel: #141b22;
      --line: #2a3644;
      --text: #e8eef5;
      --muted: #8b9aab;
      --accent: #9ebfff;
      --ok: #3ecf8e;
    }
    * { box-sizing: border-box; }
    body {
      margin: 0; background: var(--bg); color: var(--text);
      font: 15px/1.5 ui-sans-serif, system-ui, sans-serif;
    }
    main { max-width: 720px; margin: 0 auto; padding: 28px 16px 64px; }
    h1 { margin: 0 0 16px; font-size: 22px; }
    .step-title { margin: 0 0 14px; font-size: 16px; font-weight: 720; }
    a { color: var(--accent); }
    form, .card, .order {
      background: var(--panel); border: 1px solid var(--line);
      border-radius: 12px; padding: 16px; margin: 0 0 14px;
    }
    label { display: grid; gap: 4px; margin: 0 0 12px; font-size: 12px; color: var(--muted); }
    input, select {
      width: 100%; background: var(--bg); color: var(--text);
      border: 1px solid var(--line); border-radius: 8px;
      padding: 8px 10px; font: 14px/1.4 ui-monospace, Menlo, Consolas, monospace;
    }
    .row { display: flex; gap: 8px; flex-wrap: wrap; }
    button {
      background: #1d4ed8; color: white; border: 0; border-radius: 8px;
      padding: 9px 14px; font: inherit; cursor: pointer;
    }
    button.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
    button:disabled { opacity: 0.7; cursor: default; }
    button.busy { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
    button.busy::before {
      content: ""; width: 14px; height: 14px; border-radius: 50%;
      border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff;
      animation: spin 0.8s linear infinite;
    }
    .token { display: flex; gap: 12px; align-items: center; margin: 0 0 14px; }
    #next, #create, #back, #order-back, #new-order, #order-done-new { min-width: 140px; min-height: 44px; }
    #order-done p { margin: 0 0 16px; }
    .status-row { display: flex; align-items: center; gap: 8px; }
    .spin {
      width: 16px; height: 16px; border: 2px solid var(--line); border-top-color: var(--accent);
      border-radius: 50%; animation: spin 0.8s linear infinite; flex: 0 0 16px;
    }
    @keyframes spin { to { transform: rotate(360deg); } }
    .status.bad { color: #f0b429; }
    .token img, .mark {
      width: 64px; height: 64px; border-radius: 50%; object-fit: cover;
      background: #1c2733; display: grid; place-items: center; flex: 0 0 64px;
      font-weight: 750; letter-spacing: 0.02em;
    }
    .token img { display: block; }
    img.preview, video.preview {
      width: 100%; height: auto; max-height: 420px; border-radius: 8px; margin: 8px 0;
      object-fit: contain; background: #000; display: block;
    }
    video.preview { aspect-ratio: 16 / 9; }
    .field { display: grid; gap: 6px; margin: 0 0 12px; }
    .media-choice { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: stretch; }
    .media-choice.solo { grid-template-columns: 1fr; }
    .choice {
      position: relative; width: 100%; justify-content: center; text-align: center;
      background: var(--bg); color: var(--text); border: 1px solid var(--line);
      border-radius: 8px; min-height: 44px; padding: 9px 14px; margin: 0;
      font: inherit; font-weight: 650; cursor: pointer;
      display: inline-flex; align-items: center;
    }
    .choice.on { border-color: var(--accent); background: #1c2733; }
    .choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
    .or { align-self: center; color: var(--muted); font-size: 13px; font-weight: 650; }
    .symbol { font-size: 22px; font-weight: 720; }
    .muted { color: var(--muted); font-size: 13px; }
    .board { margin: 14px 0 16px; }
    .heads, .packages { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; }
    .heads { margin: 0 0 4px; text-align: center; color: var(--muted); font-size: 13px; font-weight: 700; }
    .packages button {
      background: var(--bg); color: var(--text); border: 1px solid var(--line);
      border-radius: 8px; min-height: 44px; font-weight: 650;
    }
    .packages button.on { border-color: var(--accent); background: #1c2733; }
    .packages.stack { grid-template-columns: 1fr; }
    .vote-picks { grid-template-columns: repeat(5, 1fr); margin: 0 0 12px; }
    @media (max-width: 640px) {
      .vote-picks { grid-template-columns: repeat(3, 1fr); }
    }
    button.step { min-width: 140px; min-height: 44px; }
    #raid-next { margin-top: 16px; }
    .banner { width: 100%; height: auto; display: block; border-radius: 8px; margin: 0 0 16px; }
    .welcome p { margin: 0 0 10px; }
    .welcome p:last-child { margin: 0 0 16px; }
    .menu { display: grid; gap: 10px; }
    .menu button, a.menu-link {
      display: flex; align-items: center; justify-content: center; width: 100%;
      min-height: 48px; background: var(--bg); color: var(--text);
      border: 1px solid var(--line); border-radius: 8px; padding: 9px 14px;
      font: inherit; font-weight: 650; text-decoration: none; cursor: pointer;
    }
    .menu button.on { border-color: var(--accent); background: #1c2733; }
    a.menu-link { position: relative; }
    a.menu-link svg { position: absolute; top: 8px; right: 10px; width: 14px; height: 14px; color: var(--muted); }
    .perks { margin: 4px 0 16px; font-size: 14px; }
    .perks h2 { margin: 14px 0 6px; font-size: 13px; letter-spacing: 0.06em; }
    .perks ul { margin: 0; padding-left: 18px; }
    .perks li { margin: 0 0 6px; }
    .perks a { word-break: normal; overflow-wrap: anywhere; }
    .perks a[target="_blank"]::after,
    .copy a[target="_blank"]::after {
      content: "↗";
      margin-left: 3px;
      font-size: 12px;
    }
    .perks-list { margin: 0 0 12px; padding-left: 18px; }
    .perks-list li { margin: 0 0 6px; }
    input.bad { border-color: #f0b429; }
    .links { list-style: none; padding: 0; margin: 8px 0 14px; }
    .links li { display: grid; gap: 2px; margin: 0 0 8px; }
    .links span { color: var(--muted); font-size: 12px; }
    .links a { word-break: break-all; }
    .amount { font-size: 28px; font-weight: 720; margin: 8px 0; }
    .support { margin: 14px 0 0; text-align: right; }
    .support a[target="_blank"]::after { content: "↗"; margin-left: 3px; font-size: 12px; }
    .wallet-box { position: relative; }
    button.wallet {
      position: relative; width: 100%; text-align: left; word-break: break-all; cursor: pointer;
      font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px;
      background: var(--bg); color: var(--text); border: 1px solid var(--line);
      border-radius: 8px; padding: 10px 40px 10px 12px;
    }
    button.wallet::after {
      content: ""; position: absolute; top: 10px; right: 12px; width: 16px; height: 16px;
      background: var(--muted);
      -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='13' height='13' rx='2'/%3E%3Cpath d='M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1'/%3E%3C/svg%3E") center / contain no-repeat;
      mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='13' height='13' rx='2'/%3E%3Cpath d='M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1'/%3E%3C/svg%3E") center / contain no-repeat;
    }
    .copy-note {
      position: absolute; top: 8px; right: 10px; margin: 0;
      color: var(--ok); background: var(--bg); font-size: 12px; font-weight: 700;
    }
    .status { color: var(--ok); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
    .err { color: #f0b429; white-space: pre-wrap; }
    .hidden, img.hidden, video.hidden { display: none; }
  