/* OREACLE: a dark mine with a lamp on it. Pixel type for labels, Inter for reading, mono for numbers. */
:root {
  --bg: #0c0e11;
  --bg2: #11141a;
  --panel: #151920;
  --panel2: #1b2029;
  --line: #262d38;
  --line2: #323b48;
  --ink: #e8ecf1;
  --ink2: #aab3bf;
  --mute: #7a8494;
  --gold: #f2b33d;
  --gold2: #ffd479;
  --btc: #f7931a;
  --eth: #9aa6ff;
  --sol: #9945ff;
  --sol2: #14f195;
  --good: #3fcf8e;
  --bad: #ff5d5d;
  --warn: #f5b33b;
  --radius: 10px;
  --pix: "Silkscreen", ui-monospace, monospace;
  --sans: "Inter", system-ui, -apple-system, Segoe UI, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--sans);
  background-image:
    radial-gradient(1200px 500px at 70% -10%, rgba(242, 179, 61, 0.08), transparent 60%),
    radial-gradient(900px 400px at 0% 10%, rgba(153, 69, 255, 0.06), transparent 60%);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold2); text-decoration: none; }
a:hover { text-decoration: underline; }
.muted { color: var(--mute); }
.mono { font-family: var(--mono); font-feature-settings: "tnum"; }
.c-btc { color: var(--btc); } .c-eth { color: var(--eth); } .c-sol { color: #b98cff; }
button { font: inherit; color: inherit; }

/* ───────── top bar ───────── */
.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px;
  padding: 12px clamp(16px, 3vw, 32px); background: rgba(12, 14, 17, 0.82); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font: 700 20px/1 var(--pix); letter-spacing: 0.04em; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 28px; height: 28px; image-rendering: pixelated; }
.x-link { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line2); background: var(--panel); color: var(--ink); font-size: 16px; }
.x-link:hover { text-decoration: none; border-color: var(--gold); }
.nav { display: flex; gap: 18px; font: 400 13px var(--pix); }
.nav a { color: var(--ink2); }
.nav a:hover { color: var(--ink); text-decoration: none; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.ca {
  display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line2);
  background: var(--panel); cursor: pointer; font: 12px var(--mono); color: var(--ink2);
}
.ca-label { font: 11px var(--pix); color: var(--gold); }
.ca.copied { border-color: var(--good); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 8px; font: 700 12px var(--pix); letter-spacing: 0.02em; border: 1px solid transparent; }
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn-gold { background: linear-gradient(180deg, var(--gold2), var(--gold)); color: #1b1305; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3) inset, 0 6px 20px rgba(242, 179, 61, 0.18); }

/* ───────── live ───────── */
.live {
  display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px;
  padding: 16px clamp(16px, 3vw, 32px) 0; max-width: 1480px; margin: 0 auto;
}
.stage { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.screen {
  position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #070809;
  border: 1px solid var(--line2); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}
.screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #070809; }
.screen-off {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center;
  background: radial-gradient(600px 300px at 50% 60%, rgba(242, 179, 61, 0.08), transparent 70%), #08090b; color: var(--ink2); padding: 24px;
}
.screen-off p { margin: 0; max-width: 46ch; }
.screen-off.hide { display: none; }
.pix-spinner { width: 28px; height: 28px; background: var(--gold); animation: pix 1.2s steps(4) infinite; image-rendering: pixelated;
  clip-path: polygon(0 0, 40% 0, 40% 40%, 0 40%, 0 0, 60% 0, 100% 0, 100% 40%, 60% 40%, 60% 0, 60% 60%, 100% 60%, 100% 100%, 60% 100%, 60% 60%, 0 60%, 40% 60%, 40% 100%, 0 100%, 0 60%); }
@keyframes pix { to { transform: rotate(360deg); } }
.hud-top { position: absolute; top: 12px; left: 12px; display: flex; gap: 8px; pointer-events: none; }
.live-pill, .hud-tag {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px; border-radius: 7px; font: 11px var(--pix);
  background: rgba(8, 10, 13, 0.72); border: 1px solid rgba(255, 255, 255, 0.08); backdrop-filter: blur(6px);
}
.live-pill i { width: 8px; height: 8px; border-radius: 2px; background: var(--bad); box-shadow: 0 0 10px var(--bad); animation: blink 1.4s infinite; }
.live-pill.off i { background: var(--mute); box-shadow: none; animation: none; }
@keyframes blink { 50% { opacity: 0.35; } }
.hud-who {
  position: absolute; top: 12px; right: 12px; display: flex; align-items: center; gap: 10px; padding: 7px 11px; border-radius: 9px;
  background: rgba(8, 10, 13, 0.72); border: 1px solid rgba(255, 255, 255, 0.08); backdrop-filter: blur(6px); pointer-events: none; max-width: 60%;
}
.hud-who:empty { display: none; }
.hud-who b { font: 700 13px var(--pix); }
.hud-who span { font-size: 12px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dot { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.bubble {
  position: absolute; left: 50%; bottom: 58px; transform: translateX(-50%); max-width: min(620px, 86%);
  padding: 10px 14px; border-radius: 12px; background: rgba(250, 247, 240, 0.95); color: #17130b; font-size: 14px; line-height: 1.4;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); pointer-events: none; animation: rise 0.35s ease-out;
}
.bubble b { font: 700 11px var(--pix); margin-right: 8px; }
@keyframes rise { from { opacity: 0; transform: translate(-50%, 6px); } }
.hud-controls { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 8px; }
.chip {
  padding: 6px 10px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(8, 10, 13, 0.72);
  font: 11px var(--pix); cursor: pointer; backdrop-filter: blur(6px);
}
.chip[aria-pressed="true"] { border-color: var(--gold); color: var(--gold2); }
.switcher { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.sw {
  display: flex; align-items: center; gap: 9px; min-width: 0; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--panel); cursor: pointer; text-align: left;
}
.sw:hover { border-color: var(--line2); }
.sw[aria-selected="true"] { border-color: var(--gold); background: var(--panel2); }
.sw .who { min-width: 0; }
.sw .who b { display: block; font: 700 12px var(--pix); }
.sw .who span { display: block; font-size: 11px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sw.off { opacity: 0.5; }

/* ───────── side panels ───────── */
.side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.panel h2 { margin: 0; font: 700 14px var(--pix); letter-spacing: 0.02em; }
.panel h2 span { color: var(--gold2); }
.badge { font: 10px var(--pix); padding: 3px 7px; border-radius: 6px; border: 1px solid var(--line2); color: var(--ink2); }
.badge.live { border-color: rgba(63, 207, 142, 0.5); color: var(--good); }
.badge.sim { border-color: rgba(245, 179, 59, 0.5); color: var(--warn); }
.bar { position: relative; height: 26px; border-radius: 7px; background: #0b0d10; border: 1px solid var(--line); overflow: hidden; }
.bar-fill {
  position: absolute; inset: 0 auto 0 0; width: 0; transition: width 0.8s ease;
  background: repeating-linear-gradient(90deg, var(--gold) 0 10px, #e8a52f 10px 20px); box-shadow: 0 0 20px rgba(242, 179, 61, 0.35);
}
.bar-label { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; color: #fff; text-shadow: 0 1px 2px #000; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin: 12px 0 0; }
.kv div { min-width: 0; }
.kv dt { font: 10px var(--pix); color: var(--mute); }
.kv dd { margin: 2px 0 0; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wallet { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: -2px 0 10px; padding: 7px 10px; border-radius: 8px; background: var(--bg2); border: 1px solid var(--line); font-size: 12px; color: var(--ink2); }
.wallet:hover { border-color: var(--line2); text-decoration: none; color: var(--ink); }
.wallet b { font: 10px var(--pix); color: var(--mute); }
.contrib { display: flex; height: 6px; border-radius: 4px; overflow: hidden; margin-top: 12px; background: #0b0d10; }
.contrib i { display: block; height: 100%; }
.ores { display: grid; gap: 8px; }
.ore { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; background: var(--bg2); border: 1px solid var(--line); }
.ore svg { width: 22px; height: 22px; image-rendering: pixelated; }
.ore .nm { font: 700 12px var(--pix); }
.ore .sub { font-size: 11px; color: var(--mute); }
.ore .px { text-align: right; font: 13px var(--mono); }
.ore .ch { display: block; font-size: 11px; }
.up { color: var(--good); } .down { color: var(--bad); }

/* ───────── ticker ───────── */
.ticker-wrap { max-width: 1480px; margin: 12px auto 0; padding: 0 clamp(16px, 3vw, 32px); }
.ticker { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; mask-image: linear-gradient(90deg, #000 85%, transparent); }
.ticker::-webkit-scrollbar { display: none; }
.ticker li {
  flex: none; display: flex; align-items: center; gap: 8px; padding: 7px 11px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel);
  font-size: 13px; white-space: nowrap; color: var(--ink2);
}
.ticker li b { font: 700 10px var(--pix); color: var(--ink); }
.ticker li.k-block { border-color: rgba(242, 179, 61, 0.55); color: var(--gold2); }
.ticker li.k-burn { border-color: rgba(255, 93, 93, 0.45); color: #ffb3a8; }
.ticker li.k-death { color: #ff9b9b; }
.ticker li.k-sale { color: #d8e6c7; }

/* ───────── sections ───────── */
.section { max-width: 1480px; margin: 0 auto; padding: 56px clamp(16px, 3vw, 32px) 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 18px; flex-wrap: wrap; }
.h { margin: 0; font: 700 clamp(22px, 3vw, 30px)/1.1 var(--pix); letter-spacing: 0.01em; }
.lede { margin: 0; max-width: 64ch; color: var(--ink2); }

.crew { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 10px; cursor: pointer; }
.card:hover { border-color: var(--line2); }
.card-head { display: flex; align-items: center; gap: 10px; }
.avatar { width: 40px; height: 40px; border-radius: 8px; flex: none; display: grid; place-items: center; font: 700 16px var(--pix); color: #0c0e11; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.25); }
.card-head .who b { display: block; font: 700 15px var(--pix); }
.card-head .who span { font-size: 12px; color: var(--mute); }
.card-head .state { margin-left: auto; font: 10px var(--pix); padding: 3px 7px; border-radius: 6px; border: 1px solid var(--line2); color: var(--ink2); }
.state.on { color: var(--good); border-color: rgba(63, 207, 142, 0.4); }
.meters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.meter { display: grid; gap: 4px; }
.meter label { font: 10px var(--pix); color: var(--mute); display: flex; justify-content: space-between; }
.meter .m { height: 6px; border-radius: 3px; background: #0b0d10; overflow: hidden; }
.meter .m i { display: block; height: 100%; border-radius: 3px; }
.activity { font-size: 13px; color: var(--ink); }
.thought { font-size: 13px; color: var(--ink2); border-left: 2px solid var(--line2); padding-left: 10px; min-height: 2.6em; }
.bag { display: flex; flex-wrap: wrap; gap: 6px; }
.bag span { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; border-radius: 6px; background: var(--bg2); border: 1px solid var(--line); font: 12px var(--mono); }
.bag svg { width: 14px; height: 14px; image-rendering: pixelated; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; border-top: 1px solid var(--line); padding-top: 10px; }
.stats div { text-align: center; }
.stats b { display: block; font: 13px var(--mono); }
.stats span { font: 9px var(--pix); color: var(--mute); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.blocks { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 720px; }
.blocks th { text-align: left; font: 10px var(--pix); color: var(--mute); padding: 12px 14px; border-bottom: 1px solid var(--line); }
.blocks td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.blocks tr:last-child td { border-bottom: 0; }
.blocks td.h { font: 700 14px var(--pix); color: var(--gold2); }
.mix { display: flex; gap: 6px; }
.mix span { font: 12px var(--mono); }
.burn-ok { color: var(--good); } .burn-sim { color: var(--warn); } .burn-bad { color: var(--bad); }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.step-n { font: 700 12px var(--pix); color: var(--gold); }
.step h3 { margin: 8px 0 6px; font: 700 17px var(--pix); }
.step p { margin: 0; color: var(--ink2); font-size: 14px; }
.faq { margin-top: 18px; display: grid; gap: 8px; max-width: 900px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; }
.faq summary { cursor: pointer; font: 700 13px var(--pix); }
.faq p { margin: 10px 0 2px; color: var(--ink2); }

.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; max-width: 1480px; margin: 56px auto 0; padding: 22px clamp(16px, 3vw, 32px) 36px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink2); }

/* ───────── responsive ───────── */
@media (max-width: 1100px) {
  .live { grid-template-columns: 1fr; }
  .side { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .side { grid-template-columns: 1fr; }
  .switcher { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; }
  .screen { aspect-ratio: 4 / 3; }
  .hud-who { max-width: calc(100% - 24px); top: auto; bottom: 52px; right: 12px; }
  .bubble { bottom: 100px; font-size: 13px; }
  .ca .ca-val { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
