/* Bankcoin — one long cursed scroll. acid lime / black. bank documents, not windows. */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --lime-bg: #BFDA07;
  --lime: #CCFF00;
  --ink: #1C180D;
  --card: #14120a;
  --card-2: #201d10;
  --paper-line: #2c2917;
  --text-dim: #b9b48f;
  --comic: "Comic Sans MS", "Comic Sans", "Chalkboard SE", cursive;
  --mono: "Courier New", monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--lime-bg);
  background-image:
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="120" height="120"><text x="14" y="30" font-family="Courier New" font-size="18" font-weight="bold" fill="rgba(28,24,13,.10)" transform="rotate(-14 14 30)">$</text><text x="80" y="90" font-family="Courier New" font-size="24" font-weight="bold" fill="rgba(28,24,13,.08)" transform="rotate(11 80 90)">$</text><text x="46" y="66" font-family="Courier New" font-size="13" font-weight="bold" fill="rgba(28,24,13,.09)" transform="rotate(4 46 66)">$</text></svg>'),
    radial-gradient(rgba(28,24,13,.16) 1px, transparent 1px);
  background-size: 120px 120px, 4px 4px;
  font-family: Tahoma, Verdana, Geneva, sans-serif;
  font-size: 13px;
  color: var(--ink);
  overflow-x: hidden;
}

::selection { background: var(--ink); color: var(--lime); }

body::-webkit-scrollbar { width: 14px; }
body::-webkit-scrollbar-track { background: var(--ink); }
body::-webkit-scrollbar-thumb { background: var(--lime); border: 3px solid var(--ink); }

@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
.blink { animation: blink 1.1s steps(1) infinite; }
@keyframes jitter {
  0%,100% { transform: rotate(-1.2deg); }
  50% { transform: rotate(1.4deg); }
}

.tilt-l { transform: rotate(-.8deg); }
.tilt-r { transform: rotate(.6deg); }

/* ---- mast ---- */
.mast {
  position: relative;
  text-align: center;
  padding: 54px 16px 44px;
  max-width: 860px;
  margin: 0 auto;
}
.mast-logo {
  width: clamp(140px, 28vw, 230px);
  image-rendering: pixelated;
  animation: jitter 5s ease-in-out infinite;
  filter: drop-shadow(5px 6px 0 rgba(28,24,13,.35));
}
.mast-title {
  font-size: clamp(88px, 21vw, 200px);
  line-height: .84;
  letter-spacing: -.02em;
  transform: rotate(-2deg);
  text-shadow: 5px 5px 0 rgba(255,255,255,.5), 9px 9px 0 rgba(28,24,13,.3);
  margin-top: 4px;
}
.mast-sub {
  font-family: var(--comic);
  font-weight: bold;
  font-size: clamp(13px, 2.6vw, 18px);
  transform: rotate(.7deg);
  margin-top: 4px;
}
.mast-links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin-top: 22px;
}

.tool-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  background: var(--ink);
  border: 3px solid var(--ink);
  color: var(--lime);
  text-decoration: none;
  font-size: 13px;
  font-weight: bold;
  box-shadow: 4px 4px 0 rgba(28,24,13,.45);
}
.tool-btn:hover { background: var(--lime); color: var(--ink); }
.tool-btn:hover .tool-ico img { filter: invert(1); }
.tool-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 rgba(28,24,13,.45); }
.tool-btn.disabled { opacity: .45; pointer-events: none; }
.tool-ico { display: inline-flex; }
.tool-ico img { width: 15px; height: 15px; display: block; }

.stamp {
  position: absolute;
  right: 5%; bottom: 16px;
  transform: rotate(9deg);
  border: 3px double var(--ink);
  color: var(--ink);
  font-weight: bold;
  font-size: 14px;
  letter-spacing: .18em;
  text-align: center;
  padding: 7px 12px;
  opacity: .9;
  pointer-events: none;
}

/* ---- charter (the wall of text) ---- */
.charter {
  max-width: 900px;
  margin: 0 auto;
  padding: 70px 18px 40px;
}
.law {
  font-family: var(--mono);
  font-weight: bold;
  font-size: 13px;
  letter-spacing: .3em;
  border-bottom: 3px solid var(--ink);
  display: inline-block;
  padding-bottom: 3px;
  margin-bottom: 22px;
}
.big {
  font-size: clamp(26px, 5.4vw, 54px);
  font-weight: 900;
  line-height: 1.04;
  text-transform: uppercase;
  letter-spacing: -.01em;
  margin-bottom: 14px;
}
.charter .big:nth-of-type(odd) { transform: rotate(-.45deg); }
.charter .big:nth-of-type(even) { transform: rotate(.35deg); }
.mark {
  background: var(--ink);
  color: var(--lime);
  padding: 0 10px 2px;
  display: inline-block;
  transform: rotate(-1.2deg);
}
.comic {
  font-family: var(--comic);
  font-size: 14px;
  margin-top: 18px;
  transform: rotate(-.6deg);
}

/* ---- bank documents ---- */
.inset-wrap { padding: 10px 14px; display: flex; justify-content: center; }
.doc {
  width: 100%;
  max-width: 880px;
  background: var(--card);
  border: 3px solid var(--ink);
  box-shadow: 9px 9px 0 rgba(28,24,13,.45);
  color: #e9e6d2;
}
.doc-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--mono);
  font-weight: bold;
  padding: 7px 12px;
  border-bottom: 3px solid var(--ink);
}
.doc-bank { font-size: 12px; letter-spacing: .08em; }
.doc-form { font-size: 11px; letter-spacing: .06em; }
.doc-count { color: #4c5a00; margin-left: 6px; }
.doc-body { padding: 12px; }
.doc-tear {
  border-top: 2px dashed rgba(204,255,0,.5);
  color: #7d7960;
  font-family: var(--comic);
  font-size: 10px;
  text-align: center;
  padding: 5px 8px 7px;
}

.panel-note {
  font-size: 11px; color: var(--text-dim); margin-bottom: 8px;
  font-family: var(--comic);
}

/* ---- LCD ---- */
.lcd-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.lcd-label { font-size: 10px; font-weight: bold; color: var(--text-dim); margin-bottom: 5px; letter-spacing: .06em; }
.lcd {
  background: #0b0b04;
  color: var(--lime);
  font-family: var(--mono);
  font-weight: bold;
  font-size: 20px;
  padding: 8px 10px;
  border: 2px solid var(--ink);
  outline: 1px solid rgba(204,255,0,.25);
  text-shadow: 0 0 7px rgba(204,255,0,.6);
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}

/* ---- tables ---- */
.scroll-area {
  height: 320px;
  overflow: auto;
  background: #0f0e08;
  border: 2px solid var(--ink);
  outline: 1px solid rgba(204,255,0,.2);
  scrollbar-color: var(--lime) var(--card-2);
  scrollbar-width: thin;
}
.tbl { width: 100%; border-collapse: collapse; font-size: 12px; }
.tbl th {
  position: sticky; top: 0;
  background: var(--card-2);
  color: var(--lime);
  border-bottom: 2px solid var(--lime);
  text-align: left;
  padding: 5px 8px;
  font-size: 10px;
  letter-spacing: .05em;
}
.tbl td {
  padding: 4px 8px;
  border-bottom: 1px solid var(--paper-line);
  font-family: var(--mono);
  white-space: nowrap;
  color: #ddd8b8;
}
.tbl .r { text-align: right; }
.tbl a { color: var(--lime); text-decoration: none; }
.tbl a:hover { text-decoration: underline; }
.tbl tr:hover td { background: #1c1c0e; }
.empty-row td {
  text-align: center !important;
  color: #7d7960;
  padding: 26px 8px !important;
  font-family: Tahoma, sans-serif;
}
.badge {
  display: inline-block;
  font-size: 9px;
  font-family: Tahoma, sans-serif;
  background: var(--lime);
  color: var(--ink);
  font-weight: bold;
  padding: 1px 4px;
  margin-left: 5px;
  vertical-align: 1px;
}
.rh-ico { width: 13px; height: 13px; vertical-align: -2px; margin-right: 4px; border-radius: 3px; }
.x-ico { border-radius: 0; }

/* ---- incinerator ---- */
.burn-total { margin-bottom: 10px; }
.lcd-burn {
  font-size: clamp(20px, 4.4vw, 34px);
  color: #ff5a1f;
  text-shadow: 0 0 9px rgba(255,90,31,.65);
}
.scroll-area-short { height: 220px; }

/* ---- CA block ---- */
.ca-block {
  max-width: 900px;
  margin: 0 auto;
  padding: 30px 18px 80px;
  text-align: center;
}
.ca-big {
  font-family: var(--mono);
  font-weight: bold;
  font-size: clamp(13px, 2.9vw, 26px);
  background: var(--ink);
  color: var(--lime);
  padding: 14px 10px;
  word-break: break-all;
  transform: rotate(-.5deg);
  box-shadow: 6px 6px 0 rgba(28,24,13,.4);
  margin: 18px 0 16px;
}
.ca-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.btn {
  padding: 8px 18px;
  background: var(--ink);
  color: var(--lime);
  border: 3px solid var(--ink);
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 4px 4px 0 rgba(28,24,13,.45);
}
.btn:hover { background: var(--lime); color: var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 rgba(28,24,13,.45); }
.scan-btn { text-decoration: none; display: inline-flex; align-items: center; }
.scan-btn .rh-ico { margin-right: 6px; }
.scan-btn:hover .x-ico { filter: invert(1); }

/* ---- the wall ---- */
.wall {
  padding: 80px 10px 70px;
  text-align: center;
  overflow: hidden;
}
.wall div {
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.02;
  white-space: nowrap;
}
.wall div:nth-child(4n+1) { font-size: clamp(20px, 4.6vw, 46px); transform: rotate(-.7deg); }
.wall div:nth-child(4n+2) { font-size: clamp(16px, 3.4vw, 34px); transform: rotate(.5deg); opacity: .82; }
.wall div:nth-child(4n+3) { font-size: clamp(24px, 5.6vw, 58px); transform: rotate(-.3deg); }
.wall div:nth-child(4n+4) { font-family: var(--comic); font-size: clamp(14px, 2.8vw, 26px); transform: rotate(1deg); opacity: .7; }
.wall div:nth-child(7) { animation: blink 1.3s steps(1) infinite; }
.wall div:nth-child(15) { animation: blink .9s steps(1) infinite; }

/* ---- fine print ---- */
.fineprint {
  max-width: 980px;
  margin: 0 auto;
  padding: 20px 18px 60px;
}
.fine-cols {
  columns: 3;
  column-gap: 22px;
  column-rule: 1px solid rgba(28,24,13,.35);
  font-size: 9px;
  line-height: 1.5;
  text-align: justify;
  font-family: var(--mono);
  margin-top: 14px;
}
.signature {
  margin-top: 30px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  justify-content: flex-end;
}
.sig-line { font-family: var(--comic); font-size: 13px; }
.sig-name {
  font-family: var(--comic);
  font-size: 30px;
  font-weight: bold;
  transform: rotate(-4deg);
  border-bottom: 2px solid var(--ink);
}
.sig-stamp {
  border: 3px double var(--ink);
  padding: 4px 10px;
  font-weight: bold;
  letter-spacing: .2em;
  transform: rotate(-12deg);
  font-size: 12px;
}

/* ---- footer ---- */
.statusbar {
  display: flex; gap: 4px 18px; flex-wrap: wrap;
  background: var(--ink);
  color: var(--lime);
  padding: 8px 14px;
  font-size: 11px;
  font-family: var(--mono);
  font-weight: bold;
}
.status-right { margin-left: auto; color: var(--text-dim); }

/* ---- responsive ---- */
@media (max-width: 720px) {
  .lcd-row { grid-template-columns: repeat(2, 1fr); }
  .lcd { font-size: 16px; }
  .charter { padding: 50px 14px 30px; }
  .stamp { right: 4%; bottom: 8px; font-size: 12px; }
  .fine-cols { columns: 1; }
  .scroll-area { height: 280px; }
  .tbl { font-size: 11px; }
  .tbl td, .tbl th { padding: 4px 6px; }
  .tilt-l, .tilt-r { transform: none; }
  .signature { justify-content: center; }
  .doc-head { flex-direction: column; gap: 2px; }
  .statusbar .status-right { margin-left: 0; }
}
