﻿:root {
  --forest: #254d2c;
  --forest-2: #37683f;
  --moss: #6f8f4d;
  --wood: #9b642f;
  --ochre: #d5ad62;
  --sand: #f4ead4;
  --paper: #fffdf8;
  --ink: #26231f;
  --muted: #6d675e;
  --line: #d8cdb9;
  --danger: #a53a32;
  --warning: #a76816;
  --shadow: 0 10px 30px rgba(54, 43, 28, .10);
  --radius: 17px;
}
* { box-sizing: border-box; }
html { background: #eee4d1; }
body { margin: 0; color: var(--ink); font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: linear-gradient(180deg,#f4ead4 0,#f8f4eb 230px,#f7f4ee 100%); min-height: 100vh; }
a { color: var(--forest); }
button,input,select { font: inherit; }
button { cursor: pointer; }
.site-header { position: sticky; top: 0; z-index: 30; min-height: 70px; padding: 10px max(16px,calc((100vw - 1180px)/2)); display: flex; align-items: center; justify-content: space-between; background: rgba(37,77,44,.97); color: white; box-shadow: 0 4px 18px rgba(0,0,0,.18); }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: white; }
.brand img { width: 49px; height: 49px; object-fit: cover; border-radius: 13px; border: 2px solid rgba(255,255,255,.65); }
.brand span { display:flex; flex-direction:column; }
.brand strong { font-size: 1.06rem; letter-spacing:.01em; }
.brand small { opacity:.8; }
.main-nav { display:flex; align-items:center; gap:6px; }
.main-nav a,.link-button { color:white; text-decoration:none; background:transparent; border:0; padding:10px 12px; border-radius:10px; }
.main-nav a:hover,.main-nav a.active,.link-button:hover { background:rgba(255,255,255,.14); }
.main-nav form { margin:0; }
.nav-toggle { display:none; color:white; background:transparent; border:1px solid rgba(255,255,255,.4); border-radius:10px; padding:8px 11px; font-size:1.15rem; }
.page-shell { width:min(1180px,calc(100% - 28px)); margin:0 auto; padding:30px 0 55px; }
.site-footer { text-align:center; color:var(--muted); padding:25px; font-size:.86rem; }
.flash,.live-notice { width:min(1180px,calc(100% - 28px)); margin:14px auto 0; padding:13px 16px; border-radius:12px; box-shadow:var(--shadow); }
.flash-success { background:#e4f2e4; color:#214d27; border:1px solid #b6d7b9; }
.flash-error { background:#f8e1df; color:#7d2822; border:1px solid #e6b2ad; }
.flash-warning,.live-notice { background:#fff0cf; color:#71480e; border:1px solid #e9c987; }
.live-notice button { margin-left:10px; border:0; border-radius:8px; padding:6px 10px; background:var(--warning); color:white; }
.card { background:rgba(255,253,248,.96); border:1px solid var(--line); border-radius:var(--radius); padding:22px; box-shadow:var(--shadow); }
.card h2:first-child,.card h1:first-child { margin-top:0; }
.narrow { width:min(620px,100%); margin:28px auto; }
.page-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:20px; margin-bottom:22px; }
.page-heading h1 { margin:.1rem 0 .35rem; font-family: Georgia,serif; font-size:clamp(2rem,4vw,3rem); color:#273f29; }
.page-heading p { margin:.25rem 0; color:var(--muted); }
.eyebrow { text-transform:uppercase; letter-spacing:.14em; font-size:.78rem; font-weight:800; color:var(--wood)!important; }
.muted { color:var(--muted); }
.optional { font-size:.8em; color:var(--muted); font-weight:400; }
.back-link { display:inline-block; margin-top:18px; }
.button { display:inline-flex; align-items:center; justify-content:center; gap:7px; border:1px solid var(--forest); border-radius:11px; padding:10px 15px; color:var(--forest); background:white; font-weight:700; text-decoration:none; line-height:1.1; }
.button:hover { transform:translateY(-1px); box-shadow:0 4px 12px rgba(0,0,0,.08); }
.button.primary { background:var(--forest); color:white; }
.button.warning { background:#f0d08e; color:#603b08; border-color:#c38a2f; }
.button.danger { background:var(--danger); color:white; border-color:var(--danger); }
.button.danger.ghost { background:white; color:var(--danger); }
.button.small { padding:8px 11px; font-size:.88rem; }
.button:disabled { opacity:.45; cursor:not-allowed; transform:none; }
.button-row { display:flex; align-items:center; gap:9px; margin-top:12px; }
.button-row.wrap { flex-wrap:wrap; }
.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:15px; }
.form-grid.one { grid-template-columns:1fr; }
.form-grid h2,.form-grid .full-width,.form-grid button[type=submit] { grid-column:1/-1; }
label { display:flex; flex-direction:column; gap:6px; font-weight:700; font-size:.92rem; }
label small { color:var(--muted); font-weight:400; line-height:1.35; }
input,select { width:100%; min-height:44px; border:1px solid #cbbda8; border-radius:10px; padding:9px 11px; color:var(--ink); background:white; }
input:focus,select:focus { outline:3px solid rgba(111,143,77,.25); border-color:var(--moss); }
input:disabled { background:#eeeae2; color:#706b62; }
fieldset { border:1px solid var(--line); border-radius:12px; padding:11px 13px 13px; margin:0; }
legend { padding:0 7px; font-weight:800; color:#4c4437; }
.choice-row { display:flex; flex-wrap:wrap; gap:9px; }
.choice { display:block; cursor:pointer; }
.choice input { position:absolute; opacity:0; pointer-events:none; }
.choice span { display:block; border:1px solid #c5b89f; border-radius:10px; padding:9px 14px; background:white; font-weight:700; }
.choice input:checked + span { background:var(--forest); color:white; border-color:var(--forest); box-shadow:0 0 0 3px rgba(37,77,44,.14); }
.callout { border:1px solid #b9d1b6; background:#e9f3e7; color:#284a2c; padding:14px 16px; border-radius:12px; margin-bottom:18px; }
.callout.warning { border-color:#e4c580; background:#fff0cf; color:#6a430d; }
.callout.danger { border-color:#e1aba6; background:#f9e2df; color:#792c26; }
.auth-layout { min-height:calc(100vh - 170px); display:grid; grid-template-columns:1.15fr .85fr; gap:24px; align-items:stretch; }
.auth-visual { position:relative; overflow:hidden; border-radius:22px; min-height:520px; box-shadow:var(--shadow); background:#2e4e2d; }
.auth-visual img { width:100%; height:100%; object-fit:cover; filter:saturate(.9) contrast(1.02); }
.auth-visual:after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,transparent 35%,rgba(20,34,21,.88)); }
.auth-visual div { position:absolute; z-index:2; left:28px; right:28px; bottom:25px; color:white; }
.auth-visual h1 { font-family:Georgia,serif; font-size:3rem; margin:0; }
.auth-card { align-self:center; }
.auth-card h2 { font-family:Georgia,serif; font-size:2rem; }
.auth-card label { margin:14px 0; }
.auth-card .button { width:100%; margin-top:5px; }
.auth-links { display:flex; justify-content:space-between; gap:12px; margin-top:18px; font-size:.9rem; }
.battue-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:17px; }
.battue-card { display:block; text-decoration:none; color:inherit; background:var(--paper); border:1px solid var(--line); border-left:6px solid var(--forest); border-radius:16px; padding:18px; box-shadow:var(--shadow); transition:.15s ease; }
.battue-card:hover { transform:translateY(-3px); box-shadow:0 14px 35px rgba(54,43,28,.14); }
.battue-card.closed { border-left-color:#7b7265; }
.battue-card.cancelled { border-left-color:var(--danger); opacity:.78; }
.date-block { display:flex; justify-content:space-between; align-items:center; gap:10px; }
.date-block strong { font-family:Georgia,serif; font-size:1.45rem; }
.status-pill,.badge { display:inline-flex; align-items:center; border-radius:999px; padding:5px 9px; font-size:.75rem; font-weight:800; }
.status-pill.open { background:#deefdd; color:#29542d; }
.status-pill.closed { background:#f4d9d6; color:#812f28; }
.status-pill.cancelled { background:#f4d9d6; color:#812f28; }
.badge.warning { background:#fff0cf; color:#74490d; }
.stats-row { display:flex; flex-wrap:wrap; gap:9px 16px; margin:17px 0; color:#5b554c; }
.battue-totals { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.battue-totals span { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:9px 11px; border:1px solid #ded3c1; border-radius:10px; background:#f7f2e8; }
.battue-totals small { font-size:.78rem; font-weight:700; color:#6b6255; }
.battue-totals b { font-size:1.25rem; color:#244d2c; }
.card-footer { display:flex; justify-content:space-between; gap:12px; padding-top:13px; border-top:1px solid #e8dfd0; font-size:.9rem; }
.registration-summary { align-items:center; margin-top:4px; padding:13px 14px; border-top:0; border-radius:12px; background:#e4f1df; border:1px solid #a8c99f; box-shadow:inset 0 0 0 1px rgba(255,255,255,.45); }
.registration-summary.not-registered { background:#f2eee6; border-color:#d7cbb7; }
.registration-summary-text { display:flex; align-items:center; gap:9px; min-width:0; font-size:1.05rem; font-weight:700; color:#23452a; }
.registration-summary.not-registered .registration-summary-text { color:#6a624f; }
.registration-summary-text > strong { font-size:1.12rem; font-weight:900; }
.registration-summary-text span strong { font-size:1.18rem; color:#1f5a2b; }
.registration-summary-separator { color:#79906c; font-weight:900; }
.registration-open { white-space:nowrap; font-size:1rem; color:#173f20; }
.count-panels { display:flex; gap:9px; }
.count-panels span { min-width:92px; text-align:center; background:var(--paper); border:1px solid var(--line); border-radius:13px; padding:10px; box-shadow:var(--shadow); }
.count-panels b { display:block; font-size:1.5rem; color:var(--forest); }
.count-panels small { color:var(--muted); }
.two-columns { display:grid; grid-template-columns:1fr 1fr; gap:18px; align-items:start; }
.registration-columns { margin-bottom:18px; }
.weapon-fields { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; padding:12px; background:#f7f1e6; border-radius:12px; }
.suggestions { position:relative; z-index:10; border:1px solid #cbbda8; border-radius:11px; background:white; max-height:260px; overflow:auto; box-shadow:var(--shadow); }
.suggestion-button { display:flex; justify-content:space-between; gap:15px; width:100%; border:0; border-bottom:1px solid #eee4d5; background:white; padding:10px 12px; text-align:left; }
.suggestion-button:hover { background:#eef5e9; }
.suggestion-button small { color:var(--muted); }
.section-title { display:flex; justify-content:space-between; align-items:flex-start; gap:14px; }
.section-title h2 { margin:0 0 4px; }
.section-title p { margin:0; color:var(--muted); }
.live-dot { color:#397d42; font-weight:800; font-size:.85rem; }
.attendee-section { margin-top:18px; }
.attendee-list { display:grid; gap:10px; margin-top:16px; }
.attendee { border:1px solid #ddd1bd; border-left:5px solid var(--forest); border-radius:12px; background:white; padding:12px 14px; }
.attendee.no-weapon { border-left-color:var(--wood); }
.attendee-summary { display:flex; justify-content:space-between; align-items:center; gap:14px; }
.attendee-summary strong { display:block; }
.attendee-summary div:first-child span { display:block; color:var(--muted); font-size:.83rem; margin-top:3px; }
.attendee-tags { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:6px; }
.attendee-tags span { background:#f0ece4; border-radius:999px; padding:5px 8px; font-size:.78rem; }
details { margin-top:11px; border-top:1px dashed #ddd0bc; padding-top:9px; }
summary { cursor:pointer; color:var(--forest); font-weight:800; }
.inline-edit { display:flex; flex-wrap:wrap; gap:9px; margin-top:10px; }
.inline-edit select { width:auto; }
.guest-edit { margin-top:12px; }
.admin-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.admin-card { color:inherit; text-decoration:none; background:var(--paper); border:1px solid var(--line); border-radius:var(--radius); padding:23px; box-shadow:var(--shadow); }
.admin-card:hover { transform:translateY(-2px); }
.admin-card h2 { margin:9px 0 5px; }
.admin-card p { color:var(--muted); }
.admin-icon { font-size:2rem; }
.stack { display:grid; gap:15px; margin-top:18px; }
.compact-form { display:flex; flex-wrap:wrap; align-items:end; gap:12px; }
.compact-form label { flex:1 1 230px; }
.admin-actions-grid { display:grid; gap:8px; margin-top:14px; }
.hunter-card.inactive,.guest-card.inactive { opacity:.62; }
.activation-code { display:flex; justify-content:space-between; align-items:center; gap:12px; background:#fff1d4; border:1px solid #e7c882; border-radius:11px; padding:10px 13px; margin:12px 0; }
.activation-code strong { font-family:ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing:.1em; }
code { background:#eee9df; padding:2px 6px; border-radius:6px; }
.table-scroll { overflow:auto; }
table { width:100%; border-collapse:collapse; min-width:690px; }
th,td { padding:10px; border-bottom:1px solid #e2d7c5; text-align:left; }
th { background:#f2ecdf; color:#51493e; }
.empty { color:var(--muted); text-align:center; padding:25px; }
@media (max-width: 820px) {
  .nav-toggle { display:block; }
  .main-nav { display:none; position:absolute; top:66px; right:12px; left:12px; flex-direction:column; align-items:stretch; background:#254d2c; border-radius:13px; padding:8px; box-shadow:var(--shadow); }
  .main-nav.open { display:flex; }
  .main-nav a,.link-button { width:100%; text-align:left; }
  .auth-layout,.two-columns,.admin-grid { grid-template-columns:1fr; }
  .auth-visual { min-height:280px; }
  .auth-visual h1 { font-size:2.3rem; }
  .page-heading { flex-direction:column; }
  .count-panels { width:100%; }
  .count-panels span { flex:1; min-width:0; }
  .attendee-summary { align-items:flex-start; flex-direction:column; }
  .attendee-tags { justify-content:flex-start; }
  .registration-summary { gap:8px; }
  .registration-summary-text { font-size:.96rem; gap:7px; }
  .registration-summary-text > strong { font-size:1.02rem; }
  .registration-open { font-size:.92rem; }
}
@media (max-width: 560px) {
  .page-shell { width:min(100% - 18px,1180px); padding-top:18px; }
  .brand small { display:none; }
  .brand img { width:43px; height:43px; }
  .form-grid { grid-template-columns:1fr; }
  .weapon-fields { grid-template-columns:1fr; }
  .battue-grid { grid-template-columns:1fr; }
  .date-block { align-items:flex-start; flex-direction:column; }
  .auth-links { flex-direction:column; }
  .count-panels small { font-size:.67rem; }
  .card { padding:17px; }
  .registration-summary { padding:12px; }
  .registration-summary-text { flex-wrap:wrap; row-gap:2px; }
}

.danger-zone { margin-top:18px; border-color:#e1aba6; background:#fffafa; }
.danger-zone h2 { color:var(--danger); }

