:root {
  --green: #43b749;
  --green-dark: #2f8f35;
  --red: #d64545;
  --red-dark: #b23434;
  --ink: #1f2a24;
  --muted: #5f6b64;
  --line: #e3e8e4;
  --bg: #f4f7f4;
  --card: #ffffff;
  --accent-text: var(--green-dark);
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef3ef;
    --muted: #a8b3ac;
    --line: #2c3530;
    --bg: #121714;
    --card: #1b221e;
    --accent-text: var(--green);
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px 40px;
}
.wrap { width: 100%; max-width: 520px; }
.logo { display: block; height: 52px; width: auto; margin: 4px auto 20px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 22px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .05);
}
.tag {
  display: inline-block;
  font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--accent-text);
  background: rgba(67, 183, 73, .14);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 14px;
}
h1 { font-size: 24px; line-height: 1.3; margin: 0 0 8px; text-wrap: balance; }
p.sub { color: var(--muted); margin: 0 0 24px; }
.buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.btn {
  appearance: none; border: 0; cursor: pointer;
  font: inherit; font-size: 24px; font-weight: 800; letter-spacing: .04em;
  color: #fff;
  border-radius: 14px;
  padding: 26px 10px;
  transition: transform .08s ease, background .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.yes { background: var(--green); }
.btn.yes:hover { background: var(--green-dark); }
.btn.no { background: var(--red); }
.btn.no:hover { background: var(--red-dark); }
.err { color: var(--red); margin: 16px 0 0; min-height: 1.5em; text-align: center; }
.foot { color: var(--muted); font-size: 13px; text-align: center; margin-top: 22px; }
.foot a { color: inherit; }

/* Rezultatai */
.thanks { font-size: 20px; font-weight: 700; color: var(--accent-text); margin: 0 0 12px; }
.q { color: var(--muted); margin: 0 0 22px; }
.row { margin: 0 0 18px; }
.row-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.row-top b { font-size: 18px; }
.row-top > span { color: var(--muted); font-variant-numeric: tabular-nums; }
.row-top .pct { font-size: 22px; font-weight: 800; color: var(--ink); margin-right: 6px; }
.bar { height: 16px; border-radius: 999px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: 999px; transition: width .6s ease; }
.bar.yes i { background: var(--green); }
.bar.no i { background: var(--red); }
.total { text-align: center; color: var(--muted); margin: 8px 0 0; font-variant-numeric: tabular-nums; }
.again { display: block; text-align: center; margin-top: 20px; color: var(--muted); font-size: 15px; }

/* Administravimas */
.wrap.wide { max-width: 760px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 18px; }
.stat { border: 1px solid var(--line); border-radius: 12px; padding: 14px; text-align: center; }
.stat .n { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; }
.stat .l { color: var(--muted); font-size: 14px; }
.stat.yes .n { color: var(--green); }
.stat.no .n { color: var(--red); }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; font-size: 14px; }
td.num, th.num { text-align: right; }
h2 { font-size: 18px; margin: 26px 0 10px; }
.meta { color: var(--muted); font-size: 14px; margin: 0; }
.qrbox { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.qrbox img { width: 140px; height: 140px; background: #fff; padding: 8px; border-radius: 10px; border: 1px solid var(--line); }
.qrbox a { color: var(--accent-text); font-weight: 600; }
@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stats .stat:first-child { grid-column: 1 / -1; }
  h1 { font-size: 21px; }
}
