:root {
  --ink: #101114;
  --muted: #6f737b;
  --line: #e1e3e7;
  --canvas: #f4f5f7;
  --paper: #ffffff;
  --soft: #eef0f2;
  --accent: #d97706;
  --accent-soft: #fff3df;
  --success: #147a52;
  --success-soft: #e4f6ee;
  --warning: #9a6700;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; background: var(--canvas); }
button, input, select { font: inherit; }
.language-switcher { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; letter-spacing: .09em; text-transform: uppercase; }
.language-switcher select { min-height: 34px; padding: 0 28px 0 10px; border: 1px solid rgba(136,160,183,.28); border-radius: 3px; background: rgba(6,11,17,.8); color: #e6eef6; cursor: pointer; }
button { cursor: pointer; }

.app-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; min-width: 0; }
.sidebar { display: flex; flex-direction: column; gap: 28px; min-width: 0; padding: 28px 20px; background: var(--ink); color: #fff; }
.brand-lockup { display: flex; gap: 12px; align-items: center; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #60636a; font-size: 12px; letter-spacing: .08em; }
.brand-lockup h1 { margin: 2px 0 0; font-size: 17px; letter-spacing: -.02em; }
.eyebrow { margin: 0; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.sidebar .eyebrow { color: #9a9da4; }
.network-status { display: flex; align-items: center; gap: 8px; padding: 11px 12px; border: 1px solid #3d4047; color: #d9dbe0; font-size: 12px; }
.network-status code { margin-left: auto; color: #8f949d; font-size: 10px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #36b37e; box-shadow: 0 0 0 3px rgba(54,179,126,.15); }
.nav-list { display: grid; gap: 6px; min-width: 0; }
.nav-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border: 0; background: transparent; color: #aeb2ba; text-align: left; font-size: 13px; }
.nav-item span { width: 22px; color: #666a73; font-size: 10px; }
.nav-item:hover, .nav-item.is-active { background: #24262c; color: #fff; }
.nav-item.is-active span { color: #f3b45d; }
.sidebar-foot { margin-top: auto; padding-top: 18px; border-top: 1px solid #3d4047; }
.sidebar-foot p { margin: 0 0 7px; color: #fff; font-size: 12px; }
.sidebar-foot small { color: #8b8f98; font-size: 11px; line-height: 1.5; }

.main-content { width: 100%; max-width: 1500px; min-width: 0; padding: 28px clamp(20px, 4vw, 60px) 56px; }
.topbar { display: flex; justify-content: space-between; gap: 24px; align-items: center; margin-bottom: 32px; }
.topbar-copy { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.wallet-label { color: var(--muted); font-size: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; border: 1px solid transparent; border-radius: 4px; font-size: 12px; font-weight: 700; transition: .15s ease; }
.button-dark { background: var(--ink); color: #fff; }
.button-dark:hover { background: #2c2e34; }
.button-light { background: #fff; color: var(--ink); }
.button-light:hover { background: #f5f5f5; }
.button-outline { border-color: #cfd2d7; background: transparent; color: var(--ink); }
.button-outline:hover { border-color: var(--ink); }
.full-width { width: 100%; }
.text-button { padding: 0; border: 0; background: transparent; color: inherit; font-size: 12px; font-weight: 700; }
.text-button span { margin-left: 5px; }

.view { display: none; }
.view.is-visible { display: block; }
.hero-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .72fr); gap: 30px; align-items: stretch; min-width: 0; padding: clamp(24px, 4vw, 44px); background: var(--ink); color: #fff; }
.hero-kicker { display: flex; align-items: center; gap: 10px; color: #aeb2ba; font-size: 11px; }
.hero-band h2 { max-width: 520px; margin: 20px 0 10px; font-size: clamp(34px, 5vw, 64px); letter-spacing: -.055em; line-height: .98; }
.hero-band p { max-width: 550px; margin: 0; color: #b8bbc2; font-size: 14px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 28px; }
.hero-actions .text-button { color: #e4e6e9; }
.status-pill { display: inline-flex; align-items: center; width: fit-content; min-height: 23px; padding: 0 8px; border: 1px solid #c8ccd1; border-radius: 999px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.hero-band .status-pill { border-color: #555960; color: #f3b45d; }
.status-pill.status-green { border-color: #a8dbc3; background: var(--success-soft); color: var(--success); }
.hero-art { position: relative; display: grid; place-items: end center; min-height: 220px; overflow: hidden; background: #27292f; border: 1px solid #40434a; }
.hero-art::after { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(16,17,20,.85)); content: ""; pointer-events: none; }
.hero-art img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; object-position: 73% center; opacity: .95; }
.hero-art span { color: #9ea2aa; font-size: 10px; line-height: 1.4; text-align: center; }
.hero-art span { position: absolute; z-index: 1; bottom: 13px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 1px 0 28px; border: 1px solid var(--line); background: var(--line); }
.metric-card { min-height: 116px; padding: 17px; background: var(--paper); }
.metric-card span, .metric-card small { display: block; color: var(--muted); font-size: 11px; }
.metric-card strong { display: block; margin: 12px 0 3px; font-size: 24px; letter-spacing: -.03em; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); gap: 18px; }
.panel { border: 1px solid var(--line); background: var(--paper); }
.activation-panel, .quick-panel, .buyback-panel, .treasury-grid .panel { padding: 22px; }
.panel-heading { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.panel-heading h3 { margin: 5px 0 0; font-size: 18px; letter-spacing: -.025em; }
.panel-index { color: #9da1a8; font-size: 11px; }
.step-list { display: grid; gap: 0; padding: 10px 0 18px; }
.step { display: grid; grid-template-columns: 24px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid #eff0f2; }
.step > span { display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid #cfd2d7; color: #888c94; font-size: 10px; }
.step.is-complete > span { border-color: #9ad4b9; background: var(--success-soft); color: var(--success); }
.step strong, .step small { display: block; }
.step strong { font-size: 12px; }
.step small { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.quick-list { display: grid; gap: 6px; padding-top: 10px; }
.quick-action { display: grid; grid-template-columns: 25px 1fr auto; gap: 12px; align-items: center; padding: 13px 0; border: 0; border-bottom: 1px solid #eff0f2; background: transparent; color: var(--ink); text-align: left; }
.quick-action:hover strong { color: var(--accent); }
.quick-number { color: #a0a4aa; font-size: 10px; }
.quick-action strong, .quick-action small { display: block; }
.quick-action strong { font-size: 12px; }
.quick-action small { margin-top: 4px; color: var(--muted); font-size: 11px; }

.genesis-board { display: grid; grid-template-columns: minmax(280px, .78fr) minmax(0, 1.22fr); gap: 18px; margin-bottom: 18px; }
.pod-panel, .lineage-panel { padding: 22px; }
.status-amber { border-color: #f0c27b; background: var(--accent-soft); color: var(--warning); }
.pod-stage { position: relative; display: grid; place-items: center; min-height: 280px; margin: 18px 0; overflow: hidden; background: radial-gradient(circle at 50% 44%, rgba(255,178,55,.23), transparent 35%), #17191e; border: 1px solid #34373e; }
.pod-stage::before { position: absolute; inset: 20px; border: 1px solid rgba(72,220,255,.18); clip-path: polygon(50% 0, 94% 25%, 94% 75%, 50% 100%, 6% 75%, 6% 25%); content: ""; }
.pod-stage img { position: relative; z-index: 1; width: 64%; height: 250px; object-fit: cover; object-position: center; mix-blend-mode: screen; opacity: .93; }
.pod-orbit { position: absolute; border: 1px solid rgba(255,184,76,.45); border-radius: 50%; transform: rotate(-25deg); }
.orbit-one { width: 75%; height: 52%; }
.orbit-two { width: 52%; height: 75%; transform: rotate(38deg); border-color: rgba(88,218,255,.25); }
.pod-copy { display: flex; justify-content: space-between; gap: 14px; align-items: center; margin-bottom: 16px; }
.pod-copy strong, .pod-copy small { display: block; }
.pod-copy strong { font-size: 12px; }
.pod-copy > strong { color: var(--accent); font-size: 14px; }
.pod-copy small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.parent-pair { display: grid; grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr); gap: 10px; align-items: center; margin: 18px 0; }
.pair-symbol { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--line); color: var(--muted); font-size: 16px; }
.parent-slot { position: relative; display: grid; grid-template-columns: 58px 1fr; gap: 10px; align-items: center; padding: 7px; border: 1px solid var(--line); background: #fff; color: var(--ink); text-align: left; }
.parent-slot:hover, .parent-slot.is-selected { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.parent-slot img { width: 58px; height: 58px; object-fit: cover; background: var(--soft); }
.parent-slot strong, .parent-slot small { display: block; }
.parent-slot strong { font-size: 10px; }
.parent-slot small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.parent-slot b { position: absolute; top: 5px; right: 6px; display: none; color: var(--accent); font-size: 11px; }
.parent-slot.is-selected b { display: block; }
.inheritance-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 0 0 20px; border: 1px solid var(--line); background: var(--line); }
.inheritance-grid div { padding: 12px 9px; background: #f8f8f9; }
.inheritance-grid span, .inheritance-grid strong { display: block; }
.inheritance-grid span { color: var(--muted); font-size: 9px; }
.inheritance-grid strong { margin-top: 7px; font-size: 13px; }
.ape-card-actions { display: flex; gap: 8px; margin-top: 11px; }
.mini-action { padding: 6px 8px; border: 1px solid #d5d8dc; background: #fff; color: #555a62; font-size: 9px; font-weight: 700; }
.mini-action:hover { border-color: var(--accent); color: var(--accent); }

.section-intro { margin-bottom: 24px; }
.section-intro h2 { margin: 8px 0 7px; font-size: clamp(27px, 4vw, 42px); letter-spacing: -.05em; }
.section-intro > p:last-child { max-width: 640px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.toolbar { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 16px; }
.segmented { display: inline-flex; border: 1px solid var(--line); background: #fff; }
.segment { padding: 9px 12px; border: 0; border-right: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 11px; }
.segment:last-child { border-right: 0; }
.segment.is-active { background: var(--ink); color: #fff; }
.ape-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ape-card { overflow: hidden; border: 1px solid var(--line); background: #fff; }
.ape-card-art { display: grid; place-items: center; aspect-ratio: 1 / 1; background: #eceef0; }
.ape-card-art img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.ape-card-body { padding: 13px; }
.ape-card-title { display: flex; justify-content: space-between; gap: 8px; }
.ape-card-title strong { font-size: 12px; }
.ape-card-title span { color: var(--muted); font-size: 10px; }
.trait-row { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.trait { padding: 4px 6px; background: var(--soft); color: #555a62; font-size: 9px; }
.ape-card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 13px; padding-top: 10px; border-top: 1px solid #eff0f2; color: var(--muted); font-size: 10px; }
.market-layout, .treasury-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: 18px; }
.market-table-panel { padding: 22px; }
.market-table { display: grid; }
.listing { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 13px 0; border-bottom: 1px solid #eff0f2; }
.listing img { width: 44px; height: 44px; object-fit: cover; background: #eceef0; }
.listing strong, .listing small { display: block; }
.listing strong { font-size: 12px; }
.listing small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.listing-price { font-size: 12px; font-weight: 700; }
.listing .button { min-height: 30px; padding: 0 10px; font-size: 10px; }
.buyback-panel h3 { margin: 7px 0 9px; font-size: 20px; letter-spacing: -.03em; }
.muted { color: var(--muted); font-size: 12px; line-height: 1.55; }
.buyback-balance { display: flex; justify-content: space-between; align-items: center; margin: 22px 0; padding: 15px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.buyback-balance span { color: var(--muted); font-size: 11px; }
.buyback-balance strong { font-size: 20px; }
.fine-print { display: block; margin-top: 12px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.data-list { margin: 0; }
.data-list div { display: flex; justify-content: space-between; gap: 18px; padding: 13px 0; border-bottom: 1px solid #eff0f2; }
.data-list dt { color: var(--muted); font-size: 11px; }
.data-list dd { max-width: 60%; margin: 0; overflow: hidden; color: var(--ink); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }

.modal-backdrop { display: none; position: fixed; inset: 0; z-index: 10; place-items: center; padding: 20px; background: rgba(16,17,20,.66); }
.modal-backdrop.is-open { display: grid; }
.modal { position: relative; width: min(100%, 520px); max-height: calc(100vh - 40px); overflow: auto; padding: 28px; background: #fff; }
.modal h2 { margin: 8px 0; font-size: 28px; letter-spacing: -.045em; }
.modal-copy { margin: 0 0 22px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.modal-close { position: absolute; top: 12px; right: 14px; border: 0; background: transparent; color: var(--muted); font-size: 23px; }
.import-form { display: grid; gap: 13px; }
.field-hint { margin: -2px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.import-form label { display: grid; gap: 6px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.import-form input, .import-form select { width: 100%; min-height: 42px; padding: 0 11px; border: 1px solid #cfd2d7; border-radius: 3px; background: #fff; color: var(--ink); font-size: 12px; letter-spacing: 0; text-transform: none; }
.import-form input:focus, .import-form select:focus { outline: 2px solid #f3c57f; outline-offset: 1px; border-color: var(--accent); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.validation-message { min-height: 18px; margin: 0; color: var(--warning); font-size: 11px; line-height: 1.45; }
.validation-message.is-valid { color: var(--success); }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 3px; }
.action-modal { width: min(100%, 560px); }
.action-art { display: grid; place-items: center; height: 190px; margin: -28px -28px 24px; overflow: hidden; background: #15171c; }
.action-art img { width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: .92; }
.action-modal h2 { max-width: 400px; }
.action-input { display: grid; gap: 7px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.action-input > span { display: flex; align-items: center; border: 1px solid rgba(136,160,183,.28); background: rgba(6,11,17,.75); border-radius: 3px; overflow: hidden; }
.action-input input { min-width: 0; flex: 1; min-height: 44px; border: 0; outline: 0; padding: 0 12px; background: transparent; color: #e6eef6; font: inherit; }
.action-input b { padding: 0 12px; color: var(--accent); font-size: 11px; }
.action-receipt { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 20px 0; border: 1px solid var(--line); background: var(--line); }
.action-receipt div { padding: 12px 10px; background: #f8f8f9; }
.action-receipt span, .action-receipt strong { display: block; }
.action-receipt span { color: var(--muted); font-size: 9px; }
.action-receipt strong { margin-top: 6px; font-size: 11px; }
.toast { position: fixed; right: 18px; bottom: 18px; z-index: 20; max-width: min(360px, calc(100vw - 36px)); padding: 12px 14px; transform: translateY(12px); opacity: 0; pointer-events: none; border: 1px solid #454950; background: var(--ink); color: #fff; font-size: 12px; transition: .2s ease; }
.toast.is-visible { transform: translateY(0); opacity: 1; }
.wallet-options { display: grid; gap: 10px; margin: 18px 0 8px; }
.wallet-option { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 10px 13px; border: 1px solid rgba(136,160,183,.28); border-radius: 4px; background: rgba(6,11,17,.72); color: #e6eef6; cursor: pointer; text-align: left; transition: border-color .18s ease, transform .18s ease, background .18s ease; }
.wallet-option:hover { border-color: var(--accent); background: rgba(255,179,63,.08); transform: translateY(-1px); }
.wallet-option img, .wallet-option-mark { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 7px; object-fit: contain; }
.wallet-option-mark { display: grid; place-items: center; border: 1px solid rgba(255,179,63,.46); color: var(--accent); font-size: 11px; font-weight: 800; }
.wallet-option-copy { display: grid; gap: 3px; }
.wallet-option-copy strong { font-size: 13px; }
.wallet-option-copy small { color: #8fa0b2; font-size: 10px; }
.wallet-modal { width: min(100%, 470px); }

@media (max-width: 980px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { gap: 16px; padding: 16px 20px; }
  .nav-list { display: flex; overflow: auto; }
  .nav-item { width: auto; white-space: nowrap; }
  .sidebar-foot { display: none; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .content-grid, .market-layout, .treasury-grid, .genesis-board { grid-template-columns: 1fr; }
  .ape-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .main-content { padding: 20px 15px 36px; }
  .topbar { align-items: flex-start; flex-direction: column; gap: 14px; }
  .topbar-actions { width: 100%; justify-content: space-between; }
  .hero-band { grid-template-columns: minmax(0, 1fr); padding: 24px; }
  .hero-art { min-height: 180px; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-card { min-height: 100px; padding: 13px; }
  .metric-card strong { font-size: 20px; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .segmented { display: grid; grid-template-columns: repeat(3, 1fr); }
  .segment { padding: 9px 5px; font-size: 10px; }
  .listing { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .listing .button { grid-column: 2 / -1; justify-self: end; }
  .listing img { width: 40px; height: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .parent-pair { grid-template-columns: 1fr; }
  .pair-symbol { margin: 0 auto; }
  .parent-slot { grid-template-columns: 68px 1fr; }
  .parent-slot img { width: 68px; height: 68px; }
  .inheritance-grid { grid-template-columns: 1fr; }
  .action-receipt { grid-template-columns: 1fr; }
}

/* Ape Genesis visual overhaul: immersive Web3 game lobby */
:root {
  --ink: #eef2f6;
  --muted: #8c98a8;
  --line: rgba(149, 165, 184, .18);
  --canvas: #070a10;
  --paper: rgba(17, 23, 32, .82);
  --soft: rgba(255,255,255,.06);
  --accent: #ffb33f;
  --accent-soft: rgba(255,179,63,.14);
  --success: #46e0ae;
  --success-soft: rgba(70,224,174,.14);
  --cyan: #36d8ff;
  --violet: #b873ff;
}

html { background: var(--canvas); }
body {
  color: var(--ink);
  background:
    radial-gradient(circle at 76% -14%, rgba(255, 145, 46, .18), transparent 31rem),
    radial-gradient(circle at 14% 75%, rgba(40, 103, 255, .1), transparent 28rem),
    linear-gradient(135deg, #070a10 0%, #0a0f18 42%, #07090f 100%);
}
.app-shell { grid-template-columns: 286px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: relative;
  gap: 28px;
  padding: 30px 22px;
  border-right: 1px solid rgba(155, 171, 191, .14);
  background:
    linear-gradient(180deg, rgba(17, 23, 33, .98), rgba(7, 10, 16, .96)),
    repeating-linear-gradient(0deg, transparent 0 43px, rgba(118, 142, 166, .045) 44px);
}
.sidebar::after {
  position: absolute;
  top: 0;
  right: -1px;
  width: 1px;
  height: 46%;
  background: linear-gradient(180deg, var(--accent), var(--cyan), transparent);
  content: "";
  opacity: .85;
}
.brand-mark {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 179, 63, .8);
  background: linear-gradient(145deg, rgba(255, 179, 63, .25), rgba(56, 218, 255, .06));
  color: #fff;
  box-shadow: 0 0 24px rgba(255, 163, 44, .14);
  font-weight: 800;
}
.brand-mark-image {
  position: relative;
  overflow: hidden;
  padding: 0;
  background: #090d15;
}
.brand-mark-image::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 205, 113, .35);
  content: "";
  pointer-events: none;
}
.brand-mark-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  transform: scale(1.16);
}
.brand-lockup h1 { font-size: 19px; letter-spacing: -.04em; }
.sidebar .eyebrow { color: #a9b5c4; }
.network-status {
  border: 1px solid rgba(125, 160, 190, .22);
  background: rgba(25, 34, 47, .62);
  box-shadow: inset 0 1px rgba(255,255,255,.04);
}
.status-dot { background: var(--success); box-shadow: 0 0 0 4px rgba(70,224,174,.12), 0 0 16px rgba(70,224,174,.72); }
@keyframes signalPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(70,224,174,.12), 0 0 12px rgba(70,224,174,.48); }
  50% { box-shadow: 0 0 0 6px rgba(70,224,174,.04), 0 0 24px rgba(70,224,174,.9); }
}
.status-dot { animation: signalPulse 2.8s ease-in-out infinite; }
.nav-list { gap: 8px; }
.nav-item {
  position: relative;
  padding: 13px 14px;
  border: 1px solid transparent;
  border-radius: 5px;
  color: #95a0af;
}
.nav-item:hover, .nav-item.is-active {
  border-color: rgba(255, 179, 63, .27);
  background: linear-gradient(90deg, rgba(255,179,63,.15), rgba(41, 192, 255, .04));
  color: #fff;
  box-shadow: inset 3px 0 var(--accent), 0 6px 24px rgba(0,0,0,.2);
}
.nav-item.is-active span { color: var(--accent); }
.sidebar-foot { border-top-color: rgba(149, 165, 184, .16); }
.sidebar-foot p { color: #dce4ec; }

.main-content {
  max-width: none;
  min-height: 100vh;
  padding: 30px clamp(22px, 4vw, 72px) 80px;
}
.topbar {
  max-width: 1600px;
  margin: 0 auto 34px;
}
.topbar-copy { color: #94a0b0; }
.wallet-label { color: #98a5b5; }
.button { border-radius: 4px; }
.button-dark {
  background: linear-gradient(135deg, #ffbd52, #f08822);
  color: #17110a;
  box-shadow: 0 7px 24px rgba(255, 146, 32, .2);
}
.button-dark:hover { background: linear-gradient(135deg, #ffd27e, #ff9d32); color: #17110a; }
.button-light { background: #f4f7fb; color: #101722; box-shadow: 0 8px 22px rgba(0,0,0,.22); }
.button-light:hover { background: #fff; color: #101722; }
.button-outline {
  border-color: rgba(133, 156, 180, .32);
  background: rgba(14, 21, 30, .55);
  color: #d9e3ed;
}
.button-outline:hover { border-color: var(--accent); color: #fff; }
.view { max-width: 1600px; margin: 0 auto; }
.hero-band {
  position: relative;
  grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
  min-height: 500px;
  gap: 22px;
  overflow: hidden;
  padding: clamp(34px, 5vw, 76px);
  border: 1px solid rgba(135, 164, 192, .22);
  background:
    linear-gradient(90deg, rgba(7, 10, 16, .98) 0%, rgba(7, 10, 16, .88) 37%, rgba(7, 10, 16, .25) 72%, rgba(7, 10, 16, .78) 100%),
    url("assets/ape-genesis-hero.png") center / cover no-repeat;
  box-shadow: 0 30px 80px rgba(0,0,0,.32), inset 0 0 100px rgba(8, 20, 35, .42);
}
.hero-band::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0 52%, rgba(54,216,255,.08) 52.1%, transparent 52.4%),
    linear-gradient(28deg, transparent 0 67%, rgba(255,179,63,.1) 67.1%, transparent 67.35%),
    linear-gradient(90deg, transparent 0 59%, rgba(255,255,255,.05) 59.1%, transparent 59.3%);
  content: "";
  pointer-events: none;
}
.hero-band > * { position: relative; z-index: 1; }
.hero-kicker { color: #a9b8ca; }
.hero-band h2 {
  max-width: 720px;
  margin: 25px 0 17px;
  color: #f8fbff;
  font-size: clamp(42px, 6vw, 84px);
  line-height: .92;
  text-shadow: 0 5px 32px rgba(0,0,0,.45);
}
.hero-band p { max-width: 580px; color: #b9c5d3; font-size: 15px; }
.hero-actions { margin-top: 34px; }
.hero-actions .text-button { color: #dbe7f4; }
.hero-telemetry {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 500px;
  gap: 1px;
  margin-top: 38px;
  border: 1px solid rgba(136,160,183,.2);
  background: rgba(136,160,183,.2);
}
.hero-telemetry > div {
  min-height: 68px;
  padding: 11px 12px;
  background: rgba(9,15,23,.7);
}
.hero-telemetry small, .hero-telemetry strong, .hero-telemetry span { display: block; }
.hero-telemetry small { color: #7e90a3; font-size: 8px; font-weight: 800; letter-spacing: .11em; }
.hero-telemetry strong { margin-top: 5px; color: #f4f8fc; font-size: 20px; letter-spacing: -.04em; }
.hero-telemetry span { margin-top: 4px; color: #7aa7bd; font-size: 8px; letter-spacing: .05em; }
.hero-art {
  min-height: 100%;
  border: 0;
  background: transparent;
}
.hero-art img { display: none; }
.hero-art::after {
  background: linear-gradient(180deg, transparent 48%, rgba(7, 10, 16, .72));
}
.hero-art span {
  right: 0;
  bottom: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(111, 220, 255, .23);
  background: rgba(7, 10, 16, .58);
  color: #9fe3f4;
  text-align: right;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.status-pill { border-color: rgba(133, 156, 180, .38); background: rgba(11, 18, 27, .5); color: #b7c3d0; }
.hero-band .status-pill { border-color: rgba(255,179,63,.62); color: #ffc66d; background: rgba(255,179,63,.08); }
.hero-band .status-pill.status-green { border-color: rgba(70,224,174,.62); color: var(--success); }
.metric-grid {
  gap: 1px;
  margin: 0;
  border: 1px solid rgba(136, 160, 183, .2);
  background: rgba(136, 160, 183, .2);
}
.metric-card {
  min-height: 136px;
  padding: 22px;
  background: rgba(12, 18, 27, .82);
}
.metric-card span, .metric-card small { color: #8997a8; }
.metric-card strong { color: #f4f7fb; font-size: 28px; }
.metric-card small { color: #68788b; }
.content-grid { gap: 18px; margin-top: 18px; }
.panel {
  border-color: rgba(136, 160, 183, .2);
  background: linear-gradient(145deg, rgba(18, 26, 37, .9), rgba(10, 15, 23, .78));
  box-shadow: 0 14px 44px rgba(0,0,0,.2), inset 0 1px rgba(255,255,255,.035);
}
.panel-heading { border-bottom-color: rgba(136,160,183,.16); }
.panel-heading h3 { color: #f1f6fb; font-size: 20px; }
.panel-index { color: #7d8b9c; }
.step { border-bottom-color: rgba(136,160,183,.13); }
.step > span { border-color: rgba(136,160,183,.35); color: #8493a4; background: rgba(255,255,255,.025); }
.step.is-complete > span { border-color: rgba(70,224,174,.6); background: rgba(70,224,174,.13); color: var(--success); }
.step strong { color: #dce6ef; }
.step small { color: #7c8b9c; }
.quick-action { border-bottom-color: rgba(136,160,183,.13); color: #e3ebf4; }
.quick-action:hover strong { color: var(--accent); }
.quick-action small { color: #7f8fa0; }
.quick-number { color: #718196; }
.section-intro h2 { color: #f7fafc; }
.section-intro > p:last-child { color: #95a4b4; }
.segmented { border-color: rgba(136,160,183,.23); background: rgba(14, 21, 30, .74); }
.segment { border-right-color: rgba(136,160,183,.2); background: transparent; color: #8c9aab; }
.segment.is-active { background: linear-gradient(135deg, rgba(255,179,63,.22), rgba(54,216,255,.1)); color: #fff; }
.ape-card { border-color: rgba(136,160,183,.22); background: rgba(13, 20, 29, .9); box-shadow: 0 12px 36px rgba(0,0,0,.2); }
.ape-card-art { background: #121b27; }
.ape-card-body { background: linear-gradient(180deg, rgba(19,28,39,.94), rgba(11,16,24,.94)); }
.ape-card-title strong { color: #eef4f9; }
.ape-card-title span, .ape-card-foot { color: #8795a5; }
.trait { border: 1px solid rgba(137, 160, 183, .2); background: rgba(61, 83, 106, .2); color: #a9b9c9; }
.ape-card-foot { border-top-color: rgba(136,160,183,.13); }
.mini-action { border-color: rgba(136,160,183,.28); background: rgba(255,255,255,.03); color: #b6c4d3; }
.mini-action:hover { border-color: var(--accent); color: var(--accent); }
.listing { border-bottom-color: rgba(136,160,183,.13); }
.listing strong { color: #e5edf5; }
.listing small { color: #7f8fa0; }
.listing-price { color: #ffc36b; }
.buyback-panel h3 { color: #f2f7fb; }
.muted, .fine-print { color: #8493a4; }
.buyback-balance { border-top-color: rgba(136,160,183,.16); border-bottom-color: rgba(136,160,183,.16); }
.buyback-balance strong { color: #ffc36b; }
.data-list div { border-bottom-color: rgba(136,160,183,.13); }
.data-list dt { color: #8493a4; }
.data-list dd { color: #dfe9f3; }
.genesis-board { margin-top: 18px; }
.pod-panel, .lineage-panel { background: linear-gradient(145deg, rgba(18, 26, 37, .95), rgba(10, 15, 23, .84)); }
.pod-stage { border-color: rgba(136,160,183,.2); background: radial-gradient(circle at 50% 44%, rgba(255,178,55,.24), transparent 36%), #090e16; }
.pod-stage::before { border-color: rgba(54,216,255,.26); }
.pod-copy > strong { color: #ffc36b; }
.pod-copy small { color: #8493a4; }
.parent-slot { border-color: rgba(136,160,183,.24); background: rgba(17, 25, 36, .8); color: #dfe8f1; }
.parent-slot:hover, .parent-slot.is-selected { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent), 0 0 22px rgba(255,179,63,.12); }
.parent-slot small { color: #8493a4; }
.inheritance-grid { border-color: rgba(136,160,183,.2); background: rgba(136,160,183,.2); }
.inheritance-grid div { background: rgba(16, 24, 34, .78); }
.inheritance-grid span { color: #8493a4; }
.inheritance-grid strong { color: #eaf2f8; }
.action-art { background: #090f17; }
.action-receipt { border-color: rgba(136,160,183,.2); background: rgba(136,160,183,.2); }
.action-receipt div { background: rgba(16,24,34,.78); }
.action-receipt span { color: #8493a4; }
.action-receipt strong { color: #e9f2f8; }
.modal-backdrop { background: rgba(3, 6, 10, .8); }
.modal { border: 1px solid rgba(136,160,183,.22); background: linear-gradient(145deg, #131d2a, #0b111a); box-shadow: 0 30px 90px rgba(0,0,0,.55); }
.modal h2 { color: #f3f7fb; }
.modal-copy { color: #94a4b4; }
.modal-close { color: #94a4b4; }
.import-form input, .import-form select { border-color: rgba(136,160,183,.28); background: rgba(6,11,17,.75); color: #e6eef6; }
.import-form label { color: #93a4b5; }
.toast { border-color: rgba(255,179,63,.38); background: #101923; box-shadow: 0 10px 34px rgba(0,0,0,.38); }

@media (min-width: 981px) {
  .hero-band { border-radius: 8px 8px 0 0; }
  .metric-grid { border-top: 0; }
}
@media (max-width: 980px) {
  .app-shell { grid-template-columns: 1fr; }
  .main-content { padding-inline: 18px; }
  .hero-band { min-height: 480px; grid-template-columns: 1fr; }
  .hero-art { min-height: 180px; }
}

/* precision pass */
.world-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(180px, .82fr);
  gap: 1px;
  margin-bottom: 16px;
  border: 1px solid rgba(136,160,183,.2);
  background: rgba(136,160,183,.2);
}
.world-cell {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 68px;
  padding: 12px 15px;
  background: rgba(13, 20, 29, .86);
}
.world-cell-right { display: block; text-align: right; }
.world-cell small, .world-cell strong { display: block; }
.world-cell small { color: #758496; font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
.world-cell strong { margin-top: 5px; color: #e8f0f7; font-size: 12px; letter-spacing: .02em; }
.world-cell em { margin-left: 5px; color: var(--success); font-size: 9px; font-style: normal; letter-spacing: .08em; }
.world-icon { position: relative; display: block; flex: 0 0 auto; width: 28px; height: 28px; border: 1px solid rgba(255,179,63,.45); border-radius: 50%; }
.world-icon::before, .world-icon::after { position: absolute; content: ""; }
.icon-pulse::before { left: 6px; right: 6px; top: 13px; height: 1px; background: var(--success); box-shadow: 4px -4px var(--success), 8px 3px var(--success); }
.icon-gene::before { left: 8px; top: 5px; width: 10px; height: 16px; border: 1px solid var(--cyan); border-radius: 50%; transform: rotate(30deg); }
.icon-gene::after { left: 12px; top: 5px; width: 1px; height: 16px; background: var(--cyan); transform: rotate(-30deg); }
.icon-season::before { inset: 7px; border: 1px dashed var(--violet); border-radius: 50%; }
.hero-corner { position: absolute; z-index: 2; color: rgba(154,181,206,.72); font-size: 9px; letter-spacing: .12em; }
.hero-corner-top { top: 20px; right: 24px; }
.hero-corner-bottom { right: 24px; bottom: 20px; }
.hero-corner-bottom b { color: var(--success); font-size: 13px; }
.activation-panel, .quick-panel { position: relative; overflow: hidden; }
.activation-panel::before, .quick-panel::before {
  position: absolute;
  top: 0;
  left: 22px;
  right: 22px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  content: "";
  opacity: .7;
}
.metric-card { position: relative; overflow: hidden; }
.metric-card::after { position: absolute; right: -18px; bottom: -24px; width: 76px; height: 76px; border: 1px solid rgba(54,216,255,.13); border-radius: 50%; content: ""; }
.metric-card:nth-child(2)::after { border-color: rgba(184,115,255,.16); }
.metric-card:nth-child(3)::after { border-color: rgba(70,224,174,.16); }
.metric-card:nth-child(4)::after { border-color: rgba(255,179,63,.16); }
.panel-heading h3 { letter-spacing: -.035em; }

@media (max-width: 760px) {
  .world-strip { grid-template-columns: 1fr 1fr; }
  .world-cell-right { text-align: left; }
}
@media (max-width: 480px) {
  .world-strip { grid-template-columns: 1fr; }
  .world-cell { min-height: 60px; }
  .hero-corner { display: none; }
}

/* game lobby layer */
.world-map-section {
  position: relative;
  overflow: hidden;
  margin-top: 22px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(136,160,183,.2);
  background:
    radial-gradient(circle at 92% 6%, rgba(184,115,255,.15), transparent 23rem),
    radial-gradient(circle at 3% 100%, rgba(54,216,255,.1), transparent 25rem),
    linear-gradient(145deg, rgba(16,24,35,.94), rgba(7,11,18,.94));
  box-shadow: 0 22px 60px rgba(0,0,0,.24), inset 0 1px rgba(255,255,255,.04);
}
.world-map-section::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(30deg, transparent 49.6%, rgba(107,138,170,.08) 49.8%, transparent 50.2%),
    linear-gradient(150deg, transparent 49.6%, rgba(107,138,170,.06) 49.8%, transparent 50.2%),
    repeating-linear-gradient(90deg, transparent 0 62px, rgba(107,138,170,.035) 63px, transparent 64px);
  content: "";
  opacity: .65;
  pointer-events: none;
}
.world-map-section > * { position: relative; z-index: 1; }
.section-heading-game {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.section-heading-game.compact { align-items: center; margin-bottom: 16px; }
.section-heading-game h3 {
  margin: 7px 0 0;
  color: #f4f8fc;
  font-size: clamp(20px, 2.4vw, 28px);
  letter-spacing: -.045em;
}
.season-progress {
  display: grid;
  grid-template-columns: auto minmax(100px, 170px) auto;
  align-items: center;
  gap: 10px;
  color: #9baabd;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .13em;
}
.season-progress div {
  height: 5px;
  overflow: hidden;
  border: 1px solid rgba(184,115,255,.35);
  background: rgba(184,115,255,.08);
}
.season-progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #8e5cff, #dd66ff);
  box-shadow: 0 0 14px rgba(184,115,255,.75);
}
.season-progress strong { color: #ddbbff; font-size: 11px; letter-spacing: 0; }
.zone-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.zone-card {
  position: relative;
  display: flex;
  min-height: 248px;
  overflow: hidden;
  flex-direction: column;
  justify-content: space-between;
  padding: 15px;
  border: 1px solid rgba(136,160,183,.28);
  border-radius: 5px;
  background-color: #101925;
  background-position: center;
  background-size: cover;
  color: #fff;
  isolation: isolate;
  text-align: left;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, filter .2s ease;
}
.zone-card::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(6,10,16,.12) 0%, rgba(6,10,16,.45) 42%, rgba(6,10,16,.98) 100%),
    linear-gradient(90deg, rgba(5,8,14,.72), transparent 74%);
  content: "";
}
.zone-card::after {
  position: absolute;
  inset: 9px;
  z-index: -1;
  border: 1px solid rgba(255,255,255,.13);
  content: "";
  opacity: .7;
  transition: inset .2s ease, opacity .2s ease;
}
.zone-card:hover {
  filter: saturate(1.14);
  transform: translateY(-5px);
  box-shadow: 0 18px 36px rgba(0,0,0,.42);
}
.zone-card:hover::after { inset: 6px; opacity: 1; }
@keyframes zoneScan {
  0% { transform: translateX(-115%); opacity: 0; }
  15% { opacity: .7; }
  55%, 100% { transform: translateX(115%); opacity: 0; }
}
.zone-card:hover::before {
  background:
    linear-gradient(105deg, transparent 0 39%, rgba(255,255,255,.12) 42%, transparent 46% 100%),
    linear-gradient(180deg, rgba(6,10,16,.12) 0%, rgba(6,10,16,.45) 42%, rgba(6,10,16,.98) 100%),
    linear-gradient(90deg, rgba(5,8,14,.72), transparent 74%);
  animation: zoneScan 1.4s ease-out;
}
.zone-lab {
  border-color: rgba(255,179,63,.47);
  background-image: url("assets/gene-pod.png");
  box-shadow: inset 0 0 80px rgba(255,167,37,.15);
}
.zone-lab::after { border-color: rgba(255,193,94,.52); }
.zone-works {
  border-color: rgba(54,216,255,.42);
  background-image: url("assets/ape-genesis-male.png");
  background-position: 58% 26%;
  box-shadow: inset 0 0 80px rgba(54,216,255,.13);
}
.zone-works::after { border-color: rgba(54,216,255,.48); }
.zone-market {
  border-color: rgba(211,105,255,.46);
  background-image: url("assets/ape-genesis-female.png");
  background-position: 47% 22%;
  box-shadow: inset 0 0 80px rgba(210,105,255,.14);
}
.zone-market::after { border-color: rgba(221,132,255,.48); }
.zone-vault {
  border-color: rgba(70,224,174,.4);
  background-image: url("assets/ape-genesis-hero.png");
  background-position: 77% 34%;
  box-shadow: inset 0 0 80px rgba(70,224,174,.11);
}
.zone-vault::after { border-color: rgba(70,224,174,.48); }
.zone-code {
  display: inline-flex;
  width: fit-content;
  padding: 5px 7px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(4,8,13,.56);
  color: #c5d2e0;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .11em;
}
.zone-content { margin-top: auto; padding-top: 54px; }
.zone-content small {
  color: #a8b6c7;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.zone-content h4 {
  margin: 6px 0 5px;
  color: #fff;
  font-size: clamp(19px, 2.1vw, 25px);
  letter-spacing: -.045em;
  text-shadow: 0 3px 18px rgba(0,0,0,.62);
}
.zone-content p {
  min-height: 38px;
  margin: 0 0 13px;
  color: #b7c4d2;
  font-size: 11px;
  line-height: 1.45;
}
.zone-content b {
  color: #fff;
  font-size: 10px;
  letter-spacing: .1em;
}
.zone-content b i { margin-left: 5px; color: var(--accent); font-style: normal; font-size: 14px; }
.zone-level {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 5px 7px;
  border: 1px solid rgba(255,255,255,.26);
  background: rgba(4,8,13,.6);
  color: #f7fbff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
}
.zone-lab .zone-level { color: #ffd083; border-color: rgba(255,179,63,.55); }
.zone-works .zone-level { color: #a9eeff; border-color: rgba(54,216,255,.5); }
.zone-market .zone-level { color: #e7b5ff; border-color: rgba(211,105,255,.5); }
.zone-vault .zone-level { color: #98f6d6; border-color: rgba(70,224,174,.5); }
.game-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, .8fr);
  gap: 16px;
  margin-top: 16px;
}
.squad-panel, .quest-panel {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(136,160,183,.2);
  background:
    linear-gradient(145deg, rgba(18,27,39,.94), rgba(9,14,22,.94)),
    repeating-linear-gradient(135deg, transparent 0 22px, rgba(255,255,255,.018) 23px, transparent 24px);
  box-shadow: 0 15px 38px rgba(0,0,0,.22), inset 0 1px rgba(255,255,255,.04);
}
.squad-panel::before, .quest-panel::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 42%;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  content: "";
}
.quest-panel::before { background: linear-gradient(90deg, var(--violet), transparent); }
.micro-link {
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: #86ddf3;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
}
.micro-link:hover { color: #fff; }
.squad-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}
.squad-slot, .squad-empty {
  position: relative;
  min-width: 0;
  min-height: 173px;
  overflow: hidden;
  border: 1px solid rgba(136,160,183,.23);
  border-radius: 4px;
  background: rgba(7,12,19,.76);
}
.squad-slot { display: grid; grid-template-columns: 1fr; grid-template-rows: 102px auto; }
.squad-slot img {
  width: 100%;
  height: 102px;
  object-fit: cover;
  object-position: center 24%;
  border-bottom: 1px solid rgba(136,160,183,.18);
}
.squad-slot > div { padding: 10px 10px 12px; }
.squad-slot strong, .squad-slot small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.squad-slot strong { color: #eaf3f9; font-size: 10px; letter-spacing: .04em; }
.squad-slot small { margin-top: 5px; color: #7f91a5; font-size: 9px; }
.squad-slot > b {
  position: absolute;
  right: 9px;
  bottom: 10px;
  color: #dceeff;
  font-size: 14px;
}
.rarity {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 5px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(3,7,12,.7);
  color: #d5dee8;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .1em;
}
.rarity-epic { border-color: rgba(214,112,255,.65); color: #e3a9ff; }
.rarity-rare { border-color: rgba(77,220,255,.6); color: #9ceeff; }
.rarity-uncommon { border-color: rgba(70,224,174,.58); color: #98f6d6; }
.squad-empty {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border-style: dashed;
  border-color: rgba(136,160,183,.32);
  color: #8091a3;
  transition: .2s ease;
}
.squad-empty:hover { border-color: var(--accent); color: #ffd083; background: rgba(255,179,63,.06); }
.squad-empty span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 23px;
  font-weight: 300;
}
.squad-empty small { font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.quest-reset { color: #8092a4; font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.quest-list { display: grid; gap: 5px; }
.quest-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 10px;
  min-height: 57px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(136,160,183,.12);
}
.quest-item:last-child { border-bottom: 0; }
.quest-symbol {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(184,115,255,.55);
  border-radius: 7px;
  background: linear-gradient(145deg, rgba(184,115,255,.2), rgba(54,216,255,.08));
  color: #e1b8ff;
  font-size: 11px;
  font-weight: 900;
}
.quest-item strong, .quest-item small { display: block; }
.quest-item strong { color: #dce8f2; font-size: 11px; }
.quest-item small { margin-top: 4px; color: #7f91a5; font-size: 9px; }
.quest-item > b { color: #e1b8ff; font-size: 11px; text-align: right; }
.quest-bar {
  height: 3px;
  margin-top: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(136,160,183,.2);
}
.quest-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8b61ff, #e46dff);
  box-shadow: 0 0 10px rgba(188,115,255,.7);
}
@keyframes questGlow {
  0%, 100% { filter: brightness(.95); }
  50% { filter: brightness(1.3); }
}
.quest-bar i[style*="100%"] { animation: questGlow 2.6s ease-in-out infinite; }
.event-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 12px;
}
.event-card {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 72px;
  padding: 9px;
  overflow: hidden;
  border: 1px solid rgba(136,160,183,.2);
  background: rgba(7,12,19,.75);
}
.event-card::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,179,63,.08), transparent 68%);
  content: "";
  pointer-events: none;
}
.event-card-race::before { background: linear-gradient(90deg, rgba(54,216,255,.08), transparent 68%); }
.event-card-vault::before { background: linear-gradient(90deg, rgba(70,224,174,.08), transparent 68%); }
.event-art {
  position: relative;
  display: block;
  width: 58px;
  height: 52px;
  overflow: hidden;
  border: 1px solid rgba(255,179,63,.35);
  background: url("assets/gene-pod.png") center / cover;
}
.event-card-race .event-art { border-color: rgba(54,216,255,.34); background-image: url("assets/ape-genesis-male.png"); background-position: 53% 25%; }
.event-card-vault .event-art { border-color: rgba(70,224,174,.34); background-image: url("assets/ape-genesis-hero.png"); background-position: 82% 34%; }
.event-card small, .event-card strong, .event-card p { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.event-card small { color: #8394a7; font-size: 8px; font-weight: 800; letter-spacing: .1em; }
.event-card strong { margin-top: 4px; color: #e5eef6; font-size: 10px; }
.event-card p { margin: 4px 0 0; color: #7f91a4; font-size: 9px; }
.event-card > b { position: relative; color: #ffd083; font-size: 9px; letter-spacing: .07em; }
.event-card-race > b { color: #98ecff; }
.event-card-vault > b { color: #98f6d6; }

@media (max-width: 1120px) {
  .zone-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-dashboard { grid-template-columns: 1fr; }
  .event-rail { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .section-heading-game { align-items: flex-start; flex-direction: column; gap: 12px; }
  .season-progress { width: 100%; grid-template-columns: auto minmax(0, 1fr) auto; }
  .zone-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .zone-card { min-height: 220px; padding: 11px; }
  .zone-content h4 { font-size: 18px; }
  .zone-content p { font-size: 10px; }
  .zone-code, .zone-level { font-size: 8px; }
  .squad-panel, .quest-panel { padding: 16px; }
  .squad-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .event-card { min-height: 68px; }
  .hero-telemetry { max-width: none; margin-top: 28px; }
}
@media (max-width: 420px) {
  .zone-grid { grid-template-columns: 1fr; }
  .zone-card { min-height: 205px; }
  .squad-row { grid-template-columns: 1fr 1fr; }
  .hero-telemetry { grid-template-columns: 1fr; }
  .hero-telemetry > div { min-height: 58px; }
}

/* market + treasury command decks */
.market-intro, .treasury-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}
.market-live-badge, .operator-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 8px 10px;
  border: 1px solid rgba(70,224,174,.36);
  background: rgba(70,224,174,.07);
  color: #9af4d6;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
}
.market-live-badge i, .operator-chip i, .vault-status i, .vault-health i, .flow-footer i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 10px rgba(70,224,174,.8);
}
.market-live-badge b { color: #fff; }
.market-stats, .treasury-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: -3px 0 18px;
  border: 1px solid rgba(136,160,183,.2);
  background: rgba(136,160,183,.2);
}
.market-stats > div, .treasury-stats > div {
  position: relative;
  min-height: 89px;
  padding: 14px 16px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(17,27,39,.93), rgba(9,14,22,.9));
}
.market-stats > div::after, .treasury-stats > div::after {
  position: absolute;
  right: -25px;
  bottom: -35px;
  width: 86px;
  height: 86px;
  border: 1px solid rgba(184,115,255,.18);
  border-radius: 50%;
  content: "";
}
.market-stats > div:nth-child(2)::after { border-color: rgba(54,216,255,.17); }
.market-stats > div:nth-child(3)::after { border-color: rgba(255,179,63,.17); }
.market-stats > div:nth-child(4)::after { border-color: rgba(70,224,174,.17); }
.market-stats span, .market-stats strong, .market-stats small, .treasury-stats span, .treasury-stats strong, .treasury-stats small { position: relative; z-index: 1; display: block; }
.market-stats span, .treasury-stats span { color: #8494a6; font-size: 8px; font-weight: 800; letter-spacing: .11em; }
.market-stats strong, .treasury-stats strong { margin-top: 8px; color: #f3f8fc; font-size: 21px; letter-spacing: -.035em; }
.market-stats strong em, .treasury-stats strong em { color: #d4a7ff; font-size: 9px; font-style: normal; letter-spacing: .05em; }
.market-stats small, .treasury-stats small { margin-top: 4px; color: #7d91a5; font-size: 9px; }
.market-layout { align-items: start; }
.market-table-panel { min-height: 460px; }
.market-toolbar {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 16px 0 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(136,160,183,.14);
}
.market-filter {
  padding: 6px 8px;
  border: 1px solid rgba(136,160,183,.2);
  color: #8191a4;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .07em;
}
.market-filter b { margin-left: 4px; color: #b6c3d1; font-size: 8px; }
.market-filter.is-active { border-color: rgba(184,115,255,.54); background: rgba(184,115,255,.13); color: #e4c2ff; }
.market-sort {
  margin-left: auto;
  padding: 6px 0 6px 8px;
  border: 0;
  background: transparent;
  color: #7f92a6;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .07em;
}
.market-table-panel .listing {
  padding: 14px 2px;
  border-bottom-color: rgba(136,160,183,.13);
}
.market-table-panel .listing:hover { background: linear-gradient(90deg, rgba(184,115,255,.06), transparent); }
.market-table-panel .listing img { border: 1px solid rgba(136,160,183,.22); }
.market-table-panel .listing-price { color: #ffd083; }
.market-table-panel .listing .button { border-color: rgba(136,160,183,.3); background: rgba(255,255,255,.035); color: #d5e1ed; }
.market-table-panel .listing .button:hover { border-color: var(--accent); color: #fff; }
.buyback-panel {
  min-height: 460px;
  padding: 22px;
  border-color: rgba(70,224,174,.27);
  background:
    radial-gradient(circle at 50% 36%, rgba(70,224,174,.12), transparent 13rem),
    linear-gradient(145deg, rgba(16,31,34,.95), rgba(9,16,22,.95));
}
.vault-heading { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.vault-status { display: inline-flex; align-items: center; gap: 6px; color: #98f6d6; font-size: 8px; font-weight: 800; letter-spacing: .1em; }
.vault-visual {
  position: relative;
  display: grid;
  place-items: center;
  height: 158px;
  margin: 18px -3px 17px;
  overflow: hidden;
  border: 1px solid rgba(70,224,174,.22);
  background:
    linear-gradient(90deg, transparent 49.6%, rgba(70,224,174,.2) 50%, transparent 50.4%),
    linear-gradient(0deg, transparent 49.6%, rgba(70,224,174,.12) 50%, transparent 50.4%),
    radial-gradient(circle, rgba(70,224,174,.16), transparent 58%),
    #091217;
}
.vault-visual::before {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(120deg, transparent 0 17px, rgba(70,224,174,.04) 18px, transparent 19px);
  content: "";
}
.vault-visual img { position: relative; z-index: 2; width: 118px; height: 118px; object-fit: cover; border-radius: 50%; filter: saturate(.78) hue-rotate(63deg) brightness(.75); opacity: .88; }
.vault-ring { position: absolute; z-index: 1; width: 128px; height: 128px; border: 1px solid rgba(70,224,174,.65); border-radius: 50%; box-shadow: 0 0 28px rgba(70,224,174,.22), inset 0 0 30px rgba(70,224,174,.1); }
.vault-ring::before, .vault-ring::after { position: absolute; inset: 10px; border: 1px dashed rgba(70,224,174,.4); border-radius: 50%; content: ""; }
.vault-ring::after { inset: 23px; border-style: solid; border-color: rgba(255,179,63,.45); }
.vault-orbit { position: absolute; z-index: 3; width: 162px; height: 42px; border: 1px solid rgba(255,179,63,.5); border-radius: 50%; transform: rotate(22deg); }
.orbit-b { width: 174px; border-color: rgba(54,216,255,.32); transform: rotate(-36deg); }
.vault-visual > b { position: absolute; right: 14px; bottom: 12px; z-index: 3; color: #b9f6e2; font-size: 8px; letter-spacing: .13em; line-height: 1.4; text-align: right; }
.buyback-panel .muted { color: #94aeb0; }
.buyback-panel .buyback-balance { margin: 14px 0; border-top-color: rgba(70,224,174,.17); border-bottom-color: rgba(70,224,174,.17); }
.buyback-panel .buyback-balance strong { color: #9af4d6; }
.vault-health { display: flex; justify-content: space-between; align-items: center; margin: 0 0 15px; color: #7f9a9d; font-size: 9px; }
.vault-health span { display: inline-flex; align-items: center; gap: 6px; }
.vault-health b { color: #9af4d6; font-size: 8px; letter-spacing: .08em; }
.buyback-panel .button span { margin-left: 8px; font-size: 16px; }
.treasury-intro { margin-bottom: 22px; }
.operator-chip { border-color: rgba(255,179,63,.35); background: rgba(255,179,63,.07); color: #ffd083; }
.operator-chip i { background: var(--accent); box-shadow: 0 0 10px rgba(255,179,63,.8); }
.treasury-stats { margin: 0 0 18px; }
.treasury-stats > div:nth-child(2)::after { border-color: rgba(70,224,174,.18); }
.treasury-stats > div:nth-child(3)::after { border-color: rgba(54,216,255,.18); }
.treasury-stats > div:nth-child(4)::after { border-color: rgba(255,179,63,.18); }
.treasury-stats strong em { color: #9af4d6; }
.treasury-grid { margin-bottom: 18px; }
.treasury-grid .panel { min-height: 345px; }
.split-visual { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; align-items: center; min-height: 156px; margin: 6px 0 5px; }
.split-donut { display: grid; place-items: center; width: 136px; height: 136px; border: 14px solid rgba(70,224,174,.28); border-right-color: rgba(54,216,255,.78); border-top-color: rgba(184,115,255,.8); border-bottom-color: rgba(255,179,63,.75); border-radius: 50%; box-shadow: 0 0 28px rgba(184,115,255,.14); }
.split-donut span { color: #f7fbff; font-size: 21px; font-weight: 800; text-align: center; }
.split-donut small { display: block; margin-top: 3px; color: #8395a6; font-size: 7px; letter-spacing: .08em; }
.split-legend { display: grid; gap: 13px; }
.split-legend div { display: grid; grid-template-columns: 9px minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.split-legend i { width: 8px; height: 8px; border-radius: 2px; }
.legend-buyback { background: #46e0ae; box-shadow: 0 0 8px rgba(70,224,174,.65); }
.legend-rewards { background: #36d8ff; box-shadow: 0 0 8px rgba(54,216,255,.65); }
.legend-ops { background: #ffb33f; box-shadow: 0 0 8px rgba(255,179,63,.65); }
.split-legend span { color: #8ea0b1; font-size: 10px; }
.split-legend b { color: #eaf4fa; font-size: 10px; }
.registry-status { display: flex; align-items: center; gap: 10px; min-height: 54px; margin: 4px 0 10px; padding: 10px; border: 1px solid rgba(255,179,63,.22); background: rgba(255,179,63,.06); }
.registry-pulse { width: 9px; height: 9px; border: 1px solid #ffd083; border-radius: 50%; box-shadow: 0 0 13px rgba(255,179,63,.65); }
.registry-status strong, .registry-status small { display: block; }
.registry-status strong { color: #f8e2b7; font-size: 10px; }
.registry-status small { margin-top: 4px; color: #9b8e77; font-size: 9px; line-height: 1.35; }
.treasury-grid .button { margin-top: 14px; }
.treasury-flow {
  position: relative;
  overflow: hidden;
  padding: 22px;
  background:
    radial-gradient(circle at 94% 10%, rgba(54,216,255,.1), transparent 19rem),
    linear-gradient(145deg, rgba(17,27,39,.93), rgba(8,13,21,.94));
}
.flow-track { display: grid; grid-template-columns: 1.1fr minmax(30px, .5fr) 1.1fr minmax(30px, .5fr) 1.1fr minmax(30px, .5fr) 1.1fr; gap: 10px; align-items: center; margin: 22px 0 17px; }
.flow-node { position: relative; min-height: 105px; padding: 14px 12px 11px; border: 1px solid rgba(136,160,183,.26); background: rgba(8,14,21,.82); }
.flow-node::before { position: absolute; top: -1px; left: 0; width: 45%; height: 2px; background: var(--cyan); content: ""; }
.flow-source::before { background: var(--accent); }
.flow-vault::before { background: var(--success); }
.flow-rewards::before { background: var(--cyan); }
.flow-ops::before { background: var(--violet); }
.flow-node > span { color: #73879a; font-size: 8px; font-weight: 800; letter-spacing: .1em; }
.flow-node > i { display: block; margin: 7px 0 8px; color: #ffd083; font-size: 17px; font-style: normal; }
.flow-vault > i { color: #9af4d6; }
.flow-rewards > i { color: #9ceeff; }
.flow-ops > i { color: #e3b0ff; }
.flow-node strong { display: block; color: #e5eef5; font-size: 10px; letter-spacing: .05em; line-height: 1.25; }
.flow-node small { display: block; margin-top: 6px; color: #8093a5; font-size: 8px; letter-spacing: .08em; }
.flow-line { position: relative; height: 1px; background: linear-gradient(90deg, rgba(136,160,183,.3), rgba(136,160,183,.7)); }
.flow-line::after { position: absolute; right: -1px; top: -3px; border: 3px solid transparent; border-left-color: rgba(136,160,183,.8); content: ""; }
.flow-line b { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); color: #8497a9; font-size: 8px; }
.flow-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 13px; border-top: 1px solid rgba(136,160,183,.13); color: #7e91a3; font-size: 9px; }
.flow-footer span { display: inline-flex; align-items: center; gap: 7px; }
.flow-footer i { background: var(--success); }

@media (max-width: 980px) {
  .market-stats, .treasury-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-track { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 10px; }
  .flow-line { display: none; }
}
@media (max-width: 640px) {
  .market-intro, .treasury-intro { align-items: flex-start; flex-direction: column; }
  .market-live-badge, .operator-chip { margin-top: -8px; }
  .market-stats, .treasury-stats { grid-template-columns: 1fr 1fr; }
  .market-toolbar { flex-wrap: wrap; }
  .market-sort { width: 100%; margin-left: 0; padding-left: 0; text-align: left; }
  .split-visual { grid-template-columns: 120px minmax(0, 1fr); gap: 10px; }
  .split-donut { width: 110px; height: 110px; border-width: 11px; }
  .flow-track { grid-template-columns: 1fr 1fr; }
  .flow-node { min-height: 98px; }
  .flow-footer { align-items: flex-start; flex-direction: column; gap: 10px; }
}
@media (max-width: 420px) {
  .market-stats, .treasury-stats { grid-template-columns: 1fr; }
  .market-stats > div, .treasury-stats > div { min-height: 74px; }
}

/* NFT media safety pass: never crop the ape's face or Gene Pod art. */
.modal-backdrop {
  overflow-y: auto;
  align-items: center;
}
.action-modal {
  width: min(100%, 640px);
  max-height: min(92vh, 760px);
  overflow-y: auto;
}
.action-art {
  height: auto;
  min-height: 220px;
  aspect-ratio: 16 / 9;
  margin: -28px -28px 24px;
  background:
    radial-gradient(circle at 50% 45%, rgba(54,216,255,.12), transparent 55%),
    #090f17;
}
.action-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.action-receipt { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.action-receipt strong { overflow-wrap: anywhere; }
.admin-actions { display: grid; gap: 9px; }
.parent-slot-empty {
  display: flex;
  align-items: center;
  gap: 12px;
  border-style: dashed;
  color: #8a9aac;
  cursor: default;
}
.parent-slot-empty-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px dashed rgba(136,160,183,.38);
  color: #6f8295;
  font-size: 21px;
}
.parent-slot-empty strong, .parent-slot-empty small { display: block; }
.parent-slot-empty small { margin-top: 4px; color: #718397; font-size: 10px; }
.parent-slot-empty:hover { border-color: rgba(136,160,183,.38); box-shadow: none; }

@media (max-width: 640px) {
  .modal-backdrop { padding: 10px; }
  .action-modal { max-height: calc(100vh - 20px); padding: 22px; }
  .action-art { min-height: 170px; margin: -22px -22px 20px; }
  .action-receipt { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .action-modal h2 { font-size: 24px; }
}

@media (max-width: 380px) {
  .action-receipt { grid-template-columns: 1fr; }
  .action-art { min-height: 150px; }
}

/* Launch hand-off state and player-facing social/whitepaper links. */
.token-import-banner {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin: 0 0 18px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 179, 63, .42);
  background:
    linear-gradient(100deg, rgba(255, 179, 63, .14), rgba(255, 179, 63, .04) 46%, rgba(55, 213, 255, .06)),
    rgba(8, 14, 22, .84);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .2), inset 0 1px rgba(255, 255, 255, .06);
  color: #ecf4fb;
}
.token-import-banner::before {
  position: absolute;
  inset: 0;
  border-left: 3px solid var(--accent);
  content: "";
  pointer-events: none;
}
.token-import-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 179, 63, .5);
  border-radius: 50%;
  color: var(--accent);
  font-size: 20px;
  animation: importSpin 2.2s linear infinite;
}
@keyframes importSpin { to { transform: rotate(360deg); } }
.token-import-banner strong {
  display: block;
  color: #fff6e8;
  font-size: 13px;
  letter-spacing: .015em;
}
.token-import-banner p {
  max-width: 760px;
  margin: 5px 0 0;
  color: #aab9c8;
  font-size: 11px;
  line-height: 1.55;
}
.token-import-state {
  padding: 6px 9px;
  border: 1px solid rgba(255, 179, 63, .48);
  border-radius: 999px;
  color: var(--accent);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
}
.social-link,
.whitepaper-link,
.whitepaper-top-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #aab8c7;
  font-size: 11px;
  text-decoration: none;
  transition: color .16s ease, border-color .16s ease, background .16s ease;
}
.social-link {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(133, 156, 180, .28);
  border-radius: 4px;
  background: rgba(14, 21, 30, .62);
  cursor: pointer;
}
.social-link:not(:disabled):hover {
  border-color: rgba(255, 179, 63, .7);
  background: rgba(255, 179, 63, .1);
  color: #fff;
}
.social-link:disabled {
  cursor: not-allowed;
  opacity: .68;
}
.social-link > span { font-size: 10px; letter-spacing: .03em; }
.whitepaper-top-link {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(133, 156, 180, .28);
  border-radius: 4px;
  background: rgba(14, 21, 30, .62);
  color: #d5e1ec;
  font-size: 11px;
}
.whitepaper-top-link:hover {
  border-color: rgba(255, 179, 63, .7);
  background: rgba(255, 179, 63, .1);
  color: #fff;
}
.whitepaper-top-link > span { font-size: 10px; letter-spacing: .03em; }
.whitepaper-link {
  margin-top: 12px;
  color: #8fa2b5;
  font-size: 10px;
}
.whitepaper-link:hover { color: var(--accent); }

@media (max-width: 760px) {
  .token-import-banner { grid-template-columns: auto minmax(0, 1fr); }
  .token-import-state { grid-column: 2; justify-self: start; }
}
@media (max-width: 640px) {
  .token-import-banner { gap: 11px; padding: 14px; }
  .token-import-icon { width: 32px; height: 32px; font-size: 17px; }
  .token-import-banner strong { font-size: 12px; }
  .token-import-banner p { font-size: 10px; }
  .topbar-actions { flex-wrap: wrap; gap: 8px; }
  .whitepaper-top-link { order: 3; }
  .social-link { order: 4; }
}
