/* Chappri Spotter — absurdly professional surveillance terminal for unserious data. */

:root {
  --ink: #e9efed;
  --muted: #85938f;
  --panel: #0f1615;
  --deep: #070c0b;
  --line: #22302d;
  --lime: #d3ff36;
  --red: #ff4d40;
  --amber: #ffbf3f;
  --pink: #ff2fb0;
  --nsfw-hot: #ff007f;
  --mono: 'DM Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--deep);
  color: var(--ink);
  font: 14px 'Space Grotesk', sans-serif;
  overflow: hidden;
  transition: background 0.3s, color 0.3s;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  height: 100dvh;
}

button:focus { outline: 2px solid var(--lime); outline-offset: 2px; }
button:focus:not(:focus-visible) { outline: none; }

/* 18+ NSFW Uncensored Mode Theme */
body.nsfw-mode {
  --lime: #ff2fb0;
  --red: #ff0055;
  --pink: #ff007f;
  --line: #3d1b32;
  --deep: #0a0408;
  --panel: #140710;
}

body.nsfw-mode header {
  background: #12050e;
  border-bottom: 1px solid #5a153f;
  box-shadow: 0 0 20px #ff2fb015;
}

body.nsfw-mode .brand-mark {
  background: var(--pink);
  color: #fff;
  box-shadow: 0 0 10px var(--pink);
}

h1, h2, h3, h4 { margin: 0; }
p { margin: 0; }
button { font-family: inherit; }

.scanlines {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  opacity: 0.05;
  background: repeating-linear-gradient(0deg, transparent 0 3px, #fff 4px);
  mix-blend-mode: overlay;
}

.hidden { display: none !important; }

.eyebrow, .card-label, .field-label, .section-title {
  font: 10px var(--mono);
  letter-spacing: 1.2px;
  color: var(--muted);
  text-transform: uppercase;
}

.field-label { margin: 22px 0 10px; color: var(--lime); }
.field-label em { color: var(--muted); font-style: normal; }
.muted { color: var(--muted); line-height: 1.5; }
.empty { color: var(--muted); font-size: 12px; line-height: 1.6; padding: 18px 2px; }
.fineprint { font: 9px var(--mono); color: #5d6b67; margin-top: 14px; line-height: 1.6; }

/* ---------------- header ---------------- */

header {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  background: #0a100f;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 2000;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 12px;
  line-height: 0.95;
  letter-spacing: 1.5px;
  flex: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: var(--lime);
  color: #07100d;
  font: 700 11px var(--mono);
  letter-spacing: -1px;
  clip-path: polygon(15% 0, 100% 0, 100% 82%, 84% 100%, 0 100%, 0 15%);
}

sup { color: var(--lime); font-size: 7px; }

/* Location Search Container */
.search-container {
  position: relative;
  flex: 0 1 340px;
  min-width: 180px;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  background: #0c1413;
  border: 1px solid var(--line);
  padding: 6px 10px;
  gap: 8px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.search-input-wrap:focus-within {
  border-color: var(--lime);
  box-shadow: 0 0 12px #d3ff3622;
}

.search-icon { font-size: 13px; opacity: 0.8; flex: none; }

.search-input-wrap input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--ink);
  font: 11px var(--mono);
  min-width: 0;
}

.search-input-wrap input::placeholder {
  color: #647370;
  font-size: 10.5px;
}

.search-clear {
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 16px;
  cursor: pointer;
  padding: 0 4px;
}

.search-clear:hover { color: var(--red); }

.search-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #091110;
  border: 1px solid var(--lime);
  box-shadow: 0 12px 30px #000c;
  max-height: 280px;
  overflow-y: auto;
  z-index: 2500;
  backdrop-filter: blur(8px);
}

.search-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-bottom: 1px solid #162220;
  cursor: pointer;
  transition: background 0.12s;
}

.search-item:hover {
  background: #14221f;
}

.search-item-icon { font-size: 14px; flex: none; }

.search-item-info { flex: 1; min-width: 0; }
.search-item-info b { display: block; font-size: 11.5px; letter-spacing: 0.4px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-item-info span { font: 8.5px var(--mono); color: var(--muted); }

.search-item-action {
  font: 9px var(--mono);
  color: var(--lime);
  font-style: normal;
  flex: none;
}

.search-empty {
  padding: 12px;
  font: 10px var(--mono);
  color: var(--muted);
  text-align: center;
}

.ticker {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  font: 10px var(--mono);
  letter-spacing: 1px;
  color: #9fb0ab;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 0 14px;
  height: 100%;
}

.ticker i, .pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px var(--lime);
  flex: none;
  animation: blink 1.6s infinite;
}

.ticker span {
  transition: opacity 0.25s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-actions { display: flex; gap: 8px; align-items: center; flex: none; }

/* 18+ NSFW Toggle Button */
.nsfw-wrap {
  position: relative;
  flex: none;
}
.nsfw-toggle {
  background: #2a1020;
  border: 1px solid #ff2fb0;
  color: #ff8ad0;
  padding: 8px 11px;
  font: 700 9.5px var(--mono);
  letter-spacing: 0.8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 1;
  filter: none;
  box-shadow: 0 0 10px #ff2fb055;
  transition: border-color 0.15s, box-shadow 0.15s, color 0.15s, background 0.15s;
}
.nsfw-toggle:hover {
  color: #fff;
  border-color: #ff8ad0;
  background: #41142f;
  box-shadow: 0 0 16px #ff2fb088;
}
.nsfw-toggle.locked {
  cursor: pointer;
}
.nsfw-short { display: none; }
.nsfw-hint {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  width: max-content;
  max-width: 230px;
  padding: 8px 10px;
  background: #1a0d16;
  border: 1px solid #ff2fb0;
  color: #ffd7eb;
  font: 600 10px 'Space Grotesk', sans-serif;
  letter-spacing: 0.2px;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.18s, transform 0.18s;
  box-shadow: 0 10px 24px #0009;
}
.nsfw-hint.show {
  opacity: 1;
  transform: none;
}

@keyframes pulseNeon {
  0%, 100% { box-shadow: 0 0 12px #ff2fb077; }
  50% { box-shadow: 0 0 22px #ff2fb0cc; }
}

/* Sound FX Toggle */
.sound-toggle {
  background: #101918;
  border: 1px solid var(--line);
  color: var(--ink);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.12s;
}

.sound-toggle:hover {
  border-color: var(--lime);
}

.sound-toggle.muted {
  opacity: 0.5;
  filter: grayscale(1);
}

.live-pill { display: flex; align-items: center; gap: 7px; color: var(--muted); font: 9px var(--mono); }
.live-pill i, .sidebar-title i, .live-fight-note i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 9px var(--red); animation: blink 1.2s infinite; }

.report-button {
  border: 0;
  background: var(--lime);
  color: #08120e;
  padding: 11px 15px;
  font-weight: 700;
  letter-spacing: 0.6px;
  cursor: pointer;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: transform 0.12s, background 0.12s;
}

.report-button:hover { background: #e6ff7c; transform: translateY(-1px); }
.report-button:active { transform: translateY(1px); }
.report-short, .locate-short, .fight-short { display: none; }

/* ---------------- layout ---------------- */

main { height: calc(100dvh - 64px); flex: 1; min-height: 0; display: flex; }

.sidebar {
  width: 292px;
  flex: none;
  border-right: 1px solid var(--line);
  background: #0a100f;
  padding: 14px 13px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
}

.sidebar-title { display: flex; gap: 8px; align-items: center; font: 10px var(--mono); color: var(--ink); letter-spacing: 1px; padding: 4px 2px 0; }
.sidebar-close, .feed-dock, .feed-scrim { display: none; }

.agent-card {
  border: 1px solid var(--line);
  background: var(--panel);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  font: 8.5px var(--mono);
  color: var(--muted);
  flex-wrap: wrap;
}
.agent-card span + span { border-left: 1px solid var(--line); padding-left: 8px; }
.agent-card b { color: var(--lime); }
.combo { color: var(--pink); }
.nsfw-pill { color: #ff2fb0; font-weight: 700; }

.feed { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; }
.section-title {
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
}
.feed .section-title { margin-top: 0; }
.section-title span { color: var(--red); animation: blink 1.6s infinite; }

.feed-item { display: flex; gap: 9px; padding: 11px 2px; border-bottom: 1px solid #172120; cursor: pointer; transition: background 0.12s; }
.feed-item:hover { background: #101917; }
.feed-item.nsfw-item { border-left: 2px solid var(--pink); padding-left: 6px; }
.feed-item > img { width: 44px; height: 44px; object-fit: cover; image-rendering: pixelated; border: 1px solid var(--line); flex: none; }
.feed-emoji { width: 38px; display: grid; place-items: center; font-size: 22px; flex: none; }
.feed-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px var(--lime); margin-top: 5px; flex: none; }
.feed-dot.nsfw-dot { background: var(--pink); box-shadow: 0 0 8px var(--pink); }
.feed-item b { font-size: 11.5px; letter-spacing: 0.3px; }
.nsfw-tag { font-style: normal; background: #3d0d29; color: #ff8ad0; padding: 1px 4px; font-size: 8px; font-family: var(--mono); margin-left: 4px; }
.feed-item p { font-size: 11px; color: #9fada9; margin: 2px 0; }
.feed-item small { font: 9px var(--mono); color: #5f6d69; }

.elsewhere-card {
  margin-top: 10px;
  padding: 12px;
  border: 1px dashed #3a4a46;
  background: #101917;
}
.elsewhere-card b { display: block; font-size: 13px; margin-bottom: 6px; }
.elsewhere-card p { margin: 0 0 10px; color: #9fada9; font-size: 12px; line-height: 1.45; }
.elsewhere-go {
  width: 100%;
  border: 1px solid var(--lime);
  background: #152019;
  color: var(--lime);
  min-height: 36px;
  font: 700 10px var(--mono);
  cursor: pointer;
}
.elsewhere-go:hover { background: var(--lime); color: #07100d; }

.area-kicker {
  font: 700 10px var(--mono);
  letter-spacing: 1.2px;
  color: var(--lime);
  padding: 4px 0 8px;
}
.boring-banner {
  margin: 0 0 10px;
  padding: 11px 12px;
  border: 1px dashed #5a4a16;
  background: #16140c;
}
.boring-banner b { display: block; color: var(--amber); font-size: 12px; margin-bottom: 5px; letter-spacing: 0.3px; }
.boring-banner p { margin: 0; color: #c4b48a; font-size: 12px; line-height: 1.45; }

.privacy-note { font: 9px var(--mono); color: #6d7b77; border-top: 1px solid var(--line); padding-top: 12px; line-height: 1.6; }
.privacy-note span { color: #4c5955; }
.reset-link { display: block; margin-top: 8px; background: none; border: 0; padding: 0; color: #4c5955; font: 9px var(--mono); text-decoration: underline; cursor: pointer; }
.reset-link:hover { color: var(--red); }

/* ---------------- map ---------------- */

.stage { position: relative; flex: 1; min-width: 0; }
#map { height: 100%; width: 100%; background: #101917; }
#map.picking { cursor: crosshair; }
.leaflet-tile { filter: grayscale(1) sepia(0.34) hue-rotate(96deg) saturate(0.65) brightness(0.34) contrast(1.25); }
.leaflet-control-attribution { display: none; }
.leaflet-container { font-family: 'Space Grotesk', sans-serif; }
.leaflet-bar a { background: #101a18 !important; color: var(--lime) !important; border-color: var(--line) !important; }

.leaflet-heat-pane { filter: blur(26px) saturate(1.5); opacity: 0.62; pointer-events: none; }

.map-title, .control, .map-legend {
  background: #0a1211ee;
  border: 1px solid var(--line);
  backdrop-filter: blur(4px);
}

.map-title {
  position: absolute;
  z-index: 700;
  top: 16px;
  left: 16px;
  padding: 10px 13px;
  font: 11px var(--mono);
  letter-spacing: 1.1px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.map-title small { color: var(--lime); font-size: 9px; }

.map-controls { position: absolute; z-index: 700; top: 16px; right: 16px; display: flex; gap: 7px; align-items: stretch; }
.gps-live-pill {
  position: absolute;
  z-index: 700;
  top: 58px;
  right: 16px;
  background: #0a1210ee;
  border: 1px solid var(--lime);
  color: var(--lime);
  font: 8px var(--mono);
  letter-spacing: 0.6px;
  padding: 5px 8px;
  display: flex;
  gap: 6px;
  align-items: center;
}
.gps-live-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  animation: blink 1s infinite;
}
.gps-live-pill.hidden { display: none; }
.control { padding: 8px 10px; color: var(--muted); font: 9px var(--mono); letter-spacing: 1px; cursor: pointer; }
.control:hover { border-color: var(--lime); color: var(--lime); }
.control.on { border-color: var(--lime); color: var(--lime); background: #16210f; }
.control select {
  display: block;
  margin-top: 4px;
  background: transparent;
  border: 0;
  color: var(--lime);
  font: 11px var(--mono);
  cursor: pointer;
}
.control select option { background: #0f1615; }
.filter-control { border-color: #506224; box-shadow: 0 0 24px #d3ff3610; }
.locate-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-color: var(--lime);
  background: #15220d;
  color: #e7ff9c;
  box-shadow: 0 0 0 1px #d3ff3644, 0 0 18px #d3ff3650;
  font-weight: 700;
  animation: locateGlow 1.8s ease-in-out infinite;
}
.locate-control:hover { background: var(--lime); color: #08120e; }
.locate-icon { display: grid; place-items: center; width: 19px; height: 19px; font-size: 15px; filter: drop-shadow(0 0 5px #d3ff36); }
@keyframes locateGlow { 50% { box-shadow: 0 0 0 3px #d3ff3622, 0 0 25px #d3ff3690; } }

.map-legend {
  position: absolute;
  z-index: 700;
  bottom: 16px;
  left: 16px;
  padding: 9px 11px;
  display: flex;
  gap: 12px;
  align-items: center;
  font: 9px var(--mono);
  color: #a9b6b2;
  letter-spacing: 0.8px;
}
.map-legend b { color: var(--lime); }
.map-legend i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; }
.legend-leader { color: var(--amber); }
.legend-nsfw { color: var(--pink); font-weight: 700; }

/* characters on the map */

.leaflet-pane.leaflet-chars-pane,
.leaflet-pane.leaflet-fights-pane,
.leaflet-pane.leaflet-sightings-pane,
.leaflet-pane.leaflet-gps-pane,
.leaflet-pane.leaflet-heat-pane {
  overflow: visible !important;
}
.char-icon { background: none !important; border: 0 !important; pointer-events: auto; }
.char-body { position: relative; width: var(--size); height: var(--size); }

.char-body img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 6px #000a);
  transform-origin: 50% 100%;
  pointer-events: auto;
  cursor: pointer;
}

.char-icon.chill .char-body img { animation: bob 4.6s ease-in-out infinite; }
.char-icon.idle .char-body img { animation: bob 3.4s ease-in-out infinite; }
.char-icon.hype .char-body img { animation: hype 1.5s ease-in-out infinite; }
.char-icon.rage .char-body img { animation: rage 0.5s linear infinite; }
.char-icon.boss .char-body img { animation: rage 0.28s linear infinite; filter: drop-shadow(0 0 14px var(--pink)) drop-shadow(0 6px 6px #000a); }

.char-tag {
  position: absolute;
  left: 50%;
  bottom: -13px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  background: #060b0af0;
  border: 1px solid var(--line);
  padding: 2px 5px;
  font: 8px var(--mono);
  letter-spacing: 0.6px;
  color: #c3cfcb;
}
.char-tag em { font-style: normal; font-weight: 700; }
.char-icon.fighting { opacity: 0.28; transition: opacity 0.25s; }
.char-tag.mini b { display: none; }
.char-icon:hover .char-tag.mini b { display: inline; }
.small-zoom .char-tag { display: none; }

.char-shout {
  position: absolute;
  left: 62%;
  top: -14px;
  white-space: nowrap;
  background: #fff;
  color: #0a0f0e;
  font: 700 9px 'Space Grotesk';
  padding: 5px 7px;
  box-shadow: 3px 3px var(--red);
  transform: rotate(-3deg) scale(0);
  transform-origin: 0 100%;
  transition: transform 0.18s;
  pointer-events: none;
}
.char-body:hover .char-shout, .char-icon.selected .char-shout, .char-shout.forced { transform: rotate(-3deg) scale(1); }
.char-icon.selected .char-body img { filter: drop-shadow(0 0 16px var(--lime)) drop-shadow(0 8px 8px #000a); }
.char-icon.selected .char-tag { font-size: 9px; padding: 3px 6px; border-color: var(--lime); }
.small-zoom .char-icon.selected .char-tag { display: flex; }
.char-body .crown { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); font-size: 15px; font-style: normal; }
.char-body.pop { animation: pop 0.7s ease; }

/* ---------- GPS Radar Marker ---------- */

.gps-marker-icon { background: none !important; border: 0 !important; pointer-events: none; }
.user-gps-pulse { position: relative; width: 40px; height: 40px; }
.gps-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #00ffff;
  box-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff;
  border: 2px solid #fff;
  z-index: 3;
}

.gps-radar-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #00ffff;
  animation: radarPulse 2s ease-out infinite;
  pointer-events: none;
}
.gps-radar-ring.ring2 { animation-delay: 1s; }

.gps-label {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: #00ffff;
  color: #061110;
  font: 700 8px var(--mono);
  padding: 2px 5px;
  border-radius: 2px;
  box-shadow: 0 2px 6px #0008;
}

@keyframes radarPulse {
  0% { width: 10px; height: 10px; opacity: 1; }
  100% { width: 68px; height: 68px; opacity: 0; }
}

/* ---------- Incident Cluster Stickers ---------- */

.sighting-cluster-icon { background: none !important; border: 0 !important; }

.sticker-cluster-pin {
  position: relative;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.15s;
}

.sticker-cluster-pin:hover {
  transform: scale(1.15) translateY(-3px);
}

.sticker-badge {
  position: relative;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50% 50% 50% 4px;
  transform: rotate(45deg);
  background: #0c1413;
  border: 2px solid var(--lime);
  box-shadow: 0 0 0 3px #d3ff3622, 0 4px 10px #000c;
}

.sticker-emoji {
  transform: rotate(-45deg);
  font-size: 15px;
}

.cluster-count {
  position: absolute;
  top: -6px;
  right: -6px;
  transform: rotate(-45deg);
  background: var(--lime);
  color: #07120e;
  font: 700 9px var(--mono);
  padding: 2px 4px;
  border-radius: 8px;
  box-shadow: 0 2px 6px #000;
  border: 1px solid #000;
}

.sticker-cluster-pin.nsfw-cluster .sticker-badge {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px #ff2fb033, 0 4px 10px #000c;
}

.cluster-nsfw-dot {
  position: absolute;
  bottom: -4px;
  left: -4px;
  transform: rotate(-45deg);
  font-size: 9px;
}

/* drop pin */
.drop-pin { background: none !important; border: 0 !important; font-size: 30px; text-align: center; animation: drop 0.4s ease-out; cursor: grab; }
.drop-pin b { filter: drop-shadow(0 0 8px var(--lime)); }

.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: #0d1514; color: var(--ink); border: 1px solid var(--line); border-radius: 2px; }
.leaflet-popup-content { margin: 14px; }
.leaflet-popup-close-button { color: var(--muted) !important; }

.sighting-card b { display: block; margin: 6px 0; font-size: 14px; }
.sighting-card .where { font: 10px var(--mono); color: var(--muted); }
.sighting-card .quote { margin: 9px 0; font-size: 13px; line-height: 1.45; color: #d5ded9; }
.sighting-card .scanned { font: 9px var(--mono); color: var(--pink); margin-bottom: 6px; }
.sighting-card small { font: 9px var(--mono); color: #5f6d69; }
.vote-buttons { display: flex; gap: 6px; margin-top: 11px; }
.vote-buttons button {
  flex: 1;
  background: #131d1b;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 8px;
  font: 9px var(--mono);
  cursor: pointer;
}
.vote-buttons button:hover:not(:disabled) { border-color: var(--lime); color: var(--lime); }
.vote-buttons button:disabled { opacity: 0.4; cursor: default; }
.voted { font: 9px var(--mono); color: var(--lime); margin-top: 7px; }

.view-spot-all-btn {
  width: 100%;
  margin-top: 10px;
  background: #172421;
  border: 1px solid var(--line);
  color: var(--lime);
  font: 700 9px var(--mono);
  padding: 7px;
  cursor: pointer;
}
.view-spot-all-btn:hover { background: #1e302d; }

/* pin banner */

.pin-banner {
  position: absolute;
  z-index: 900;
  left: 50%;
  top: 76px;
  transform: translateX(-50%);
  background: var(--lime);
  color: #08120e;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 8px 24px #000a;
  animation: slideDown 0.25s ease-out;
  max-width: calc(100% - 32px);
}
.pin-banner b { font-size: 13px; }
.pin-banner span { font: 9px var(--mono); opacity: 0.75; }
.pin-banner button { background: #08120e; color: var(--lime); border: 0; padding: 7px 10px; font: 9px var(--mono); cursor: pointer; }

/* ---------- DOSSIER SHEET & GEN-Z EQUALIZER ---------- */

.dossier {
  position: absolute;
  z-index: 800;
  left: 16px;
  bottom: 58px;
  width: 300px;
  max-height: min(52vh, 440px);
  overflow: auto;
  background: #0a1211fa;
  border: 1px solid var(--line);
  border-top: 2px solid var(--lime);
  padding: 14px;
  backdrop-filter: blur(8px);
  animation: slideUp 0.22s ease-out;
  box-shadow: 0 16px 40px #000c;
}

.dossier-x { position: absolute; top: 8px; right: 8px; background: none; border: 0; color: var(--muted); font-size: 20px; cursor: pointer; }
.dossier-head { display: flex; gap: 12px; align-items: flex-end; }
.dossier-avatar-wrap { position: relative; width: 64px; height: 64px; flex: none; }
.dossier-avatar-wrap img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 6px #000); }
.avatar-shout-pill {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  background: #050a09;
  border: 1px solid var(--line);
  color: var(--lime);
  font: 700 7px var(--mono);
  padding: 1px 4px;
  white-space: nowrap;
}

.dossier-head h3 { font-size: 16px; margin: 2px 0; letter-spacing: 0.4px; }
.dossier-score { font: 700 28px var(--mono); letter-spacing: -2px; line-height: 1; }
.dossier-score small { font-size: 11px; color: var(--muted); letter-spacing: 0; }
.band-chip { display: inline-block; border: 1px solid; padding: 3px 6px; font: 9px var(--mono); margin-top: 5px; }

/* Gen-Z Threat & Rizz HUD */
.genz-hud {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  margin: 12px 0 8px;
  background: #111a19;
  border: 1px solid var(--line);
  padding: 8px 6px;
}

.hud-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
}
.hud-item span { font: 7.5px var(--mono); color: var(--muted); }
.hud-item b { font: 700 11px var(--mono); color: var(--lime); }
.hud-item + .hud-item { border-left: 1px solid var(--line); }

.dossier-note { font-size: 11px; color: #9fada9; font-style: italic; margin: 8px 0 4px; }
.dossier-lead { font: 10px var(--mono); color: var(--muted); margin: 0 0 8px; }

/* Dossier Quick Hub: Roast & Makeout Roulette */
.dossier-quick-hub {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 12px;
}

.hub-btn {
  background: #152220;
  border: 1px solid var(--line);
  color: var(--ink);
  font: 700 9px var(--mono);
  padding: 8px 4px;
  cursor: pointer;
  letter-spacing: 0.4px;
  transition: all 0.14s;
}

.hub-btn.roast-btn {
  border-color: #63222d;
  color: #ff9187;
}
.hub-btn.roast-btn:hover {
  background: #47171e;
  color: #fff;
  border-color: var(--red);
}

.hub-btn.roulette-btn {
  border-color: #631e4e;
  color: #ff8ad0;
}
.hub-btn.roulette-btn:hover {
  background: #471236;
  color: #fff;
  border-color: var(--pink);
}

/* Cyberpunk Equalizer Oscilloscope */
.equalizer-container {
  background: #0d1615;
  border: 1px solid var(--line);
  padding: 10px;
  margin-bottom: 12px;
}

.eq-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.live-signal-pulse {
  font: 700 8px var(--mono);
  color: var(--lime);
  animation: blink 1.2s infinite;
}

.equalizer-bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.eq-stat-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.eq-stat-label {
  display: flex;
  justify-content: space-between;
  font: 8px var(--mono);
  color: #92a39f;
}
.eq-stat-label b { color: var(--ink); }

.eq-bar-wrap {
  position: relative;
  height: 6px;
  background: #182422;
  overflow: hidden;
  border-radius: 1px;
}

.eq-bar-fill {
  position: relative;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #7ef29d, var(--lime), var(--amber));
  animation: eqFill 0.85s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: var(--delay, 0ms);
}
.eq-stat-row.lead-stat .eq-bar-wrap { height: 11px; }
.eq-stat-row.lead-stat .eq-stat-label span { color: var(--lime); font-weight: 700; }
.eq-stat-row.filter-stat {
  background: #1a1018;
  border: 1px solid #5a2744;
  padding: 4px 5px;
}
.eq-stat-row.hot-stat .eq-bar-fill {
  background: linear-gradient(90deg, var(--amber), var(--red), var(--pink));
  box-shadow: 0 0 8px var(--red);
}
.eq-stat-row.hot-stat .eq-glow {
  animation: eqPulse 1.1s ease-in-out infinite;
}
@keyframes eqFill { to { width: var(--fill); } }
@keyframes eqPulse { 50% { opacity: 0.35; transform: scaleX(1.04); } }

.tonight-card {
  border: 1px solid var(--line);
  background: #0c1413;
  padding: 10px 11px;
  margin: 10px 0 8px;
}
.tonight-card.after-dark {
  border-color: #5a2744;
  background: linear-gradient(180deg, #1a0d16, #0c1010);
}
.tonight-card h4 {
  font-size: 13px;
  letter-spacing: 0.3px;
  color: var(--lime);
  margin: 4px 0 8px;
}
.tonight-card.after-dark h4 { color: #ff8ad0; }
.looking-now {
  display: flex;
  align-items: center;
  gap: 7px;
  font: 9px var(--mono);
  color: #ff8ad0;
  margin-bottom: 7px;
}
.looking-now i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 8px var(--pink);
  animation: blink 1s infinite;
}
.looking-now b { font-size: 14px; color: #fff; }
.forecast-line { font: 10px var(--mono); color: #9fada9; margin: 3px 0; line-height: 1.45; }
.eq-quiet { font: 8px var(--mono); color: #5f6d69; margin-top: 6px; }

.eq-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, #fff6, transparent);
  opacity: 0.5;
}

.eq-peak-marker {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #fff;
  transform: translateX(-100%);
  opacity: 0.8;
}

.dossier-recent { margin-top: 4px; border-top: 1px solid var(--line); padding-top: 8px; }
.eyebrow-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.view-all-btn { background: none; border: 0; color: var(--lime); font: 700 9px var(--mono); cursor: pointer; }
.view-all-btn:hover { text-decoration: underline; }

.dossier-recent p { font-size: 11px; color: #9fada9; margin: 4px 0; }
.area-post { display: grid; grid-template-columns: 48px 1fr; gap: 9px; padding: 9px 0; border-bottom: 1px solid #1a2522; }
.area-post > img { width: 48px; height: 48px; object-fit: cover; image-rendering: pixelated; border: 1px solid var(--line); }
.area-post > span { width: 48px; height: 48px; display: grid; place-items: center; background: #141d1b; font-size: 24px; }
.area-post b { font-size: 11px; }
.area-post p { line-height: 1.35; }
.area-post small { font: 8px var(--mono); color: #66746f; }
.empty-posts { padding: 9px 0; font-style: italic; }
.post-image { width: 100%; max-height: 180px; object-fit: cover; image-rendering: pixelated; border: 1px solid var(--line); margin: 8px 0; }
.dossier-actions { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.fight-button { border-color: #653052; color: #ff8ad0; }
.fight-button:hover { border-color: var(--pink); color: var(--pink); }
.dossier-borders { font: 8px var(--mono); color: #5f6d69; margin-top: 11px; line-height: 1.6; }

.submit, .ghost-wide {
  border: 0;
  background: var(--lime);
  color: #08120e;
  padding: 12px 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  width: 100%;
  transition: transform 0.12s, background 0.12s;
}
.submit:hover { background: #e6ff7c; }
.submit:active, .ghost-wide:active { transform: translateY(1px); }
.submit.big { padding: 16px; font-size: 15px; max-width: 320px; }
.ghost-wide { background: transparent; border: 1px solid var(--line); color: var(--ink); font-weight: 500; font-size: 12px; }
.ghost-wide:hover { border-color: var(--lime); color: var(--lime); }

/* toasts */

.toast-stack { position: absolute; z-index: 1200; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; max-width: 300px; }

.toast {
  position: relative;
  background: #0c1413f5;
  border: 1px solid var(--line);
  border-left: 3px solid var(--lime);
  padding: 11px 30px 11px 12px;
  animation: slideIn 0.25s ease-out;
  box-shadow: 0 10px 24px #0008;
  width: 100%;
}
.toast.good { border-left-color: var(--lime); }
.toast.info { border-left-color: var(--amber); }
.toast.alert { border-left-color: #ff5da8; }
.toast.out { animation: fadeOut 0.4s forwards; }
.toast b { font-size: 11.5px; letter-spacing: 0.3px; }
.toast p { font: 10px var(--mono); color: #9fada9; margin-top: 5px; line-height: 1.5; }
.toast-x { position: absolute; top: 6px; right: 8px; background: none; border: 0; color: #5f6d69; font-size: 15px; cursor: pointer; }

/* ---------------- DYNAMIC COMBAT ARENA ---------------- */

.map-fight-icon { background: none !important; border: 0 !important; pointer-events: auto; }
.map-fight-icon.compact { pointer-events: auto !important; cursor: zoom-in; }

.observer-fight-wrap {
  position: relative;
  width: 168px;
  height: 124px;
  overflow: hidden;
  border-radius: 8px;
}
.observer-fight-wrap .combat-arena {
  transform: scale(0.4);
  transform-origin: top left;
}
.observer-fight-wrap .skip-fight { display: none; }

.skip-fight {
  pointer-events: auto;
  background: #050a09;
  border: 1px solid var(--line);
  color: var(--muted);
  font: 700 8px var(--mono);
  padding: 2px 6px;
  cursor: pointer;
}
.skip-fight:hover { color: var(--lime); border-color: var(--lime); }

.combo-meter {
  position: absolute;
  top: 64px;
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  font: 700 11px var(--mono);
  color: var(--amber);
  opacity: 0.35;
  letter-spacing: 1px;
  z-index: 12;
  pointer-events: none;
}
.combo-meter.hot { opacity: 1; transform: translateX(-50%) scale(1.15); color: #fff; }

.impact-flash {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  z-index: 25;
}
.impact-flash.go { animation: hitFlash 0.12s linear; }
@keyframes hitFlash { 0% { opacity: 0.55; } 100% { opacity: 0; } }

.arena-shake { animation: arenaShake 0.2s linear; }
@keyframes arenaShake {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-4px, 2px); }
  50% { transform: translate(4px, -2px); }
  75% { transform: translate(-2px, 1px); }
}

.flying-fist {
  position: absolute;
  top: 42%;
  font-size: 28px;
  opacity: 0;
  z-index: 15;
  pointer-events: none;
  filter: drop-shadow(0 0 6px #000);
}
.fist-from-a { left: 18%; }
.fist-from-b { right: 18%; transform: scaleX(-1); }
.flying-fist.throw { animation: fistFly 0.26s ease-out; }
@keyframes fistFly {
  0% { opacity: 1; transform: translateX(0) scale(0.8); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translateX(70px) scale(1.2); }
}
.fist-from-b.throw { animation: fistFlyB 0.26s ease-out; }
@keyframes fistFlyB {
  0% { opacity: 1; transform: scaleX(-1) translateX(0) scale(0.8); }
  100% { opacity: 0; transform: scaleX(-1) translateX(70px) scale(1.2); }
}

.fog-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 70%, #ff5da822, #08060c88 70%);
  pointer-events: none;
  z-index: 1;
}
.lipstick-marks {
  position: absolute;
  inset: 10% 12%;
  opacity: 0;
  font-size: 22px;
  letter-spacing: 10px;
  text-align: center;
  pointer-events: none;
}
.lipstick-marks.show-lips { animation: heartFloat 1.6s ease-out forwards; }

.combat-arena {
  position: relative;
  width: 420px;
  height: 310px;
  background: #080f0ed8;
  border: 2px solid var(--lime);
  box-shadow: 0 16px 40px #000e, 0 0 20px #d3ff3633;
  backdrop-filter: blur(8px);
  padding: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.combat-arena.catfight-mode {
  border-color: var(--pink);
  box-shadow: 0 16px 40px #000e, 0 0 24px #ff2fb044;
}

.combat-arena.nsfw-combat {
  border-color: #ff007f;
}

.makeout-arena {
  border-color: #ff5da8;
  box-shadow: 0 16px 40px #000e, 0 0 24px #ff2fb055;
}

.hp-bar.chemistry .hp-fill {
  background: linear-gradient(90deg, #ff5da8, #ffd36a);
}

.fighter-b-hp .hp-bar.chemistry .hp-fill {
  background: linear-gradient(90deg, #ff8ad0, #fff);
}

.combat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
  position: relative;
  z-index: 4;
}

.combat-tag {
  font: 700 8.5px var(--mono);
  color: var(--lime);
  letter-spacing: 0.8px;
}

.combat-arena.catfight-mode .combat-tag { color: var(--pink); }

.combat-matchup {
  font: 700 11px var(--mono);
  color: #fff;
}
.combat-matchup .vs { color: var(--red); margin: 0 4px; }

/* Health Bars */
.combat-health-row {
  display: grid;
  grid-template-columns: 1fr 24px 1fr;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
}

.fighter-hp {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hp-label {
  display: flex;
  justify-content: space-between;
  font: 8px var(--mono);
  color: var(--muted);
}
.hp-label b { color: var(--ink); }

.hp-bar {
  height: 8px;
  background: #192523;
  border: 1px solid var(--line);
  overflow: hidden;
}

.hp-fill {
  height: 100%;
  background: var(--lime);
  transition: width 0.25s, background 0.25s;
}

.fighter-b-hp .hp-fill {
  background: #00e5ff;
}

.vs-badge {
  text-align: center;
  font-size: 14px;
}

/* Combat Stage */
.combat-stage {
  position: relative;
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 20px 10px;
}

.fighter-wrapper {
  position: relative;
  width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s;
}

.fighter-sprite {
  position: relative;
  width: 100px;
  height: 100px;
}

.fighter-sprite img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 8px #000);
}

.fighter-a-box .fighter-sprite img { transform: scaleX(-1); }

.glove {
  position: absolute;
  font-size: 24px;
  top: 36px;
  opacity: 0;
  transition: transform 0.15s, opacity 0.15s;
}

.glove-left { right: -12px; }
.glove-right { left: -12px; transform: scaleX(-1); }

.hair-extension {
  position: absolute;
  top: 10px;
  font-size: 20px;
  transition: transform 0.2s;
}

.fighter-shadow {
  width: 70px;
  height: 10px;
  background: #000a;
  border-radius: 50%;
  margin-top: 4px;
}

.fighter-bubble {
  position: absolute;
  top: -24px;
  background: #fff;
  color: #000;
  font: 700 8.5px 'Space Grotesk';
  padding: 3px 6px;
  border-radius: 3px;
  box-shadow: 2px 2px var(--red);
  white-space: nowrap;
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.2s;
  pointer-events: none;
  z-index: 10;
}

.fighter-bubble.show-bubble {
  opacity: 1;
  transform: scale(1);
}

/* Combat Hit & Strike Keyframes */
.punch-strike-a {
  animation: strikeA 0.28s ease-in-out;
}
.punch-strike-a .glove-left {
  opacity: 1;
  transform: translateX(35px) rotate(20deg);
}

.punch-strike-b {
  animation: strikeB 0.28s ease-in-out;
}
.punch-strike-b .glove-right {
  opacity: 1;
  transform: translateX(-35px) rotate(-20deg) scaleX(-1);
}

@keyframes strikeA {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(45px) rotate(8deg); }
}

@keyframes strikeB {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-45px) rotate(-8deg); }
}

.hit-recoil {
  animation: recoil 0.28s ease-out;
}

@keyframes recoil {
  0% { transform: translateX(0); }
  30% { transform: translateX(20px) rotate(15deg) scale(0.9); }
  100% { transform: translateX(0); }
}

/* Hair Pull Special Mechanics */
.hair-pull-lock.fighter-a-box {
  transform: translateX(35px) rotate(10deg);
}
.hair-pull-lock.fighter-b-box {
  transform: translateX(-35px) rotate(-10deg);
}

.hair-pull-fx {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  z-index: 20;
  transition: transform 0.25s;
}

.hair-pull-fx.show-hair-pull {
  transform: translateX(-50%) scale(1.2);
  animation: hairShake 0.4s infinite alternate;
}

.hair-pull-hand { font-size: 32px; }
.hair-strands { font-size: 18px; }
.hair-pull-text {
  background: var(--pink);
  color: #fff;
  font: 700 9px var(--mono);
  padding: 3px 6px;
  box-shadow: 2px 2px #000;
  white-space: nowrap;
}

@keyframes hairShake {
  0% { transform: translateX(-52%) rotate(-8deg); }
  100% { transform: translateX(-48%) rotate(8deg); }
}

/* Combat Pop FX & Text */
.combat-fx {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 15;
}

.fx-punch {
  font-size: 42px;
  opacity: 0;
  transform: scale(0.2);
  transition: all 0.2s;
}

.fx-punch.pop-fx {
  opacity: 1;
  transform: scale(1.4) rotate(15deg);
}

.fx-text {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  background: var(--lime);
  color: #08120e;
  font: 700 13px var(--mono);
  padding: 3px 8px;
  box-shadow: 3px 3px #000;
  white-space: nowrap;
  transition: transform 0.2s;
}

.fx-text.pop-text {
  transform: translateX(-50%) scale(1) rotate(-4deg);
}

/* Victory & Knockout States */
.winner-celebrate {
  animation: winJump 0.5s infinite alternate;
}
@keyframes winJump {
  from { transform: translateY(0); }
  to { transform: translateY(-24px) rotate(-6deg) scale(1.1); }
}

.loser-knockout {
  animation: knockoutSpin 0.7s forwards;
}
@keyframes knockoutSpin {
  to { transform: translateY(28px) rotate(85deg) scale(0.65); opacity: 0.4; }
}

.makeout-lean-a { animation: makeoutLeanA 0.42s ease-in-out; }
.makeout-lean-b { animation: makeoutLeanB 0.42s ease-in-out; }
.makeout-swoon { animation: makeoutSwoon 0.42s ease-out; }
.makeout-lock { animation: makeoutLock 0.8s ease-in-out; }
.makeout-lean-a .kiss-prop,
.makeout-lean-b .kiss-prop { opacity: 1; }
@keyframes makeoutLeanA {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(38px) rotate(6deg); }
}
@keyframes makeoutLeanB {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-38px) rotate(-6deg); }
}
@keyframes makeoutSwoon {
  50% { transform: scale(1.06); }
}
@keyframes makeoutLock {
  50% { transform: translateY(-6px) scale(1.08); }
}
.hearts-rain {
  position: absolute;
  inset: 18% 8%;
  opacity: 0;
  font-size: 18px;
  text-align: center;
  pointer-events: none;
  letter-spacing: 6px;
}
.hearts-rain.show-hearts { animation: heartFloat 1.4s ease-out forwards; }
@keyframes heartFloat {
  0% { opacity: 0; transform: translateY(12px); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-30px); }
}
.makeout-arena .verdict-banner { background: #ff8ad0; }

/* Combat Verdict Banner */
.combat-verdict {
  position: absolute;
  inset: 0;
  background: #000000bb;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
  z-index: 30;
}

.combat-verdict.show-verdict {
  opacity: 1;
  pointer-events: auto;
}

.verdict-banner {
  background: var(--lime);
  color: #06110e;
  padding: 16px 24px;
  text-align: center;
  border: 2px solid #000;
  box-shadow: 8px 8px #000;
  transform: scale(0.8);
  animation: bannerPop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.verdict-trophy { font-size: 32px; display: block; margin-bottom: 4px; }
.verdict-banner h3 { font: 700 20px var(--mono); margin: 4px 0; }
.verdict-banner p { font-size: 11px; }

@keyframes bannerPop {
  to { transform: scale(1); }
}

.live-fight-note {
  position: absolute;
  z-index: 850;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  align-items: center;
  background: #0a1010eb;
  border: 1px solid var(--pink);
  padding: 8px 11px;
  color: #fff;
  font: 9px var(--mono);
  white-space: nowrap;
}

/* ---------------- dialogs ---------------- */

dialog {
  width: min(520px, calc(100vw - 24px));
  max-height: calc(100vh - 60px);
  background: #0b1211;
  color: var(--ink);
  border: 1px solid #33423f;
  padding: 26px;
  box-shadow: 0 24px 70px #000c;
  overflow: auto;
}
dialog.wide { width: min(680px, calc(100vw - 24px)); }
dialog::backdrop { background: #020605d0; backdrop-filter: blur(3px); }
dialog h2 { font-size: 25px; margin: 7px 0 9px; letter-spacing: -0.3px; }
.dialog-close { position: absolute; top: 12px; right: 14px; background: none; border: 0; color: var(--muted); font-size: 22px; cursor: pointer; z-index: 2; }
dialog { position: relative; }

/* Battle tab buttons */
.battle-tabs {
  display: flex;
  gap: 6px;
  margin: 12px 0 6px;
}
.battle-tab {
  background: #111a19;
  border: 1px solid var(--line);
  color: var(--muted);
  font: 700 9px var(--mono);
  padding: 6px 10px;
  cursor: pointer;
}
.battle-tab.on {
  background: #1e2c29;
  border-color: var(--pink);
  color: var(--pink);
}

.loc-strip { border: 1px solid #2c3a37; border-left: 3px solid var(--lime); background: #0e1615; padding: 11px 12px; margin: 14px 0 4px; }
.loc-strip b { display: block; font-size: 12.5px; }
.loc-strip span { font: 9px var(--mono); color: var(--muted); display: block; margin-top: 4px; line-height: 1.5; }
.loc-strip.new { border-left-color: var(--amber); }
.loc-strip input { width: 100%; margin-top: 9px; background: #070d0c; border: 1px solid #33403d; color: var(--ink); padding: 9px; font-family: inherit; }

.cat-grid { display: flex; flex-direction: column; gap: 11px; }
.cat-grid.shake, .shake { animation: shake 0.34s linear; }
.cat-group h4 { font: 9px var(--mono); color: var(--pink); letter-spacing: 1.2px; margin-bottom: 6px; }
.cat-group.nsfw-group h4 { color: #ff007f; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip {
  background: #101817;
  border: 1px solid #263230;
  color: #bcc8c4;
  padding: 7px 9px;
  font-size: 11.5px;
  cursor: pointer;
  transition: all 0.12s;
}
.chip:hover { border-color: var(--lime); color: var(--lime); }
.chip.on { background: var(--lime); border-color: var(--lime); color: #08120e; font-weight: 700; }
.chip.nsfw-chip { border-color: #651e44; }
.chip.nsfw-chip:hover { border-color: var(--pink); color: var(--pink); }
.chip.nsfw-chip.on { background: var(--pink); border-color: var(--pink); color: #fff; }

.intensity { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.int-btn { background: #101817; border: 1px solid #263230; color: #b3bfbb; padding: 9px 4px; cursor: pointer; }
.int-btn b { display: block; font: 700 17px var(--mono); }
.int-btn span { font: 7.5px var(--mono); letter-spacing: 0.4px; }
.int-btn:hover { border-color: var(--amber); }
.int-btn.on { background: #1d2612; border-color: var(--lime); color: var(--lime); }
.int-note { font-size: 12px; color: var(--amber); font-style: italic; margin-top: 9px; }

textarea {
  width: 100%;
  height: 70px;
  resize: vertical;
  background: #070d0c;
  border: 1px solid #33403d;
  color: var(--ink);
  padding: 10px;
  font-family: inherit;
  font-size: 13px;
}

.file-drop { display: block; border: 1px dashed #3a4845; background: #0d1413; padding: 14px; text-align: center; cursor: pointer; }
.file-drop:hover { border-color: var(--lime); }
.file-drop b { display: block; font-size: 12px; }
.file-drop span { font: 9px var(--mono); color: var(--muted); display: block; margin-top: 4px; }
.vision-out { display: flex; gap: 14px; margin-top: 12px; align-items: flex-start; }
.vision-out canvas { width: 120px; height: 120px; border: 1px solid var(--line); flex: none; image-rendering: pixelated; background: #0d1413; }
.scan-log p { font: 10px var(--mono); color: var(--lime); margin: 3px 0; animation: fadeIn 0.3s; }
.scan-result .bar-row { grid-template-columns: 168px 1fr 34px; }
.scan-result .verdict { font-size: 13px; color: var(--pink); font-weight: 700; margin-top: 9px; }

.accepted { color: var(--lime); }
.result-score { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0 12px; align-items: start; }
.result-score small { font: 9px var(--mono); color: var(--muted); }
.result-score b { display: block; font: 700 62px var(--mono); letter-spacing: -4px; color: var(--lime); line-height: 1.05; }
.result-score b i { font: 400 15px var(--mono); color: var(--muted); font-style: normal; letter-spacing: 0; margin-left: 6px; }
.result-score .overall { font: 10px var(--mono); color: var(--muted); margin-top: 9px; line-height: 1.6; }
.result-score .overall b { display: inline; font: 700 12px var(--mono); color: var(--amber); letter-spacing: 0; }
.delta { font: 10px var(--mono); }
.delta.up { color: var(--lime); }
.delta.down { color: var(--red); }
.result-band { border: 1px solid; padding: 12px; font-size: 22px; display: flex; flex-direction: column; gap: 5px; line-height: 1.2; }
.result-band b { font: 700 13px var(--mono); }
.result-band span { font: 9px var(--mono); opacity: 0.75; line-height: 1.6; }
.escalation { font: 10px var(--mono); color: var(--amber); margin: 7px 0; }
.reward-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 18px; font: 10px var(--mono); }
.reward-row span { border: 1px solid var(--line); padding: 6px 9px; color: var(--lime); }
.reward-row .combo { border-color: var(--pink); color: var(--pink); }
.result-actions { display: flex; flex-direction: column; gap: 7px; }

/* Area Posts Dialog */
.area-modal-posts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 52vh;
  overflow-y: auto;
  margin: 16px 0;
  padding-right: 4px;
}

.spot-post-card {
  background: #0e1716;
  border: 1px solid var(--line);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.spot-post-card.nsfw-card {
  border-left: 3px solid var(--pink);
  background: #140a12;
}

.spot-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.spot-emoji { font-size: 24px; }
.spot-meta b { font-size: 13px; color: var(--ink); }
.spot-meta small { display: block; font: 9px var(--mono); color: var(--muted); margin-top: 2px; }

.spot-note {
  font-size: 13px;
  line-height: 1.4;
  color: #d1deda;
}

.spot-evidence {
  display: flex;
  gap: 10px;
  align-items: center;
  background: #080e0d;
  padding: 6px;
  border: 1px solid var(--line);
}
.spot-evidence img { width: 50px; height: 50px; object-fit: cover; image-rendering: pixelated; }
.spot-evidence small { font: 8.5px var(--mono); color: var(--pink); }

.spot-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.vote-actions { display: flex; gap: 6px; }
.vote-btn {
  background: #152220;
  border: 1px solid var(--line);
  color: var(--ink);
  font: 9px var(--mono);
  padding: 6px 10px;
  cursor: pointer;
}
.vote-btn:hover:not(:disabled) { border-color: var(--lime); color: var(--lime); }
.vote-btn:disabled { opacity: 0.5; }
.voted-tag { font: 9px var(--mono); color: var(--lime); }
.nsfw-badge { background: #4a0d33; color: #ff8ad0; font: 8px var(--mono); padding: 1px 4px; border-radius: 2px; margin-left: 6px; }

.area-modal-actions { margin-top: 12px; }

/* Gen-Z Makeout Roulette Modal */
.roulette-slot-machine {
  background: #0c1413;
  border: 2px solid var(--pink);
  box-shadow: 0 0 20px #ff2fb022;
  padding: 16px;
  margin: 16px 0;
}

.slot-display {
  display: flex;
  gap: 14px;
  align-items: center;
}

.slot-avatar {
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px #000);
  background: #170d18;
  border: 1px solid #5a1945;
  padding: 6px;
}

.slot-details b { font-size: 16px; color: #fff; }
.slot-tag {
  display: inline-block;
  background: var(--pink);
  color: #fff;
  font: 700 8px var(--mono);
  padding: 2px 6px;
  margin: 4px 0;
}
.slot-vibe { font-size: 12px; color: #b8c7c3; margin: 4px 0; }
.slot-redflags { font: 10px var(--mono); color: var(--red); margin-top: 4px; }
.roulette-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }

/* battle dialog */

.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; margin: 16px 0; max-height: 46vh; overflow: auto; padding-right: 4px; }
.pick-card { background: #0d1514; border: 1px solid var(--line); padding: 10px 8px; cursor: pointer; color: var(--ink); text-align: center; transition: all 0.14s; }
.pick-card img { width: 62px; height: 62px; object-fit: contain; display: block; margin: 0 auto 6px; }
.pick-card b { display: block; font-size: 10.5px; letter-spacing: 0.3px; }
.pick-card span { font: 8px var(--mono); color: var(--muted); }
.pick-card em { display: block; font: 8px var(--mono); color: var(--pink); font-style: normal; margin-top: 5px; }
.pick-card:hover { border-color: var(--pink); transform: translateY(-2px); box-shadow: 0 8px 18px #0007; }
.pick-card.live { border-color: #33423f; }

/* briefing + share */

.briefing { text-align: center; }
.briefing h1 { font-size: 32px; letter-spacing: -1px; margin: 8px 0 10px; }
.briefing .lead { font-size: 15px; color: #b9c5c1; line-height: 1.6; margin: 0 0 18px; }
.briefing .lead strong { color: var(--red); }
.briefing.tour { position: relative; padding-top: 8px; }
.tour-skip {
  position: absolute;
  top: 0;
  right: 0;
  background: none;
  border: 0;
  color: #7c8a88;
  font: 700 10px var(--mono);
  letter-spacing: 1px;
  cursor: pointer;
}
.tour-skip:hover { color: var(--lime); }
.tour-step-icon { font-size: 42px; line-height: 1; margin: 8px 0 4px; }
.tour-dots { display: flex; justify-content: center; gap: 7px; margin: 4px 0 16px; }
.tour-dots i { width: 7px; height: 7px; border-radius: 50%; background: #2a3835; display: block; }
.tour-dots i.on { background: var(--lime); box-shadow: 0 0 8px #d3ff3666; }
.tour-nav { display: flex; gap: 8px; }
.tour-nav .submit, .tour-nav .ghost-wide { flex: 1; }
.briefing ul { list-style: none; padding: 0; margin: 0 0 18px; text-align: left; }
.briefing li { display: flex; justify-content: space-between; border-bottom: 1px solid #172120; padding: 9px 2px; font-size: 12.5px; }
.briefing li span { font: 10px var(--mono); }
.briefing .quick-guide { display: grid; gap: 7px; }
.briefing .quick-guide li { display: flex; align-items: flex-start; justify-content: flex-start; gap: 9px; padding: 9px 4px; }
.quick-guide li > span { font-size: 17px; line-height: 1.3; }
.quick-guide p { margin: 0; color: #b9c5c1; font-size: 12px; line-height: 1.45; }
.quick-guide b { color: var(--ink); }
.briefing-risk { margin: 0 0 14px; color: #ff8ad0; font: 11px var(--mono); }

.report-location-choice { display: grid; gap: 10px; margin-top: 18px; }
.report-location-choice button { min-height: 66px; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.report-location-choice small { font: 10px var(--mono); font-weight: 400; opacity: 0.8; }
.report-location-choice button:disabled { cursor: not-allowed; opacity: 0.48; }

.baddie-help { margin-top: auto; border: 1px solid #6d2451; background: linear-gradient(135deg, #271023, #120e15); padding: 11px; }
.baddie-help-kicker { color: #ff8ad0; font: 8px var(--mono); letter-spacing: 1px; margin-bottom: 5px; }
.baddie-help strong { display: block; color: #fff0f8; font-size: 12px; }
.baddie-help p { margin: 5px 0 9px; color: #d4a9c5; font-size: 10px; line-height: 1.45; }
.baddie-help em { color: #ff8ad0; }
.baddie-help button { width: 100%; border: 1px solid #b82d7c; background: #41142f; color: #ffd7eb; min-height: 34px; font: 700 9px var(--mono); cursor: pointer; }
.baddie-help button:hover { background: #682044; }

#shareCanvas { width: 100%; height: auto; border: 1px solid var(--line); margin: 12px 0; display: block; }
.share-actions { display: flex; flex-direction: column; gap: 7px; }

/* ---------------- animations ---------------- */

@keyframes bob { 50% { transform: translateY(-5px) rotate(-2deg); } }
@keyframes hype { 25% { transform: translateY(-7px) rotate(4deg); } 75% { transform: translateY(-2px) rotate(-4deg); } }
@keyframes rage { 25% { transform: translate(2px, -3px) rotate(4deg); } 75% { transform: translate(-2px, 0) rotate(-4deg); } }
@keyframes pop { 30% { transform: scale(1.28) rotate(-6deg); } 60% { transform: scale(0.94); } }
@keyframes blink { 50% { opacity: 0.25; } }
@keyframes drop { from { transform: translateY(-26px); opacity: 0; } }
@keyframes slideIn { from { transform: translateX(24px); opacity: 0; } }
@keyframes slideUp { from { transform: translateY(18px); opacity: 0; } }
@keyframes slideDown { from { transform: translate(-50%, -18px); opacity: 0; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } }
@keyframes fadeOut { to { opacity: 0; transform: translateX(20px); } }
@keyframes shake { 25% { transform: translateX(-6px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-3px); } }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* ---------------- responsive ---------------- */

@media (max-width: 860px) {
  header {
    height: auto;
    min-height: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "brand actions"
      "search search";
    align-items: center;
    gap: 8px;
    padding: max(8px, env(safe-area-inset-top)) 8px 8px;
  }
  .brand { grid-area: brand; }
  .brand > span:not(.brand-mark) { display: none; }
  .search-container { grid-area: search; flex: none; width: 100%; max-width: none; min-width: 0; }
  .header-actions { grid-area: actions; justify-self: end; gap: 6px; }
  .ticker, .live-pill { display: none; }
  .nsfw-text { display: none; }
  .nsfw-short { display: inline; }
  .nsfw-toggle { padding: 8px 10px; min-height: 40px; }
  .nsfw-icon { font-size: 16px; line-height: 1; }
  .nsfw-hint { max-width: 160px; font-size: 9px; }
  .sound-toggle { width: 40px; height: 40px; }
  .report-full, .locate-full, .fight-full { display: none; }
  .report-short, .locate-short, .fight-short { display: inline; }
  body:has(#searchResults:not(.hidden)) .map-controls,
  body:has(#searchResults:not(.hidden)) .gps-live-pill { visibility: hidden; }
  .stage:has(#map.picking) .map-controls,
  .stage:has(#map.picking) .gps-live-pill { display: none; }
  .stage:has(#map.picking) .pin-banner { top: 8px; }
  .report-button { padding: 10px 12px; font-size: 11px; }
  .search-input-wrap input { font-size: 16px; }
  .search-input-wrap input::placeholder { font-size: 13px; }
  .search-results { max-height: 42dvh; }

  main { height: auto; flex: 1; min-height: 0; display: block; position: relative; }
  .stage { height: 100%; }

  .sidebar {
    display: none;
    position: fixed;
    z-index: 1600;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    width: auto;
    height: min(74dvh, 620px);
    border-right: 0;
    border-top: 2px solid var(--lime);
    border-radius: 16px 16px 0 0;
    padding: 18px 14px max(14px, env(safe-area-inset-bottom));
    box-shadow: 0 -18px 40px #000c;
  }
  .sidebar::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    margin: 0 auto 10px;
    border-radius: 99px;
    background: #3a4a46;
    flex: none;
  }
  body.feed-open .sidebar {
    display: flex;
    animation: slideUp 0.28s ease-out;
  }
  .sidebar-close {
    display: grid;
    place-items: center;
    position: absolute;
    top: 10px;
    right: 8px;
    width: 44px;
    height: 44px;
    background: none;
    border: 0;
    color: var(--muted);
    font-size: 26px;
    cursor: pointer;
  }
  .sidebar-title { padding-right: 44px; }
  .agent-card { font-size: 10px; padding: 10px; }
  .feed-item { padding: 13px 2px; min-height: 56px; }
  .feed-item b { font-size: 13px; }
  .feed-item p { font-size: 12px; }

  .feed-scrim {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 1400;
    background: #0008;
  }
  body.feed-open .feed-scrim { display: block; }

  .feed-dock {
    display: flex;
    align-items: center;
    gap: 8px;
    position: absolute;
    z-index: 750;
    left: 8px;
    bottom: max(10px, env(safe-area-inset-bottom));
    min-height: 44px;
    padding: 10px 12px;
    background: #0a1211ee;
    border: 1px solid var(--lime);
    color: var(--lime);
    font: 10px var(--mono);
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 0 20px #d3ff3620;
  }
  .feed-dock i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 9px var(--red);
    animation: blink 1.2s infinite;
  }
  .feed-dock em {
    font-style: normal;
    background: #16210f;
    color: var(--lime);
    padding: 2px 6px;
    border: 1px solid var(--line);
  }
  body.feed-open .feed-dock,
  body:has(#dossier:not(.hidden)) .feed-dock,
  body:has(#map.picking) .feed-dock,
  body:has(#searchResults:not(.hidden)) .feed-dock,
  body:has(#liveFightNote:not(.hidden)) .feed-dock {
    display: none;
  }

  .map-controls {
    top: 8px;
    left: 8px;
    right: 8px;
    justify-content: stretch;
  }
  .filter-control { flex: 1; min-width: 0; }
  .filter-control select { width: 100%; max-width: 100%; }
  #locateButton { flex: none; white-space: nowrap; min-height: 40px; }
  .locate-control { padding: 8px 10px; gap: 4px; }
  .locate-icon { width: 17px; height: 17px; font-size: 14px; }
  .gps-live-pill {
    top: 58px;
    right: 8px;
    left: auto;
    max-width: calc(100% - 16px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .map-legend, .map-title { display: none; }
  .char-tag { display: none; }
  .char-icon.selected .char-tag { display: flex; font-size: 9px; }
  .char-icon.selected .char-shout { display: none; }

  .dossier {
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    max-height: 58dvh;
    padding: 12px 12px max(10px, env(safe-area-inset-bottom));
    border-radius: 14px 14px 0 0;
    display: flex;
    flex-direction: column;
  }
  .dossier-note { display: block; font-size: 12px; margin: 6px 0 4px; }
  .dossier-recent {
    flex: 1;
    min-height: 90px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
  .dossier-recent .area-post + .area-post { display: grid; }
  .area-post { grid-template-columns: 40px 1fr; padding: 10px 0; }
  .area-post > span { width: 40px; height: 40px; font-size: 20px; }
  .area-post b { font-size: 13px; }
  .area-post p { font-size: 13px; line-height: 1.4; }
  .dossier-head { gap: 10px; }
  .dossier-avatar-wrap { width: 44px; height: 44px; }
  .dossier-score { font-size: 22px; }
  .dossier-actions {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    background: transparent;
    padding-top: 8px;
    margin-top: 6px;
  }
  .dossier-actions .submit, .dossier-actions .ghost-wide { min-height: 40px; font-size: 11px; padding: 8px 6px; }

  .toast-stack {
    left: 8px;
    right: 8px;
    top: 112px;
    bottom: auto;
    max-width: none;
    align-items: stretch;
  }
  .toast { width: 100%; max-width: none; }

  .pin-banner {
    top: 58px;
    left: 8px;
    right: 8px;
    transform: none;
    max-width: none;
    width: auto;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
    padding: 8px 10px;
  }
  .pin-banner b { font-size: 12px; }
  .pin-banner span { display: none; }

  .live-fight-note {
    left: 8px;
    right: 8px;
    bottom: max(12px, env(safe-area-inset-bottom));
    transform: none;
    white-space: normal;
    max-width: none;
  }

  .leaflet-bottom.leaflet-right { margin-bottom: max(56px, calc(env(safe-area-inset-bottom) + 48px)); }
  body:has(#dossier:not(.hidden)) .leaflet-bottom.leaflet-right { margin-bottom: calc(58dvh + 12px); }
  body.feed-open .leaflet-bottom.leaflet-right { margin-bottom: calc(74dvh + 8px); }
  .leaflet-bar a { width: 36px !important; height: 36px !important; line-height: 36px !important; font-size: 18px !important; }
  .search-item { min-height: 52px; padding: 12px; }
  .search-item b { font-size: 13px; }
  .ghost-wide, .submit { min-height: 44px; }

  dialog {
    padding: 18px 14px;
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
  }
  dialog.wide { width: calc(100vw - 16px); }
  dialog h2 { font-size: 20px; }
  .briefing h1 { font-size: 24px; }
  .briefing .lead { font-size: 14px; }
  .tour-step-icon { font-size: 34px; }
  .briefing .quick-guide { gap: 3px; margin-bottom: 10px; }
  .briefing .quick-guide li { padding: 6px 2px; gap: 7px; }
  .quick-guide li > span { font-size: 15px; }
  .quick-guide p { font-size: 10.5px; line-height: 1.35; }
  .briefing-risk { font-size: 9px; margin-bottom: 10px; }
  .result-score { grid-template-columns: 1fr; }
  .chips .chip { padding: 8px 9px; }
  .pick-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); max-height: 40dvh; }
  .result-score b { font-size: 42px; }

  .combat-arena { width: 300px; height: 230px; transform: none; padding: 8px; }
  .observer-fight-wrap { width: 132px; height: 98px; }
  .observer-fight-wrap .combat-arena { width: 300px; height: 230px; transform: scale(0.44); }
  .fighter-sprite { width: 72px; height: 72px; }
  .fighter-wrapper { width: 86px; }
  .combo-meter { top: 52px; font-size: 10px; }
}
