/* Adapt The Disruption: same 8-bit palette and fonts as the other LiveCrowdGames. */
:root {
  --bg: #0d0b1e;
  --bg2: #17143a;
  --panel: #1f1b42;
  --ink: #f4f4f4;
  --muted: #8f89c4;
  --cyan: #3de0ff;
  --gold: #ffcc33;
  --pink: #ff4f8b;
  --green: #5cff7a;
  --violet: #9b8cff;
  --pixel: 'Press Start 2P', monospace;
  --mono: 'VT323', monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  background-image: linear-gradient(var(--bg2) 2px, transparent 2px), linear-gradient(90deg, var(--bg2) 2px, transparent 2px);
  background-size: 40px 40px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 22px;
  line-height: 1.2;
  -webkit-text-size-adjust: 100%;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--cyan); }
[hidden] { display: none !important; }

.wrap { max-width: 560px; margin: 0 auto; padding: 20px 16px 48px; position: relative; z-index: 1; }
.wrap.wide { max-width: 1180px; }

/* ---------- type ---------- */
.title {
  font-family: var(--pixel);
  font-size: clamp(22px, 7vw, 40px);
  line-height: 1.3;
  color: var(--gold);
  text-shadow: 3px 3px 0 #000, 6px 6px 0 var(--pink);
  margin: 8px 0 12px;
  text-align: center;
  overflow-wrap: anywhere;
}
.sub { text-align: center; color: var(--cyan); margin: 0 0 20px; font-size: 22px; }
.h { font-family: var(--pixel); font-size: 14px; color: var(--gold); margin: 0 0 12px; line-height: 1.5; }
.muted { color: var(--muted); }
.pixel { font-family: var(--pixel); }
.center { text-align: center; }
.err { color: var(--pink); font-family: var(--pixel); font-size: 11px; line-height: 1.6; min-height: 1em; }
.ok { color: var(--green); font-family: var(--pixel); font-size: 11px; line-height: 1.6; }

/* ---------- boxes ---------- */
.box {
  background: var(--panel);
  border: 4px solid #000;
  box-shadow: inset 0 0 0 3px var(--violet), 6px 6px 0 #000;
  padding: 18px;
  margin-bottom: 20px;
}
.box.gold { box-shadow: inset 0 0 0 3px var(--gold), 6px 6px 0 #000; }
.box.cyan { box-shadow: inset 0 0 0 3px var(--cyan), 6px 6px 0 #000; }
.box.pink { box-shadow: inset 0 0 0 3px var(--pink), 6px 6px 0 #000; }

/* ---------- buttons ---------- */
.btn {
  font-family: var(--pixel);
  font-size: 12px;
  line-height: 1.4;
  background: var(--panel);
  color: var(--ink);
  border: 4px solid #000;
  box-shadow: inset -4px -4px 0 rgba(0, 0, 0, 0.35), inset 4px 4px 0 rgba(255, 255, 255, 0.15), 4px 4px 0 #000;
  padding: 12px 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  touch-action: manipulation;
}
.btn:active:not(:disabled) { transform: translate(4px, 4px); box-shadow: inset -4px -4px 0 rgba(0, 0, 0, 0.35); }
.btn:disabled { opacity: 0.4; cursor: default; }
.btn.go { background: var(--green); color: #000; }
.btn.gold { background: var(--gold); color: #000; }
.btn.cyan { background: var(--cyan); color: #000; }
.btn.danger { background: var(--pink); color: #000; }
.btn.big { font-size: 15px; padding: 18px 20px; width: 100%; }
.btn.small { font-size: 10px; padding: 8px 10px; box-shadow: 3px 3px 0 #000; border-width: 3px; }
.btn.on { background: var(--gold); color: #000; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.field > span { font-family: var(--pixel); font-size: 11px; color: var(--cyan); line-height: 1.5; }
.field > span small { font-family: var(--mono); font-size: 18px; color: var(--muted); }
.input, select.input, textarea.input {
  width: 100%;
  background: #000;
  border: 4px solid var(--muted);
  padding: 12px;
  font-family: var(--mono);
  font-size: 24px;
  color: var(--ink);
  border-radius: 0;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
select.input {
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(-45deg, transparent 50%, var(--gold) 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 14px) 50%;
  background-size: 8px 8px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
.input:focus { border-color: var(--gold); }
textarea.input { min-height: 140px; resize: vertical; line-height: 1.15; }
.count { text-align: right; font-size: 18px; color: var(--muted); margin-top: -6px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 22px; }
.check input { width: 22px; height: 22px; accent-color: var(--gold); }

/* ---------- claim code ---------- */
.code {
  font-family: var(--pixel);
  font-size: clamp(20px, 7vw, 40px);
  letter-spacing: 1px;
  white-space: nowrap;
  color: #000;
  background: var(--gold);
  border: 4px solid #000;
  box-shadow: 6px 6px 0 #000;
  padding: 16px 10px;
  text-align: center;
  margin: 12px 0;
  user-select: all;
}
.qr-small { display: block; margin: 12px auto; background: #fff; padding: 10px; width: min(240px, 70vw); image-rendering: pixelated; }

/* ---------- lists ---------- */
.idea {
  background: var(--panel);
  border: 4px solid #000;
  box-shadow: 4px 4px 0 #000;
  padding: 14px;
  margin-bottom: 14px;
  position: relative;
}
.idea.top { box-shadow: inset 0 0 0 3px var(--gold), 4px 4px 0 #000; }
.idea.hidden-idea { opacity: 0.45; }
.idea .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 19px; color: var(--muted); }
.idea .text { font-size: 25px; margin: 10px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.idea .who { color: var(--cyan); }
.idea .proj { color: var(--green); }
.idea .acts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 10px; }
.tag {
  font-family: var(--pixel);
  font-size: 9px;
  background: #000;
  color: var(--violet);
  padding: 5px 6px;
  border: 2px solid var(--violet);
  line-height: 1;
}
.tag.gold { color: var(--gold); border-color: var(--gold); }
.tag.green { color: var(--green); border-color: var(--green); }
.tag.pink { color: var(--pink); border-color: var(--pink); }

/* ---------- floating cubes ---------- */
.cubes { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.cube { position: absolute; animation: bob 6s steps(6) infinite; opacity: 0.85; }
@keyframes bob { 50% { transform: translateY(-14px); } }
@keyframes pop { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.pop { animation: pop 0.35s steps(4) both; }

@media (prefers-reduced-motion: reduce) {
  .cube, .pop { animation: none; }
}
