/* ============ ROBIN WL — pixel arcade theme ============ */
:root {
  --bg: #070b08;
  --panel: #0d150e;
  --panel2: #111c12;
  --line: #1e3322;
  --green: #58e07a;
  --green-soft: #9df5b4;
  --green-dark: #2e8a48;
  --gold: #f2b233;
  --red: #e84b4b;
  --text: #d9f0de;
  --muted: #7fa189;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

/* animated canvas background */
#bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  image-rendering: pixelated;
}
.scanlines {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.22) 0 2px, transparent 2px 5px);
  opacity: .5;
}

.pixel { font-family: "Press Start 2P", monospace; }

/* ============ nav ============ */
nav {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 18px 28px;
  border-bottom: 2px solid var(--line);
  background: rgba(7, 11, 8, 0.82);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 50;
}
.logo {
  font-family: "Press Start 2P", monospace;
  font-size: 20px;
  color: var(--green);
  text-decoration: none;
  text-shadow: 0 0 12px rgba(88, 224, 122, .75), 3px 3px 0 #143a1e;
  letter-spacing: 2px;
}
.logo span { color: var(--gold); }
nav .links { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }
nav .links a {
  font-family: "Press Start 2P", monospace;
  font-size: 10px;
  color: var(--muted);
  text-decoration: none;
  padding: 10px 14px;
  border: 2px solid transparent;
}
nav .links a:hover { color: var(--green-soft); }
nav .links a.active {
  color: var(--green);
  border-color: var(--line);
  background: var(--panel);
  box-shadow: 0 0 14px rgba(88, 224, 122, .25);
}
nav .links a.xbtn {
  color: #0a0a0a;
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 0 16px rgba(88, 224, 122, .5);
}
nav .links a.xbtn:hover { background: var(--green-soft); color: #0a0a0a; }

/* ============ layout ============ */
main { max-width: 1060px; margin: 0 auto; padding: 48px 24px 120px; }

.hero { text-align: center; padding: 60px 0 30px; }
.hero h1 {
  font-family: "Press Start 2P", monospace;
  font-size: clamp(38px, 9vw, 84px);
  color: var(--green);
  text-shadow: 0 0 24px rgba(88, 224, 122, .8), 5px 5px 0 #143a1e, 10px 10px 0 rgba(0,0,0,.55);
  letter-spacing: 6px;
  animation: bob 3s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-10px) } }
.hero .tag {
  margin-top: 26px;
  font-family: "Press Start 2P", monospace;
  font-size: clamp(10px, 2.2vw, 15px);
  color: var(--text);
  line-height: 2.1;
}
.hero .tag b { color: var(--gold); font-weight: normal; }

.chips { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.chip {
  font-family: "Press Start 2P", monospace;
  font-size: 9px;
  padding: 10px 14px;
  border: 2px solid var(--line);
  background: var(--panel);
  color: var(--muted);
}
.chip.live { color: var(--green); border-color: var(--green-dark); animation: blink 1.4s steps(2) infinite; }
@keyframes blink { 50% { opacity: .45 } }

.cta-row { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-top: 42px; }

.btn {
  font-family: "Press Start 2P", monospace;
  font-size: 12px;
  text-decoration: none;
  display: inline-block;
  padding: 18px 26px;
  color: #06130a;
  background: var(--green);
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 0 var(--green-dark), 0 0 22px rgba(88, 224, 122, .45);
  transition: transform .08s, box-shadow .08s;
}
.btn:hover { transform: translateY(2px); box-shadow: 0 4px 0 var(--green-dark), 0 0 26px rgba(88, 224, 122, .6); }
.btn:active { transform: translateY(6px); box-shadow: 0 0 0 var(--green-dark); }
.btn.ghost {
  background: var(--panel);
  color: var(--green);
  border: 2px solid var(--green-dark);
  box-shadow: 0 6px 0 #0a1f10, 0 0 14px rgba(88, 224, 122, .2);
}
.btn.gold { background: var(--gold); box-shadow: 0 6px 0 #8a5f10, 0 0 22px rgba(242, 178, 51, .45); }
.btn:disabled { filter: grayscale(.8) brightness(.6); cursor: not-allowed; transform: none; }

/* hero robins */
.hero-robins { display: flex; justify-content: center; gap: 26px; margin-top: 54px; flex-wrap: wrap; }
.hero-robins .bot { width: 132px; height: 132px; animation: bob 3s ease-in-out infinite; }
.hero-robins .bot:nth-child(2) { animation-delay: .3s; }
.hero-robins .bot:nth-child(3) { animation-delay: .6s; }
.hero-robins .bot:nth-child(4) { animation-delay: .9s; }
.bot svg { width: 100%; height: 100%; image-rendering: pixelated; filter: drop-shadow(0 0 14px rgba(88,224,122,.35)); }
.bot img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--green-dark);
  background: #060d08;
  image-rendering: pixelated;
  box-shadow: 0 0 20px rgba(88, 224, 122, .5);
}

/* section headers */
h2.sec {
  font-family: "Press Start 2P", monospace;
  font-size: clamp(16px, 4vw, 26px);
  color: var(--green);
  text-align: center;
  margin: 30px 0 8px;
  text-shadow: 3px 3px 0 #143a1e;
}
p.sub { text-align: center; color: var(--muted); margin-bottom: 40px; font-size: 15px; }

/* ============ task cards ============ */
.progress-wrap { margin: 26px auto 40px; max-width: 620px; }
.progress-label {
  font-family: "Press Start 2P", monospace;
  font-size: 10px; color: var(--muted);
  display: flex; justify-content: space-between; margin-bottom: 10px;
}
.progress-label b { color: var(--green); font-weight: normal; }
.progress-bar { height: 22px; border: 2px solid var(--line); background: var(--panel); padding: 3px; }
.progress-fill {
  height: 100%; width: 0%;
  background: repeating-linear-gradient(90deg, var(--green) 0 12px, var(--green-dark) 12px 16px);
  transition: width .35s steps(8);
  box-shadow: 0 0 12px rgba(88, 224, 122, .6);
}

.task {
  border: 2px solid var(--line);
  background: var(--panel);
  margin-bottom: 22px;
  padding: 24px;
  position: relative;
  transition: border-color .2s;
}
.task.done { border-color: var(--green-dark); background: var(--panel2); }
.task .head { display: flex; align-items: center; gap: 16px; }
.task .num {
  font-family: "Press Start 2P", monospace;
  font-size: 14px;
  width: 46px; height: 46px; flex: 0 0 46px;
  display: grid; place-items: center;
  background: #0a1f10;
  border: 2px solid var(--green-dark);
  color: var(--green);
}
.task.done .num { background: var(--green); color: #06130a; }
.task h3 { font-family: "Press Start 2P", monospace; font-size: 12px; line-height: 1.8; color: var(--text); }
.task .check {
  margin-left: auto;
  font-family: "Press Start 2P", monospace;
  font-size: 10px;
  color: var(--muted);
}
.task.done .check { color: var(--green); }
.task .body { margin-top: 18px; padding-left: 62px; display: flex; flex-direction: column; gap: 14px; }
.task .body p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.task .row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.task .btn { font-size: 10px; padding: 14px 18px; }

input[type=text] {
  font-family: "Press Start 2P", monospace;
  font-size: 11px;
  background: #060d08;
  border: 2px solid var(--line);
  color: var(--green-soft);
  padding: 14px;
  flex: 1;
  min-width: 240px;
  outline: none;
}
input[type=text]:focus { border-color: var(--green-dark); box-shadow: 0 0 12px rgba(88,224,122,.25); }
input[type=text]:disabled { opacity: .5; cursor: not-allowed; color: var(--muted); background: #0a0f0b; }
input.bad { border-color: var(--red); box-shadow: 0 0 12px rgba(232,75,75,.35); }
.hint { font-size: 12px; color: var(--muted); }
.hint.err { color: var(--red); }

.submit-zone { text-align: center; margin-top: 44px; }

/* success */
.success {
  display: none;
  text-align: center;
  border: 2px solid var(--green-dark);
  background: var(--panel2);
  padding: 56px 28px;
  margin-top: 30px;
  box-shadow: 0 0 34px rgba(88, 224, 122, .25);
}
.success h2 {
  font-family: "Press Start 2P", monospace;
  color: var(--green);
  font-size: clamp(16px, 4vw, 24px);
  margin-bottom: 22px;
  text-shadow: 3px 3px 0 #143a1e;
}
.success p { color: var(--muted); line-height: 1.9; }
.success .summary {
  display: inline-block; text-align: left; margin-top: 22px;
  font-family: "Press Start 2P", monospace; font-size: 10px; line-height: 2.4;
  color: var(--text); background: #060d08; border: 2px solid var(--line); padding: 20px 26px;
}
.success .summary b { color: var(--gold); font-weight: normal; }

/* ============ ticker ============ */
.ticker {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--green);
  border-top: 3px solid var(--green-dark);
  overflow: hidden;
  z-index: 40;
  padding: 9px 0;
}
.ticker .inner {
  display: inline-block;
  white-space: nowrap;
  font-family: "Press Start 2P", monospace;
  font-size: 11px;
  color: #06130a;
  animation: ticker 22s linear infinite;
}
@keyframes ticker { from { transform: translateX(0) } to { transform: translateX(-50%) } }

footer { text-align: center; color: var(--muted); font-size: 12px; padding: 30px 0 70px; }
footer a { color: var(--green); }

@media (max-width: 640px) {
  .task .body { padding-left: 0; }
  nav { flex-direction: column; gap: 12px; padding: 14px; }
  nav .links { margin-left: 0; justify-content: center; }
}
