:root {
  --bg: #0b0a10;
  --panel: #15131d;
  --panel-2: #1d1a28;
  --line: #2b2738;
  --text: #f3efe6;
  --muted: #9a93a8;
  --gold: #f0b90b;
  --gold-2: #ffd84a;
  --danger: #ff5d5d;
  --ok: #3ee07a;
  --radius: 14px;
  --pixel: 'Press Start 2P', monospace;
  --sans: 'Inter', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); }
body {
  background:
    radial-gradient(1200px 500px at 70% -10%, rgba(240,185,11,.16), transparent 60%),
    radial-gradient(800px 400px at 0% 10%, rgba(182,92,255,.10), transparent 60%),
    var(--bg);
  min-height: 100vh;
}
button { font: inherit; cursor: pointer; border: 0; border-radius: 10px; color: inherit; }
button:disabled { opacity: .5; cursor: not-allowed; }
.primary { background: var(--gold); color: #1a1405; font-weight: 700; padding: 10px 16px; box-shadow: 0 0 0 1px #0004 inset, 0 6px 20px rgba(240,185,11,.25); }
.primary:hover { background: var(--gold-2); }
.ghost { background: transparent; border: 1px solid var(--line); padding: 8px 12px; }
.ghost:hover { border-color: var(--gold); }
.small { padding: 6px 10px; font-size: 13px; }
.icon { padding: 6px 10px; position: relative; }
.muted { color: var(--muted); font-size: 14px; }
input {
  font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 12px; width: 100%; min-width: 0;
}
input:focus { outline: none; border-color: var(--gold); }

.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; display: flex; justify-content: space-between; align-items: center;
  gap: 12px; padding: 12px 20px; background: rgba(11,10,16,.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; object-position: 50% 25%; border: 2px solid var(--gold); image-rendering: pixelated; }
.brand-name { font-family: var(--pixel); font-size: 14px; color: var(--gold); letter-spacing: 1px; }
.brand-sub { font-size: 12px; color: var(--muted); margin-top: 4px; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.wallet-chip { display: flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--line); padding: 4px 4px 4px 12px; border-radius: 12px; font-size: 14px; font-variant-numeric: tabular-nums; }
.dot { position: absolute; top: 4px; right: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); }

main { max-width: 1180px; margin: 0 auto; padding: 0 20px 40px; }
.hero { padding: 48px 0 24px; }
.hero h1 { font-family: var(--pixel); font-size: clamp(20px, 4vw, 34px); line-height: 1.4; margin: 0 0 14px; color: var(--gold-2); text-shadow: 0 4px 0 #6b4d00; }
.lead { max-width: 640px; color: #cfc8db; font-size: 17px; line-height: 1.6; margin: 0; }
.status-card { margin-top: 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.stat-label { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.stat-val { font-size: 24px; font-weight: 700; margin-top: 6px; font-variant-numeric: tabular-nums; }
.stat-val.small { font-size: 15px; font-weight: 600; line-height: 1.4; }
.stat-hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.bar { height: 6px; background: var(--panel-2); border-radius: 6px; margin-top: 10px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--gold); width: 0; transition: width .3s; }
.notice { margin-top: 14px; padding: 10px 14px; border-radius: 10px; background: #3a1d1d; border: 1px solid #6b2b2b; color: #ffbdbd; font-size: 14px; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 28px 0 14px; flex-wrap: wrap; }
.section-head h2 { font-family: var(--pixel); font-size: 16px; margin: 0; color: var(--gold); }
.grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.card {
  position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-align: left; padding: 0; transition: transform .15s, border-color .15s;
}
.card:hover { transform: translateY(-3px); border-color: var(--accent, var(--gold)); }
.card img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: 50% 30%; display: block; image-rendering: pixelated; }
.card .tierbadge { position: absolute; top: 8px; left: 8px; font-family: var(--pixel); font-size: 9px; background: rgba(0,0,0,.75); color: var(--accent, var(--gold)); padding: 6px 7px; border-radius: 6px; border: 1px solid var(--accent, var(--gold)); }
.card .body { padding: 10px 12px 12px; }
.card .name { font-weight: 700; font-size: 15px; }
.card .role { color: var(--muted); font-size: 12px; margin-top: 2px; }
.card .req { margin-top: 8px; font-size: 12px; font-weight: 600; color: var(--accent, var(--gold)); font-variant-numeric: tabular-nums; }
.card.locked img { filter: grayscale(.85) brightness(.45); }
.card .lock { position: absolute; inset: 0 0 auto 0; aspect-ratio: 4/5; display: grid; place-items: center; font-size: 30px; }
.card .lvl { position: absolute; top: 8px; right: 8px; font-size: 11px; background: rgba(0,0,0,.75); padding: 4px 7px; border-radius: 6px; }

.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 20; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); z-index: 21; background: var(--panel);
  border-left: 1px solid var(--line); display: flex; flex-direction: column; padding: 16px; gap: 12px;
}
.drawer.narrow { width: min(420px, 100vw); }
.drawer-head { display: flex; gap: 14px; align-items: center; }
.drawer-head h3 { margin: 4px 0 2px; font-size: 20px; }
.drawer-head img { width: 76px; height: 76px; object-fit: cover; object-position: 50% 30%; border-radius: 12px; border: 2px solid var(--accent, var(--gold)); image-rendering: pixelated; }
.d-meta { flex: 1; min-width: 0; }
.d-tier { font-family: var(--pixel); font-size: 9px; color: var(--accent, var(--gold)); }
.d-level { font-size: 12px; color: var(--muted); margin-top: 4px; }
.close { align-self: flex-start; }
.d-tagline { margin: 0; color: #d6cfe2; font-size: 14px; line-height: 1.5; }
.quick { display: flex; flex-direction: column; gap: 8px; }
.quick-row { display: flex; gap: 8px; }
.quick-row button { white-space: nowrap; background: var(--panel-2); border: 1px solid var(--line); padding: 9px 12px; font-size: 14px; }
.quick-row button:hover { border-color: var(--accent, var(--gold)); }
.soon { font-size: 12px; color: var(--muted); }
.soon span { display: inline-block; border: 1px dashed var(--line); border-radius: 999px; padding: 3px 9px; margin: 2px 4px 2px 0; }
.chat { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 4px 2px; border-top: 1px solid var(--line); padding-top: 12px; }
.msg { max-width: 92%; padding: 10px 12px; border-radius: 12px; font-size: 14px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.msg.user { align-self: flex-end; background: #2a2333; border: 1px solid #3a3147; }
.msg.bot { align-self: flex-start; background: var(--panel-2); border: 1px solid var(--line); }
.msg.err { border-color: #6b2b2b; background: #2a1414; color: #ffbdbd; }
.msg a { color: var(--gold-2); }
.msg .tools { margin-top: 8px; font-size: 11px; color: var(--muted); }
.msg.typing { color: var(--muted); font-style: italic; }
.composer { display: flex; gap: 8px; }
.notif-list { overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.notif { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 13px; white-space: pre-wrap; word-break: break-word; }
.notif time { display: block; color: var(--muted); font-size: 11px; margin-bottom: 4px; }
.foot { margin-top: 40px; color: var(--muted); font-size: 13px; text-align: center; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 40; background: #2a1414; border: 1px solid #6b2b2b; color: #ffd2d2; padding: 10px 16px; border-radius: 10px; max-width: calc(100vw - 32px); font-size: 14px; }
.toast.ok { background: #102a1a; border-color: #1f6b3a; color: #c9ffdc; }

@media (max-width: 980px) { .grid { grid-template-columns: repeat(3, 1fr); } .status-card { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .topbar { padding: 10px 16px; }
  main { padding: 0 16px 32px; }
  .brand-sub { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .wallet-chip #walletAddr { display: none; }
  .drawer { padding: 12px; }
}

button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
a { color: var(--gold-2); }

/* ---------- hero + Official CA ---------- */
.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: end; }
.hero-text { min-width: 0; }
.hero .status-card, .hero .notice { grid-column: 1 / -1; }
.ca-card { background: var(--panel); border: 1px solid var(--gold); border-radius: var(--radius); padding: 16px; min-width: 0; box-shadow: 0 0 0 4px rgba(240,185,11,.06); }
.ca-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ca-label { font-family: var(--pixel); font-size: 10px; color: var(--gold); letter-spacing: 1px; }
.ca-state { font-size: 12px; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.ca-state.live { color: var(--ok); border-color: #1f6b3a; }
.ca-state.wait::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); animation: pulse 1.4s infinite; }
.ca-row { display: flex; gap: 8px; align-items: center; margin-top: 10px; min-width: 0; }
.ca-row code, .ca-addr { font-family: var(--mono); font-size: 13px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; }
.ca-links { display: flex; gap: 14px; margin-top: 10px; font-size: 13px; flex-wrap: wrap; }
.ca-note { margin: 10px 0 0; font-size: 12px; color: var(--muted); line-height: 1.5; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .25 } }

/* ---------- wallet picker ---------- */
.modal { position: fixed; inset: 0; z-index: 30; background: rgba(0,0,0,.65); display: grid; place-items: center; padding: 16px; }
.modal-box { width: min(420px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; }
.modal-head h3 { margin: 0; font-size: 18px; }
.wallet-list { display: flex; flex-direction: column; gap: 8px; }
.wallet-opt { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; text-align: left; width: 100%; }
.wallet-opt:hover { border-color: var(--gold); }
.wallet-opt .wl-ico { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; font-size: 14px; flex: none; overflow: hidden; }
.wallet-opt .wl-ico img { width: 100%; height: 100%; }
.wallet-opt .wl-name { flex: 1; font-weight: 600; }
.wallet-opt .wl-tag { font-size: 12px; color: var(--muted); }
.wallet-opt .wl-tag.on { color: var(--ok); }
.small-note { font-size: 12px; margin: 0; }
.wallet-ico { width: 18px; height: 18px; border-radius: 5px; display: inline-grid; place-items: center; font-size: 10px; font-weight: 800; overflow: hidden; }
.wallet-ico img { width: 100%; height: 100%; }

/* ---------- HQ office ---------- */
.live { display: inline-flex; align-items: center; gap: 8px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 8px var(--danger); animation: pulse 1.2s infinite; }
.office { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #120f19; position: relative; }
.wall { position: relative; height: 120px; background:
  linear-gradient(#1b1626, #1b1626) top/100% 100% no-repeat,
  repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 2px, transparent 2px 48px); display: flex; align-items: center; gap: 20px; padding: 0 20px; }
.window { position: relative; flex: 1; height: 84px; border: 4px solid #2c2540; border-radius: 6px; overflow: hidden;
  background: linear-gradient(#0d1430, #2a1747 70%, #4a2052); }
.window .bldg { position: absolute; bottom: 0; background: #0a0814; }
.window .lit { position: absolute; width: 3px; height: 3px; background: #ffd84a; opacity: .85; animation: flicker 6s infinite; }
.window .moon { position: absolute; top: 10px; right: 30px; width: 18px; height: 18px; border-radius: 50%; background: #f6e7b0; box-shadow: 0 0 18px #f6e7b0; }
@keyframes flicker { 0%, 92%, 100% { opacity: .85 } 95% { opacity: .15 } }
.neon { font-family: var(--pixel); font-size: 13px; color: var(--gold-2); text-shadow: 0 0 6px var(--gold), 0 0 18px rgba(240,185,11,.6); white-space: nowrap; animation: neon 5s infinite; }
@keyframes neon { 0%, 18%, 22%, 100% { opacity: 1 } 20% { opacity: .4 } }
.clock { font-family: var(--pixel); font-size: 14px; color: #ff6a6a; background: #070509; border: 2px solid #2c2540; padding: 8px 10px; border-radius: 6px; text-shadow: 0 0 6px #ff3b3b; font-variant-numeric: tabular-nums; }
.ticker { background: #070509; border-block: 1px solid #2c2540; overflow: hidden; white-space: nowrap; }
.ticker-track { display: inline-block; padding: 7px 0; font-family: var(--mono); font-size: 13px; animation: tick 40s linear infinite; }
.ticker-track span { margin-right: 36px; }
.ticker-track .up { color: var(--ok); } .ticker-track .down { color: var(--danger); }
@keyframes tick { from { transform: translateX(0) } to { transform: translateX(-50%) } }
.floor { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; padding: 22px 18px 18px;
  background:
    repeating-conic-gradient(#1a1524 0 25%, #16121f 0 50%) 0 0 / 28px 28px; }

.desk { position: relative; height: 172px; cursor: pointer; border-radius: 12px; outline: none; }
.desk:hover .plate, .desk:focus-visible .plate { border-color: var(--accent); color: var(--text); }
.desk:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
.worker { position: absolute; left: 5%; bottom: 52px; width: 72px; height: 72px; border-radius: 14px; border: 2px solid var(--accent);
  background-size: 190% auto; background-position: 50% 30%; image-rendering: pixelated; animation: bob 1.6s ease-in-out infinite; z-index: 1; }
.desk:nth-child(2n) .worker { animation-duration: 1.9s; } .desk:nth-child(3n) .worker { animation-delay: -.6s; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-1deg) } 50% { transform: translateY(-4px) rotate(1deg) } }
.chair { position: absolute; left: calc(5% - 4px); bottom: 40px; width: 80px; height: 50px; border-radius: 12px 12px 4px 4px; background: #2b2438; }
.monitor { position: absolute; right: 5%; bottom: 58px; width: 50%; height: 70px; background: #0c0a12; border: 3px solid #3a3150; border-radius: 6px; overflow: hidden; z-index: 2; }
.monitor::after { content: ''; position: absolute; left: 50%; bottom: -14px; width: 10px; height: 12px; background: #3a3150; transform: translateX(-50%); }
.screen { position: absolute; inset: 0; box-shadow: inset 0 0 14px rgba(0,0,0,.6); }
.table { position: absolute; left: 0; right: 0; bottom: 30px; height: 30px; border-radius: 6px; z-index: 3;
  background: linear-gradient(#7a5530, #5a3d22); box-shadow: 0 6px 0 #3b2815; }
.keyboard { position: absolute; right: 16%; top: 5px; width: 34%; height: 9px; border-radius: 2px; background: #22202b;
  background-image: repeating-linear-gradient(90deg, #3d3a4a 0 4px, transparent 4px 6px); animation: keys .35s steps(2) infinite; }
@keyframes keys { 50% { filter: brightness(1.6) } }
.mug { position: absolute; left: 34%; top: -8px; width: 11px; height: 12px; background: #e9e1d2; border-radius: 0 0 3px 3px; }
.mug::before, .mug::after { content: ''; position: absolute; bottom: 13px; width: 3px; height: 8px; border-radius: 3px; background: rgba(255,255,255,.35); animation: steam 2.4s ease-out infinite; }
.mug::before { left: 2px; } .mug::after { left: 6px; animation-delay: 1.2s; }
@keyframes steam { 0% { transform: translateY(4px); opacity: 0 } 30% { opacity: .7 } 100% { transform: translateY(-10px); opacity: 0 } }
.plate { position: absolute; left: 0; right: 0; bottom: 0; height: 24px; display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 11px; font-weight: 600; color: var(--muted); background: #0e0b14; border: 1px solid var(--line); border-radius: 6px; white-space: nowrap; overflow: hidden; }
.plate b { color: var(--accent); font-family: var(--pixel); font-size: 8px; }
.bubble { position: absolute; left: 4%; right: 4%; top: 0; z-index: 4; background: #f3efe6; color: #15131d; font-size: 11px; line-height: 1.35; font-weight: 600;
  padding: 6px 8px; border-radius: 8px; opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; pointer-events: none; }
.bubble::after { content: ''; position: absolute; left: 30px; bottom: -6px; border: 6px solid transparent; border-bottom: 0; border-top-color: #f3efe6; }
.bubble.show { opacity: 1; transform: translateY(0); }

/* screens */
.s-code { color: #3ee07a; font: 8px/1.25 var(--mono); padding: 3px; white-space: pre; }
.s-code .roll, .s-news .roll { animation: roll 7s linear infinite; }
@keyframes roll { from { transform: translateY(0) } to { transform: translateY(-50%) } }
.s-news { color: #e9e1d2; font: 7.5px/1.5 var(--mono); padding: 4px 5px; }
.s-news .hl { color: var(--gold-2); }
.s-radar { background: radial-gradient(circle, transparent 0 30%, rgba(90,180,255,.15) 31% 32%, transparent 33% 62%, rgba(90,180,255,.15) 63% 64%, transparent 65%), #06121c; }
.s-radar .sweep { position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(90,180,255,.55), transparent 22%); animation: spin 2.6s linear infinite; }
.s-radar .blip { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #9fe0ff; box-shadow: 0 0 6px #9fe0ff; animation: pulse 1.3s infinite; }
@keyframes spin { to { transform: rotate(360deg) } }
.s-scan { background: repeating-linear-gradient(0deg, rgba(226,74,74,.08) 0 2px, transparent 2px 6px), #170809; }
.s-scan .line { position: absolute; left: 0; right: 0; height: 2px; background: #ff5d5d; box-shadow: 0 0 8px #ff5d5d; animation: scan 1.8s ease-in-out infinite alternate; }
.s-scan .shield { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); font-size: 22px; filter: drop-shadow(0 0 6px #ff5d5d); }
@keyframes scan { from { top: 4% } to { top: 92% } }
.s-bars, .s-eq { display: flex; align-items: flex-end; gap: 3px; padding: 6px; }
.s-bars i, .s-eq i { flex: 1; background: var(--accent); border-radius: 2px 2px 0 0; animation: grow 1.4s ease-in-out infinite alternate; }
.s-eq i { animation-duration: .5s; }
@keyframes grow { from { height: 15% } to { height: 92% } }
.s-pie { display: flex; align-items: center; justify-content: center; gap: 8px; background: #120e05; }
.s-pie .donut { width: 44px; height: 44px; border-radius: 50%; background: conic-gradient(#f0b90b 0 61%, #3ee07a 0 85%, #5ab4ff 0); -webkit-mask: radial-gradient(circle, transparent 42%, #000 43%); mask: radial-gradient(circle, transparent 42%, #000 43%); animation: spin 8s linear infinite; }
.s-pie .num { font: 9px/1.4 var(--mono); color: #f3efe6; }
.s-list { font: 8px/1.6 var(--mono); color: #e9e1d2; padding: 4px 6px; }
.s-list div { opacity: .35; animation: check 4s steps(1) infinite; }
.s-list div:nth-child(2) { animation-delay: 1s; } .s-list div:nth-child(3) { animation-delay: 2s; } .s-list div:nth-child(4) { animation-delay: 3s; }
@keyframes check { 0%, 70% { opacity: .35 } 25%, 69% { opacity: 1 } }
.s-chart svg { width: 100%; height: 100%; }
.s-chart path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 220; stroke-dashoffset: 220; animation: draw 3.2s ease-in-out infinite; }
@keyframes draw { 60%, 100% { stroke-dashoffset: 0 } }
.s-map { background: repeating-linear-gradient(0deg, rgba(255,106,43,.12) 0 1px, transparent 1px 10px), repeating-linear-gradient(90deg, rgba(255,106,43,.12) 0 1px, transparent 1px 10px), #140804; }
.s-map .blip { position: absolute; width: 5px; height: 5px; background: #ff6a2b; box-shadow: 0 0 8px #ff6a2b; animation: pulse 1s infinite; }

/* ---------- guide ---------- */
.guide-link { display: inline-block; margin-top: 16px; font-weight: 600; text-decoration: none; }
.guide-link:hover { text-decoration: underline; }
.navlink { text-decoration: none; color: var(--text); font-size: 13px; }
.guide { scroll-margin-top: 80px; }
.steps { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; counter-reset: step; }
.steps li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; counter-increment: step; min-width: 0; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--gold); color: #1a1405; font-family: var(--pixel); font-size: 10px; margin-bottom: 10px; }
.steps b { display: block; margin-bottom: 4px; }
.steps p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.55; }
.mech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mech { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; min-width: 0; }
.mech .ico { font-size: 20px; }
.mech b { display: block; margin: 6px 0 4px; }
.mech p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.55; }
.guide-h3 { margin: 26px 0 10px; font-size: 16px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.tiers { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.tiers th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--panel); padding: 10px 12px; }
.tiers td { padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: top; }
.tiers td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.tiers tr.mine td { background: rgba(240,185,11,.08); }
.tiers .tb { font-family: var(--pixel); font-size: 9px; color: var(--accent); }
.tiers .an { display: flex; align-items: center; gap: 8px; font-weight: 600; white-space: nowrap; }
.tiers .an img { width: 28px; height: 28px; border-radius: 7px; object-fit: cover; object-position: 50% 30%; border: 1px solid var(--accent); }
.faq { display: flex; flex-direction: column; gap: 8px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

@media (max-width: 980px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .mech-grid { grid-template-columns: 1fr 1fr; }
  .hero { grid-template-columns: 1fr; }
  .floor { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .floor { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 16px 10px; }
  .wall { height: 96px; gap: 10px; padding: 0 10px; }
  .neon { display: none; }
  .wallet-chip #walletAddr { display: none; }
  .steps, .mech-grid { grid-template-columns: 1fr; }
  .navlink { display: none; }
  .brand-name { font-size: 11px; }
  .top-actions { gap: 6px; }
  .top-actions button { white-space: nowrap; }
  #connectBtn { padding: 8px 12px; font-size: 14px; }
  .worker { width: 60px; height: 60px; left: 3%; }
  .chair { width: 66px; left: 2%; }
  .monitor { width: 52%; right: 3%; }
}
@media (max-width: 380px) { .brand-name { display: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
