/* ============ CATSCII — terminal arcade ============ */
:root {
  --void: #05060a;
  --panel: #0a0e12;
  --panel2: #0d1410;
  --line: #1c2b24;
  --phos: #00ff9d;
  --phos-dim: #0a5c3c;
  --pink: #ff3ecf;
  --volt: #ffd23d;
  --cyan: #35d8ff;
  --red: #ff2244;
  --paper: #e6ffee;
  --dim: #7d9488;
  --font-display: 'Silkscreen', monospace;
  --font-term: 'VT323', monospace;
  --font-body: 'Space Grotesk', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  background: var(--void);
  color: var(--paper);
  font-family: var(--font-body);
  overflow-x: hidden;
  min-height: 100vh;
}
::selection { background: var(--phos); color: #031; }

a { color: var(--cyan); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
code { font-family: var(--font-term); color: var(--volt); font-size: 1.05em; }

/* ---- layers ---- */
html { overflow-x: hidden; }
#rain {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: .5; width: 100vw; height: 100vh;
}
.crt {
  position: fixed; inset: 0; z-index: 50; pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,.16) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
}
.crt::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.5));
}
main, header.hud, footer { position: relative; z-index: 2; }

/* ---- boot ---- */
#boot {
  position: fixed; inset: 0; z-index: 100;
  background: #020304;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  padding: 8vw; cursor: pointer;
  transition: opacity .6s ease, visibility .6s;
}
#boot.off { opacity: 0; visibility: hidden; }
#bootText {
  font-family: var(--font-term); font-size: clamp(16px, 2.2vw, 26px);
  color: var(--phos); text-shadow: 0 0 12px rgba(0,255,157,.55);
  white-space: pre-wrap; line-height: 1.45;
}
#bootText::after { content: '█'; animation: blink 1s steps(1) infinite; }
#bootSkip {
  margin-top: 3rem; font-family: var(--font-term); color: var(--dim);
  animation: blink 1.6s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---- HUD ---- */
.hud {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .6rem 1.2rem;
  background: rgba(4,6,8,.82); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.logo {
  font-family: var(--font-display); font-size: 1.25rem; color: var(--paper);
  letter-spacing: 1px;
}
.logo span { color: var(--phos); text-shadow: 0 0 14px rgba(0,255,157,.7); }
.logo i { font-style: normal; color: var(--pink); animation: blink 1.1s steps(1) infinite; }
.hud-chips { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.chip {
  display: flex; align-items: baseline; gap: .45rem;
  border: 1px solid var(--line); border-radius: 4px;
  background: rgba(10,16,13,.8); padding: .3rem .6rem;
  font-family: var(--font-term); font-size: 1.05rem;
}
.chip label { color: var(--dim); font-size: .78rem; letter-spacing: .12em; }
.chip b { color: var(--phos); font-weight: 400; }
.chip-money b { color: var(--volt); }
.chip-wallet b { color: var(--cyan); }
.chip-wallet em { font-style: normal; color: var(--pink); }
.chip-btn { color: var(--phos); background: transparent; }
.chip-btn.mute { color: var(--dim); text-decoration: line-through; }

/* ---- HERO ---- */
.hero {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem;
  align-items: center; max-width: 1200px; margin: 0 auto;
  padding: clamp(2rem, 6vh, 5rem) 1.5rem 3rem;
  min-height: 88vh;
}
.eyebrow {
  font-family: var(--font-term); color: var(--dim); font-size: 1.1rem;
  letter-spacing: .06em; margin-bottom: 1rem;
}
.blink { color: var(--phos); animation: blink 1s steps(1) infinite; }
.title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(3rem, 9vw, 7rem); line-height: .95; letter-spacing: 2px;
  margin-bottom: 1.4rem; position: relative;
}
.t-line { position: relative; display: inline-block; }
.t-accent { color: var(--phos); text-shadow: 0 0 26px rgba(0,255,157,.55); }
/* glitch layer */
.t-line::before, .t-line::after {
  content: attr(data-text); position: absolute; inset: 0; opacity: 0;
}
.title:hover .t-line::before, .title.glitch .t-line::before {
  opacity: .8; color: var(--pink); transform: translate(-3px, -2px);
  animation: glitchA 1.2s steps(2) infinite; clip-path: inset(0 0 55% 0);
}
.title:hover .t-line::after, .title.glitch .t-line::after {
  opacity: .8; color: var(--cyan); transform: translate(3px, 2px);
  animation: glitchB .9s steps(2) infinite; clip-path: inset(60% 0 0 0);
}
@keyframes glitchA { 0%,100% { transform: translate(-3px,-2px);} 50% { transform: translate(2px,1px);} }
@keyframes glitchB { 0%,100% { transform: translate(3px,2px);} 50% { transform: translate(-2px,-1px);} }
.tagline {
  font-size: clamp(1rem, 1.4vw, 1.15rem); line-height: 1.65; color: #b9d4c4;
  max-width: 34rem; margin-bottom: 1.8rem;
}
.hl-volt { color: var(--volt); }
.hl-pink { color: var(--pink); }

.btn-big {
  font-family: var(--font-display); font-size: 1.05rem; letter-spacing: 1px;
  background: var(--phos); color: #02150c; border: none; border-radius: 4px;
  padding: 1rem 1.8rem;
  box-shadow: 0 0 0 1px var(--phos), 0 0 28px rgba(0,255,157,.35), inset 0 -4px 0 rgba(0,0,0,.25);
  transition: transform .12s ease, box-shadow .2s ease, background .2s;
  position: relative; overflow: hidden;
}
.btn-big:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--phos), 0 0 48px rgba(0,255,157,.6), inset 0 -4px 0 rgba(0,0,0,.25); }
.btn-big:active { transform: translateY(1px); }
.btn-big.stop { background: var(--red); box-shadow: 0 0 0 1px var(--red), 0 0 28px rgba(255,34,68,.4); color: #fff; }
.btn-big::after {
  content: ''; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.5), transparent);
  animation: sheen 3.2s ease infinite;
}
@keyframes sheen { 0%, 65% { left: -120%; } 100% { left: 140%; } }
.btn-ghost {
  font-family: var(--font-term); font-size: 1.15rem; color: var(--dim);
  background: none; border: 1px dashed var(--line); border-radius: 4px;
  padding: .9rem 1.4rem; margin-left: .9rem; display: inline-block;
  transition: color .2s, border-color .2s;
}
.btn-ghost:hover { color: var(--phos); border-color: var(--phos-dim); }
.hero-cta { display: flex; align-items: center; margin-bottom: 2.2rem; }

.hero-stats { display: flex; gap: 2.2rem; flex-wrap: wrap; }
.hero-stats > div { display: flex; flex-direction: column; }
.hero-stats b { font-family: var(--font-term); font-size: 1.9rem; color: var(--paper); line-height: 1; }
.hero-stats b small { font-size: 1.1rem; color: var(--dim); }
.hero-stats label { font-size: .72rem; color: var(--dim); letter-spacing: .14em; text-transform: uppercase; margin-top: .3rem; }

/* specimen frame */
.hero-right { display: flex; justify-content: center; }
.specimen {
  border: 1px solid var(--line); border-radius: 8px; background: var(--panel);
  padding: .8rem; width: min(560px, 92vw);
  box-shadow: 0 0 60px rgba(0,255,157,.07), inset 0 0 40px rgba(0,0,0,.5);
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-10px); } }
.specimen-head {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-term); font-size: 1.1rem; color: var(--dim);
  padding: .2rem .4rem .6rem;
}
.specimen-head b { color: var(--phos); }
.specimen-head button {
  background: none; border: 1px solid var(--line); border-radius: 4px;
  color: var(--cyan); font-family: var(--font-term); font-size: 1rem; padding: .15rem .6rem;
  transition: all .2s;
}
.specimen-head button:hover { border-color: var(--cyan); box-shadow: 0 0 14px rgba(53,216,255,.3); transform: rotate(-8deg); }
#heroCat { width: 100%; height: auto; display: block; border-radius: 4px; image-rendering: pixelated; }
.specimen-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-term); padding: .6rem .4rem .2rem; font-size: 1rem;
}
.dna { color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60%; }
.tier { padding: .1rem .55rem; border-radius: 3px; font-size: .95rem; letter-spacing: .08em; }
.tier[data-tier="COMMON"] { background: #1a2420; color: var(--dim); }
.tier[data-tier="UNCOMMON"] { background: #0a3d28; color: var(--phos); }
.tier[data-tier="RARE"] { background: #0a2e40; color: var(--cyan); }
.tier[data-tier="EPIC"] { background: #381032; color: var(--pink); }
.tier[data-tier="LEGENDARY"] { background: #403008; color: var(--volt); box-shadow: 0 0 14px rgba(255,210,61,.4); }

/* ---- sections ---- */
section { max-width: 1200px; margin: 0 auto; padding: 4.5rem 1.5rem; }
.sec {
  font-family: var(--font-display); font-size: clamp(1.3rem, 3vw, 2rem);
  letter-spacing: 2px; margin-bottom: 2.2rem; color: var(--paper);
}
.sec span { color: var(--phos-dim); margin-right: .8rem; }
.sec::after { content: ' ▮'; color: var(--phos); animation: blink 1.3s steps(1) infinite; }

/* ---- modes ---- */
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-bottom: 1.6rem; }
.mode {
  text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  padding: 1.2rem 1.3rem; color: var(--paper);
  transition: transform .15s ease, border-color .2s, box-shadow .25s;
  position: relative;
}
.mode:hover { transform: translateY(-4px); border-color: var(--phos-dim); }
.mode.active { border-color: var(--phos); box-shadow: 0 0 30px rgba(0,255,157,.18), inset 0 0 24px rgba(0,255,157,.05); }
.mode.active::before {
  content: '▶ ACTIVE'; position: absolute; top: .6rem; right: .7rem;
  font-family: var(--font-term); color: var(--phos); font-size: .95rem;
  animation: blink 1.4s steps(1) infinite;
}
.mode-art { font-family: var(--font-term); font-size: .95rem; line-height: 1.15; color: var(--cyan); margin-bottom: .7rem; }
.mode[data-mode="gpu"] .mode-art { color: var(--pink); }
.mode[data-mode="agent"] .mode-art { color: var(--volt); }
.mode b { font-family: var(--font-display); letter-spacing: 1px; font-size: .95rem; display: block; margin-bottom: .4rem; }
.mode p { font-size: .86rem; color: #a4bcae; line-height: 1.5; margin-bottom: .6rem; }
.mode em { font-family: var(--font-term); font-style: normal; color: var(--dim); font-size: 1rem; }

/* ---- console ---- */
.console-wrap {
  border: 1px solid var(--line); border-radius: 8px; background: #060a08;
  overflow: hidden;
}
.console-top {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 1rem 1.2rem; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(0,255,157,.04), transparent);
}
.meter { display: flex; align-items: baseline; gap: .6rem; }
.meter label { font-size: .7rem; letter-spacing: .16em; color: var(--dim); }
.meter b {
  font-family: var(--font-term); font-size: 3rem; line-height: 1; color: var(--phos);
  text-shadow: 0 0 18px rgba(0,255,157,.5); min-width: 5.2ch; text-align: right;
}
.meter small { font-family: var(--font-term); font-size: 1.3rem; color: var(--dim); }
#spark { margin-left: 1rem; opacity: .9; }
.meter-side { display: flex; gap: 1.6rem; align-items: center; }
.meter-side > div { display: flex; flex-direction: column; align-items: center; }
.meter-side label { font-size: .64rem; letter-spacing: .14em; color: var(--dim); }
.meter-side b { font-family: var(--font-term); font-size: 1.6rem; color: var(--paper); }

#console {
  height: 240px; overflow-y: auto; padding: 1rem 1.2rem;
  font-family: var(--font-term); font-size: 1.12rem; line-height: 1.5;
}
#console p { margin: 0; animation: lineIn .25s ease; word-break: break-all; }
@keyframes lineIn { from { opacity: 0; transform: translateX(-6px); } }
#console .sys { color: var(--phos); }
#console .ok { color: var(--phos); }
#console .warn { color: var(--volt); }
#console .ghost { color: #5d7a6b; }
#console .mint { color: var(--pink); text-shadow: 0 0 10px rgba(255,62,207,.4); }
#console .agent { color: var(--cyan); }
#console .round { color: var(--dim); letter-spacing: .04em; }
#console .hash { color: #3d5c4c; }
#console::-webkit-scrollbar { width: 8px; }
#console::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }

.rig-controls {
  display: flex; align-items: center; gap: .9rem; flex-wrap: wrap;
  padding: 1rem 1.2rem; border-top: 1px solid var(--line);
}
.btn-sub {
  font-family: var(--font-term); font-size: 1.05rem; color: var(--cyan);
  background: none; border: 1px solid var(--line); border-radius: 4px; padding: .6rem 1rem;
  transition: all .2s;
}
.btn-sub:hover { border-color: var(--cyan); }
.btn-danger { color: var(--dim); }
.btn-danger:hover { color: var(--red); border-color: var(--red); }
.diff { margin-left: auto; font-family: var(--font-term); color: var(--dim); font-size: 1rem; }
.diff b { color: var(--paper); font-weight: 400; }

/* mining state pulse */
body.mining .console-wrap { border-color: var(--phos-dim); animation: minePulse 1.6s ease infinite; }
@keyframes minePulse {
  0%, 100% { box-shadow: 0 0 0 rgba(0,255,157,0); }
  50% { box-shadow: 0 0 42px rgba(0,255,157,.14); }
}

/* ---- arena ---- */
.arena-head {
  display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; margin-bottom: 1.2rem;
  font-family: var(--font-term); font-size: 1.2rem;
}
.arena-round b { color: var(--phos); font-size: 1.5rem; }
.arena-timer { flex: 1; min-width: 160px; height: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
#timerBar { height: 100%; width: 100%; background: linear-gradient(90deg, var(--phos), var(--cyan)); transition: width .5s linear; }
#timerBar.hot { background: linear-gradient(90deg, var(--red), var(--pink)); }
.arena-seed { color: var(--dim); }
.arena-seed span { color: #4a6a58; }

/* ---- network hashrate panel ---- */
.network {
  border: 1px solid var(--line); border-radius: 8px; background: #060a08;
  padding: 1.2rem 1.4rem; margin-bottom: 1.4rem;
  background-image: linear-gradient(180deg, rgba(53,216,255,.04), transparent 40%);
}
.net-stats { display: flex; gap: 2.4rem; align-items: flex-end; flex-wrap: wrap; margin-bottom: 1.1rem; }
.net-stats label { display: block; font-size: .66rem; letter-spacing: .16em; color: var(--dim); margin-bottom: .25rem; }
.net-big .net-num { display: flex; align-items: baseline; gap: .5rem; }
.net-big b {
  font-family: var(--font-term); font-size: 3.4rem; line-height: .9; color: var(--cyan);
  text-shadow: 0 0 24px rgba(53,216,255,.55); font-weight: 400;
  font-variant-numeric: tabular-nums;
}
.net-big small { font-family: var(--font-term); font-size: 1.4rem; color: var(--dim); }
.net-mini b { font-family: var(--font-term); font-size: 1.7rem; color: var(--paper); font-weight: 400; }
.net-board { display: flex; flex-direction: column; gap: .4rem; }
.net-row {
  display: grid; grid-template-columns: 14px minmax(110px, 160px) 52px 1fr 90px;
  gap: .7rem; align-items: center; font-family: var(--font-term); font-size: 1.05rem;
  padding: .32rem .5rem; border-radius: 4px; transition: background .3s;
}
.net-row.you { background: rgba(255,210,61,.07); outline: 1px dashed rgba(255,210,61,.35); }
.net-row.you .nr-name { color: var(--volt); }
.nr-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--phos); box-shadow: 0 0 8px var(--phos); }
.net-row.off .nr-dot { background: #444; box-shadow: none; }
.net-row.off { opacity: .45; }
.nr-name { color: var(--paper); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nr-mode { font-size: .8rem; letter-spacing: .1em; color: var(--dim); text-transform: uppercase; }
.nr-mode.gpu { color: var(--pink); }
.nr-mode.cpu { color: var(--phos); }
.nr-mode.agent { color: var(--cyan); }
.nr-bar { height: 9px; background: #0a0e12; border-radius: 5px; overflow: hidden; border: 1px solid #131c17; }
.nr-bar i {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--phos), var(--cyan));
  box-shadow: 0 0 10px rgba(0,255,157,.6);
  transition: width .45s cubic-bezier(.2, .8, .2, 1);
}
.net-row.you .nr-bar i { background: linear-gradient(90deg, var(--volt), var(--pink)); box-shadow: 0 0 10px rgba(255,210,61,.6); }
.nr-rate { text-align: right; color: var(--paper); font-variant-numeric: tabular-nums; }
.net-row.off .nr-rate { color: var(--dim); }
@media (max-width: 640px) {
  .net-row { grid-template-columns: 10px minmax(80px, 110px) 1fr 70px; }
  .nr-mode { display: none; }
  .net-big b { font-size: 2.4rem; }
}

.ticket-banner {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  border: 1px dashed var(--pink); border-radius: 8px;
  background: rgba(255,62,207,.06); color: var(--paper);
  padding: 1rem 1.2rem; margin-bottom: 1.4rem; font-size: 1rem;
  animation: ticketGlow 1.8s ease infinite;
}
@keyframes ticketGlow { 50% { box-shadow: 0 0 34px rgba(255,62,207,.25); } }
.ticket-banner b { color: var(--pink); }
#btnClaimTicket {
  margin-left: auto; font-family: var(--font-display); font-size: .85rem;
  background: var(--pink); color: #fff; border: none; border-radius: 4px; padding: .7rem 1.2rem;
  box-shadow: 0 0 22px rgba(255,62,207,.4);
  transition: transform .12s;
}
#btnClaimTicket:hover { transform: scale(1.05); }

.slots { display: grid; grid-template-columns: repeat(5, 1fr); gap: .9rem; }
.slot {
  aspect-ratio: 1.6; border: 1px solid var(--line); border-radius: 6px;
  background: var(--panel);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem;
  font-family: var(--font-term); color: var(--dim); overflow: hidden;
  position: relative; transition: border-color .3s;
}
.slot .idx { position: absolute; top: .3rem; left: .5rem; font-size: .85rem; color: #2c3e34; }
.slot.empty::after { content: '· · ·'; letter-spacing: .3em; animation: blink 2s steps(1) infinite; }
.slot.taken { border-color: var(--phos-dim); animation: slotPop .45s cubic-bezier(.2, 2, .4, 1); }
.slot.taken.you { border-color: var(--volt); box-shadow: 0 0 26px rgba(255,210,61,.25); }
@keyframes slotPop { 0% { transform: scale(.6); } 70% { transform: scale(1.06); } }
.slot .who { color: var(--paper); font-size: 1.05rem; max-width: 92%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot.you .who { color: var(--volt); }
.slot .via { font-size: .8rem; color: var(--dim); letter-spacing: .1em; }
.slot .tid { font-size: .9rem; color: var(--pink); }
.arena-note { margin-top: 1.2rem; color: var(--dim); font-size: .9rem; max-width: 46rem; }

/* ---- collection ---- */
.supply { display: flex; align-items: center; gap: 1.2rem; margin-bottom: 1.8rem; flex-wrap: wrap; }
.supply-bar { flex: 1; min-width: 220px; height: 14px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel); overflow: hidden; }
#supplyFill {
  height: 100%; width: 0%;
  background: repeating-linear-gradient(45deg, var(--phos) 0 8px, #00cc7d 8px 16px);
  box-shadow: 0 0 18px rgba(0,255,157,.5);
  transition: width .8s cubic-bezier(.2, .8, .2, 1);
}
#supplyText { font-family: var(--font-term); font-size: 1.15rem; color: var(--dim); }

.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1.1rem; }
.cat-card {
  border: 1px solid var(--line); border-radius: 8px; background: var(--panel);
  padding: .6rem; transition: transform .18s ease, box-shadow .25s, border-color .2s;
  animation: cardIn .5s cubic-bezier(.2, 1.6, .4, 1);
}
@keyframes cardIn { from { opacity: 0; transform: translateY(18px) scale(.92); } }
.cat-card:hover { transform: translateY(-5px) rotate(-.6deg); border-color: var(--phos-dim); box-shadow: 0 14px 40px rgba(0,0,0,.5), 0 0 24px rgba(0,255,157,.1); }
.cat-card canvas { width: 100%; height: auto; border-radius: 4px; display: block; image-rendering: pixelated; }
.cat-card .cc-meta { display: flex; justify-content: space-between; align-items: center; padding: .5rem .2rem .2rem; font-family: var(--font-term); }
.cat-card .cc-id { color: var(--paper); font-size: 1.05rem; }
.cat-card .cc-via { font-size: .8rem; color: var(--dim); letter-spacing: .08em; text-transform: uppercase; }
.cats-empty { font-family: var(--font-term); color: var(--dim); font-size: 1.2rem; padding: 2rem 0; }

/* ---- docs ---- */
.steps { list-style: none; counter-reset: st; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.1rem; margin-bottom: 2rem; }
.steps li {
  counter-increment: st; border: 1px solid var(--line); border-radius: 8px;
  background: var(--panel); padding: 1.2rem 1.3rem; position: relative;
}
.steps li::before {
  content: '0' counter(st); font-family: var(--font-term); color: var(--phos-dim);
  font-size: 2.4rem; position: absolute; top: .4rem; right: .8rem;
}
.steps b { font-family: var(--font-display); font-size: .82rem; letter-spacing: 1px; display: block; margin-bottom: .6rem; }
.steps p { font-size: .88rem; color: #a4bcae; line-height: 1.55; }
.docs-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.doc-card { border: 1px solid var(--line); border-radius: 8px; background: var(--panel); padding: 1.3rem 1.4rem; }
.doc-card h3 { font-family: var(--font-display); font-size: .9rem; letter-spacing: 1px; margin-bottom: .8rem; color: var(--phos); }
.doc-card p { font-size: .88rem; color: #a4bcae; margin-bottom: .7rem; }
.doc-card pre {
  font-family: var(--font-term); font-size: 1.05rem; color: var(--cyan);
  background: #04070a; border: 1px solid var(--line); border-radius: 6px;
  padding: .9rem 1rem; overflow-x: auto; line-height: 1.5;
}
.doc-note { margin-top: .7rem; color: var(--dim) !important; font-size: .8rem !important; }

footer {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  max-width: 1200px; margin: 0 auto; padding: 2.5rem 1.5rem 3.5rem;
  font-family: var(--font-term); color: #3d5648; font-size: 1.05rem;
  border-top: 1px solid var(--line);
}

/* ---- gacha modal ---- */
.gacha {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(2,4,3,.88); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
  animation: fadeIn .3s ease;
}
@keyframes fadeIn { from { opacity: 0; } }
.gacha-box {
  width: min(680px, 94vw); border: 1px solid var(--line); border-radius: 10px;
  background: var(--panel); padding: 2.4rem 2rem; text-align: center;
  box-shadow: 0 0 120px rgba(0,255,157,.12);
  animation: boxIn .4s cubic-bezier(.2, 1.6, .4, 1);
  max-height: 92vh; overflow-y: auto;
}
@keyframes boxIn { from { transform: scale(.85) translateY(30px); opacity: 0; } }
.g-title { font-family: var(--font-display); letter-spacing: 2px; color: var(--paper); font-size: 1.1rem; margin-bottom: 1.6rem; }
.g-reel {
  font-family: var(--font-term); font-size: clamp(1.6rem, 5vw, 2.6rem);
  color: var(--phos); text-shadow: 0 0 22px rgba(0,255,157,.6);
  letter-spacing: 2px; margin-bottom: 1.2rem; min-height: 1.3em;
}
.g-sub { font-family: var(--font-term); color: var(--dim); font-size: 1.15rem; animation: blink 1s steps(1) infinite; }
.g-big {
  font-family: var(--font-display); font-size: clamp(3rem, 10vw, 5.5rem); letter-spacing: 4px;
  margin-bottom: .6rem; animation: verdictIn .55s cubic-bezier(.2, 2.4, .4, 1);
}
@keyframes verdictIn { 0% { transform: scale(.2) rotate(-8deg); opacity: 0; } 70% { transform: scale(1.15) rotate(2deg); } }
.g-big.hoki { color: var(--volt); text-shadow: 0 0 40px rgba(255,210,61,.8), 0 0 90px rgba(255,210,61,.4); }
.g-big.zonk { color: var(--dim); text-shadow: none; }
.g-hash { font-family: var(--font-term); color: #4a6a58; font-size: .95rem; word-break: break-all; margin-bottom: 1rem; }
.g-desc { color: #b9d4c4; margin-bottom: 1.6rem; line-height: 1.6; }
.g-verdict .btn-ghost { margin: .8rem 0 0; display: inline-block; }
.g-mint canvas { width: min(380px, 80vw); height: auto; border-radius: 8px; image-rendering: pixelated; margin-bottom: 1.2rem; }
.g-mintmeta b { font-family: var(--font-display); display: block; font-size: 1.3rem; letter-spacing: 1px; margin-bottom: .5rem; }
#gCatTraits {
  list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; justify-content: center;
  margin: 1rem 0 1.4rem;
}
#gCatTraits li {
  font-family: var(--font-term); font-size: .95rem; color: var(--paper);
  border: 1px solid var(--line); border-radius: 4px; padding: .25rem .6rem; background: #04070a;
}
#gCatTraits li label { color: var(--dim); margin-right: .4rem; font-size: .8rem; }

/* confetti canvas di dalam modal via body class */
body.hoki-blast .gacha-box { animation: shake .5s linear; }
@keyframes shake {
  0%, 100% { transform: translate(0); } 20% { transform: translate(-6px, 3px) rotate(-1deg); }
  40% { transform: translate(5px, -4px) rotate(1deg); } 60% { transform: translate(-4px, 2px); }
  80% { transform: translate(3px, -2px); }
}

/* ---- responsive ---- */
@media (max-width: 560px) {
  #spark { display: none; }
  .meter b { font-size: 2.1rem; min-width: 0; }
  .meter { flex-wrap: wrap; }
  .meter-side { gap: 1rem; flex-wrap: wrap; }
  .diff { display: none; }
  .mode-art { font-size: .8rem; }
}
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: unset; text-align: center; }
  .tagline { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .modes { grid-template-columns: 1fr; }
  .slots { grid-template-columns: repeat(2, 1fr); }
  .docs-cards { grid-template-columns: 1fr; }
  .hud-chips .chip label { display: none; }
  .console-top { flex-direction: column; }
}

/* ============ satisfying details ============ */
/* grid piksel samar di seluruh halaman */
body::before {
  content: ''; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(rgba(0,255,157,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,157,.028) 1px, transparent 1px);
  background-size: 44px 44px;
}

/* terminal titlebar di console */
.term-bar {
  display: flex; align-items: center; gap: .5rem;
  padding: .55rem .9rem; border-bottom: 1px solid var(--line);
  background: #04070a; font-family: var(--font-term); font-size: .95rem; color: #3d5648;
}
.td { width: 11px; height: 11px; border-radius: 50%; }
.td.r { background: #ff5f57; box-shadow: 0 0 8px rgba(255,95,87,.6); }
.td.y { background: #febc2e; box-shadow: 0 0 8px rgba(254,188,46,.5); }
.td.g { background: #28c840; box-shadow: 0 0 8px rgba(40,200,64,.5); }
.term-bar span { margin-left: .6rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.term-bar .rec { margin-left: auto; color: #ff5f57; font-style: normal; letter-spacing: .1em; animation: pulseDot 1.4s steps(1) infinite; }
@keyframes pulseDot { 50% { opacity: .25; } }

/* LIVE badge di ticker */
.live-badge {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%); z-index: 2;
  font-family: var(--font-term); font-size: .95rem; letter-spacing: .12em;
  color: #ff5f57; background: #04070a; padding: 0 .5rem;
  animation: pulseDot 1.6s steps(1) infinite;
}

/* LED status di HUD */
.led {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--phos); box-shadow: 0 0 8px var(--phos);
  align-self: center; animation: ledPulse 2s ease infinite;
}
@keyframes ledPulse { 50% { opacity: .35; box-shadow: 0 0 2px var(--phos); } }

/* scan sweep di atas kucing hero */
.cat-frame { position: relative; overflow: hidden; border-radius: 4px; }
.scanline {
  position: absolute; left: 0; right: 0; top: -12%; height: 12%;
  background: linear-gradient(180deg, transparent, rgba(0,255,157,.10), rgba(0,255,157,.22), transparent);
  animation: scanSweep 4.6s cubic-bezier(.4, 0, .6, 1) infinite;
  pointer-events: none;
}
@keyframes scanSweep { 0% { top: -14%; } 55%, 100% { top: 108%; } }

/* slot kosong: shimmer nunggu diklaim */
.slot.empty { position: relative; overflow: hidden; }
.slot.empty::before {
  content: ''; position: absolute; top: 0; bottom: 0; width: 45%;
  left: -50%; transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(0,255,157,.05), transparent);
  animation: slotShimmer 2.8s ease infinite;
}
@keyframes slotShimmer { to { left: 130%; } }

/* ============ 21st-style FX layer ============ */
@property --spin { syntax: '<angle>'; initial-value: 0deg; inherits: false; }

/* aurora orbs di belakang hero */
.hero { position: relative; }
.hero > div { position: relative; z-index: 1; }
.hero::before, .hero::after {
  content: ''; position: absolute; z-index: 0; border-radius: 50%;
  filter: blur(80px); opacity: .32; pointer-events: none;
}
.hero::before {
  width: 46vw; height: 46vw; left: -14vw; top: -10vw;
  background: conic-gradient(from 0deg, rgba(0,255,157,.35), rgba(53,216,255,.25), rgba(255,62,207,.22), rgba(0,255,157,.35));
  animation: orb 18s linear infinite;
}
.hero::after {
  width: 34vw; height: 34vw; right: -10vw; bottom: -4vw;
  background: radial-gradient(circle, rgba(255,62,207,.35), transparent 65%);
  animation: orb 26s linear infinite reverse;
}
@keyframes orb { to { transform: rotate(360deg) scale(1.07); } }

/* judul: gradient shimmer yang mengalir */
.t-accent {
  background: linear-gradient(90deg, #00ff9d, #35d8ff, #ff3ecf, #ffd23d, #00ff9d) 0 0 / 320% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  animation: gradFlow 7s linear infinite;
}
@keyframes gradFlow { to { background-position: 320% 0; } }

/* border beam — garis cahaya lari mengelilingi panel */
.beam { position: relative; }
.beam::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: conic-gradient(from var(--spin),
    transparent 0deg 300deg, rgba(0,255,157,.9) 330deg, rgba(53,216,255,.9) 345deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spinbeam 3.6s linear infinite;
  pointer-events: none;
}
.beam.pink::before {
  background: conic-gradient(from var(--spin),
    transparent 0deg 300deg, rgba(255,62,207,.9) 330deg, rgba(255,210,61,.9) 345deg, transparent 360deg);
}
@keyframes spinbeam { to { --spin: 360deg; } }

/* spotlight yang ngikutin kursor */
.spot { position: relative; }
.spot::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; opacity: 0;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(0,255,157,.12), transparent 65%);
  transition: opacity .35s; pointer-events: none;
}
.spot:hover::after { opacity: 1; }

/* corner brackets HUD */
.corners { position: relative; }
.corners .c {
  position: absolute; width: 15px; height: 15px;
  border: 2px solid var(--phos); opacity: .55; pointer-events: none;
  transition: width .25s, height .25s, opacity .25s;
}
.corners:hover .c { width: 22px; height: 22px; opacity: .95; }
.c.tl { top: -2px; left: -2px; border-right: 0; border-bottom: 0; }
.c.tr { top: -2px; right: -2px; border-left: 0; border-bottom: 0; }
.c.bl { bottom: -2px; left: -2px; border-right: 0; border-top: 0; }
.c.br { bottom: -2px; right: -2px; border-left: 0; border-top: 0; }

/* live ticker marquee */
.ticker {
  overflow: hidden; border-block: 1px solid var(--line);
  background: #04070a; padding: .6rem 0; position: relative; z-index: 2;
}
.ticker::before, .ticker::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 1; pointer-events: none;
}
.ticker::before { left: 0; background: linear-gradient(90deg, var(--void), transparent); }
.ticker::after { right: 0; background: linear-gradient(-90deg, var(--void), transparent); }
.ticker-track {
  display: inline-flex; gap: 3rem; white-space: nowrap; will-change: transform;
  font-family: var(--font-term); font-size: 1.12rem; color: var(--dim);
  animation: marquee 30s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track b { color: var(--phos); font-weight: 400; }
.ticker-track .tk-pink { color: var(--pink); }
.ticker-track .tk-volt { color: var(--volt); }
.ticker-track .tk-sep { color: #2c3e34; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* mega marquee di atas footer */
.mega { overflow: hidden; pointer-events: none; margin-top: 3rem; opacity: .14; }
.mega-track {
  display: inline-flex; white-space: nowrap; will-change: transform;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(3.4rem, 11vw, 8rem); letter-spacing: 4px; line-height: 1.1;
  color: transparent; -webkit-text-stroke: 1.5px var(--phos);
  animation: marquee 26s linear infinite;
}

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); }
.reveal.in {
  opacity: 1; transform: none;
  transition: opacity .8s ease, transform .8s cubic-bezier(.16, .8, .26, 1);
}

/* layar flash saat LUCKY */
#flash {
  position: fixed; inset: 0; z-index: 95; pointer-events: none;
  background: radial-gradient(circle, rgba(255,210,61,.5), rgba(255,62,207,.18) 55%, transparent 75%);
  opacity: 0;
}
#flash.on { animation: flashPop .65s ease-out; }
@keyframes flashPop { 0% { opacity: 1; } 100% { opacity: 0; } }

/* confetti canvas menutupi modal */
#confetti { position: fixed; inset: 0; z-index: 96; pointer-events: none; }

/* CTA pulse ring */
.btn-big.pulse { animation: pulseRing 2.2s ease infinite; }
@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(0,255,157,.5), 0 0 0 1px var(--phos), 0 0 28px rgba(0,255,157,.35); }
  70% { box-shadow: 0 0 0 18px rgba(0,255,157,0), 0 0 0 1px var(--phos), 0 0 28px rgba(0,255,157,.35); }
  100% { box-shadow: 0 0 0 0 rgba(0,255,157,0), 0 0 0 1px var(--phos), 0 0 28px rgba(0,255,157,.35); }
}

/* angka network "pop" saat berubah drastis */
.net-big b.pop { animation: numPop .3s cubic-bezier(.2, 2, .4, 1); }
@keyframes numPop { 50% { transform: scale(1.12); } }

/* ---- reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  #rain { display: none; }
  html { scroll-behavior: auto; }
}

/* focus */
:focus-visible { outline: 2px solid var(--phos); outline-offset: 2px; }

/* label kecil di sebelah judul field (mis. "official, pre-filled") */
.field label .hint { color: var(--dim, #7d9488); font-weight: normal; opacity: .85; }


/* ============ on-chain mint page ============ */

/* CONNECT: a strip you pass through once, not a peer of the mining rig */
.connect-strip {
  display: flex; flex-wrap: wrap; gap: 1.2rem 1.6rem;
  align-items: flex-end; justify-content: space-between;
  border: 1px solid var(--line); border-radius: 8px; background: var(--panel);
  padding: 1.1rem 1.3rem; margin-top: 1.2rem;
}
.cs-fields { display: flex; gap: 1rem; flex: 1 1 460px; min-width: 0; }
.cs-fields .field { margin-bottom: 0; }
.cs-fields .field:first-child { flex: 0 0 260px; }
.cs-addr { flex: 1 1 auto; min-width: 0; }
.cs-addr input { font-size: .98rem; }
.field label .hint {
  color: var(--dim); font-weight: normal; opacity: .9;
  text-transform: none; letter-spacing: 0;
}
.cs-actions { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }

/* STAGE: cat left, rig right — the two things that matter */
.stage {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr);
  gap: 1.2rem; margin-top: 1.2rem; align-items: start;
}
.stage-cat { margin: 0; }
.stage-cat .supply { margin-top: .9rem; }

.rig-console {
  border: 1px solid var(--line); border-radius: 8px; background: var(--panel);
  padding: 1.3rem 1.4rem; display: flex; flex-direction: column; gap: 1.1rem;
}

.rig-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.round-badge { display: flex; align-items: baseline; gap: .55rem; font-family: var(--font-term); min-width: 0; }
.round-badge label { color: var(--dim); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; }
.round-badge b { color: var(--phos); font-size: 1.7rem; font-weight: 400; line-height: 1; }
.round-badge small { color: var(--dim); font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seed-dot {
  width: 9px; height: 9px; border-radius: 50%; flex: none;
  background: var(--red); box-shadow: 0 0 10px rgba(255,34,68,.8);
}
.seed-dot[data-open="true"] {
  background: var(--phos); box-shadow: 0 0 10px rgba(0,255,157,.9);
  animation: seedPulse 2s ease-in-out infinite;
}
@keyframes seedPulse { 0%,100% { opacity: 1 } 50% { opacity: .35 } }

/* round slots: the same language as the arcade arena, at console scale */
.round-slots { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
.slots-mini { grid-template-columns: repeat(10, 1fr); gap: .3rem; flex: 1 1 240px; }
.slots-mini .slot {
  min-height: 0; height: 24px; border-radius: 3px;
  background: #071009; border: 1px solid var(--line);
}
.slots-mini .slot.empty::after { content: none; }
.slots-mini .slot.taken {
  background: var(--phos-dim); border-color: var(--phos);
  box-shadow: 0 0 8px rgba(0,255,157,.35);
}
.slots-label { font-family: var(--font-term); color: var(--dim); font-size: 1rem; }
.slots-label b { color: var(--paper); }

.rig-controls { display: flex; flex-direction: column; gap: .8rem; }
.rig-pick { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.btn-mine { width: 100%; font-size: 1.05rem; }
.btn-claim { width: 100%; }

.rig-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: .1rem 1rem; border-top: 1px solid var(--line); padding-top: .9rem; margin-top: auto;
}
.rig-stats dt {
  color: var(--dim); font-size: .64rem; letter-spacing: .13em;
  text-transform: uppercase; margin-bottom: .15rem;
}
.rig-stats dd { font-family: var(--font-term); font-size: 1.2rem; color: var(--paper); }

.state-note {
  color: var(--dim); font-family: var(--font-term); font-size: 1rem;
  line-height: 1.5; margin-top: 1rem; max-width: 62ch;
}

@media (max-width: 980px) {
  .stage { grid-template-columns: 1fr; }
  .cs-fields { flex-wrap: wrap; }
  .cs-fields .field:first-child { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .seed-dot[data-open="true"] { animation: none; }
}

/* --- perbaikan: .specimen dipakai ulang di dalam grid, bukan sebagai hero mengambang --- */
.stage-cat {
  width: 100%; max-width: none; margin: 0; padding: .8rem;
  animation: none;                 /* float 7s cocok buat hero, bikin goyang di grid */
  display: flex; flex-direction: column;
}
/* aturan ukuran canvas di arcade terikat ke #heroCat, jadi canvas di sini perlu sendiri */
#mHeroCat {
  width: 100%; height: auto; display: block;
  border-radius: 4px; image-rendering: pixelated;
}
.stage-cat .cat-frame { flex: 1 1 auto; }
.rig-console { max-width: none; margin: 0; }
.connect-strip { max-width: none; }

/* --- stats deck: semua angka on-chain, dikelompokkan --- */
.stats-deck {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.2rem; margin-top: 1.2rem;
}
.stat-group {
  max-width: none; margin: 0; padding: 1.1rem 1.2rem;
  border: 1px solid var(--line); border-radius: 8px; background: var(--panel);
  display: flex; flex-direction: column;
}
.stat-group h4 {
  font-family: var(--font-display); font-size: .7rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--phos); margin-bottom: .9rem;
}
.stat-group h4 small {
  display: block; margin-top: .25rem; color: var(--dim);
  font-family: var(--font-term); font-size: .95rem; letter-spacing: 0; text-transform: none;
}
.stat-group dl { display: flex; flex-direction: column; gap: .55rem; }
.stat-group dl > div {
  display: flex; align-items: baseline; justify-content: space-between; gap: .8rem;
  padding-bottom: .5rem; border-bottom: 1px dashed #11201a;
}
.stat-group dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.stat-group dt {
  color: var(--dim); font-size: .66rem; letter-spacing: .12em;
  text-transform: uppercase; flex: 0 1 auto;
}
.stat-group dt .sub { text-transform: none; letter-spacing: 0; opacity: .7; }
.stat-group dd {
  font-family: var(--font-term); font-size: 1.15rem; color: var(--paper);
  text-align: right; min-width: 0; overflow-wrap: anywhere;
}
.stat-group dd.accent { color: var(--phos); }
.stat-group dd.volt { color: var(--volt); }
.stat-group dd.pink { color: var(--pink); }
.stat-group dd.mono-sm { font-size: .98rem; color: var(--dim); }
.stat-group dd .sub { color: var(--dim); font-size: .9rem; }
.stat-group .btn-row { margin-top: auto; padding-top: .9rem; }

/* kolom stage disamakan tingginya biar nggak ada sisi yang menggantung */
.stage { align-items: stretch; }
.rig-console { height: 100%; }

/* --- penyeimbang stage: kartu berhenti di ujung isinya, bukan diregangkan --- */
.stage { grid-template-columns: minmax(0, 43fr) minmax(0, 57fr); align-items: start; }
.rig-console { height: auto; }
.stage-cat .cat-frame { max-height: 430px; display: flex; justify-content: center; }
#mHeroCat { max-height: 430px; width: auto; max-width: 100%; margin: 0 auto; }

/* supply di kartu kucing: bar yang memimpin, angka yang mengikuti */
.stage-cat .supply { display: flex; align-items: center; gap: .8rem; }
.stage-cat .supply-bar { flex: 1 1 auto; }
.stage-cat #mSupplyText {
  font-family: var(--font-term); font-size: 1rem; color: var(--dim);
  white-space: nowrap; flex: none;
}

/* baris stat: label boleh menyusut, angka jangan pernah terpotong */
.stat-group dt { flex: 0 1 auto; min-width: 0; }
.stat-group dd { flex: 0 0 auto; }


/* ============ mint page: arena + weapon cards ============ */
.sec-tight { margin: 2.6rem 0 1.1rem; font-size: clamp(1.1rem, 2.4vw, 1.6rem); }
.sec-tight span { color: var(--phos-dim); margin-right: .6rem; }
.sec-tight small { color: var(--dim); font-family: var(--font-term); font-size: 1rem; letter-spacing: 0; }

/* dua kartu senjata (agent belum ada di jalur on-chain, jadi cuma CPU + GPU) */
.modes-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.mode:disabled { opacity: .45; cursor: not-allowed; }
.mode:disabled:hover { transform: none; }

/* konsol dipakai ulang dari arcade; log on-chain pakai id sendiri */
#chainLog {
  height: 210px; overflow-y: auto; font-family: var(--font-term);
  font-size: 1.05rem; line-height: 1.55; padding: .9rem 1.1rem;
  background: #04070a; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
#chainLog p { margin: 0; word-break: break-all; }
#chainLog a { color: var(--cyan); }
.console-wrap .sol-box { margin: 1rem 1.1rem 0; }
.console-wrap .rig-controls {
  display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; padding: 1rem 1.1rem;
}
.console-wrap .rig-controls .diff {
  margin-left: auto; color: var(--dim); font-family: var(--font-term); font-size: 1rem;
}
.console-wrap .rig-controls .diff b { color: var(--paper); }

/* arena head: round, status seed, sisa slot */
.arena-head {
  display: flex; align-items: center; gap: .8rem; flex-wrap: wrap;
  font-family: var(--font-term); margin-bottom: .9rem;
}
.arena-round { color: var(--dim); letter-spacing: .1em; font-size: .95rem; }
.arena-round b { color: var(--phos); font-size: 1.6rem; margin-left: .35rem; }
.arena-seed { color: var(--dim); font-size: 1rem; }
.arena-left { margin-left: auto; color: var(--dim); font-size: 1rem; }
.arena-left b { color: var(--volt); font-size: 1.3rem; }

/* slot arena: kotak besar seperti di arcade */
/* 50 slot: 10 kolom x 5 baris, kotak jadi lebih kecil */
#mSlots { grid-template-columns: repeat(10, 1fr); gap: .45rem; }
#mSlots .slot { min-height: 46px; }
#mSlots .slot.taken {
  border-color: var(--phos); background: #071a12;
  box-shadow: inset 0 0 22px rgba(0,255,157,.12);
}
#mSlots .slot.taken::after {
  content: '¹3'; font-family: var(--font-term); color: var(--phos); font-size: 1.1rem;
}
#mSlots .slot { display: flex; align-items: center; justify-content: center; }

/* stage: kucing + deck stat berdampingan */
.stage { display: grid; grid-template-columns: minmax(0, 38fr) minmax(0, 62fr); gap: 1.2rem; align-items: start; }
.stats-deck { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-top: 0; }

@media (max-width: 980px) {
  .stage { grid-template-columns: 1fr; }
  #mSlots { grid-template-columns: repeat(5, 1fr); }
  .console-wrap .rig-controls .diff { margin-left: 0; width: 100%; }
}

/* strip status on-chain di hero: menandai angka mana yang benar-benar dari chain */
.live-strip {
  display: flex; align-items: center; gap: .9rem; flex-wrap: wrap;
  margin-top: 1.1rem; font-family: var(--font-term); font-size: 1rem; color: var(--dim);
}
.live-strip #liveBadge { color: var(--dim); letter-spacing: .06em; }
.live-strip #liveBadge[data-ok="1"] {
  color: var(--phos); text-shadow: 0 0 10px rgba(0,255,157,.5);
  animation: liveBlink 2.4s ease-in-out infinite;
}
@keyframes liveBlink { 0%,100% { opacity: 1 } 50% { opacity: .55 } }
@media (prefers-reduced-motion: reduce) { .live-strip #liveBadge[data-ok="1"] { animation: none; } }

/* strip CLI di halaman on-chain: jalur terminal untuk yang tidak mau pakai browser */
.cli-strip {
  border: 1px solid var(--line); border-radius: 8px; background: var(--panel);
  padding: 1.1rem 1.3rem; margin-top: 1.2rem;
}
.cli-head { display: flex; flex-direction: column; gap: .25rem; margin-bottom: .9rem; }
.cli-head b { font-family: var(--font-display); font-size: .78rem; letter-spacing: .1em; color: var(--phos); }
.cli-head span { font-family: var(--font-term); color: var(--dim); font-size: 1.02rem; }
.cli-code {
  font-family: var(--font-term); font-size: 1.05rem; line-height: 1.6;
  background: #04070a; border: 1px solid var(--line); border-radius: 6px;
  padding: .8rem 1rem; overflow-x: auto; color: var(--paper); margin-bottom: .9rem;
}
.cli-code .cmt { color: var(--dim); }
.cli-links { display: flex; gap: .7rem; flex-wrap: wrap; }

/* grid slot padat (ROUND_CAP > 20): kotak dikecilkan agar tetap rapi */
#mSlots.slots-dense { grid-template-columns: repeat(10, 1fr); gap: .35rem; }
#mSlots.slots-dense .slot { min-height: 34px; }
#mSlots.slots-dense .slot.taken::after { font-size: .9rem; }

/* ---- HOW TO START MINING ---- */
.howto { max-width: 1200px; margin: 0 auto; padding: 3.5rem 1.5rem; }
.howto-lead {
  font-family: var(--font-term); font-size: 1.15rem; color: var(--dim);
  max-width: 68ch; line-height: 1.6; margin-bottom: 2rem;
}
.howto-lead b { color: var(--paper); }
.howto-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.2rem;
}
.howto-card {
  border: 1px solid var(--line); border-radius: 8px; background: var(--panel);
  padding: 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .85rem;
}
.howto-card header { display: flex; flex-direction: column; gap: .2rem; }
.hc-num {
  font-family: var(--font-display); font-size: 1.5rem; color: var(--phos-dim); line-height: 1;
}
.howto-card header b {
  font-family: var(--font-display); font-size: .82rem; letter-spacing: .1em; color: var(--phos);
}
.howto-card header em {
  font-style: normal; font-family: var(--font-term); font-size: 1rem; color: var(--dim);
}
.howto-card ol { margin: 0 0 0 1.1rem; padding: 0; }
.howto-card ol li {
  font-family: var(--font-term); font-size: 1.08rem; color: var(--paper);
  line-height: 1.55; margin-bottom: .3rem;
}
.hc-sub { font-family: var(--font-term); font-size: 1.05rem; color: var(--dim); line-height: 1.5; }
.hc-code {
  font-family: var(--font-term); font-size: 1.02rem; line-height: 1.6;
  background: #04070a; border: 1px solid var(--line); border-radius: 6px;
  padding: .85rem 1rem; overflow-x: auto; color: var(--paper); white-space: pre;
}
.hc-code .c { color: var(--phos-dim); }
.hc-note {
  font-family: var(--font-term); font-size: 1rem; color: var(--dim);
  line-height: 1.5; margin-top: auto;
}
.hc-links { display: flex; gap: .6rem; flex-wrap: wrap; }
.howto-card .btn-big { align-self: flex-start; }
.howto-foot {
  font-family: var(--font-term); font-size: 1.08rem; color: var(--dim);
  line-height: 1.6; margin-top: 1.6rem; max-width: 78ch;
}
.howto-foot b { color: var(--paper); }
@media (max-width: 700px) { .hc-code { font-size: .95rem; } }

/* label status di judul section + banner mode simulasi */
.sec-tag {
  font-family: var(--font-term); font-size: 1rem; letter-spacing: .06em;
  color: var(--dim); margin-left: .7rem;
}
.sec-tag[data-ok="1"] { color: var(--phos); text-shadow: 0 0 10px rgba(0,255,157,.45); }
.sim-banner {
  display: flex; gap: .9rem; align-items: flex-start; flex-wrap: wrap;
  border: 1px solid rgba(255,210,61,.35); background: rgba(255,210,61,.05);
  border-radius: 6px; padding: .8rem 1rem; margin-bottom: 1rem;
}
.sim-banner b {
  font-family: var(--font-display); font-size: .72rem; letter-spacing: .12em;
  color: var(--volt); flex: none; padding-top: .15rem;
}
.sim-banner span {
  font-family: var(--font-term); font-size: 1.02rem; color: var(--dim);
  line-height: 1.5; max-width: 82ch;
}
.sim-banner u { text-decoration-color: var(--volt); }
.sim-banner a { color: var(--cyan); }

/* bar supply prominen di hero — angka terpenting tidak boleh perlu di-scroll */
.hero-supply { margin-top: 1.1rem; max-width: 34rem; }
.hs-bar {
  height: 12px; border: 1px solid var(--line); border-radius: 20px;
  background: #04070a; overflow: hidden;
}
.hs-bar > div {
  height: 100%; width: 0%; border-radius: 20px;
  background: linear-gradient(90deg, var(--phos-dim), var(--phos));
  box-shadow: 0 0 14px rgba(0,255,157,.5);
  transition: width .8s cubic-bezier(.16,1,.3,1);
}
.hs-meta {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-top: .45rem; font-family: var(--font-term); font-size: 1.05rem;
}
.hs-meta b { color: var(--paper); font-weight: 400; }
.hs-meta span { color: var(--dim); }
@media (prefers-reduced-motion: reduce) { .hs-bar > div { transition: none; } }

/* ---- panel data on-chain asli (ganti leaderboard simulasi) ---- */
.feed-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.2rem; margin-bottom: 1.4rem;
}
.feed-panel {
  border: 1px solid var(--line); border-radius: 8px; background: var(--panel);
  padding: 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .85rem;
}
.feed-panel header { display: flex; flex-direction: column; gap: .2rem; }
.feed-panel header b {
  font-family: var(--font-display); font-size: .78rem; letter-spacing: .1em; color: var(--phos);
}
.feed-panel header em {
  font-style: normal; font-family: var(--font-term); font-size: .98rem; color: var(--dim);
}
.feed-empty { font-family: var(--font-term); font-size: 1.05rem; color: var(--dim); line-height: 1.5; }
.feed-empty a { color: var(--cyan); }
.feed-row {
  display: flex; align-items: center; gap: .8rem;
  padding: .45rem 0; border-bottom: 1px dashed #11201a;
}
.feed-row:last-child { border-bottom: 0; }
.feed-cat {
  width: 46px; height: 46px; border-radius: 4px; flex: none;
  image-rendering: pixelated; background: #04070a;
}
.feed-info { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.feed-info b { font-family: var(--font-term); color: var(--paper); font-weight: 400; font-size: 1.05rem; }
.feed-info span { font-family: var(--font-term); color: var(--dim); font-size: .95rem; }
.feed-link { font-family: var(--font-term); font-size: .95rem; color: var(--cyan); flex: none; }
.feed-note {
  font-family: var(--font-term); font-size: .98rem; color: var(--dim);
  line-height: 1.5; margin-top: auto; padding-top: .6rem; border-top: 1px solid var(--line);
}
.hold-row {
  display: flex; align-items: center; gap: .7rem;
  font-family: var(--font-term); font-size: 1.02rem; padding: .3rem 0;
}
.hold-rank { color: var(--phos-dim); width: 1.2rem; flex: none; }
.hold-addr { color: var(--paper); flex: none; }
.hold-bar { flex: 1 1 auto; height: 8px; background: #071009; border-radius: 20px; overflow: hidden; }
.hold-bar i { display: block; height: 100%; background: var(--phos); box-shadow: 0 0 10px rgba(0,255,157,.5); }
.hold-n { color: var(--volt); flex: none; width: 2rem; text-align: right; }
