:root {
  --ink: #101827;
  --ink-soft: #1b2840;
  --paper: #f7f8f2;
  --paper-warm: #f0f1e8;
  --muted: #677083;
  --line: rgba(16, 24, 39, .14);
  --lime: #b8ff5a;
  --sky: #58c5f1;
  --orange: #ff6b35;
  --white: #fff;
  --hunt-primary: #b8ff5a;
  --hunt-secondary: #58c5f1;
  --shadow: 0 18px 50px rgba(16, 24, 39, .10);
  --font-sans: "Urbanist", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(16, 24, 39, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 24, 39, .035) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
}

a { color: inherit; }
a:hover { color: var(--ink); }
h1, h2, h3, h4, h5, h6 {
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -.035em;
}
h1 { font-size: clamp(2.6rem, 8vw, 5.9rem); line-height: .94; }
h2 { font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1; }
h3 { font-size: 1.35rem; }
p { color: #4f596b; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -6rem;
  z-index: 3000;
  padding: .8rem 1rem;
  color: var(--ink);
  background: var(--lime);
  border-radius: .35rem;
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 3px solid var(--sky) !important;
  outline-offset: 3px;
}

.connection-banner {
  position: sticky;
  top: 0;
  z-index: 2200;
  padding: .55rem 1rem;
  color: #fff;
  background: var(--orange);
  text-align: center;
  font-size: .86rem;
  font-weight: 700;
}

.site-header {
  position: relative;
  z-index: 1200;
  padding: .85rem 0;
  color: #fff;
  background: var(--ink);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.site-header .navbar { padding: 0; }
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: #fff;
  text-decoration: none;
}
.brand-lockup:hover { color: #fff; }
.brand-mark {
  position: relative;
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border: 2px solid var(--lime);
  border-radius: 50%;
}
.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  background: var(--lime);
}
.brand-mark::before { width: 2px; height: 3rem; }
.brand-mark::after { width: 3rem; height: 2px; }
.brand-mark span {
  position: relative;
  z-index: 1;
  width: .52rem;
  height: .52rem;
  background: var(--lime);
  border: 2px solid var(--ink);
  border-radius: 50%;
}
.brand-type { display: flex; align-items: baseline; gap: .35rem; letter-spacing: -.025em; }
.brand-type strong { color: #fff; font-size: 1.06rem; }
.brand-type small {
  color: var(--lime);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .18em;
}
.site-header .nav-link {
  color: rgba(255,255,255,.74);
  font-size: .84rem;
  font-weight: 650;
}
.site-header .nav-link:hover { color: #fff; }
.navbar-toggler { border: 1px solid rgba(255,255,255,.24); padding: .65rem; }
.menu-lines,
.menu-lines::before,
.menu-lines::after {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: #fff;
  content: "";
}
.menu-lines::before { transform: translateY(-6px); }
.menu-lines::after { transform: translateY(4px); }

.flash-wrap { position: relative; z-index: 1300; margin-top: 1rem; }
.alert { font-weight: 600; border: 0; box-shadow: var(--shadow); }

.btn {
  min-height: 2.9rem;
  padding: .72rem 1.15rem;
  border-width: 2px;
  border-radius: .55rem;
  font-weight: 700;
  letter-spacing: -.01em;
}
.btn-sm { min-height: 2.2rem; padding: .42rem .8rem; }
.btn-lg { min-height: 3.55rem; padding: .92rem 1.35rem; font-size: 1rem; }
.btn-primary {
  color: var(--ink);
  background: var(--hunt-primary);
  border-color: var(--hunt-primary);
  box-shadow: 0 8px 0 rgba(16,24,39,.12);
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
  color: var(--ink) !important;
  background: color-mix(in srgb, var(--hunt-primary), white 12%) !important;
  border-color: var(--hunt-primary) !important;
  transform: translateY(-1px);
}
.btn-dark { background: var(--ink); border-color: var(--ink); }
.btn-outline-dark { color: var(--ink); border-color: var(--ink); }
.btn-outline-dark:hover { background: var(--ink); }
.btn:disabled { opacity: .58; transform: none; box-shadow: none; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1rem;
  color: var(--ink);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 1.4rem;
  height: 3px;
  background: var(--orange);
}
.eyebrow-light { color: #fff; }
.section-space { padding-block: clamp(4rem, 9vw, 7rem); }
.muted { color: var(--muted); }

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(4.5rem, 11vw, 8.5rem);
  color: #fff;
  background: var(--ink);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .24;
  background-image: radial-gradient(circle at center, var(--sky) 0 2px, transparent 2.5px);
  background-size: 46px 46px;
  transform: perspective(600px) rotateX(62deg) scale(1.6) translateY(15%);
}
.hero::after {
  content: "";
  position: absolute;
  right: -11rem;
  top: -12rem;
  width: 34rem;
  height: 34rem;
  border: 1px solid rgba(184,255,90,.42);
  border-radius: 50%;
  box-shadow: 0 0 0 4rem rgba(184,255,90,.025), 0 0 0 8rem rgba(184,255,90,.02);
}
.hero .container-xl { position: relative; z-index: 1; }
.hero h1 { max-width: 850px; margin-bottom: 1.35rem; color: #fff; }
.hero h1 em { color: var(--lime); font-style: normal; }
.hero-copy { max-width: 630px; color: rgba(255,255,255,.72); font-size: clamp(1.05rem, 2vw, 1.3rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }
.hero .btn-outline-light { color: #fff; border-color: rgba(255,255,255,.55); }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 760px;
  margin-top: 4rem;
  border-top: 1px solid rgba(255,255,255,.18);
}
.hero-stat { padding: 1.25rem 1.25rem 0 0; }
.hero-stat strong { display: block; color: #fff; font-size: 1.05rem; }
.hero-stat span { color: rgba(255,255,255,.55); font-size: .76rem; }

.hunt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.hunt-card {
  position: relative;
  display: flex;
  min-height: 23rem;
  overflow: hidden;
  flex-direction: column;
  padding: 1.3rem;
  color: #fff;
  background: var(--ink);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: .9rem;
  box-shadow: var(--shadow);
}
.hunt-card::before {
  content: "";
  position: absolute;
  right: -3rem;
  top: -2rem;
  width: 13rem;
  height: 13rem;
  background: var(--card-primary, var(--lime));
  border-radius: 50%;
  opacity: .14;
}
.hunt-card .hunt-number { color: var(--card-primary, var(--lime)); font-size: .72rem; font-weight: 800; letter-spacing: .15em; }
.hunt-card h3 { margin-top: auto; color: #fff; font-size: 1.9rem; line-height: 1; }
.hunt-card p { color: rgba(255,255,255,.66); }
.hunt-meta { display: flex; flex-wrap: wrap; gap: .45rem; margin: .4rem 0 1.2rem; }
.meta-chip {
  padding: .34rem .56rem;
  color: inherit;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 50rem;
  font-size: .68rem;
  font-weight: 700;
}
.empty-state { padding: 3rem; background: #fff; border: 1px dashed var(--line); border-radius: .9rem; text-align: center; }

.how-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.how-step { position: relative; padding: 2rem 1.4rem; background: var(--paper); }
.step-index { display: block; margin-bottom: 2.6rem; color: var(--orange); font-size: .78rem; font-weight: 800; letter-spacing: .14em; }
.how-step h3 { margin-bottom: .6rem; }

.safety-band { color: #fff; background: var(--orange); }
.safety-band h2, .safety-band p { color: #fff; }
.safety-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.safety-list li { padding: 1.2rem; border-top: 2px solid rgba(255,255,255,.65); font-weight: 700; }

.hunt-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
  color: #fff;
  background: var(--ink);
}
.hunt-hero::after {
  content: "";
  position: absolute;
  width: 30rem;
  height: 30rem;
  right: -10rem;
  bottom: -18rem;
  border: 5rem solid var(--hunt-primary);
  border-radius: 50%;
  opacity: .14;
}
.hunt-hero .container-xl { position: relative; z-index: 1; }
.hunt-hero h1 { max-width: 780px; color: #fff; }
.hunt-hero .lead { max-width: 620px; color: rgba(255,255,255,.72); }
.hunt-meta-bar { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.5rem 0; }
.hunt-meta-bar .meta-chip { background: rgba(255,255,255,.12); }
.info-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: 2rem; }
.content-panel,
.side-panel,
.form-panel,
.game-panel,
.admin-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: .8rem;
  box-shadow: 0 12px 35px rgba(16,24,39,.055);
}
.content-panel, .form-panel, .game-panel { padding: clamp(1.35rem, 4vw, 2.4rem); }
.side-panel { padding: 1.35rem; }
.detail-list { margin: 0; padding: 0; list-style: none; }
.detail-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.detail-list li:last-child { border-bottom: 0; }
.detail-list span { color: var(--muted); }
.detail-list strong { color: var(--ink); text-align: right; }
.safety-note { padding: 1rem; background: #fff5ee; border-left: 4px solid var(--orange); }

.form-label { color: var(--ink); font-weight: 700; }
.form-control, .form-select {
  min-height: 3.15rem;
  color: var(--ink);
  background-color: #fff;
  border: 1px solid #b8bec8;
  border-radius: .45rem;
}
textarea.form-control { min-height: 8rem; }
.form-control:focus, .form-select:focus { border-color: var(--sky); box-shadow: 0 0 0 .22rem rgba(88,197,241,.24); }
.form-text { color: var(--muted); }
.required::after { content: " *"; color: var(--orange); }

.permission-card { padding: 1.15rem; background: var(--paper); border: 1px solid var(--line); }
.permission-card strong { display: block; margin-bottom: .25rem; }
.permission-icon {
  display: grid;
  width: 2.7rem;
  height: 2.7rem;
  margin-bottom: .8rem;
  place-items: center;
  color: var(--ink);
  background: var(--hunt-primary);
  border-radius: 50%;
  font-weight: 800;
}

.player-topbar { padding: 1.1rem 0; color: #fff; background: var(--ink); }
.player-topbar h1 { margin: 0; color: #fff; font-size: 1rem; letter-spacing: -.01em; }
.player-topbar .eyebrow { margin: 0 0 .2rem; color: var(--hunt-primary); font-size: .6rem; }
.progress-shell { height: .62rem; overflow: hidden; background: rgba(255,255,255,.16); border-radius: 1rem; }
.progress-fill { height: 100%; background: var(--hunt-primary); transition: width .35s ease; }
.game-layout { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: 1.5rem; align-items: start; }
.clue-index { color: var(--orange); font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.current-clue-title { max-width: 650px; margin: .6rem 0 1.1rem; font-size: clamp(2.2rem, 6vw, 4.6rem); }
.signal-status {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin: 1.5rem 0;
  padding: 1rem;
  background: #eef7fb;
  border: 1px solid rgba(88,197,241,.4);
}
.signal-dot { width: 1rem; height: 1rem; flex: 0 0 auto; background: var(--sky); border: 4px solid #fff; border-radius: 50%; box-shadow: 0 0 0 2px var(--sky); }
.signal-status.nearby { background: #f1ffe0; border-color: var(--lime); }
.signal-status.nearby .signal-dot { background: var(--lime); box-shadow: 0 0 0 2px #83c72b; }
.game-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin-top: 1.2rem; }
.progress-list { margin: 0; padding: 0; list-style: none; }
.progress-list li { display: grid; grid-template-columns: 2rem 1fr auto; gap: .65rem; align-items: center; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.progress-list li:last-child { border-bottom: 0; }
.progress-marker { display: grid; width: 1.8rem; height: 1.8rem; place-items: center; border: 2px solid #c3c8d0; border-radius: 50%; font-size: .68rem; font-weight: 800; }
.progress-list .done .progress-marker { background: var(--hunt-primary); border-color: var(--hunt-primary); }
.progress-list .current .progress-marker { border-color: var(--sky); box-shadow: 0 0 0 4px rgba(88,197,241,.18); }
.locked-label { color: var(--muted); font-size: .7rem; }

.scanner-shell { max-width: 680px; margin-inline: auto; }
.scanner-viewport { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: #060a11; border-radius: .8rem; }
.scanner-viewport video, .scanner-viewport canvas { width: 100%; height: 100%; object-fit: cover; }
.scanner-overlay { position: absolute; inset: 0; pointer-events: none; }
.scanner-frame { position: absolute; inset: 18%; border: 3px solid var(--hunt-primary); border-radius: .7rem; box-shadow: 0 0 0 100vmax rgba(0,0,0,.38); }
.scanner-line { position: absolute; left: 20%; right: 20%; top: 50%; height: 2px; background: var(--hunt-primary); box-shadow: 0 0 14px var(--hunt-primary); animation: scan 2s ease-in-out infinite; }
.scanner-placeholder { display: grid; position: absolute; inset: 0; padding: 2rem; place-content: center; color: rgba(255,255,255,.75); text-align: center; }
.scanner-status { min-height: 4rem; margin-top: 1rem; padding: 1rem; background: #fff; border: 1px solid var(--line); }
@keyframes scan { 0%, 100% { transform: translateY(-7rem); } 50% { transform: translateY(7rem); } }

.clue-content { font-size: 1.08rem; }
.clue-content p { color: #3f495b; }
.ar-fallback { padding: 1.2rem; background: var(--ink); color: #fff; }
.ar-fallback h3, .ar-fallback p { color: #fff; }
.ar-player-model,
.ar-model-preview {
  display: block;
  width: 100%;
  min-height: 25rem;
  overflow: hidden;
  background: radial-gradient(circle at 50% 35%, #394456 0, #151c28 68%);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: .7rem;
}
.ar-launch-button { position: absolute; right: 1rem; bottom: 1rem; }
.ar-model-loading, .ar-preview-empty { display: grid; min-height: 25rem; padding: 2rem; place-items: center; color: #fff; text-align: center; }
.ar-accessible-alternative { padding: 1rem; color: var(--ink); background: #fff; border-left: 4px solid var(--lime); }
.ar-accessible-alternative p { color: #3f495b; }

.placement-help { padding: 1rem; background: #eef7fb; border-left: 4px solid var(--sky); }
.ar-admin-preview { padding: 1rem; background: var(--ink); color: #fff; border-radius: .7rem; }
.ar-preview-header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center; }
.ar-preview-header h3 { color: #fff; }
.ar-admin-preview .status-pill { color: var(--ink); background: var(--lime); }
.ar-offset-map {
  position: relative;
  display: grid;
  min-height: 16rem;
  overflow: hidden;
  place-items: center;
  background: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px), #0a101b;
  background-size: 2rem 2rem;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: .55rem;
}
.ar-preview-marker { width: 7rem; height: 7rem; opacity: .72; }
.ar-preview-object { position: absolute; left: 50%; top: 50%; width: 2.8rem; height: 2.8rem; background: var(--orange); border: 4px solid #fff; border-radius: .4rem; box-shadow: 0 0 0 .45rem rgba(241,91,39,.2); transform: translate(-50%,-50%); transition: transform .2s ease; }

.ar-print-marker { margin: 1.2rem auto; padding-top: 1.2rem; border-top: 2px dashed var(--line); }
.ar-print-marker img { width: min(100%, 18rem); height: auto; image-rendering: pixelated; }
.marker-size-note { margin-top: .5rem; color: var(--muted); font-size: .75rem; }

.ar-marker-page { min-height: 100vh; overflow: hidden; color: #fff; background: #05080e; }
.ar-camera-shell, .ar-marker-scene { position: fixed; inset: 0; width: 100%; height: 100%; }
.ar-marker-scene { z-index: 1; }
.ar-marker-page #arjs-video { position: fixed !important; inset: 0 !important; width: 100% !important; height: 100% !important; object-fit: cover !important; }
.ar-exit-button { position: fixed; top: max(1rem, env(safe-area-inset-top)); left: max(1rem, env(safe-area-inset-left)); z-index: 20; box-shadow: 0 6px 24px rgba(0,0,0,.28); }
.ar-camera-hud {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  left: max(1rem, env(safe-area-inset-left));
  z-index: 20;
  max-width: 46rem;
  margin-inline: auto;
  padding: 1rem 1.15rem;
  color: #fff;
  background: rgba(10,16,27,.9);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: .7rem;
  backdrop-filter: blur(12px);
}
.ar-camera-hud h1 { margin: .2rem 0 .35rem; color: #fff; font-size: clamp(1.25rem, 5vw, 2rem); }
.ar-camera-hud p { margin-bottom: 0; color: rgba(255,255,255,.8); }
.ar-camera-alternative { margin-top: .7rem; padding-top: .7rem; border-top: 1px solid rgba(255,255,255,.16); }
.ar-camera-alternative summary { cursor: pointer; font-weight: 700; }
.ar-camera-alternative p { margin-top: .55rem; }
.ar-marker-found .ar-camera-hud { border-color: var(--lime); }
.ar-camera-unavailable .ar-marker-scene { opacity: .18; }
.ar-capture-tasks { display: grid; gap: .55rem; margin-top: .8rem; padding-top: .8rem; border-top: 1px solid rgba(255,255,255,.16); }
.ar-capture-button { justify-self: start; }
.ar-capture-button:disabled { color: rgba(255,255,255,.58); background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.22); opacity: 1; }
.ar-capture-button.is-complete { color: var(--ink); background: var(--lime); border-color: var(--lime); }
.ar-capture-help { color: rgba(255,255,255,.68); font-size: .73rem; }
.ar-capture-result { min-height: 1.2rem; color: var(--lime); font-size: .8rem; font-weight: 700; }
.ar-capture-result.is-error { color: #ffad91; }

.clue-tasks { padding: clamp(1rem, 3vw, 1.5rem); background: #f3f5f1; border-top: 5px solid var(--hunt-primary); }
.task-section-heading { display: flex; justify-content: space-between; gap: 1rem; align-items: start; }
.task-section-heading h2 { margin-bottom: .3rem; }
.task-progress-count { display: grid; min-width: 3.1rem; min-height: 3.1rem; padding: .4rem; place-items: center; color: #fff; background: var(--ink); border-radius: 50%; font-size: .85rem; font-weight: 800; }
.task-checklist, .task-list { display: grid; gap: .7rem; }
.task-list:not(:empty) { margin-top: .7rem; }
.task-row { display: flex; gap: .85rem; align-items: flex-start; margin: 0; padding: 1rem; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: .45rem; }
label.task-row { cursor: pointer; }
label.task-row:focus-within { border-color: var(--sky); box-shadow: 0 0 0 4px rgba(88,197,241,.18); }
.task-row .form-check-input { flex: 0 0 auto; margin: .18rem 0 0; }
.task-row-copy { display: grid; flex: 1; gap: .25rem; min-width: 0; }
.task-row-copy > span { color: #4b5668; font-size: .88rem; }
.task-row-copy small { color: #496c1d; font-weight: 700; }
.task-state-icon { display: grid; flex: 0 0 2rem; width: 2rem; height: 2rem; place-items: center; color: #fff; background: var(--ink); border-radius: 50%; font-size: .65rem; font-weight: 800; }
.task-row.is-complete { background: #f4faec; border-color: #cfe6ad; }
.task-row.is-complete .task-state-icon { color: var(--ink); background: var(--lime); font-size: 1rem; }
.task-alternative { padding-top: .5rem; border-top: 1px solid var(--line); }
.task-alternative summary { cursor: pointer; font-weight: 700; }
.task-alternative p { margin: .55rem 0; }
.task-gate-message { max-width: 42rem; padding: .8rem 1rem; background: #fff1cf; border-left: 4px solid #e5a800; font-weight: 700; }
.player-badge-card { display: grid; grid-template-columns: minmax(8rem, 12rem) 1fr; gap: clamp(1rem, 4vw, 2rem); align-items: center; padding: 1rem; background: linear-gradient(135deg, #ecf8ff, #f4faec); border: 1px solid var(--line); }
.player-badge-card img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.player-badge-card h2 { margin-bottom: 1rem; }

.completion-hero { min-height: 68vh; display: grid; place-items: center; color: #fff; background: var(--ink); text-align: center; }
.completion-mark { display: grid; width: 8rem; height: 8rem; margin: 0 auto 2rem; place-items: center; color: var(--ink); background: var(--hunt-primary); border-radius: 50%; font-size: 3rem; box-shadow: 0 0 0 1.2rem rgba(184,255,90,.1); }
.completion-hero h1 { color: #fff; }
.completion-hero p { color: rgba(255,255,255,.7); }
.completion-badge { display: grid; grid-template-columns: minmax(10rem, 15rem) minmax(0, 30rem); gap: clamp(1rem, 4vw, 2rem); align-items: center; width: min(100%, 52rem); margin: 2rem auto; padding: clamp(1rem, 4vw, 2rem); text-align: left; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); border-radius: .8rem; }
.completion-badge img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; border-radius: .65rem; }
.completion-badge h2 { color: #fff; overflow-wrap: anywhere; }
.completion-badge .badge-share-status { color: var(--lime); }

.public-badge-hero { min-height: 72vh; display: grid; place-items: center; background: radial-gradient(circle at 15% 20%, rgba(88,197,241,.2), transparent 36%), #eef1ed; }
.public-badge-card { display: grid; grid-template-columns: minmax(16rem, 28rem) minmax(0, 34rem); gap: clamp(1.5rem, 6vw, 4rem); align-items: center; max-width: 70rem; margin-inline: auto; padding: clamp(1rem, 5vw, 3.5rem); background: #fff; border-top: 8px solid var(--hunt-primary); box-shadow: var(--shadow); }
.public-badge-image { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.public-badge-copy h1 { overflow-wrap: anywhere; }
.badge-awarded-date, .public-badge-privacy { color: var(--muted); font-size: .8rem; }
.badge-share-status { min-height: 1.25rem; font-weight: 700; }
.public-badge-privacy { margin: 1rem auto 0; text-align: center; }

.admin-shell { background: #f2f4f0; }
.admin-hero { padding: 3.5rem 0 2rem; }
.admin-hero h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
.admin-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.stat-card { padding: 1.25rem; background: #fff; border-top: 4px solid var(--lime); box-shadow: 0 10px 28px rgba(16,24,39,.06); }
.stat-card:nth-child(2) { border-color: var(--sky); }
.stat-card:nth-child(3) { border-color: var(--orange); }
.stat-card strong { display: block; color: var(--ink); font-size: 2rem; line-height: 1; }
.stat-card span { color: var(--muted); font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.admin-card { padding: 1.3rem; }
.upgrade-item { display: flex; justify-content: space-between; gap: 1.5rem; align-items: center; padding: 1.3rem 0; border-bottom: 1px solid var(--line); }
.upgrade-item:last-of-type { border-bottom: 0; }
.badge-admin-preview { display: grid; gap: .7rem; padding: 1rem; background: #edf1ec; border: 1px solid var(--line); text-align: center; }
.badge-admin-preview img { width: min(100%, 15rem); height: auto; margin-inline: auto; aspect-ratio: 1; object-fit: contain; background: #fff; }
.badge-admin-preview span { font-weight: 800; overflow-wrap: anywhere; }
.table { --bs-table-bg: transparent; color: var(--ink); }
.table thead th { color: var(--muted); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.table td { vertical-align: middle; }
.status-pill { display: inline-flex; padding: .28rem .52rem; background: #e9edf2; border-radius: 50rem; font-size: .68rem; font-weight: 800; text-transform: capitalize; }
.status-pill.live, .status-pill.completed, .status-pill.active { background: #e3f8c7; }
.status-pill.draft { background: #fff1cf; }
.status-pill.paused { background: #ffe5da; }
.form-section { padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.form-section:first-child { padding-top: 0; }
.form-section:last-child { border-bottom: 0; }
.form-section h2 { font-size: 1.35rem; }
.qr-card { max-width: 480px; margin-inline: auto; padding: 1.5rem; background: #fff; border: 1px solid var(--line); text-align: center; }
#qr-output { display: grid; min-height: 290px; place-items: center; }
#qr-output img, #qr-output canvas { width: min(100%, 320px); height: auto; image-rendering: pixelated; }
.coordinate-readout { padding: 1rem; color: #fff; background: var(--ink); font-family: ui-monospace, monospace; }
.debug-message { overflow: auto; padding: 1rem; background: #151b27; color: #fff; border-radius: .4rem; }
.error-panel { max-width: 620px; padding: 2rem; background: #fff; border-top: 6px solid var(--orange); box-shadow: var(--shadow); }

.site-footer { padding: 3.4rem 0 1.3rem; color: #fff; background: #0a101b; }
.site-footer p { color: rgba(255,255,255,.55); }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: end; }
.footer-brand { margin-bottom: .8rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer-links a, .link-button { color: rgba(255,255,255,.68); background: none; border: 0; font: inherit; text-decoration: none; }
.footer-links a:hover, .link-button:hover { color: #fff; }
.footer-base { display: flex; justify-content: space-between; margin-top: 2rem; padding-top: 1rem; color: rgba(255,255,255,.38); border-top: 1px solid rgba(255,255,255,.1); font-size: .72rem; }

@media (max-width: 991.98px) {
  .site-header .navbar-collapse { padding-top: 1rem; }
  .hunt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .how-grid { grid-template-columns: repeat(2, 1fr); }
  .info-grid, .game-layout { grid-template-columns: 1fr; }
  .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
  h1 { font-size: clamp(2.7rem, 15vw, 4.4rem); }
  .hero { padding-top: 4.5rem; }
  .hero-stats { grid-template-columns: 1fr; }
  .hero-stat { padding: .8rem 0; border-bottom: 1px solid rgba(255,255,255,.13); }
  .hunt-grid, .how-grid, .safety-list, .admin-stats { grid-template-columns: 1fr; }
  .hunt-card { min-height: 21rem; }
  .hunt-hero h1 { font-size: 3.3rem; }
  .game-actions { grid-template-columns: 1fr; }
  .scanner-viewport { aspect-ratio: 3 / 4; }
  .footer-grid { grid-template-columns: 1fr; align-items: start; }
  .footer-base { flex-direction: column; gap: .35rem; }
  .table-responsive { margin-inline: -1.3rem; padding-inline: 1.3rem; }
  .ar-player-model, .ar-model-preview, .ar-model-loading, .ar-preview-empty { min-height: 19rem; }
  .ar-camera-hud { max-height: 58vh; overflow-y: auto; }
  .player-badge-card, .completion-badge, .public-badge-card { grid-template-columns: 1fr; }
  .player-badge-card img, .completion-badge img { width: min(100%, 14rem); margin-inline: auto; }
  .completion-badge { text-align: center; }
  .upgrade-item { align-items: flex-start; flex-direction: column; }
}

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

@media print {
  .site-header, .site-footer, .no-print, .connection-banner { display: none !important; }
  body { background: #fff; }
  .qr-card { border: 0; box-shadow: none; }
  .qr-card-with-ar { max-width: 7.5in; }
  .ar-print-marker img { width: var(--marker-print-size) !important; max-width: none; }
}
