/* ======================================================================
   HyperPad hybrid — two rails, one launchpad.
   CORE  : dark CLOB terminal — near-black green, mono ladders, hard edges.
   EVM   : pale-mint editorial (inherits the HyperPad.Fun brand, lives in
           the embedded dapp; the shell only frames it).
   The split landing puts the two worlds face-to-face along a seam.
   ====================================================================== */
:root {
  /* shared type */
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body: "Schibsted Grotesk", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* CORE palette (dark terminal) */
  --c-bg: #07120e;
  --c-bg2: #0a1a14;
  --c-panel: #0d2018;
  --c-ink: #e6f5ee;
  --c-ink2: #8fb5a7;
  --c-ink3: #5d8273;
  --c-green: #41e3ad;
  --c-green2: #2bc795;
  --c-red: #ff6b6b;
  --c-line: rgba(65, 227, 173, 0.16);
  --c-line2: rgba(65, 227, 173, 0.34);

  /* EVM palette (pale mint — mirrors the embedded dapp) */
  --e-bg: #e9f5f0;
  --e-paper: #fbfdfc;
  --e-ink: #0b2e2a;
  --e-ink2: #517069;
  --e-mint: #0d9e84;
  --e-mint2: #12c2a3;
  --e-line: rgba(11, 46, 42, 0.12);

  --radius: 4px;
  --maxw: 1120px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--body); line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  background: var(--c-bg); color: var(--c-ink);
  transition: background 0.5s var(--ease), color 0.5s var(--ease);
}
/* mode theming on <html data-mode=""> */
html[data-mode="evm"] body { background: var(--e-bg); color: var(--e-ink); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.022em; line-height: 1.05; margin: 0; }
.mono { font-family: var(--mono); }
.dim { opacity: 0.6; }

/* ---------- topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 20px;
  padding: 14px 26px;
  background: rgba(7, 18, 14, 0.82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-line);
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease);
}
html[data-mode="evm"] .topbar { background: rgba(233, 245, 240, 0.85); border-color: var(--e-line); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand-mark { color: var(--c-green); display: grid; place-items: center; transition: color 0.5s; }
html[data-mode="evm"] .brand-mark { color: var(--e-mint); }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.live-pill {
  font-family: var(--mono); font-size: 0.74rem; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--c-line2); color: var(--c-green);
}
html[data-mode="evm"] .live-pill { border-color: var(--e-line); color: var(--e-mint); }

/* ---------- the rail switch ---------- */
.rail-switch { display: flex; align-items: center; gap: 12px; margin: 0 auto; }
.rail-tab {
  font: inherit; background: none; border: none; cursor: pointer; color: inherit;
  display: inline-flex; align-items: baseline; gap: 8px;
  font-family: var(--display); font-weight: 800; font-size: 0.95rem; letter-spacing: 0.04em;
  opacity: 0.55; transition: opacity 0.25s var(--ease); padding: 4px 2px;
}
.rail-tab[aria-selected="true"], .rail-tab:hover { opacity: 1; }
.rail-sub { font-family: var(--mono); font-weight: 400; font-size: 0.62rem; opacity: 0.7; letter-spacing: 0; }
.rail-dot { width: 8px; height: 8px; border-radius: 50%; align-self: center; }
.rail-dot.core { background: var(--c-green); box-shadow: 0 0 8px var(--c-green); }
.rail-dot.evm { background: var(--e-mint2); box-shadow: 0 0 8px var(--e-mint2); }
.rail-track {
  width: 58px; height: 22px; border-radius: 999px; position: relative;
  border: 1px solid var(--c-line2); background: rgba(65, 227, 173, 0.07);
  transition: border-color 0.5s;
}
html[data-mode="evm"] .rail-track { border-color: var(--e-line); background: rgba(13, 158, 132, 0.08); }
.rail-thumb {
  position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--c-green); transition: transform 0.35s var(--ease), background 0.35s;
}
html[data-mode="split"] .rail-thumb { transform: translateX(19px); opacity: 0.45; }
html[data-mode="evm"]   .rail-thumb { transform: translateX(38px); background: var(--e-mint); }

/* ---------- split landing ---------- */
.split {
  display: grid; grid-template-columns: 1fr 14px 1fr;
  min-height: calc(100vh - 64px); position: relative;
}
.half {
  border: none; cursor: pointer; text-align: left; font: inherit; position: relative;
  overflow: hidden; padding: clamp(24px, 4.5vw, 84px);
  display: flex; align-items: center; justify-content: space-between; gap: clamp(16px, 3vw, 44px);
  transition: filter 0.35s var(--ease);
}
.half:hover { filter: brightness(1.08); }
.half-core { background: linear-gradient(160deg, var(--c-bg) 0%, var(--c-bg2) 70%); color: var(--c-ink); }
.half-evm  { background: linear-gradient(200deg, var(--e-bg) 0%, var(--e-paper) 80%); color: var(--e-ink); }
.half-inner { position: relative; z-index: 2; max-width: 440px; min-width: 0; }
.half-eyebrow { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; margin: 0 0 18px; opacity: 0.85; }
.half-title { font-size: clamp(2.4rem, 5.4vw, 4.6rem); font-weight: 800; }
.half-core .half-title { color: var(--c-green); text-shadow: 0 0 38px rgba(65, 227, 173, 0.25); }
.half-evm  .half-title { color: var(--e-ink); }
.half-sub { margin: 18px 0 14px; font-size: 1.02rem; opacity: 0.85; max-width: 38ch; }
.half-feats { list-style: none; margin: 0 0 26px; padding: 0; font-size: 0.78rem; line-height: 2; opacity: 0.75; }
.half-cta {
  font-family: var(--display); font-weight: 700; font-size: 1.02rem;
  border-bottom: 2px solid currentColor; padding-bottom: 3px;
}
.core-cta { color: var(--c-green); }
.evm-cta { color: var(--e-mint); }

.pulse { width: 8px; height: 8px; border-radius: 50%; display: inline-block; animation: pulse 2s infinite; }
.pulse.core { background: var(--c-green); } .pulse.evm { background: var(--e-mint2); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

/* seam */
.seam { background: linear-gradient(180deg, var(--c-green), var(--e-mint2)); position: relative; }
.seam-badge {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: #0b1f18; color: var(--c-green); border: 2px solid var(--c-green);
  font-size: 1.1rem; z-index: 3; box-shadow: 0 0 24px rgba(65, 227, 173, 0.45);
}

/* core half decoration: a CLOB ladder — IN THE FLEX FLOW next to the copy, so it can never
   overlap: the layout reserves real space for it, and it slims down before space runs out. */
/* fixed-width column: the bar-width flicker animates INSIDE it, so the ladder never resizes and
   the text beside it stays perfectly still (overflow:hidden is the belt-and-suspenders guard). */
.ladder { flex: 0 0 196px; width: 196px; overflow: hidden; opacity: 0.85; font-family: var(--mono); font-size: 0.72rem; pointer-events: none; }
@media (max-width: 1280px) {  /* slim ladder when each half gets narrow */
  .ladder { flex-basis: 140px; width: 140px; font-size: 0.62rem; }
  .ladder .px { width: 56px !important; }
  .ladder .bar { max-width: 54px; }
}
@media (max-width: 999px) { .ladder { display: none; } }  /* halves too narrow for both columns */
.ladder .row { display: flex; gap: 10px; padding: 2.5px 0; align-items: center; }
.ladder .px { width: 74px; text-align: right; }
.ladder .bar { height: 10px; border-radius: 1px; }
.ladder .ask .px { color: var(--c-red); } .ladder .ask .bar { background: rgba(255, 107, 107, 0.32); }
.ladder .bid .px { color: var(--c-green); } .ladder .bid .bar { background: rgba(65, 227, 173, 0.32); }
.ladder .spread { color: var(--c-ink3); padding: 6px 0; text-align: center; letter-spacing: 0.1em; }

/* evm half decoration: soft AMM wave bars */
.wavebars { position: absolute; right: clamp(8px, 5vw, 70px); bottom: 10%; display: flex; gap: 10px; align-items: flex-end; height: 180px; z-index: 1; pointer-events: none; }
@media (max-width: 1100px) { .wavebars { display: none; } }
.wavebars i { width: 16px; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, var(--e-mint2), var(--e-mint)); opacity: 0.35; animation: bars 3.2s var(--ease) infinite; }
.wavebars i:nth-child(1) { height: 40%; animation-delay: 0s; }
.wavebars i:nth-child(2) { height: 65%; animation-delay: 0.2s; }
.wavebars i:nth-child(3) { height: 50%; animation-delay: 0.4s; }
.wavebars i:nth-child(4) { height: 85%; animation-delay: 0.6s; }
.wavebars i:nth-child(5) { height: 58%; animation-delay: 0.8s; }
.wavebars i:nth-child(6) { height: 74%; animation-delay: 1.0s; }
.wavebars i:nth-child(7) { height: 47%; animation-delay: 1.2s; }
@keyframes bars { 0%,100% { transform: scaleY(1); } 50% { transform: scaleY(1.18); } }

/* ---------- views ---------- */
/* visibility is driven entirely by html[data-mode] (set pre-paint) — no landing flash */
html[data-mode="split"] .view { display: none; }
html[data-mode="core"] #split, html[data-mode="core"] #view-evm { display: none; }
html[data-mode="evm"] #split, html[data-mode="evm"] #view-core { display: none; }
.view { max-width: var(--maxw); margin: 0 auto; padding: 30px 26px 80px; }
.view-evm { max-width: none; padding: 0; }
#evm-frame { width: 100%; height: calc(100vh - 64px); border: none; display: block; background: var(--e-bg); }

/* core connect button — only on the CORE rail (the EVM dapp has its own) */
.btn-core-connect {
  display: none; font: inherit; font-weight: 600; cursor: pointer; border-radius: 4px;
  padding: 8px 16px; font-size: 0.84rem; border: 1px solid var(--c-green);
  color: var(--c-green); background: transparent; transition: background 0.2s var(--ease), color 0.2s;
}
/* the one topbar connect serves both rails (Core wallet on Core, proxies the embedded dapp on EVM) */
html[data-mode="core"] .btn-core-connect, html[data-mode="evm"] .btn-core-connect { display: inline-flex; }
.btn-core-connect:hover { background: var(--c-green); color: #06231a; }
.btn-core-connect.connected { font-family: var(--mono); font-size: 0.74rem; }

/* core hero */
.hero-core { padding: 54px 0 36px; max-width: 760px; }
.eyebrow { font-size: 0.74rem; letter-spacing: 0.1em; display: flex; align-items: center; gap: 8px; color: var(--c-ink2); margin: 0 0 16px; }
.hero-core h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
.grad-core { background: linear-gradient(90deg, var(--c-green), #9ef7d8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { color: var(--c-ink2); max-width: 60ch; margin: 18px 0 0; }

/* auction widget */
.card-core {
  background: var(--c-panel); border: 1px solid var(--c-line); border-radius: 6px;
  padding: 26px clamp(18px, 3vw, 34px); margin: 26px 0;
}
.auction-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 20px; }
.auction-head h2 { font-size: 1.3rem; }
.live-tag {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.12em; padding: 3px 9px;
  border-radius: 999px; background: rgba(65, 227, 173, 0.14); color: var(--c-green);
  border: 1px solid var(--c-line2); animation: pulse 2s infinite;
}
.auction-head .mono { margin-left: auto; }
.auction-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.auc-stat { display: flex; flex-direction: column; gap: 4px; }
.auc-label { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-ink3); }
.auc-val { font-size: clamp(1.2rem, 2.6vw, 1.9rem); font-weight: 700; color: var(--c-green); }
.auc-usd { font-size: 0.72rem; color: var(--c-ink2); }
.decay { margin: 24px 0 10px; height: 8px; border-radius: 999px; background: rgba(65, 227, 173, 0.1); position: relative; overflow: visible; }
.decay-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--c-green2), var(--c-green)); width: 0%; transition: width 1s var(--ease); }
.decay-floor { position: absolute; right: 0; top: 14px; font-size: 0.62rem; color: var(--c-ink3); }
.auc-note { font-size: 0.7rem; margin: 16px 0 0; }

/* launches grid (core) */
.sales-head { display: flex; align-items: baseline; gap: 16px; margin: 38px 0 18px; }
.sales-head h2 { font-size: 1.5rem; }
.badge-preview {
  margin-left: auto; font-size: 0.64rem; letter-spacing: 0.1em; padding: 4px 10px;
  border-radius: 3px; border: 1px dashed var(--c-line2); color: var(--c-ink2);
}
.core-banner {
  font-size: 0.72rem; line-height: 1.8; color: var(--c-ink2);
  background: var(--c-panel); border: 1px dashed var(--c-line2); border-radius: 5px;
  padding: 12px 16px; margin: 0 0 16px;
}
.trust-strip {
  font-size: 0.74rem; line-height: 1.7; color: var(--c-ink2);
  background: rgba(65, 227, 173, 0.06); border: 1px solid var(--c-line2);
  border-left: 3px solid var(--c-green); border-radius: 5px;
  padding: 11px 15px; margin: 0 0 16px;
}
.trust-strip b { color: var(--c-ink); }
.trust-strip .ts-lock { color: var(--c-green); }
.trust-strip .ts-dim { color: var(--c-ink3); }
.core-banner a, .core-banner button.linkish {
  color: var(--c-green); background: none; border: none; padding: 0; font: inherit;
  cursor: pointer; text-decoration: underline;
}
.grid-core { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 16px; }
.lcard {
  background: var(--c-panel); border: 1px solid var(--c-line); border-radius: 6px; padding: 20px;
  transition: border-color 0.25s var(--ease), transform 0.18s var(--ease), box-shadow 0.25s var(--ease);
}
.lcard:hover { border-color: var(--c-line2); transform: translateY(-2px); }
.lcard.clickable { cursor: pointer; }
.lcard.clickable:hover { box-shadow: 0 0 0 1px var(--c-green2), 0 8px 30px rgba(0, 0, 0, 0.35); }
.lcard-go { margin-top: 12px; font-family: var(--mono); font-size: 0.68rem; color: var(--c-green); opacity: 0; transition: opacity 0.2s; }
.lcard.clickable:hover .lcard-go { opacity: 1; }
.lcard-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.lcard-avatar {
  width: 40px; height: 40px; border-radius: 6px; display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; color: #06231a;
  background: linear-gradient(145deg, var(--c-green), var(--c-green2));
}
.lcard-name { font-weight: 700; font-family: var(--display); }
.lcard-state { margin-left: auto; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em; padding: 3px 9px; border-radius: 999px; }
.lcard-state.raising { color: var(--c-green); background: rgba(65, 227, 173, 0.12); }
.lcard-state.queued { color: #ffd166; background: rgba(255, 209, 102, 0.1); }
.lcard-state.live { color: #9ef7d8; background: rgba(158, 247, 216, 0.1); }
.lcard-state.failed { color: var(--c-red); background: rgba(255, 107, 107, 0.1); }
.lcard-bar { height: 7px; border-radius: 999px; background: rgba(65, 227, 173, 0.1); overflow: hidden; margin: 12px 0 8px; }
.lcard-fill { height: 100%; background: linear-gradient(90deg, var(--c-green2), var(--c-green)); }
.lcard-meta { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 0.7rem; color: var(--c-ink2); }
.lcard-bonus { margin-top: 12px; font-family: var(--mono); font-size: 0.66rem; color: var(--c-ink3); }
.lcard-bonus b { color: var(--c-green); }

/* steps (core) */
.how-core { margin-top: 56px; }
.how-core h2 { font-size: 1.5rem; margin-bottom: 22px; }
.steps-core { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.steps-core li { background: var(--c-panel); border: 1px solid var(--c-line); border-radius: 6px; padding: 20px; }
.step-n { color: var(--c-green); font-size: 0.74rem; letter-spacing: 0.14em; }
.steps-core h3 { margin: 10px 0 8px; font-size: 1.05rem; }
.steps-core p { margin: 0; font-size: 0.86rem; color: var(--c-ink2); }

/* ---------- agent kit callout (core view) ---------- */
.agent-cta {
  margin-top: 56px;
  background: linear-gradient(160deg, var(--c-panel) 0%, var(--c-bg2) 100%);
  border: 1px solid var(--c-line2); border-radius: 8px;
  padding: clamp(22px, 3vw, 34px);
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
}
.agent-cta-body { flex: 1 1 440px; min-width: 0; }
.agent-cta-eyebrow {
  font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  display: flex; align-items: center; gap: 8px; color: var(--c-ink2); margin: 0 0 12px;
}
.agent-cta h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); }
.agent-cta-sub { color: var(--c-ink2); max-width: 62ch; margin: 12px 0 16px; font-size: 0.96rem; }
.agent-cta-sub b { color: var(--c-ink); }
.agent-cta-feats { list-style: none; margin: 0; padding: 0; font-size: 0.72rem; line-height: 2; color: var(--c-ink3); }
.agent-cta-feats code { font-size: 0.92em; background: rgba(65, 227, 173, 0.1); color: var(--c-green); padding: 1px 6px; border-radius: 3px; }
.agent-cta-link {
  flex: 0 0 auto; font-family: var(--display); font-weight: 700; font-size: 1rem;
  text-decoration: none; color: #06231a; background: var(--c-green); border-radius: 4px;
  padding: 12px 20px; transition: filter 0.15s var(--ease);
}
.agent-cta-link:hover { filter: brightness(1.1); }
@media (max-width: 700px) { .agent-cta-link { width: 100%; text-align: center; } }

/* footer links cluster */
.foot-links { display: inline-flex; align-items: center; gap: 16px; font-size: 0.78rem; }
.foot-links a { color: var(--c-green); text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
html[data-mode="evm"] .foot-links a { color: var(--e-mint); }

/* ---------- core launch drawer ---------- */
.cd-overlay {
  position: fixed; inset: 0; z-index: 60; background: rgba(4, 10, 8, 0.66);
  backdrop-filter: blur(4px); display: flex; justify-content: flex-end;
}
.cdrawer {
  width: min(480px, 96vw); height: 100%; overflow-y: auto;
  background: var(--c-bg2); border-left: 1px solid var(--c-line2);
  padding: 28px 26px 40px; color: var(--c-ink);
  animation: cd-in 0.28s var(--ease);
}
@keyframes cd-in { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.cd-close {
  position: sticky; top: 0; float: right; background: none; border: 1px solid var(--c-line);
  color: var(--c-ink2); border-radius: 4px; width: 32px; height: 32px; cursor: pointer; font-size: 0.9rem;
}
.cd-close:hover { color: var(--c-ink); border-color: var(--c-line2); }
.cd-head { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.cd-title { font-size: 1.5rem; }
.cd-addr { font-family: var(--mono); font-size: 0.66rem; color: var(--c-ink3); word-break: break-all; margin: 2px 0 18px; }
.cd-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 16px 0; }
.cd-stat { background: var(--c-panel); border: 1px solid var(--c-line); border-radius: 5px; padding: 10px 12px; }
.cd-stat .k { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-ink3); display: block; }
.cd-stat .v { font-family: var(--mono); font-size: 0.92rem; color: var(--c-ink); }
.cd-section { margin-top: 22px; }
.cd-section h3 { font-size: 1.02rem; margin-bottom: 10px; }
.cd-field { display: flex; gap: 8px; }
.cd-field input {
  flex: 1; font: inherit; font-family: var(--mono); font-size: 0.95rem;
  background: var(--c-panel); color: var(--c-ink); border: 1px solid var(--c-line2);
  border-radius: 4px; padding: 11px 12px; outline: none;
}
.cd-field input:focus { border-color: var(--c-green2); }
.cd-max { font: inherit; font-family: var(--mono); font-size: 0.7rem; background: none; border: 1px solid var(--c-line2); color: var(--c-green); border-radius: 4px; padding: 0 12px; cursor: pointer; }
.cd-btn {
  width: 100%; margin-top: 10px; font: inherit; font-weight: 700; cursor: pointer;
  background: var(--c-green); color: #06231a; border: none; border-radius: 4px; padding: 13px;
  transition: filter 0.15s;
}
.cd-btn:hover:not(:disabled) { filter: brightness(1.1); }
.cd-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.cd-btn.danger { background: transparent; border: 1px solid var(--c-red); color: var(--c-red); }
.cd-btn.danger:hover:not(:disabled) { background: var(--c-red); color: var(--c-bg); }
.cd-note { font-family: var(--mono); font-size: 0.68rem; color: var(--c-ink2); margin-top: 10px; line-height: 1.7; }
.cd-trust { color: var(--c-green2); border-top: 1px dashed var(--c-line); padding-top: 9px; }
.cd-status { font-family: var(--mono); font-size: 0.72rem; margin-top: 10px; min-height: 1.2em; color: var(--c-green); }
.cd-status.err { color: var(--c-red); }
.cd-pos { border: 1px dashed var(--c-line2); border-radius: 5px; padding: 12px 14px; margin-top: 10px; }
.cd-pos .row { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 0.74rem; padding: 3px 0; color: var(--c-ink2); }
.cd-pos .row b { color: var(--c-green); font-weight: 500; }
.cd-flow { display: grid; gap: 8px; }
.cd-flow-row {
  display: grid; grid-template-columns: 20px 1fr auto; align-items: baseline; column-gap: 10px;
  background: var(--c-panel); border: 1px solid var(--c-line); border-radius: 5px; padding: 10px 12px;
}
.cf-ico { grid-row: 1 / span 2; align-self: center; font-size: 0.98rem; }
.cf-k { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-ink3); }
.cf-v { font-family: var(--mono); font-size: 0.88rem; color: var(--c-ink); text-align: right; white-space: nowrap; }
.cf-v .dim { color: var(--c-ink3); }
.cf-note { grid-column: 2 / span 2; font-family: var(--mono); font-size: 0.63rem; color: var(--c-ink2); margin-top: 3px; line-height: 1.5; }

/* ---------- footer ---------- */
.foot {
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  max-width: var(--maxw); margin: 0 auto; padding: 26px;
  border-top: 1px solid var(--c-line); font-size: 0.8rem; color: var(--c-ink3);
  transition: border-color 0.5s;
}
/* EVM rail uses the embedded dapp's own footer (the full-height iframe makes the shell footer
   unreachable below it) — hide the shell footer here so there's exactly one. */
html[data-mode="evm"] .foot { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; grid-template-rows: 1fr 10px 1fr; min-height: auto; }
  .half { min-height: 58vh; }
  .seam { height: 10px; }
  .ladder { display: none; }
  .rail-sub { display: none; }
  .auction-grid { grid-template-columns: 1fr; }
}
