:root {
  --pine: #173f35;
  --pine-deep: #0c2b25;
  --moss: #59734c;
  --ember: #dc6b32;
  --sun: #efb95d;
  --canvas: #f4eddf;
  --paper: #fffaf0;
  --ink: #1e2d29;
  --muted: #6d746c;
  --line: #d8cbb7;
  --shadow: 0 16px 40px rgb(21 48 40 / 12%);
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--canvas); font: 16px/1.55 ui-rounded, "Avenir Next", system-ui, sans-serif; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .22; background-image: radial-gradient(#6d746c 0.55px, transparent 0.55px); background-size: 7px 7px; }
a { color: inherit; }
.site-header { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 clamp(20px, 5vw, 72px); color: #fff; background: var(--pine-deep); }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; letter-spacing: .02em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; color: var(--sun); border: 1px solid #ffffff55; border-radius: 50%; }
nav { display: flex; gap: 22px; } nav a { color: #e7eee7; font-size: .9rem; text-decoration: none; }
main { position: relative; width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 42px 0 80px; }
footer { padding: 28px 20px; text-align: center; color: #cddbd4; background: var(--pine-deep); font-size: .85rem; }
.hero { position: relative; overflow: hidden; min-height: 300px; display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; padding: clamp(28px, 6vw, 70px); color: #fff; background: var(--pine); border-radius: 28px; box-shadow: var(--shadow); }
.hero::after { content: ""; position: absolute; inset: auto -5% 0; height: 38%; background: #245345; clip-path: polygon(0 52%, 10% 23%, 21% 57%, 36% 12%, 49% 57%, 67% 8%, 82% 52%, 92% 27%, 100% 55%, 100% 100%, 0 100%); }
.hero > div { position: relative; z-index: 1; }
h1, h2 { margin: 0 0 .45em; line-height: 1.08; font-family: Georgia, "Times New Roman", serif; }
h1 { font-size: clamp(2.4rem, 7vw, 5.3rem); letter-spacing: -.04em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); }
.hero p:not(.eyebrow) { max-width: 570px; color: #dce9e0; font-size: 1.05rem; }
.eyebrow { margin: 0 0 9px; color: var(--ember); font-size: .72rem; font-weight: 850; letter-spacing: .17em; text-transform: uppercase; }
.hero .eyebrow { color: var(--sun); }
.camp-scene { position: relative; z-index: 1; height: 200px; }
.moon { position: absolute; width: 66px; height: 66px; right: 12%; top: 5%; background: var(--sun); border-radius: 50%; box-shadow: 0 0 40px #efb95d55; }
.tent { position: absolute; width: 190px; height: 118px; left: 15%; bottom: 12px; background: var(--ember); clip-path: polygon(50% 0, 100% 100%, 0 100%); filter: drop-shadow(0 13px 10px #0c2b2566); }
.tent::after { content: ""; position: absolute; width: 38%; height: 70%; left: 50%; bottom: 0; background: #7f3821; clip-path: polygon(0 0, 100% 100%, 0 100%); }
.fire { position: absolute; right: 6%; bottom: 4px; color: var(--sun); font-size: 55px; text-shadow: 0 0 18px var(--ember); }
.status-strip { display: flex; align-items: center; gap: 12px; padding: 20px 12px 8px; color: var(--muted); font-size: .88rem; }
.status-strip strong { color: var(--ink); margin-right: auto; }
.status-dot { width: 11px; height: 11px; border-radius: 50%; background: #9c9c8f; box-shadow: 0 0 0 5px #9c9c8f22; }
.status-dot.live { background: #42a261; box-shadow: 0 0 0 5px #42a26122; }
.dashboard-grid, .admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 16px; }
.panel { position: relative; padding: clamp(22px, 4vw, 34px); background: color-mix(in srgb, var(--paper) 94%, transparent); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.wide { grid-column: 1 / -1; }
.panel-heading, .admin-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.badge, .id-tag { display: inline-flex; align-items: center; padding: 5px 10px; color: var(--pine); background: #dce8dc; border-radius: 999px; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.scoreboard ol { padding: 0; margin: 20px 0 0; list-style: none; }
.scoreboard li { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 10px; padding: 13px 4px; border-top: 1px dashed var(--line); }
.scoreboard li:first-child:not(.empty) { color: var(--pine); font-size: 1.15rem; }
.scoreboard li.empty { display: block; }
.rank { display: grid; place-items: center; width: 28px; height: 28px; color: #fff; background: var(--moss); border-radius: 50%; font-size: .75rem; font-weight: 800; }
.points { color: var(--ember); font-family: Georgia, serif; font-weight: 800; }
.locations { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.location { display: flex; align-items: center; gap: 12px; padding: 14px; background: #eee7d7; border-radius: 12px; }
.location small { display: block; color: var(--muted); }
.map-pin, .giant-pin { color: var(--ember); }
.events p { display: grid; grid-template-columns: 28px max-content 1fr auto; gap: 8px; padding: 13px 0; margin: 0; border-top: 1px dashed var(--line); }
.events p.empty { display: block; }
.event-icon { color: var(--moss); font-size: 1.3rem; }
.events b { color: var(--ember); }
.empty { color: var(--muted); font-style: italic; }
.center-card { width: min(600px, 100%); margin: 5vh auto 12vh; text-align: center; }
.center-card h1 { font-size: clamp(2.2rem, 7vw, 4.2rem); }
.center-card form { text-align: left; }
.capture-card { padding-top: 52px; }
.giant-pin { display: block; font-size: 4rem; line-height: 1; }
.stack { display: grid; gap: 18px; margin-top: 28px; }
label { display: grid; gap: 6px; color: var(--muted); font-size: .8rem; font-weight: 750; letter-spacing: .04em; }
input { width: 100%; min-height: 44px; padding: 9px 12px; color: var(--ink); background: #fffdf8; border: 1px solid var(--line); border-radius: 9px; font: inherit; }
button, .button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; padding: 10px 17px; color: #fff; background: var(--pine); border: 1px solid var(--pine); border-radius: 9px; font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; }
button:hover, .button:hover { background: var(--pine-deep); }
button:disabled { cursor: not-allowed; opacity: .48; }
.secondary { color: var(--pine); background: transparent; }
.danger { background: #943f30; border-color: #943f30; }
.danger.ghost { color: #943f30; background: transparent; }
.alert { padding: 12px 16px; color: #6e291e; background: #f5d7cd; border-radius: 10px; }
.admin-heading { align-items: center; margin-bottom: 24px; }
.admin-heading h1 { font-size: clamp(2.2rem, 5vw, 4.5rem); }
.button-row, .inline-grow { display: flex; gap: 10px; align-items: center; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.rule-summary { grid-column: 1 / -1; margin: 4px 0; padding: 10px; color: var(--pine); background: #dce8dc; border-radius: 8px; text-align: center; font-weight: 800; }
.admin-list { margin-top: 18px; }
.admin-row { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px dashed var(--line); }
.admin-row .inline-grow { flex: 1; }
.admin-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.print-warning { margin: 18px 0 0; padding: 12px 16px; color: #6e4b15; background: #f9ebc9; border-left: 4px solid var(--sun); border-radius: 10px; }

@media (max-width: 760px) {
  .site-header { padding: 12px 18px; } nav a:first-child { display: none; }
  main { width: min(100% - 20px, 620px); padding-top: 16px; }
  .hero { grid-template-columns: 1fr; min-height: 420px; padding: 32px 24px; }
  .camp-scene { height: 130px; }
  .tent { width: 150px; height: 95px; }
  .dashboard-grid, .admin-grid { grid-template-columns: 1fr; }
  .wide { grid-column: auto; }
  .locations, .form-grid { grid-template-columns: 1fr; }
  .events p { grid-template-columns: 24px 1fr auto; } .events p strong { grid-column: 2; } .events p b { grid-column: 3; grid-row: 1 / span 2; }
  .admin-heading, .panel-heading, .admin-row { align-items: stretch; flex-direction: column; }
  .inline-grow, .button-row, .admin-actions { flex-wrap: wrap; }
  .status-strip span:last-child { display: none; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }

@media print {
  .site-header, footer { display: none; }
  body { background: #fff; }
  main { width: 100%; padding: 0; }
  .panel { box-shadow: none; }
}
