:root {
  --bg: #f3f6f4;
  --surface: #ffffff;
  --ink: #1a2b24;
  --muted: #5a6b63;
  --line: #d5e0da;
  --accent: #0f6b4c;
  --accent-soft: #e5f4ed;
  --warn: #9a3412;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(26, 43, 36, 0.08);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, #dff3ea 0, transparent 40%),
    linear-gradient(180deg, #eef5f1 0%, var(--bg) 45%, #e8efeb 100%);
  min-height: 100vh;
}

.page {
  width: min(820px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.5rem 0 4rem;
}

.hero {
  margin-bottom: 1.5rem;
}

.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1.15;
}

.lead {
  margin: 0;
  color: var(--muted);
  max-width: 40rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.35rem;
  margin-bottom: 1rem;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  color: var(--ink);
  background: #fbfcfb;
}

input:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 45%, white);
  border-color: var(--accent);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.question {
  counter-increment: q;
}

.question h2 {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  line-height: 1.45;
}

.question h2::before {
  content: counter(q) ". ";
  color: var(--accent);
}

#questions {
  counter-reset: q;
}

.options {
  display: grid;
  gap: 0.55rem;
}

.option {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.option:hover {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--line));
  background: var(--accent-soft);
}

.option input {
  margin-top: 0.2rem;
}

.actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

button,
.button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.8rem 1.25rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

button.primary,
.button.primary {
  background: var(--accent);
  color: white;
}

button.secondary,
.button.secondary {
  background: var(--accent-soft);
  color: var(--accent);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.error {
  color: var(--warn);
  margin: 0.75rem 0 0;
  font-weight: 600;
}

.result {
  text-align: center;
  padding: 2rem 1rem;
}

.score {
  font-size: clamp(3rem, 10vw, 4.5rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin: 0.5rem 0 0.75rem;
}

.muted {
  color: var(--muted);
}

.hidden {
  display: none !important;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 700;
}

.admin-bar {
  display: flex;
  gap: 0.75rem;
  align-items: end;
  flex-wrap: wrap;
}

.admin-bar > div {
  flex: 1;
  min-width: 180px;
}

.empty {
  padding: 1rem 0;
  color: var(--muted);
}

@media (max-width: 640px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .page {
    width: min(100% - 1.25rem, 820px);
    padding-top: 1.5rem;
  }
}
