:root {
  --bg: #0b0907; --panel: #14100d; --panel2: #1a1511; --line: #2a211b; --text: #efe6dc; --muted: #a39384;
  --orange: #f7931a; --orange2: #ffb347; --glow: rgba(247,147,26,.35);
  --bw: 118px; --chute-x: 400px;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: radial-gradient(1200px 600px at 50% -10%, #1d130b 0%, var(--bg) 60%) fixed; color: var(--text); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--orange2); text-decoration: none; } a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; margin: 0; }
.muted { color: var(--muted); } .small { font-size: 13px; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px; padding: 12px clamp(14px, 4vw, 40px); background: rgba(11,9,7,.78); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--text); letter-spacing: -.3px; } .logo:hover { text-decoration: none; }
.logo b { color: var(--orange); }
.coin { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffd27a, var(--orange) 60%, #b86a0b); color: #fff; font-size: 19px; box-shadow: 0 0 18px var(--glow); }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a { color: var(--muted); padding: 7px 12px; border-radius: 8px; font-size: 14.5px; display: inline-flex; gap: 6px; align-items: center; }
.nav a:hover { color: var(--text); background: rgba(255,255,255,.05); text-decoration: none; }
.nav a.soon { opacity: .75; }
.badge { font-size: 9.5px; text-transform: uppercase; letter-spacing: .6px; background: rgba(247,147,26,.16); color: var(--orange2); padding: 2px 6px; border-radius: 99px; border: 1px solid rgba(247,147,26,.35); }
.conn { display: flex; align-items: center; gap: 8px; font: 11.5px var(--mono); color: var(--muted); padding: 6px 10px; border: 1px solid var(--line); border-radius: 99px; white-space: nowrap; }
.conn i { width: 8px; height: 8px; border-radius: 50%; background: #888; }
.conn.live i { background: #3ddc84; box-shadow: 0 0 8px #3ddc84; animation: pulse 2s infinite; }
.conn.poll i { background: var(--orange); box-shadow: 0 0 8px var(--orange); animation: pulse 2s infinite; }
.conn.off i { background: #e5484d; }
@keyframes pulse { 50% { opacity: .35; } }

main { max-width: 1240px; margin: 0 auto; padding: 0 clamp(12px, 3vw, 28px) 60px; }
.hero { padding: 22px 0 6px; }
.hero h1 { font-size: clamp(28px, 4vw, 44px); letter-spacing: -1.4px; max-width: 900px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--orange), #ffd27a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sub { color: var(--muted); max-width: 720px; font-size: clamp(15px, 1.6vw, 18px); margin: 10px 0 18px; }

/* stage */
.stage { border: 1px solid #33271e; border-radius: 20px; overflow: hidden; background: #0a0807; box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(247,147,26,.08), 0 0 80px rgba(247,147,26,.07); }
.cave { position: relative; width: 100%; aspect-ratio: 1000 / 410; max-height: 600px; min-height: 300px; }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hud { position: absolute; top: 12px; width: var(--hud-w); height: var(--hud-h); padding: 7px 10px; border-radius: 10px; background: rgba(10,8,6,.58); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.07); pointer-events: none; display: flex; flex-direction: column; justify-content: center; min-width: 0; overflow: hidden; }
.hud-left { left: 12px; } .hud-right { right: 12px; gap: 6px; text-align: left; }
.hr-top { display: flex; gap: 8px; align-items: center; min-width: 0; } .hr-id { min-width: 0; flex: 1; }
.hud-tag, .hud-right .hud-s { display: none; }
.hr-prog { min-width: 0; }
.hr-line { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; font-size: 11.5px; color: var(--text); white-space: nowrap; }
.hr-line > span { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.hr-line b { font-family: var(--mono); color: var(--orange2); } .x-short { display: none; }
.hr-line small { font: 9.5px var(--mono); color: var(--muted); flex: none; }
.segs { display: flex; gap: 2px; margin: 5px 0 0; height: 5px; }
.segs i { flex: 1; border-radius: 2px; background: rgba(255,255,255,.1); }
.segs i.on { background: linear-gradient(180deg, #ffd27a, var(--orange)); box-shadow: 0 0 5px rgba(247,147,26,.4); }
.segs i.cur { background: rgba(247,147,26,.35); animation: curseg 1.4s ease-in-out infinite; }
@keyframes curseg { 50% { background: rgba(247,147,26,.8); } }
.hk-duty { display: none; }
.hud-k { font: 9.5px var(--mono); text-transform: uppercase; letter-spacing: .4px; color: var(--orange2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud-big { font: 700 21px/1.15 var(--mono); letter-spacing: -.5px; white-space: nowrap; } .hud-big .hash { color: var(--orange); margin-right: 1px; }
.hud-name { font-weight: 700; font-size: 14px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud-s { font-size: 11px; color: var(--muted); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .hud-s b { color: var(--text); font-family: var(--mono); }
.portrait { width: 36px; height: 36px; border-radius: 9px; border: 1px solid rgba(247,147,26,.4); flex: none; }
:root { --hud-w: 200px; --hud-h: 80px; }
.banner { position: absolute; left: 50%; top: 6%; max-width: calc(100% - 24px); transform: translate(-50%, -20px) scale(.9); opacity: 0; display: flex; flex-direction: column; align-items: center; padding: 14px 30px; border-radius: 18px; background: linear-gradient(180deg, rgba(247,147,26,.96), rgba(214,110,8,.96)); color: #1c0f02; box-shadow: 0 10px 50px rgba(247,147,26,.55); pointer-events: none; text-align: center; z-index: 3; }
.banner .k { font: 700 11px var(--mono); letter-spacing: 2px; } .banner strong { font: 800 clamp(24px, 4vw, 40px)/1.1 var(--mono); } .banner small { font-size: 13px; opacity: .85; } .banner em { font: 600 10.5px var(--mono); font-style: normal; letter-spacing: .8px; margin-top: 4px; padding: 2px 8px; border-radius: 99px; background: rgba(28,15,2,.22); text-transform: uppercase; }
.banner.show { animation: banner 4.6s ease both; }
@keyframes banner { 0% { opacity: 0; transform: translate(-50%, -20px) scale(.85); } 8% { opacity: 1; transform: translate(-50%, 0) scale(1.06); } 14% { transform: translate(-50%, 0) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -14px) scale(.97); } }

/* underground chain */
.underground { position: relative; height: calc(var(--bw) + 62px); background: linear-gradient(#050403, #0d0907 40%, #120c08); border-top: 3px solid #2b1f17; overflow: hidden; }
.underground::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 38px, rgba(255,255,255,.015) 38px 40px); }
.chain { position: absolute; left: 0; top: 18px; bottom: 28px; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: row-reverse; gap: 26px; align-items: center; overflow: hidden;
  width: calc(var(--chute-x) + var(--bw) / 2); -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 90px); mask-image: linear-gradient(90deg, transparent 0, #000 90px); }
.chain-hint { z-index: 1; position: absolute; left: 0; right: 0; bottom: 6px; text-align: center; font: 11px var(--mono); color: #6f5f50; }
.block { position: relative; flex: 0 0 var(--bw); width: var(--bw); height: var(--bw); }
.block::before { content: ""; position: absolute; right: 100%; top: 50%; width: 26px; height: 10px; margin-top: -5px; background: radial-gradient(ellipse 5.5px 3.6px at 6.5px 5px, transparent 2.4px, #a99683 2.9px 4.4px, transparent 4.9px) 0 0/13px 10px repeat-x; opacity: .85; filter: drop-shadow(0 1px 1px rgba(0,0,0,.6)); }
.block:last-child::before { display: none; }
.block.mined > a { box-shadow: 0 0 0 1px rgba(255,255,255,.04); position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 14px; overflow: hidden; color: var(--text); text-decoration: none; border: 2px solid rgba(247,147,26,.55); border-top-color: rgba(255,210,122,.8); background: linear-gradient(160deg, #46301b, #1c120a 70%); box-shadow: inset 0 2px 0 rgba(255,255,255,.12), inset 0 -10px 18px rgba(0,0,0,.35), inset 0 0 22px rgba(247,147,26,.12), 0 6px 16px rgba(0,0,0,.5); transition: transform .2s, box-shadow .2s; }
.block.mined > a:hover { transform: translateY(-3px); box-shadow: inset 0 0 22px rgba(247,147,26,.25), 0 10px 22px rgba(0,0,0,.6), 0 0 18px var(--glow); }
.block.mined > a::before { content: "\20BF"; position: absolute; right: -6px; bottom: -14px; font: 800 74px/1 var(--sans); color: rgba(247,147,26,.07); pointer-events: none; }
.block.mined > a::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--mc, var(--orange)); opacity: .9; }
.block .who { display: inline-flex; align-items: center; gap: 4px; font: 600 10.5px var(--mono); color: #f1dfc9; background: rgba(0,0,0,.35); padding: 1px 7px 1px 5px; border-radius: 99px; margin-bottom: 1px; }
.block .who i { width: 7px; height: 7px; border-radius: 50%; background: var(--mc, var(--orange)); box-shadow: 0 0 5px var(--mc, var(--orange)); display: inline-block; }
.block.shift-first > a { border-color: var(--mc, #ffd27a); }
.block .fill { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(0deg, rgba(247,147,26,.55), rgba(247,147,26,.12)); z-index: 0; }
.block span { position: relative; z-index: 1; }
.block .h { font: 700 17px var(--mono); letter-spacing: -.5px; }
.block .pool { font-size: 11.5px; color: #ffd9a3; max-width: calc(var(--bw) - 12px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.block .meta { font: 11px var(--mono); color: #e7d6c3; }
.block .age { font: 10.5px var(--mono); color: #b9a794; }
.block.fresh > a { border-color: #ffd27a; animation: fresh 2.2s ease-out; }
@keyframes fresh { 0% { box-shadow: 0 0 0 0 rgba(255,210,122,.9), 0 0 60px 10px rgba(247,147,26,.9); background: linear-gradient(160deg, #ffb347, #c76a08); } 100% { box-shadow: inset 0 0 22px rgba(247,147,26,.12), 0 6px 16px rgba(0,0,0,.5); } }
.block.is-demo > a { border-style: dashed; }
.demo-tag { position: absolute !important; top: 6px; right: 6px; font: 700 8px var(--mono); background: var(--orange); color: #000; padding: 1px 5px; border-radius: 4px; }
.block.pending { display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 14px; border: 2px dashed rgba(247,147,26,.7); background: rgba(247,147,26,.06); animation: pend 2.4s ease-in-out infinite; }
.block.pending::before { opacity: .9; }
.block.pending .who { margin-top: 2px; }
.block.pending .label { font: 700 9.5px var(--mono); letter-spacing: 1.5px; color: var(--orange2); }
.block.pending .h { font: 700 17px var(--mono); }
.block.pending .meta { font: 11px var(--mono); color: var(--muted); }
.block.pending .age { font: 700 15px var(--mono); color: var(--orange2); margin-top: 3px; }
.block.pending.spawn { animation: spawn .8s cubic-bezier(.2,1.2,.3,1) both, pend 2.4s ease-in-out .8s infinite; }
@keyframes spawn { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes pend { 50% { box-shadow: 0 0 26px rgba(247,147,26,.28); background: rgba(247,147,26,.1); } }
.dots::after { content: ""; animation: dots 1.5s steps(4) infinite; } @keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }

/* stats */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 26px 0; }
.card { background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line); border-radius: 16px; padding: 18px; position: relative; overflow: hidden; }
.card::after { content: ""; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(var(--glow), transparent 70%); opacity: .5; }
.card h3 { font: 600 11.5px var(--mono); text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); }
.card .num { font: 700 clamp(22px, 2.4vw, 32px)/1.2 var(--mono); margin: 8px 0 4px; letter-spacing: -.8px; } .num small { font: 500 13px var(--sans); color: var(--muted); letter-spacing: 0; }
.card p { margin: 0; font-size: 13px; color: var(--muted); } .card p b { color: var(--text); }
.card.wide { grid-column: span 2; }
.fees { display: flex; gap: 14px; margin-top: 10px; } .fees div { flex: 1; } .fees b { display: block; font: 700 26px var(--mono); color: var(--orange2); } .fees small { color: var(--muted); font-size: 12px; }
.bar { height: 8px; background: #231a14; border-radius: 99px; overflow: hidden; margin: 10px 0; } .bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--orange), #ffd27a); border-radius: 99px; transition: width 1s linear; }

.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.panel { background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.panel h2 { font-size: 22px; margin-bottom: 6px; letter-spacing: -.4px; }
.shiftbox { background: #0e0b09; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 14px 0; }
.shiftbox .row { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--muted); } .shiftbox .row b { color: var(--text); font-family: var(--mono); }
.schedule { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.schedule li { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; border: 1px solid transparent; background: rgba(255,255,255,.02); }
.schedule li.now { border-color: rgba(247,147,26,.5); background: rgba(247,147,26,.08); }
.schedule canvas { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.schedule strong { display: block; font-size: 14.5px; } .schedule small { color: var(--muted); font-size: 12px; }
.schedule .when { margin-left: auto; text-align: right; } .schedule .when b { display: block; font: 600 11px var(--mono); color: var(--orange2); letter-spacing: .6px; text-transform: uppercase; }
.tablewrap { overflow-x: auto; margin-top: 10px; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: 1px; color: var(--muted); padding: 8px 8px; border-bottom: 1px solid var(--line); }
td { padding: 9px 8px; border-bottom: 1px solid #1d1611; white-space: nowrap; } td:first-child { font-family: var(--mono); }

.soon-card { margin: 26px 0; display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center; padding: clamp(20px, 3vw, 36px); border-radius: 22px; border: 1px solid rgba(247,147,26,.35); background: radial-gradient(600px 240px at 90% 0%, rgba(247,147,26,.16), transparent 70%), linear-gradient(180deg, #1a130d, #110c09); }
.pill { display: inline-block; font: 700 11px var(--mono); letter-spacing: 1.2px; text-transform: uppercase; background: var(--orange); color: #1c0f02; padding: 4px 10px; border-radius: 99px; margin-bottom: 12px; }
.soon-card h2 { font-size: clamp(22px, 3vw, 32px); letter-spacing: -.6px; } .soon-card p { color: var(--muted); max-width: 560px; }
.ticks { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; } .ticks li { font-size: 13px; padding: 6px 12px; border-radius: 99px; background: rgba(255,255,255,.05); border: 1px solid var(--line); } .ticks li::before { content: "\2713 "; color: var(--orange); }
.lock { position: relative; border-radius: 16px; background: #0c0907; border: 1px solid var(--line); padding: 16px; min-height: 170px; overflow: hidden; }
.lock::after { content: var(--lock-label, "Locked until launch"); position: absolute; inset: 0; display: grid; place-items: center; font: 700 12px var(--mono); letter-spacing: 1.5px; text-transform: uppercase; color: var(--orange2); background: rgba(10,8,6,.55); backdrop-filter: blur(3px); }
.msg { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; } .msg i { width: 32px; height: 32px; border-radius: 50%; background: #3a2a1e; flex: none; } .msg span { height: 34px; flex: 1; background: #1e1611; border-radius: 12px; } .msg span.s { flex: .6; } .msg.r { flex-direction: row-reverse; } .msg.r span { background: rgba(247,147,26,.18); }
.about { padding: 30px 0; max-width: 760px; color: var(--muted); } .about h2 { color: var(--text); margin-bottom: 8px; }
.foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 22px clamp(14px, 4vw, 40px); border-top: 1px solid var(--line); color: #7d6e60; font-size: 13px; }

.demo-panel, .demo { position: fixed; left: 14px; bottom: 14px; z-index: 50; display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 14px; background: rgba(20,14,9,.92); border: 1px solid var(--orange); box-shadow: 0 10px 40px rgba(0,0,0,.6); font-size: 13px; }
.demo[hidden] { display: none; }
.demo button { cursor: pointer; font: 600 13px var(--sans); color: #1c0f02; background: var(--orange); border: 0; border-radius: 9px; padding: 8px 12px; } .demo button:hover { background: var(--orange2); }

@media (max-width: 980px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .two, .soon-card { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) {
  :root { --bw: 92px; }
  .cave { aspect-ratio: 4 / 3.5; }
  /* mobile: the two compact cards sit side by side at the top, same size, mirrored */
  :root { --hud-w: calc(50% - 12px); --hud-h: 62px; }
  .hud { padding: 5px 8px; top: 8px; border-radius: 9px; }
  .hud-left { left: 8px; } .hud-right { right: 8px; gap: 4px; }
  .hr-top { gap: 6px; }
  .portrait { width: 28px; height: 28px; border-radius: 7px; }
  .hud-k { font-size: 9px; letter-spacing: .2px; } .hud-name { font-size: 12.5px; } .hud-big { font-size: 18px; } .hud-s { font-size: 10px; }
  .hr-line { font-size: 10.5px; } .hr-line small { display: none; }
  .x-full { display: none; } .x-short { display: inline !important; }
  .segs { margin: 3px 0 0; height: 4px; gap: 1.5px; }
  .banner { top: 70px; padding: 8px 18px; border-radius: 14px; } .banner strong { font-size: 22px; } .banner small { font-size: 11.5px; } .banner .k { font-size: 10px; } .banner em { font-size: 9.5px; }
  .block .h { font-size: 14px; } .block .pool { font-size: 10px; }
  .grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; } .card { padding: 14px; } .card.wide { grid-column: span 2; }
  .schedule .when small { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { animation-duration: .01ms !important; scroll-behavior: auto !important; } }

/* block-found banner: real money line */
.banner .money { margin-top: 6px; font: 600 12.5px var(--mono); color: #2a1604; background: rgba(28,15,2,.14); padding: 4px 12px; border-radius: 99px; white-space: normal; }
.banner .money b { font-weight: 800; } .banner .money i { font-style: normal; opacity: .6; margin: 0 2px; }
@media (max-width: 700px) { .banner .money { font-size: 10.5px; padding: 3px 9px; } }
@media (min-width: 701px) { .banner { top: auto; bottom: 3.5%; left: 64%; padding: 10px 26px; } }
@media (min-width: 701px) { .banner { width: max-content; max-width: 46%; } .banner .money { white-space: nowrap; } }
@media (max-width: 700px) { .banner { top: auto; bottom: 6px; padding: 6px 12px; } .banner small { display: none; } .banner .money { margin-top: 3px; } .banner .k { display: none; } }

/* ===================================================================================
   Bitcoin World + Talk to Satoshi
   =================================================================================== */
body.warp-down, body.warp-up, body.arrive-world, body.arrive-mine { overflow-x: hidden; }

/* header toggle: the prominent entry to the other world */
.world-toggle { position: relative; display: inline-flex; align-items: center; gap: 9px; padding: 9px 16px 9px 11px; border-radius: 99px; font: 700 14px var(--sans); color: #1c0f02; background: linear-gradient(135deg, #ffb347, var(--orange)); box-shadow: 0 0 0 1px rgba(255,210,122,.5), 0 6px 26px rgba(247,147,26,.38); white-space: nowrap; transition: transform .2s, box-shadow .2s; }
.world-toggle:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255,210,122,.8), 0 8px 34px rgba(247,147,26,.6); }
.world-toggle .wt-globe { width: 22px; height: 22px; border-radius: 50%; flex: none; background: radial-gradient(circle at 35% 30%, #fff1d6 0 8%, transparent 9%), radial-gradient(circle at 62% 62%, #2a1604 0 10%, transparent 11%), radial-gradient(circle at 30% 70%, #2a1604 0 7%, transparent 8%), radial-gradient(circle at 50% 50%, #ffcf80, #c9650a); box-shadow: inset -3px -3px 6px rgba(0,0,0,.35); animation: spinG 8s linear infinite; }
@keyframes spinG { to { filter: hue-rotate(0deg) brightness(1.15); transform: rotate(360deg); } }
.world-toggle.back { background: linear-gradient(135deg, #2a211b, #1a1511); color: var(--orange2); box-shadow: 0 0 0 1px rgba(247,147,26,.55), 0 6px 22px rgba(0,0,0,.4); }
.world-toggle.back .wt-globe { background: radial-gradient(circle at 50% 100%, #2a1604 0 30%, transparent 31%), radial-gradient(circle at 50% 50%, #ffcf80, #c9650a); animation: none; }
.wt-short { display: none; }
.nav a[aria-current] { color: var(--text); background: rgba(247,147,26,.12); }

/* view transition */
.warp { position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0; background: radial-gradient(circle at 50% 38%, rgba(255,179,71,.55), rgba(247,147,26,.18) 38%, transparent 70%); }
body.warp-down main:not([hidden]), body.warp-up main:not([hidden]) { animation: descend .52s cubic-bezier(.5,0,.9,.4) forwards; transform-origin: 50% 30vh; }
body.arrive-world main:not([hidden]) { animation: arrive-world .8s cubic-bezier(.15,.7,.2,1) both; transform-origin: 50% 30vh; }
body.arrive-mine main:not([hidden]) { animation: arrive-mine .7s cubic-bezier(.15,.7,.2,1) both; }
body.warp-down .warp, body.warp-up .warp { animation: flash .52s ease-in forwards; }
body.arrive-world .warp, body.arrive-mine .warp { animation: flash2 .8s ease-out forwards; }
@keyframes descend { to { opacity: 0; transform: scale(.7) translateY(9vh); filter: blur(6px) brightness(1.4); } }
@keyframes arrive-world { from { opacity: 0; transform: scale(1.25); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes arrive-mine { from { opacity: 0; transform: translateY(46px) scale(.95); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes flash { to { opacity: 1; } } @keyframes flash2 { from { opacity: 1; } to { opacity: 0; } }

/* world: shared bits */
.world { padding-bottom: 80px; }
.w-hero { position: relative; padding: 34px 0 12px; }
.w-hero::before { content: ""; position: absolute; left: -10%; right: -10%; top: -60px; height: 340px; z-index: -1; background: radial-gradient(520px 260px at 80% 40%, rgba(247,147,26,.18), transparent 70%), repeating-linear-gradient(90deg, rgba(247,147,26,.045) 0 1px, transparent 1px 64px), repeating-linear-gradient(0deg, rgba(247,147,26,.045) 0 1px, transparent 1px 64px); mask-image: linear-gradient(#000 40%, transparent); -webkit-mask-image: linear-gradient(#000 40%, transparent); }
.w-hero h1 { font-size: clamp(30px, 4.6vw, 52px); letter-spacing: -1.6px; max-width: 900px; }
.w-hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--orange), #ffd27a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.w-kicker { display: inline-block; font: 700 11.5px var(--mono); letter-spacing: 1.6px; text-transform: uppercase; color: var(--orange); margin-bottom: 8px; }
.w-sub { display: flex; flex-wrap: wrap; gap: 8px; }
.w-sub a, .w-ask { font: 600 13.5px var(--sans); padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--text); cursor: pointer; }
.w-sub a:hover { border-color: var(--orange); text-decoration: none; background: rgba(247,147,26,.08); }
.w-ask { border-color: rgba(247,147,26,.6); color: var(--orange2); } .w-ask:hover { background: rgba(247,147,26,.14); }
.w-sec { padding: 40px 0 6px; scroll-margin-top: 74px; }
.w-head { margin-bottom: 18px; } .w-head h2 { font-size: clamp(24px, 3vw, 34px); letter-spacing: -.8px; }
.w-lead { color: var(--muted); max-width: 760px; margin: 8px 0 0; }
.tiny { font-size: 12.5px; color: var(--muted); margin: 10px 0 0; } .tiny b { color: var(--text); }
.w-foot { padding-top: 34px; }
.bar.tall { height: 12px; margin: 14px 0; }
.btn { font: 600 14px var(--sans); cursor: pointer; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--orange); background: var(--orange); color: #1c0f02; } .btn:hover:not(:disabled) { background: var(--orange2); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); } .btn.ghost:hover:not(:disabled) { border-color: var(--orange); background: rgba(247,147,26,.08); }
.btn.ask { background: rgba(247,147,26,.12); color: var(--orange2); } .btn:disabled { opacity: .35; cursor: default; }
.fld { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.fld input, .cmp input { width: 84px; font: 600 16px var(--mono); color: var(--text); background: #0e0b09; border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; } .fld input:focus, .cmp input:focus { outline: 2px solid var(--orange); outline-offset: 1px; }
:focus-visible { outline: 2px solid var(--orange2); outline-offset: 2px; }

/* globe */
.map-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: 18px; align-items: start; }
.globe-wrap { min-width: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.chip { display: inline-flex; align-items: center; gap: 7px; font: 600 13px var(--sans); color: var(--muted); background: rgba(255,255,255,.03); border: 1px solid var(--line); padding: 7px 13px; border-radius: 99px; cursor: pointer; }
.chip i { font: 700 11px var(--mono); font-style: normal; background: rgba(255,255,255,.07); padding: 1px 7px; border-radius: 99px; }
.chip:hover { color: var(--text); border-color: #4a382a; } .chip.on { color: #1c0f02; background: var(--orange); border-color: var(--orange); } .chip.on i { background: rgba(28,15,2,.18); }
.globe-stage { position: relative; border: 1px solid #33271e; border-radius: 20px; overflow: hidden; background: radial-gradient(70% 70% at 50% 45%, #1b120b, #080605); box-shadow: 0 30px 80px rgba(0,0,0,.5), 0 0 80px rgba(247,147,26,.07); }
canvas.globe { display: block; width: 100%; aspect-ratio: 1 / .8; max-height: 600px; cursor: grab; touch-action: pan-y; } canvas.globe:active { cursor: grabbing; }
.globe-ctl { position: absolute; right: 12px; top: 12px; display: grid; gap: 6px; }
.globe-ctl button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: rgba(20,14,9,.85); color: var(--text); font: 600 18px var(--sans); cursor: pointer; } .globe-ctl button:hover { border-color: var(--orange); color: var(--orange2); }
.globe-hint { position: absolute; left: 14px; bottom: 12px; font: 11.5px var(--mono); color: var(--muted); pointer-events: none; }
.globe-tip { position: absolute; padding: 5px 10px; border-radius: 8px; background: rgba(20,14,9,.95); border: 1px solid var(--orange); font-size: 12.5px; pointer-events: none; max-width: 240px; z-index: 2; }
.entry-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px; margin-top: 12px; max-height: 214px; overflow-y: auto; padding-right: 4px; }
.le { display: grid; grid-template-columns: 12px 1fr; column-gap: 9px; align-items: center; text-align: left; font: 600 13px var(--sans); color: var(--text); padding: 8px 11px; border-radius: 12px; background: rgba(255,255,255,.025); border: 1px solid transparent; cursor: pointer; }
.le i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 9px var(--c); grid-row: span 2; }
.le small { grid-column: 2; font: 11.5px var(--sans); color: var(--muted); } .le:hover { border-color: #4a382a; } .le.on { border-color: var(--orange); background: rgba(247,147,26,.1); }

/* time vs bitcoin */
.tv-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; margin-bottom: 16px; } .tv-grid.three { grid-template-columns: repeat(3, 1fr); }
.tv-grid .panel { min-width: 0; } .tv-grid h3 { font: 700 11.5px var(--mono); letter-spacing: 1.3px; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.tv-big { font: 700 clamp(28px, 3.6vw, 46px)/1.1 var(--mono); letter-spacing: -1.5px; color: var(--orange2); text-shadow: 0 0 30px rgba(247,147,26,.35); overflow-wrap: anywhere; } .tv-big small { font: 600 15px var(--sans); color: var(--muted); letter-spacing: 0; text-shadow: none; } .tv-big.sm { font-size: clamp(26px, 3vw, 36px); margin: 14px 0 6px; }
.tv-split { display: flex; gap: 22px; flex-wrap: wrap; } .tv-split b { display: block; font: 700 22px var(--mono); } .tv-split small { color: var(--muted); font-size: 12.5px; }
.tv-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin: 16px 0 0; } .tv-facts div { border-top: 1px solid var(--line); padding-top: 8px; } .tv-facts dt { font-size: 12px; color: var(--muted); } .tv-facts dd { margin: 2px 0 0; font: 700 16px var(--mono); }
.tv-sub { color: var(--text); font-size: 14px; margin: 6px 0 0; } .tv-sub b { font-family: var(--mono); }
.tv-eras { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; margin-top: 14px; }
.era { text-align: center; padding: 7px 2px; border-radius: 8px; background: rgba(255,255,255,.03); border: 1px solid var(--line); } .era b { display: block; font: 700 11px var(--mono); } .era small { font: 9.5px var(--mono); color: var(--muted); }
.era.done { opacity: .45; } .era.now { border-color: var(--orange); background: rgba(247,147,26,.14); box-shadow: 0 0 18px rgba(247,147,26,.25); }
.tv-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; font-size: 13.5px; color: var(--muted); } .tv-list b { color: var(--text); font-family: var(--mono); } .tv-list li { padding-left: 14px; position: relative; } .tv-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; background: var(--orange); border-radius: 2px; }
.cmp { margin-bottom: 14px; } .cmp-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13.5px; } .cmp-h b { font: 700 15px var(--mono); color: var(--orange2); } .cmp small { color: var(--muted); font-size: 12px; } .cmp input { width: 58px; padding: 2px 6px; font-size: 13px; }

/* learning path */
.lp-chainwrap { overflow-x: auto; padding: 6px 4px 14px; scroll-snap-type: x proximity; }
.lp-chain { list-style: none; display: flex; gap: 0; margin: 0; padding: 0 6px; min-width: max-content; }
.lp-chain li { position: relative; scroll-snap-align: center; } .lp-chain li + li { margin-left: 26px; } .lp-chain li + li::before { content: ""; position: absolute; left: -26px; top: 50%; width: 26px; height: 3px; background: repeating-linear-gradient(90deg, var(--orange) 0 5px, transparent 5px 8px); opacity: .6; }
.lp-block { position: relative; width: 150px; min-height: 176px; text-align: left; display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 16px; border: 1px solid var(--line); background: linear-gradient(180deg, #1c150f, #120d0a); color: var(--text); cursor: pointer; font: inherit; transition: transform .2s, border-color .2s, box-shadow .2s; }
.lp-block:hover { transform: translateY(-3px); border-color: #5a4331; } .lp-block.on { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange), 0 10px 36px rgba(247,147,26,.28); transform: translateY(-4px); }
.lp-block.done::after { content: "\2713"; position: absolute; right: 10px; top: 8px; color: #1c0f02; background: var(--orange); width: 18px; height: 18px; border-radius: 50%; font: 700 11px/18px var(--sans); text-align: center; }
.lp-n { font: 700 11px var(--mono); color: var(--orange); } .lp-ico { font-size: 28px; line-height: 1.2; } .lp-block b { font-size: 15px; line-height: 1.2; } .lp-block small { color: var(--muted); font-size: 12px; line-height: 1.3; } .lp-hash { margin-top: auto; font: 10px var(--mono); color: #6f5e4f; font-style: normal; }
.lp-progress { display: flex; align-items: center; gap: 12px; margin: 4px 4px 14px; } .lp-progress .bar { flex: 1; margin: 0; height: 6px; } .lp-progress small { color: var(--muted); font: 12px var(--mono); white-space: nowrap; }
.lp-panel { border: 1px solid var(--line); border-radius: 20px; padding: clamp(18px, 3vw, 30px); background: linear-gradient(180deg, var(--panel2), var(--panel)); } .lp-panel.in { animation: cardin .35s ease-out; }
.lp-bn { font: 700 11.5px var(--mono); letter-spacing: 1.4px; text-transform: uppercase; color: var(--orange); } .lp-panel h3 { font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -.6px; margin: 6px 0 8px; } .lp-sum { color: var(--muted); font-size: 16px; max-width: 760px; margin: 0; }
.lp-secs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 18px 0; } .lp-secs section { padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid #231a14; } .lp-secs h4 { margin: 0 0 6px; font-size: 14.5px; color: var(--orange2); } .lp-secs p { margin: 0; font-size: 14.5px; color: #d9cdbf; }
.lp-take { border-left: 3px solid var(--orange); padding: 6px 0 6px 14px; margin: 0 0 18px; font-size: 15px; } .lp-panel footer { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }

/* Talk to Satoshi */
.satoshi-fab { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: flex; align-items: center; gap: 0; padding: 0; border: 0; background: none; cursor: pointer; filter: drop-shadow(0 10px 24px rgba(0,0,0,.6)); font-family: var(--sans); }
.satoshi-fab canvas { width: 62px; height: 62px; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #4a3727, #17100b); border: 2px solid var(--orange); box-shadow: 0 0 0 4px rgba(247,147,26,.18), 0 0 26px rgba(247,147,26,.45); order: 2; z-index: 1; transition: transform .2s; animation: fabglow 3s ease-in-out infinite; } @keyframes fabglow { 50% { box-shadow: 0 0 0 7px rgba(247,147,26,.1), 0 0 36px rgba(247,147,26,.6); } }
.sf-label { order: 1; margin-right: -14px; padding: 9px 24px 9px 16px; border-radius: 99px 0 0 99px; background: var(--panel2); border: 1px solid rgba(247,147,26,.55); border-right: 0; color: var(--text); font: 700 13.5px var(--sans); }
.satoshi-fab:hover canvas { transform: scale(1.07) rotate(-4deg); } body.chat-open .sf-label { display: none; }
.satoshi-chat { position: fixed; right: 16px; bottom: 92px; z-index: 70; width: min(400px, calc(100vw - 24px)); height: min(590px, calc(100dvh - 120px)); display: flex; flex-direction: column; border-radius: 22px; border: 1px solid rgba(247,147,26,.5); background: linear-gradient(180deg, #1a1410, #0f0b08); box-shadow: 0 30px 90px rgba(0,0,0,.75), 0 0 60px rgba(247,147,26,.14); overflow: hidden; opacity: 0; transform: translateY(14px) scale(.97); transform-origin: 90% 100%; transition: opacity .2s, transform .22s; }
.satoshi-chat[hidden] { display: none; } .satoshi-chat.on { opacity: 1; transform: none; }
.sc-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: linear-gradient(90deg, rgba(247,147,26,.16), transparent); border-bottom: 1px solid var(--line); }
.sc-face { width: 52px; height: 52px; border-radius: 50%; flex: none; background: radial-gradient(circle at 50% 35%, #4a3727, #17100b); border: 2px solid var(--orange); }
.sc-id b { display: block; font-size: 16px; } .sc-id small { color: var(--muted); font-size: 11.5px; line-height: 1.3; display: block; }
.sc-x { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.06); color: var(--text); font-size: 20px; cursor: pointer; } .sc-x:hover { background: rgba(247,147,26,.25); }
.sc-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 12px; scroll-behavior: smooth; overscroll-behavior: contain; }
.sc-msg { max-width: 94%; font-size: 14px; line-height: 1.5; animation: cardin .25s ease-out; } .sc-msg.me { align-self: flex-end; background: var(--orange); color: #1c0f02; padding: 8px 13px; border-radius: 16px 16px 4px 16px; font-weight: 600; }
.sc-msg.bot { align-self: flex-start; background: #211a14; border: 1px solid #30251c; padding: 10px 12px; border-radius: 16px 16px 16px 4px; width: 94%; }
.sc-frame { margin: 0 0 8px; color: var(--orange2); font-style: italic; font-size: 13px; } .sc-note { margin: 0 0 8px; padding: 6px 9px; border-radius: 8px; background: rgba(255,255,255,.05); color: var(--muted); font-size: 12.5px; } .sc-note b { color: var(--text); }
.sc-quote { margin: 0 0 10px; } .sc-quote blockquote { margin: 0; padding: 4px 0 4px 12px; border-left: 3px solid var(--orange); font-size: 14px; color: #f3e9dc; white-space: pre-line; overflow-wrap: anywhere; } .sc-quote mark { background: rgba(247,147,26,.28); color: #fff1d6; border-radius: 3px; padding: 0 2px; }
.sc-quote figcaption { margin: 6px 0 0 15px; font: 11.5px var(--mono); color: var(--muted); } .sc-quote figcaption b { color: #d9cdbf; } .sc-title { display: block; opacity: .8; } .sc-links { display: flex; gap: 12px; margin-top: 3px; } .sc-links a { font-weight: 700; }
.sc-more { margin-top: 2px; width: 100%; padding: 8px; border-radius: 10px; border: 1px dashed rgba(247,147,26,.6); background: transparent; color: var(--orange2); font: 600 13px var(--sans); cursor: pointer; } .sc-more:hover:not(:disabled) { background: rgba(247,147,26,.1); }
.sc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; } .sc-chips button, .sc-sugg button { font: 600 12px var(--sans); color: var(--text); background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 99px; padding: 6px 11px; cursor: pointer; } .sc-chips button:hover, .sc-sugg button:hover { border-color: var(--orange); }
.sc-sugg { display: flex; gap: 6px; overflow-x: auto; padding: 4px 14px 8px; scrollbar-width: none; } .sc-sugg button { white-space: nowrap; flex: none; }
.sc-typing { display: inline-flex; gap: 4px; padding: 4px 2px; } .sc-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); animation: bounce 1s infinite; } .sc-typing i:nth-child(2) { animation-delay: .15s; } .sc-typing i:nth-child(3) { animation-delay: .3s; } @keyframes bounce { 40% { transform: translateY(-5px); opacity: .5; } }
.sc-form { display: flex; gap: 8px; padding: 10px 14px 6px; border-top: 1px solid var(--line); } .sc-form input { flex: 1; min-width: 0; font: 15px var(--sans); color: var(--text); background: #0e0b09; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; } .sc-form input:focus { outline: 2px solid var(--orange); outline-offset: 1px; }
.sc-form button { width: 44px; border-radius: 12px; border: 0; background: var(--orange); color: #1c0f02; font-size: 18px; cursor: pointer; } .sc-form button:hover { background: var(--orange2); }
.sc-fine { margin: 0; padding: 4px 14px 10px; font-size: 10.5px; line-height: 1.35; color: #7d6e60; }

@media (max-width: 980px) {
  .map-grid { grid-template-columns: 1fr; }
  .tv-grid, .tv-grid.three { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .world-toggle { padding: 7px 12px 7px 9px; font-size: 13px; } .wt-full { display: none; } .wt-short { display: inline; }
  .topbar { gap: 8px; } .logo { font-size: 18px; } .conn { margin-left: 0; } .world-toggle { margin-left: auto; }
  .w-hero { padding-top: 22px; } .w-sec { padding-top: 30px; }
  canvas.globe { aspect-ratio: 1 / 1; } .entry-list { grid-template-columns: 1fr; max-height: 200px; }
  .tv-facts { grid-template-columns: 1fr; } .tv-eras { grid-template-columns: repeat(4, 1fr); }
  .lp-block { width: 138px; } .lp-panel footer .btn { flex: 1 1 100%; }
  .sf-label { display: none; } .satoshi-fab canvas { width: 56px; height: 56px; } .satoshi-fab { right: 12px; bottom: 12px; }
  body.chat-open .satoshi-fab { display: none; }
}


/* ===================================================================================
   Mobile polish (phones, small tablets, landscape phones). Local only.
   =================================================================================== */
:root { --hdr: 58px; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body, #world-view { overflow-x: clip; }
.menu-btn { display: none; }
.m-short { display: none; }
.demo b { cursor: pointer; user-select: none; } .demo.min button { display: none; } .demo.min b::after { content: " \25B8"; }
.hint-m { display: none; }
.gh-t { display: none; }
@media (pointer: coarse) { .gh-d { display: none; } .gh-t { display: inline; } }
.w-sec { scroll-margin-top: calc(var(--hdr) + 14px); }
canvas.globe { touch-action: none; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }

/* ---- compact sticky header: logo + World/Mine toggle + hamburger ---- */
@media (max-width: 900px) {
  .topbar { gap: 8px; flex-wrap: nowrap; min-height: 56px; padding: 7px max(12px, env(safe-area-inset-right)) 7px max(12px, env(safe-area-inset-left)); backdrop-filter: blur(14px); background: rgba(11,9,7,.9); }
  .logo { order: 0; font-size: 18px; gap: 8px; flex: none; white-space: nowrap; min-height: 44px; }
  .world-toggle { order: 2; margin-left: auto; min-height: 44px; padding: 7px 14px 7px 10px; font-size: 14px; white-space: nowrap; flex: none; }
  .wt-full { display: none; } .wt-short { display: inline; }
  .menu-btn { order: 3; display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--text); cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s, opacity .2s; }
  .menu-btn span { position: relative; } .menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
  .menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
  body.menu-open .menu-btn span { background: transparent; } body.menu-open .menu-btn span::before { top: 0; transform: rotate(45deg); } body.menu-open .menu-btn span::after { top: 0; transform: rotate(-45deg); }
  body.menu-open .menu-btn { border-color: var(--orange); }
  /* live status: a small dot on the logo coin, the text lives in the title */
  .conn { position: absolute; left: calc(max(12px, env(safe-area-inset-left)) + 20px); top: 8px; width: 12px; height: 12px; padding: 0; border: 2px solid #0b0907; border-radius: 50%; background: #0b0907; gap: 0; }
  .conn span { display: none; } .conn i { width: 100%; height: 100%; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 2px; flex: none; padding: 8px max(12px, env(safe-area-inset-right)) 14px max(12px, env(safe-area-inset-left)); background: rgba(11,9,7,.98); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px rgba(0,0,0,.6); max-height: calc(100dvh - var(--hdr)); overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-8px); pointer-events: none; transition: opacity .18s, transform .18s, visibility 0s .18s; }
  body.menu-open .nav { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition: opacity .18s, transform .18s; }
  .nav a { min-height: 48px; padding: 10px 14px; font-size: 16px; border-radius: 12px; }
  body.menu-open { overflow: hidden; }
}

/* ---- phones ---- */
@media (max-width: 700px) {
  .w-hero::before { left: 0; right: 0; }
  .wrap, main { --pad: 12px; }
  .hero h1 { font-size: clamp(25px, 7.4vw, 32px); letter-spacing: -1px; }
  .hero .sub, .sub { font-size: 14.5px; }

  /* mine scene */
  .banner { top: auto; bottom: 8px; left: 50%; padding: 5px 14px; max-width: calc(100% - 16px); width: max-content; }
  .banner strong { font-size: 21px; } .banner small { display: none; } .banner .k { display: block; font-size: 9.5px; }
  .banner .money { font-size: 11px; margin-top: 3px; text-align: center; } .banner .m-long { display: none; } .banner .m-short { display: inline; }
  .demo b { display: inline-flex; align-items: center; min-height: 38px; }

  /* chain strip: newest block sits under the chute at the left, older blocks follow to the right; swipe for more */
  :root { --bw: 86px; }
  .underground { height: calc(var(--bw) + 54px); }
  .chain { left: 0; right: 0; width: auto; flex-direction: row; gap: 20px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; touch-action: pan-x pan-y;
    padding: 0 48px 0 max(8px, calc(var(--chute-x, 100px) - var(--bw) / 2)); -webkit-mask-image: linear-gradient(270deg, transparent 0, #000 44px); mask-image: linear-gradient(270deg, transparent 0, #000 44px); }
  .chain::-webkit-scrollbar { display: none; }
  .block::before { right: auto; left: 100%; width: 20px; }
  .block .who { font-size: 9.5px; } .block .h { font-size: 15px; } .block .pool { font-size: 10px; } .block .meta { display: none; } .block .age { font-size: 10px; }
  .block.pending .who { display: none; } .block.pending .h { font-size: 15px; } .block.pending .age { font-size: 14px; }
  .chain-hint { font-size: 10px; padding: 0 10px; } .hint-d { display: none; } .hint-m { display: inline; }

  /* table never pushes the page wider */
  .two > .panel { min-width: 0; } .tablewrap { max-width: 100%; -webkit-overflow-scrolling: touch; }

  /* demo tools (?demo=1 only): small pill that never covers the chain strip */
  .demo { left: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); padding: 6px 8px; gap: 6px; font-size: 11px; max-width: calc(100vw - 84px); flex-wrap: wrap; border-radius: 12px; opacity: .92; }
  .demo button { padding: 8px 10px; font-size: 12px; min-height: 38px; }

  /* world */
  .w-hero { padding-top: 16px; } .w-hero h1 { font-size: clamp(26px, 8vw, 34px); letter-spacing: -1px; }
  .w-sub a, .w-ask { min-height: 44px; display: inline-flex; align-items: center; }
  .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -12px; padding: 2px 12px 8px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
  .filters::-webkit-scrollbar { display: none; } .chip { flex: none; min-height: 44px; padding: 8px 14px; }
  canvas.globe { aspect-ratio: 1 / 1; max-height: 68dvh; }
  .globe-ctl { gap: 8px; right: 10px; top: 10px; } .globe-ctl button { width: 44px; height: 44px; font-size: 20px; border-radius: 12px; }
  .globe-hint { left: 10px; right: 64px; bottom: 10px; font-size: 11px; line-height: 1.35; }
  .entry-list { max-height: 280px; overscroll-behavior: contain; } .le { min-height: 52px; padding: 9px 12px; }
  .tv-grid, .tv-grid.three { grid-template-columns: minmax(0, 1fr); } .tv-grid .panel { padding: 16px; }
  .fld input, .cmp input { height: 44px; font-size: 16px; padding: 6px 10px; } .fld input { width: 96px; }
  .cmp-h { flex-wrap: wrap; align-items: center; } .cmp-h > span { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; } .cmp input { width: 66px; text-align: center; }
  .lp-chainwrap { margin-inline: -12px; padding-inline: 12px; scroll-padding-inline: 12px; }
  .lp-block { width: 140px; min-height: 176px; }
  .lp-secs { grid-template-columns: minmax(0, 1fr); }
  .lp-panel footer .btn, .btn { min-height: 48px; }
  .lp-panel { padding: 18px 16px; }
  .w-foot a { display: inline-block; padding: 10px 0; }

  /* dot card becomes a bottom sheet (see also the 900px block) */
  .satoshi-fab { right: calc(12px + env(safe-area-inset-right)); bottom: calc(12px + env(safe-area-inset-bottom)); }

  /* Satoshi chat: full-screen sheet; visualViewport (JS) keeps it above the keyboard */
  .satoshi-chat { left: 0; right: 0; top: var(--vv-top, 0px); bottom: auto; width: 100%; height: var(--vv-h, 100dvh); border: 0; border-radius: 0; transform: translateY(24px); transform-origin: 50% 100%; box-shadow: none; padding-top: env(safe-area-inset-top); padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); overscroll-behavior: contain; }
  .satoshi-chat.on { transform: none; }
  body.chat-open { overflow: hidden; }
  .sc-head { padding: 10px 12px; } .sc-face { width: 46px; height: 46px; }
  .sc-x { width: 46px; height: 46px; font-size: 26px; flex: none; }
  .sc-log { padding: 12px; } .sc-msg { font-size: 15px; max-width: 96%; } .sc-msg.bot { width: 100%; }
  .sc-quote blockquote { font-size: 15px; }
  .sc-sugg { padding: 6px 12px 8px; } .sc-sugg button, .sc-chips button { min-height: 44px; padding: 8px 14px; font-size: 14px; }
  .sc-more { min-height: 46px; font-size: 14px; }
  .sc-form { padding: 8px 12px 6px; } .sc-form input { height: 48px; font-size: 16px; } .sc-form button { width: 52px; height: 48px; }
  .sc-fine { padding: 4px 14px calc(8px + env(safe-area-inset-bottom)); }
  .satoshi-chat.kbd .sc-fine { display: none; } .satoshi-chat.kbd .sc-sugg { display: none; }
  .sc-quote figcaption a, .sc-fine a { display: inline-block; padding: 8px 2px; }
}

/* ---- dot card = bottom sheet on tablets/phones ---- */
@media (max-width: 900px) {
  .map-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---- landscape phones: short viewport ---- */
@media (max-height: 520px) and (orientation: landscape) {
  :root { --hdr: 50px; }
  .topbar { min-height: 50px; padding-top: 4px; padding-bottom: 4px; }
  .world-toggle { min-height: 44px; } .menu-btn { width: 44px; height: 44px; }
  .conn { top: 5px; }
  .hero { padding-top: 8px; } .hero h1 { font-size: 20px; margin: 0 0 4px; } .hero .sub, .sub { display: none; }
  .cave { max-height: calc(100dvh - var(--hdr) - 10px); }
  .stage { margin-top: 6px; }
  .banner { font-size: 90%; }
  .w-hero { padding: 10px 0 4px; } .w-hero h1 { font-size: 24px; } .w-hero p.w-lead, .w-lead { font-size: 14px; }
  canvas.globe { aspect-ratio: auto; height: calc(100dvh - var(--hdr) - 20px); max-height: none; }
  .globe-stage { border-radius: 14px; }
  .satoshi-chat { left: auto; right: 0; top: var(--vv-top, 0px); width: min(480px, 66vw); height: var(--vv-h, 100dvh); border-radius: 0; border-width: 0 0 0 1px; padding-right: env(safe-area-inset-right); }
}
@media (max-height: 520px) and (orientation: landscape) and (pointer: coarse) {
  .w-nav a, .w-ask, .chip, .globe-ctl button, .lp-nav .btn, .btn { min-height: 44px; }
  .globe-ctl button { width: 44px; height: 44px; }
  .field input, .calc input, .w-time input, input[type=number], input[type=text] { min-height: 44px; font-size: 16px; }
  .satoshi-chat { transform: translateX(24px); } .satoshi-chat.on { transform: none; }
  .satoshi-chat .sc-fine, .satoshi-chat .sc-sugg { display: none; }
  .sc-head { padding: 6px 12px; } .sc-face { width: 38px; height: 38px; } .sc-id small { display: none; }
  body.chat-open { overflow: hidden; }
  .sc-x { width: 44px; height: 44px; font-size: 24px; }
  .sc-form input { height: 44px; font-size: 16px; } .sc-form button { height: 44px; }
  .satoshi-fab canvas { width: 50px; height: 50px; } .satoshi-fab { bottom: 8px; right: calc(10px + env(safe-area-inset-right)); }
}
@media (prefers-reduced-motion: reduce) { .dot-card, .nav, .satoshi-chat { transition-duration: .01ms !important; } }


/* ---- language switch (EN | DE) ---- */
.lang { display: inline-flex; flex: none; align-items: stretch; border: 1px solid var(--line); border-radius: 99px; background: rgba(255,255,255,.04); overflow: hidden; }
.lang button { appearance: none; border: 0; background: transparent; color: var(--muted); font: 700 12px var(--mono); letter-spacing: .6px; min-width: 40px; min-height: 36px; padding: 0 10px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.lang button:hover { color: var(--text); background: rgba(255,255,255,.06); }
.lang button.on { background: var(--orange); color: #1c0f02; }
.lang button:focus-visible { outline: 2px solid var(--orange2); outline-offset: -2px; }
@media (max-width: 900px) {
  .lang { order: 1; margin-left: auto; } .lang + .world-toggle { margin-left: 0; }
  .lang button { min-height: 44px; min-width: 38px; padding: 0 8px; }
}
@media (max-width: 440px) {
  .topbar { gap: 6px; } .logo { font-size: 17px; gap: 6px; } .coin { width: 26px; height: 26px; font-size: 16px; }
  .world-toggle { padding: 7px 11px 7px 8px; font-size: 13px; gap: 6px; } .world-toggle .wt-globe { width: 18px; height: 18px; }
  .lang button { min-width: 34px; padding: 0 6px; font-size: 11.5px; }
}

/* ---- Satoshi: German translation label + original toggle ---- */
.sc-trbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; margin: 0 0 4px 15px; }
.sc-trlabel { font: 10.5px var(--mono); letter-spacing: .3px; color: var(--orange2); } .sc-trlabel.none { color: var(--muted); }
.sc-orig { appearance: none; background: transparent; border: 1px solid var(--line); color: var(--muted); font: 11px var(--mono); border-radius: 99px; padding: 5px 10px; min-height: 30px; cursor: pointer; }
.sc-orig:hover { color: var(--text); border-color: var(--orange); }
.sc-quote .sc-en { border-left-color: #8a8a8a; color: #cfc6bb; font-style: normal; }
.sc-quote [hidden] { display: none; }
@media (pointer: coarse) { .sc-orig { min-height: 44px; padding: 0 14px; } }


/* ───────── Environment story (Bitcoin World) ───────── */
.env { --e-temp: #ff8a5c; --e-co2: #8fd694; --e-ice: rgba(120,190,255,.13); }
.env-btn { font: 700 15px var(--sans); min-height: 44px; padding: 10px 20px; border-radius: 99px; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--text); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.env-btn:hover { text-decoration: none; border-color: var(--orange); background: rgba(247,147,26,.08); }
.env-btn.primary { background: linear-gradient(180deg, #ffb347, var(--orange)); color: #1a0f05; border-color: #ffb347; box-shadow: 0 6px 24px rgba(247,147,26,.28); }
.env-btn.primary:hover { filter: brightness(1.08); background: linear-gradient(180deg, #ffc067, #f89a2a); }
.env-btn:focus-visible, .env-chip:focus-visible, .env-prog button:focus-visible { outline: 2px solid var(--orange2); outline-offset: 2px; }
.stick { width: 90px; height: auto; overflow: visible; display: block; } .stick.big { width: 150px; } .stick.mini { width: 54px; flex: none; }
.stick .sk-o { stroke: #1b1410; fill: none; } .stick .sk-f { fill: none; }
.stick .wv { transform-origin: 40px 38px; animation: wv 1.3s ease-in-out infinite; } @keyframes wv { 50% { transform: rotate(-14deg); } }
.stick .lamp { animation: lampg 2.2s ease-in-out infinite; } @keyframes lampg { 50% { fill: #ffe9a0; } }
.stick .lantern { animation: lant 3s ease-in-out infinite; transform-origin: 63px 55px; } @keyframes lant { 50% { transform: rotate(5deg); } }

.env-gate { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: center; margin-top: 8px; padding: 22px 28px; border: 1px solid #33271e; border-radius: 20px; background: radial-gradient(520px 260px at 14% 60%, rgba(247,147,26,.14), transparent 70%), linear-gradient(180deg, #120d09, #0b0907); box-shadow: 0 24px 70px rgba(0,0,0,.45); overflow: hidden; }
.eg-cave { position: relative; display: grid; place-items: end center; min-height: 190px; }
.eg-cave .stick { position: relative; z-index: 2; margin-bottom: 6px; }
.eg-glow { position: absolute; inset: 10% 0 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,210,122,.32), transparent); animation: egg 3.4s ease-in-out infinite; } @keyframes egg { 50% { opacity: .6; transform: scale(.94); } }
.eg-rock { position: absolute; bottom: 0; background: #1d1611; border-radius: 40% 40% 0 0; } .eg-rock.r1 { left: 4%; width: 70px; height: 34px; } .eg-rock.r2 { right: 2%; width: 94px; height: 48px; background: #17110d; }
.eg-q { font-size: clamp(24px, 3.2vw, 38px); letter-spacing: -.9px; margin: 2px 0 18px; max-width: 640px; }
.eg-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.eg-reply { margin: 14px 0 0; color: var(--orange2); max-width: 600px; min-height: 1.4em; animation: egr .4s ease; } @keyframes egr { from { opacity: 0; transform: translateY(4px); } }

.env-story { margin-top: 8px; animation: egr .6s ease; }
.env-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 14px; flex-wrap: wrap; }
.env-prog { display: flex; gap: 4px; flex-wrap: wrap; }
.env-prog button { width: 34px; height: 44px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; position: relative; color: var(--muted); font: 600 11px var(--mono); }
.env-prog button i { position: absolute; left: 3px; right: 3px; top: 20px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.12); transition: background .3s; }
.env-prog button span { position: relative; top: -9px; } .env-prog button.past i { background: rgba(247,147,26,.55); } .env-prog button.on i { background: var(--orange); box-shadow: 0 0 8px var(--glow); } .env-prog button.on { color: var(--text); }
.env-skip { font: 600 13px var(--sans); color: var(--muted); background: none; border: 1px solid var(--line); border-radius: 99px; padding: 0 14px; min-height: 44px; cursor: pointer; } .env-skip:hover { color: var(--text); border-color: var(--orange); }

.env-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.env-viz { position: sticky; top: 84px; align-self: start; z-index: 3; }
.env-card { border: 1px solid #33271e; border-radius: 18px; background: linear-gradient(180deg, #16100c, #0e0a08); padding: 14px 14px 10px; box-shadow: 0 20px 60px rgba(0,0,0,.45); }
.ev-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; } .ev-title { font-size: 15px; letter-spacing: -.2px; }
.ev-badge { font: 700 10px var(--mono); text-transform: uppercase; letter-spacing: .8px; padding: 3px 8px; border-radius: 99px; white-space: nowrap; border: 1px solid; }
.ev-badge.real { color: #8fd694; border-color: rgba(143,214,148,.45); background: rgba(143,214,148,.08); } .ev-badge.approx { color: var(--orange2); border-color: rgba(247,147,26,.45); background: rgba(247,147,26,.08); }
.ev-chart { position: relative; min-height: 120px; } .ev-chart.swap { animation: evs .5s ease; } @keyframes evs { from { opacity: 0; } }
.ev-sub { position: relative; } .ev-sub + .ev-sub { margin-top: 4px; }
.ev-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; } .ev-chips:empty { display: none; }
.env-chip { font: 600 12.5px var(--sans); min-height: 44px; padding: 0 14px; border-radius: 99px; background: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.env-chip[aria-pressed=true] { color: var(--text); border-color: rgba(247,147,26,.6); background: rgba(247,147,26,.1); }
.env-chip .cx { width: 12px; height: 12px; border-radius: 3px; background: var(--e-co2); } .env-chip .cx.dT { background: var(--e-temp); } .env-chip .cx.lanes { background: #b9a3ff; }
.ev-note { margin: 6px 2px 2px; font-size: 12px; color: var(--muted); line-height: 1.45; } .ev-note:empty { display: none; }

.e-svg { display: block; width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.e-grid { stroke: rgba(255,255,255,.06); } .e-axis { stroke: rgba(255,255,255,.25); }
.e-tick { fill: #9a8b7c; font: 10.5px var(--mono); } .e-axl { fill: #8b7d6f; font: 10.5px var(--sans); } .e-axl.e-l { fill: var(--e-temp); } .e-axl.e-r { fill: var(--e-co2); }
.ev-chart[data-x] .e-axl.e-l { fill: #8b7d6f; }
.env-card[data-scene=orbit] .e-axl.e-l, .env-card[data-scene=holo] .e-axl.e-l, .env-card[data-scene=modern] .ev-sub:first-child .e-axl.e-l { fill: var(--e-co2); }
.env-card[data-scene=orbit] .e-axl.e-r { fill: var(--e-temp); }
.e-ln { fill: none; stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; animation: edraw 1.2s ease-out; }
@keyframes edraw { from { stroke-dashoffset: 1; } }
.e-ln.temp { stroke: var(--e-temp); } .e-ln.co2 { stroke: var(--e-co2); } .e-rng { fill: rgba(143,214,148,.14); stroke: none; }
.e-band { fill: var(--e-ice); } .e-band-t { fill: #8fc4ff; font: 10px var(--mono); letter-spacing: .6px; text-transform: uppercase; opacity: .8; }
.e-strip { fill: #2a2f36; } .e-strip.m { fill: #5d4220; } .e-strip.c { fill: #243541; } .e-strip-t { fill: #e8d9c6; font: 600 10px var(--mono); letter-spacing: .5px; }
.e-dim { fill: rgba(11,9,7,.62); pointer-events: none; }
.e-ref { stroke: rgba(255,255,255,.28); stroke-dasharray: 4 4; } .e-ref-t { fill: #a39384; font: 10px var(--mono); }
.e-mark { stroke: rgba(255,210,122,.55); stroke-dasharray: 2 3; } .e-mark-t { fill: var(--orange2); font: 600 10.5px var(--sans); }
.e-lane { fill: none; stroke-width: 1.8; opacity: .9; } .e-lane.ecc { stroke: #b9a3ff; } .e-lane.obl { stroke: #7fd1c7; } .e-lane.pre { stroke: #ffd27a; } .e-lane-t { fill: #9a8b7c; font: 10px var(--mono); }
.e-tipline { stroke: rgba(255,255,255,.5); } .e-dot { fill: #fff; stroke: #0b0907; stroke-width: 1.6; } .e-dot.temp { fill: var(--e-temp); } .e-dot.co2 { fill: var(--e-co2); }
.e-tipbox { position: absolute; top: 6px; left: 0; pointer-events: none; background: rgba(10,8,6,.92); border: 1px solid var(--line); border-radius: 10px; padding: 6px 9px; font: 11.5px var(--mono); display: grid; gap: 2px; white-space: nowrap; z-index: 4; }
.e-tipbox i { font-style: normal; color: var(--muted); } .e-tipbox .tp-temp b { color: var(--e-temp); } .e-tipbox .tp-co2 b { color: var(--e-co2); } .e-tipbox .tp-tmp b { color: var(--e-temp); }

.mixbar { display: flex; height: 40px; border-radius: 10px; overflow: hidden; gap: 2px; margin: 8px 0 12px; }
.mixbar i { display: grid; place-items: center; font: 700 11px var(--mono); color: #0b0907; min-width: 3px; } .mixbar i span { padding: 0 2px; }
.mx-hydro { background: #4fb0e8; } .mx-wind { background: #8ee0c8; } .mx-solar { background: #ffd24a; } .mx-other { background: #b7e08c; } .mx-nuclear { background: #b9a3ff; }
.mx-gas { background: #d98a4e; } .mx-coal { background: #8b6a55; } .mx-oil { background: #5c4a40; }
.mixleg { list-style: none; padding: 0; margin: 0 0 12px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 6px 12px; font-size: 12.5px; color: var(--muted); }
.mixleg li { display: flex; align-items: center; gap: 7px; } .mixleg i { width: 11px; height: 11px; border-radius: 3px; flex: none; } .mixleg b { color: var(--text); font-family: var(--mono); margin-left: auto; }
.mixtot { display: flex; flex-wrap: wrap; gap: 8px; } .mixtot span { font-size: 13px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); } .mixtot b { font-family: var(--mono); } .mixtot .s { border-color: rgba(143,214,148,.45); color: #bfe8c3; } .mixtot .f { border-color: rgba(217,138,78,.5); color: #f0bf9d; }
.leaf { width: 100%; height: auto; display: block; } .leaf .lf { fill: #efe6dc; font: 700 16px var(--mono); } .leaf .lf.sm { font-size: 12px; fill: #ffd27a; } .leaf .arr { stroke: #ffd27a; stroke-width: 3; fill: none; stroke-dasharray: 6 6; animation: dash 1.2s linear infinite; marker-end: none; } @keyframes dash { to { stroke-dashoffset: -24; } }
.leaf .fl.o .arr, .leaf .fl.s .arr { stroke: #8fd694; }

.env-steps { padding-bottom: 12vh; }
.env-step { min-height: 64vh; padding: 20px 22px 22px; margin-bottom: 26px; border: 1px solid var(--line); border-radius: 16px; background: rgba(20,16,13,.72); opacity: .5; transition: opacity .35s, border-color .35s, transform .35s; display: flex; flex-direction: column; justify-content: center; }
.env-step.on { opacity: 1; border-color: rgba(247,147,26,.5); box-shadow: 0 0 0 1px rgba(247,147,26,.12), 0 14px 44px rgba(0,0,0,.35); }
.env-step h3 { font-size: clamp(21px, 2.4vw, 28px); letter-spacing: -.6px; margin-bottom: 10px; } .env-step p { margin: 0 0 10px; color: #d9cdbf; }
.env-step b { color: var(--text); }
.es-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 12px; } .es-facts > div { padding: 7px 12px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line); min-width: 0; }
.es-facts dt { font-size: 11px; color: var(--muted); order: 2; } .es-facts dd { margin: 0; font: 700 15px var(--mono); color: var(--orange2); } .es-facts > div { display: flex; flex-direction: column; }
.es-say { display: flex; gap: 10px; align-items: center; padding: 10px 14px 10px 8px; border-radius: 14px; background: rgba(127,209,199,.07); border: 1px solid rgba(127,209,199,.28); margin: 4px 0 12px; } .es-say p { margin: 0; font-style: italic; color: #cfeee9; font-size: 14.5px; }
.es-src { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: baseline; font-size: 12px; color: var(--muted); margin: 0 !important; } .es-src > span { font-weight: 700; }
.e-src { font-size: 12px; padding: 2px 8px; border-radius: 99px; border: 1px solid var(--line); color: var(--orange2); line-height: 1.5; word-break: break-word; } .e-src:hover { border-color: var(--orange); text-decoration: none; }

.env-btc { margin-top: 36px; padding-top: 30px; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.btc-mix { max-width: 760px; margin: 0 0 22px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); } .btc-mix h4 { margin: 0; font-size: 14px; color: var(--muted); font-weight: 600; }
.btc-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.btc-card { padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(180deg, #17110d, #110c09); display: flex; flex-direction: column; gap: 8px; }
.btc-card header { display: flex; align-items: center; gap: 10px; } .bc-ico { font-size: 22px; } .bc-tag { font: 700 10.5px var(--mono); text-transform: uppercase; letter-spacing: .8px; color: var(--orange2); border: 1px solid rgba(247,147,26,.4); border-radius: 99px; padding: 2px 9px; }
.btc-card h3 { font-size: 20px; letter-spacing: -.4px; } .btc-card p { margin: 0; } .bc-who { font-size: 12.5px; color: var(--muted); } .bc-who b { color: var(--text); } .bc-text { color: #d9cdbf; font-size: 14.5px; }
.bc-keep { font-size: 13px; color: #e8cfa8; background: rgba(247,147,26,.07); border-left: 3px solid var(--orange); border-radius: 4px 10px 10px 4px; padding: 8px 12px; } .bc-keep b { color: var(--orange2); }
.btc-card .es-src { margin-top: auto !important; padding-top: 4px; }
.btc-crit { margin: 20px 0 10px; padding: 16px 20px; border: 1px dashed rgba(247,147,26,.5); border-radius: 16px; background: rgba(247,147,26,.04); } .btc-crit h4 { margin: 0 0 8px; font-size: 16px; } .btc-crit ul { margin: 0; padding-left: 20px; color: #d9cdbf; font-size: 14px; display: grid; gap: 6px; }
.btc-all { margin: 10px 0; font-size: 13px; color: var(--muted); } .btc-all summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; } .btc-all ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; } .btc-all a { word-break: break-word; }

.env-back { margin-top: 36px; display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: center; padding: 26px 30px; border: 1px solid #33271e; border-radius: 22px; background: radial-gradient(420px 240px at 12% 70%, rgba(247,147,26,.2), transparent 70%), linear-gradient(180deg, #120d09, #090706); overflow: hidden; }
.eb-cave { position: relative; height: 190px; display: grid; place-items: end center; border-radius: 120px 120px 0 0; background: radial-gradient(closest-side at 50% 80%, #2a1b0e, #0b0705); border: 2px solid #2a211b; border-bottom: 0; }
.eb-torch { position: absolute; bottom: 70px; width: 8px; height: 30px; border-radius: 3px; background: #4a3220; } .eb-torch::before { content: ""; position: absolute; left: -7px; top: -22px; width: 22px; height: 26px; border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%; background: radial-gradient(circle at 50% 70%, #fff3b0, #ffb347 55%, rgba(247,147,26,0)); animation: flick .9s ease-in-out infinite alternate; }
.eb-torch.l { left: 22px; } .eb-torch.r { right: 22px; } @keyframes flick { to { transform: scale(.88) translateY(2px); opacity: .85; } }
.eb-cave .stick { position: relative; z-index: 2; margin-bottom: 4px; }
.eb-body h3 { font-size: clamp(22px, 2.8vw, 32px); letter-spacing: -.7px; margin-bottom: 8px; } .eb-body p { color: #d9cdbf; max-width: 560px; margin: 0 0 16px; }

@media (max-width: 1100px) { .btc-cards { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .env-gate { grid-template-columns: 1fr; padding: 16px; gap: 6px; text-align: left; } .eg-cave { min-height: 130px; } .stick.big { width: 108px; }
  .env-grid { grid-template-columns: 1fr; gap: 14px; }
  .env-viz { top: calc(var(--hdr) + 2px); margin: 0 -4px; }
  .env-card { padding: 8px 8px 6px; border-radius: 14px; } .ev-head { margin-bottom: 2px; } .ev-title { font-size: 13.5px; } .ev-note { font-size: 11px; max-height: 3.2em; overflow: hidden; }
  .env-chip { min-height: 44px; padding: 0 12px; }
  .env-step { min-height: 56vh; padding: 16px; margin-bottom: 18px; } .env-step.on { opacity: 1; }
  .es-facts > div { padding: 6px 10px; }
  .env-back { grid-template-columns: 1fr; padding: 18px; } .eb-cave { height: 160px; max-width: 280px; margin: 0 auto; width: 100%; }
  .env-prog button { width: 30px; }
}
@media (max-width: 900px) and (orientation: landscape) { .env-viz { position: static; } }
@media (prefers-reduced-motion: reduce) { .e-ln, .stick .wv, .stick .lamp, .stick .lantern, .eg-glow, .eb-torch::before, .leaf .arr, .env-story, .eg-reply, .ev-chart.swap { animation: none !important; } }

.e-tipbox[hidden] { display: none; }
.e-lane-t { paint-order: stroke; stroke: #0e0a08; stroke-width: 3px; stroke-linejoin: round; }

/* ───────── Globe: real-Earth look + callout anchored to the dot ───────── */
.map-grid { grid-template-columns: minmax(0, 1fr); }
.globe-stage { background: radial-gradient(60% 70% at 50% 46%, #0d1c33 0%, #060b14 70%, #04070c 100%); border-color: #1d2c44; box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 90px rgba(70,140,255,.10); }
.globe-stage::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image: radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent), radial-gradient(1px 1px at 82% 12%, #cfe3ff 50%, transparent), radial-gradient(1.3px 1.3px at 68% 78%, #fff 50%, transparent), radial-gradient(1px 1px at 24% 82%, #dfeaff 50%, transparent), radial-gradient(1px 1px at 92% 52%, #fff 50%, transparent), radial-gradient(1px 1px at 6% 56%, #cfe3ff 50%, transparent), radial-gradient(1.2px 1.2px at 40% 8%, #fff 50%, transparent), radial-gradient(1px 1px at 56% 93%, #fff 50%, transparent); }
canvas.globe { position: relative; }
.globe-ctl button { background: rgba(10,18,32,.82); border-color: #2a3c58; } .globe-ctl button:hover { border-color: var(--orange); }
.globe-hint { color: #8fa3bf; text-shadow: 0 1px 4px #000; } .globe-stage.has-call .globe-hint { display: none; }
.globe-tip { background: rgba(10,16,28,.95); }
.globe-intro { margin: 12px 2px 0; font-size: 14px; color: var(--muted); max-width: 900px; } .globe-intro b { color: var(--orange2); } .globe-intro span { display: block; margin-top: 4px; font-size: 12.5px; color: #8b7d6f; }
.entry-list { margin-top: 12px; }

.gline { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 2; opacity: 0; transition: opacity .2s; --c: #ffd27a; }
.gline.on { opacity: 1; } .gline path { fill: none; stroke: var(--c); stroke-width: 1.6; stroke-dasharray: 4 3; filter: drop-shadow(0 0 3px rgba(0,0,0,.9)); } .gline circle { fill: none; stroke: #fff; stroke-width: 1.6; }
.gcall { position: absolute; left: 0; top: 0; z-index: 3; width: 340px; max-width: calc(100% - 20px); overflow-y: auto; overscroll-behavior: contain; padding: 14px 16px 14px; border-radius: 16px; border: 1px solid var(--c); background: rgba(13,10,8,.94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 18px 50px rgba(0,0,0,.65), 0 0 0 1px rgba(0,0,0,.4), 0 0 28px color-mix(in srgb, var(--c) 22%, transparent); transition: opacity .2s; scrollbar-width: thin; scrollbar-color: #4a382a transparent; --c: #ffd27a; }
.gcall[hidden] { display: none; } .gcall.back { opacity: 0; pointer-events: none; }
.gcall .dc { position: relative; animation: cardin .3s ease-out; } @keyframes cardin { from { opacity: 0; transform: translateY(6px); } }
.dc-x { position: sticky; float: right; top: 0; z-index: 2; width: 44px; height: 44px; margin: -10px -12px 0 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.07); color: var(--text); font-size: 24px; line-height: 1; cursor: pointer; } .dc-x:hover { background: rgba(247,147,26,.25); }
.dc-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font: 11.5px var(--mono); color: var(--muted); padding-right: 36px; }
.dc-cat { color: #1c0f02; background: var(--c); padding: 2px 10px; border-radius: 99px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; font-size: 10.5px; }
.gcall h3 { font-size: 19px; letter-spacing: -.3px; margin: 10px 0 8px; } .gcall .dc p { margin: 0 0 10px; font-size: 14px; line-height: 1.5; }
.dc-note { font-size: 13px !important; color: var(--muted); border-left: 3px solid var(--orange); padding: 3px 0 3px 11px; } .dc-note b { color: var(--orange2); }
.dc-src { display: grid; gap: 5px; border-top: 1px solid var(--line); padding-top: 10px; } .dc-src b { font: 700 10.5px var(--mono); letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.dc-src a { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; font-size: 13px; padding: 7px 10px; border-radius: 10px; background: rgba(255,255,255,.04); min-height: 36px; } .dc-src a:hover { text-decoration: none; background: rgba(247,147,26,.12); } .dc-src a small { color: var(--muted); font-size: 11px; white-space: nowrap; }

/* phones: the callout docks under the globe; the dashed line still runs to the dot */
.globe-stage.dock .gcall { position: relative; width: auto; max-width: none; margin: 0; transform: none !important; border-radius: 0 0 16px 16px; border-width: 1px 0 0 0; padding: 12px 14px 16px; box-shadow: none; }
.globe-stage.dock .gcall.back { opacity: 1; pointer-events: auto; }
.globe-stage.dock .dc-src a { min-height: 44px; align-items: center; }
@media (max-width: 700px) { .dc-x { margin-top: -8px; } }
@media (max-height: 520px) and (orientation: landscape) { .gcall .dc p { font-size: 13px; } .gcall h3 { font-size: 17px; } }
@media (prefers-reduced-motion: reduce) { .gcall, .gline, .gcall .dc { transition: none; animation: none; } }

/* ───────── HUD cards: small, equal, mirrored, translucent (never cover the duty sign / stickman / rock) ───────── */
:root { --hud-w: 148px; --hud-h: 56px; }
.hud { top: 10px; padding: 5px 8px; border-radius: 9px; background: rgba(10,8,6,.34); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); border: 1px solid rgba(255,255,255,.06); }
.hud-left { left: 10px; } .hud-right { right: 10px; gap: 3px; }
.hud-k { font-size: 8.5px; letter-spacing: .3px; line-height: 1.2; }
.hud-big { font-size: 15px; line-height: 1.15; letter-spacing: -.3px; }
.hud-s { font-size: 9.5px; margin-top: 0; }
.hud-name { font-size: 12px; line-height: 1.2; }
.portrait { width: 24px; height: 24px; border-radius: 6px; }
.hr-top { gap: 6px; }
.x-full { display: none; } .x-short { display: inline !important; }
.hr-line { font-size: 10px; } .hr-line small { display: none; }
.segs { margin: 3px 0 0; height: 4px; gap: 1.5px; }
@media (max-width: 900px) { :root { --hud-w: 140px; } .hud-left { left: 8px; } .hud-right { right: 8px; } .hud { top: 8px; } }
@media (max-width: 700px) { :root { --hud-w: min(148px, calc(50% - 12px)); --hud-h: 54px; } .hud { padding: 4px 7px; } .banner { top: 66px; } }
@media (min-width: 701px) and (max-width: 1240px) { .conn span { display: none; } .conn { padding: 6px 8px; } }
@media (min-width: 701px) and (max-width: 1100px) { .topbar { gap: 10px; } .nav { gap: 0; } .nav a { padding: 7px 7px; font-size: 13.5px; } }
.demo select{font:600 12px var(--sans);color:#fff;background:#2a1c10;border:1px solid var(--orange);border-radius:9px;padding:7px 6px;min-height:34px}
