:root {
  color-scheme: dark;
  --bg: #070c08;
  --panel: rgba(10, 18, 12, 0.88);
  --panel-border: rgba(123, 216, 143, 0.14);
  --text: #e4ece4;
  --muted: #8ea290;
  --accent: #7bd88f;
  --accent-ink: #06210f;
  --hit: 57, 255, 106;
  --miss: 255, 48, 48;
  --radius: 12px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body { margin: 0; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(5, 9, 6, 0.55), rgba(5, 9, 6, 0.55)),
    url('../assets/camo.svg');
  background-size: auto, 420px 420px;
  background-attachment: fixed;
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

/* ---------- Header / footer ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
}
.logo {
  margin: 0;
  font-family: 'Black Ops One', system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(1.4rem, 4vw, 2.1rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.logo span { color: var(--accent); }
.reddit-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid var(--panel-border);
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--panel);
}
.reddit-link:hover { color: var(--text); border-color: var(--accent); }

.site-footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  padding: 28px 16px 36px;
}

/* ---------- Game area ---------- */
.game {
  flex: 1;
  width: 100%;
  max-width: 1700px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Keep the whole picture on screen: width is capped so the image height fits the viewport.
   It is also capped at the image's real width (--natural-w), so it is never stretched
   up and blurred. Both variables are set by game.js once the image loads. */
.frame {
  --ratio: 1.5;
  width: min(100% - var(--side-space), max(320px, calc((100vh - 235px) * var(--ratio))));
  /* svh = screen height with the phone's address bar showing: stays the same while scrolling
     (dvh would change as the bar slides in and out, making the photo resize) */
  width: min(100% - var(--side-space), max(320px, calc((100svh - 235px) * var(--ratio))));
  max-width: var(--natural-w, none);
  flex: none;
}

/* The picture with the stats panel beside it (or below it on narrow screens) */
.play-area {
  --side-width: 190px;
  --side-gap: 24px;
  --side-space: calc(var(--side-width) + var(--side-gap));
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: var(--side-gap);
}

.stats {
  width: var(--side-width);
  flex: none;
  padding: 16px 18px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
}
.stats-title {
  margin: 0 0 12px;
  font-family: 'Black Ops One', system-ui, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.stats-list { display: grid; gap: 10px; }
.stat-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.stat-name { color: var(--muted); font-size: 0.9rem; }
.stat-num { font-weight: 700; font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.stat-row.found .stat-num { color: rgb(var(--hit)); }
.stat-num.bump { animation: bump 0.5s ease-out; }
@keyframes bump { 40% { transform: scale(1.35); } }

/* ---------- Leaderboard panel (left of the photo, big computer screens only) ---------- */
.lb-panel { display: none; }
@media (min-width: 1400px) {
  .play-area { --lb-width: 240px; --side-space: calc(var(--lb-width) + var(--side-width) + 2 * var(--side-gap)); } /* two side panels */
  .lb-panel {
    display: block; width: var(--lb-width); flex: none; order: -1; padding: 16px 14px;
    background: var(--panel); border: 1px solid var(--panel-border); border-radius: var(--radius);
  }
}
/* A little more height for the photo on computers */
@media (min-width: 901px) {
  .frame { width: min(100% - var(--side-space), max(320px, calc((100vh - 215px) * var(--ratio)))); }
  .frame { width: min(100% - var(--side-space), max(320px, calc((100svh - 215px) * var(--ratio)))); }
}
.lbp-switch { display: flex; gap: 6px; margin: -4px 0 10px; }
.lbp-switch .btn { flex: 1; padding: 4px 6px; font-size: 0.75rem; }
.lbp-switch [aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: rgba(123, 216, 143, 0.1); }
.lbp-note { margin: 0; font-size: 0.8rem; }
.lbp-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; } /* long names get "…" instead of widening the panel */
.lbp-row { display: flex; align-items: center; gap: 7px; padding: 5px 6px; border-radius: 8px; font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.lbp-row.me { background: rgba(123, 216, 143, 0.12); box-shadow: inset 0 0 0 1px rgba(123, 216, 143, 0.5); }
.lbp-pos { width: 22px; flex: none; text-align: center; font-weight: 700; color: var(--muted); font-size: 0.8rem; }
.lbp-row .c-avatar { width: 22px; height: 22px; }
.lbp-row .c-avatar .insignia { width: 14px; height: 14px; }
.lbp-name { flex: 1; min-width: 0; font-weight: 700; color: var(--text); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lbp-name:hover { text-decoration: underline; }
.lbp-xp { font-weight: 700; color: var(--accent); font-size: 0.8rem; }
.lbp-gap { text-align: center; color: var(--muted); line-height: 1; }

@media (max-width: 900px) {
  .play-area { flex-direction: column; align-items: center; --side-space: 0px; }
  .frame { width: min(100%, max(320px, calc((100vh - 235px) * var(--ratio)))); }
  .frame { width: min(100%, max(320px, calc((100svh - 235px) * var(--ratio)))); }
  .stats { width: 100%; max-width: 520px; padding: 12px 16px; }
  .stats-title { display: none; }
  .stats-list { grid-template-columns: repeat(3, 1fr); text-align: center; }
  .stat-row { flex-direction: column-reverse; align-items: center; gap: 2px; }
  .stat-name { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; }
}

/* Heart on the left, title in the middle, thumb down and report on the right */
.hud {
  display: grid;
  grid-template-columns: minmax(max-content, 1fr) minmax(0, auto) minmax(max-content, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0;
}
.hud-title { font-weight: 700; font-size: 1.05rem; overflow-wrap: anywhere; }
.hud-center { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; min-width: 0; }
.hud-side { display: flex; align-items: center; gap: 2px; min-width: 0; }
.hud-end { justify-content: flex-end; }
.misses-stat { font-variant-numeric: tabular-nums; font-weight: 700; margin-right: 6px; }
.stat-label {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-right: 4px;
}

.board {
  position: relative;
  line-height: 0;
  background: #000;
  border: 1px solid var(--panel-border);
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.board img {
  width: 100%;
  height: auto;
  display: block;
  cursor: crosshair;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.board.is-found img { cursor: default; }
.fade-in { animation: fadeIn 0.45s ease-out; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.markers { position: absolute; inset: 0; pointer-events: none; }

.marker-check {
  position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.85); box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.5); scale: calc(1 / var(--zoom, 1));
  animation: checkPulse 0.6s ease-in-out infinite alternate;
}
@keyframes checkPulse { to { opacity: 0.35; } }
.marker-miss {
  position: absolute;
  width: 26px;
  height: 26px;
  transform: translate(-50%, -50%);
  animation: missMark 1.1s ease-out forwards;
}
.marker-miss::before,
.marker-miss::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 26px;
  height: 4px;
  border-radius: 2px;
  background: rgb(var(--miss));
  box-shadow: 0 0 8px rgba(var(--miss), 0.8);
}
.marker-miss::before { transform: translate(-50%, -50%) rotate(45deg); }
.marker-miss::after { transform: translate(-50%, -50%) rotate(-45deg); }
@keyframes missMark {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(1.6); }
  15% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  70% { opacity: 1; }
  100% { opacity: 0; }
}

.marker-hit {
  position: absolute;
  border: 3px solid rgb(var(--hit));
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(var(--hit), 0.9), inset 0 0 12px rgba(var(--hit), 0.5);
  animation: hitRing 0.5s ease-out;
}
@keyframes hitRing {
  from { opacity: 0; transform: scale(1.6); }
  to { opacity: 1; transform: scale(1); }
}

/* ---------- Below the image ---------- */
.below {
  text-align: center;
  padding: 18px 0 6px;
  min-height: 96px;
}
.instructions { margin: 0; color: var(--muted); }

.hint-offer {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--muted);
  animation: fadeIn 0.3s ease-out;
}
.dialog.all-done { width: min(92vw, 420px); padding: 30px 24px; text-align: center; }
.all-done-icon { font-size: 2.6rem; }
.all-done h2 { font-family: 'Black Ops One', system-ui, sans-serif; font-weight: 400; margin: 10px 0 8px; }
.all-done p { color: var(--muted); margin: 0 0 22px; }
.all-done .btn { min-width: 140px; }

.give-up {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--muted);
}
.give-up-confirm { display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 8px; }

/* Answer shown after giving up: neutral white ring, not the green "win" ring */
/* "Give up" answer ring: white with thin dark edges inside and out, so it shows on
   any photo (dark edges on white snow, white ring on dark woods). Sizes shrink when zoomed in. */
.marker-hit.revealed {
  --edge: calc(2px / var(--zoom, 1));
  border-color: #ffffff;
  box-shadow:
    0 0 0 var(--edge) rgba(0, 0, 0, 0.85),
    inset 0 0 0 var(--edge) rgba(0, 0, 0, 0.85),
    0 0 calc(10px / var(--zoom, 1)) calc(2px / var(--zoom, 1)) rgba(0, 0, 0, 0.45);
}
.result-text.gave-up strong { color: var(--text); }

/* Hint: outlines the quarter of the photo with the sniper. Only an outline, so the photo stays fully
   visible and clickable inside it; thin dark edges keep it visible on bright photos. */
.hint-area {
  position: absolute;
  box-sizing: border-box;
  border: calc(2px / var(--zoom, 1)) dashed #ffb547;
  border-radius: calc(10px / var(--zoom, 1));
  background: rgba(255, 181, 71, 0.05);
  box-shadow: 0 0 0 calc(1px / var(--zoom, 1)) rgba(0, 0, 0, 0.6), inset 0 0 0 calc(1px / var(--zoom, 1)) rgba(0, 0, 0, 0.6),
    inset 0 0 calc(24px / var(--zoom, 1)) rgba(255, 181, 71, 0.22), 0 0 calc(14px / var(--zoom, 1)) rgba(255, 181, 71, 0.35);
  animation: hintArea 0.5s ease-out;
}
@keyframes hintArea { from { opacity: 0; transform: scale(1.15); } }
.result-text { margin: 0 0 14px; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.result-text strong { color: rgb(var(--hit)); font-size: 1.35rem; margin-right: 6px; }
.result-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hud-credit { margin-top: -3px; color: var(--muted); font-size: 0.78rem; overflow-wrap: anywhere; }
.hud-credit a { color: var(--text); text-decoration: none; font-weight: 600; }
.hud-credit a:hover { text-decoration: underline; }

.btn {
  font: inherit;
  font-weight: 700;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  padding: 12px 26px;
  cursor: pointer;
  transition: transform 0.1s, border-color 0.15s, background 0.15s;
}
.btn:hover { border-color: var(--accent); }
.btn:active { transform: scale(0.97); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
  font-size: 1.05rem;
  padding: 13px 34px;
}
.btn-primary:hover { background: #95e6a6; }
.btn-small { padding: 7px 16px; font-size: 0.9rem; }
.btn-tiny { padding: 4px 12px; font-size: 0.8rem; }
.btn-ghost { background: transparent; color: var(--muted); }


/* ---------- Screen-edge glow ---------- */
.edge-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0;
}
.edge-glow.miss {
  box-shadow: inset 0 0 90px 28px rgba(var(--miss), 0.85);
  animation: flash 0.7s ease-out forwards;
}
.edge-glow.hit {
  box-shadow: inset 0 0 100px 30px rgba(var(--hit), 0.7);
  opacity: 1;
  animation: glowIn 0.4s ease-out, pulse 1.8s ease-in-out 0.4s infinite;
}
@keyframes flash {
  0% { opacity: 0; }
  12% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes glowIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.fireworks {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 60;
}

/* ---------- Phones ---------- */
@media (max-width: 640px) {
  .site-header { padding: 14px 16px; }
  .game { padding: 0 8px; }
  .hud { padding: 8px 12px; }
  .hud-title { font-size: 0.95rem; }
  .edge-glow.miss { box-shadow: inset 0 0 50px 14px rgba(var(--miss), 0.85); }
  .edge-glow.hit { box-shadow: inset 0 0 60px 18px rgba(var(--hit), 0.7); }
}

@media (prefers-reduced-motion: reduce) {
  .edge-glow.hit { animation: none; }
  .fade-in, .marker-hit, .hint-area { animation: none; }
}

/* ---------- Form pages (Puzzle Maker, Submit a photo) ---------- */
.form-page { max-width: 1180px; width: 100%; margin: 0 auto; padding: 0 24px 40px; }
.steps { color: var(--muted); line-height: 1.7; padding-left: 20px; }
.steps strong { color: var(--text); }
.fields { display: flex; gap: 12px; flex-wrap: wrap; margin: 16px 0; }
.fields label { display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; color: var(--muted); flex: 1 1 220px; }
.fields input {
  font: inherit; color: var(--text); background: var(--panel);
  border: 1px solid var(--panel-border); border-radius: 8px; padding: 10px 12px;
}
.fields input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.picker-board { border-radius: var(--radius); touch-action: none; width: fit-content; max-width: 100%; margin: 0 auto; }
.picker-board img { width: auto; max-width: 100%; max-height: 75vh; }
.picker-board img { cursor: crosshair; }
.picker-board:has(img[hidden]) { width: 100%; }
/* Zoom on the box-drawing pictures (picker-zoom.js) */
.pz-inner { position: relative; }
.pz-zoomed { overflow: auto !important; max-width: 100%; }
.pz-zoomed .pz-inner img { display: block; width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important; }
.pz-controls { display: flex; justify-content: center; gap: 6px; margin: 0 0 8px; }
.pz-controls .zoom-btn {
  min-width: 40px; height: 32px; padding: 0 10px; cursor: pointer; font: inherit; font-weight: 700; font-size: 1.1rem; line-height: 1;
  color: var(--text); background: var(--panel); border: 1px solid var(--panel-border); border-radius: 999px;
}
.pz-controls .zoom-btn:hover { border-color: var(--accent); }
.draw-box {
  position: absolute; border: 2px dashed rgb(var(--hit));
  background: rgba(var(--hit), 0.15); pointer-events: none;
}
.quality { margin: 0 0 16px; padding: 10px 14px; border-radius: 8px; font-size: 0.9rem; }
.quality.ok { color: #b9f5c6; background: rgba(var(--hit), 0.08); border: 1px solid rgba(var(--hit), 0.3); }
.quality.low { color: #ffe9a8; background: rgba(255, 216, 74, 0.08); border: 1px solid rgba(255, 216, 74, 0.35); }
.quality.bad { color: #ffb4b4; background: rgba(var(--miss), 0.08); border: 1px solid rgba(var(--miss), 0.4); }
.empty { padding: 60px 20px; text-align: center; color: var(--muted); line-height: 1.6; background: var(--panel); }
.page-title { font-family: 'Black Ops One', system-ui, sans-serif; font-weight: 400; margin: 8px 0 4px; }
.logo-link { color: inherit; text-decoration: none; }
.box-status { margin: 10px 0 0; color: rgb(var(--hit)); font-size: 0.9rem; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 20px; color: var(--muted); font-size: 0.9rem; line-height: 1.5; cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.submit-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.submit-msg { color: var(--muted); font-size: 0.9rem; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.btn-header { padding: 7px 16px; font-size: 0.9rem; text-decoration: none; }
.site-footer a { color: var(--muted); }
.footer-copy { display: block; margin-bottom: 4px; }
.footer-links { display: block; margin-top: 6px; }
.contact-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; background: var(--panel); border: 1px solid var(--panel-border); border-radius: 10px; }
.contact-email { flex: 1; font-weight: 700; user-select: all; overflow-wrap: anywhere; }
.contact-note { margin: 12px 0 0; }
.contact-note a { color: var(--accent); }
.agree-note { margin-top: 14px; font-size: 0.8rem; line-height: 1.5; }
.agree-note a { color: var(--accent); }
/* Privacy policy and terms pages */
.legal { max-width: 720px; line-height: 1.65; }
.legal h3 { margin: 26px 0 8px; font-family: 'Black Ops One', system-ui, sans-serif; font-weight: 400; font-size: 1.1rem; letter-spacing: 0.02em; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--accent); }
/* "🐞 Report a bug" link at the bottom of every page */
.bug-link { display: block; margin: 8px auto 0; padding: 4px 8px; font: inherit; font-size: 0.8rem; color: var(--muted); background: none; border: none; cursor: pointer; }
.bug-link:hover { color: var(--text); text-decoration: underline; }
.bug-text { width: 100%; margin: 0 0 10px; font: inherit; font-size: 0.95rem; color: var(--text); background: var(--panel); border: 1px solid var(--panel-border); border-radius: 10px; padding: 9px 12px; resize: vertical; }
.bug-text:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.bug-shot-btn { cursor: pointer; }
.bug-shot-name { margin-left: 8px; overflow-wrap: anywhere; }
.site-header > a.btn, .site-header > .reddit-link { white-space: nowrap; flex: none; }

/* ---------- Pop-up message ("toast") ---------- */
.toast {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 100;
  transform: translate(-50%, -50%);
  max-width: calc(100vw - 32px);
  width: max-content;
  padding: 20px 36px;
  border-radius: 20px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 1.25rem;
  text-align: center;
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(var(--hit), 0.5);
  pointer-events: none;
  /* pops in, stays briefly, then fades out over 2.5s */
  animation: toastIn 0.25s ease-out, toastOut 2.5s ease-in 0.6s forwards;
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, -50%) scale(0.9); } }
@keyframes toastOut { to { opacity: 0; } }

/* ---------- Accounts ---------- */
.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.account { position: relative; }
.account-btn { padding: 4px; border-radius: 50%; }
.avatar {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 0.95rem;
}
.account-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 70; min-width: 220px;
  display: flex; flex-direction: column; padding: 8px;
  background: #0d1710; border: 1px solid var(--panel-border); border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}
.account-menu[hidden] { display: none; }
.account-name { margin: 4px 10px 8px; color: var(--muted); font-size: 0.85rem; word-break: break-all; }
.account-menu a, .account-menu button {
  font: inherit; text-align: left; color: var(--text); background: none; border: none;
  padding: 10px; border-radius: 8px; text-decoration: none; cursor: pointer;
}
.account-menu a:hover, .account-menu button:hover { background: rgba(123, 216, 143, 0.1); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.auth-box { max-width: 420px; margin: 24px auto 40px; }
.auth-sub { margin-bottom: 20px; }
.auth-msg { min-height: 1.4em; margin-top: 12px; }
.auth-box .fields label { flex-basis: 100%; }
.pw-hint { font-size: 0.8rem; }
.btn-wide { width: 100%; }
.social { display: grid; gap: 10px; margin-bottom: 4px; }
.btn-social { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; }
.btn-google { background: #fff; color: #1f1f1f; border-color: #fff; }
.btn-google:hover { background: #f0f0f0; border-color: #f0f0f0; }
.btn-apple { background: #000; color: #fff; border-color: #444; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 0.85rem; margin: 10px 0 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--panel-border); }
.switch-form { margin-top: 18px; }
.link-btn { font: inherit; color: var(--accent); background: none; border: none; padding: 0; cursor: pointer; text-decoration: underline; }
@media (max-width: 640px) {
  .header-actions .btn-primary.btn-header { padding: 7px 12px; font-size: 0.85rem; }
}
.not-counted { display: block; margin-top: 6px; font-size: 0.85rem; color: var(--muted); }

/* ---------- Username ---------- */
.username-input { display: flex; align-items: center; background: var(--panel); border: 1px solid var(--panel-border); border-radius: 8px; }
.username-input:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }
.username-input .u-prefix { padding-left: 12px; color: var(--muted); font-weight: 600; }
.fields .username-input input { flex: 1; min-width: 0; border: none; background: none; padding-left: 2px; outline: none; }
.username-status { margin: -4px 0 14px; }
.username-status.ok { color: rgb(var(--hit)); }
.username-status.bad { color: #ffb4b4; }

/* ---------- Replays ---------- */
.played-badge {
  font-size: 0.75rem; font-weight: 600; white-space: nowrap;
  padding: 2px 9px; border-radius: 999px;
  color: var(--muted); border: 1px solid rgba(143, 163, 144, 0.4);
}
.played-badge.found { color: rgb(var(--hit)); border-color: rgba(var(--hit), 0.45); }

/* ---------- Zoom ---------- */
.board { touch-action: pan-y; }
.zoom-layer { position: relative; transform-origin: 0 0; will-change: transform; }
.zoom-layer.animate { transition: transform 0.18s ease-out; }
.board.dragging img { cursor: grabbing; }
/* Markers keep a readable size when zoomed in */
.marker-miss { scale: calc(1 / var(--zoom, 1)); }
.marker-hit { border-width: calc(3px / var(--zoom, 1)); }

.zoom-tip { white-space: nowrap; }


/* ---------- No page zoom on phones ----------
   Pinching zooms the puzzle photo only (see js/zoom.js and js/no-page-zoom.js).
   "manipulation" switches off double-tap zoom; scrolling still works everywhere. */
html { touch-action: manipulation; }
/* iPhones zoom the page when a text box with small text is tapped: 16px text prevents that */
@media (max-width: 900px) {
  input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="url"], select, textarea {
    font-size: 16px !important;
  }
}

/* ---------- Ranks and mascots ---------- */
.insignia { flex: none; display: block; }
/* No clipping: mascot badges draw their own rounded corners, and parts (like a rifle) may stick out */
.mascot { display: block; object-fit: contain; }

/* XP block in the stats panel */
.xp-block { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--panel-border); }
.xp-block .mascot { width: 64px; height: 64px; flex: none; transition: transform 0.15s; }
.xp-stand { display: none; }
.xp-block:hover .mascot { transform: scale(1.05); }
.xp-info { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.xp-rank { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 0.9rem; line-height: 1.2; }
.xp-bar { display: block; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.xp-fill { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #5fbf74, rgb(var(--hit))); transition: width 0.6s ease-out; }
.xp-text { font-size: 0.72rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.profile-link { display: block; margin-top: 14px; text-align: center; font-size: 0.85rem; font-weight: 600; color: var(--accent); text-decoration: none; }
.profile-link:hover { text-decoration: underline; }
.lb-link { margin-top: 6px; }
.profile .lb-link { margin: -8px 0 22px; }
/* ---------- Leaderboard ---------- */
.leaderboard { max-width: 620px; }
.lb-tabs { display: flex; gap: 8px; justify-content: center; margin: 4px 0 10px; }
.lb-tabs [aria-selected="true"] { border-color: var(--accent); color: var(--accent); background: rgba(123, 216, 143, 0.1); }
.lb-note { text-align: center; min-height: 1.2em; }
.lb-list { list-style: none; margin: 12px 0 22px; padding: 0; display: grid; gap: 6px; }
.lb-row {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  background: var(--panel); border: 1px solid var(--panel-border); border-radius: 12px; font-variant-numeric: tabular-nums;
}
.lb-row.top { border-color: rgba(224, 181, 74, 0.45); }
.lb-row.me { border-color: var(--accent); background: rgba(123, 216, 143, 0.08); }
.lb-pos { width: 38px; flex: none; font-weight: 700; text-align: center; color: var(--muted); }
.lb-row.top .lb-pos { font-size: 1.3rem; }
.lb-name { flex: 1; min-width: 0; font-weight: 700; color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
.lb-name:hover { text-decoration: underline; }
.lb-level { font-size: 0.75rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.lb-xp { font-weight: 700; color: var(--accent); white-space: nowrap; }
.lb-gap { text-align: center; color: var(--muted); }
.lb-guest { text-align: center; margin-bottom: 16px; }
.lb-guest a { color: var(--accent); }
.xp-gain { display: inline-block; margin-left: 10px; padding: 2px 10px; border-radius: 999px; font-size: 0.85rem; font-weight: 700; color: var(--accent-ink); background: var(--accent); animation: toastIn 0.3s ease-out; }
.promo { display: flex; align-items: center; gap: 14px; text-align: left; font-weight: 600; }
.promo strong { font-size: 1.2rem; }
.promo small { font-weight: 600; }
.toast .insignia { filter: drop-shadow(0 0 1px rgba(0,0,0,0.4)); }
@media (max-width: 900px) {
  .xp-block { margin-bottom: 10px; padding-bottom: 10px; }
  .profile-link { margin-top: 10px; }
}

/* ---------- Profile page ---------- */
.profile { max-width: 860px; }
/* The forest scene: same phone-like size on every screen, soldier in the middle of the
   clearing, name and rank on top, stats on the sides, XP bar at the bottom */
.profile-scene {
  position: relative; overflow: hidden; width: min(100%, 520px); aspect-ratio: 3 / 4; margin: 4px auto 18px;
  border-radius: var(--radius); border: 1px solid var(--panel-border);
  background: #1d2b1a url(../assets/backgrounds/forest.webp) center 60% / cover no-repeat;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}
/* "▶ Back to the game": a chunky mobile-game button that pops out, with the XP bar's glow and shine */
.play-cta {
  position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden;
  width: min(100%, 520px); min-height: 60px; margin: 0 auto 22px; padding: 0 20px;
  font-family: 'Black Ops One', system-ui, sans-serif; font-size: 1.35rem; letter-spacing: 0.04em; text-decoration: none;
  color: #fff; text-shadow: 0 2px 0 rgba(0, 60, 20, 0.55);
  background: linear-gradient(180deg, #7ff59a 0%, #3fd468 45%, #22a94b 100%);
  border: none; border-radius: 18px;
  box-shadow: 0 6px 0 #157a34, 0 10px 18px rgba(0, 0, 0, 0.5), 0 0 12px rgba(var(--hit), 0.22), inset 0 2px 0 rgba(255, 255, 255, 0.3);
  animation: ctaGlow 3.4s ease-in-out infinite;
  transition: transform 0.08s, box-shadow 0.08s;
}
.play-cta span { position: relative; z-index: 1; }
/* The light sweeping across, like the XP bar */
.play-cta::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.25) 50%, transparent 62%);
  background-size: 250% 100%; background-repeat: no-repeat;
  animation: xpShine 4.5s ease-in-out infinite;
}
.play-cta:hover { filter: brightness(1.06); }
/* Pressed: the button sinks into its base */
.play-cta:active { transform: translateY(5px); box-shadow: 0 1px 0 #157a34, 0 4px 10px rgba(0, 0, 0, 0.5), 0 0 10px rgba(var(--hit), 0.2), inset 0 2px 0 rgba(255, 255, 255, 0.3); }
.play-cta:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@keyframes ctaGlow { 50% { box-shadow: 0 6px 0 #157a34, 0 10px 18px rgba(0, 0, 0, 0.5), 0 0 20px rgba(var(--hit), 0.38), inset 0 2px 0 rgba(255, 255, 255, 0.3); } }
@media (prefers-reduced-motion: reduce) { .play-cta, .play-cta::after { animation: none; } }
/* Darker at the top and bottom so the text stays easy to read */
.profile-scene::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 10, 6, 0.75) 0%, rgba(5, 10, 6, 0) 24%, rgba(5, 10, 6, 0) 70%, rgba(5, 10, 6, 0.85) 100%);
}
.profile-scene.not-found .profile-rank, .profile-scene.not-found .scene-stats, .profile-scene.not-found .scene-bottom { display: none; }
.scene-top { position: absolute; top: 0; left: 0; right: 0; padding: 16px 16px 0; text-align: center; z-index: 2; }
.profile-name { margin: 0; font-family: 'Black Ops One', system-ui, sans-serif; font-weight: 400; font-size: 1.8rem; word-break: break-all; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8); }
.profile-rank { margin: 6px 0 0; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 1.05rem; font-weight: 700; text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8); }
.scene-soldier {
  position: absolute; z-index: 1; bottom: 15%; left: 50%; height: 56%; width: auto; max-width: none;
  transform: translateX(calc(var(--foot, 0.5) * -100%));
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.45));
}
.scene-shadow {
  position: absolute; z-index: 1; bottom: 13%; left: 50%; width: 34%; height: 5%; transform: translateX(-50%);
  border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, 0.55), transparent);
}
.scene-stats { position: absolute; z-index: 2; top: 24%; display: flex; flex-direction: column; gap: 8px; }
.scene-stats.left { left: 10px; }
.scene-stats.right { right: 10px; }
.scene-stat {
  display: flex; flex-direction: column; align-items: center; min-width: 74px; padding: 6px 8px;
  background: rgba(8, 16, 10, 0.6); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 10px;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.scene-stat .stat-num { font-size: 1.15rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.scene-stat .stat-name { font-size: 0.68rem; color: #c9d6c9; text-transform: uppercase; letter-spacing: 0.05em; }
.scene-stat.found .stat-num { color: rgb(var(--hit)); }
.scene-bottom { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 0 18px 14px; text-align: center; }
.scene-bottom .xp-text { margin: 6px 0 0; color: #dfe8df; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9); }
/* Profile XP bar: soft breathing glow and a light sweeping across */
.xp-bar-big {
  height: 14px; position: relative; overflow: visible;
  box-shadow: inset 0 0 0 1px rgba(var(--hit), 0.18);
}
.xp-bar-big .xp-fill {
  position: relative; overflow: hidden;
  background: linear-gradient(90deg, #2f8a45, #5fbf74 55%, rgb(var(--hit)));
  box-shadow: 0 0 10px rgba(var(--hit), 0.55), 0 0 22px rgba(var(--hit), 0.25);
  animation: xpGlow 2.6s ease-in-out infinite;
}
.xp-bar-big .xp-fill::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.6) 50%, transparent 65%);
  background-size: 250% 100%; background-repeat: no-repeat;
  animation: xpShine 3.2s ease-in-out infinite;
}
@keyframes xpGlow {
  50% { box-shadow: 0 0 14px rgba(var(--hit), 0.8), 0 0 32px rgba(var(--hit), 0.4); filter: brightness(1.12); }
}
@keyframes xpShine { 0% { background-position: 160% 0; } 60%, 100% { background-position: -60% 0; } }
@media (prefers-reduced-motion: reduce) {
  .xp-bar-big .xp-fill, .xp-bar-big .xp-fill::after { animation: none; }
}
.profile .xp-text { margin: 0; font-size: 0.85rem; }
.guest-note { margin: 4px 0 0; line-height: 1.5; }
.guest-note a { color: var(--accent); }
.profile-section { margin-bottom: 28px; }
.section-title { margin: 0 0 12px; font-family: 'Black Ops One', system-ui, sans-serif; font-weight: 400; font-size: 1.15rem; letter-spacing: 0.03em; }
.my-puzzles { display: grid; gap: 10px; margin-top: 10px; }
.blocked-list { display: grid; gap: 8px; margin-top: 10px; }
.blocked-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; background: var(--panel); border: 1px solid var(--panel-border); border-radius: 10px; }
.blocked-name { font-weight: 700; overflow-wrap: anywhere; }
.delete-account { margin-top: 28px; }
.btn-delete { color: #ffb4b4; border-color: rgba(255, 90, 90, 0.45); background: transparent; }
.btn-delete:hover { border-color: #ff5a5a; background: rgba(255, 90, 90, 0.1); }
.btn-delete:disabled { opacity: 0.45; cursor: not-allowed; }
.del-photos { display: flex; align-items: center; gap: 8px; margin: 4px 0 12px; cursor: pointer; }
.del-photos input { width: 18px; height: 18px; accent-color: #ff5a5a; }
#del-confirm { width: 100%; margin-top: 6px; font: inherit; color: var(--text); background: var(--panel); border: 1px solid var(--panel-border); border-radius: 10px; padding: 9px 12px; }
#del-confirm:focus { outline: 2px solid #ff5a5a; outline-offset: 1px; }
.mp-title { font-weight: 700; word-break: break-word; }
.mp-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; color: var(--text); text-decoration: none;
  background: var(--panel); border: 1px solid var(--panel-border); border-radius: 12px;
}
.mp-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mp-row.pending .mp-title { flex: 1; min-width: 0; }
.mp-stats { color: var(--muted); font-size: 0.82rem; font-variant-numeric: tabular-nums; }
a.mp-row:hover { border-color: var(--accent); }
.mp-hearts { color: #ff6b81; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mp-row .chev { color: var(--muted); }
.mp-status { flex: none; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 2px 8px; border-radius: 999px; }
.mp-status.pending { color: #ffe9a8; border: 1px solid rgba(255, 216, 74, 0.4); }
.credit-signed-in { flex: 1 1 220px; margin: 0; align-self: center; line-height: 1.5; }
@media (max-width: 640px) {
}
/* Promotion pop-up: dark with a gold edge, so the insignia stands out */
.toast:has(.promo) { background: #0d1710; color: var(--text); border: 2px solid #e0b54a; box-shadow: 0 16px 60px rgba(0, 0, 0, 0.75), 0 0 40px rgba(224, 181, 74, 0.35); }
.promo strong { color: #e0b54a; }
.promo .mascot { width: 64px; height: 64px; }
/* In the narrow side panel (computers), stack the mascot above the rank and XP bar */
@media (min-width: 901px) {
  .play-area { --side-width: 210px; }
  .xp-block { flex-direction: column; text-align: center; gap: 10px; }
  .xp-block .mascot { display: none; }
  /* The full-body soldier, standing on a soft shadow */
  .xp-stand { display: block; position: relative; width: 100%; height: 150px; }
  .xp-stand::after {
    content: ''; position: absolute; left: 50%; bottom: -4px; width: 70px; height: 12px; transform: translateX(-50%);
    border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, 0.55), transparent);
  }
  .xp-soldier {
    position: absolute; z-index: 1; bottom: 0; left: 50%; height: 100%; width: auto; max-width: none;
    transform: translateX(calc(var(--foot, 0.5) * -100%)); transition: transform 0.15s;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.45));
  }
  .xp-soldier:not([src]) { visibility: hidden; }
  .xp-block:hover .xp-soldier { transform: translateX(calc(var(--foot, 0.5) * -100%)) scale(1.04); transform-origin: bottom; }
  .xp-info { width: 100%; }
  .xp-rank { justify-content: center; }
}
/* "Level N" tag next to the rank name */
.xp-level {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em;
  color: var(--accent-ink); background: var(--accent); padding: 2px 8px; border-radius: 999px;
}
.xp-info .xp-level { align-self: center; }
@media (max-width: 900px) { .xp-info .xp-level { align-self: flex-start; } }
.profile-rank .xp-level { font-size: 0.8rem; }
/* Username under the mascot, above the rank */
.xp-name { font-weight: 700; font-size: 1rem; line-height: 1.2; word-break: break-all; }
@media (min-width: 901px) { .xp-name { text-align: center; } }

/* ---------- Comments ---------- */
.comments { margin: 18px auto 0; max-width: 620px; text-align: left; }
.react-btn {
  display: inline-flex; align-items: center; gap: 4px; min-height: 30px; min-width: 30px; padding: 3px 8px;
  justify-content: center; cursor: pointer; font: inherit; font-size: 0.85rem; font-weight: 700; color: var(--text);
  background: transparent; border: 1px solid transparent; border-radius: 999px; font-variant-numeric: tabular-nums;
}
.react-btn svg { fill: none; stroke-width: 2; stroke-linejoin: round; transition: fill 0.15s; }
.heart-btn svg { stroke: #ff6b81; }
.down-btn svg { stroke: var(--muted, #9aa59c); }
.react-btn:hover { background: rgba(255, 255, 255, 0.06); }
.heart-btn.on { background: rgba(255, 107, 129, 0.12); border-color: rgba(255, 107, 129, 0.45); }
.heart-btn.on svg { fill: #ff6b81; }
.down-btn.on { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.25); }
.down-btn.on svg { fill: var(--muted, #9aa59c); }
.react-btn.pop svg { animation: reactPop 0.35s ease-out; }
@keyframes reactPop { 50% { transform: scale(1.35); } }
.comments-locked {
  display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 18px; padding: 16px 18px;
  color: var(--muted); font-size: 0.92rem; text-align: center;
  background: var(--panel); border: 1px dashed var(--panel-border); border-radius: 12px;
}
.comments-locked strong { color: var(--text); }
.lock-icon { font-size: 1.2rem; }
.c-op {
  margin-left: 6px; padding: 0 6px; border-radius: 4px; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.04em;
  line-height: 1.5; color: #fff; background: #3d8bfd; vertical-align: 1px;
}
.react-btn:disabled { cursor: default; opacity: 0.85; }
.react-btn:disabled:hover { background: transparent; }
.comments-title { margin: 0 0 10px; font-size: 1rem; font-weight: 700; }
.c-form { display: flex; gap: 8px; margin-bottom: 10px; }
.c-form input {
  flex: 1; min-width: 0; font: inherit; font-size: 0.95rem; color: var(--text);
  background: var(--panel); border: 1px solid var(--panel-border); border-radius: 999px; padding: 9px 14px;
}
.c-form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.c-note { margin: 0 0 10px; font-size: 0.85rem; color: var(--muted); }
.c-note a { color: var(--accent); font-weight: 600; }
.c-list { display: grid; gap: 8px; }
.c-item { padding: 6px 0; }
.c-head { display: flex; align-items: center; gap: 8px; }
.c-user { font-weight: 700; font-size: 0.85rem; color: var(--text); text-decoration: none; }
a.c-user[href]:hover { text-decoration: underline; }
.c-time { color: var(--muted); font-size: 0.75rem; }
.c-actions { margin-left: auto; display: flex; gap: 2px; }
.c-btn { font: inherit; font-size: 0.85rem; line-height: 1; color: var(--muted); background: none; border: none; padding: 4px 6px; border-radius: 6px; cursor: pointer; }
.c-btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.c-btn:disabled { cursor: default; color: rgb(var(--hit)); }
.c-body { margin: 4px 0 0; font-size: 0.95rem; line-height: 1.4; overflow-wrap: anywhere; }
/* Reddit-style threads and votes */
.c-list { gap: 6px; }
.c-thread { display: grid; gap: 6px; }
.c-children { display: grid; gap: 2px; margin-left: 6px; padding-left: 12px; border-left: 2px solid var(--panel-border); }
.c-children.flat { margin-left: 0; padding-left: 0; border-left: none; }
.c-item.deleted .c-user, .c-item.deleted .c-body { color: var(--muted); font-style: italic; }
.c-foot { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.c-vote { display: inline-flex; align-items: center; gap: 2px; }
.c-score { min-width: 18px; text-align: center; font-size: 0.85rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.c-score.up, .c-up.on { color: #ff8a3d; }
.c-score.down, .c-down.on { color: #7a9cff; }
.c-vote .c-btn:disabled { opacity: 0.35; cursor: default; }
.c-actions { margin-left: 0; display: flex; gap: 2px; }
.c-reply { margin: 0; }
.c-reply .c-reply-note { flex-basis: 100%; }
.c-reply { flex-wrap: wrap; }
.c-vote[hidden] { display: none; }
/* The green "found it" glow fades out after the fireworks (see GLOW_SECONDS in game.js) */
.edge-glow.hit.fading { animation: glowOut 1s ease-out forwards; }
@keyframes glowOut { from { opacity: 1; } to { opacity: 0; } }
/* Comment icons: red trash, yellow report flag */
.c-btn svg { display: block; }
.c-btn.c-del { color: #ff5a5a; }
.c-btn.c-report { color: #ffd84a; }
.c-btn.c-del:hover { color: #ff7b7b; background: rgba(255, 90, 90, 0.12); }
.c-btn.c-report:hover { color: #ffe47a; background: rgba(255, 216, 74, 0.12); }
/* Account icon showing the player's rank insignia */
.avatar.has-rank { background: #0d1710; box-shadow: 0 0 0 2px var(--accent); }
.avatar.has-rank .insignia { width: 22px; height: 22px; }
/* Rank insignia + level next to each commenter's name */
.c-rank { font-size: 0.7rem; font-weight: 700; color: var(--muted); }
/* Round badge before a commenter's name (same look as the account icon; avatar art goes here later) */
.c-avatar {
  display: inline-grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: #0d1710; box-shadow: 0 0 0 1.5px var(--accent);
}
.c-avatar .insignia { width: 16px; height: 16px; }

/* ---------- Report a photo ---------- */
.report-photo-btn { display: inline-flex; padding: 4px; border: none; border-radius: 6px; background: none; color: #ffd84a; cursor: pointer; opacity: 0.75; }
.report-photo-btn:hover, .report-photo-btn:focus-visible { opacity: 1; background: rgba(255, 216, 74, 0.12); }
.dialog {
  width: min(92vw, 380px); padding: 20px; border-radius: 16px; color: var(--text);
  background: #0d1710; border: 1px solid var(--panel-border); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}
.dialog::backdrop { background: rgba(0, 0, 0, 0.6); }
.dialog-title { margin: 0 0 14px; font-size: 1.05rem; }
.report-reasons { display: grid; gap: 6px; margin-bottom: 12px; }
.report-reasons label {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; cursor: pointer;
  background: var(--panel); border: 1px solid var(--panel-border);
}
.report-reasons label:has(input:checked) { border-color: var(--accent); background: rgba(123, 216, 143, 0.1); }
.report-reasons input { accent-color: var(--accent); width: 16px; height: 16px; }
#report-details { width: 100%; font: inherit; font-size: 0.95rem; color: var(--text); background: var(--panel); border: 1px solid var(--panel-border); border-radius: 10px; padding: 9px 12px; }
#report-details:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.report-msg { min-height: 1.2em; margin: 8px 0 0; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.report-signin a { color: var(--accent); font-weight: 600; }
