:root{
    --ink:#12131A;
    --panel:#1B1D26;
    --panel-line:#2B2E3A;
    --paper:#EDE9DD;
    --paper-line:#D8D2C0;
    --gold:#C9A227;
    --venmo-blue:#3D95CE;
    --steel:#8891A3;
    --text:#EDEAE0;
    --text-muted:#9A9CA8;
    --text-on-paper:#2A2620;
    --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
    --mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  }
  *{box-sizing:border-box;}
  html{scroll-behavior:smooth;}
  body{
    margin:0;
    background:var(--ink);
    color:var(--text);
    font-family:var(--sans);
    font-size:16px;
    line-height:1.6;
    -webkit-font-smoothing:antialiased;
  }
  a{color:inherit;}
  .wrap{
    max-width:1180px;
    margin:0 auto;
    padding:0 32px;
  }
  /* ---------- layout: sticky rail + content ---------- */
  .layout{
    display:grid;
    grid-template-columns:200px 1fr;
    gap:64px;
    align-items:start;
  }
  .rail{
    position:sticky;
    top:48px;
    padding-top:8px;
  }
  .rail-mark{
    width:44px;
    height:44px;
    display:block;
    margin:0 0 28px 0;
  }
  .rail nav{
    display:flex;
    flex-direction:column;
    gap:4px;
  }
  .rail nav a{
    font-family:var(--mono);
    font-size:13px;
    color:var(--text-muted);
    text-decoration:none;
    padding:7px 0;
    border-left:2px solid transparent;
    padding-left:14px;
    transition:color .15s ease, border-color .15s ease;
  }
  .rail nav a:hover{ color:var(--text); border-left-color:var(--panel-line); }
  .rail nav a.active{ color:var(--gold); border-left-color:var(--gold); }

  main{ min-width:0; }

  section{
    padding:88px 0;
    border-bottom:1px solid var(--panel-line);
  }
  section:last-of-type{ border-bottom:none; }

  .kicker{
    font-family:var(--mono);
    font-size:13px;
    color:var(--steel);
    margin:0 0 18px 0;
  }
  h1,h2,h3{
    font-family:var(--serif);
    font-weight:500;
    margin:0;
    color:var(--text);
  }
  h2{ font-size:34px; margin-bottom:28px; }
  p{ margin:0 0 18px 0; max-width:62ch; color:var(--text); }
  .muted{ color:var(--text-muted); }

  /* ---------- hero ---------- */
  .hero{ padding:96px 0 96px 0; border-bottom:1px solid var(--panel-line); text-align:center; }
  .hero-logo{ width:220px; height:auto; display:block; margin:0 auto 28px auto; }
  .sr-only{ position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
  .hero .lede{ font-family:var(--mono); font-size:15px; color:var(--gold); margin-bottom:26px; }
  .hero p{ font-size:18px; max-width:58ch; color:var(--text-muted); margin-left:auto; margin-right:auto; }

  .co-line{ font-size:17px; margin-top:28px; max-width:60ch; }
  .co-line .co{ font-weight:600; color:var(--text); }

  .callout{
    margin:28px 0 8px 0;
    padding:20px 26px;
    background:var(--panel);
    border-left:3px solid var(--gold);
  }
  .callout p{ margin:0; color:var(--text); font-size:15.5px; max-width:64ch; }

  .rail-support{
    margin-top:36px;
    padding:18px 16px;
    background:var(--panel);
    border:1px solid var(--panel-line);
    border-radius:2px;
  }
  .rail-support-label{
    font-family:var(--mono);
    font-size:12px;
    color:var(--venmo-blue);
    margin-bottom:12px;
  }
  .rail-support-btn{
    display:inline-block;
    width:100%;
    text-align:center;
    font-family:var(--mono);
    font-size:13.5px;
    font-weight:500;
    color:#FFFFFF;
    background:var(--venmo-blue);
    border:1px solid var(--venmo-blue);
    padding:10px 14px;
    border-radius:2px;
    text-decoration:none;
    transition:opacity .15s ease;
  }
  .rail-support-btn:hover{ opacity:0.85; }

  .btn-row{ display:flex; gap:14px; margin-top:32px; flex-wrap:wrap; }
  .btn{
    font-family:var(--mono);
    font-size:13.5px;
    text-decoration:none;
    padding:12px 20px;
    border-radius:2px;
    display:inline-block;
    border:1px solid var(--panel-line);
    color:var(--text);
    transition:border-color .15s ease, background .15s ease;
  }
  .btn:hover{ border-color:var(--gold); }
  .btn.primary{ background:var(--gold); color:var(--ink); border-color:var(--gold); font-weight:500;}
  .btn.primary:hover{ opacity:0.9; }

  /* ---------- game section ---------- */
  .game-head{ display:flex; align-items:center; gap:16px; flex-wrap:wrap; margin-bottom:8px;}
  .game-head h2{ margin-bottom:0; }
  .game-icon{ width:64px; height:64px; border-radius:16px; flex-shrink:0; display:block; }
  .badge{
    font-family:var(--mono);
    font-size:12px;
    color:var(--gold);
    border:1px solid var(--gold);
    padding:3px 9px;
    border-radius:2px;
  }
  .roles-list{
    display:flex; gap:10px; flex-wrap:wrap; margin:24px 0 8px 0;
  }
  .role-chip{
    font-family:var(--mono);
    font-size:12.5px;
    color:var(--text-muted);
    border:1px solid var(--panel-line);
    padding:6px 12px;
    border-radius:2px;
  }

  /* ---------- privacy policy paper card ---------- */
  .policy{
    margin-top:44px;
    background:var(--paper);
    color:var(--text-on-paper);
    padding:44px 48px;
    border-radius:2px;
  }
  .policy h3{ font-family:var(--serif); color:var(--text-on-paper); font-size:22px; margin-bottom:4px; }
  .policy .updated{ font-family:var(--mono); font-size:12px; color:#6B6350; margin-bottom:26px; }
  .policy p{ color:var(--text-on-paper); font-size:15px; max-width:68ch; }
  .policy h4{ font-family:var(--sans); font-weight:600; font-size:14.5px; margin:22px 0 8px 0; color:var(--text-on-paper); }
  .policy a{ color:#7A5E17; }

  /* ---------- support ---------- */
  /* ---------- footer ---------- */
  footer{
    padding:56px 0 64px 0;
  }
  footer .contact-line{ font-family:var(--mono); font-size:14.5px; margin-bottom:22px; }
  footer .fine{ font-family:var(--mono); font-size:12px; color:var(--text-muted); }

  .rail nav a[aria-current="page"]{ color:var(--gold); border-left-color:var(--gold); }
  .rail-support{ display:block; }
  .section-links{ margin-top:8px; }
  .page-head{ padding:72px 0 56px 0; border-bottom:1px solid var(--panel-line); }
  .page-head h1{ font-size:44px; line-height:1.15; margin-bottom:18px; }
  .page-head p{ color:var(--text-muted); font-size:18px; }
  a:focus-visible, .btn:focus-visible{ outline:2px solid var(--gold); outline-offset:3px; }
  img{ max-width:100%; }


  /* ---------- product cards (home) ---------- */
  :root{ --ok:#5fbf8a; --ok-bg:#16301f; --bad:#e5787a; --bad-bg:#3a1b1f; }
  .products{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; margin-top:32px; }
  .product{
    display:flex; flex-direction:column;
    background:var(--panel); border:1px solid var(--panel-line);
    text-decoration:none; color:var(--text); overflow:hidden;
    transition:border-color .15s ease;
  }
  .product:hover{ border-color:var(--gold); }
  .product-visual{ height:176px; background:#0d0e14; overflow:hidden; position:relative; border-bottom:1px solid var(--panel-line); }
  .product-visual img{ width:100%; height:100%; object-fit:cover; display:block; }
  .product-body{ padding:22px 24px 22px; display:flex; flex-direction:column; flex:1; }
  .product-tag{ font-family:var(--mono); font-size:12px; color:var(--steel); margin:0 0 8px; max-width:none; }
  .product-name{ font-family:var(--serif); font-size:26px; line-height:1.2; font-weight:500; margin:0 0 8px; color:var(--text); }
  .product-desc{ color:var(--text-muted); font-size:15px; line-height:1.55; margin:0 0 18px; max-width:none; }
  .product-cta{ margin-top:auto; padding-top:14px; border-top:1px solid var(--panel-line); font-family:var(--mono); font-size:13.5px; color:var(--gold); }
  .product:hover .product-cta{ text-decoration:underline; text-underline-offset:4px; }
  .product:focus-visible{ outline:2px solid var(--gold); outline-offset:3px; }

  .att{ padding:16px 22px; display:grid; align-content:center; gap:7px;
        background:linear-gradient(180deg,#14161e,#0f1016); }
  .att-row{ display:grid; grid-template-columns:1.5fr repeat(4,1fr); gap:8px; align-items:center; }
  .att-name{ height:7px; border-radius:4px; background:#2a2e3b; width:70%; }
  .att-name.w2{ width:55%; } .att-name.w3{ width:80%; }
  .att-date{ font-family:var(--mono); font-size:10.5px; color:var(--steel); text-align:center; }
  .att-c{ display:block; height:24px; line-height:24px; text-align:center; border-radius:4px;
          font-family:var(--mono); font-weight:700; font-size:12px; }
  .att-c.p{ background:var(--ok-bg); color:var(--ok); }
  .att-c.a{ background:var(--bad-bg); color:var(--bad); }
  .att-c.e{ border:1px dashed #2f3340; }

  /* ---------- game page: banner + store links ---------- */
  .banner{ display:block; width:100%; height:auto; border:1px solid var(--panel-line); margin:0 0 32px; }
  .store-row{ display:flex; gap:14px; flex-wrap:wrap; margin:6px 0 8px; }
  .store{
    display:flex; flex-direction:column; gap:2px; flex:1 1 220px; max-width:320px;
    text-decoration:none; padding:14px 20px; border:1px solid var(--panel-line);
    background:var(--panel); color:var(--text); transition:border-color .15s ease;
  }
  .store:hover{ border-color:var(--gold); }
  .store:focus-visible{ outline:2px solid var(--gold); outline-offset:3px; }
  .store-os{ font-family:var(--mono); font-size:12px; color:var(--steel); }
  .store-name{ font-family:var(--serif); font-size:21px; line-height:1.3; color:var(--text); }

  @media (max-width: 640px){
    .products{ grid-template-columns:1fr; }
    .product-visual{ height:164px; }
    .store{ max-width:none; flex-basis:100%; }
    .banner{ margin-bottom:24px; }
  }

  @media (max-width: 860px){
    .wrap{ padding:0 20px; }
    .layout{ grid-template-columns:1fr; gap:0; }
    .rail{
      position:static;
      display:flex;
      align-items:center;
      flex-wrap:wrap;
      gap:12px 16px;
      justify-content:space-between;
      padding:16px 0;
      border-bottom:1px solid var(--panel-line);
      margin-bottom:8px;
    }
    .rail-mark{ margin:0; width:36px; height:36px; order:1; }
    .rail-support{
      order:2;
      margin-top:0;
      padding:8px 10px 8px 14px;
      display:flex;
      align-items:center;
      gap:12px;
      flex:1 1 auto;
      justify-content:space-between;
      max-width:100%;
    }
    .rail-support-label{ display:block; margin:0; font-size:12.5px; white-space:nowrap; }
    .rail-support-btn{ width:auto; padding:8px 14px; white-space:nowrap; }
    .rail nav{ order:3; flex-basis:100%; flex-direction:row; gap:2px; overflow-x:auto; }
    .rail nav a{ border-left:none; border-bottom:2px solid transparent; padding:6px 10px; white-space:nowrap; }
    .rail nav a:hover{ border-left-color:transparent; }
    .rail nav a[aria-current="page"]{ border-left-color:transparent; border-bottom-color:var(--gold); }
    section{ padding:48px 0; }
    .hero{ padding:56px 0; }
    .hero-logo{ width:170px; }
    .page-head{ padding:48px 0 40px 0; }
    .page-head h1{ font-size:34px; }
    h2{ font-size:28px; }
    .policy{ padding:26px 20px; }
    .btn-row .btn{ flex:1 1 100%; text-align:center; }
    footer{ padding:40px 0 48px 0; }
  }

  @media (max-width: 380px){
    .rail-support{ flex-wrap:wrap; justify-content:flex-start; }
  }

  @media (prefers-reduced-motion: reduce){
    html{ scroll-behavior:auto; }
  }
