:root {
  color-scheme: dark;
  --bg: #0c0f14;
  --surface: #151a22;
  --surface-2: #1e2632;
  --fg: #e8eef5;
  --muted: #93a0b0;
  --line: #2c3646;
  --primary: #e2a04a;
  --primary-fg: #1c1306;
  --danger: #e26670;
  --sans: "Noto Sans Bengali", "Noto Sans", sans-serif;
}

:root.light {
  color-scheme: light;
  --bg: #f3efe7;
  --surface: #fffdf8;
  --surface-2: #efe8dc;
  --fg: #1c1814;
  --muted: #6f675e;
  --line: #e3d9cb;
  --primary: #9a5710;
  --primary-fg: #fff8ef;
  --danger: #b42332;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  line-height: 1.5;
}
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: 0.5; }
button:focus-visible, input:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.wrap {
  width: min(32rem, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.mark { margin: 0; color: var(--primary); font-weight: 600; letter-spacing: 0.02em; }
.icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--fg);
}
h1 { margin: 0; font-size: 1.875rem; line-height: 1.2; font-weight: 600; }
.lead { margin: 0.75rem 0 0; color: var(--muted); }
.lead strong { color: var(--fg); font-weight: 600; }

form { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 2rem; }
label { font-size: 0.875rem; font-weight: 600; }
input {
  height: 3rem;
  border-radius: 0.75rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--fg);
  padding: 0 1rem;
}
input::placeholder { color: var(--muted); }
.primary {
  height: 3rem;
  border: 0;
  border-radius: 0.75rem;
  background: var(--primary);
  color: var(--primary-fg);
  font-weight: 600;
}
.quiet {
  align-self: flex-start;
  border: 0;
  background: none;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  padding: 0;
}
.error {
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--danger);
  font-size: 0.875rem;
}
.card {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: var(--surface);
}
.card-title { margin: 0; font-weight: 600; }
.muted { color: var(--muted); font-size: 0.875rem; }
.card .muted { margin: 0.35rem 0 0; }
.bar { height: 0.375rem; margin-top: 1rem; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.bar > div { height: 100%; width: 0; background: var(--primary); }
#again { width: 100%; margin-top: 1rem; }

.steps { list-style: none; margin: auto 0 0; padding: 2.5rem 0 0; display: flex; flex-direction: column; gap: 1rem; }
.steps li { display: flex; gap: 0.75rem; }
.steps span {
  width: 2rem;
  height: 2rem;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 0.875rem;
  font-weight: 600;
}
.steps b { display: block; font-size: 0.875rem; }
.steps p { margin: 0.15rem 0 0; color: var(--muted); font-size: 0.875rem; }
.note, .foot { color: var(--muted); font-size: 0.875rem; }
.note { margin: 1.5rem 0 0; }
.foot { margin: 0.75rem 0 0; }
.foot a { color: var(--fg); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
