/* =========================================================
   HOOD LEGENDS — VISUAL SYSTEM
   ========================================================= */
:root {
  --bg: #07090d;
  --bg-2: #0b0f14;
  --panel: #10151c;
  --panel-2: #141b23;
  --line: #1e2731;
  --line-2: #2a3542;
  --text: #f2f5f3;
  --muted: #9aa6b2;
  --dim: #66727f;
  --green: #22e06b;
  --green-d: #13a64c;
  --lime: #c4ff5c;
  --cyan: #36e6ff;
  --violet: #a982ff;
  --amber: #f0bf45;
  --red: #ff4652;
  --radius: 14px;
  --px: 4px;
  --f-pixel: 'Silkscreen', ui-monospace, monospace;
  --f-body: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --nav-h: 68px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  background-image: radial-gradient(1200px 600px at 80% -10%, rgba(34, 224, 107, .08), transparent 60%),
    radial-gradient(900px 500px at -10% 40%, rgba(169, 130, 255, .06), transparent 60%);
}
img, canvas, svg { display: block; max-width: 100%; }
canvas { image-rendering: pixelated; image-rendering: crisp-edges; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.05; }
p { margin: 0; }
button { font: inherit; color: inherit; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--green); color: #04130a; padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
.display { font-family: var(--f-pixel); font-weight: 700; letter-spacing: .01em; text-transform: uppercase; }
.hl { color: var(--green); text-shadow: 0 0 24px rgba(34, 224, 107, .35); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 12px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--lime); }
.eyebrow::before { content: ''; width: 8px; height: 8px; background: var(--green); box-shadow: 0 0 10px var(--green); }

/* ---------- buttons ---------- */
.btn {
  --bc: var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 10px 18px;
  border: 1px solid var(--bc); border-radius: 10px; background: var(--panel-2); color: var(--text);
  font: 600 15px/1 var(--f-body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn:hover { border-color: #3b4858; background: #18202a; }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled='true'] { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--green); border-color: var(--green); color: #03140a; box-shadow: 0 0 0 0 rgba(34, 224, 107, .4), inset 0 -3px 0 rgba(0, 0, 0, .18); }
.btn-primary:hover { background: #3bf07f; border-color: #3bf07f; box-shadow: 0 6px 24px -6px rgba(34, 224, 107, .6), inset 0 -3px 0 rgba(0, 0, 0, .18); }
.btn-ghost { background: transparent; }
.btn-lg { min-height: 52px; padding: 14px 22px; font-size: 16px; }
.btn-sm { min-height: 38px; padding: 8px 14px; font-size: 14px; }
.btn-block { width: 100%; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font: 600 11px/1.4 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap; }
.pill-green { color: var(--green); border-color: rgba(34, 224, 107, .4); background: rgba(34, 224, 107, .08); }
.pill-muted { color: var(--muted); }
.pill-amber { color: var(--amber); border-color: rgba(240, 191, 69, .4); background: rgba(240, 191, 69, .08); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; height: var(--nav-h); background: rgba(7, 9, 13, .78); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav-row { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark svg { filter: drop-shadow(0 0 10px rgba(34, 224, 107, .35)); }
.brand-name { font: 700 17px/1 var(--f-pixel); letter-spacing: .02em; }
.brand-name b { color: var(--green); margin-left: 4px; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links > a { padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; }
.nav-links > a:hover { color: var(--text); background: var(--panel); }
.nav-social { display: flex; gap: 6px; margin-left: 8px; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line-2); color: var(--muted); text-decoration: none; position: relative; }
.icon-btn:hover { color: var(--text); border-color: #3b4858; }
.icon-btn svg { width: 17px; height: 17px; fill: currentColor; }
.icon-btn.is-soon::after { content: ''; position: absolute; top: 5px; right: 5px; width: 6px; height: 6px; background: var(--amber); border-radius: 1px; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.btn-connect .dot { width: 8px; height: 8px; background: var(--dim); box-shadow: none; }
.btn-connect.is-on { border-color: rgba(34, 224, 107, .5); }
.btn-connect.is-on .dot { background: var(--green); box-shadow: 0 0 8px var(--green); }
.btn-connect span[data-connect-label] { font-family: var(--f-mono); font-size: 14px; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; padding: 12px 11px; flex-direction: column; justify-content: space-between; }
.menu-btn span { display: block; height: 2px; background: var(--text); transition: transform .2s, opacity .2s; }
.menu-btn[aria-expanded='true'] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-btn[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded='true'] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; min-height: min(860px, calc(100svh - var(--nav-h))); display: flex; align-items: center; padding: 56px 0 72px; isolation: isolate; }
.hero-sky { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; object-fit: cover; }
.hero-scan { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7, 9, 13, .96) 0%, rgba(7, 9, 13, .78) 38%, rgba(7, 9, 13, .1) 70%), linear-gradient(0deg, var(--bg) 0%, transparent 30%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 40px; }
.badge-net { display: inline-flex; align-items: center; gap: 10px; padding: 7px 12px; border: 1px solid rgba(34, 224, 107, .35); border-radius: 8px; background: rgba(34, 224, 107, .07); font: 600 12px/1 var(--f-mono); letter-spacing: .12em; color: var(--text); }
.badge-net i { width: 8px; height: 8px; background: var(--green); box-shadow: 0 0 10px var(--green); animation: blink 2.4s steps(2) infinite; }
.hero h1 { margin: 22px 0 20px; font-size: clamp(44px, 7.2vw, 96px); line-height: .95; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: #c9d1d9; max-width: 34ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-stats { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, auto); gap: 0; width: max-content; max-width: 100%; border: 1px solid var(--line); border-radius: 12px; background: rgba(11, 15, 20, .7); }
.hero-stats li { padding: 12px 18px; border-left: 1px solid var(--line); }
.hero-stats li:first-child { border-left: 0; }
.hero-stats b { display: block; font: 700 18px/1.1 var(--f-pixel); }
.hero-stats span { font: 500 11px/1.4 var(--f-mono); color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.hero-cast { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); align-items: end; gap: clamp(4px, 1.2vw, 18px); padding: 0 0 26px; }
.hero-cast::after { content: ''; position: absolute; left: -4%; right: -4%; bottom: 0; height: 30px; background:
  repeating-linear-gradient(90deg, #1b222c 0 24px, #161c24 24px 48px); border-top: 4px solid #2a3542; box-shadow: 0 -2px 0 #07090d, 0 0 60px rgba(34, 224, 107, .15); z-index: -1; }
.cast-member { position: relative; display: flex; flex-direction: column; align-items: center; text-decoration: none; transform-origin: bottom center; }
.cast-member canvas { width: 100%; height: auto; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .55)); transition: transform .25s ease; }
.cast-member:nth-child(odd) canvas { animation: idle 3.2s ease-in-out infinite; }
.cast-member:nth-child(even) canvas { animation: idle 3.2s ease-in-out -1.6s infinite; }
.cast-member:hover canvas, .cast-member:focus-visible canvas { transform: translateY(-6px); }
.cast-tag { margin-top: 8px; padding: 5px 8px; border-radius: 6px; border: 1px solid var(--line-2); background: rgba(7, 9, 13, .85); font: 700 12px/1 var(--f-pixel); letter-spacing: .04em; white-space: nowrap; }
.cast-tag small { display: block; margin-top: 4px; font: 500 9px/1 var(--f-mono); color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.cast-tag::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 6px; background: var(--c); vertical-align: 1px; }
@keyframes idle { 50% { transform: translateY(-4px); } }
@keyframes blink { 50% { opacity: .35; } }

/* ---------- sections ---------- */
.section { padding: clamp(72px, 9vw, 120px) 0; position: relative; }
.sec-head { max-width: 760px; margin-bottom: 40px; }
.sec-head h2 { font-size: clamp(32px, 5vw, 60px); margin: 16px 0 16px; }
.sec-head p { color: #c3ccd5; font-size: clamp(16px, 1.4vw, 18px); max-width: 60ch; }

/* ---------- world / game ---------- */
.world { background: linear-gradient(180deg, transparent, rgba(34, 224, 107, .03) 50%, transparent); }
.game { border: 1px solid var(--line-2); border-radius: 18px; background: var(--bg-2); padding: 10px; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(34, 224, 107, .05); }
.game-frame { position: relative; border-radius: 12px; overflow: hidden; background: #07090d; border: 1px solid var(--line); }
.world-canvas { width: 100%; height: clamp(380px, 58vw, 640px); cursor: crosshair; touch-action: none; outline: none; }
.world-canvas:focus-visible { box-shadow: inset 0 0 0 2px var(--lime); }
.hud { position: absolute; pointer-events: none; }
.hud-top { top: 12px; left: 12px; display: flex; flex-wrap: wrap; gap: 8px; max-width: calc(100% - 170px); }
.hud-chip { display: flex; align-items: center; gap: 10px; padding: 7px 12px; background: rgba(7, 9, 13, .84); border: 1px solid var(--line-2); border-radius: 8px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .4); }
.hud-chip small { display: block; font: 600 9px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 4px; }
.hud-chip b { font: 700 13px/1 var(--f-pixel); white-space: nowrap; }
.hud-coords { gap: 16px; }
.hud-coords b { font-family: var(--f-mono); font-weight: 600; color: var(--lime); }
.hud-avatar { width: 30px; height: 30px; border-radius: 6px; background: #141b23; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line-2); }
.hud-avatar canvas { width: 24px; height: auto; margin-top: 6px; }
.hud-mini { position: absolute; top: 12px; right: 12px; padding: 5px; background: rgba(7, 9, 13, .84); border: 1px solid var(--line-2); border-radius: 8px; pointer-events: none; }
.hud-mini canvas { width: 140px; height: auto; border-radius: 3px; }
.hud-story { position: absolute; left: 12px; bottom: 12px; max-width: min(420px, calc(100% - 24px)); padding: 12px 14px; background: rgba(7, 9, 13, .9); border: 1px solid rgba(34, 224, 107, .35); border-left: 4px solid var(--green); border-radius: 8px; animation: rise .25s ease; }
.hud-story b { font: 700 13px/1.2 var(--f-pixel); color: var(--lime); }
.hud-story p { margin-top: 6px; font-size: 14px; line-height: 1.45; color: #d7dee5; }
.hud-actions { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 8px; }
.hud-actions .btn { background: rgba(7, 9, 13, .84); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
.gate { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; background: radial-gradient(closest-side, rgba(7, 9, 13, .72), rgba(7, 9, 13, .35)); }
.gate[hidden] { display: none; }
.gate-card { width: min(420px, 100%); text-align: center; padding: 26px 24px; background: rgba(11, 15, 20, .94); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 20px 60px -10px rgba(0, 0, 0, .7); }
.gate-icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 12px; background: #141b23; border: 1px solid var(--line-2); }
.gate-icon canvas, .gate-icon svg { width: 40px; height: auto; }
.gate-card h3 { font: 700 20px/1.2 var(--f-pixel); }
.gate-card p { margin: 10px 0 18px; color: var(--muted); }
.dpad { position: absolute; right: 16px; bottom: 16px; width: 138px; height: 138px; display: none; grid-template: repeat(3, 1fr) / repeat(3, 1fr); gap: 2px; touch-action: none; user-select: none; -webkit-user-select: none; }
.dpad button { border: 1px solid var(--line-2); background: rgba(16, 21, 28, .88); border-radius: 8px; cursor: pointer; display: grid; place-items: center; touch-action: none; }
.dpad button.on, .dpad button:active { background: var(--green); border-color: var(--green); }
.dpad button i { width: 0; height: 0; border: 7px solid transparent; }
.dpad [data-dir='up'] { grid-area: 1 / 2; } .dpad [data-dir='up'] i { border-bottom-color: var(--text); margin-top: -7px; }
.dpad [data-dir='left'] { grid-area: 2 / 1; } .dpad [data-dir='left'] i { border-right-color: var(--text); margin-left: -7px; }
.dpad [data-dir='right'] { grid-area: 2 / 3; } .dpad [data-dir='right'] i { border-left-color: var(--text); margin-right: -7px; }
.dpad [data-dir='down'] { grid-area: 3 / 2; } .dpad [data-dir='down'] i { border-top-color: var(--text); margin-bottom: -7px; }
.game.is-active .dpad { display: grid; }
@media (hover: hover) and (pointer: fine) { .game.is-active .dpad { display: none; } }
.game.is-active.is-touch .dpad { display: grid; }
.game-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 14px 6px 4px; }
.keys { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; color: var(--muted); font-size: 13px; }
.keys span { margin: 0 4px; }
kbd { min-width: 26px; height: 26px; display: inline-grid; place-items: center; padding: 0 6px; border: 1px solid var(--line-2); border-bottom-width: 3px; border-radius: 6px; font: 600 12px/1 var(--f-mono); color: var(--text); background: var(--panel); }
.legend-list { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.legend-list li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 6px; border: 1px solid var(--line); font: 500 12px/1.3 var(--f-mono); color: var(--muted); }
.legend-list li.on { color: var(--text); border-color: rgba(34, 224, 107, .5); background: rgba(34, 224, 107, .08); }
.legend-list li i { width: 7px; height: 7px; background: var(--c); }

/* ---------- wallet bar + roster ---------- */
.wallet-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--panel); margin-bottom: 20px; }
.wb-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.wb-left b { display: block; font-family: var(--f-mono); font-size: 15px; }
.wb-left small { color: var(--muted); font-size: 13px; }
.status-dot { flex: none; width: 10px; height: 10px; background: var(--dim); }
.wallet-bar.is-on .status-dot { background: var(--green); box-shadow: 0 0 10px var(--green); }
.wb-right { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.net-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; border-radius: 8px; border: 1px solid var(--line-2); font: 600 12px/1 var(--f-mono); color: var(--muted); }
.net-chip::before { content: ''; width: 7px; height: 7px; background: var(--amber); }
.net-chip.is-rh { color: var(--text); border-color: rgba(34, 224, 107, .45); }
.net-chip.is-rh::before { background: var(--green); }
.roster { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card {
  --c: var(--green);
  position: relative; display: flex; flex-direction: column; border: 1px solid var(--line-2); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-2), var(--panel)); overflow: hidden; transition: border-color .2s, transform .2s, box-shadow .2s;
}
.card:hover { border-color: color-mix(in srgb, var(--c) 50%, var(--line-2)); }
.card.is-picked { border-color: var(--c); box-shadow: 0 0 0 1px var(--c), 0 18px 50px -20px color-mix(in srgb, var(--c) 60%, transparent); }
.card-art { position: relative; aspect-ratio: 1 / 1.05; display: grid; place-items: end center; padding: 18px 0 12px; overflow: hidden;
  background: radial-gradient(circle at 50% 75%, color-mix(in srgb, var(--c) 22%, transparent), transparent 60%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 8px), repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 8px), #0b1016; }
.card-art::after { content: ''; position: absolute; left: 18%; right: 18%; bottom: 10px; height: 8px; background: rgba(0, 0, 0, .55); border-radius: 50%; filter: blur(2px); }
.card-art canvas { position: relative; z-index: 1; height: 90%; width: auto; }
.card-no { position: absolute; top: 12px; left: 12px; font: 600 11px/1 var(--f-mono); color: var(--dim); letter-spacing: .1em; }
.card-sprite { position: absolute; top: 10px; right: 10px; padding: 4px; border-radius: 6px; background: rgba(7, 9, 13, .8); border: 1px solid var(--line-2); }
.card-sprite canvas { width: 32px; height: auto; }
.card-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { font: 700 26px/1 var(--f-pixel); }
.card-role { font: 600 12px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--c); }
.card-body p { font-size: 14.5px; color: #c3ccd5; line-height: 1.55; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.tags li { font: 500 11px/1 var(--f-mono); padding: 5px 7px; border-radius: 5px; background: #0b1016; border: 1px solid var(--line); color: var(--muted); }
.card .btn { margin-top: auto; }
.card.is-picked .btn { background: var(--c); border-color: var(--c); color: #05080b; }
.card-lock { position: absolute; inset: 0; z-index: 2; display: none; place-items: center; background: rgba(7, 9, 13, .55); backdrop-filter: grayscale(.7) blur(1px); -webkit-backdrop-filter: grayscale(.7) blur(1px); }
.roster.is-locked .card-lock { display: grid; }
.roster.is-locked .card-art canvas { filter: grayscale(.5) brightness(.6); }
.card-lock span { display: inline-flex; gap: 8px; align-items: center; padding: 8px 12px; border-radius: 8px; background: rgba(7, 9, 13, .9); border: 1px solid var(--line-2); font: 700 12px/1 var(--f-pixel); }
.card-lock svg { width: 14px; height: 14px; }
.assign { margin-top: 20px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.assign-main { padding: 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.assign-main h3 { font: 700 22px/1.2 var(--f-pixel); }
.assign-main p { color: var(--muted); max-width: 52ch; }
.assign-main .btn { margin-top: 6px; }
.assign-note { padding: 22px; border-left: 1px solid var(--line); background: radial-gradient(400px 200px at 100% 0%, rgba(34, 224, 107, .12), transparent 70%), var(--bg-2); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.assign-note h4 { margin: 4px 0 0; font: 700 17px/1.25 var(--f-pixel); }
.assign-note p { color: var(--muted); font-size: 14.5px; }
.assign-note .btn { margin-top: 4px; }
.note-row { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; }
.note-row p { font-size: 14px; color: var(--muted); }
.note-row p b { color: var(--text); }

/* ---------- how ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.step { position: relative; padding: 26px 22px 24px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--panel); }
.step-n { position: absolute; top: 18px; right: 20px; font: 700 28px/1 var(--f-pixel); color: #1d2630; }
.step-ico { display: block; width: 56px; height: 56px; margin-bottom: 18px; border-radius: 10px; background: #0b1016; border: 1px solid var(--line-2); padding: 8px; }
.step-ico svg { width: 100%; height: 100%; }
.step h3 { font: 700 19px/1.2 var(--f-pixel); margin-bottom: 8px; }
.step p { color: var(--muted); }
.step:not(:last-child)::after { content: ''; position: absolute; top: 50%; right: -13px; width: 10px; height: 10px; background: var(--green); z-index: 1; box-shadow: 0 0 10px var(--green); }

/* ---------- token ---------- */
.token-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; }
.token-copy h2 { font-size: clamp(56px, 9vw, 120px); margin: 14px 0 18px; color: var(--green); text-shadow: 0 0 40px rgba(34, 224, 107, .25); }
.token-copy p { color: #c3ccd5; max-width: 48ch; }
.token-copy .fine { margin-top: 14px; color: var(--muted); font-size: 14px; }
.token-panel { border: 1px solid var(--line-2); border-radius: 18px; background: linear-gradient(180deg, var(--panel-2), var(--panel)); padding: 22px; box-shadow: 0 30px 80px -40px rgba(34, 224, 107, .35); }
.tp-head { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.tp-logo { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: #0b1016; border: 1px solid var(--line-2); }
.tp-head b { display: block; font-size: 18px; }
.tp-head small { font: 600 13px/1 var(--f-mono); color: var(--muted); }
.tp-head .pill { margin-left: auto; }
.tp-rows { margin: 0; display: grid; grid-template-columns: 1fr 1fr; }
.tp-rows > div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.tp-rows > div:nth-child(odd) { padding-right: 12px; }
.tp-rows > div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
.tp-rows dt { font: 600 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: 8px; }
.tp-rows dd { margin: 0; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.net-dot { width: 8px; height: 8px; background: var(--green); box-shadow: 0 0 8px var(--green); }
.ca { padding: 18px 0; display: grid; gap: 8px; }
.ca label { font: 600 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.ca-row { display: flex; gap: 8px; align-items: stretch; }
.ca-field { flex: 1; min-width: 0; display: flex; align-items: center; padding: 10px 12px; border-radius: 10px; background: #070a0e; border: 1px dashed var(--line-2); font: 500 13px/1.4 var(--f-mono); color: var(--muted); overflow-wrap: anywhere; }
.ca-field.is-set { border-style: solid; border-color: rgba(34, 224, 107, .4); color: var(--text); }
.ca small, .tp-actions small { color: var(--dim); font-size: 13px; }
.tp-actions { display: grid; gap: 10px; }

/* ---------- hero contract bar ---------- */
.hero-ca { margin-top: 22px; max-width: 560px; padding: 12px 12px 12px 14px; border: 1px solid rgba(34, 224, 107, .35); border-radius: 12px; background: rgba(7, 9, 13, .82); box-shadow: 0 0 40px -12px rgba(34, 224, 107, .35); }
.hero-ca-label { display: flex; align-items: center; gap: 8px; font: 600 11px/1 var(--f-mono); letter-spacing: .12em; color: var(--lime); }
.hero-ca-label i { width: 7px; height: 7px; background: var(--green); box-shadow: 0 0 8px var(--green); }
.hero-ca-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.hero-ca code { flex: 1; min-width: 0; font: 500 13px/1.4 var(--f-mono); color: var(--muted); overflow-wrap: anywhere; }
.hero-ca code.is-set { color: var(--text); }
.hero-ca .btn { flex: none; }

/* ---------- utilities ---------- */
.utility { margin-top: clamp(64px, 8vw, 104px); }
.util-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.util { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 22px; border: 1px solid var(--line-2); border-radius: var(--radius); background: linear-gradient(180deg, var(--panel-2), var(--panel)); transition: border-color .2s, transform .2s; }
.util:hover { border-color: rgba(34, 224, 107, .45); transform: translateY(-2px); }
.util-ico { width: 52px; height: 52px; padding: 8px; border-radius: 10px; background: #0b1016; border: 1px solid var(--line-2); }
.util-ico svg { width: 100%; height: 100%; }
.util .pill { position: absolute; top: 22px; right: 22px; }
.util h3 { margin-top: 6px; font: 700 18px/1.2 var(--f-pixel); }
.util p { color: var(--muted); font-size: 14.5px; }

/* ---------- community ---------- */
.comm-card { position: relative; display: grid; grid-template-columns: 1fr 1.2fr; align-items: center; gap: 24px; border: 1px solid var(--line-2); border-radius: 22px; overflow: hidden; background: var(--panel); }
.comm-art { width: 100%; height: 100%; min-height: 300px; object-fit: cover; }
.comm-copy { padding: 36px 36px 36px 8px; }
.comm-copy h2 { font-size: clamp(28px, 4vw, 48px); margin: 14px 0 14px; }
.comm-copy p { color: #c3ccd5; max-width: 46ch; }
.btn-social svg { width: 18px; height: 18px; fill: currentColor; }
.btn-social .soon { display: none; font: 600 10px/1 var(--f-mono); font-style: normal; letter-spacing: .08em; text-transform: uppercase; padding: 4px 6px; border-radius: 4px; background: rgba(240, 191, 69, .12); color: var(--amber); }
.btn-social.is-soon .soon { display: inline-block; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 44px 0 52px; background: var(--bg-2); }
.foot-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 32px; }
.foot-brand p { margin-top: 12px; color: var(--dim); font-size: 14px; }
.foot-legal { display: grid; gap: 10px; }
.foot-legal p { font-size: 13px; color: var(--dim); line-height: 1.6; }
.foot-legal b { color: var(--muted); }

/* ---------- modal + toast ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-back { position: absolute; inset: 0; background: rgba(3, 5, 8, .72); backdrop-filter: blur(4px); }
.modal-card { position: relative; width: min(440px, 100%); max-height: calc(100svh - 32px); overflow: auto; padding: 24px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line-2); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); animation: rise .2s ease; }
.modal-card h3 { font: 700 20px/1.2 var(--f-pixel); padding-right: 30px; }
.modal-sub { margin: 10px 0 18px; color: var(--muted); font-size: 14px; }
.modal-x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line-2); background: transparent; font-size: 22px; line-height: 1; cursor: pointer; color: var(--muted); }
.wm-list { display: grid; gap: 8px; }
.wm-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel-2); text-decoration: none; cursor: pointer; text-align: left; font-weight: 600; }
.wm-item:hover { border-color: var(--green); }
.wm-item img, .wm-item .wm-ph { width: 28px; height: 28px; border-radius: 7px; }
.wm-item .wm-ph { display: grid; place-items: center; background: #0b1016; border: 1px solid var(--line-2); font: 700 12px/1 var(--f-pixel); color: var(--green); }
.wm-item em { margin-left: auto; font: 600 11px/1 var(--f-mono); font-style: normal; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
.wm-empty { padding: 14px; border-radius: 10px; border: 1px dashed var(--line-2); color: var(--muted); font-size: 14px; margin-bottom: 4px; }
.wm-msg { margin-top: 12px; min-height: 1.4em; font-size: 14px; color: var(--muted); }
.wm-msg.err { color: #ff8a8f; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 90; transform: translate(-50%, 20px); max-width: calc(100% - 32px); padding: 12px 16px; border-radius: 10px; background: #0f151c; border: 1px solid var(--line-2); border-left: 4px solid var(--green); box-shadow: 0 20px 50px rgba(0, 0, 0, .6); font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { border-left-color: var(--amber); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .roster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-links > a { padding: 8px 9px; font-size: 14px; }
}
@media (max-width: 920px) {
  :root { --nav-h: 62px; }
  .menu-btn { display: flex; }
  .nav-links { position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 16px 20px; background: var(--bg); box-shadow: 0 20px 40px rgba(0, 0, 0, .6); border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; }
  .nav-links.open { opacity: 1; transform: none; visibility: visible; }
  .nav-links > a { padding: 14px 10px; font-size: 17px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-social { margin: 14px 0 0; }
  .nav-social .icon-btn { width: 46px; height: 46px; }
  .hero { padding: 36px 0 56px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero-scan { background: linear-gradient(180deg, rgba(7, 9, 13, .9) 0%, rgba(7, 9, 13, .6) 55%, var(--bg) 100%); }
  .hero-cast { max-width: 560px; }
  .token-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .comm-card { grid-template-columns: 1fr; }
  .comm-art { min-height: 200px; max-height: 260px; }
  .comm-copy { padding: 4px 24px 30px; }
  .assign { grid-template-columns: 1fr; }
  .assign-note { border-left: 0; border-top: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr; }
  .util-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step:not(:last-child)::after { top: auto; bottom: -13px; right: 50%; }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .brand-name { font-size: 15px; }
  .btn-connect { padding: 8px 12px; min-height: 42px; }
  .btn-connect span[data-connect-label] { font-size: 12px; }
  .hero-stats { grid-template-columns: repeat(2, auto); width: 100%; }
  .hero-stats li:nth-child(3) { border-left: 0; }
  .hero-stats li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cta-row .btn { flex: 1 1 100%; white-space: normal; text-align: center; }
  .hero h1 { font-size: clamp(36px, 12vw, 56px); }
  .world-canvas { height: min(72svh, 520px); }
  .hud-top { max-width: calc(100% - 24px); }
  .hud-chip { padding: 6px 9px; }
  .hud-coords span:last-child { display: none; }
  .hud-mini { display: none; }
  .hud-top { top: 8px; left: 8px; gap: 6px; }
  .hud-chip small { display: none; }
  .hud-chip b { font-size: 11px; }
  .hud-avatar { width: 22px; height: 22px; }
  .hud-avatar canvas { width: 18px; margin-top: 4px; }
  .hud-story { left: 8px; right: 8px; max-width: none; bottom: 160px; padding: 9px 11px; }
  .hud-story p { font-size: 12.5px; margin-top: 4px; }
  .hud-actions { left: 8px; right: auto; bottom: 8px; flex-direction: column; align-items: flex-start; }
  .dpad { right: 8px; bottom: 8px; }
  .game { padding: 6px; border-radius: 14px; }
  .roster { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card-body { padding: 12px; }
  .card-body h3 { font-size: 20px; }
  .card-body p { font-size: 13px; }
  .tags { display: none; }
  .tp-rows { grid-template-columns: 1fr; }
  .tp-rows > div:nth-child(even) { padding-left: 0; border-left: 0; }
  .ca-row { flex-direction: column; }
  .util-grid { grid-template-columns: 1fr; }
  .hero-ca-row { flex-direction: column; align-items: stretch; }
  .wallet-bar { align-items: stretch; }
  .wb-right { width: 100%; }
  .wb-right .btn { flex: 1; }
}
@media (max-width: 400px) {
  .brand-name { display: none; }
  .roster { grid-template-columns: 1fr; }
}
@media (hover: none) { .keys { display: none; } }
.keys-touch { display: none; color: var(--muted); font-size: 13px; }
@media (hover: none) { .keys-touch { display: block; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
