:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #233c34;
  background: #f5f2eb;
  font-synthesis: none;
  --green: #204e40;
  --muted: #64726a;
  --border: #dce1d8;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; padding: 48px 20px 20px; }
.card {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 36px;
  border: 1px solid var(--border);
  border-top: 4px solid var(--green);
  border-radius: 12px;
  background: #fffefb;
  box-shadow: 0 12px 45px #233c3408;
  text-align: center;
}
.brand-mark { color: #a24635; font: 64px Georgia, serif; height: 58px; }
.eyebrow { color: var(--muted); font-size: .68rem; letter-spacing: .16em; font-weight: 700; }
h1 { margin: 12px 0; font: 400 clamp(2.6rem, 8vw, 3.2rem) Georgia, serif; letter-spacing: -.04em; }
h2 { font: 400 1.65rem Georgia, serif; overflow-wrap: anywhere; }
p { line-height: 1.65; }
.intro { color: var(--muted); margin: 0 0 28px; font-size: .95rem; }
form { text-align: left; }
label { display: block; font-size: .85rem; font-weight: 600; margin: 18px 0 7px; }
input, select, button { font: inherit; border-radius: 6px; min-height: 46px; }
input, select { width: 100%; padding: 11px 12px; border: 1px solid #bec9bf; background: white; color: #233c34; }
input::placeholder { color: #7b837d; font-size: .88rem; }
button { width: 100%; padding: 12px 18px; border: 1px solid var(--green); color: white; background: var(--green); font-weight: 600; cursor: pointer; margin-top: 20px; }
button:hover { background: #16392e; }
button:disabled { opacity: .6; cursor: wait; }
button.secondary { background: transparent; color: var(--green); border-color: var(--border); }
button.secondary:hover { background: #edf2eb; }
:focus-visible { outline: 3px solid #a47737; outline-offset: 3px; }
.fine-print, .footer-note { color: var(--muted); font-size: .78rem; }
.fine-print { line-height: 1.7; }
.footer-note { margin: 28px 0 0; font-style: italic; }
.notice { background: #edf3ec; border: 1px solid #dce7d8; border-radius: 8px; padding: 14px 20px; margin: 22px 0; }
.notice h2 { margin-top: 6px; }
.notice p { font-size: .9rem; }
.error { background: #fff0ec; color: #8d3023; border-color: #edd2ca; text-align: left; }
.countdown-block { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border); }
.countdown { font-size: clamp(1.3rem, 5vw, 1.7rem); font-variant-numeric: tabular-nums; letter-spacing: .04em; margin: 8px 0; }
.result { margin-top: 24px; padding: 18px; border: 1px dashed #aa834b; border-radius: 8px; }
.result h2 { color: #a24635; font-size: 2rem; margin: 8px 0; }
details { border-top: 1px solid var(--border); margin-top: 24px; padding-top: 20px; text-align: left; font-size: .85rem; }
summary { cursor: pointer; color: var(--muted); }
footer { text-align: center; padding: 24px; font-size: .75rem; }
a { color: var(--muted); text-underline-offset: 3px; }
.admin-card { max-width: 940px; text-align: left; }
.admin-heading { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.admin-heading h1 { font-size: 2.4rem; }
.admin-heading button { width: auto; margin: 0; }
.admin-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; margin-bottom: 32px; }
.admin-layout .notice { margin-top: 0; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .85rem; }
th, td { padding: 14px 10px; text-align: left; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
th { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.badge { color: #436747; font-weight: 600; }
@media (max-width: 600px) {
  body { padding: 20px 12px 12px; }
  .card { padding: 28px 22px; }
  .admin-layout { grid-template-columns: 1fr; gap: 12px; }
  .admin-heading { align-items: start; }
}
