
  :root {
    --bg: #05080f; --surface: #0b1220; --surface-2: #101a2e;
    --border: #1c2a47; --accent: #00ffaa; --gold: #f0b90b;
    --danger: #ff4757; --warn: #ffa502; --blue: #38bdf8;
    --text: #eef2f7; --muted: #8fa3bd; --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif; background: var(--bg); color: var(--text); line-height: 1.75; overflow-x: hidden; }
  ::selection { background: rgba(0,255,170,.25); }

  /* ambient layers */
  .bg-glow { position: fixed; inset: 0; pointer-events: none; z-index: -1;
    background: radial-gradient(circle at 15% 12%, rgba(0,255,170,.07) 0%, transparent 45%),
                radial-gradient(circle at 85% 25%, rgba(240,185,11,.06) 0%, transparent 45%),
                radial-gradient(circle at 50% 90%, rgba(56,189,248,.05) 0%, transparent 50%);
    animation: bgPulse 12s ease-in-out infinite alternate; }
  @keyframes bgPulse { 0% { opacity:.75; } 100% { opacity:1; } }
  #bgCanvas { position: fixed; inset: 0; z-index: -2; opacity: .5; pointer-events: none; }
  #progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 300;
    background: linear-gradient(90deg, var(--gold), var(--accent)); }

  .container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

  /* reveal */
  .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1); }
  .reveal.visible { opacity: 1; transform: none; }

  /* nav */
  nav { position: sticky; top: 0; z-index: 100; background: rgba(5,8,15,.82); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); padding: 13px 0; }
  .nav-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
  .brand { font-family: var(--mono); font-size: 16px; font-weight: 900; color: var(--accent); display: flex; align-items: center; gap: 8px; text-decoration: none; }
  .brand em { font-style: normal; color: var(--text); }
  .brand-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: blink 1.8s infinite; }
  @keyframes blink { 0%,100%{opacity:1;} 50%{opacity:.3;} }
  .nav-right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
  .nav-links { display: flex; gap: 16px; font-size: 13px; flex-wrap: wrap; }
  .nav-links a { color: var(--muted); text-decoration: none; transition: color .2s; padding-bottom: 2px; border-bottom: 2px solid transparent; }
  .nav-links a:hover, .nav-links a.active { color: var(--accent); border-color: var(--accent); }
  .lang-seg { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
  .lang-btn { background: transparent; border: none; color: var(--muted); font-family: var(--mono); font-size: 12px; font-weight: 800; padding: 5px 12px; cursor: pointer; transition: all .2s; }
  .lang-btn.on { background: var(--accent); color: #05080f; }

  /* hero */
  header { padding: 64px 0 48px; text-align: center; }
  .pill-tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 999px; font-size: 13px; font-weight: 700; background: rgba(240,185,11,.12); color: var(--gold); border: 1px solid rgba(240,185,11,.35); margin-bottom: 14px; }
  .countdown { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin-bottom: 22px; }
  .countdown b { color: var(--gold); font-size: 14px; letter-spacing: .5px; }
  .wish-quote { max-width: 700px; margin: 0 auto 20px; padding: 13px 20px; border-left: 3px solid var(--gold); background: rgba(240,185,11,.06); border-radius: 0 12px 12px 0; text-align: left; }
  .wish-quote .q { font-size: 14.5px; color: #e8d48a; font-style: italic; line-height: 1.7; }
  .wish-quote .a { font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-top: 6px; }
  h1 { font-size: clamp(32px, 5.4vw, 56px); font-weight: 900; line-height: 1.16; margin-bottom: 18px; letter-spacing: -.5px; }
  .grad { background: linear-gradient(90deg, var(--accent), var(--gold), var(--blue)); background-size: 200% auto; -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: shineText 6s linear infinite; }
  @keyframes shineText { to { background-position: 200% center; } }
  .hero-lead { font-size: 17.5px; color: var(--muted); max-width: 780px; margin: 0 auto 30px; }
  .cta-row { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
  .btn { display: inline-block; font-size: 15px; font-weight: 800; border-radius: 999px; padding: 13px 28px; cursor: pointer; text-decoration: none; transition: all .22s; border: 1px solid transparent; }
  .btn-primary { background: linear-gradient(135deg, #f0b90b, #f8d247); color: #05080f; box-shadow: 0 6px 26px rgba(240,185,11,.35); }
  .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 34px rgba(240,185,11,.5); }
  .btn-ghost { background: transparent; color: var(--accent); border-color: var(--accent); }
  .btn-ghost:hover { background: rgba(0,255,170,.1); transform: translateY(-2px); }
  .honesty-row { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 34px; }
  .hchip { font-family: var(--mono); font-size: 11.5px; color: #9fe8c9; background: rgba(0,255,170,.05); border: 1px solid rgba(0,255,170,.22); border-radius: 999px; padding: 4px 12px; }

  /* stats */
  .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 46px; }
  .stat { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px 14px; transition: border-color .25s, transform .25s; }
  .stat:hover { border-color: var(--gold); transform: translateY(-3px); }
  .stat-n { font-family: var(--mono); font-size: 27px; font-weight: 900; color: var(--accent); line-height: 1.2; }
  .stat-n.gold { color: var(--gold); }
  .stat-l { font-size: 11.5px; color: var(--muted); line-height: 1.5; margin-top: 4px; }

  /* comic storyboard */
  .comic-stage { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 28px; text-align: left; box-shadow: 0 20px 50px rgba(0,0,0,.5); }
  .comic-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
  .comic-title { font-size: 15.5px; font-weight: 800; color: var(--accent); }
  .replay-btn { background: rgba(0,255,170,.12); color: var(--accent); border: 1px solid var(--accent); border-radius: 999px; padding: 6px 16px; font-size: 13px; font-weight: 700; cursor: pointer; transition: all .2s; font-family: inherit; }
  .replay-btn:hover { background: var(--accent); color: #05080f; }
  .comic-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 16px; }
  .panel { background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 18px; position: relative; transition: all .4s ease; }
  .panel.active-panel { border-color: var(--gold); box-shadow: 0 0 24px rgba(240,185,11,.18); transform: translateY(-4px); }
  .panel-step { font-family: var(--mono); font-size: 11px; font-weight: 800; color: var(--gold); margin-bottom: 8px; display: block; }
  .panel-anim { height: 86px; border-radius: 10px; background: #0a101d; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.04); }
  .panel h4 { font-size: 15.5px; margin-bottom: 6px; color: #fff; }
  .panel p { font-size: 13px; color: var(--muted); line-height: 1.6; }
  .worm-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 12px var(--danger); position: absolute; left: 18px; animation: wormAttack 2.6s infinite ease-in-out; }
  @keyframes wormAttack { 0%{left:18px;transform:scale(1);} 55%{left:52%;transform:scale(1.2);} 65%{left:46%;transform:scale(.8);} 100%{left:18px;transform:scale(1);} }
  .shield-bar { width: 4px; height: 54px; background: var(--accent); border-radius: 4px; box-shadow: 0 0 16px var(--accent); position: absolute; left: 58%; animation: shieldPulse 1.3s infinite alternate; }
  @keyframes shieldPulse { from{opacity:.6;} to{opacity:1; box-shadow:0 0 24px var(--accent);} }
  .fly-float { font-size: 32px; animation: flyHover 2s ease-in-out infinite; }
  @keyframes flyHover { 0%,100%{transform:translateY(0) rotate(-4deg);} 50%{transform:translateY(-8px) rotate(4deg);} }
  .chain-block { padding: 6px 12px; border-radius: 8px; border: 1px solid var(--gold); color: var(--gold); font-family: var(--mono); font-size: 11.5px; font-weight: 800; animation: blockGlow 2s infinite alternate; }
  @keyframes blockGlow { from{box-shadow:0 0 4px rgba(240,185,11,.2);} to{box-shadow:0 0 18px rgba(240,185,11,.65);} }

  /* sections */
  section { padding: 64px 0; border-top: 1px solid rgba(28,42,71,.65); }
  .kicker { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: 1.5px; margin-bottom: 6px; }
  h2 { font-size: clamp(24px, 3.5vw, 33px); margin-bottom: 12px; letter-spacing: -.3px; }
  .sec-sub { color: var(--muted); font-size: 16px; max-width: 820px; margin-bottom: 34px; }

  /* glossary */
  .glossary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
  .g-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 22px; transition: transform .25s, border-color .25s, box-shadow .25s; }
  .g-card:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: 0 12px 36px rgba(0,255,170,.08); }
  .g-term { font-size: 12.5px; font-family: var(--mono); color: var(--gold); margin-bottom: 4px; }
  .g-title { font-size: 18px; font-weight: 800; margin-bottom: 8px; color: #fff; }
  .g-plain { font-size: 14px; color: #cbd5e1; }

  /* circuit */
  .circuit-stage { background: var(--surface); border: 1px solid var(--accent); border-radius: 20px; padding: 28px; box-shadow: 0 0 50px rgba(0,255,170,.07); }
  .scenario-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
  .sc-btn { background: var(--bg); border: 1px solid var(--border); color: var(--text); padding: 9px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 700; cursor: pointer; transition: all .2s; font-family: inherit; }
  .sc-btn:hover { border-color: var(--accent); }
  .sc-btn.active { background: var(--accent); color: #05080f; border-color: var(--accent); }
  .sensor-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
  .tgl { font-family: var(--mono); font-size: 12px; font-weight: 700; background: var(--bg); color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 6px 13px; cursor: pointer; transition: all .2s; }
  .tgl:hover { border-color: currentColor; }
  #tgl-lc4.on { color: var(--danger); border-color: var(--danger); background: rgba(255,71,87,.12); box-shadow: 0 0 14px rgba(255,71,87,.25); }
  #tgl-lplc2.on { color: var(--warn); border-color: var(--warn); background: rgba(255,165,2,.12); box-shadow: 0 0 14px rgba(255,165,2,.25); }
  #tgl-mushroom.on { color: var(--accent); border-color: var(--accent); background: rgba(0,255,170,.1); box-shadow: 0 0 14px rgba(0,255,170,.22); }
  #tgl-kill.on { color: var(--blue); border-color: var(--blue); background: rgba(56,189,248,.12); box-shadow: 0 0 14px rgba(56,189,248,.25); }
  .circuit-layout { display: grid; grid-template-columns: 1.35fr 1fr; gap: 24px; align-items: center; }
  .svg-box { background: #060a13; border: 1px solid var(--border); border-radius: 16px; padding: 12px; }
  svg.brain-svg { width: 100%; height: auto; display: block; }
  .wire { stroke: #1e2d4a; stroke-width: 3; fill: none; transition: stroke .3s; }
  .wire.flow-safe { stroke: var(--accent); stroke-dasharray: 8 6; animation: dashFlow .7s linear infinite; }
  .wire.flow-warn { stroke: var(--warn); stroke-dasharray: 8 6; animation: dashFlow .7s linear infinite; }
  .wire.flow-danger { stroke: var(--danger); stroke-width: 4; stroke-dasharray: 8 6; animation: dashFlow .45s linear infinite; }
  @keyframes dashFlow { to { stroke-dashoffset: -28; } }
  .node-pulse-danger { animation: pulseDanger .8s infinite alternate; }
  @keyframes pulseDanger { from{filter:drop-shadow(0 0 2px #ff4757);} to{filter:drop-shadow(0 0 14px #ff4757);} }
  .node-pulse-safe { animation: pulseSafe 1s infinite alternate; }
  @keyframes pulseSafe { from{filter:drop-shadow(0 0 2px #00ffaa);} to{filter:drop-shadow(0 0 14px #00ffaa);} }
  .node-pulse-warn { animation: pulseWarn 1s infinite alternate; }
  @keyframes pulseWarn { from{filter:drop-shadow(0 0 2px #ffa502);} to{filter:drop-shadow(0 0 14px #ffa502);} }
  .node-pulse-blue { animation: pulseBlue 1s infinite alternate; }
  @keyframes pulseBlue { from{filter:drop-shadow(0 0 2px #38bdf8);} to{filter:drop-shadow(0 0 14px #38bdf8);} }
  .explain-card { background: var(--bg); border: 1px solid var(--border); border-radius: 16px; padding: 24px; }
  .res-pill { display: inline-block; font-family: var(--mono); font-size: 21px; font-weight: 900; padding: 8px 20px; border-radius: 10px; margin: 8px 0 14px; }
  .res-allow { background: rgba(0,255,170,.14); color: var(--accent); border: 1px solid var(--accent); }
  .res-ask { background: rgba(255,165,2,.14); color: var(--warn); border: 1px solid var(--warn); }
  .res-deny { background: rgba(255,71,87,.16); color: var(--danger); border: 1px solid var(--danger); }
  .formula { font-family: var(--mono); font-size: 12px; color: var(--blue); background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; margin-top: 14px; overflow-x: auto; white-space: nowrap; }
  .why-note { font-size: 12.5px; color: var(--gold); background: rgba(240,185,11,.08); padding: 10px 12px; border-radius: 8px; margin-top: 14px; line-height: 1.65; }

  /* truth table matrix */
  .matrix-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px; margin-top: 18px; }
  .matrix-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
  .matrix-title { font-family: var(--mono); font-size: 12.5px; color: var(--gold); font-weight: 700; }
  .legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
  .legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; }
  .matrix-grid { display: grid; grid-template-columns: 64px repeat(4, 1fr); gap: 6px; max-width: 520px; }
  .axis { font-family: var(--mono); font-size: 10px; color: var(--muted); display: flex; align-items: center; justify-content: center; background: transparent; }
  .cell { background: #0a101d; border: 1px solid var(--border); border-radius: 9px; padding: 7px 4px; min-height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; cursor: pointer; transition: all .2s; font-family: inherit; }
  .cell:hover { border-color: var(--gold); }
  .cell.on { border-color: var(--gold); box-shadow: 0 0 16px rgba(240,185,11,.4); transform: scale(1.06); }
  .ci { font-family: var(--mono); font-size: 10px; color: var(--muted); }
  .ca { font-size: 12.5px; font-weight: 800; }
  .ca.allow { color: var(--accent); } .ca.ask { color: var(--warn); } .ca.deny { color: var(--danger); }
  .axis-note { font-family: var(--mono); font-size: 10.5px; color: var(--muted); margin-top: 10px; }

  /* engine playground */
  .breed-box { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 28px; }
  .form-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; margin-bottom: 14px; }
  .field label { display: block; font-family: var(--mono); font-size: 11px; color: var(--muted); margin-bottom: 6px; letter-spacing: .3px; }
  .field input, .field select { background: var(--bg); border: 1px solid var(--border); color: var(--text); border-radius: 10px; padding: 10px 14px; font-size: 14px; font-family: var(--mono); outline: none; transition: border-color .2s; }
  .field input { width: min(430px, 100%); }
  .field input:focus, .field select:focus { border-color: var(--accent); }
  .btn-mini { background: transparent; border: 1px solid var(--border); color: var(--muted); border-radius: 10px; padding: 10px 14px; cursor: pointer; font-size: 14px; transition: all .2s; font-family: inherit; }
  .btn-mini:hover { border-color: var(--gold); color: var(--gold); }
  .btn-hatch { background: linear-gradient(135deg, #00ffaa, #38bdf8); color: #05080f; font-weight: 900; border: none; border-radius: 12px; padding: 12px 26px; font-size: 15.5px; cursor: pointer; transition: all .22s; box-shadow: 0 6px 24px rgba(0,255,170,.3); font-family: inherit; }
  .btn-hatch:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(0,255,170,.45); }
  .form-note { font-family: var(--mono); font-size: 11.5px; color: var(--muted); line-height: 1.8; }
  .form-note b { color: var(--gold); font-weight: 700; }
  .mtag.goldtag { color: var(--gold); background: rgba(240,185,11,.1); border-color: rgba(240,185,11,.4); }
  .lineage-block { background: rgba(56,189,248,.04); border: 1px dashed rgba(56,189,248,.3); border-radius: 14px; padding: 16px 18px; margin: 4px 0 16px; }
  .lineage-title { font-family: var(--mono); font-size: 12px; font-weight: 800; color: var(--blue); margin-bottom: 10px; }
  .lineage-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
  .lchip { font-family: var(--mono); font-size: 11.5px; font-weight: 700; background: var(--bg); color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 6px 13px; cursor: pointer; transition: all .2s; }
  .lchip:hover { border-color: var(--gold); color: var(--gold); }
  .lchip.on { border-color: var(--gold); color: var(--gold); background: rgba(240,185,11,.1); box-shadow: 0 0 12px rgba(240,185,11,.25); }
  .ltier.S-TIER { color: var(--gold); } .ltier.A-TIER { color: var(--accent); } .ltier.B-TIER { color: var(--muted); }
  .lock-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
  .lock-title { font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-right: 4px; }
  .lockchip { font-family: var(--mono); font-size: 11.5px; font-weight: 700; background: var(--bg); color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px; cursor: pointer; transition: all .2s; }
  .lockchip:hover { border-color: var(--accent); }
  .lockchip.on { color: var(--accent); border-color: var(--accent); background: rgba(0,255,170,.08); box-shadow: 0 0 10px rgba(0,255,170,.18); }
  .fork-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 4px; }
  .fork-row input { width: min(320px, 100%); }
  .fork-row input[type=number] { width: 90px; }
  .fork-note { font-size: 12px; color: var(--muted); line-height: 1.7; margin-top: 8px; }
  .tip-line { font-size: 12.5px; color: #9fe8c9; line-height: 1.75; margin-top: 10px; }
  .hatch-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 6px; }
  .hatch-from { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
  .chain-block { background: rgba(56,189,248,.04); border: 1px dashed rgba(56,189,248,.35); border-radius: 14px; padding: 16px 18px; margin-top: 18px; }
  .chain-title { font-family: var(--mono); font-size: 12px; font-weight: 800; color: var(--blue); margin-bottom: 10px; }
  .chain-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
  .chain-row select { background: var(--bg); border: 1px solid var(--border); color: var(--text); border-radius: 10px; padding: 9px 12px; font-family: var(--mono); font-size: 13px; outline: none; }
  .chain-row select:focus { border-color: var(--blue); }
  .chain-status { font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin: 12px 0; line-height: 1.7; min-height: 20px; }
  #vaultAmount { background: var(--bg); border: 1px solid var(--border); color: var(--text); border-radius: 10px; padding: 9px 12px; font-family: var(--mono); font-size: 13px; width: 90px; outline: none; }
  #vaultAmount:focus { border-color: var(--blue); }
  .addr-err { color: var(--danger); font-size: 12.5px; margin-top: 4px; display: none; }
  .addr-err.show { display: block; }
  #incubating { text-align: center; padding: 40px 0 16px; display: none; }
  #incubating .egg { font-size: 40px; display: inline-block; animation: eggPulse .9s infinite alternate ease-in-out; }
  @keyframes eggPulse { from{transform:scale(1);} to{transform:scale(1.25) rotate(-6deg);} }
  #incubating p { font-family: var(--mono); color: var(--accent); margin-top: 8px; font-size: 13px; }
  .flies-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 22px; }
  .fly-card { background: var(--bg); border: 2px solid var(--border); border-radius: 18px; padding: 22px; cursor: pointer; transition: all .25s; position: relative; opacity: 0; transform: translateY(18px) scale(.97); }
  .fly-card.show { opacity: 1; transform: none; transition: opacity .6s, transform .6s, border-color .25s, box-shadow .25s; }
  .fly-card:hover { border-color: var(--gold); transform: translateY(-3px); }
  .fly-card.chosen { border-color: var(--accent); background: rgba(0,255,170,.05); box-shadow: 0 0 30px rgba(0,255,170,.15); }
  .fly-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; }
  .fly-name { font-size: 17px; font-weight: 800; }
  .fly-arch { font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-bottom: 10px; }
  .tierb { font-family: var(--mono); font-size: 11px; font-weight: 900; padding: 4px 11px; border-radius: 999px; white-space: nowrap; }
  .tierb.S-TIER { background: linear-gradient(135deg, #f0b90b, #f8d247); color: #1a1405; box-shadow: 0 0 14px rgba(240,185,11,.4); }
  .tierb.A-TIER { background: rgba(0,255,170,.14); color: var(--accent); border: 1px solid var(--accent); }
  .tierb.B-TIER { background: rgba(143,163,189,.14); color: var(--muted); border: 1px solid var(--muted); }
  .mtags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
  .mtag { font-family: var(--mono); font-size: 10.5px; color: var(--blue); background: rgba(56,189,248,.08); border: 1px solid rgba(56,189,248,.25); border-radius: 999px; padding: 2px 9px; }
  .score-line { font-size: 12.5px; display: flex; justify-content: space-between; margin-top: 8px; }
  .score-line b { font-family: var(--mono); }
  .score-bar-bg { height: 8px; background: #1e293b; border-radius: 99px; overflow: hidden; margin: 4px 0 10px; }
  .score-bar-fill { height: 100%; border-radius: 99px; width: 0; transition: width .9s cubic-bezier(.22,1,.36,1); }
  .m-list { margin-top: 14px; border-top: 1px dashed var(--border); padding-top: 12px; }
  .m-row { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; border-bottom: 1px solid rgba(28,42,71,.4); opacity: 0; transform: translateX(-8px); }
  .m-row.show { opacity: 1; transform: none; transition: all .4s; }
  .m-chip { font-family: var(--mono); font-size: 10.5px; font-weight: 800; color: var(--gold); background: rgba(240,185,11,.1); border-radius: 6px; padding: 3px 8px; white-space: nowrap; margin-top: 2px; }
  .m-body { flex: 1; }
  .m-act { font-family: var(--mono); font-size: 11px; font-weight: 800; }
  .m-act.pass { color: var(--accent); } .m-act.fail { color: var(--danger); } .m-act.part { color: var(--warn); }
  .m-diag { font-size: 12.5px; color: var(--muted); line-height: 1.6; }
  .m-delta { font-family: var(--mono); font-size: 11px; font-weight: 800; white-space: nowrap; margin-top: 3px; }
  .m-delta.safe { color: var(--accent); } .m-delta.util { color: var(--blue); }
  .choose-hint { text-align: center; font-size: 12.5px; color: var(--gold); margin-top: 12px; }
  .fly-card.chosen .choose-hint { color: var(--accent); font-weight: 800; }
  .engine-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
  .echip { font-family: var(--mono); font-size: 11.5px; color: #9fe8c9; background: rgba(0,255,170,.05); border: 1px solid rgba(0,255,170,.22); border-radius: 999px; padding: 4px 12px; }

  /* commit panel */
  .commit-panel { background: var(--surface-2); border: 1px solid var(--gold); border-radius: 20px; padding: 26px; margin-top: 24px; display: none; }
  .commit-panel.open { display: block; animation: commitIn .5s ease; }
  @keyframes commitIn { from{opacity:0; transform:translateY(14px);} to{opacity:1; transform:none;} }
  .commit-title { font-size: 17px; font-weight: 800; color: var(--gold); margin-bottom: 16px; }
  .commit-grid { display: grid; grid-template-columns: 1.25fr .9fr; gap: 22px; align-items: start; }
  @media (max-width: 860px) { .commit-grid { grid-template-columns: 1fr; } }
  .kv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
  .kv { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; min-width: 0; }
  .kv.wide { grid-column: span 2; }
  .kv-label { font-family: var(--mono); font-size: 10px; color: var(--muted); letter-spacing: .5px; }
  .kv-value { font-family: var(--mono); font-size: 12.5px; color: var(--text); word-break: break-all; margin-top: 3px; }
  .kv-value.gold { color: var(--gold); } .kv-value.green { color: var(--accent); }
  .badge-box { background: var(--bg); border: 1px solid var(--border); border-radius: 16px; padding: 18px; display: flex; justify-content: center; }
  .badge-box svg { width: 100%; max-width: 250px; height: auto; display: block; }
  .badge-ring { animation: dashmove 4s linear infinite; }
  @keyframes dashmove { to { stroke-dashoffset: -64; } }
  pre.json { background: #060a13; border: 1px solid var(--border); border-radius: 12px; padding: 16px; font-family: var(--mono); font-size: 12px; line-height: 1.7; max-height: 300px; overflow: auto; margin-bottom: 16px; }
  .jk { color: var(--gold); } .js { color: #7ee787; } .jn { color: #79c0ff; }
  .btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
  .btn-soft { background: transparent; border: 1px solid var(--accent); color: var(--accent); border-radius: 999px; padding: 10px 20px; font-size: 14px; font-weight: 700; cursor: pointer; transition: all .2s; font-family: inherit; }
  .btn-soft:hover { background: rgba(0,255,170,.12); transform: translateY(-2px); }
  .btn-soft.gold { border-color: var(--gold); color: var(--gold); }
  .btn-soft.gold:hover { background: rgba(240,185,11,.1); }
  .mint-note { font-size: 12.5px; color: var(--muted); background: rgba(240,185,11,.06); border: 1px dashed rgba(240,185,11,.35); border-radius: 10px; padding: 12px 14px; margin-top: 16px; line-height: 1.7; }
  .mint-note b { color: var(--gold); }

  /* judge cards */
  .judge-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
  .j-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px; position: relative; overflow: hidden; transition: transform .25s, border-color .25s; }
  .j-card:hover { transform: translateY(-5px); border-color: var(--gold); }
  .j-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--gold), transparent); }
  .j-w { font-family: var(--mono); font-size: 11px; font-weight: 900; color: #05080f; background: linear-gradient(135deg, #f0b90b, #f8d247); border-radius: 999px; padding: 4px 12px; display: inline-block; margin-bottom: 12px; }
  .j-card h3 { font-size: 17.5px; margin-bottom: 8px; }
  .j-card p { font-size: 13.5px; color: var(--muted); }
  .tiebreak { margin-top: 20px; font-size: 14px; color: var(--gold); background: rgba(240,185,11,.08); border: 1px solid rgba(240,185,11,.3); border-radius: 14px; padding: 16px 20px; line-height: 1.8; }

  /* eco */
  .eco-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
  .eco-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px; transition: transform .25s, border-color .25s; }
  .eco-card:hover { transform: translateY(-4px); border-color: var(--accent); }
  .eco-num { font-family: var(--mono); color: var(--gold); font-weight: 800; font-size: 12px; margin-bottom: 6px; }
  .eco-card h3 { font-size: 16.5px; margin-bottom: 8px; }
  .eco-card p { font-size: 13.5px; color: var(--muted); }
  .eco-card code { font-size: 12px; color: var(--blue); }

  /* safety */
  .safe-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
  .s-item { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
  .s-ico { flex: none; width: 24px; height: 24px; border-radius: 50%; background: rgba(0,255,170,.14); border: 1px solid var(--accent); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 900; margin-top: 2px; }
  .s-item p { font-size: 13.5px; color: #cbd5e1; line-height: 1.65; }
  .s-item p b { color: var(--text); }
  .disclose { margin-top: 18px; background: var(--surface); border: 1px dashed var(--gold); border-radius: 14px; padding: 18px 22px; font-size: 13.5px; color: var(--muted); line-height: 1.8; }
  .disclose b { color: var(--gold); }

  /* roadmap */
  .road-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; }
  .r-card { background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--gold); border-radius: 14px; padding: 22px; transition: transform .25s, box-shadow .25s; }
  .r-card:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(240,185,11,.1); }
  .r-date { font-family: var(--mono); font-size: 11.5px; color: var(--gold); font-weight: 800; margin-bottom: 6px; }
  .r-card h3 { font-size: 16.5px; margin-bottom: 10px; }
  .r-card li { font-size: 13.5px; color: var(--muted); margin-left: 18px; margin-bottom: 6px; line-height: 1.65; }
  .kpi-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
  .kpi { font-family: var(--mono); font-size: 12.5px; color: var(--gold); background: rgba(240,185,11,.08); border: 1px solid rgba(240,185,11,.35); border-radius: 999px; padding: 7px 16px; }
  .kpi b { color: #fff; }

  /* faq */
  details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; margin-bottom: 12px; cursor: pointer; }
  summary { font-weight: 700; font-size: 15.5px; color: #fff; list-style: none; display: flex; justify-content: space-between; }
  summary::after { content: "＋"; color: var(--accent); font-weight: 900; }
  details[open] summary::after { content: "－"; }
  details p { margin-top: 12px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--border); padding-top: 12px; line-height: 1.75; }
  details p b { color: var(--gold); }

  /* footer */
  footer { padding: 52px 0 40px; text-align: center; border-top: 1px solid var(--border); }
  .foot-big { font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 10px; }
  .risk { font-size: 12.5px; color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; max-width: 760px; margin: 0 auto 18px; line-height: 1.8; }
  .tags { font-family: var(--mono); font-size: 13px; color: var(--gold); margin-bottom: 8px; }
  .foot-copy { font-size: 13px; color: var(--muted); }

  /* toast */
  #toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--surface-2); border: 1px solid var(--accent); color: var(--accent); font-family: var(--mono); font-size: 13px; padding: 10px 22px; border-radius: 999px; opacity: 0; pointer-events: none; transition: all .3s; z-index: 400; }
  #toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

  @media (max-width: 820px) {
    .circuit-layout { grid-template-columns: 1fr; }
    .kv-grid { grid-template-columns: 1fr; }
    .kv.wide { grid-column: span 1; }
    .nav-links { display: none; }
    .stats-grid { grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); }
  }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; }
    #bgCanvas { display: none; }
  }

  /* multi-page site nav cards */
  .snav-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
  .snav-card { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 22px; text-decoration: none; color: inherit; position: relative; transition: transform .25s, border-color .25s, box-shadow .25s; }
  .snav-card:hover { transform: translateY(-5px); border-color: var(--gold); box-shadow: 0 12px 36px rgba(240,185,11,.12); }
  .snav-card h3 { font-size: 17px; margin: 6px 0 8px; }
  .snav-card p { font-size: 13px; color: var(--muted); line-height: 1.65; }
  .snav-arrow { position: absolute; top: 18px; right: 18px; font-family: var(--mono); color: var(--gold); font-weight: 900; transition: transform .2s; }
  .snav-card:hover .snav-arrow { transform: translateX(4px); }
