:root {
  --bg: #0b0e0c; --panel: #101511; --line: #24301f;
  --green: #7fb069; --amber: #e8d48b; --red: #e05252; --dim: #5c6b58;
  --text: #c8d3c8;
}
* { box-sizing: border-box; margin: 0; }
body {
  background: var(--bg); color: var(--text);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 15px; line-height: 1.6; min-height: 100vh;
}
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0 2px, rgba(0,0,0,.12) 2px 4px);
}
a { color: var(--green); }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 20px 80px; }

.tape {
  border-bottom: 1px solid var(--line); background: var(--panel);
  overflow: hidden; white-space: nowrap; font-size: 13px; color: var(--dim);
  padding: 6px 0;
}
.tape span { display: inline-block; padding-left: 100%; animation: tape 40s linear infinite; }
@keyframes tape { to { transform: translateX(-100%); } }
.tape b.up { color: var(--green); } .tape b.dn { color: var(--red); }

/* One tidy line (31.08): full-bleed like the detector's header so the row uses the whole
   width instead of the 880px column, no wrap; if it ever outgrows the width it scrolls,
   never stacks. First link stays aligned with the page column via the side padding. */
nav {
  display: flex; align-items: center; gap: 14px; flex-wrap: nowrap; overflow-x: auto;
  font-size: 13px; scrollbar-width: none;
  width: 100vw; margin-left: calc(50% - 50vw);
  /* left aligns with the page column, right hugs the edge so the row uses the full width */
  padding: 16px 24px 16px max(24px, calc(50vw - 430px));
}
nav::-webkit-scrollbar { display: none; }
nav a { text-decoration: none; color: var(--dim); white-space: nowrap; }
nav a.on, nav a:hover { color: var(--green); }
nav .right { margin-left: auto; color: var(--dim); white-space: nowrap; }
/* Wallet button — a bordered green chip set apart from the plain nav links. */
nav .wallet {
  font: inherit; color: var(--green); border: 1px solid var(--line); border-radius: 6px;
  padding: 4px 11px; background: rgba(127, 176, 105, 0.08); cursor: pointer; white-space: nowrap;
}
nav .wallet:hover { border-color: var(--green); background: rgba(127, 176, 105, 0.16); }
nav .wallet[disabled] { opacity: 0.5; cursor: progress; }
nav .wallet.connected { color: var(--text); }

h1 {
  font-size: clamp(34px, 7vw, 64px); color: var(--green); line-height: 1.05;
  letter-spacing: 2px; text-shadow: 0 0 18px rgba(127,176,105,.35); margin: 30px 0 8px;
}
.tagline { color: var(--amber); font-size: clamp(15px, 2.4vw, 19px); margin-bottom: 28px; }
.tagline em { color: var(--dim); font-style: normal; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin: 26px 0; }
.stat { border: 1px solid var(--line); background: var(--panel); padding: 14px 16px; }
.stat b { display: block; font-size: 22px; color: var(--green); }
.stat i { font-style: normal; color: var(--dim); font-size: 12.5px; }

section { margin: 46px 0; }
h2 { color: var(--amber); font-size: 18px; margin-bottom: 14px; }
h2::before { content: "▚ "; color: var(--dim); }
p { margin: 10px 0; }
.dim { color: var(--dim); }
.green { color: var(--green); } .red { color: var(--red); } .amber { color: var(--amber); }

.machines { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.machines img, .card img { width: 100%; image-rendering: pixelated; display: block; border: 1px solid var(--line); }

ol.steps { list-style: none; counter-reset: n; }
ol.steps li { counter-increment: n; padding: 12px 0 12px 44px; position: relative; border-bottom: 1px dashed var(--line); }
ol.steps li::before {
  content: "0" counter(n); position: absolute; left: 0; top: 12px;
  color: var(--green); font-size: 18px;
}

table { width: 100%; border-collapse: collapse; font-size: 14px; }
td { padding: 9px 12px; border: 1px solid var(--line); vertical-align: top; }
td:first-child { color: var(--amber); white-space: nowrap; }

.phase { display: flex; gap: 14px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.phase b { color: var(--green); min-width: 110px; }
.phase.done b::after { content: " ✓"; }
.phase .dim { margin-left: auto; }

button, .btn {
  font: inherit; cursor: pointer; text-decoration: none; display: inline-block;
  background: var(--green); color: #0b0e0c; border: 0; padding: 12px 26px;
  font-weight: 700; letter-spacing: 1px;
  box-shadow: 4px 4px 0 #24301f;
}
button:hover, .btn:hover { transform: translate(-1px,-1px); box-shadow: 5px 5px 0 #24301f; }
button:disabled { background: var(--dim); cursor: not-allowed; transform: none; }
button.ghost { background: transparent; color: var(--green); border: 1px solid var(--green); }

.term {
  border: 1px solid var(--line); background: var(--panel); padding: 18px;
  margin: 14px 0; font-size: 14px;
}
.term .hd { color: var(--dim); border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 12px; }
.blink { animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.card { border: 1px solid var(--line); background: var(--panel); padding: 12px; }
.card h3 { color: var(--green); font-size: 15px; margin: 8px 0 4px; }
.card .row { display: flex; justify-content: space-between; font-size: 13px; padding: 2px 0; }
.card .row i { font-style: normal; color: var(--dim); }

.qty { display: flex; gap: 8px; margin: 16px 0; }
.qty button { padding: 10px 0; width: 46px; background: transparent; color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.qty button.on { border-color: var(--green); color: var(--green); }

.vote button { display: block; width: 100%; text-align: left; margin: 8px 0; background: transparent; color: var(--text); border: 1px solid var(--line); box-shadow: none; padding: 10px 14px; }
.vote button:hover { border-color: var(--green); transform: none; }

input {
  font: inherit; color: var(--text); background: transparent;
  border: 1px solid var(--line); padding: 10px 12px; outline: none;
}
input:focus { border-color: var(--green); }

.fall {
  position: fixed; top: -2em; color: var(--green); font-size: 13px;
  pointer-events: none; z-index: 99; white-space: nowrap; opacity: .85;
  animation: fall linear forwards;
}
@keyframes fall { to { transform: translateY(115vh); } }
.fall.red { color: var(--red); }

.shake { animation: shake .5s; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}

/* ---- utility spinner ---- */
.slotframe {
  position: relative; margin: 14px 30px 14px 0;
  border: 1px solid var(--line); background: var(--panel);
  box-shadow: 6px 6px 0 #0d120e, inset 0 0 0 1px #0d120e;
}
.slotframe.jackpot { animation: jackpot .25s steps(2) 8, shake .5s 3; }
@keyframes jackpot { 50% { background: #1c2a17; border-color: var(--green); box-shadow: 0 0 30px rgba(127,176,105,.35); } }
.plate {
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--line); padding: 10px 16px;
  color: var(--dim); font-size: 12.5px; letter-spacing: 1px;
}
.plate .lt { width: 8px; height: 8px; border-radius: 50%; animation: blink 1.2s steps(2) infinite; }
.plate .lt:nth-child(2) { background: var(--green); }
.plate .lt:nth-child(3) { background: var(--amber); animation-delay: .4s; }
.plate .lt:nth-child(4) { background: var(--red); animation-delay: .8s; }
.plate span:first-child { margin-right: auto; }

.slotwin { position: relative; padding: 22px 22px 8px; }
.slot { display: flex; gap: 10px; justify-content: center; }
.reel {
  flex: 1; max-width: 190px; height: 192px; overflow: hidden;
  border: 1px solid var(--line); background: var(--bg); position: relative;
  box-shadow: inset 0 0 18px rgba(0,0,0,.6);
}
.reel::before, .reel::after { content: ""; position: absolute; left: 0; right: 0; height: 64px; z-index: 1; pointer-events: none; }
.reel::before { top: 0; background: linear-gradient(var(--bg) 12%, rgba(11,14,12,.15)); }
.reel::after { bottom: 0; background: linear-gradient(rgba(11,14,12,.15), var(--bg) 88%); }
.reel.spin .strip { filter: blur(2px); }
.reel.clunk { animation: clunk .18s; }
@keyframes clunk { 40% { transform: translateY(3px); } }
.strip { display: flex; flex-direction: column; will-change: transform; }
.sym {
  height: 64px; flex: none; display: flex; align-items: center; justify-content: center;
  font-weight: 700; letter-spacing: 1px; color: var(--amber);
  font-size: clamp(11px, 2.4vw, 15px); white-space: nowrap;
}
.sym.win { color: var(--green); text-shadow: 0 0 12px rgba(127,176,105,.6); }
.payline {
  position: absolute; left: 14px; right: 14px; top: 50%; z-index: 2; pointer-events: none;
  border-top: 1px dashed rgba(232,212,139,.55);
}
.payline::before, .payline::after {
  position: absolute; top: -0.72em; color: var(--amber); font-size: 13px;
  text-shadow: 0 0 8px rgba(232,212,139,.5);
}
.payline::before { content: "►"; left: -8px; }
.payline::after { content: "◄"; right: -8px; }

.lever { position: absolute; right: -31px; top: 50%; width: 30px; height: 150px; transform: translateY(-50%); cursor: pointer; z-index: 3; }
.lever .stick {
  position: absolute; left: 50%; bottom: 50%; width: 6px; height: 56px;
  background: linear-gradient(var(--dim), var(--line));
  transform: translateX(-50%); transform-origin: bottom; transition: transform .22s ease-in;
}
.lever .knob {
  position: absolute; left: 50%; bottom: calc(50% + 48px); width: 22px; height: 22px;
  border-radius: 50%; background: var(--red); transform: translateX(-50%);
  transition: bottom .22s ease-in; box-shadow: 0 0 12px rgba(224,82,82,.55), inset -3px -3px 0 rgba(0,0,0,.35);
}
.lever .base { position: absolute; left: -4px; top: calc(50% - 14px); width: 12px; height: 28px; background: var(--panel); border: 1px solid var(--line); }
.lever.pulled .stick { transform: translateX(-50%) scaleY(-1); }
.lever.pulled .knob { bottom: calc(50% - 66px); }

.slotctl { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; padding: 14px 22px 6px; }
.coinslot { text-align: center; color: var(--dim); font-size: 12.5px; padding-bottom: 6px; }
.verdict { text-align: center; min-height: 3.4em; margin: 0; padding: 0 22px 20px; }
@media (max-width: 640px) { .lever { display: none; } .slotframe { margin-right: 0; } }

/* ---- hope printer ---- */
.printer-stage { text-align: center; padding: 12px 0 4px; position: relative; }
.printer-stage img {
  width: 220px; image-rendering: pixelated; border: 1px solid var(--line);
  cursor: pointer; user-select: none; -webkit-user-select: none; transition: transform .06s;
}
.printer-stage img:active { transform: scale(.94); }
.rise { position: absolute; color: var(--green); font-weight: 700; pointer-events: none; z-index: 5; animation: rise 1s ease-out forwards; }
@keyframes rise { to { transform: translateY(-70px); opacity: 0; } }
.upg {
  display: block; width: 100%; text-align: left; margin: 8px 0; background: transparent;
  color: var(--text); border: 1px solid var(--line); box-shadow: none; padding: 10px 14px; font-weight: 400;
}
.upg:hover:not(:disabled) { border-color: var(--green); transform: none; }
.upg:disabled { background: transparent; color: var(--dim); }
.upg .nm { color: var(--green); font-weight: 700; }
.upg:disabled .nm { color: var(--dim); }
.upg .cost { float: right; color: var(--amber); }
.upg:disabled .cost { color: var(--dim); }
.ach { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.ach b { color: var(--green); flex: 0 0 220px; }
.ach.locked b, .ach.locked span { color: var(--dim); }
button.rug { background: var(--red); box-shadow: 4px 4px 0 #3a1a1a; }

/* ---- incinerator ---- */
.furnace { box-shadow: inset 0 -40px 70px -45px rgba(224,120,52,.3); }
.flame {
  position: absolute; z-index: 60; pointer-events: none; font-size: 15px;
  color: #e07834; animation: flameUp linear forwards;
}
@keyframes flameUp { to { transform: translateY(-90px); opacity: 0; } }

.disclaimer {
  border: 1px dashed var(--red); padding: 16px 18px; font-size: 13px; color: var(--dim); margin-top: 60px;
}
.disclaimer b { color: var(--red); }
footer { margin-top: 24px; font-size: 12.5px; color: var(--dim); }

/* Community rail — lives in the free right margin, hides when the margin does. */
.comms {
  position: fixed; right: 22px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 12px 8px; background: var(--panel); border: 1px solid var(--line);
  z-index: 30;
}
.comms-label { color: var(--dim); font-size: 10px; letter-spacing: 3px; writing-mode: vertical-rl; }
.comms a { color: var(--dim); display: block; line-height: 0; padding: 4px; }
.comms a:hover { color: var(--green); filter: drop-shadow(0 0 6px rgba(127,176,105,.55)); }
.comms svg { width: 20px; height: 20px; fill: currentColor; }
@media (max-width: 1120px) { .comms { display: none; } }

/* legacy bar (20.09.2026) */
.legacy-bar{background:#141c17;color:#a8a397;border-bottom:1px solid #24301f;font-size:12.5px;padding:8px 20px;text-align:center}
.legacy-bar a{color:#7fb069}
