:root {
  color-scheme: light;
  --canvas: #f3f5ef;
  --surface: #fdfef9;
  --surface-soft: #f1f3eb;
  --ink: #17241d;
  --muted: #59665c;
  --quiet: #6a766b;
  --line: #dde4d8;
  --line-strong: #cad5c7;
  --forest: #132820;
  --forest-dark: #10251c;
  --olive: #475f4a;
  --acid: #d3f66d;
  --acid-hover: #c6ea54;
  --orange: #e48d5a;
  --danger: #963d32;
  --danger-bg: #f9ebe5;
  --radius: 20px;
  --font: Inter, "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  min-width: 290px;
  min-height: 100vh;
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #617947; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
p { line-height: 1.55; }
svg { flex-shrink: 0; }
img { max-width: 100%; }

.site-header {
  min-height: 76px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.site-header-inner, .header-inner, .site-header > .container, .site-header > .site-wrap {
  width: min(100% - 72px, 1232px);
  min-height: 76px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark, .brand-icon, .logo-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 12px;
  background: var(--forest);
  color: var(--acid);
}
.brand-mark svg, .brand-icon svg, .logo-mark svg { width: 24px; height: 24px; }
.brand-text { display: grid; gap: 1px; }
.brand-name, .brand-wordmark {
  font-size: 19px;
  font-weight: 850;
  line-height: 1.1;
  letter-spacing: -.055em;
}
.brand-note, .brand-subtitle {
  color: var(--quiet);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.header-meta, .header-status {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 620;
}
.header-meta a { text-decoration: none; }
.header-meta a:hover { color: var(--ink); }
.status-dot, .online-dot {
  display: inline-block;
  align-self: center;
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #72975c;
  box-shadow: 0 0 0 3px rgba(114,151,92,.16);
}
.site-main, .site-footer {
  width: min(100% - 72px, 1232px);
  margin-inline: auto;
}
.site-main { padding: 38px 0 25px; }
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-block: 17px 26px;
  color: var(--quiet);
  font-size: 12px;
}
.site-footer a { text-decoration: none; }

.eyebrow, .hero-kicker, .section-kicker {
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--olive);
}
.eyebrow, .hero-kicker { display: inline-flex; align-items: center; gap: 8px; }
.panel, .card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.panel-heading, .card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.panel-title, .card-title { font-size: 21px; font-weight: 770; letter-spacing: -.045em; line-height: 1.15; }
.panel-description, .card-description, .helper-text, .field-hint, .muted {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.panel-heading + .panel-body, .card-heading + .card-body { margin-top: 17px; }
.stack { display: grid; gap: 14px; }
.row, .button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.button, .btn {
  min-height: 41px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--forest);
  color: white;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s;
}
.button:hover, .btn:hover { background: #234032; }
.button:focus-visible, .btn:focus-visible { outline-offset: 3px; }
.button-primary, .btn-primary, .primary-button {
  background: var(--acid);
  color: #1a2a19;
  border-color: #c4e65d;
  box-shadow: 0 1px 1px rgba(30,53,24,.08);
}
.button-primary:hover, .btn-primary:hover, .primary-button:hover { background: var(--acid-hover); }
.button-secondary, .btn-secondary, .secondary-button {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
}
.button-secondary:hover, .btn-secondary:hover, .secondary-button:hover { background: var(--surface-soft); border-color: #aabaab; }
.button-quiet, .btn-quiet, .ghost-button {
  background: transparent;
  color: var(--olive);
  border-color: transparent;
}
.button-quiet:hover, .btn-quiet:hover, .ghost-button:hover { background: var(--surface-soft); }
.button-danger { color: var(--danger); background: var(--danger-bg); border-color: #f2d9cc; }
.button-danger:hover { background: #f2e0d8; }
.button[disabled], .btn[disabled], button:disabled {
  cursor: not-allowed;
  opacity: .53;
}
.button svg, .btn svg { width: 17px; height: 17px; }
.button-icon, .icon-button { min-width: 42px; padding-inline: 8px; }
.button-wide, .button-block, .btn-block { width: 100%; }

.field, label.field, .form-field {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 6px;
  color: var(--ink);
  font-weight: 690;
  font-size: 13px;
}
.field > span, .field label, .field-label { font-weight: 730; }
input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  min-height: 43px;
  padding: 9px 11px;
  outline: 0;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
}
input:not([type=checkbox]):not([type=radio]):not([type=range]):focus, select:focus, textarea:focus {
  border-color: #769264;
  box-shadow: 0 0 0 3px rgba(125,155,104,.14);
}
input::placeholder, textarea::placeholder { color: #748075; }
input[type=checkbox], input[type=radio], input[type=range] { accent-color: #426b38; }
select { padding-right: 21px; }
fieldset { min-width: 0; margin: 0; border: 0; padding: 0; }
legend { margin-bottom: 7px; padding: 0; font-size: 14px; font-weight: 750; }
.badge, .pill, .tag, .map-status {
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 20px;
  background: #edf2e8;
  color: #49624b;
  font-size: 11px;
  font-weight: 730;
  line-height: 1.2;
  white-space: nowrap;
}
.badge-live, .pill-live { background: #e9f4d0; color: #506234; }
.badge-seeker { background: #f9eee2; color: #7e5334; }
.badge-hider { background: #e5eee3; color: #3d664a; }

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.77fr) minmax(312px, 1fr);
  align-items: stretch;
  gap: 22px;
}
.hero {
  position: relative;
  isolation: isolate;
  min-height: 601px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border: 1px solid #264538;
  border-radius: 25px;
  background: #11251c;
  box-shadow: 0 16px 38px rgba(27,52,36,.12);
  color: #f9fcf2;
}
.hero-map {
  position: absolute;
  z-index: -2;
  inset: 0;
  overflow: hidden;
  background: #142a21 url("/field-map.svg") center / cover no-repeat;
}
.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(14,32,24,.94) 0%, rgba(15,35,27,.82) 23%, rgba(16,35,27,.20) 69%, rgba(15,35,27,0) 100%),
    linear-gradient(0deg, #10241b 2%, rgba(15,34,26,.01) 27%, transparent 78%, rgba(15,34,26,.18) 100%);
  pointer-events: none;
  content: "";
}
.hero-copy {
  max-width: 620px;
  width: 100%;
  padding: clamp(42px, 5vw, 72px) 25px 28px clamp(36px, 4.65vw, 65px);
}
.hero-kicker { color: #d7ed9f; }
.hero-kicker svg { width: 15px; height: 15px; }
.hero-copy h1 {
  margin-top: 21px;
  max-width: 620px;
  font-size: clamp(3.0rem, 5.85vw, 5.7rem);
  font-weight: 850;
  letter-spacing: -.083em;
  line-height: .96;
  text-wrap: balance;
}
.hero-copy h1 em, .hero-copy h1 strong, .hero-copy h1 .accent {
  color: var(--acid);
  font-style: normal;
  font-weight: inherit;
}
.hero-description {
  max-width: 390px;
  margin-top: 22px;
  color: #d3decf;
  font-size: clamp(.92rem, 1.2vw, 1.05rem);
  line-height: 1.62;
}
.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 23px;
}
.hero-features > span, .hero-features > li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 31px;
  padding: 5px 10px;
  border: 1px solid rgba(187,218,175,.22);
  border-radius: 40px;
  background: rgba(31,59,45,.76);
  color: #e2edda;
  font-size: 11px;
  font-weight: 680;
  white-space: nowrap;
}
.hero-features svg { width: 13px; height: 13px; color: var(--acid); }
.hero-bottom {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 28px 0;
  padding: 15px 6px;
  border-top: 1px solid rgba(186,216,175,.18);
  color: #c0d0bb;
  font-size: 11px;
  font-weight: 690;
}
.hero-location { display: flex; align-items: center; gap: 8px; }
.hero-location svg { width: 15px; height: 15px; color: #caec83; }
.hero-coords { color: #9ab19a; font-family: var(--mono); white-space: nowrap; }
.hero-map .map-target { position: absolute; z-index: 1; }
.hero-map .target-one { inset: 45% auto auto 75%; }
.hero-map .target-two { inset: 70% auto auto 61%; }
.hero-map .map-target-label, .hero-map .target-label {
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translate(11px,-50%);
  color: #d3e6c6;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .03em;
  white-space: nowrap;
}
.hero-map .map-target-dot, .hero-map .target-dot {
  width: 10px;
  height: 10px;
  display: block;
  border: 2px solid #365240;
  border-radius: 100%;
  background: var(--acid);
  box-shadow: 0 0 0 6px rgba(211,246,109,.18);
}
.hero-map .target-two .map-target-dot, .hero-map .target-two .target-dot {
  background: #e1a378;
  box-shadow: 0 0 0 6px rgba(237,159,115,.16);
}
.home-sidebar { display: grid; align-content: stretch; grid-template-rows: auto auto; gap: 17px; }
.home-sidebar > .panel {
  position: relative;
  min-width: 0;
  padding: 25px 27px 26px;
  box-shadow: 0 5px 16px rgba(47,65,41,.035);
}
.home-sidebar h2 {
  margin-top: 13px;
  font-size: clamp(1.35rem, 2.15vw, 1.87rem);
  line-height: 1.06;
  font-weight: 815;
  letter-spacing: -.053em;
}
.home-sidebar p { margin-top: 7px; color: var(--muted); font-size: 13px; }
.home-sidebar form { display: grid; gap: 11px; margin-top: 19px; }
.home-sidebar form .field { font-size: 12px; }
.home-sidebar form .btn, .home-sidebar form .button { min-height: 44px; width: 100%; }
.home-sidebar form .field > input { min-height: 39px; }
.card-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #38503b;
  background: #eef4e2;
}
.card-icon svg { width: 21px; height: 21px; }
.create-card .card-icon { color: #34422a; background: #e8f4c8; }
.join-card .card-icon { color: #48604a; background: #edf2e8; }
.btn-outline {
  border-color: #b6c4b2;
  background: var(--surface);
  color: var(--ink);
  box-shadow: none;
}
.btn-outline:hover { background: #eef3e9; border-color: #98ae94; }
.version-pill {
  border: 1px solid #dae2d6;
  border-radius: 40px;
  background: #f3f6ef;
  padding: 6px 9px;
  color: #5a7055;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .025em;
  white-space: nowrap;
}
.footer-inner { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.footer-note { display: inline-flex; align-items: center; gap: 7px; }
.footer-note svg { width: 14px; height: 14px; }

.room-view { min-width: 0; }
.room-header {
  min-width: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}
.room-heading { min-width: 0; }
.room-title {
  margin-top: 8px;
  color: var(--ink);
  font-size: clamp(2.35rem, 4.75vw, 4.35rem);
  font-weight: 850;
  line-height: .99;
  letter-spacing: -.073em;
  overflow-wrap: anywhere;
}
.room-description { max-width: 600px; margin-top: 9px; color: var(--muted); font-size: 14px; }
.room-actions, .room-controls, .lobby-footer { display: flex; justify-content: flex-start; flex-wrap: wrap; align-items: center; gap: 8px; }
.room-actions { justify-content: flex-end; }
.room-grid, .game-grid {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0,1.66fr) minmax(303px,1fr);
  gap: 22px;
}
.play-column, .room-sidebar, .column-stack { min-width: 0; display: grid; align-content: start; gap: 15px; }
.room-sidebar .panel, .play-column .panel:not(.map-card) { padding: 20px; }
.section-divider { width: 100%; height: 0; margin: 16px 0; border: 0; border-top: 1px solid var(--line); }
.map-card { overflow: hidden; box-shadow: 0 5px 26px rgba(27,48,33,.08); }
.map-card-head, .map-card-foot {
  min-height: 55px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 15px;
  padding: 14px 17px;
}
.map-card-head h2, .map-card-head h3 { font-size: 17px; font-weight: 810; letter-spacing: -.04em; }
.map-card-foot { min-height: 42px; color: var(--muted); font-size: 11px; }
.map-card-head .map-status { justify-content: flex-start; }
#map-slot {
  position: relative;
  isolation: isolate;
  height: clamp(340px, 45vw, 565px);
  overflow: hidden;
  background: #193329;
}
#map-slot > .leaflet-container, #map-slot > .map-surface, #map-slot > .game-map, #map-slot > #live-map { width: 100%; height: 100%; }
.map-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.map-legend > span, .map-legend > li { display: inline-flex; align-items: center; gap: 5px; }
.legend-dot { display: inline-block; width: 8px; height: 8px; border-radius: 100%; background: #88a475; }
.legend-dot.seeker, .legend-dot--seeker { background: #cf8152; }
.legend-dot.hider, .legend-dot--hider { background: #80a848; }
.legend-dot.me, .legend-dot--me { background: #3d8b8b; }
.legend-dot.zone, .legend-dot--zone { border: 1px solid #789c55; background: #e8f4d0; }

.invite-card { background: #eaf3df; border-color: #dce8d1; }
.invite-code {
  display: inline-flex;
  align-items: center;
  color: #365341;
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 750;
  letter-spacing: .09em;
  white-space: nowrap;
}
.roster { list-style: none; margin: 0; padding: 0; }
.roster-row {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 47px;
  padding: 6px 0;
  border-top: 1px solid var(--line);
}
.roster-row:first-child { border-top: 0; }
.avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  background: #e4ecdf;
  border: 1px solid #dfe8da;
  border-radius: 11px;
  color: #3e6150;
  font-size: 13px;
  font-weight: 800;
}
.roster-person { min-width: 0; flex: 1; overflow-wrap: anywhere; font-size: 14px; font-weight: 720; }
.roster-person strong { display: block; }
.roster-person small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.roster-flags { display: flex; flex-wrap: wrap; justify-content: end; align-items: center; gap: 5px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.form-grid .full, .form-grid .field-full, .form-grid .span-2 { grid-column: 1 / -1; }
.lobby-settings summary { color: var(--ink); font-size: 15px; font-weight: 780; }
.lobby-settings[open] summary { margin-bottom: 12px; }

.game-card, .status-card { display: grid; gap: 12px; }
.game-card .panel-heading + .panel-body, .status-card .panel-heading + .panel-body { margin-top: 0; }
.game-timer, .timer, .phase-clock, .countdown {
  color: #233d2e;
  font-family: var(--mono);
  font-size: clamp(1.7rem, 3.15vw, 2.85rem);
  line-height: 1;
  font-weight: 780;
  letter-spacing: -.075em;
  font-variant-numeric: tabular-nums;
}
.notice-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.notice-list > li, .notice, .status-message {
  min-width: 0;
  border: 1px solid #dfe8d9;
  border-radius: 11px;
  padding: 10px 12px;
  background: #edf3e9;
  color: #3c5945;
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.notice-error, .status-error, .form-error, .error-message, .alert-error {
  color: var(--danger);
  background: var(--danger-bg);
  border-color: #efdbd1;
}
.form-error, .error-message, .alert-error { border: 1px solid #efdbd1; border-radius: 9px; padding: 8px 11px; font-size: 13px; }
.capture-card .notice-list .button { margin-top: 7px; }
.capture-card .notice-list .button + .button { margin-left: 4px; }
.compass-card {
  background: #1b3228;
  border-color: #254435;
  color: #f0f8e9;
}
.compass-card .panel-description, .compass-card .muted, .compass-card p { color: #c2d3bb; }
.compass-card .button-secondary, .compass-card .button-quiet {
  border-color: #476554;
  background: #243f32;
  color: #edf5e6;
}
.compass-card .button-secondary:hover, .compass-card .button-quiet:hover { background: #2b4a3b; }
.compass-dial {
  position: relative;
  min-width: 65px;
  width: 65px;
  height: 65px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #64816a;
  border-radius: 50%;
  background: radial-gradient(circle, #2d4d3e 15%, #243e32 75%);
  color: var(--acid);
}
.compass-arrow { width: 27px; height: 27px; color: var(--acid); transform-origin: center; }
.compass-dial svg { width: 26px; height: 26px; }
.compass-content, .compass-row, .direction-row { display: flex; align-items: center; gap: 14px; }
.compass-clock, .compass-north { font-family: var(--mono); color: #d3ebcc; font-size: 9px; letter-spacing: .13em; }
.compass-north { position: absolute; top: 4px; left: 50%; transform: translateX(-50%); }
.icon-only { padding: 6px; min-width: 38px; min-height: 38px; }

.round-summary { display: grid; grid-template-columns: repeat(auto-fit,minmax(110px,1fr)); gap: 10px; }
.stat-tile { min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); }
.stat-tile strong { display: block; font-size: 22px; color: #294631; letter-spacing: -.05em; }
.stat-tile span { color: var(--muted); font-size: 11px; }
.ranking-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ranking-list li {
  min-width: 0;
  padding: 8px 9px;
  border-radius: 8px;
  background: var(--surface-soft);
  color: #38503d;
  font-size: 13px;
}
.stats-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
.stats-table :is(td, th) { padding: 8px 5px; border-bottom: 1px solid var(--line); }
.stats-table :is(td, th):not(:first-child) { text-align: right; white-space: nowrap; }
.stats-table th { color: var(--muted); font-size: 11px; font-weight: 750; }
.stats-table :is(td, th):first-child { overflow-wrap: anywhere; }
.replay-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; width: 100%; }
.replay-controls input[type=range] { flex: 1; min-width: 65px; width: 100%; margin: 0; }
.replay-controls output { font-family: var(--mono); font-size: 12px; font-weight: 750; }

.game-map { position: relative; }
.game-map-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #243e32;
  background-image:
    linear-gradient(rgba(139,174,144,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,174,144,.12) 1px, transparent 1px);
  background-position: center;
  background-size: 32px 32px;
}
.game-map .leaflet-tile-pane {
  filter: saturate(.79) contrast(.96);
}
.game-map .leaflet-container a { color: #335b43; }
.game-map .leaflet-bar { border: 1px solid rgba(47,76,53,.28); border-radius: 9px; box-shadow: 0 2px 6px rgba(13,40,23,.19); }
.game-map .leaflet-bar a { border-color: #dce5d8; background: #f8fbf2; color: #284638; }
.game-map .leaflet-bar a:hover { background: #edf3e8; }
.game-map .leaflet-control-attribution { background: rgba(253,254,249,.79); color: #37463c; }
.game-map-note {
  position: absolute;
  z-index: 450;
  bottom: 20px;
  left: 11px;
  max-width: calc(100% - 25px);
  padding: 5px 8px;
  border: 1px solid rgba(200,225,199,.22);
  border-radius: 6px;
  background: rgba(17,37,29,.92);
  color: #e0ecd9;
  font-size: 11px;
  line-height: 1.3;
}
.map-pin {
  --pin-color: #8dca56;
  position: relative;
  border: 0;
  background: transparent;
  color: #192c21;
}
.map-pin--self { --pin-color: #58a7b0; }
.map-pin--clue, .map-pin--hider { --pin-color: #a7d95a; }
.map-pin--seeker { --pin-color: #df8c5c; }
.map-pin--found { --pin-color: #a8b1a3; }
.map-pin--start, .map-pin--setup { --pin-color: #dce96d; }
.map-pin-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  display: block;
  width: 14px;
  height: 14px;
  border: 2px solid #f8fdf1;
  border-radius: 100%;
  background: var(--pin-color);
  box-shadow: 0 0 0 2px #294331, 0 2px 5px rgba(25,49,32,.39);
}
.map-pin-label {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 120px;
  overflow: hidden;
  padding: 3px 6px;
  border: 1px solid #d5e0d1;
  border-radius: 5px;
  background: #f9fcf4;
  box-shadow: 0 1px 3px rgba(21,42,27,.14);
  color: #223b2a;
  font-family: var(--font);
  font-size: 10px;
  font-weight: 770;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.map-pin--clue { cursor: pointer; }
.map-pin--clue:hover .map-pin-dot { box-shadow: 0 0 0 3px #365b32, 0 2px 8px rgba(25,49,32,.47); }

.toast, .app-notice {
  position: fixed;
  z-index: 6000;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  width: max-content;
  max-width: min(calc(100vw - 32px), 435px);
  padding: 12px 17px;
  border-radius: 11px;
  border: 1px solid #456a4d;
  background: #1e3d2c;
  box-shadow: 0 4px 18px rgba(16,44,27,.17);
  color: white;
  font-size: 14px;
}

@media (max-width: 1060px) {
  .site-main, .site-footer, .header-inner { width: min(100% - 54px, 1232px); }
  .hero { min-height: 566px; }
  .hero-copy { padding-left: 42px; }
  .home-sidebar > .panel { padding: 22px; }
}

@media (max-width: 810px) {
  .site-main, .site-footer, .header-inner { width: calc(100% - 36px); }
  .site-main { padding-top: 24px; }
  .home-grid, .room-grid, .game-grid { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .home-sidebar { grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: auto; gap: 14px; }
  .hero { min-height: 510px; }
  .hero-copy h1 { font-size: clamp(3rem, 9.5vw, 4.65rem); }
  .room-sidebar { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .room-sidebar > .settings-card, .room-sidebar > .compass-card { grid-column: 1 / -1; }
  .room-header { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 17px; }
  .room-actions { justify-content: flex-start; }
}

@media (max-width: 540px) {
  .site-main, .site-footer, .header-inner { width: calc(100% - 28px); }
  .site-header, .site-header > .header-inner { min-height: 63px; }
  .site-main { padding-top: 16px; }
  .brand { gap: 8px; }
  .brand-mark, .brand-icon, .logo-mark { width: 35px; height: 35px; flex-basis: 35px; border-radius: 10px; }
  .brand-mark svg, .brand-icon svg, .logo-mark svg { width: 22px; height: 22px; }
  .brand-name, .brand-wordmark { font-size: 17px; }
  .header-meta { gap: 8px; font-size: 11px; }
  .version-pill { padding: 5px 6px; font-size: 9px; }
  .hero {
    min-height: 439px;
    min-height: min(439px, 116vw);
    border-radius: 20px;
  }
  .hero-copy { padding: clamp(28px, 8vw, 42px) 20px 19px; }
  .hero-copy h1 { margin-top: 15px; font-size: clamp(2.45rem, 11vw, 3.7rem); }
  .hero-description { max-width: 315px; margin-top: 16px; font-size: 14px; }
  .hero-features { gap: 5px; margin-top: 17px; }
  .hero-features > span { min-height: 27px; padding: 4px 7px; font-size: 10px; }
  .hero-features svg { width: 12px; height: 12px; }
  .hero-bottom { min-height: 46px; gap: 8px; margin-inline: 16px; padding: 9px 2px; font-size: 10px; }
  .hero-map .target-one { left: 80%; }
  .hero-map .target-two { left: 58%; }
  .hero-map .map-target-label, .hero-map .target-label { font-size: 8px; }
  .home-sidebar, .room-sidebar { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .home-sidebar > .panel, .room-sidebar .panel, .play-column .panel:not(.map-card) { padding: 16px; }
  .home-sidebar h2 { margin-top: 10px; }
  .home-sidebar form { margin-top: 14px; }
  .panel, .card { border-radius: 15px; }
  .card-icon { width: 36px; height: 36px; border-radius: 9px; }
  .card-icon svg { width: 19px; height: 19px; }
  .button, .btn { min-height: 43px; }
  input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea { font-size: 16px; }
  #map-slot { height: clamp(290px, 90vw, 460px); }
  .map-card-head, .map-card-foot { padding-inline: 12px; }
  .room-title { font-size: clamp(2.25rem,11vw,3.3rem); }
  .room-description { font-size: 13px; }
  .roster-flags { gap: 3px; }
  .form-grid { gap: 9px; }
  .map-legend { gap: 7px; }
  .footer-inner { flex-wrap: wrap; }
}

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

.lobby-settings:not(:has(select[name="mode"] option[value="zone"]:checked)) .zone-settings,
.lobby-settings:has(select[name="nextStartMode"] option[value="fixed"]:checked) .random-area-setting,
.lobby-settings:has(select[name="nextStartMode"] option[value="random"]:checked) .fixed-start-setting {
  display: none;
}
.compass-arrow { transform: rotate(var(--compass-angle, 0deg)); }

.room-back { text-decoration: none; }
.room-back:hover { color: #203d2c; }
.room-back > span { color: #8d9d89; }
.panel-title { display: flex; align-items: center; gap: 8px; }
.panel-title > svg { color: #638369; }
.compass-card .panel-title > svg { color: #cbec8e; }
.map-card > .panel-heading { min-height: 55px; align-items: center; padding: 12px 17px; }
.map-card > .panel-heading .panel-title { font-size: 17px; }
.map-card-foot { border-top: 1px solid var(--line); padding-block: 6px; }
.map-card-foot .button { min-height: 33px; padding-inline: 8px; }
.map-instruction { display: flex; align-items: center; gap: 7px; padding: 8px 17px; background: #e7f2d1; color: #496237; font-size: 12px; }
.map-picking, .map-picking .leaflet-container { cursor: crosshair; }
.legend-seeker { background: #d18458; }
.legend-hider { background: #80a848; }
.legend-you { background: #4a939a; }
.legend-area { border: 1px solid #789c55; background: #e8f4d0; }

.eyebrow + .room-title { margin-top: 9px; }
.badge-round { background: #e8efd9; color: #4b633e; }
.badge-count { padding-inline: 9px; }
.badge-muted { background: #edf0e9; color: #637461; }
.roster-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 8px;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 570;
}
.roster-meta > span { display: inline-flex; align-items: center; gap: 4px; }
.roster-meta .status-dot, .map-status .status-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  background: #919f91;
  box-shadow: none;
}
.roster-meta .status-dot.status-online, .map-status .status-dot.status-online { background: #6f9c50; }
.avatar-seeker { background: #f5e8db; border-color: #efdece; color: #80573d; }
.role-toggle { min-height: 32px; padding-inline: 7px; font-size: 12px; }
.role-toggle-active { color: #765034; background: #f8eddf; }
.roster-controls { margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.button-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.roster-controls .button, .clue-picks .button { min-height: 34px; padding-inline: 7px; font-size: 11px; }
.roster-controls .support-text + .button-group { margin-top: 7px; }

.support-text { color: var(--muted); font-size: 13px; font-weight: 500; line-height: 1.48; }
.support-text + .button { margin-top: 11px; }
.invite-share {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 15px;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 13px;
}
.invite-code { flex-direction: column; align-items: flex-start; gap: 0; }
.invite-code span { color: #5a7056; font-family: var(--font); font-size: 10px; letter-spacing: .035em; text-transform: uppercase; }
.invite-code strong { font-size: 22px; }
.lobby-footer > .panel-body { flex: 1; text-align: center; }
.lobby-footer .button + .support-text { margin-top: 8px; }

.lobby-settings { display: grid; gap: 15px; }
.lobby-settings > .button { justify-self: start; }
.settings-section { border-top: 1px solid var(--line); padding-top: 10px; }
.settings-section .support-text { margin-top: 8px; }
.settings-section legend {
  margin-bottom: 0;
  padding-right: 7px;
  color: var(--olive);
  font-size: 12px;
}
.field-control { min-width: 0; display: flex; align-items: center; position: relative; }
.field-control > span {
  position: absolute;
  right: 12px;
  background: var(--surface);
  color: var(--quiet);
  font-size: 11px;
  font-weight: 550;
  pointer-events: none;
}
.field-control > input[type=number] { padding-right: 42px; }
.field-control > input[type=number]:hover, .field-control > input[type=number]:focus { padding-right: 46px; }
.field-control > input[type=number]::-webkit-inner-spin-button { appearance: none; }
.field-control > input[type=number] { appearance: textfield; }
.field > .button { min-width: 0; padding-inline: 5px; }
.field > .button span { overflow: hidden; text-overflow: ellipsis; }

.countdown-body { display: grid; gap: 7px; }
.countdown-value {
  color: #264231;
  font-family: var(--mono);
  font-size: clamp(2.3rem, 3.9vw, 3.2rem);
  font-weight: 800;
  line-height: .96;
  letter-spacing: -.09em;
  font-variant-numeric: tabular-nums;
}
.compass-readout { display: flex; align-items: center; gap: 13px; }
.compass-card .button { margin-top: 12px; }
.clue-picks { display: flex; flex-wrap: wrap; gap: 5px; }
.compass-idle { display: grid; place-items: center; }
.compass-arrow { display: grid; place-items: center; }
.distance-list { margin: 11px 0 0; padding: 0; list-style: none; }
.distance-list li {
  display: flex;
  justify-content: space-between;
  column-gap: 8px;
  border-top: 1px solid var(--line);
  padding-block: 7px;
  font-size: 13px;
}
.distance-list li strong { text-align: right; }
.destination-distance { display: flex; align-items: center; gap: 6px; margin-top: 9px; color: var(--olive); font-size: 13px; }
.prompt-card { background: #f4f8e9; border-color: #d5e5bb; }
.capture-prompt > p { margin-bottom: 8px; color: #394e34; font-size: 13px; }

.loading-screen { padding-block: 38px; color: var(--muted); font-size: 14px; }

@media (max-width: 540px) {
  .map-card > .panel-heading { padding-inline: 12px; }
}

.room-alert {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 12px;
  padding: 9px 13px;
  border: 1px solid #d5e5bb;
  border-radius: 10px;
  background: #eaf5d9;
  color: #355139;
  font-size: 13px;
  line-height: 1.4;
}
.room-alert-error { border-color: #efdbd1; background: var(--danger-bg); color: var(--danger); }
.replay-controls { padding: 10px 17px 14px; border-top: 1px solid var(--line); }
.replay-range { flex: 1; min-width: 90px; }
.replay-time { white-space: nowrap; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.ranking-card h3 { margin: 15px 0 7px; color: var(--olive); font-size: 13px; }
.ranking-list { counter-reset: ranking; }
.ranking-list li {
  counter-increment: ranking;
  display: grid;
  grid-template-columns: 19px minmax(0,1fr) max-content;
  align-items: center;
  gap: 5px;
}
.ranking-list li::before {
  content: counter(ranking) ".";
  color: #57754b;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 750;
}
.ranking-list li strong { overflow-wrap: anywhere; }
.ranking-list li span { color: #4a644a; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.best-seeker { background: #edf5db; border-color: #deebc9; }
.next-round-card .panel-body > p + p { margin-bottom: 9px; }
.distance-card .panel-heading { margin-bottom: 10px; }
.stats-table tbody th { color: var(--ink); font-size: 13px; }
.stats-table tr:last-child :is(th,td) { border-bottom: 0; }
.game-map-zoom { position: absolute; z-index: 4; left: 10px; top: 10px; display: grid; gap: 1px; border-radius: 8px; overflow: hidden; }
.game-map-zoom button {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  padding: 0;
  border: 0;
  background: var(--surface);
  color: var(--forest);
  font-size: 18px;
  font-weight: 750;
}
.game-map-zoom button:hover { background: #e5efd9; }

.hero-copy h1 > span { color: var(--acid); }
.hero-copy .hero-kicker {
  border-radius: 30px;
  padding: 6px 9px;
  background: #d3f66d;
  color: #233820;
  outline: 1px solid rgba(220,247,139,.26);
  outline-offset: 3px;
  font-size: 9px;
}
.hero-radar {
  position: absolute;
  top: 45.7%;
  left: 75.6%;
  width: 238px;
  height: 238px;
  transform: translate(-50%,-50%);
  border: 1px solid rgba(207,239,125,.31);
  border-radius: 50%;
  background: radial-gradient(circle, transparent 47%, rgba(205,241,140,.20) 47.4%, transparent 48.2%, transparent 73%, rgba(207,239,125,.23) 74%, transparent 75%);
  box-shadow: 0 0 0 26px rgba(207,239,125,.04), inset 0 0 36px #aee85216;
}
.hero-radar::before, .hero-radar::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150%;
  height: 1px;
  transform: translate(-50%,-50%);
  background: linear-gradient(90deg, transparent, rgba(210,243,156,.22) 50%, transparent);
  content: "";
}
.hero-radar::after { transform: translate(-50%,-50%) rotate(90deg); }
.hero-map-compass {
  position: absolute;
  top: 29px;
  right: 28px;
  display: grid;
  place-items: center;
  gap: 2px;
  padding: 6px 8px;
  border: 1px solid #6c8c6290;
  border-radius: 22px;
  background: #183527bb;
  color: #d5efac;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 750;
}
.hero-map-compass svg { width: 20px; height: 20px; }
.hero-map-scale {
  position: absolute;
  right: 29px;
  bottom: 83px;
  display: grid;
  justify-items: end;
  gap: 3px;
  color: #bdceae;
  font-family: var(--mono);
  font-size: 9px;
}
.hero-map-scale i {
  display: block;
  width: 39px;
  height: 5px;
  border-inline: 1px solid #b5cda9;
  border-bottom: 1px solid #b5cda9;
}
.hero-location > .status-dot {
  background: #b7db68;
  box-shadow: 0 0 0 3px rgba(183,219,104,.14);
}
.home-sidebar .btn { position: relative; }
.home-sidebar .btn > .icon { position: absolute; right: 12px; }
.home-sidebar.is-invited .join-card { order: -1; background: #f5faeb; border-color: #dbe8ca; }
.home-sidebar.is-invited .join-card .btn { background: var(--acid); border-color: #c4e65d; }
.home-sidebar.is-invited .join-card .btn:hover { background: var(--acid-hover); }
.home-sidebar.is-invited .create-card .btn { background: var(--surface); border-color: var(--line-strong); }
.home-sidebar.is-invited .create-card .btn:hover { background: var(--surface-soft); }
.home-error { color: var(--danger) !important; background: var(--danger-bg); border: 1px solid #efdbd1; border-radius: 9px; padding: 8px 11px; }

@media (max-width: 1060px) {
  .hero-map .target-label { transform: translate(10px,-50%); }
  .hero-map .target-one { left: 73%; }
  .hero-radar { left: 73.8%; width: 205px; height: 205px; }
}
@media (max-width: 540px) {
  .hero-map .target-one { top: 68%; left: 77%; }
  .hero-map .target-two { top: 80%; left: 56%; }
  .hero-radar { top: 69%; left: 78%; width: 126px; height: 126px; }
  .hero-map .target-one .target-label { inset: auto -4px 11px auto; transform: none; }
  .hero-map-compass { top: 17px; right: 16px; }
  .hero-map-compass svg { width: 15px; height: 15px; }
  .hero-map-scale { right: 17px; bottom: 56px; }
  .hero-copy .hero-kicker { padding: 5px 7px; }
  .home-sidebar .btn { padding-inline: 32px; }
}

.room-actions .gps-feedback {
  flex: 0 0 100%;
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}
.game-prompt-region { margin-bottom: 15px; padding: 14px 18px; }
.game-prompt-region .panel-heading + .panel-body { margin-top: 11px; }
.invite-link-field { margin-top: 10px; }
.invite-link-field input:read-only { font-size: 12px; }
.find-action { background: var(--acid); color: var(--ink); }
@media (max-width: 810px) {
  .room-actions .gps-feedback { text-align: left; }
}

@media (min-width: 811px) {
  .room-lobby .room-sidebar { grid-column: 2; grid-row: 1; }
  .room-lobby .play-column { grid-column: 1; grid-row: 1; }
}
@media (max-width: 810px) {
  .home-grid--invite { display: flex; flex-direction: column; }
  .home-grid--invite .home-sidebar { display: contents; }
  .home-grid--invite :is(.join-card, .home-error) { order: -1; }
  .home-grid--invite .create-card { order: 1; background: #f6f7f1; }
}
