  :root {
    color-scheme: light dark;
    --brand: #0A59F7;
    --bg: #f7f7f5; --card: #ffffff; --text: #1c1c1e; --muted: #6b6b70; --line: #e4e4e2;
  }
  @media (prefers-color-scheme: dark) {
    :root { --bg: #111113; --card: #1c1c1f; --text: #f2f2f4; --muted: #9a9aa0; --line: #2c2c30; }
  }
  * { box-sizing: border-box; }
  body {
    margin: 0; background: var(--bg); color: var(--text);
    font: 16px/1.7 -apple-system, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
    display: flex; min-height: 100vh; align-items: center; justify-content: center; padding: 24px;
  }
  main { width: 100%; max-width: 430px; }
  .card {
    background: var(--card); border: 1px solid var(--line); border-radius: 18px;
    padding: 30px 26px; text-align: center;
  }
  .mark { width: 56px; height: 56px; border-radius: 13px; }
  h1 { font-size: 21px; margin: 14px 0 4px; }
  .deal { font-size: 15px; color: var(--muted); margin: 0 0 4px; }
  .deal strong { color: var(--brand); font-size: 17px; }
  .event {
    font-size: 13px; color: var(--muted); line-height: 1.6; margin: 10px 0 0;
    background: color-mix(in srgb, var(--brand) 6%, transparent);
    border-radius: 10px; padding: 8px 10px;
  }
  .event strong { color: var(--text); }
  .left { font-size: 13px; color: var(--muted); margin: 14px 0 18px; }
  button.claim {
    width: 100%; padding: 13px 0; border: 0; border-radius: 999px; cursor: pointer;
    background: var(--brand); color: #fff; font-size: 16px; font-weight: 600;
  }
  button.claim:disabled { opacity: .45; cursor: default; }
  .code-box { display: none; margin: 18px 0 6px; }
  .code {
    font: 600 22px/1.4 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 2px;
    background: color-mix(in srgb, var(--brand) 8%, transparent);
    border: 1px dashed var(--brand); border-radius: 12px; padding: 12px 8px;
    user-select: all; -webkit-user-select: all; word-break: break-all;
  }
  .row { display: flex; gap: 10px; margin-top: 12px; }
  .row a, .row button {
    flex: 1; padding: 11px 0; border-radius: 999px; font-size: 15px; font-weight: 600;
    cursor: pointer; text-decoration: none; text-align: center;
    border: 1px solid var(--brand); background: transparent; color: var(--brand);
  }
  .row a.primary { background: var(--brand); color: #fff; }
  .hint { font-size: 13px; color: var(--muted); margin-top: 16px; text-align: left; }
  .hint p { margin: 6px 0; }
  .note { display: none; font-size: 14px; margin-top: 12px; line-height: 1.6; text-align: left; }
  .note a, .hint a { color: var(--brand); word-break: break-all; }
  .turnstile { display: flex; justify-content: center; margin-bottom: 14px; min-height: 0; }
  footer { text-align: center; margin-top: 18px; font-size: 13px; }
  footer a { color: var(--muted); }
