* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 20px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: #111; background: #f4f6f4; }

header { background: #0b6b3a; color: #fff; text-align: center; padding: 12px 16px; }
header p { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .9; }
header h1 { margin: 2px 0 0; font-size: 26px; line-height: 1.2; }

main { max-width: 560px; margin: 0 auto; padding: 16px 16px 8px; }
.lead { font-size: 22px; font-weight: 800; line-height: 1.3; margin: 0 0 16px; }
.center { text-align: center; }

/* Form */
.field { margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.lbl, legend { display: block; padding: 0; font-weight: 800; margin-bottom: 8px; }
input[type=text], input[type=email], input[type=password] { width: 100%; font: inherit; font-size: 22px; padding: 12px 14px; border: 3px solid #555; border-radius: 12px; background: #fff; color: #111; }
input:focus { outline: 4px solid #f5b400; outline-offset: 2px; }

.choices { display: grid; gap: 12px; }
.choices.two { grid-template-columns: 1fr 1fr; }
.choice { display: block; position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: block; padding: 15px 14px; border: 3px solid #555; border-radius: 12px; background: #fff; font-weight: 800; text-align: center; }
.choice input:checked + span { background: #0b6b3a; border-color: #0b6b3a; color: #fff; }
.choice input:checked + span::before { content: "✓ "; }
.choice input:focus + span { outline: 4px solid #f5b400; outline-offset: 2px; }

.consent { display: flex; gap: 14px; align-items: flex-start; font-size: 18px; cursor: pointer; }
.consent input { flex: none; width: 32px; height: 32px; margin: 0; accent-color: #0b6b3a; }

.btn { display: block; width: 100%; padding: 20px; font: inherit; font-size: 24px; font-weight: 800; border: 0; border-radius: 14px; background: #0b6b3a; color: #fff; text-align: center; text-decoration: none; cursor: pointer; }
.btn.secondary { background: #fff; color: #0b6b3a; border: 3px solid #0b6b3a; font-size: 20px; padding: 16px; }
.back { text-align: center; margin: 20px 0 0; }
.back a { color: #0b6b3a; font-weight: 700; }

.alert { background: #fde8ea; border: 3px solid #b00020; color: #b00020; padding: 14px; border-radius: 12px; font-weight: 800; margin: 0 0 20px; }
.error { color: #b00020; font-weight: 700; font-size: 18px; margin: 8px 0 0; }
.has-error input[type=text], .has-error input[type=email], .has-error .choice span { border-color: #b00020; }

/* Number screen */
.ticket { background: #fff; border: 4px solid #0b6b3a; border-radius: 18px; text-align: center; padding: 20px 16px; margin: 0 0 16px; }
.nr { font-size: 112px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.who { font-size: 24px; font-weight: 700; margin-top: 8px; overflow-wrap: anywhere; }
.pill { display: inline-block; margin-top: 12px; padding: 8px 24px; border-radius: 999px; background: #f59e0b; color: #111; font-size: 22px; font-weight: 800; }
.hint { font-size: 22px; font-weight: 800; text-align: center; margin: 20px 0; }

/* Sponsor footer: small and quiet on purpose */
footer { max-width: 560px; margin: 32px auto 0; padding: 16px; border-top: 1px solid #ccc; }
footer a { display: flex; align-items: center; gap: 12px; color: #555; font-size: 15px; text-decoration: none; }
footer img { flex: none; }

/* Staff page */
.admin main { max-width: 1100px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 16px; }
.toolbar input { flex: 1; min-width: 200px; }
.toolbar .btn { width: auto; font-size: 18px; padding: 14px 20px; }
.totals { font-weight: 700; margin: 0 0 16px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; font-size: 16px; }
th, td { padding: 8px 10px; border-bottom: 1px solid #ddd; text-align: left; white-space: nowrap; }
th { background: #e8efe9; }
td.num { font-weight: 800; font-variant-numeric: tabular-nums; }
