:root {
  --amber: #faa61a;
  --amber-dark: #c77f00;
  --ink: #1d1d1b;
  --muted: #5c5c58;
  --line: #e2ded6;
  --bg: #fbf9f5;
  --card: #ffffff;
  --ok: #2f7d32;
  --bad: #b3261e;
}
* { box-sizing: border-box; }
body { margin: 0; font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--ink); }
header.site { background: var(--amber); padding: 14px 16px; }
header.site .inner, main, footer .inner { max-width: 760px; margin: 0 auto; }
header.site a { text-decoration: none; font-weight: 700; font-size: 1.15rem; }
header.site nav { margin-top: 4px; display: flex; gap: 16px; flex-wrap: wrap; font-size: .95rem; }
header.site nav a { font-weight: 500; font-size: .95rem; }
main { padding: 20px 16px 40px; }
h1 { font-size: 1.7rem; line-height: 1.2; margin: .4em 0 .5em; }
h2 { font-size: 1.25rem; margin-top: 1.8em; }
.hero { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.hero .big { font-size: 2.2rem; font-weight: 800; }
.btn, button { display: inline-block; background: var(--ink); color: #fff; border: 0; border-radius: 8px; padding: 12px 20px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; min-height: 44px; }
.btn.primary, button.primary { background: var(--amber); color: var(--ink); }
.btn.small, button.small { padding: 6px 12px; min-height: 0; font-size: .9rem; }
button.danger { background: var(--bad); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.stat b { display: block; font-size: 1.6rem; }
.stat span { color: var(--muted); font-size: .9rem; }
form.stack label { display: block; margin: 14px 0 4px; font-weight: 600; }
form.stack input[type=text], form.stack input[type=email], form.stack input[type=tel], form.stack input[type=date],
form.stack input[type=number], form.stack input[type=password], form.stack textarea, form.stack select, input.inline {
  width: 100%; padding: 10px 12px; font: inherit; border: 1px solid #bdb8ad; border-radius: 8px; background: #fff; }
form.stack .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 12px 0; }
form.stack .check input { margin-top: 5px; width: 20px; height: 20px; flex: none; }
.hint { color: var(--muted); font-size: .9rem; }
.notice { padding: 12px 14px; border-radius: 8px; margin: 12px 0; background: #eef6ee; border: 1px solid #b9d9bb; }
.notice.error { background: #fbeceb; border-color: #e7b7b3; }
.notice.warn { background: #fff5e0; border-color: #f0d49a; }
table { width: 100%; border-collapse: collapse; background: var(--card); font-size: .95rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .85rem; color: var(--muted); font-weight: 600; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.pill { display: inline-block; padding: 1px 8px; border-radius: 99px; font-size: .8rem; background: #eee; }
.pill.active, .pill.confirmed { background: #dcefdc; }
.pill.lapsed, .pill.drawn { background: #fff0cc; }
.pill.cancelled, .pill.void { background: #f3dcdc; }
.pill.pending { background: #e5e5f5; }
.winner { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); gap: 12px; }
.winner:last-child { border-bottom: 0; }
.hp { position: absolute; left: -9999px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem; word-break: break-all; }
footer { border-top: 1px solid var(--line); padding: 20px 16px; color: var(--muted); font-size: .85rem; }
.admin header.site { background: var(--ink); }
.admin header.site a { color: #fff; }
.admin header.site nav form { display: inline; }
.admin header.site nav button { background: none; padding: 0; min-height: 0; color: #fff; font-weight: 500; font-size: .95rem; text-decoration: underline; }
.admin main, .admin header.site .inner { max-width: 1000px; }
