/* Shmuelicoin — shared terminal theme. Powered by Uri Follman. */
:root {
  --bg: #050807; --panel: #0a100c; --grid: rgba(65,255,106,.05);
  --neon: #41ff6a; --neon-dim: #2aa94a; --gold: #d4a437;
  --text: #c8e6cf; --muted: #6a8a72; --red: #ff5555;
  --mono: ui-monospace, "Cascadia Code", Consolas, "Courier New", monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--mono); background: var(--bg); color: var(--text);
  line-height: 1.65; font-size: 15px;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 34px 34px;
}
::selection { background: var(--neon); color: #000; }

/* status bar */
.statusbar {
  position: sticky; top: 0; z-index: 10; display: flex; gap: 18px; align-items: center;
  padding: 8px 16px; background: rgba(5,8,7,.92); backdrop-filter: blur(4px);
  border-bottom: 1px solid var(--neon-dim); font-size: 12px; overflow-x: auto; white-space: nowrap;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--neon);
  box-shadow: 0 0 8px var(--neon); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 50% { opacity: .4; } }
.statusbar b { color: var(--neon); font-weight: 700; }
.statusbar span { color: var(--muted); }

/* nav */
nav {
  display: flex; gap: 6px; flex-wrap: wrap; justify-content: center;
  padding: 14px 16px 0; font-size: .92rem;
}
nav a {
  color: var(--muted); border: 1px solid transparent; padding: 5px 12px; text-decoration: none;
}
nav a:hover { color: var(--neon); text-shadow: 0 0 10px rgba(65,255,106,.6); }
nav a.active { color: var(--neon); border: 1px solid var(--neon-dim); background: var(--panel); }

.wrap { max-width: 880px; margin: 0 auto; padding: 0 18px; }

/* hero */
.hero { text-align: center; padding: 54px 0 36px; }
.hero img { width: 190px; height: 190px; filter: drop-shadow(0 0 34px rgba(212,164,55,.5)); }
.hero.small img { width: 110px; height: 110px; }
h1 {
  font-size: clamp(2rem, 7vw, 3.6rem); letter-spacing: -1px; margin-top: 22px; color: #fff;
  text-shadow: 0 0 18px rgba(65,255,106,.35);
}
h1 .accent { color: var(--neon); }
h1 .cursor { display: inline-block; width: .55em; height: .08em; background: var(--neon);
  vertical-align: baseline; margin-left: 4px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.sub { color: var(--muted); margin-top: 10px; font-size: clamp(.85rem, 2.6vw, 1.05rem); }
.sub b { color: var(--gold); }

/* readouts */
.readouts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px; margin: 42px 0; }
.readout {
  border: 1px solid var(--neon-dim); background: var(--panel); padding: 16px 18px; position: relative;
}
.readout::before { content: ""; position: absolute; inset: 0;
  border: 1px solid rgba(65,255,106,.12); pointer-events: none; transform: translate(3px,3px); }
.readout small { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; }
.readout b { display: block; font-size: 1.45rem; color: var(--neon); margin-top: 4px;
  text-shadow: 0 0 12px rgba(65,255,106,.4); overflow-wrap: anywhere; }
.readout .gold { color: var(--gold); text-shadow: 0 0 12px rgba(212,164,55,.4); }

/* terminal panels */
.term { border: 1px solid var(--neon-dim); background: var(--panel); margin: 34px 0; }
.term-head { display: flex; align-items: center; gap: 8px; padding: 8px 14px;
  border-bottom: 1px solid var(--neon-dim); color: var(--muted); font-size: 12px; }
.term-head::before { content: "●●●"; letter-spacing: 3px; color: var(--neon-dim); font-size: 10px; }
.term-body { padding: 22px 20px; }
.prompt { color: var(--neon); }
.comment { color: var(--muted); }

h2 { font-size: 1.15rem; color: #fff; letter-spacing: .5px; margin-bottom: 14px; }
h2::before { content: "> "; color: var(--neon); }
h3 { font-size: 1rem; color: var(--gold); margin: 18px 0 8px; }
h3::before { content: "## "; color: var(--neon-dim); }

p { margin-bottom: 12px; }
ol, ul { margin: 0 0 18px 20px; }
li { margin-bottom: 7px; }
a { color: var(--neon); text-decoration: none; border-bottom: 1px dotted var(--neon-dim); }
a:hover { text-shadow: 0 0 10px rgba(65,255,106,.6); }
nav a, .readout a { border-bottom: none; }

/* allocation bars */
.alloc { margin: 8px 0 4px; }
.alloc-row { display: grid; grid-template-columns: minmax(120px, 200px) 1fr 64px; gap: 10px;
  align-items: center; margin-bottom: 10px; font-size: .88rem; }
.alloc-row small { color: var(--muted); }
.bar { height: 14px; background: #030504; border: 1px solid var(--neon-dim); position: relative; }
.bar i { position: absolute; inset: 1px auto 1px 1px; background: linear-gradient(90deg, var(--neon-dim), var(--neon));
  box-shadow: 0 0 10px rgba(65,255,106,.4); }
.bar i.gold { background: linear-gradient(90deg, #8a6a20, var(--gold)); box-shadow: 0 0 10px rgba(212,164,55,.4); }
.alloc-row b { color: var(--neon); text-align: right; }

/* roadmap */
.roadmap { list-style: none; margin-left: 0; }
.roadmap li { padding-left: 26px; position: relative; margin-bottom: 12px; }
.roadmap li::before { content: "[✓]"; position: absolute; left: 0; color: var(--neon); }
.roadmap li.todo::before { content: "[ ]"; color: var(--muted); }
.roadmap li.todo { color: var(--muted); }

/* forms */
input, button {
  width: 100%; padding: 13px 15px; font-size: .95rem; font-family: var(--mono);
  margin-top: 10px; border-radius: 0;
}
input { background: #030504; color: var(--text); border: 1px solid var(--neon-dim); caret-color: var(--neon); }
input:focus { outline: none; border-color: var(--neon); box-shadow: 0 0 12px rgba(65,255,106,.25); }
input::placeholder { color: #4a6152; }
button {
  background: var(--neon); color: #04140a; font-weight: 700; border: none; cursor: pointer;
  letter-spacing: 1px; text-transform: uppercase; transition: box-shadow .15s;
}
button:hover { box-shadow: 0 0 22px rgba(65,255,106,.55); }
button:disabled { opacity: .5; cursor: wait; box-shadow: none; }
.msg { margin-top: 12px; padding: 12px 14px; display: none; font-size: .9rem; }
.msg.ok { display: block; border: 1px solid var(--neon); color: var(--neon); background: rgba(65,255,106,.07); }
.msg.err { display: block; border: 1px solid var(--red); color: var(--red); background: rgba(255,85,85,.07); }

.mint {
  font-size: .8rem; word-break: break-all; background: #030504; padding: 12px 14px;
  border: 1px dashed var(--neon-dim); color: var(--gold); margin: 10px 0;
}

table { width: 100%; border-collapse: collapse; margin: 12px 0 18px; font-size: .88rem; }
th, td { text-align: left; padding: 8px 10px; border: 1px solid rgba(65,255,106,.2); }
th { color: var(--gold); background: #030504; }

.powered {
  text-align: center; margin: 40px 0 0; color: var(--muted); font-size: .85rem; letter-spacing: 1px;
}
.powered b { color: var(--gold); text-shadow: 0 0 12px rgba(212,164,55,.45); }

footer { text-align: center; padding: 30px 18px 44px; color: var(--muted); font-size: .78rem;
  border-top: 1px solid rgba(65,255,106,.15); margin-top: 26px; }
footer .fineprint { font-size: .66rem; opacity: .6; }

/* ===== motion & fx layer ===== */

/* CRT scanlines over everything, very subtle */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 9998; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.16) 0 1px, transparent 1px 3px);
  opacity: .35; mix-blend-mode: multiply;
}

/* boot overlay */
#boot {
  position: fixed; inset: 0; z-index: 9999; background: #030504;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .6s ease; cursor: pointer;
}
#boot.done { opacity: 0; }
#boot pre {
  font-family: var(--mono); color: var(--neon); font-size: clamp(11px, 2.6vw, 15px);
  text-shadow: 0 0 10px rgba(65,255,106,.5); line-height: 1.9; min-width: 300px;
}

/* typed rotator line */
.typedline { min-height: 1.6em; color: var(--gold); }
.typedline::before { content: "$ "; color: var(--neon); }
.typedline::after { content: "▌"; color: var(--neon); animation: blink 1.1s steps(1) infinite; }

/* glitch on hover for headings + logo title */
h1:hover, .term:hover .term-head { animation: glitch .28s steps(2) 1; }
@keyframes glitch {
  25% { transform: translate(1px,-1px) skewX(1.5deg); }
  50% { transform: translate(-1px,1px) skewX(-1.5deg); }
  75% { transform: translate(1px,0) skewX(.5deg); }
}

/* neon sweep on buttons */
button { position: relative; overflow: hidden; }
button::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -80%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.5), transparent);
  transform: skewX(-20deg); transition: left .45s ease;
}
button:hover::after { left: 120%; }

/* term panels lift slightly on hover */
.term { transition: transform .22s ease, box-shadow .22s ease; }
.term:hover { transform: translateY(-3px); box-shadow: 0 6px 30px rgba(65,255,106,.12); }
.readout { transition: transform .22s ease, box-shadow .22s ease; }
.readout:hover { transform: translateY(-3px); box-shadow: 0 6px 26px rgba(65,255,106,.14); }

@media (prefers-reduced-motion: reduce) {
  body::after { display: none; }
  h1:hover, .term:hover .term-head { animation: none; }
  .term, .readout, button::after { transition: none; }
}

/* buy buttons */
.btnrow { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.btnrow .btn {
  flex: 1 1 160px; text-align: center; padding: 13px 15px; border: none;
  background: var(--neon); color: #04140a; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; font-size: .9rem; text-decoration: none;
}
.btnrow .btn:hover { box-shadow: 0 0 22px rgba(65,255,106,.55); text-shadow: none; }
.btnrow .btn.alt { background: transparent; color: var(--neon); border: 1px solid var(--neon-dim); }
.btnrow .btn.alt:hover { border-color: var(--neon); }

/* the wink */
.coinwrap { position: relative; display: inline-block; }
.coinwrap img { display: block; }
.wink {
  position: absolute; left: 47.27%; top: 37.3%; width: 8.2%; height: 4.5%;
  opacity: 0; pointer-events: none;
}
.wink.go { animation: winkAnim .7s ease-in-out; }
@keyframes winkAnim {
  0% { opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; }
}

/* push through the money with a shmuelicoin */
#supplyField { cursor: url("cursor.png") 16 16, crosshair; }

/* matrix rain: fade into the distance at the bottom */
#matrix {
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,.75) 55%, rgba(0,0,0,0) 92%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,.75) 55%, rgba(0,0,0,0) 92%);
}

/* available-on venue grid */
.venues { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 9px; margin: 6px 0 14px; }
.venues a {
  display: block; border: 1px solid var(--neon-dim); background: #030504;
  padding: 10px 12px; text-decoration: none; border-bottom: 1px solid var(--neon-dim);
  transition: border-color .15s, box-shadow .15s;
}
.venues a:hover { border-color: var(--neon); box-shadow: 0 0 14px rgba(65,255,106,.25); text-shadow: none; }
.venues b { color: var(--neon); display: block; font-size: .95rem; }
.venues small { color: var(--muted); font-size: .72rem; }

/* powered-by brand line */
.brand { display: flex; gap: 8px; align-items: center; justify-content: center;
  margin-top: 12px; font-size: .7rem; color: var(--muted); }
.brand img { height: 16px; width: 16px; filter: grayscale(1) brightness(1.4); opacity: .75;
  transition: filter .2s, opacity .2s; }
.brand:hover img { filter: none; opacity: 1; }
.brand a { color: var(--muted); border-bottom: 1px dotted rgba(106,138,114,.5); }
.brand a:hover { color: var(--neon); }
