/* Baldi Bucks: early-2000s Flash-portal look. Shared by the wallet and the explorer. */
:root {
  --bg: #0e0e0e; --bg2: #141414; --panel: #1b1b1b; --edge: #3a3a3a; --ink: #e8e8e8; --muted: #9a9a9a;
  --orange: #ff6600; --orange-lt: #ff9933; --orange-dk: #cc3300; --link: #ffcc00;
  --green: #66ff00; --red: #ff3344; --empty: #2a2a2a; --gold: #e0b030;
}
* { box-sizing: border-box; }
body {
  margin: 0; color: var(--ink);
  background-color: var(--bg);
  background-image: repeating-linear-gradient(45deg, var(--bg) 0 6px, var(--bg2) 6px 12px);
  font: 13px/1.5 Verdana, Tahoma, Geneva, sans-serif;
}
main { max-width: 780px; margin: 0 auto; padding: 12px 16px 40px; }
a { color: var(--link); font-weight: bold; }
a:hover { color: #fff; }

img.px { image-rendering: pixelated; image-rendering: crisp-edges; vertical-align: middle; }

/* Header: logo flanked by skulls, marquee underneath */
.top { display: flex; align-items: center; justify-content: center; gap: 14px; }
.top .side { width: 64px; height: 64px; flex: none; }
h1.logo { margin: 0; flex: 0 1 460px; min-width: 0; }
h1.logo img { display: block; width: 100%; height: auto; }
@media (max-width: 560px) { .top .side { display: none; } }
marquee.strip {
  display: block; width: 100%; max-width: 640px; margin: 10px auto; padding: 4px 0;
  background: #000; color: var(--orange); border: 2px solid var(--orange-dk); outline: 2px solid #000;
  font: bold 18px/1.2 "Courier New", monospace; letter-spacing: 2px; text-shadow: 2px 2px 0 #8b0000;
}
footer .hits { margin-bottom: 6px; color: var(--ink); }
footer .hits img { vertical-align: middle; border: 2px outset #555; }
.sparkle { position: fixed; pointer-events: none; z-index: 99; font: bold 14px/1 Verdana, sans-serif; transform: translate(-50%, -50%); animation: sparkle .7s linear forwards; }
@keyframes sparkle { to { opacity: 0; transform: translate(-50%, 40%) scale(.4); } }
.fire { display: block; width: 100%; max-width: 640px; height: auto; margin: 6px auto; }

.gifrow { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; gap: 10px 18px; margin: 8px 0; }
.buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 12px 0; }
.buttons img { height: 31px; width: auto; }
.welcome { display: block; max-width: 100%; height: auto; margin: 4px auto 8px; }

/* Panels with the orange header bar */
.card {
  background: var(--panel); border: 2px solid var(--edge); margin: 14px 0; padding: 0 14px 14px;
  box-shadow: 4px 4px 0 #000;
}
.card h2 {
  margin: 0 -14px 12px; padding: 5px 10px; min-height: 34px;
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(var(--orange-lt), var(--orange) 50%, var(--orange-dk));
  border-bottom: 2px solid #000; color: #000;
  font: bold 12px/1.2 Verdana, Tahoma, sans-serif; text-transform: uppercase; letter-spacing: 1px;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, .35);
}
.card h2 .end { margin-left: auto; }

/* Tables */
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--orange); padding: 0 6px 6px; }
td { padding: 7px 6px; border-top: 1px dashed #333; vertical-align: top; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.addr { font-family: "Courier New", monospace; font-size: 11px; color: var(--muted); }
.muted { color: var(--muted); font-size: 11px; }
.memo { color: var(--orange-lt); font-style: italic; }
.unjoined { opacity: .55; }
@media (max-width: 520px) { .hide-sm { display: none; } }

/* The 14 coins */
.coins { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; max-width: 420px; }
.coin { aspect-ratio: 1; border-radius: 50%; border: 3px solid var(--gold); position: relative; box-shadow: 2px 2px 0 #000, inset 0 -3px 0 rgba(0, 0, 0, .3); }
.coin::after { content: "BB"; position: absolute; inset: 0; display: grid; place-items: center; font: bold 11px Verdana, sans-serif; color: #fff; text-shadow: 1px 1px 0 #000; }
.coinbox { display: flex; gap: 14px; align-items: center; }
.coinbox .coins { flex: 1; }
.coinbox .rain { flex: none; width: 96px; height: 96px; }
@media (max-width: 560px) { .coinbox .rain { display: none; } }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 12px; font-size: 12px; }
.dot { display: inline-block; width: 10px; height: 10px; margin-right: 5px; border: 1px solid #000; }
.bar { height: 6px; background: var(--empty); margin-top: 5px; border: 1px solid #000; }
.bar i { display: block; height: 100%; background: var(--orange); }

/* Forms */
label { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--orange); margin: 10px 0 4px; }
input, select, textarea {
  width: 100%; font: 13px Verdana, sans-serif; color: var(--green); background: #000;
  border: 2px inset #555; padding: 6px 8px;
}
textarea { font-family: "Courier New", monospace; font-size: 12px; min-height: 72px; }
button {
  font: bold 12px Verdana, sans-serif; text-transform: uppercase; letter-spacing: 1px; cursor: pointer;
  margin-top: 12px; padding: 7px 16px; color: #000;
  background: linear-gradient(var(--orange-lt), var(--orange) 55%, var(--orange-dk)); border: 2px outset var(--orange-lt);
}
button:active { border-style: inset; }
button.ghost { background: #2a2a2a; color: var(--ink); border-color: #555; }
button:disabled { opacity: .5; cursor: default; }
.tabs { display: flex; gap: 6px; margin-bottom: 4px; }
.tabs button { margin: 0; }
.msg { margin-top: 10px; min-height: 1.2em; font-weight: bold; }
.msg.err { color: var(--red); } .msg.ok { color: var(--green); }
.hidden { display: none; }

/* Wallet bits */
.balance { font: 56px/1.1 Impact, "Arial Black", sans-serif; color: var(--link); text-shadow: 3px 3px 0 #000, 5px 5px 0 var(--orange-dk); display: flex; align-items: center; gap: 12px; }
.balance small { font-size: 22px; color: var(--orange); }
.row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 6px 0; border-bottom: 1px dashed #333; }
.row:last-child { border-bottom: 0; }
.grow { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.in { color: var(--green); } .out { color: var(--red); }

code { font: 11px "Courier New", monospace; background: #000; color: var(--green); padding: 1px 5px; border: 1px solid #333; }
footer { text-align: center; color: var(--muted); font-size: 11px; margin-top: 18px; }
