/* Eggd's look: a warm night, rendered gold eggs on a lit floor, heavy tight headlines, mono for every number.
   base.css holds the shared structure; this file is the look. Gold only ever means the egg and the money paid
   to it, plus the one primary action. */

/* ---------- type ---------- */
h1, h2, .display { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); }
h1.display { font-size: clamp(44px, 6.3vw, 92px); line-height: 0.94; }
h1 { font-size: clamp(38px, 5vw, 66px); line-height: 0.98; }
h2 { font-size: clamp(32px, 4.2vw, 60px); line-height: 1; }
h3, .h3 { font-family: var(--font-text); font-weight: 700; letter-spacing: -0.01em; }
.accent, .gold { color: var(--gold-text); }
.lede { color: var(--ink-2); }
.lede b { color: var(--ink); font-weight: 700; }
.kicker { color: var(--ink-2); font-size: 12px; letter-spacing: 0.14em; }
.kicker-dot { background: var(--gold); box-shadow: 0 0 0 4px var(--gold-wash); }
.label { color: var(--muted); }
.fine { font-size: 13.5px; color: var(--muted); }
.muted { color: var(--muted); }
::selection { background: var(--gold); color: var(--on-accent); }

/* ---------- shell ---------- */
body { background: var(--bg); }
#top { background: color-mix(in srgb, var(--bg) 84%, transparent); border-bottom: 1px solid var(--line); }
.brand svg { height: 28px; width: auto; display: block; }
.nav a { color: var(--ink-2); }
.nav a:hover, .nav a[aria-current] { color: var(--ink); background: var(--surface-2); }
.demo-strip { background: var(--bg-2); color: var(--ink-2); border-bottom: 1px solid var(--line); }
.demo-strip b { color: var(--gold-text); }
.btn { background: var(--surface-2); border-color: var(--line-2); color: var(--ink); }
.btn:hover { border-color: var(--line-3); }
.btn.primary { background: var(--gold); color: var(--on-accent); border-color: transparent; box-shadow: 0 0 0 1px rgba(255, 220, 140, 0.25) inset, 0 10px 30px -8px var(--gold-glow); font-weight: 700; }
.btn.primary:hover { background: var(--gold-2); filter: none; }
.btn.ghost-btn { background: transparent; }
.btn[disabled] { box-shadow: none; }
.ca { border-color: var(--line-2); }
.ca.small { background: var(--bg-2); }
.ca-soon { color: var(--gold-text); }
.chip { background: var(--surface-2); color: var(--ink-2); border-color: var(--line); }
.chip.stage { border-color: transparent; background: var(--surface-2); }
.chip.stage-cracking, .chip.stage-peeking, .chip.gold-chip { background: var(--gold-wash); color: var(--gold-text); border-color: transparent; }
.chip.stage-hatched { background: var(--gold); color: var(--on-accent); }
.chip.done { color: var(--good); }
.card, .step { background: var(--surface); border-color: var(--line); }
.seg { background: var(--bg-2); border-color: var(--line); }
.seg button, .chips button { color: var(--ink-2); }
.chips button { background: var(--surface); border-color: var(--line); }
.seg button[aria-pressed="true"], .chips button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.input, .prefix, .drop { background: var(--bg-2); border-color: var(--line-2); }
.modal-veil { background: rgba(5, 4, 3, 0.7); }
.modal-panel { background: var(--surface); border-color: var(--line-2); }
.menu { background: var(--surface-2); }
.toast { background: var(--ink); color: var(--bg); }
.banner { background: var(--surface); }
.live-dot { background: var(--good); }
.coin-art.drawn { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.03em; }
.egg-art { display: inline-block; line-height: 0; flex: none; }
.egg-art svg { width: 100%; height: auto; overflow: visible; }
.demo-note { font-size: 13px; color: var(--ink-2); }
.demo-note b { color: var(--gold-text); }
.note { font-size: 13.5px; color: var(--ink-2); padding: 10px 12px; border-radius: var(--r-sm); background: var(--bg-2); }
.section-tight { padding-top: 40px; display: grid; gap: 14px; }
ul.plain { display: grid; gap: 8px; }
ul.plain li { position: relative; padding-left: 18px; color: var(--ink-2); }
ul.plain li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); opacity: 0.7; }
.link-arrow { color: var(--ink-2); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-3); }
.link-arrow:hover { color: var(--ink); }

/* the footer, with the giant faint wordmark */
#foot { background: var(--bg); border-top: 1px solid var(--line); overflow: hidden; padding-bottom: 0; }
.foot-brand svg { height: 32px; width: auto; }
.foot-links { gap: 48px; }
.foot-col { display: grid; gap: 8px; align-content: start; }
.foot-col a { color: var(--ink-2); }
.foot-col a:hover { color: var(--ink); }
.foot-base { border-top-color: var(--line); }
.foot-base p { max-width: 72ch; }
.foot-giant { grid-column: 1 / -1; color: rgba(242, 180, 60, 0.08); margin: 40px auto -6%; width: min(100%, 980px); }
.foot-giant svg { width: 100%; height: auto; display: block; }

/* a stage change to hatched plays one hatch pop (off with the motion switch) */
.hatch-now .egg-art { animation: hatch 700ms var(--ease) both; }
@keyframes hatch { 0% { transform: scale(.86); opacity: .4; } 60% { transform: scale(1.04); opacity: 1; } 100% { transform: scale(1); } }

/* ---------- home: the hero ---------- */
.hero { position: relative; display: block; padding-top: clamp(28px, 4vw, 48px); overflow: hidden; }
.hero h1.display { max-width: 16ch; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 45% at 50% 0%, rgba(242, 170, 50, 0.08), transparent 70%); pointer-events: none; }
.hero-copy { position: relative; display: grid; justify-items: center; text-align: center; }
.pill-kicker { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.02); font: 500 12px var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 20px; }
.hero-copy .lede { margin-top: 16px; max-width: 42em; font-size: clamp(17px, 1.6vw, 20px); }
.hero-copy .ctas { justify-content: center; margin-top: 22px; }
.stage-floor { position: relative; margin-top: 6px; padding: 18px 0 34px;
  background:
    radial-gradient(50% 70% at 50% 72%, rgba(242, 166, 46, 0.28), transparent 70%),
    radial-gradient(circle, rgba(246, 210, 150, 0.16) 1.2px, transparent 1.6px) 0 0 / 14px 14px; }
.stage-floor::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to bottom, var(--bg), transparent 16%, transparent 84%, var(--bg)); }
.stage-floor > .wrap { position: relative; z-index: 1; display: grid; justify-items: center; }
.bubble { position: relative; max-width: 460px; padding: 14px 20px 16px; border-radius: 18px; border: 1px solid var(--line-2); background: var(--surface); text-align: center; display: grid; gap: 6px; margin-bottom: 18px; box-shadow: var(--shadow); }
.bubble::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 14px; height: 14px; transform: translateX(-50%) rotate(45deg); background: var(--surface); border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.bubble-who { font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-text); font-weight: 600; }
.bubble p { font-size: 15px; color: var(--ink); }
.bubble-link { font-size: 13px; color: var(--gold-text); }
.lineup { display: grid; grid-template-columns: repeat(4, minmax(0, 220px)); gap: clamp(8px, 3vw, 44px); justify-content: center; align-items: end; width: 100%; }
.stage-btn { display: grid; justify-items: center; gap: 6px; padding: 0; border: 0; background: none; cursor: pointer; color: var(--ink-2); }
.stage-btn .stage-art { display: block; width: 100%; } .stage-btn svg { width: 100%; height: auto; transition: transform 380ms var(--ease), filter 380ms var(--ease); filter: drop-shadow(0 22px 22px rgba(0, 0, 0, 0.55)) brightness(0.86); }
.stage-btn:hover svg { transform: translateY(-6px); filter: drop-shadow(0 26px 24px rgba(0, 0, 0, 0.55)) brightness(1); }
.stage-btn.on svg { transform: translateY(-10px) scale(1.04); filter: drop-shadow(0 30px 28px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 30px rgba(242, 170, 50, 0.35)) brightness(1.05); }
.stage-chip { padding: 5px 14px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--bg-2); font-size: 13px; }
.stage-btn.on .stage-chip { border-color: var(--gold); color: var(--gold-text); }
.stage-chip .mono { color: var(--muted); font-size: 12px; }
.find { display: flex; gap: 8px; width: min(560px, 100%); margin-top: 22px; padding: 6px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--surface); }
.find-input { flex: 1; min-width: 0; height: 42px; border: 0; background: none; padding: 0 16px; font-size: 16px; color: var(--ink); }
.find-input:focus { outline: none; }
.find:focus-within { border-color: var(--gold); }
.find .btn { height: 42px; }

/* the live strip: four big numbers and the nest's running feed */
.live-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.012); }
.stat-cells { display: grid; grid-template-columns: repeat(4, 1fr); }
.cell { display: grid; gap: 6px; align-content: start; padding: 22px 22px 20px; border-left: 1px solid var(--line); }
.cell:first-child { border-left: 0; padding-left: 0; }
.cell b { font: 500 clamp(26px, 2.6vw, 36px) var(--font-mono); letter-spacing: -0.03em; }
.cell-sub { font-size: 13px; }
.ticker { display: flex; align-items: center; border-top: 1px solid var(--line); height: 54px; overflow: hidden; }
.ticker-label { flex: none; display: inline-flex; align-items: center; gap: 10px; padding: 0 22px 0 max(var(--gut), calc((100vw - var(--wrap)) / 2)); height: 100%; border-right: 1px solid var(--line); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); background: var(--bg); position: relative; z-index: 1; }
.ticker-window { flex: 1; overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 4%, #000 92%, transparent); mask-image: linear-gradient(to right, transparent, #000 4%, #000 92%, transparent); }
.ticker-track { display: inline-flex; white-space: nowrap; animation: tick 70s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }
.tick { display: inline-flex; align-items: center; gap: 10px; padding: 0 26px; border-right: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.tick-egg svg { display: block; }

/* ---------- chapters ---------- */
.chapter { padding-top: clamp(72px, 9vw, 128px); }
.chapter-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding-bottom: 22px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.kicker.chap { margin-bottom: 14px; }
.chap-n { color: var(--gold-text); font-weight: 600; }

/* proof: the books, big */
.proof-big { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; padding: 26px 28px; border-radius: 26px; border: 1px solid rgba(95, 211, 154, 0.22); background: linear-gradient(135deg, rgba(95, 211, 154, 0.07), transparent 55%), var(--surface); }
.proof-hero { display: flex; align-items: end; gap: 14px; max-width: 380px; }
.proof-num { font: 700 96px/0.82 var(--font-display); color: var(--good); letter-spacing: -0.06em; }
.proof-hero span { font-size: 17px; font-weight: 600; color: var(--ink); padding-bottom: 8px; }
.proof-cells { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.proof-cells > div { display: grid; gap: 8px; padding: 16px 18px; border-left: 1px solid var(--line); }
.proof-cells > div:first-child { border-left: 0; }
.proof-cells b { font: 500 18px var(--font-mono); }
.proof-rows { display: grid; gap: 10px; margin-top: 12px; }
.proof-row { display: grid; grid-template-columns: 96px 70px 90px 120px 1fr auto 300px; align-items: center; gap: 14px; padding: 16px 20px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); transition: border-color var(--t) var(--ease); }
.proof-row:hover { border-color: var(--line-3); }
.ok-mark { color: var(--good); font-size: 12.5px; }
.proof-row .to { font-size: 12.5px; }
.track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.track i { font: 500 11px var(--font-mono); font-style: normal; text-align: center; padding: 5px 0; border-radius: 8px; background: var(--bg-2); color: var(--muted); }
.track i.on { background: var(--gold-wash); color: var(--gold-text); box-shadow: inset 0 0 0 1px rgba(242, 180, 60, 0.45); }
.paid-kind { color: var(--gold-text) !important; border-color: rgba(242, 180, 60, 0.45) !important; background: var(--gold-wash); }
.proof-note { margin-top: 14px; }

/* 01: the egg's life, as a lit diorama per stage */
.room-card { display: grid; grid-template-columns: 0.9fr 1.1fr; align-items: center; min-height: 520px; border-radius: 30px; border: 1px solid var(--line); background: radial-gradient(70% 80% at 72% 55%, rgba(242, 160, 40, 0.12), transparent 70%), var(--bg-2); overflow: hidden; }
.room-copy { display: grid; gap: 16px; align-content: center; padding: 40px 0 40px 44px; }
.room-copy .kicker { color: var(--gold-text); margin: 0; }
.room-title { font: var(--display-weight) clamp(52px, 6vw, 88px)/0.9 var(--font-display); letter-spacing: var(--display-tracking); }
.room-lede { font-size: 18px; color: var(--ink); max-width: 30ch; }
.room-lines { display: grid; gap: 10px; }
.room-lines li { display: flex; gap: 12px; align-items: baseline; color: var(--ink-2); }
.room-lines li::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--gold); flex: none; transform: translateY(-2px); }
.room-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.room-count { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.room-count i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.room-art { display: grid; place-items: center; padding: 30px 20px; } .room-art svg { width: min(460px, 100%); height: auto; }
.room-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
.room-tab { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; text-align: left; }
.tab-egg svg { display: block; }
.room-tab span { display: grid; gap: 2px; }
.room-tab .mono { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.room-tab.on { border-color: var(--gold); box-shadow: inset 0 -2px 0 var(--gold); }

/* 02: three steps with a piece of product in each */
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps3 li { display: grid; gap: 10px; align-content: start; padding: 24px; border-radius: 24px; border: 1px solid var(--line); background: var(--surface); }
.steps3 .step-n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold-text); font-size: 13px; }
.steps3 h3 { font: var(--display-weight) 30px/1 var(--font-display); letter-spacing: -0.03em; }
.mini { display: grid; gap: 10px; margin-top: 6px; padding: 16px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); }
.mini-field { display: flex; gap: 6px; align-items: center; height: 42px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); font-weight: 700; }
.mini-pay { font-size: 14px; color: var(--ink-2); }
.mini-egg { grid-template-columns: auto 1fr; align-items: center; }
.mini p { font-size: 14px; }

/* the split */
.split-card { display: grid; gap: 18px; padding: 26px; border-radius: 26px; border: 1px solid var(--line); background: var(--surface); }
.split-roles4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.split-roles4 li { display: grid; gap: 4px; padding: 14px 16px; border-radius: 16px; background: var(--bg-2); }
.split-roles4 .egg-role { box-shadow: inset 0 0 0 1px rgba(242, 180, 60, 0.45); background: var(--gold-wash); }
.split-roles4 .egg-role b { color: var(--gold-text); }

/* the house coin + wallet signs */
.home-trust { align-items: stretch; }
.signs { display: grid; gap: 10px; align-content: start; }
.signs h3 { font: var(--display-weight) 28px/1.05 var(--font-display); letter-spacing: -0.03em; }

/* the closing band */
.band { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 30px; padding: 30px 36px; margin-top: clamp(72px, 9vw, 120px); border-radius: 32px; border: 1px solid var(--line); background: radial-gradient(60% 120% at 10% 50%, rgba(242, 160, 40, 0.16), transparent 70%), var(--surface); }
.band h2 { font-size: clamp(30px, 3.6vw, 48px); }
.band p { margin-top: 10px; max-width: 40em; }
.band-chick svg { display: block; }

/* ---------- the carton (the nest's newest eggs) ---------- */
.carton { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; padding: 14px; border-radius: 30px; border: 1px solid var(--line); background: var(--carton); box-shadow: var(--shadow); }
.cup { position: relative; display: grid; justify-items: center; align-content: end; gap: 4px; min-height: 182px; padding: 14px 8px 14px; border-radius: 26px 26px 40px 40px; background: radial-gradient(ellipse 70% 50% at 50% 70%, rgba(242, 166, 46, 0.2), transparent 75%), var(--bg-2); border: 1px solid rgba(255, 230, 190, 0.05); text-align: center; transition: transform var(--t) var(--ease), border-color var(--t) var(--ease); }
a.cup:hover { transform: translateY(-2px); border-color: var(--line-3); }
.cup .egg-art { margin-bottom: 4px; }
.cup-name { font-weight: 700; font-size: 13.5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cup-paid { font: 500 12px var(--font-mono); }
.cup-candle { display: none; font: 500 11px var(--font-mono); color: var(--gold-text); }
.cup:hover .cup-candle, .cup:focus-visible .cup-candle { display: block; }
.cup:hover .cup-paid, .cup:focus-visible .cup-paid { display: none; }
.cup.next { background: transparent; border: 1.5px dashed var(--line-3); }
.cup.next:hover .cup-paid { display: block; }
.cup.next .cup-cta { font-size: 12.5px; font-weight: 700; color: var(--gold-text); }
.cup.blank .egg-art { opacity: 0.5; }
.empty-cup svg path { stroke: var(--ink-2); }
.sk-cup { min-height: 182px; border-radius: 26px; background: var(--bg-2); }
.candle-hint { margin-top: 12px; text-align: center; font-size: 13px; }

/* ---------- the split bar: the egg's share is the only gold ---------- */
.split-bar { display: grid; gap: 10px; }
.split-track { display: flex; height: 40px; border-radius: 12px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.split-track .sb { display: grid; place-items: center; min-width: 34px; font: 600 12.5px var(--font-mono); }
.sb-launcher { background: #4A3626; color: var(--ink); }
.sb-egg { background: var(--gold); color: var(--on-accent); }
.sb-treasury { background: #6E573F; color: var(--ink); }
.sb-burn { background: #8A5636; color: var(--ink); }
.split-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 6px 14px; font-size: 13.5px; }
.split-legend li { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.split-legend i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.leg-launcher i { background: #4A3626; box-shadow: inset 0 0 0 1px var(--line-3); } .leg-egg i { background: var(--gold); } .leg-treasury i { background: #6E573F; } .leg-burn i { background: #8A5636; }
.split-legend .addr { font-size: 12px; flex-basis: 100%; padding-left: 17px; }
.split-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 22px 0 12px; font: 700 16px var(--font-text); }
.split-roles { margin: 16px 0 10px; }

/* the hatch bar */
.hatch-bar { display: grid; gap: 5px; }
.hatch-bar .bar { position: relative; height: 6px; border-radius: 3px; background: var(--bg-2); overflow: visible; }
.hatch-bar .bar span { display: block; height: 100%; border-radius: 3px; background: var(--gold); }
.hatch-bar .bar i { position: absolute; top: -2px; width: 2px; height: 10px; border-radius: 1px; background: var(--line-3); }
.hatch-bar .label { font-size: 11px; }

/* ---------- egg cards ---------- */
.grid-eggs { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 16px; }
.egg-card { display: grid; grid-template-rows: auto 1fr; border-radius: 24px; border: 1px solid var(--line); background: var(--surface); overflow: hidden; transition: transform var(--t) var(--ease), border-color var(--t) var(--ease); }
a.egg-card:hover { transform: translateY(-3px); border-color: var(--line-3); }
.egg-card-cup { position: relative; display: grid; place-items: center; padding: 22px 0 16px; background: radial-gradient(ellipse 55% 45% at 50% 66%, rgba(242, 166, 46, 0.22), transparent 75%), var(--bg-2); }
.egg-card-cup .candle-words { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; font-size: 11px; color: var(--gold-text); opacity: 0; transition: opacity var(--t) var(--ease); }
a.egg-card:hover .candle-words, a.egg-card:focus-visible .candle-words { opacity: 1; }
.egg-card-body { display: grid; gap: 12px; padding: 14px 16px 16px; align-content: start; }
.egg-card-top { display: flex; justify-content: space-between; align-items: center; }
.egg-no { font-weight: 700; font-size: 14px; color: var(--gold-text); font-family: var(--font-mono); }
.egg-card-coin { display: flex; align-items: center; gap: 8px; min-width: 0; }
.egg-card-coin .coin-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.egg-card-coin .coin-sym { font-size: 12.5px; color: var(--muted); }
.egg-card-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.egg-card-nums div { display: grid; gap: 2px; }
.egg-card-nums dd { font-size: 15px; }
.egg-card-holder { font-size: 12.5px; }
.egg-card.skeleton { min-height: 330px; padding: 16px; gap: 12px; align-content: start; }
.egg-card.skeleton .sk-cup { height: 170px; }
.skeleton .sk { background: linear-gradient(90deg, var(--surface-2), var(--bg-2), var(--surface-2)); background-size: 200% 100%; }

/* ---------- the ledger (receipts) ---------- */
.ledger { display: grid; border-top: 1px solid var(--line-2); }
.receipt, .ledger-head { display: grid; grid-template-columns: 64px 100px 120px 1fr 108px 92px; gap: 12px; align-items: baseline; padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: 14px; }
.ledger-head { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); border-bottom: 1px solid var(--line-2); padding-top: 0; }
.r-time { font-size: 12px; }
.r-kind { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-2); justify-self: start; padding: 3px 7px; border: 1px solid var(--line-2); border-radius: 6px; white-space: nowrap; font-weight: 600; }
.k-payout .r-kind { color: var(--gold-text); border-color: rgba(242, 180, 60, 0.45); background: var(--gold-wash); }
.k-hatch .r-kind { color: var(--good); border-color: rgba(95, 211, 154, 0.4); }
.k-sale .r-kind, .k-holder .r-kind { color: #9FC3FF; border-color: rgba(159, 195, 255, 0.35); }
.r-what { display: flex; gap: 6px; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; }
.r-egg { color: var(--gold-text); font-weight: 600; }
.r-text { color: var(--ink); min-width: 0; }
.r-amt { text-align: right; font: 500 13px var(--font-mono); }
.tx { justify-content: flex-end; font-size: 12px; text-align: right; }
.ledger.big .receipt { padding: 13px 4px; }
.receipt.fresh { animation: fresh 2.4s var(--ease); }
@keyframes fresh { 0% { background: var(--gold-wash); } 100% { background: transparent; } }
.receipt-totals { margin-top: 18px; gap: 12px 36px; }
.stat.gold-stat .stat-value { color: var(--gold-text); }
.waits { margin-top: 28px; display: grid; gap: 12px; max-width: 760px; }
.pad { padding: 20px 4px; }
.clock-box { margin-top: 4px; }
.more-moves { justify-self: center; margin-top: 12px; }

/* the payout clock */
.payout-clock { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 6px; border-radius: var(--r-pill); background: var(--bg-2); border: 1px solid var(--line-2); font: 500 12.5px var(--font-mono); color: var(--ink-2); white-space: nowrap; }
.cell .payout-clock { font-size: 14px; padding: 6px 14px 6px 7px; justify-self: start; }
.clock-ring svg { display: block; transform: rotate(-90deg); }
.cr-track { fill: none; stroke: var(--line-2); stroke-width: 5; }
.cr-fill { fill: none; stroke: var(--gold); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 0 100; transition: stroke-dasharray 900ms linear; }

/* the books */
.books { display: grid; gap: 12px; }
.books-line { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto; align-items: center; gap: 10px 16px; padding: 18px 20px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); }
.books-line > div { display: grid; gap: 4px; }
.books-line b { font: 500 18px var(--font-mono); }
.books-line .eq { font: 500 22px var(--font-mono); color: var(--muted); }
.gold-line { box-shadow: inset 4px 0 0 var(--gold); }
.bal { display: inline-flex; align-items: center; gap: 6px; font: 600 12px var(--font-mono); padding: 5px 10px; border-radius: var(--r-pill); white-space: nowrap; }
.bal.ok { color: var(--good); background: rgba(95, 211, 154, 0.1); }
.bal.off { color: var(--bad); background: rgba(255, 122, 102, 0.1); }
.books-rest { font-size: 12.5px; padding: 0 4px; }
.two-col .books-line { grid-template-columns: 1fr; gap: 6px; }
.two-col .books-line .eq { display: none; }

/* every wallet, in public */
.address-list { display: grid; gap: 4px; }
.addr-row { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.addr-row dt { display: grid; gap: 2px; font-size: 14px; }
.addr-row dt span { font-size: 12.5px; }
.addr-row dd { display: flex; align-items: center; gap: 4px; font-size: 13px; }

/* ---------- the hatchery ---------- */
.live-line { font-size: 13px; color: var(--ink-2); }
.strip-box { padding: 18px 20px 14px; margin-bottom: 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.strip svg { display: block; }
.strip .d-laid { fill: var(--gold); }
.strip .d-hatched { fill: var(--gold); stroke: var(--ink); stroke-width: 1.2; }
.strip .d-next { fill: none; stroke: var(--gold); stroke-width: 1.3; stroke-dasharray: 2 1.6; }
.strip .d-empty { fill: none; stroke: var(--line-3); stroke-width: 0.9; }
.strip-key { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 4px; margin-top: 10px; font-size: 12.5px; }
/* the key's shapes are tiny eggs too: a little taller than wide, widest below the middle */
.strip-key span { display: inline-block; width: 8px; height: 10px; border-radius: 50% 50% 50% 50% / 58% 58% 42% 42%; margin-left: 8px; }
.strip-key span:first-child { margin-left: 0; }
.k-laid { background: var(--gold); } .k-hatched { background: var(--gold); box-shadow: 0 0 0 1.5px var(--ink); } .k-next { border: 1.5px dashed var(--gold); } .k-empty { border: 1px solid var(--line-3); }

/* ---------- a coin's page ---------- */
.coin-head { grid-template-columns: auto 1fr auto; }
.coin-title h1 { font-size: clamp(34px, 4.4vw, 58px); }
.coin-title .sym { font-family: var(--font-mono); font-size: 0.42em; letter-spacing: 0; font-weight: 500; }
.coin-grid { grid-template-columns: 370px 1fr; gap: 20px; margin-top: 24px; }
.egg-panel { position: sticky; top: calc(var(--top-h) + 16px); display: grid; gap: 14px; padding: 20px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); }
.egg-panel-art { display: grid; place-items: center; gap: 6px; padding: 26px 0 18px; border-radius: 22px; background: radial-gradient(ellipse 52% 42% at 50% 62%, rgba(242, 166, 46, 0.26), transparent 75%), var(--bg-2); }
.egg-panel-art .candle-words { font-size: 12.5px; color: var(--gold-text); text-align: center; max-width: 30ch; }
.candle-btn { margin-top: 6px; }
.candle-btn[aria-pressed="true"] { background: var(--gold-wash); border-color: var(--gold); }
.egg-panel-id { display: flex; align-items: baseline; gap: 8px; }
.egg-panel-id .chip { margin-left: auto; }
.egg-no.big { font-size: 26px; }
.stage-line { font-size: 14px; }
.panel-facts { display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; font-size: 14px; align-items: baseline; }
.panel-facts dt { color: var(--muted); }
.panel-facts dd { text-align: right; display: flex; justify-content: flex-end; gap: 6px; align-items: baseline; }
.big-num { font-size: 22px; }
.demo-levers { display: grid; gap: 8px; padding: 14px; border-radius: var(--r); border: 1.5px dashed var(--line-3); }
.demo-levers .btn { justify-self: start; }
.coin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.coin-stats .stat { padding: 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
.coin-stats .stat-value { font-size: 20px; }
.chart-line { stroke: var(--gold); }
.chart-area { fill: rgba(242, 180, 60, 0.1); }

/* ---------- launch ---------- */
.egg-step { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; margin-top: 14px; }
.egg-step > div { display: grid; gap: 8px; }
.egg-step-art { display: grid; place-items: center; width: 160px; padding: 18px 0; border-radius: 22px; background: radial-gradient(ellipse 55% 45% at 50% 64%, rgba(242, 166, 46, 0.24), transparent 75%), var(--bg-2); }
.egg-step-line { font-size: 15px; }
.confirm-egg { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: var(--r); background: var(--bg-2); }
.launch-side .preview-box .egg-card { pointer-events: none; }
.step-title .step-n { border-color: var(--gold); color: var(--gold-text); }

/* ---------- how it works ---------- */
.how-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.how-steps li { display: grid; gap: 10px; align-content: start; padding: 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.step-pic { display: grid; place-items: center; gap: 8px; text-align: center; min-height: 130px; padding: 12px; border-radius: var(--r); background: radial-gradient(ellipse 55% 50% at 50% 65%, rgba(242, 166, 46, 0.16), transparent 75%), var(--bg-2); }
.step-pic .split-legend { display: none; }
.step-pic .split-bar { width: 100%; }
.pay-pic { gap: 4px; font-size: 13px; }
.pay-pic b { font-size: 20px; }
.rules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 28px; }
.rules li { padding: 16px 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); }
.rules b { color: var(--ink); }
.risks li { color: var(--ink); }
.house-box { display: grid; gap: 12px; align-content: start; padding: 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.house-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.house-box .ca { margin-top: 4px; }
.faq details { background: var(--surface); border-color: var(--line); }
.notfound .egg-art { margin-bottom: 8px; }

/* ---------- narrow screens and phones ---------- */
@media (max-width: 1100px) {
  .proof-row { grid-template-columns: 90px 60px 1fr 110px; }
  .proof-row .ok-mark, .proof-row .to, .proof-row .track { display: none; }
  .how-steps { grid-template-columns: repeat(2, 1fr); }
  .split-roles4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  .room-card { grid-template-columns: 1fr; }
  .room-copy { padding: 28px 24px 0; }
  .room-tabs { grid-template-columns: repeat(2, 1fr); }
  .steps3 { grid-template-columns: 1fr; }
  .proof-big { grid-template-columns: 1fr; }
  .stat-cells { grid-template-columns: repeat(2, 1fr); }
  .cell:nth-child(3) { border-left: 0; padding-left: 0; }
  .cell { border-top: 1px solid var(--line); }
  .cell:nth-child(-n+2) { border-top: 0; }
  .coin-grid { grid-template-columns: 1fr; }
  .egg-panel { position: static; }
  .band { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .coin-stats { grid-template-columns: repeat(2, 1fr); }
  .books-line { grid-template-columns: 1fr; }
  .books-line .eq { display: none; }
}
@media (max-width: 860px) {
  .lineup { grid-template-columns: repeat(4, 1fr); gap: 4px; }
  .stage-chip { font-size: 11.5px; padding: 4px 9px; }
  .carton { grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 10px; border-radius: 22px; }
  .carton .cup:nth-child(-n+6):not(.next) { display: none; }
  .cup { min-height: 160px; }
  .ledger-head { display: none; }
  .receipt { grid-template-columns: auto 1fr auto; grid-template-areas: "kind what amt" "text text text" "time time tx"; gap: 4px 10px; padding: 12px 2px; }
  .r-kind { grid-area: kind; } .r-what { grid-area: what; } .r-amt { grid-area: amt; } .r-text { grid-area: text; } .r-time { grid-area: time; } .tx { grid-area: tx; display: inline-flex; }
  .rules { grid-template-columns: 1fr; }
  .egg-step { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .chapter-head { flex-direction: column; align-items: start; }
  .ticker-label { padding-left: var(--gut); }
}
@media (max-width: 560px) {
  .how-steps, .split-roles4, .proof-cells { grid-template-columns: 1fr; }
  .proof-row { grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 10px; padding: 14px; }
  .proof-big { padding: 20px; }
  .cell { padding: 16px 12px; }
  .cell b { font-size: 24px; }
  .proof-cells > div { border-left: 0; border-top: 1px solid var(--line); }
  .proof-cells > div:first-child { border-top: 0; }
  .proof-num { font-size: 72px; }
  .grid-eggs { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .egg-card-cup .egg-art.plate { zoom: 0.8; }
  .egg-card-body { padding: 12px; gap: 10px; }
  .egg-card-nums { grid-template-columns: 1fr; }
  .coin-head { grid-template-columns: auto 1fr; }
  .controls .seg { overflow-x: auto; max-width: 100%; }
  .controls .chips { flex-wrap: wrap; }
  .strip-box { padding: 12px; }
  .addr-row { flex-direction: column; gap: 4px; }
  .room-tabs { grid-template-columns: 1fr 1fr; }
  .room-tab { padding: 10px; gap: 8px; }
  .ticker-label { display: none; }
  .band-chick { width: 130px; }
}

/* ---------- the flat egg (web/js/egg.mjs): candling and the rock, on the SVG's own layers ---------- */
.egg-art.flat svg { display: block; width: 100%; height: auto; overflow: visible; }
.egg-art .candle-back, .egg-art .candle-front { opacity: 0; transition: opacity 360ms var(--ease); }
.egg-art .shell, .egg-art .stamp { transition: opacity 360ms var(--ease); }
.cup:hover .can-candle .candle-back, .cup:focus-visible .can-candle .candle-back, a.egg-card:hover .can-candle .candle-back, a.egg-card:focus-visible .can-candle .candle-back, .candling .can-candle .candle-back,
.cup:hover .can-candle .candle-front, .cup:focus-visible .can-candle .candle-front, a.egg-card:hover .can-candle .candle-front, a.egg-card:focus-visible .can-candle .candle-front, .candling .can-candle .candle-front { opacity: 1; }
.cup:hover .can-candle .shell, .cup:focus-visible .can-candle .shell, a.egg-card:hover .can-candle .shell, a.egg-card:focus-visible .can-candle .shell, .candling .can-candle .shell { opacity: 0.42; }
.cup:hover .can-candle .stamp, a.egg-card:hover .can-candle .stamp, .candling .can-candle .stamp { opacity: 0.25; }
.rock.flat svg { transform-origin: 50% 92%; animation: rock 5.4s cubic-bezier(.3, .6, .3, 1.2) infinite 1s; }
@keyframes rock {
  0% { transform: rotate(0); } 4% { transform: rotate(-7deg); } 8% { transform: rotate(6deg); }
  12% { transform: rotate(-4deg); } 16% { transform: rotate(2deg); } 20%, 100% { transform: rotate(0); }
}
/* ---------- early access: a waitlist (the button's three states, the box, the place in line) ---------- */
.access-btn.on-list { background: var(--surface-2); border-color: var(--line-3); color: var(--ink); }
.access-btn.let-in { background: var(--surface-2); border-color: color-mix(in srgb, var(--good) 45%, transparent); color: var(--good); }
.access-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex: none; }
.access-btn.on-list .access-dot { box-shadow: 0 0 0 3px var(--gold-wash); }
.access-card { display: grid; gap: 12px; justify-items: start; }
.access-card h3 { font: var(--display-weight) 24px/1.05 var(--font-display); letter-spacing: -0.03em; }
.access-card .access-btn { margin-top: 4px; }
.access-art { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 22px; background: radial-gradient(ellipse 60% 50% at 50% 62%, rgba(242, 166, 46, 0.24), transparent 75%), var(--bg-2); }
.access-art svg { width: 64px; height: auto; }
.modal-body .access-art { justify-self: center; margin-bottom: 4px; }
.access-status:empty { display: none; }
.access-result { display: flex; gap: 16px; align-items: center; padding: 14px; border-radius: var(--r); background: var(--bg-2); }
.access-result .big-line { margin-bottom: 4px; }
.access-badge { display: inline-grid; place-items: center; min-width: 64px; height: 64px; padding: 0 12px; border-radius: 18px; background: var(--gold-wash); color: var(--gold-text); font: 600 22px var(--font-mono); box-shadow: inset 0 0 0 1px rgba(242, 180, 60, 0.45); flex: none; }
.access-badge.in { color: var(--good); background: rgba(95, 211, 154, 0.1); box-shadow: inset 0 0 0 1px rgba(95, 211, 154, 0.4); }
.flow-sub { font-size: 12px; }
.hero-early { margin-top: 14px; max-width: 40em; }
.early-steps { display: grid; gap: 14px; margin-top: 14px; }
.early-steps li { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; }
.early-steps .step-n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-2); font-size: 12px; color: var(--gold-text); }
.early-steps p { margin-top: 2px; font-size: 14.5px; }
@media (min-width: 981px) { .narrow-only { display: none !important; } }
.early-empty { display: grid; gap: 8px; justify-items: center; width: min(520px, 100%); margin-inline: auto; }
.early-empty .empty { padding-bottom: 8px; }
.early-empty .access-card { width: 100%; }

/* ---------- states: not live yet, nothing yet, the launch's money lines ---------- */
.soon-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-2); opacity: 0.7; flex: none; }
.ticker-track.still { animation: none; padding-left: 8px; }
.ticker-track.still .tick { border-right: 0; color: var(--muted); }
.proof-big:has(.proof-hero.idle) { border-color: var(--line-2); background: var(--surface); }
.proof-hero.idle .proof-num { color: var(--ink-2); }
.proof-hero.off .proof-num { color: var(--bad); }
.proof-empty { display: grid; grid-template-columns: 300px 1fr; gap: 18px; align-items: center; padding: 16px 20px; border-radius: 18px; border: 1px dashed var(--line-2); }
.proof-empty .track i { opacity: 0.7; }
.bal.wait { color: var(--muted); background: var(--bg-2); }
.banner.soon { border-color: var(--line-3); background: var(--bg-2); }
.banner.soon b { color: var(--ink); }
.money-line { display: flex; gap: 8px; align-items: baseline; font-size: 14.5px; color: var(--ink); }
.money-line .icon { color: var(--gold); transform: translateY(2px); flex: none; }
.house-preview { display: flex; gap: 14px; align-items: center; padding: 18px; }
.house-preview .fine { margin-top: 4px; }
.step-lede { margin-top: 10px; }
/* plain prose cards (How it works): air between the heading, the rows and the paragraphs */
.card.prose > h2.h3 + p, .card.prose > h3 + p { margin-top: 8px; }
.card.prose > p + p { margin-top: 10px; }
.card.prose > .costs + p { margin-top: 14px; }
.ledger-empty { padding: 44px 16px; }
.ledger-empty h3 { font-size: 17px; }
@media (max-width: 860px) { .proof-empty { grid-template-columns: 1fr; gap: 12px; } }
/* a coin's recent trades, from Eggd's trade reader */
.trades { display: grid; border-top: 1px solid var(--line-2); }
.trade { display: grid; grid-template-columns: 64px 54px 110px 1fr auto 92px; gap: 12px; align-items: baseline; padding: 10px 4px; border-bottom: 1px solid var(--line); font-size: 14px; }
.trade .chip { height: 22px; font-size: 11px; justify-self: start; }
.chip.buy { color: var(--good); }
.chip.sell { color: var(--bad); }
.trade .num { font-size: 13.5px; }
.t-time { font-size: 12px; }
/* card titles stay on one line; on a phone the grey note beside them wraps underneath instead */
.card-head { flex-wrap: wrap; row-gap: 4px; }
.card-head h2 { white-space: nowrap; }
.t-tx { display: inline-flex; gap: 4px; align-items: center; justify-content: flex-end; font-size: 12px; }
.t-tokens { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-who { font-size: 12.5px; color: var(--ink-2); }
@media (max-width: 560px) { .trade { grid-template-columns: auto auto 1fr auto; } .trade .t-tokens, .trade .t-tx { display: none; } }

.lockup svg { display: block; }
.brand .lockup svg:last-child { height: 30px; width: auto; }
.brand .lockup svg:first-child { height: 38px; width: auto; }
/* the lineup, flat: no dimming filters (the logo's look is flat colour); the picked egg lifts */
.stage-btn svg { filter: none !important; opacity: 1; transition: transform 380ms var(--ease), opacity 380ms var(--ease); }
.stage-btn:hover svg { opacity: 1; transform: translateY(-6px); }
.stage-btn.on svg { opacity: 1; transform: translateY(-10px); }
.stage-art svg, .room-art svg, .tab-egg svg { max-width: 100%; height: auto; }
.stage-art svg { width: 100%; }

/* flat SVGs never push the layout wider than the screen */
.egg-art.flat, .egg-art.empty-cup { max-width: 100%; }
.egg-art.empty-cup svg { width: 100%; height: auto; display: block; }
.carton .cup, .room-card > *, .lineup > *, .steps3 > *, .grid-eggs > * { min-width: 0; }
.room-art svg { width: min(460px, 100%) !important; }
