:root {
    --green: #0d3527;
    --green-deep: #082419;
    --green-line: #1f4a39;
    --paper: #e9ece0;
    --paper-line: #c9cdb8;
    --gold: #c9a24a;
    --gold-light: #e6cd8a;
    --ink: #1b2a24;
    --ink-soft: #4a5a52;
    --cream: #f3eedf;
    --display: "Cinzel", "Times New Roman", serif;
    --body: "EB Garamond", Georgia, serif;
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body { margin: 0; background: var(--green); color: var(--cream); font: 400 1.18rem/1.6 var(--body); }
  img { max-width: 100%; display: block; }
  a { color: var(--gold-light); }
  a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
  .wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

  /* ---------- Header ---------- */
  header.site { position: sticky; top: 0; z-index: 10; background: rgba(8,36,25,.94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--green-line); }
  header.site .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
  .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--gold-light); font: 700 1.05rem var(--display); letter-spacing: .14em; white-space: nowrap; }
  .brand img { width: 34px; height: 34px; }
  nav.main { display: flex; gap: 20px; margin-left: auto; }
  nav.main a { color: var(--cream); text-decoration: none; font-size: 1.02rem; opacity: .85; }
  nav.main a:hover { opacity: 1; color: var(--gold-light); }
  .btn { display: inline-block; font: 600 .82rem var(--display); letter-spacing: .12em; text-decoration: none; padding: 12px 20px 11px; border-radius: 3px; border: 1px solid var(--gold); color: var(--green-deep); background: var(--gold); cursor: pointer; }
  .btn:hover { background: var(--gold-light); border-color: var(--gold-light); }
  .btn.ghost { background: transparent; color: var(--gold-light); }
  .btn.ghost:hover { background: rgba(201,162,74,.12); }
  .btn[disabled] { opacity: .5; cursor: default; }
  header.site .btn { padding: 9px 14px 8px; }
  header.site .wallet-btn { margin-left: 4px; }

  /* ---------- Hero ---------- */
  .hero { padding: 64px 0 0; text-align: center; position: relative; overflow: hidden; }
  .hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 30%, rgba(201,162,74,.18), transparent 55%); pointer-events: none; }
  .hero .wrap { position: relative; }

  /* --- The coin: 3D spin, edge glow, shine sweep --- */
  .coin-stage { --size: min(320px, 68vw); width: var(--size); height: var(--size); margin: 0 auto; position: relative; perspective: 1100px; animation: coin-in 1.6s cubic-bezier(.2,.7,.2,1) both;
    cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }   /* sideways drags spin the coin, up and down still scrolls */
  .coin-stage.grabbed { cursor: grabbing; }
  .coin-stage:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 6px; border-radius: 50%; }
  .coin-stage::before { /* soft halo behind the coin, breathes */
    content: ""; position: absolute; inset: -22%; border-radius: 50%;
    background: radial-gradient(circle, rgba(230,205,138,.40) 0%, rgba(201,162,74,.22) 38%, rgba(201,162,74,0) 68%);
    animation: halo 3.2s ease-in-out infinite; pointer-events: none; }
  .coin-stage::after { /* bright rim that lights the edge */
    content: ""; position: absolute; inset: -1.5%; border-radius: 50%;
    box-shadow: 0 0 18px 4px rgba(230,205,138,.55), 0 0 60px 10px rgba(201,162,74,.35), inset 0 0 22px rgba(255,236,180,.6);
    animation: rim 3.2s ease-in-out infinite; pointer-events: none; }
  /* On load the coin and its glow fade in facing you (on .coin-stage: fading the 3D coin itself would make
     browsers draw it flat and hide the tread rim); the spin starts once it's fully in */
  .coin3d { position: absolute; inset: 0; transform-style: preserve-3d; animation: spin 11s linear 1.8s infinite; }
  .face { position: absolute; inset: 0; border-radius: 50%; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
  .face img { width: 100%; height: 100%; border-radius: 50%; }
  .face.front { transform: translateZ(var(--half, 7px)); }
  .face.back { transform: rotateY(180deg) translateZ(var(--half, 7px)); }
  .edge { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, #b08a36 0 56%, #d8b85f 57% 80%, #8c6a1e 81% 100%); filter: brightness(.9); }
  .edge:nth-child(1) { transform: translateZ(6px); } .edge:nth-child(2) { transform: translateZ(4px); } .edge:nth-child(3) { transform: translateZ(2px); }
  .edge:nth-child(4) { transform: translateZ(0); } .edge:nth-child(5) { transform: translateZ(-2px); } .edge:nth-child(6) { transform: translateZ(-4px); } .edge:nth-child(7) { transform: translateZ(-6px); }
  .shine { position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
    -webkit-mask: url("../logo.png") center / 100% 100% no-repeat; mask: url("../logo.png") center / 100% 100% no-repeat;
    background: linear-gradient(115deg, rgba(255,255,255,0) 38%, rgba(255,250,230,.75) 47%, rgba(255,255,255,.95) 50%, rgba(255,250,230,.75) 53%, rgba(255,255,255,0) 62%);
    background-size: 260% 260%; animation: sweep 3.2s ease-in-out infinite; mix-blend-mode: screen; }
  .coin-stage .glow-ring { position: absolute; inset: -2px; border-radius: 50%; pointer-events: none; z-index: 2;
    background: conic-gradient(from 0deg, rgba(255,240,190,0) 0deg, rgba(255,240,190,.85) 40deg, rgba(255,240,190,0) 80deg, rgba(255,240,190,0) 180deg, rgba(255,240,190,.6) 220deg, rgba(255,240,190,0) 260deg);
    -webkit-mask: radial-gradient(circle, transparent 0 86%, #000 88% 100%); mask: radial-gradient(circle, transparent 0 86%, #000 88% 100%);
    animation: ring 4s linear infinite; }
  /* The rim: a tyre tread of "CC" blocks all the way round, built by the script on the home page.
     The spin slows a little as the coin passes edge-on so the tread can be read. */
  .coin3d.has-tread .edge { display: none; }
  /* Each block: gold like the coin, with two grooves running round the rim, V-shaped notches on both
     shoulders, a cut between blocks, and the CC raised on the centre rib */
  .tread { position: absolute; left: 50%; top: 50%; backface-visibility: hidden; -webkit-backface-visibility: hidden;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
    border-top: 1.5px solid rgba(48,33,4,.7);
    background:
      linear-gradient(90deg, transparent 17%, rgba(48,33,4,.8) 17% 21%, transparent 21% 79%, rgba(48,33,4,.8) 79% 83%, transparent 83%),
      linear-gradient(90deg, #6e5216 0%, #b08a36 12%, #f0d68e 50%, #b08a36 88%, #6e5216 100%);
    box-shadow: inset 0 1px 0 rgba(255,244,210,.5), inset 0 -1px 0 rgba(60,42,8,.5); }
  .tread::before, .tread::after { content: ""; position: absolute; top: 0; bottom: 0; width: 18%; }
  .tread::before { left: 0; background: linear-gradient(155deg, transparent 38%, rgba(48,33,4,.85) 38% 56%, transparent 56%); }
  .tread::after { right: 0; background: linear-gradient(25deg, transparent 38%, rgba(48,33,4,.85) 38% 56%, transparent 56%); }
  .tread b { position: relative; font: 900 var(--cc, 12px)/1 var(--display); letter-spacing: 0; color: #4a3508; transform: scaleY(.82);
    text-shadow: 0 1px 0 rgba(255,240,200,.55), 0 -1px 0 rgba(40,28,4,.5); }
  .tread:nth-child(even) b { transform: scaleY(.82) translateX(5%); }   /* staggered blocks, like a real tread */
  .tread:nth-child(odd) b { transform: scaleY(.82) translateX(-5%); }
  .tread.flip b { rotate: 180deg; }
  @keyframes spin { 0% { transform: rotateY(0); } 19% { transform: rotateY(72deg); } 31% { transform: rotateY(108deg); } 50% { transform: rotateY(180deg); }
                    69% { transform: rotateY(252deg); } 81% { transform: rotateY(288deg); } 100% { transform: rotateY(360deg); } }
  @keyframes coin-in { from { opacity: 0; translate: 0 24px; scale: .92; } to { opacity: 1; translate: 0 0; scale: 1; } }
  @keyframes sweep { 0% { background-position: 120% 120%; } 60%, 100% { background-position: -40% -40%; } }
  @keyframes halo { 0%, 100% { opacity: .55; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.04); } }
  @keyframes rim { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
  @keyframes ring { to { transform: rotate(360deg); } }

  .hero h1 { font: 700 clamp(2.4rem, 7vw, 4.4rem)/1.05 var(--display); letter-spacing: .14em; color: var(--gold-light); margin: 34px 0 10px; text-shadow: 0 0 24px rgba(201,162,74,.35); }
  .hero .tagline { font-style: italic; font-size: clamp(1.3rem, 3vw, 1.7rem); margin: 0 auto 18px; }
  .hero .lede { max-width: 58ch; margin: 0 auto 30px; color: #d9d4c4; }
  .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

  /* contract address plate */
  .ca { margin: 40px auto 0; max-width: 640px; border: 1px solid var(--gold); border-radius: 4px; padding: 6px; background: rgba(8,36,25,.5); }
  .ca-inner { border: 1px solid rgba(201,162,74,.45); border-radius: 2px; padding: 14px 16px; display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; align-items: center; text-align: left; }
  .ca-label { grid-column: 1 / -1; font: 600 .78rem var(--display); letter-spacing: .14em; color: var(--gold); }
  .ca code { font: 500 .98rem ui-monospace, "Cascadia Mono", Consolas, monospace; color: var(--cream); word-break: break-all; }
  .copy { font: 600 .75rem var(--display); letter-spacing: .1em; background: transparent; color: var(--gold-light); border: 1px solid var(--gold); border-radius: 3px; padding: 9px 12px 8px; cursor: pointer; white-space: nowrap; }
  .copy:hover { background: rgba(201,162,74,.12); }

  /* --- Road with traffic: a still camera, so the road stays put and the cars drive past --- */
  .road-strip { position: relative; height: 196px; margin-top: 40px; overflow: hidden; background: linear-gradient(180deg, rgba(8,36,25,0) 0%, rgba(8,36,25,.6) 60%, var(--green-deep) 100%); }
  .road-defs { position: absolute; width: 0; height: 0; }
  .road-strip .asphalt { position: absolute; left: 0; right: 0; bottom: 0; height: 84px; background: #0a1f17; border-top: 1px solid rgba(201,162,74,.35); }
  .road-strip .lane { position: absolute; left: 0; right: 0; top: 40px; height: 2px; background: repeating-linear-gradient(90deg, var(--gold) 0 40px, transparent 40px 86px); opacity: .55; }
  .road-strip .kerb { position: absolute; left: 0; right: 0; bottom: 3px; height: 1px; background: rgba(230,205,138,.25); }
  .car { position: absolute; left: 0; bottom: 0; width: 270px; height: 92px; z-index: 2; will-change: transform; transform: translateX(-120%); }
  .car svg { width: 100%; height: 100%; overflow: visible; }
  .car.l { bottom: 40px; width: 200px; height: 68px; z-index: 1; filter: brightness(.72) saturate(.85); }
  .car.l svg { transform: scaleX(-1); }   /* facing left */
  .wheel { transform-box: fill-box; transform-origin: center; animation: roll var(--spin, .8s) linear infinite; }
  @keyframes roll { to { transform: rotate(360deg); } }
  .car .bd { animation: ride 1.3s ease-in-out infinite alternate; }
  .car.two .bd, .car.six .bd { animation-duration: 1.05s; }
  .car.three .bd, .car.seven .bd { animation-duration: 1.5s; }
  @keyframes ride { from { transform: translateY(0); } to { transform: translateY(-1.2px); } }

  /* Day and night: every 40 seconds the street brightens, the cars switch their lights off, then dusk comes
     and the lights flick back on */
  .road-strip .daylight { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0;
    background: linear-gradient(180deg, rgba(255,236,190,0) 0%, rgba(255,236,190,.12) 45%, rgba(150,156,166,.5) 58%, rgba(120,126,136,.55) 100%);
    animation: daylight 40s ease-in-out infinite; }
  @keyframes daylight { 0%, 36% { opacity: 0; } 48%, 84% { opacity: 1; } 96%, 100% { opacity: 0; } }
  .road-strip .lt { animation: lights 40s linear infinite; }
  @keyframes lights { 0%, 43% { opacity: 1; } 45%, 89.5% { opacity: 0; } 90% { opacity: 1; } 90.6% { opacity: .2; } 91.2%, 100% { opacity: 1; } }

  .rule { height: 40px; background: url("../guilloche.svg") center / 1200px 40px repeat-x; opacity: .55; }

  /* ---------- Sections ---------- */
  section { padding: 80px 0; }
  section.paper { background: var(--paper); color: var(--ink); }
  section.paper a { color: #6e5320; }
  h2 { font: 700 clamp(1.7rem, 4vw, 2.4rem)/1.15 var(--display); letter-spacing: .08em; margin: 0 0 14px; }
  section.paper h2 { color: var(--green); }
  section:not(.paper) h2 { color: var(--gold-light); }
  .intro { max-width: 62ch; font-size: 1.25rem; margin: 0 0 40px; }
  section.paper .intro { color: var(--ink-soft); }
  h3 { font: 600 1.05rem var(--display); letter-spacing: .06em; margin: 0 0 8px; }
  section.paper h3 { color: var(--green); }
  section:not(.paper) h3 { color: var(--gold-light); }

  .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; border-top: 1px solid var(--paper-line); }
  .grid > div { padding: 24px 24px 26px 0; border-bottom: 1px solid var(--paper-line); }
  .grid p { margin: 0; color: var(--ink-soft); }

  .tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
  .tool { border: 1px solid var(--green-line); border-radius: 4px; padding: 26px; background: var(--green-deep); }
  .tool p { margin: 0 0 14px; color: #d9d4c4; }
  .status { font: 600 .72rem var(--display); letter-spacing: .12em; color: var(--gold); }

  /* ---------- Wallet ---------- */
  .wallet-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 36px; align-items: start; }
  .card { border: 1px solid var(--gold); border-radius: 4px; padding: 6px; background: rgba(8,36,25,.55); }
  .card-inner { border: 1px solid rgba(201,162,74,.4); border-radius: 2px; padding: 24px; }
  .card h3 { margin-bottom: 14px; }
  .kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 14px 0; font-size: 1.05rem; }
  .kv dt { font: 600 .74rem var(--display); letter-spacing: .12em; color: var(--gold); padding-top: 5px; }
  .kv dd { margin: 0; word-break: break-all; }
  .kv dd.big { font: 700 1.6rem var(--display); color: var(--gold-light); word-break: normal; }
  .badge { display: inline-flex; align-items: center; gap: 8px; font: 600 .74rem var(--display); letter-spacing: .12em; border: 1px solid var(--gold); color: var(--gold-light); border-radius: 2px; padding: 6px 10px 5px; }
  .badge.ok { background: var(--gold); color: var(--green-deep); }
  .badge.ok::before { content: "\2713"; font-weight: 900; }
  .msg { font-size: 1rem; color: #d9d4c4; min-height: 1.4em; margin: 10px 0 0; }
  .msg.err { color: #f0b7a8; }
  .steps { list-style: none; padding: 0; margin: 0; counter-reset: s; }
  .steps li { counter-increment: s; position: relative; padding: 0 0 18px 48px; color: #d9d4c4; }
  .steps li::before { content: counter(s); position: absolute; left: 0; top: 2px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold-light); display: grid; place-items: center; font: 700 .9rem var(--display); }
  .steps strong { color: var(--cream); }
  .wallet-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }

  /* ---------- Buy ---------- */
  .tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--paper-line); margin-bottom: 24px; flex-wrap: wrap; }
  .tab { font: 600 .8rem var(--display); letter-spacing: .1em; background: none; border: 1px solid transparent; border-bottom: none; color: var(--ink-soft); padding: 12px 18px 10px; cursor: pointer; border-radius: 3px 3px 0 0; }
  .tab[aria-selected="true"] { color: var(--green); border-color: var(--paper-line); background: #fff; margin-bottom: -1px; }
  .panel { display: none; }
  .panel.on { display: block; }
  .buy-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 440px); gap: 36px; align-items: start; }
  .widget-frame { background: #fff; border: 1px solid var(--paper-line); border-radius: 6px; min-height: 560px; overflow: hidden; position: relative; }
  #jupiter-plugin { width: 100%; min-height: 560px; }
  /* The swap and bridge boxes put their parts on high layers; keep them in their own layer so they
     scroll under the sticky header and tabs instead of over them */
  .widget-frame { position: relative; z-index: 0; isolation: isolate; }
  #debridgeWidget { width: 100%; }
  #debridgeWidget iframe { width: 100% !important; max-width: 100%; }
  .widget-note { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 14px; font-size: .95rem; background: rgba(13,53,39,.92); color: var(--cream); text-align: center; }
  .callout { border-left: 3px solid var(--gold); padding: 6px 0 6px 18px; margin: 20px 0; color: var(--ink-soft); font-size: 1.05rem; }
  .callout strong { color: var(--green); }
  .buy-list { padding-left: 18px; color: var(--ink-soft); }
  .buy-list li { margin-bottom: 8px; }

  /* token */
  .token { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
  table { width: 100%; border-collapse: collapse; font-size: 1.08rem; }
  th, td { text-align: left; padding: 11px 12px 11px 0; border-bottom: 1px solid var(--paper-line); vertical-align: top; }
  th { font: 600 .82rem var(--display); letter-spacing: .08em; color: var(--green); width: 42%; }
  td.num { font-variant-numeric: tabular-nums; }
  .mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .9rem; word-break: break-all; }
  .uses { list-style: none; padding: 0; margin: 0; }
  .uses li { padding: 14px 0; border-bottom: 1px solid var(--paper-line); }
  .uses li strong { display: block; font: 600 .95rem var(--display); letter-spacing: .05em; color: var(--green); margin-bottom: 2px; }
  .uses li span { color: var(--ink-soft); }
  .alloc { margin-top: 56px; }
  .alloc table th { width: auto; }
  .alloc td.num { white-space: nowrap; }
  .bar { display: inline-block; vertical-align: middle; width: 90px; height: 8px; margin-right: 10px; background: var(--paper-line); border-radius: 4px; overflow: hidden; }
  .bar i { display: block; height: 100%; background: var(--green); }
  .table-scroll { overflow-x: auto; }
  .note { font-size: 1rem; color: var(--ink-soft); margin-top: 14px; }

  /* roadmap */
  .road { list-style: none; padding: 0; margin: 0; counter-reset: phase; position: relative; }
  .road::before { content: ""; position: absolute; left: 21px; top: 8px; bottom: 60px; border-left: 2px dashed rgba(201,162,74,.5); }
  .road li { counter-increment: phase; position: relative; padding: 0 0 34px 68px; }
  .road li::before { content: counter(phase); position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--gold); background: var(--green); color: var(--gold-light); display: grid; place-items: center; font: 700 1rem var(--display); }
  .road li.now::before { background: var(--gold); color: var(--green-deep); }
  .road h3 { margin-top: 8px; }
  .road .when { font-style: italic; color: var(--gold); }
  .road p { margin: 4px 0 0; color: #d9d4c4; max-width: 60ch; }
  .gate { display: inline-block; margin-top: 8px; font: 600 .72rem var(--display); letter-spacing: .1em; color: var(--gold-light); border: 1px solid rgba(201,162,74,.5); border-radius: 2px; padding: 4px 8px 3px; }

  /* safety */
  .rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0; border-top: 1px solid var(--paper-line); }
  .rules p { margin: 0; padding: 22px 22px 22px 0; border-bottom: 1px solid var(--paper-line); font-size: 1.12rem; }
  .rules strong { color: var(--green); }

  /* faq */
  details { border-bottom: 1px solid var(--green-line); }
  summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; position: relative; font: 600 1.05rem var(--display); letter-spacing: .04em; color: var(--gold-light); }
  summary::-webkit-details-marker { display: none; }
  summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font: 400 1.6rem var(--body); color: var(--gold); }
  details[open] summary::after { content: "\2212"; }
  details p { margin: 0 0 20px; color: #d9d4c4; max-width: 70ch; }
  .faq { max-width: 820px; }

  /* join */
  .join { text-align: center; }
  .join .intro { margin-left: auto; margin-right: auto; }
  .risk-note { max-width: 760px; margin: 0 auto 22px; padding: 12px 16px; border: 1px solid #cdbf98; border-left: 4px solid #b3263a; border-radius: 6px; background: #fffaf0; color: #1b1b22; font-size: 1rem; }
  .risk-note p { margin: 0; } .risk-note .risk-title { font-weight: 700; margin-bottom: 4px; }
  .wallet-list { max-width: 760px; margin: 0 auto 26px; padding: 14px 18px; border: 1px solid #cdbf98; border-radius: 6px; background: #fffaf0; color: #1b1b22; font-size: 1rem; }
  .wallet-list h3 { margin: 0 0 6px; font-size: 1.15rem; color: #1b1b22; }
  .wallet-list p { margin: 6px 0; } .wallet-list ul { margin: 6px 0; padding-left: 20px; } .wallet-list li { margin-bottom: 4px; }
  .wallet-list a { color: #7a2030; }
  .social-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 18px auto 0; max-width: 640px; }
  .news-form { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; max-width: 520px; margin: 18px auto 0; }
  .news-form input[type=email] { flex: 1 1 240px; min-width: 0; padding: 12px 14px; font: inherit; border: 1px solid #cdbf98; border-radius: 6px; background: #fffaf0; }
  .news-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .join .news-intro { margin: 22px auto 0; max-width: 520px; }
  .news-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
  .news-msg { min-height: 1.4em; margin: 10px auto 0; }
  .news-msg.ok { color: #2f6b3a; } .news-msg.err { color: #8a2433; }
  .cc-block-media { display: block; max-width: 100%; height: auto; max-height: 520px; margin: 0 auto 18px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
  .news-note { font-size: .95rem; color: var(--ink-soft); margin: 6px auto 0; }
  .email-promise { max-width: 520px; margin: 14px auto 0; padding: 10px 14px; border: 1px solid #cdbf98; border-left: 4px solid #2f6b3a; border-radius: 6px; background: #fffaf0; font-size: .95rem; color: #1b1b22; text-align: left; }
  .email-promise-link { font-size: .9rem; margin: 6px auto 0; max-width: 520px; }

  footer { background: var(--green-deep); padding: 22px 0 26px; font-size: 1rem; color: #b9b39f; border-top: 1px solid var(--green-line); }
  footer .wrap { display: grid; gap: 8px; }
  footer .links { display: flex; gap: 6px 20px; flex-wrap: wrap; }
  footer .foot-row { display: grid; gap: 8px; }
  footer .foot-row p { font-size: .92rem; white-space: nowrap; }
  footer .foot-tag { font-weight: 600; }
  [data-edit-hidden] { display: none !important; }   /* waits until it's shown in the Site editor */
  footer p { margin: 0; max-width: 80ch; }


  /* =================== Lavish showroom theme =================== */
  :root {
    --onyx: #0a0a0d; --onyx-2: #15151b;
    --ruby: #b3263a; --ruby-deep: #3d0c14;
    --sapphire: #2f5fb3; --midnight: #0c1630;
    --emerald: #1f9a68; --racing: #0f3d2c;
    --ivory: #f7f2e6; --champagne: #efe3c4;
    --gold-metal: linear-gradient(120deg, #8c6a1e 0%, #e6cd8a 20%, #fff4d2 34%, #c9a24a 52%, #8c6a1e 72%, #e6cd8a 88%, #fff4d2 100%);
    --carbon: repeating-linear-gradient(45deg, rgba(255,255,255,.028) 0 2px, transparent 2px 6px), repeating-linear-gradient(-45deg, rgba(255,255,255,.028) 0 2px, transparent 2px 6px);
  }
  body { background: var(--onyx); }

  /* header: black lacquer with a ruby-gold-sapphire light line */
  header.site { background: rgba(10,10,13,.9); border-bottom: 0; }
  header.site::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--ruby) 20%, var(--gold-light) 50%, var(--sapphire) 80%, transparent); }

  /* polished gold buttons */
  .btn { background: var(--gold-metal); background-size: 220% 220%; background-position: 0% 50%; border-color: #e6cd8a; color: #1a1206;
    box-shadow: 0 6px 18px rgba(201,162,74,.25), inset 0 1px 0 rgba(255,255,255,.5); transition: background-position .7s ease, box-shadow .3s; }
  .btn:hover { background: var(--gold-metal); background-size: 220% 220%; background-position: 100% 50%; box-shadow: 0 8px 26px rgba(230,205,138,.45), inset 0 1px 0 rgba(255,255,255,.6); }
  .btn.ghost { background: rgba(0,0,0,.15); color: var(--gold-light); box-shadow: none; }
  .btn.ghost:hover { background: rgba(201,162,74,.14); box-shadow: 0 0 18px rgba(201,162,74,.25); }

  /* hero: showroom spotlights in gold, sapphire and ruby */
  .hero { background:
      radial-gradient(ellipse 38% 55% at 6% 18%, rgba(47,95,179,.42), transparent 70%),
      radial-gradient(ellipse 38% 55% at 94% 22%, rgba(179,38,58,.42), transparent 70%),
      radial-gradient(ellipse 30% 40% at 50% 92%, rgba(31,154,104,.18), transparent 70%),
      linear-gradient(180deg, #0a0a0d 0%, #121019 60%, #0a0a0d 100%); }
  .hero::before { background: radial-gradient(circle at 50% 28%, rgba(230,205,138,.24), transparent 46%); }
  .hero h1 { background: var(--gold-metal); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
    text-shadow: none; filter: drop-shadow(0 0 22px rgba(201,162,74,.35)); animation: foil 7s ease-in-out infinite; }
  @keyframes foil { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
  .hero .tagline { color: var(--champagne); }
  .ca { background: rgba(0,0,0,.4); box-shadow: 0 0 40px rgba(201,162,74,.12); }

  /* road: night street with reflections */
  .road-strip { background: linear-gradient(180deg, rgba(10,10,13,0) 0%, rgba(10,10,13,.7) 60%, #07070a 100%); }
  .road-strip .asphalt { background: linear-gradient(180deg, #17171d, #0b0b0e); border-top: 1px solid rgba(230,205,138,.4); box-shadow: 0 -1px 24px rgba(230,205,138,.12); }

  /* ivory sections with jewel accents */
  section.paper { background: linear-gradient(180deg, var(--ivory), var(--champagne)); }
  section.paper h2 { color: var(--ruby-deep); }
  section.paper h3, section.paper th, .uses li strong { color: var(--midnight); }
  section.paper a { color: #7a2030; }
  h2::after { content: ""; display: block; width: 72px; height: 3px; margin-top: 14px; border-radius: 2px; background: var(--gold-metal); }
  .join h2::after { margin-left: auto; margin-right: auto; }
  #club .grid > div::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 2px; margin-bottom: 14px; }
  #club .grid > div:nth-child(1)::before { background: var(--ruby); }
  #club .grid > div:nth-child(2)::before { background: var(--sapphire); }
  #club .grid > div:nth-child(3)::before { background: var(--emerald); }
  #club .grid > div:nth-child(4)::before { background: var(--gold-metal); }
  .rules strong { color: var(--ruby); }
  .callout { border-left-color: var(--ruby); }
  .callout strong { color: var(--ruby-deep); }
  .tab[aria-selected="true"] { color: var(--ruby-deep); border-top: 3px solid var(--ruby); }
  .widget-frame { box-shadow: 0 20px 50px rgba(61,12,20,.18); border-color: #d8c79c; }
  .widget-note { background: rgba(12,22,48,.94); }
  .alloc tbody tr:nth-child(1) .bar i { background: var(--ruby); }
  .alloc tbody tr:nth-child(2) .bar i { background: var(--sapphire); }
  .alloc tbody tr:nth-child(3) .bar i { background: var(--emerald); }
  .alloc tbody tr:nth-child(4) .bar i { background: #c9a24a; }
  .alloc tbody tr:nth-child(5) .bar i { background: var(--midnight); }
  .alloc tbody tr:nth-child(6) .bar i { background: #e07a3a; }

  /* tools: midnight sapphire */
  section.midnight { background: radial-gradient(ellipse 60% 70% at 85% 0%, rgba(47,95,179,.45), transparent 70%), linear-gradient(180deg, var(--midnight), #070d1d); }
  .tool { background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.015)); border: 1px solid rgba(201,162,74,.28); border-top: 3px solid var(--ruby);
    box-shadow: 0 18px 40px rgba(0,0,0,.35); transition: transform .3s, box-shadow .3s; }
  .tool:nth-child(2) { border-top-color: var(--sapphire); } .tool:nth-child(3) { border-top-color: var(--emerald); }
  .tool:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(0,0,0,.45), 0 0 24px rgba(201,162,74,.15); }

  /* wallet: oxblood leather with gold stitching */
  section.leather { background:
      radial-gradient(ellipse 55% 70% at 15% 0%, rgba(179,38,58,.45), transparent 70%),
      radial-gradient(rgba(0,0,0,.18) 1px, transparent 1.4px) 0 0 / 5px 5px,
      linear-gradient(180deg, #4a0f19, #22070c); }
  section.leather .card { background: rgba(0,0,0,.28); box-shadow: 0 20px 50px rgba(0,0,0,.4); }
  section.leather .card-inner { border: 1.5px dashed rgba(230,205,138,.55); }
  section.leather .steps li::before { background: rgba(0,0,0,.25); }

  /* roadmap: British racing green */
  section.racing { background: radial-gradient(ellipse 50% 60% at 90% 10%, rgba(31,154,104,.3), transparent 70%), linear-gradient(180deg, var(--racing), #061a12); }
  .road li::before { background: #0b2a1f; }
  .road li.now::before { background: var(--gold-metal); color: #1a1206; box-shadow: 0 0 18px rgba(230,205,138,.5); }

  /* FAQ and footer: carbon fibre */
  section.carbon { background-color: #0d0d11; background-image: var(--carbon); }
  section.carbon details { border-bottom-color: rgba(201,162,74,.22); }
  footer { background-color: #07070a; background-image: var(--carbon); border-top: 1px solid rgba(201,162,74,.3); }

  section.paper .btn.ghost { background: transparent; }
  section.paper .btn.ghost:hover { background: rgba(122,32,48,.08); }
  @media (prefers-reduced-motion: reduce) { .hero h1 { animation: none; } .tool { transition: none; } }


  /* =================== Fuel the scene =================== */
  .aud { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  .aud > div { background: #fffaf0; border: 1px solid #e2d4ad; border-top: 4px solid var(--ruby); border-radius: 4px; padding: 22px 20px 20px; box-shadow: 0 12px 30px rgba(61,12,20,.08); }
  .aud > div:nth-child(2) { border-top-color: var(--sapphire); }
  .aud > div:nth-child(3) { border-top-color: var(--emerald); }
  .aud > div:nth-child(4) { border-top-color: #c9a24a; }
  .aud .icon { width: 44px; height: 44px; margin-bottom: 12px; }
  .aud p { margin: 0 0 10px; color: var(--ink-soft); font-size: 1.05rem; }
  .aud .perk { font-size: .98rem; color: var(--ruby-deep); font-style: italic; margin: 0; }
  .fund-how { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; margin-top: 56px; align-items: start; }
  .flow { list-style: none; padding: 0; margin: 0; counter-reset: f; }
  .flow li { counter-increment: f; position: relative; padding: 0 0 20px 54px; color: var(--ink-soft); }
  .flow li::before { content: counter(f); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--gold-metal); color: #1a1206; display: grid; place-items: center; font: 700 .95rem var(--display); box-shadow: 0 4px 12px rgba(201,162,74,.35); }
  .flow strong { display: block; color: var(--midnight); font: 600 .98rem var(--display); letter-spacing: .04em; margin-bottom: 2px; }
  .fundbox { background: linear-gradient(160deg, #0c1630, #1a0a12); color: var(--cream); border-radius: 6px; padding: 28px; border: 1px solid rgba(201,162,74,.4); box-shadow: 0 20px 50px rgba(12,22,48,.25); }
  .fundbox h3 { color: var(--gold-light) !important; }
  .fundbox p { color: #d9d4c4; margin: 0 0 14px; }
  .projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 56px; }
  .proj { background: #fffaf0; border: 1px solid #e2d4ad; border-radius: 6px; overflow: hidden; box-shadow: 0 12px 30px rgba(61,12,20,.08); }
  .proj .art { height: 120px; display: grid; place-items: center; }
  .proj .art svg { width: 78%; height: 100%; }
  .proj .body { padding: 18px 20px 20px; }
  .proj .tag { font: 600 .68rem var(--display); letter-spacing: .14em; color: var(--ruby); }
  .proj h4 { font: 600 1.02rem var(--display); color: var(--midnight); margin: 6px 0 10px; letter-spacing: .03em; }
  .meter { height: 8px; border-radius: 4px; background: #e6dcc2; overflow: hidden; }
  .meter i { display: block; height: 100%; border-radius: 4px; }
  .proj .nums { display: flex; justify-content: space-between; font-size: .98rem; color: var(--ink-soft); margin: 8px 0 10px; font-variant-numeric: tabular-nums; }
  .proj .nums b { color: var(--ink); }
  .proj .perks { font-size: .95rem; color: var(--ink-soft); margin: 0; }
  .example { font: 600 .66rem var(--display); letter-spacing: .14em; color: #8a7a55; border: 1px solid #d8c79c; border-radius: 2px; padding: 2px 6px 1px; margin-left: 6px; vertical-align: 2px; }
  .promise { margin-top: 36px; padding: 18px 22px; border: 1px solid #d8c79c; border-radius: 4px; background: rgba(255,250,240,.7); color: var(--ink-soft); font-size: 1.05rem; }
  .promise strong { color: var(--ruby-deep); }
  section.paper .btn:not(.ghost) { color: #1a1206; }
  .fund-how h3 { margin-bottom: 16px; }
  .fund-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
  @media (max-width: 960px) { .aud { grid-template-columns: repeat(2, minmax(0, 1fr)); } .projects, .fund-how { grid-template-columns: 1fr; } }
  @media (max-width: 560px) { .aud { grid-template-columns: 1fr; } }
  /* the one-word CARSCOIN can't wrap, so tighten it on small phones to leave room for Sign in */
  @media (max-width: 420px) { .brand { font-size: .9rem; letter-spacing: .06em; gap: 7px; } .brand img { width: 28px; height: 28px; } }

  @media (max-width: 960px) {
    nav.main { display: none; }
    header.site .btn { margin-left: auto; }
    header.site .wallet-btn { margin-left: 0; }
    .token, .wallet-grid, .buy-grid { grid-template-columns: 1fr; gap: 32px; }
    section { padding: 60px 0; }
  }
  @media (max-width: 520px) {
    .ca-inner { grid-template-columns: 1fr; }
    .copy { justify-self: start; }
    th { width: 48%; }
    .alloc td:nth-child(4), .alloc th:nth-child(4) { display: none; }
    .bar { width: 48px; margin-right: 6px; }
    header.site .btn.wp { display: none; }
    .car { width: 170px; height: 58px; } .car.l { width: 128px; height: 44px; bottom: 30px; }
    .road-strip { height: 150px; } .road-strip .asphalt { height: 62px; } .road-strip .lane { top: 29px; }
  }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .coin-stage, .coin3d, .shine, .coin-stage::before, .coin-stage::after, .glow-ring, .car .bd, .wheel, .road-strip .daylight, .road-strip .lt { animation: none !important; }
  }

/* =================== Builder board pages =================== */
.page-head { padding: 56px 0 40px; background: radial-gradient(ellipse 40% 70% at 5% 10%, rgba(47,95,179,.4), transparent 70%), radial-gradient(ellipse 40% 70% at 95% 10%, rgba(179,38,58,.4), transparent 70%), linear-gradient(180deg, #0a0a0d, #121019); }
.page-head h1 { font: 700 clamp(2rem, 5vw, 3.2rem)/1.1 var(--display); letter-spacing: .1em; margin: 0 0 12px; background: var(--gold-metal); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-head p { max-width: 62ch; color: #d9d4c4; margin: 0; font-size: 1.2rem; }
.crumb { font: 600 .75rem var(--display); letter-spacing: .14em; color: var(--gold); text-decoration: none; display: inline-block; margin-bottom: 14px; }
.form { display: grid; gap: 22px; max-width: 760px; }
.form fieldset { border: 1px solid #e2d4ad; border-radius: 6px; padding: 22px 22px 6px; margin: 0; background: #fffaf0; }
.form legend { font: 700 .9rem var(--display); letter-spacing: .1em; color: var(--ruby-deep); padding: 0 8px; }
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label { font: 600 .82rem var(--display); letter-spacing: .06em; color: var(--midnight); }
.field .hint { font-size: .98rem; color: var(--ink-soft); margin: 0; }
.field input, .field select, .field textarea { font: 400 1.08rem var(--body); color: var(--ink); background: #fff; border: 1px solid #cdbf98; border-radius: 4px; padding: 11px 12px; width: 100%; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 1.05rem; color: var(--ink-soft); margin-bottom: 18px; }
.check input { margin-top: 6px; width: 18px; height: 18px; accent-color: #b3263a; }
.walletline { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.walletline code { font: 500 .92rem ui-monospace, Consolas, monospace; word-break: break-all; background: #fff; border: 1px solid #e2d4ad; border-radius: 4px; padding: 8px 10px; }
.status-msg { font-size: 1.05rem; min-height: 1.5em; margin: 0; }
.status-msg.err { color: #b3263a; } .status-msg.ok { color: #1f7a50; }
.done-card { display: none; border: 1px solid #b9dcc6; background: #effaf3; border-radius: 6px; padding: 22px; }
.done-card.on { display: block; }
.rulesbox { font-size: 1.02rem; color: var(--ink-soft); }
.rulesbox li { margin-bottom: 6px; }

.pj { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 40px; align-items: start; }
.pj-cover { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; background: linear-gradient(135deg, #3d0c14, #0c1630); box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.pj-story { white-space: pre-line; color: var(--ink); }
.pj-side { position: sticky; top: 84px; display: grid; gap: 18px; }
.panelbox { background: #fffaf0; border: 1px solid #e2d4ad; border-radius: 6px; padding: 22px; box-shadow: 0 12px 30px rgba(61,12,20,.08); }
.panelbox h3 { margin-bottom: 10px; }
.big-num { font: 700 1.9rem var(--display); color: var(--ruby-deep); }
.stat-row { display: flex; gap: 22px; flex-wrap: wrap; margin: 10px 0 0; color: var(--ink-soft); }
.stat-row b { display: block; font: 700 1.2rem var(--display); color: var(--midnight); }
.phase { display: inline-block; font: 600 .7rem var(--display); letter-spacing: .12em; padding: 5px 9px 4px; border-radius: 2px; background: #e6dcc2; color: var(--ink); }
.phase.funding { background: #dbe6fb; color: #0c1630; } .phase.funded { background: #cdeedd; color: #0f3d2c; } .phase.ended, .phase.closed { background: #eadfe1; color: #3d0c14; }
.amount-in { display: flex; gap: 8px; align-items: stretch; }
.amount-in input { flex: 1; }
.amount-in span { display: grid; place-items: center; padding: 0 12px; border: 1px solid #cdbf98; border-radius: 4px; background: #f3ead2; font: 600 .82rem var(--display); }
.backers { list-style: none; padding: 0; margin: 0; }
.backers li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #e2d4ad; font-size: 1rem; }
.backers li small { display: block; color: var(--ink-soft); font-style: italic; }
.backers .w { font-family: ui-monospace, Consolas, monospace; font-size: .9rem; }
.paid-tag { font: 600 .62rem var(--display); letter-spacing: .1em; color: #1f7a50; margin-left: 6px; }
.proj a.cover-link { display: block; color: inherit; text-decoration: none; }
.proj .art img { width: 100%; height: 100%; object-fit: cover; }
.proj h4 a { color: inherit; text-decoration: none; }
.board-empty { color: var(--ink-soft); font-style: italic; }
@media (max-width: 960px) { .pj { grid-template-columns: 1fr; } .pj-side { position: static; } }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
[hidden] { display: none !important; }
section.paper .btn.ghost { color: #7a2030; border-color: #7a2030; }

/* =================== Accounts =================== */
.acct-link { display: inline-flex; align-items: center; gap: 8px; color: var(--cream); text-decoration: none; font-size: 1.02rem; white-space: nowrap; }
.acct-link:hover { color: var(--gold-light); }
.mini-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 1px solid var(--gold); display: inline-block; }
.mini-avatar.initial { display: inline-grid; place-items: center; background: var(--gold-metal); color: #1a1206; font: 700 .85rem var(--display); }
.auth-wrap { max-width: 460px; margin: 0 auto; }
.auth-card { background: #fffaf0; border: 1px solid #e2d4ad; border-radius: 8px; padding: 28px; box-shadow: 0 20px 50px rgba(61,12,20,.1); }
.social { display: grid; gap: 10px; margin-bottom: 18px; }
.social a { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px; border-radius: 4px; text-decoration: none; font: 600 .95rem var(--body); border: 1px solid #cdbf98; background: #fff; color: #1b1b22; }
.social a:hover { border-color: #8c6a1e; box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.social a.apple { background: #000; color: #fff; border-color: #000; }
.social a.amazon { background: #ffd814; border-color: #fcd200; color: #0f1111; }
.social svg { width: 20px; height: 20px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--ink-soft); font-size: .95rem; margin: 6px 0 16px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: #e2d4ad; }
.linkbtn { background: none; border: 0; padding: 0; color: #7a2030; text-decoration: underline; cursor: pointer; font: inherit; }
.acct-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.profile-row { display: flex; gap: 18px; align-items: center; margin-bottom: 16px; }
.avatar-lg { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; border: 2px solid #c9a24a; background: #efe3c4; display: grid; place-items: center; font: 700 2rem var(--display); color: #7a2030; flex: none; }
.member-card { position: relative; border-radius: 14px; padding: 24px; color: var(--cream); overflow: hidden; min-height: 210px;
  background: radial-gradient(ellipse 70% 90% at 100% 0%, rgba(179,38,58,.55), transparent 60%), radial-gradient(ellipse 60% 80% at 0% 100%, rgba(47,95,179,.5), transparent 60%), linear-gradient(135deg, #0a0a0d, #1a1420);
  box-shadow: 0 24px 50px rgba(0,0,0,.35), inset 0 0 0 1px rgba(230,205,138,.45); }
.member-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 40%, rgba(255,240,200,.18) 50%, transparent 60%); background-size: 250% 250%; animation: sweep 5s ease-in-out infinite; pointer-events: none; }
.member-card .mc-top { display: flex; justify-content: space-between; align-items: center; }
.member-card .mc-brand { display: flex; align-items: center; gap: 10px; font: 700 .9rem var(--display); letter-spacing: .16em; color: var(--gold-light); }
.member-card .mc-brand img { width: 34px; height: 34px; }
.member-card .mc-tier { font: 700 1.5rem var(--display); letter-spacing: .12em; margin: 22px 0 4px; background: var(--gold-metal); -webkit-background-clip: text; background-clip: text; color: transparent; }
.member-card .mc-name { font-size: 1.15rem; }
.member-card .mc-code { font: 600 .95rem ui-monospace, Consolas, monospace; letter-spacing: .2em; color: var(--gold-light); margin-top: 14px; }
.member-card .mc-qr { position: absolute; right: 20px; bottom: 20px; background: #fff; padding: 6px; border-radius: 6px; }
.member-card .mc-qr img, .member-card .mc-qr canvas { display: block; width: 84px !important; height: 84px !important; }
.wlist { list-style: none; padding: 0; margin: 0 0 12px; }
.wlist li { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid #e2d4ad; font-size: 1rem; }
.wlist code { font-size: .88rem; }
.notice { border-radius: 6px; padding: 12px 16px; margin-bottom: 18px; font-size: 1.02rem; }
.notice.warn { background: #fff4d6; border: 1px solid #f0d58a; }
.notice.good { background: #e9f7ef; border: 1px solid #b9dcc6; }
.notice.bad { background: #fbe9ec; border: 1px solid #efb9c2; }
.backer-row { display: flex; align-items: center; gap: 12px; }
.backer-av { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; border: 1px solid #d8c79c; background: #efe3c4; display: grid; place-items: center; font: 700 1rem var(--display); color: #7a2030; }
.backer-av.anon { background: #2a2a33; color: #e6cd8a; }
.tier-chip { font: 600 .6rem var(--display); letter-spacing: .12em; color: #8c6a1e; border: 1px solid #d8c79c; border-radius: 2px; padding: 1px 5px; margin-left: 6px; vertical-align: 2px; }
.backer-head { display: flex; gap: 18px; flex-wrap: wrap; align-items: baseline; justify-content: space-between; }
.backer-head small { color: var(--ink-soft); }
@media (max-width: 860px) { .acct-grid { grid-template-columns: 1fr; } .acct-name { display: none; } }
nav.main a { white-space: nowrap; }

/* =================== Community =================== */
.cm-wrap { display: grid; grid-template-columns: 240px minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.cm-side { position: sticky; top: 84px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }
.cm-box { background: #fffaf0; border: 1px solid #e2d4ad; border-radius: 10px; padding: 18px; box-shadow: 0 10px 26px rgba(61,12,20,.06); }
.cm-box h3 { font-size: .95rem; margin: 0 0 10px; }
.cm-nav a, .cm-nav button { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 10px 12px; border-radius: 6px; color: var(--ink); text-decoration: none; font: 500 1.02rem var(--body); background: none; border: 0; cursor: pointer; text-align: left; }
.cm-nav a:hover, .cm-nav button:hover { background: #f3ead2; }
.cm-nav .on { background: #efe3c4; color: var(--ruby-deep); font-weight: 600; }
.count-pill { font: 600 .7rem var(--display); background: var(--ruby); color: #fff; border-radius: 10px; padding: 2px 7px 1px; }
.composer textarea { width: 100%; min-height: 96px; border: 1px solid #cdbf98; border-radius: 8px; padding: 12px; font: 400 1.1rem var(--body); resize: vertical; background: #fff; }
.composer textarea:focus { outline: 2px solid var(--gold); }
.composer .row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.kind-pills { display: inline-flex; gap: 4px; background: #f3ead2; border-radius: 20px; padding: 3px; }
.kind-pills button { border: 0; background: none; padding: 6px 12px; border-radius: 16px; font: 600 .78rem var(--display); letter-spacing: .05em; color: var(--ink-soft); cursor: pointer; }
.kind-pills button.on { background: #fff; color: var(--ruby-deep); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.file-btn { font-size: .98rem; color: #7a2030; cursor: pointer; }
.file-btn input { display: none; }
.composer select { font: inherit; border: 1px solid #cdbf98; border-radius: 6px; padding: 6px 8px; background: #fff; max-width: 220px; }
.feed-tabs { display: flex; gap: 4px; border-bottom: 1px solid #e2d4ad; margin: 18px 0 0; overflow-x: auto; }
.feed-tabs button { background: none; border: 0; padding: 12px 16px; font: 600 .8rem var(--display); letter-spacing: .08em; color: var(--ink-soft); cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; }
.feed-tabs button.on { color: var(--ruby-deep); border-bottom-color: var(--ruby); }
.post { background: #fffaf0; border: 1px solid #e2d4ad; border-radius: 10px; padding: 18px 18px 10px; margin-top: 14px; }
.post-head { display: flex; gap: 12px; align-items: flex-start; }
.av { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex: none; background: #efe3c4; display: grid; place-items: center; font: 700 1.1rem var(--display); color: #7a2030; border: 1px solid #d8c79c; text-decoration: none; }
.av.lg { width: 112px; height: 112px; font-size: 2.6rem; border: 4px solid #fffaf0; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.av.sm { width: 34px; height: 34px; font-size: .9rem; }
.post-who { flex: 1; min-width: 0; }
.post-who a.nm { font-weight: 600; color: var(--ink); text-decoration: none; }
.post-who a.nm:hover { text-decoration: underline; }
.post-who .hd { color: var(--ink-soft); font-size: .98rem; }
/* Badges sit side by side with no space between them; as inline blocks they can wrap on a phone instead of running off the edge */
.post-who .tier-chip, .post-who .kind-badge, .post-who .role-badge { display: inline-block; }
.kind-badge { font: 600 .62rem var(--display); letter-spacing: .12em; padding: 2px 7px 1px; border-radius: 2px; margin-left: 6px; vertical-align: 2px; }
.kind-badge.mission { background: #e7eefb; color: #0c1630; }
.kind-badge.showcase { background: #f6e7ea; color: #7a2030; }
.role-badge { font: 600 .6rem var(--display); letter-spacing: .12em; padding: 2px 6px 1px; border-radius: 2px; background: #0c1630; color: #e6cd8a; margin-left: 6px; vertical-align: 2px; }
.post-body { margin: 10px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 1.12rem; line-height: 1.55; }
.post-body a { color: #2f5fb3; }
.post-img { margin-top: 12px; border-radius: 10px; max-height: 520px; width: 100%; object-fit: cover; border: 1px solid #e2d4ad; }
.post-proj { display: inline-flex; gap: 8px; align-items: center; margin-top: 12px; padding: 8px 12px; border: 1px solid #d8c79c; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 1rem; background: #fff; }
.post-proj b { font: 600 .66rem var(--display); letter-spacing: .1em; color: var(--ruby); }
.post-actions { display: flex; gap: 6px; margin-top: 10px; border-top: 1px solid #efe3c4; padding-top: 6px; }
.post-actions button { background: none; border: 0; padding: 6px 10px; border-radius: 6px; font: 500 .98rem var(--body); color: var(--ink-soft); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.post-actions button:hover { background: #f3ead2; color: var(--ink); }
.post-actions button.liked { color: var(--ruby); }
.post-actions svg { width: 18px; height: 18px; }
.post-actions .grow { flex: 1; }
.held-note { margin-top: 10px; font-size: .95rem; background: #fff4d6; border: 1px solid #f0d58a; border-radius: 6px; padding: 6px 10px; }
.comments { margin: 6px 0 4px; padding-left: 4px; }
.cmt { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid #efe3c4; }
.cmt .b { flex: 1; font-size: 1.02rem; white-space: pre-wrap; word-wrap: break-word; }
.cmt .b small { color: var(--ink-soft); }
.cmt-form { display: flex; gap: 8px; padding: 10px 0 6px; }
.cmt-form input { flex: 1; font: inherit; border: 1px solid #cdbf98; border-radius: 20px; padding: 8px 14px; background: #fff; }
.menu-wrap { position: relative; }
.menu { position: absolute; right: 0; top: 34px; background: #fff; border: 1px solid #e2d4ad; border-radius: 8px; box-shadow: 0 12px 30px rgba(0,0,0,.14); z-index: 5; min-width: 180px; padding: 6px; }
.menu button { display: block; width: 100%; text-align: left; padding: 8px 10px; border: 0; background: none; border-radius: 4px; font: inherit; cursor: pointer; color: var(--ink); }
.menu button:hover { background: #f3ead2; }
.menu button.danger { color: #b3263a; }
.who-row { display: flex; gap: 10px; align-items: center; padding: 8px 0; }
.who-row .t { flex: 1; min-width: 0; font-size: .98rem; }
.who-row .t a { font-weight: 600; color: var(--ink); text-decoration: none; }
.who-row .t small { display: block; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-btn { font: 600 .7rem var(--display); letter-spacing: .08em; border: 1px solid #7a2030; color: #7a2030; background: none; border-radius: 14px; padding: 6px 10px 5px; cursor: pointer; white-space: nowrap; }
.mini-btn.on { background: #7a2030; color: #fff; }
.rules-list { padding-left: 18px; margin: 0; font-size: .98rem; color: var(--ink-soft); }
.rules-list li { margin-bottom: 6px; }
.loadmore { display: block; margin: 18px auto 0; }
.modal-bg { position: fixed; inset: 0; background: rgba(10,10,13,.55); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal { background: #fffaf0; border-radius: 12px; padding: 24px; width: min(460px, 100%); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.modal h3 { margin-top: 0; }
.modal label.opt { display: flex; gap: 10px; padding: 6px 0; font-size: 1.02rem; cursor: pointer; }
.modal textarea { width: 100%; font: inherit; border: 1px solid #cdbf98; border-radius: 6px; padding: 8px; min-height: 70px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #0c1630; color: #f3eedf; padding: 12px 18px; border-radius: 8px; z-index: 60; box-shadow: 0 10px 30px rgba(0,0,0,.3); font-size: 1rem; }

/* profile */
.pf-banner { height: 190px; background: radial-gradient(ellipse 50% 80% at 10% 20%, rgba(47,95,179,.55), transparent 70%), radial-gradient(ellipse 50% 80% at 90% 30%, rgba(179,38,58,.55), transparent 70%), linear-gradient(135deg, #0a0a0d, #1a1420); }
.pf-head { display: flex; gap: 20px; align-items: flex-end; margin-top: -56px; flex-wrap: wrap; }
.pf-head .info { flex: 1; min-width: 220px; padding-bottom: 6px; }
.pf-head h1 { font: 700 1.8rem var(--display); letter-spacing: .04em; margin: 0; color: var(--ink); }
.pf-head .hd { color: var(--ink-soft); }
.pf-actions { display: flex; gap: 8px; padding-bottom: 10px; flex-wrap: wrap; }
.pf-meta { display: flex; gap: 18px; flex-wrap: wrap; color: var(--ink-soft); font-size: 1rem; margin: 12px 0; }
.pf-meta b { color: var(--ink); }
.mission-card { border-left: 4px solid var(--ruby); background: #fff; border-radius: 6px; padding: 14px 18px; margin: 16px 0; }
.mission-card b { font: 600 .7rem var(--display); letter-spacing: .14em; color: var(--ruby); display: block; margin-bottom: 4px; }
.pf-projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 14px; }

/* messages */
.dm { display: grid; grid-template-columns: 320px minmax(0, 1fr); height: calc(100vh - 180px); min-height: 520px; background: #fffaf0; border: 1px solid #e2d4ad; border-radius: 10px; overflow: hidden; }
.dm-list { border-right: 1px solid #e2d4ad; overflow-y: auto; }
.dm-item { display: flex; gap: 10px; padding: 12px 14px; border-bottom: 1px solid #efe3c4; cursor: pointer; text-decoration: none; color: var(--ink); }
.dm-item:hover, .dm-item.on { background: #f3ead2; }
.dm-item .t { flex: 1; min-width: 0; }
.dm-item .t small { display: block; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-thread { display: flex; flex-direction: column; min-width: 0; }
.dm-top { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-bottom: 1px solid #e2d4ad; }
.dm-top .t { flex: 1; }
.dm-msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.bubble { max-width: 72%; padding: 9px 13px; border-radius: 16px; font-size: 1.04rem; white-space: pre-wrap; word-wrap: break-word; position: relative; }
.bubble.them { background: #fff; border: 1px solid #e2d4ad; align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble.me { background: #0c1630; color: #f3eedf; align-self: flex-end; border-bottom-right-radius: 4px; }
.bubble small { display: block; font-size: .78rem; opacity: .7; margin-top: 3px; }
.bubble .rep { position: absolute; right: -26px; top: 6px; background: none; border: 0; color: var(--ink-soft); cursor: pointer; opacity: 0; font-size: .9rem; }
.bubble:hover .rep { opacity: 1; }
.dm-form { display: flex; gap: 10px; padding: 12px 16px; border-top: 1px solid #e2d4ad; }
.dm-form textarea { flex: 1; font: inherit; border: 1px solid #cdbf98; border-radius: 18px; padding: 9px 14px; resize: none; height: 44px; }
.dm-safety { font-size: .92rem; color: var(--ink-soft); padding: 8px 16px; background: #fff4d6; border-bottom: 1px solid #f0d58a; }

/* support */
.sp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.ticket-item { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid #e2d4ad; text-decoration: none; color: var(--ink); }
.ticket-item small { color: var(--ink-soft); display: block; }
.status-chip { font: 600 .62rem var(--display); letter-spacing: .1em; padding: 3px 8px 2px; border-radius: 2px; white-space: nowrap; align-self: center; }
.status-chip.open { background: #fff4d6; color: #6b4f12; } .status-chip.pending { background: #dbe6fb; color: #0c1630; }
.status-chip.resolved, .status-chip.closed { background: #e9f7ef; color: #0f3d2c; }
.thread-msg { border-radius: 10px; padding: 14px 16px; margin-bottom: 12px; white-space: pre-wrap; }
.thread-msg.member { background: #fff; border: 1px solid #e2d4ad; }
.thread-msg.staff { background: #0c1630; color: #f3eedf; }
.thread-msg.system { background: none; color: var(--ink-soft); font-style: italic; padding: 4px 0; }
.thread-msg small { display: block; font-size: .82rem; opacity: .75; margin-bottom: 6px; font-style: normal; }
.hp { position: absolute; left: -9999px; }
@media (max-width: 1100px) { .cm-wrap { grid-template-columns: minmax(0, 1fr) 280px; } .cm-left { display: none; } }
@media (max-width: 860px) { .cm-wrap, .sp-grid { grid-template-columns: minmax(0, 1fr); } .cm-side { position: static; } .dm { grid-template-columns: 1fr; height: auto; } .dm.has-thread .dm-list { display: none; } .dm:not(.has-thread) .dm-thread { display: none; } .dm-msgs { min-height: 50vh; } }
.faq-light details { border-bottom: 1px solid #e2d4ad; }
.faq-light summary { cursor: pointer; padding: 14px 30px 14px 0; font: 600 1rem var(--display); letter-spacing: .03em; color: var(--midnight); list-style: none; position: relative; }
.faq-light summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font: 400 1.4rem var(--body); color: #8c6a1e; }
.faq-light details[open] summary::after { content: "\2212"; }
.faq-light p { margin: 0 0 14px; color: var(--ink-soft); }
.field select { font: 400 1.08rem var(--body); }

/* =================== Hero =================== */
.hero { position: relative; }

/* =================== Site editor: announcement bar and image spots =================== */
.cc-note { position: relative; z-index: 60; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; justify-content: center; padding: 11px 48px 11px 16px;
  background: #16261f; color: #f3ead8; font-size: 15px; line-height: 1.45; text-align: center; border-bottom: 1px solid rgba(201,162,74,.45); }
.cc-note strong { color: #e6cd8a; font-weight: 700; }
.cc-note a { color: #f1dfae; text-decoration: underline; }
.cc-note-warning { background: #3a2a0c; }
.cc-note-maintenance { background: #3b1218; }
.cc-note-x { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent;
  color: #f3ead8; font-size: 22px; line-height: 1; cursor: pointer; }
.cc-note-x:hover, .cc-note-x:focus-visible { background: rgba(255,255,255,.12); }
.cc-slot[hidden] { display: none; }
.cc-banner { margin: 28px auto; }
.cc-banner img { display: block; width: 100%; height: auto; max-height: 420px; object-fit: cover; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }

/* ---------- Tabs under the header: stay at the top while scrolling (the header is sticky) ---------- */
header.site .acct-link { margin-left: auto; }
header.site nav.tabs { border-top: 1px solid rgba(201,162,74,.14); }
header.site nav.tabs .wrap { height: auto; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-behavior: smooth; }
header.site nav.tabs .wrap::-webkit-scrollbar { display: none; }
nav.tabs a { flex: 0 0 auto; padding: 11px 14px 10px; color: var(--cream); opacity: .78; text-decoration: none; font-size: .98rem; white-space: nowrap;
  border-bottom: 2px solid transparent; transition: opacity .15s, color .15s, border-color .15s; }
nav.tabs a:hover { opacity: 1; color: var(--gold-light); }
nav.tabs a[aria-current="page"] { opacity: 1; color: var(--gold-light); border-bottom-color: var(--gold); }
@media (max-width: 560px) { nav.tabs a { padding: 10px 11px 9px; font-size: .92rem; } header.site nav.tabs .wrap { padding: 0 8px; } }
/* links to a spot on the page stop below the header and tabs instead of under them */
main [id] { scroll-margin-top: 124px; }

/* Home page: each tab shows only its own part (main's data-current is set by the page and assets/tabs.js) */
main[data-current] > .rule { display: none; }
main[data-current="home"] > [data-view]:not([data-view="home"]):not([data-view="all"]),
main[data-current="tools"] > [data-view]:not([data-view="tools"]):not([data-view="all"]),
main[data-current="fund"] > [data-view]:not([data-view="fund"]):not([data-view="all"]),
main[data-current="buy"] > [data-view]:not([data-view="buy"]):not([data-view="all"]),
main[data-current="token"] > [data-view]:not([data-view="token"]):not([data-view="all"]),
main[data-current="faq"] > [data-view]:not([data-view="faq"]):not([data-view="all"]) { display: none; }

/* ---------- Token safety (token tab) ---------- */
.ts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; margin-top: 28px; }
.ts-score { font: 600 1.05rem var(--display); letter-spacing: .04em; padding: 12px 16px; border-radius: 4px; background: rgba(27,42,36,.06); margin-bottom: 14px; }
.ts-score.bad { color: #8c1d2d; background: rgba(179,38,58,.09); }
.ts-score.mid { color: #7a5a12; background: rgba(201,162,74,.14); }
.ts-score.good { color: #1f6b48; background: rgba(31,154,104,.1); }
.ts-checks, .ts-holders { list-style: none; margin: 0; padding: 0; }
.ts-checks li { padding: 10px 0; border-bottom: 1px solid var(--paper-line); }
.ts-checks li b { display: block; font-weight: 600; }
.ts-checks li span { color: var(--ink-soft); }
.ts-checks li.ok b { color: #1f6b48; }
.ts-checks li.no b { color: #8c1d2d; }
.ts-checks li.wait b { color: var(--ink-soft); }
.ts-holders li { padding: 6px 0; }
.ts-links { margin-top: 12px; }
.ts-before { margin-top: 24px; padding: 18px 20px; border: 1px solid var(--paper-line); border-left: 4px solid var(--ruby); background: rgba(255,255,255,.35); }
.ts-before ul { margin: 8px 0 0; padding-left: 20px; }
.ts-before li { margin: 6px 0; }
@media (max-width: 960px) { .ts-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Safety strip above the header (every page; scrolls away) ---------- */
.safety-strip { font-size: .95rem; padding: 7px 0; background: #2a2a2f; color: #f3eedf; text-align: center; }
.safety-strip .wrap { display: block; }
.safety-strip a { color: inherit; font-weight: 600; text-decoration: underline; }
.safety-strip.bad { background: #5c1520; }
.safety-strip.mid { background: #5a4513; }
.safety-strip.good { background: #12402c; }
/* The banner's line is one button that opens the panel of checks and updates */
.safety-strip .sb-line { display: block; width: 100%; margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: center; cursor: pointer; }
.safety-strip .sb-line:focus-visible { outline: 2px solid #e6cd8a; outline-offset: 2px; }
.safety-strip .sb-trend { margin-left: 8px; font-size: .88em; opacity: .9; white-space: nowrap; }
.safety-strip .sb-latest { font-weight: 600; }
.safety-strip .sb-more { margin-left: 8px; font-weight: 600; text-decoration: underline; white-space: nowrap; }
.safety-strip .sb-more::after { content: " ▾"; text-decoration: none; display: inline-block; }
.safety-strip.open .sb-more::after { content: " ▴"; }
.safety-strip .sb-new { display: inline-block; margin-right: 8px; padding: 1px 8px; border-radius: 999px; background: #e6cd8a; color: #1b1b22; font-size: .78em; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; vertical-align: 1px; }
.safety-strip .sb-panel { margin-top: 7px; padding: 12px 0 6px; border-top: 1px solid rgba(255,255,255,.18); text-align: left; }
.safety-strip .sb-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; }
.safety-strip h3 { margin: 0 0 6px; font-size: .95rem; color: #e6cd8a; letter-spacing: .04em; }
.safety-strip .sb-checks, .safety-strip .sb-updates { list-style: none; margin: 0; padding: 0; }
.safety-strip .sb-checks li, .safety-strip .sb-updates li { padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.safety-strip .sb-checks b, .safety-strip .sb-updates b { display: block; font-weight: 600; }
.safety-strip .sb-checks span, .safety-strip .sb-updates span { display: block; font-size: .88em; opacity: .85; }
.safety-strip .sb-checks li.ok b { color: #9fe0bd; }
.safety-strip .sb-checks li.no b { color: #f3b3bd; }
.safety-strip .sb-updates time { float: right; margin-left: 10px; font-size: .82em; opacity: .75; }
.safety-strip .sb-updates li.is-new b::before { content: "New · "; color: #e6cd8a; }
.safety-strip .sb-none { margin: 0; opacity: .85; }
.safety-strip .sb-all { display: inline-block; margin-top: 8px; }
@media (max-width: 700px) {
  .safety-strip .sb-cols { grid-template-columns: 1fr; }
  .safety-strip .sb-when, .safety-strip .sb-trend { display: none; }   /* phones: score, pool, latest update and Details */
}
/* Safety updates timeline on the Token safety page */
.sf-updates { list-style: none; margin: 0; padding: 0; }
.sf-updates li { padding: 12px 0 12px 18px; border-left: 2px solid var(--paper-line); position: relative; }
.sf-updates li::before { content: ""; position: absolute; left: -6px; top: 18px; width: 10px; height: 10px; border-radius: 50%; background: #c9a24a; }
.sf-updates li.auto::before { background: #1f6b48; }
.sf-updates time { display: block; font-size: .85rem; color: var(--ink-soft); }
.sf-updates b { display: block; font-weight: 600; }
.sf-updates span { color: var(--ink-soft); }
.sf-updates .sf-by { font-size: .82rem; color: var(--ink-soft); }

/* ---------- Token safety page ---------- */
.ts-pointer { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.ts-pointer > div { flex: 1 1 420px; }
.sf-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.sf-tile { background: #fffaf0; border: 1px solid var(--paper-line); border-radius: 6px; padding: 14px 14px 12px; }
.sf-tile span { display: block; font-size: .92rem; color: var(--ink-soft); }
.sf-tile b { display: block; font: 700 1.35rem var(--display); margin: 4px 0 2px; color: var(--ink); }
.sf-tile small { color: var(--ink-soft); font-size: .88rem; }
.sf-tile.bad { border-top: 4px solid var(--ruby); } .sf-tile.bad b { color: #8c1d2d; }
.sf-tile.mid { border-top: 4px solid var(--gold); } .sf-tile.mid b { color: #7a5a12; }
.sf-tile.good { border-top: 4px solid var(--emerald); } .sf-tile.good b { color: #1f6b48; }
.sf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.sf-card { background: rgba(255,255,255,.4); border: 1px solid var(--paper-line); border-radius: 6px; padding: 20px 22px; }
.sf-card h2 { font-size: 1.35rem; margin: 0 0 10px; }
.sf-card h2::after { display: none; }
.sf-risks { list-style: none; padding: 0; margin: 10px 0 0; }
.sf-risks li { padding: 8px 0; border-bottom: 1px solid var(--paper-line); }
.sf-chip { display: inline-block; font: 600 .7rem var(--display); letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 3px; background: rgba(201,162,74,.2); color: #7a5a12; }
.sf-risks li.no .sf-chip { background: rgba(179,38,58,.12); color: #8c1d2d; }
.sf-svg { width: 100%; height: auto; display: block; margin-top: 6px; }
.sf-svg .sf-grid { stroke: rgba(27,42,36,.12); stroke-width: 1; }
.sf-svg .sf-axis { font: 12px var(--body); fill: var(--ink-soft); }
.sf-svg .sf-line { fill: none; stroke: #7a2030; stroke-width: 2.5; stroke-linejoin: round; }
.sf-svg .sf-area { fill: rgba(122,32,48,.08); }
.sf-svg .sf-dot { fill: #7a2030; }
.sf-facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 14px 0 0; }
.sf-facts dt { color: var(--ink-soft); }
.sf-facts dd { margin: 0; font-weight: 600; }
@media (max-width: 960px) { .sf-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } .sf-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .sf-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .safety-strip { font-size: .86rem; } }

/* ---------- Cookie pop-up (assets/track.js) ---------- */
.cookie-pop { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 760px; margin: 0 auto;
  display: flex; gap: 18px; align-items: center; padding: 16px 18px; background: rgba(12,12,15,.97); color: #efe7d2;
  border: 1px solid rgba(230,205,138,.45); border-radius: 6px; box-shadow: 0 12px 40px rgba(0,0,0,.45); }
.cookie-pop[hidden] { display: none; }
.cookie-pop b { font: 600 1rem var(--display); letter-spacing: .06em; color: var(--gold-light); }
.cookie-pop p { margin: 4px 0 0; font-size: .98rem; color: #d6ceb8; }
.cookie-pop a { color: var(--gold-light); }
.cookie-buttons { display: flex; flex-direction: column; gap: 8px; flex: 0 0 auto; }
.cookie-buttons .btn { padding: 10px 16px 9px; white-space: nowrap; }
@media (max-width: 600px) { .cookie-pop { flex-direction: column; align-items: stretch; left: 10px; right: 10px; bottom: 10px; } .cookie-buttons { flex-direction: row; } .cookie-buttons .btn { flex: 1; } }

/* ---------- Launch progress (Token safety page) ---------- */
.sf-launch { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 32px; align-items: start; margin-bottom: 28px;
  padding: 22px 24px; background: #fffaf0; border: 1px solid #e2d4ad; border-left: 4px solid var(--gold); border-radius: 6px; }
.sf-launch h2 { font-size: 1.45rem; margin: 8px 0 8px; }
.sf-launch h2::after { display: none; }
.sf-launch p { margin: 0 0 8px; }
.sf-badge { display: inline-block; font: 600 .72rem var(--display); letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 3px; background: #7a2030; color: #fff; }
.sf-progress { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.sf-progress li { position: relative; padding: 8px 0 8px 34px; border-bottom: 1px solid var(--paper-line); }
.sf-progress li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 8px; width: 24px; height: 24px; border-radius: 50%;
  font: 600 .8rem/24px var(--display); text-align: center; background: rgba(27,42,36,.08); color: var(--ink-soft); }
.sf-progress li.ok::before { content: "\2713"; background: #1f6b48; color: #fff; }
.sf-progress li.now::before { background: var(--gold); color: #1b2a24; }
.sf-progress b { display: block; font-weight: 600; }
.sf-progress span { font-size: .95rem; color: var(--ink-soft); }
.sf-progress li.ok span { color: #1f6b48; }
@media (max-width: 960px) { .sf-launch { grid-template-columns: 1fr; gap: 16px; } }

/* ---------- Get CSCN: choose a platform ---------- */
.pick-label { font: 600 .74rem var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin: 14px 0 8px; }
.pick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.pick-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 14px; min-width: 130px; cursor: pointer; text-align: left;
  font: 600 1rem var(--body); color: var(--ink); background: #fffaf0; border: 1px solid #d8c79c; border-radius: 4px; }
.pick-opt small { font-weight: 400; font-size: .85rem; color: var(--ink-soft); }
.pick-opt:hover { border-color: var(--gold); }
.pick-opt[aria-checked="true"] { background: #1b1a16; color: var(--gold-light); border-color: var(--gold); box-shadow: inset 0 -3px 0 var(--gold); }
.pick-opt[aria-checked="true"] small { color: #cfc6ae; }
.pick-info { display: none; }
.pick-info.on { display: block; }
.pick-info h4 { margin: 4px 0 6px; font-size: 1.1rem; }
.pick-tip { font-size: .98rem; color: var(--ink-soft); background: rgba(201,162,74,.1); border-radius: 4px; padding: 10px 14px; }
.link-frame { display: flex; align-items: center; }
.link-frame[hidden] { display: none; }
.link-card { padding: 28px 26px; }
.link-card h3 { margin: 0 0 8px; }
.link-card .btn { margin: 10px 0 18px; }
.link-addr { font-size: .95rem; color: var(--ink-soft); margin: 0 0 6px; }

/* ---------- Live progress lines (roadmap) and the examples note ---------- */
.road .live-line { display: block; margin-top: 6px; font-size: .95rem; color: var(--gold-light); }
.examples-note { margin: 40px 0 0; padding: 10px 14px; border-left: 3px solid var(--gold); background: rgba(201,162,74,.08); color: var(--ink-soft); }

/* Analytics, Verify and Trade pages (assets/features.js) */
[data-feature] .mono { font-family: ui-monospace, Consolas, monospace; font-size: .92em; word-break: break-all; }
.an-table { width: 100%; border-collapse: collapse; }
.an-table th, .an-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--paper-line); }
.an-table th { font: 600 .8rem var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.vf-form { display: grid; gap: 12px; max-width: 760px; }
.vf-form label { display: grid; gap: 4px; font-weight: 600; }
.vf-form input, .vf-form textarea { font: 15px ui-monospace, Consolas, monospace; padding: 10px; border: 1px solid var(--paper-line); border-radius: 4px; background: #fffdf7; width: 100%; box-sizing: border-box; }
.vf-form .btn { justify-self: start; }
[data-feature] .msg.ok { color: #1f6b48; font-weight: 600; }
[data-feature] .msg.err { color: #8c1d2d; font-weight: 600; }
@media (max-width: 640px) { .an-table th:nth-child(5), .an-table td:nth-child(5) { display: none; } }
[data-feature] .msg { color: var(--ink); }

/* Sponsor ads ([data-sponsor] spots, filled by assets/tabs.js): a card with the picture, a Sponsored label, the
   headline, a short line and the sponsor's web address, so it's always clear it's an ad and where it leads */
.sp-slot[hidden] { display: none; }
.sp-slot { margin: 26px 0; }
.sp-card { display: flex; gap: 16px; align-items: center; background: #fffaf0; border: 1px solid #e2d4ad; border-radius: 10px; padding: 12px; color: #1b1b22; text-decoration: none; box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.sp-card:hover { border-color: var(--gold); }
.sp-card img { width: 220px; max-width: 40%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; flex: none; background: #eee; }
.sp-body { display: grid; gap: 3px; min-width: 0; }
.sp-body b { font-size: 1.1rem; overflow-wrap: anywhere; }
.sp-tag { justify-self: start; font: 600 .7rem/1 system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #6b6250; border: 1px solid #cdbf98; border-radius: 4px; padding: 3px 6px; }
.sp-text { color: #4a4436; overflow-wrap: anywhere; }
.sp-host { color: #7a2030; overflow-wrap: anywhere; }
.sp-more { display: inline-block; margin-top: 6px; font-size: .8rem; color: #8c6a1e; }
.sp-side .sp-card { flex-direction: column; align-items: stretch; gap: 8px; }
.sp-side .sp-card img { width: 100%; max-width: none; }
.sp-side { margin: 14px 0 0; }
@media (max-width: 700px) {
  .sp-card { flex-direction: column; align-items: stretch; gap: 10px; }
  .sp-card img { width: 100%; max-width: none; }
}

/* Wider text on computers and tablets: intros, subtitles and notes use the full page width, so lines like
   "CarsCoin.club the ultimate digital club for auto enthusiasts, collectors, and gearheads." stay on one line.
   Phones keep their normal layout. */
@media (min-width: 700px) {
  .intro, .hero .lede, .page-head p, .road p, details p, footer p,
  .faq, .risk-note, .wallet-list, .join .news-intro, .news-note, .social-links { max-width: none; }
  .hero .lede { margin-left: auto; margin-right: auto; }
}

/* Join the club: each social button shows its own logo (drawn with a mask, so changing the button text in the Site editor keeps it) */
.btn.social { display: inline-flex; align-items: center; gap: .55em; }
.btn.social-x { flex-direction: row-reverse; }   /* the X logo sits after the words: "Follow us on X" then the logo */
.btn.social-x::before, .btn.social-discord::before { content: ""; flex: none; width: 1.25em; height: 1.25em; -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat; }
.btn.social-x::before { --logo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z'/%3E%3C/svg%3E"); background: #000; }
.btn.social-discord::before { --logo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z'/%3E%3C/svg%3E"); background: #5865F2; }

/* Home page showroom: a car turning on a turntable */
.showroom .wrap { text-align: center; }
.showroom .intro { margin-left: auto; margin-right: auto; margin-bottom: 10px; }
.showroom-stage { position: relative; height: clamp(260px, 42vw, 460px); margin: 0 auto; cursor: grab; touch-action: pan-y; user-select: none; }
.showroom-stage:active { cursor: grabbing; }
.showroom-stage canvas { display: block; width: 100% !important; height: 100% !important; }
.showroom-name { position: absolute; left: 0; right: 0; bottom: 6px; margin: 0; font-family: var(--display); letter-spacing: .14em; text-transform: uppercase; font-size: .95rem; color: #e6cd8a; opacity: 0; transition: opacity .4s; pointer-events: none; }
.showroom-stage.ready .showroom-name { opacity: 1; }

/* Risk notice in front of the swap boxes (assets/buy-gate.js) */
.buy-gate { padding: 18px 20px; border: 1px solid #cdbf98; border-left: 4px solid #b3263a; border-radius: 6px; background: #fffaf0; color: #1b1b22; font-size: 1rem; }
.buy-gate h3 { margin: 0 0 8px; color: #1b1b22; } .buy-gate p { margin: 0 0 10px; } .buy-gate ul { margin: 0 0 10px; padding-left: 20px; } .buy-gate li { margin-bottom: 6px; }
.buy-gate a, .buy-gate-done button { color: #7a2030; }
.buy-gate-check { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 14px; padding: 10px 12px; border: 1px solid #cdbf98; border-radius: 6px; background: #fff; cursor: pointer; }
.buy-gate-check input { flex: none; width: 20px; height: 20px; margin: 3px 0 0; accent-color: #b3263a; }
.buy-gate .btn:disabled { opacity: .45; cursor: not-allowed; }
.buy-gate-done { margin: 0 0 10px; font-size: .95rem; color: #1b1b22; }
.buy-gate-done button { background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; cursor: pointer; }

/* ---------- Background colours: set in the Site editor (Background colours). api/site.php?action=sections.js puts the saved
   colours into these variables; these are the defaults. Each area fades from its top colour (-a) to its bottom colour (-b),
   with a soft glow made from the top colour. A gradient style other than top-to-bottom, or a scheduled colour change,
   arrives as --bg-KEY-g. ---------- */
:root {
  --bg-top-a: #0f3d2c;    --bg-top-b: #082419;      /* behind the spinning coin and the banner at the top of every page */
  --bg-dark-a: #0d3527;   --bg-dark-b: #061a12;     /* dark sections: FAQ, What you can do with CSCN, How it works, Garage */
  --bg-wallet-a: #0f3d2c; --bg-wallet-b: #082419;   /* Connect wallet and Parts discounts */
  --bg-road-a: #0f3d2c;   --bg-road-b: #061a12;     /* Roadmap */
  --bg-blue-a: #0c1630;   --bg-blue-b: #070d1d;     /* night-blue sections: Tools, Showroom, How CSCN is used */
  --bg-head-a: #0a0a0d;   --bg-head-b: #0a0a0d;     /* the bar with the logo and tabs */
  --bg-foot-a: #07070a;   --bg-foot-b: #07070a;     /* footer */
}
.hero { background:
    radial-gradient(ellipse 38% 55% at 6% 18%, color-mix(in srgb, color-mix(in srgb, var(--bg-top-a) 70%, #4fe0a5) 38%, transparent), transparent 70%),
    radial-gradient(ellipse 38% 55% at 94% 22%, color-mix(in srgb, color-mix(in srgb, var(--bg-top-a) 70%, #4fe0a5) 30%, transparent), transparent 70%),
    var(--bg-top-g, linear-gradient(180deg, var(--bg-top-a) 0%, var(--bg-top-b) 55%, #0a0a0d 100%)); }
.page-head { background:
    radial-gradient(ellipse 40% 70% at 5% 10%, color-mix(in srgb, color-mix(in srgb, var(--bg-top-a) 70%, #4fe0a5) 38%, transparent), transparent 70%),
    radial-gradient(ellipse 40% 70% at 95% 10%, color-mix(in srgb, color-mix(in srgb, var(--bg-top-a) 70%, #4fe0a5) 28%, transparent), transparent 70%),
    var(--bg-top-g, linear-gradient(180deg, var(--bg-top-a), var(--bg-top-b))); }
section.carbon, section.gg { background-color: var(--bg-dark-b); background-image: var(--carbon), var(--bg-dark-g, linear-gradient(180deg, var(--bg-dark-a), var(--bg-dark-b))); }
section.gx { background-color: var(--bg-dark-b);
  background-image: linear-gradient(var(--gx-faint) 1px, transparent 1px), linear-gradient(90deg, var(--gx-faint) 1px, transparent 1px), var(--bg-dark-g, linear-gradient(180deg, var(--bg-dark-a), var(--bg-dark-b)));
  background-size: 48px 48px, 48px 48px, auto; }
section.gx::before { background: radial-gradient(ellipse at 20% 0%, color-mix(in srgb, color-mix(in srgb, var(--bg-dark-a) 70%, #4fe0a5) 26%, transparent), transparent 55%); }
section.leather { background:
    radial-gradient(ellipse 55% 70% at 15% 0%, color-mix(in srgb, color-mix(in srgb, var(--bg-wallet-a) 70%, #4fe0a5) 38%, transparent), transparent 70%),
    radial-gradient(rgba(0,0,0,.18) 1px, transparent 1.4px) 0 0 / 5px 5px,
    var(--bg-wallet-g, linear-gradient(180deg, var(--bg-wallet-a), var(--bg-wallet-b))); }
section.racing { background:
    radial-gradient(ellipse 50% 60% at 90% 10%, color-mix(in srgb, color-mix(in srgb, var(--bg-road-a) 70%, #4fe0a5) 30%, transparent), transparent 70%),
    var(--bg-road-g, linear-gradient(180deg, var(--bg-road-a), var(--bg-road-b))); }
section.midnight { background:
    radial-gradient(ellipse 60% 70% at 85% 0%, color-mix(in srgb, color-mix(in srgb, var(--bg-blue-a) 70%, #6f9cf0) 45%, transparent), transparent 70%),
    var(--bg-blue-g, linear-gradient(180deg, var(--bg-blue-a), var(--bg-blue-b))); }
header.site { background: var(--bg-head-g, linear-gradient(180deg, color-mix(in srgb, var(--bg-head-a) 92%, transparent), color-mix(in srgb, var(--bg-head-b) 92%, transparent))); }
footer { background-color: var(--bg-foot-b); background-image: var(--carbon), var(--bg-foot-g, linear-gradient(180deg, var(--bg-foot-a), var(--bg-foot-b))); }
