:root {
  --bg: #0b1f14;
  --bg-2: #12321f;
  --card: #173d26;
  --text: #f4f1ea;
  --muted: #c5d3c8;
  --accent: #3ecf6a;
  --accent-2: #f3c14b;
  --danger: #ff6b6b;
  --warn: #f3c14b;
  --ok: #3ecf6a;
  --line: #2a5a3b;
  --touch: 48px;
  --radius: 16px;
  --font: "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: var(--font); min-height: 100%; }
a { color: var(--accent); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: var(--accent-2); color: #111; padding: 8px; }
.app { max-width: 720px; margin: 0 auto; padding: 16px 16px 96px; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.brand { font-weight: 800; letter-spacing: 0.02em; }
.banner { padding: 12px 14px; border-radius: var(--radius); margin-bottom: 16px; font-weight: 600; }
.banner.ok { background: #1d4d30; }
.banner.warning { background: #5a4716; }
.banner.danger { background: #5a1d1d; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; }
.muted { color: var(--muted); }
h1, h2 { margin: 0 0 8px; }
.btn, button.btn {
  min-height: var(--touch);
  min-width: var(--touch);
  border: 0;
  border-radius: 12px;
  padding: 0 16px;
  font-size: 1rem;
  font-weight: 700;
  background: var(--accent);
  color: #08210f;
  cursor: pointer;
}
.btn.secondary { background: #2a5a3b; color: var(--text); }
.btn.warn { background: var(--warn); color: #221a00; }
.btn.danger { background: var(--danger); color: #2a0000; }
.btn.huge { min-height: 72px; font-size: 1.25rem; width: 100%; margin-bottom: 10px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; }
input, select, textarea {
  width: 100%;
  min-height: var(--touch);
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--text);
  padding: 8px 12px;
  font-size: 1rem;
}
label { display: block; margin: 12px 0 6px; font-weight: 600; }
.nav {
  position: fixed; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-around;
  background: #0e2818; border-top: 1px solid var(--line);
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
}
.nav a {
  color: var(--muted); text-decoration: none; font-weight: 700;
  min-height: var(--touch); display: flex; align-items: center; padding: 0 10px;
}
.nav a[aria-current="page"] { color: var(--accent); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.chip { min-height: 40px; border-radius: 999px; padding: 0 14px; background: #2a5a3b; color: var(--text); border: 0; font-weight: 700; }
.chip.active { background: var(--accent); color: #08210f; }
.score { font-size: 2.4rem; font-weight: 800; letter-spacing: 0.04em; }
.status { display: inline-block; padding: 4px 8px; border-radius: 8px; background: #2a5a3b; font-size: 0.85rem; }
.error { color: var(--danger); font-weight: 700; }
.skeleton { height: 88px; border-radius: var(--radius); background: linear-gradient(90deg, #173d26, #1d4d30, #173d26); background-size: 200% 100%; animation: pulse 1.4s infinite; margin-bottom: 12px; }
@keyframes pulse { 0% { background-position: 0 0; } 100% { background-position: 200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } }
.install { display: none; }
.gc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
