:root {
  --brand: #485640;
  --ink: #2f3a2a;
  --mute: #58624f;
  --paper: #fbf9f3;
  --line: #ddd2a9;
  --error: #8a2d1c;
  color-scheme: light;
}

* { box-sizing: border-box; }
/* display rules below would otherwise beat the hidden attribute */
[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
}

.panel {
  max-width: 420px;
  margin: 0 auto;
  padding: 32px 16px 48px;
  display: grid;
  gap: 16px;
}

.logo { width: 180px; height: auto; justify-self: center; }
h1 { margin: 0; font-size: 1.5rem; text-align: center; }
.lede { margin: 0; text-align: center; color: var(--mute); }

form { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-weight: 600; }

input {
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}

input:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

.check { grid-template-columns: auto 1fr; align-items: start; font-weight: 400; font-size: .95rem; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; }
.check a { color: var(--brand); }

.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

button, .wallet {
  font: inherit;
  font-weight: 600;
  min-height: 48px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.wallet { display: block; background: #000; }
button:disabled { opacity: .45; cursor: not-allowed; }
button.secondary { background: #fff; color: var(--brand); border: 2px solid var(--brand); }
button.link { background: none; color: var(--mute); text-decoration: underline; min-height: 44px; }

/* Pinned to the bottom of the screen so staff see the result without scrolling. */
#status { position: sticky; bottom: 0; margin: 0; padding: 10px 0; min-height: 1.5em; text-align: center; font-weight: 600; background: var(--paper); }
#status:empty { padding: 0; }

#desk { display: grid; gap: 16px; }
video { width: 100%; border-radius: 12px; background: #000; }

.card { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.card .name { margin: 0; font-size: 1.4rem; font-weight: 700; }
.card .progress { margin: 0; color: var(--mute); }
.card .balance { margin: 0; font-size: 2rem; font-weight: 700; color: var(--brand); }
.card form { padding-top: 12px; border-top: 1px solid var(--line); }
.card h2 { margin: 0; font-size: 1.1rem; }
.hint { margin: 0; color: var(--mute); font-size: .9rem; }
