:root {
  --bg: #050507;
  --bg-grad-a: #1f0f36;
  --bg-grad-b: #3a111a;
  --text: #f6f7fb;
  --muted: #b7b9c5;
  --line: rgba(255, 255, 255, 0.08);
  --panel-hi: rgba(255,255,255,.07);
  --panel-lo: rgba(255,255,255,.03);
  --card: #0f1218;
  --yellow: #ffd84d;
  --purple: #8b3dff;
  --red: #ff3c5f;
}

:root[data-theme="light"] {
  --bg: #f6f7fb;
  --bg-grad-a: #f2e7ff;
  --bg-grad-b: #ffe9ef;
  --text: #15161b;
  --muted: #525866;
  --line: rgba(0, 0, 0, 0.12);
  --panel-hi: rgba(255,255,255,.92);
  --panel-lo: rgba(255,255,255,.75);
  --card: #ffffff;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(60% 70% at 10% 0%, var(--bg-grad-a), transparent 60%),
    radial-gradient(50% 50% at 80% 8%, var(--bg-grad-b), transparent 60%),
    var(--bg);
}
.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 30% 20%, rgba(255,216,77,.1), transparent 32%), radial-gradient(circle at 70% 30%, rgba(139,61,255,.13), transparent 35%);
}
.container { width: min(1160px, 92vw); margin: 0 auto; padding: 24px 0 40px; }
.hero { padding: 20px 0 14px; }

.liquid-panel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel-hi), var(--panel-lo));
  backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 8px 22px rgba(0,0,0,.12);
  border-radius: 18px;
}

.topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  min-height: 56px;
}
.brand-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  object-fit: contain;
  object-position: center;
  background: #fff;
  padding: 4px;
  border: 1px solid var(--line);
  box-shadow: 0 3px 10px rgba(0,0,0,.18);
  flex: 0 0 32px;
}
:root[data-theme="light"] .brand-logo {
  background: #ffffff;
}
.brand {
  font-weight: 900;
  letter-spacing: .6px;
  background: linear-gradient(95deg, var(--yellow), var(--red), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav-tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.nav-tab {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--text);
  padding: 9px 13px;
  font-weight: 600;
  cursor: pointer;
}
.nav-tab.active {
  background: linear-gradient(120deg, rgba(255,216,77,.22), rgba(255,60,95,.2), rgba(139,61,255,.24)), var(--card);
}

.topbar-actions { display: flex; gap: 8px; align-items: center; }
.theme-toggle {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--text);
  padding: 3px;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.theme-toggle:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(0,0,0,.18); }
.theme-toggle-track {
  width: 116px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  position: relative;
  background: linear-gradient(120deg, rgba(255,255,255,.06), rgba(255,255,255,.01));
}
.theme-toggle-knob {
  position: absolute;
  width: 52px;
  height: 24px;
  border-radius: 999px;
  left: 3px;
  top: 3px;
  background: linear-gradient(120deg, rgba(120,90,255,.9), rgba(255,80,120,.8));
  box-shadow: 0 3px 10px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.3);
  transition: transform .28s cubic-bezier(.22,.9,.22,1), background .2s ease;
}
.theme-toggle-label {
  font-size: .68rem;
  font-weight: 700;
  z-index: 1;
  text-align: center;
  opacity: .6;
  letter-spacing: .03em;
}
.theme-toggle[aria-pressed="true"] .theme-toggle-knob { transform: translateX(58px); background: linear-gradient(120deg, rgba(255,216,77,.95), rgba(255,114,135,.88)); }
.theme-toggle[aria-pressed="true"] .theme-toggle-label.light,
.theme-toggle[aria-pressed="false"] .theme-toggle-label.dark { opacity: 1; }

.report-cta {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(95deg, var(--yellow), var(--red));
  color: #151515;
}

.hero-media {
  margin-top: 14px;
  min-height: 420px;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  padding: 34px 24px 24px;
  isolation: isolate;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,216,77,.25), transparent 35%),
    radial-gradient(circle at 80% 20%, rgba(255,60,95,.24), transparent 32%),
    radial-gradient(circle at 50% 80%, rgba(139,61,255,.28), transparent 40%),
    linear-gradient(125deg, #0f1018, #07080f);
}
:root[data-theme="light"] .hero-media {
  background:
    radial-gradient(circle at 20% 20%, rgba(255,216,77,.34), transparent 35%),
    radial-gradient(circle at 80% 20%, rgba(255,60,95,.30), transparent 32%),
    radial-gradient(circle at 50% 80%, rgba(139,61,255,.32), transparent 40%),
    linear-gradient(125deg, #ffffff, #f3f4f8);
}
.hero-media::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: 0;
  background:
    conic-gradient(from 20deg at 30% 35%,
      rgba(255, 68, 120, .22),
      rgba(255, 215, 70, .2),
      rgba(106, 255, 236, .18),
      rgba(132, 95, 255, .24),
      rgba(255, 68, 120, .22)),
    radial-gradient(ellipse at 65% 45%, rgba(255,255,255,.18), transparent 48%);
  mix-blend-mode: screen;
  filter: blur(14px) saturate(1.3) hue-rotate(0deg);
  animation: holoShift 13s ease-in-out infinite alternate;
  opacity: .9;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.58)),
    repeating-linear-gradient(115deg, rgba(255,255,255,.04) 0 2px, transparent 2px 8px);
}
:root[data-theme="light"] .hero-media::after {
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.46)),
    repeating-linear-gradient(115deg, rgba(0,0,0,.03) 0 2px, transparent 2px 8px);
}

@keyframes holoShift {
  0%   { transform: translate3d(-2%, -1%, 0) scale(1.02) rotate(0deg); filter: blur(14px) saturate(1.24) hue-rotate(0deg); }
  35%  { transform: translate3d(1.2%, 1.5%, 0) scale(1.05) rotate(4deg); filter: blur(16px) saturate(1.36) hue-rotate(34deg); }
  70%  { transform: translate3d(-1%, 2%, 0) scale(1.03) rotate(-3deg); filter: blur(13px) saturate(1.45) hue-rotate(76deg); }
  100% { transform: translate3d(2%, -2%, 0) scale(1.06) rotate(6deg); filter: blur(15px) saturate(1.3) hue-rotate(118deg); }
}
.hero-content > * { position: relative; z-index: 2; }

.melt-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: .95;
  mix-blend-mode: screen;
}
:root[data-theme="light"] .melt-canvas {
  mix-blend-mode: multiply;
  opacity: .8;
}

.hero-media-overlay {
  position: absolute;
  top: 16px;
  right: 18px;
  text-align: right;
  gap: 4px;
  z-index: 2;
  opacity: .7;
}
.hero-media-overlay p { margin: 0; font-size: .7rem; font-weight: 800; letter-spacing: .08em; }
.hero-media-overlay span { color: var(--muted); font-size: .75rem; }

.hero-content { padding: 34px 24px 24px; }
.kicker { text-transform: uppercase; letter-spacing: 2px; color: var(--muted); font-size: .76rem; }
h1 {
  font-size: clamp(2.4rem, 7vw, 5.2rem);
  line-height: .9;
  margin: 10px 0;
  font-weight: 900;
  letter-spacing: -.02em;
  background: linear-gradient(100deg, #fff, #f0e3ff 40%, #ffd2dc 75%, #fff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
:root[data-theme="light"] h1 {
  background: linear-gradient(100deg, #1d1f25, #4d2e7b 40%, #8b2345 75%, #1d1f25);
  -webkit-background-clip: text;
  background-clip: text;
}
.sub { max-width: 760px; color: var(--muted); }
.hero-stats {
  margin-top: 16px;
  padding: 10px 12px;
  border-radius: 14px;
  display: inline-flex;
  gap: 14px;
  font-size: .85rem;
}
.hot-strip { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; font-size: .84rem; color: var(--muted); }

.section { margin-top: 18px; padding: 22px; }
.section-gradient {
  background: linear-gradient(95deg, #fff, #ffe28b, #f2b7ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
:root[data-theme="light"] .section-gradient {
  background: linear-gradient(95deg, #272a33, #946800, #6633a8);
  -webkit-background-clip: text;
  background-clip: text;
}

.category-rail { display: flex; gap: 8px; flex-wrap: wrap; padding: 0; margin-top: 14px; }
.chip {
  font-size: .78rem;
  border: 1px solid var(--line);
  background: var(--card);
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--text);
}
.chip.active { background: linear-gradient(90deg, rgba(139,61,255,.58), rgba(255,60,95,.62)); color: #fff; }

.map-wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 14px; }
.map-canvas {
  position: relative;
  min-height: 390px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: #0c1119;
  overflow: hidden;
}
:root[data-theme="light"] .map-canvas {
  background: #e9eef5;
}
.map-terrain {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255,216,77,.18), rgba(139,61,255,.22), rgba(255,60,95,.18)),
    url('./assets/chicago-neighborhood-map.jpg') center/cover no-repeat;
  background-blend-mode: color, luminosity;
  filter: contrast(1.06) saturate(1.05) brightness(.78);
  opacity: .8;
}
:root[data-theme="light"] .map-terrain {
  background:
    linear-gradient(135deg, rgba(255,216,77,.14), rgba(139,61,255,.16), rgba(255,60,95,.12)),
    url('./assets/chicago-neighborhood-map.jpg') center/cover no-repeat;
  background-blend-mode: soft-light, normal;
  filter: contrast(1.02) saturate(1) brightness(1.02);
  opacity: .78;
}
.map-water {
  position: absolute;
  top: -4%;
  right: -16%;
  width: 42%;
  height: 116%;
  background: linear-gradient(180deg, rgba(78,160,255,.35), rgba(38,98,190,.26));
  border-left: 1px solid rgba(188,224,255,.35);
  border-radius: 42% 0 0 52% / 54% 0 0 46%;
  filter: blur(.2px);
  opacity: .32;
}
:root[data-theme="light"] .map-water {
  background: linear-gradient(180deg, rgba(112,174,255,.36), rgba(77,139,230,.28));
  border-left-color: rgba(103,152,224,.48);
}
.map-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 22px 22px, 22px 22px, 66px 66px, 66px 66px;
  mask-image: linear-gradient(90deg, black 0 78%, transparent 95%);
  pointer-events: none;
}
.map-label {
  position: absolute;
  z-index: 2;
  font-size: .62rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(239,244,255,.68);
  text-shadow: 0 1px 0 rgba(0,0,0,.35);
  pointer-events: none;
}
:root[data-theme="light"] .map-label {
  color: rgba(36,53,83,.66);
  text-shadow: none;
}
.map-label.l1 { left: 22%; top: 20%; }
.map-label.l2 { left: 37%; top: 37%; }
.map-label.l3 { left: 54%; top: 30%; }
.map-label.l4 { left: 50%; top: 56%; }
.map-label.l5 { left: 34%; top: 74%; }
.map-routes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.route {
  fill: none;
  stroke: rgba(170,120,255,.45);
  stroke-width: 0.9;
  stroke-linecap: round;
  stroke-dasharray: 2.5 2.5;
  filter: drop-shadow(0 0 4px rgba(255,80,120,.28));
  animation: routeFlow 6.5s linear infinite;
}
.route.r2 { stroke: rgba(255,220,120,.5); animation-duration: 7.4s; }
.route.r3 { stroke: rgba(110,220,255,.42); animation-duration: 8.2s; }
.route.r4 { stroke: rgba(255,125,170,.46); animation-duration: 6.9s; }
@keyframes routeFlow {
  from { stroke-dashoffset: 0; opacity: .35; }
  50% { opacity: .75; }
  to { stroke-dashoffset: -18; opacity: .35; }
}
:root[data-theme="light"] .route {
  stroke: rgba(105,80,170,.34);
  filter: drop-shadow(0 0 2px rgba(105,80,170,.2));
}
.map-filters {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  z-index: 2;
}
.map-filter {
  border: 1px solid var(--line);
  background: rgba(8,10,16,.6);
  color: #f1f2f6;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: .68rem;
  font-weight: 700;
  cursor: pointer;
}
.map-filter.active { background: linear-gradient(100deg, rgba(255,216,77,.9), rgba(255,85,110,.85)); color: #161616; border-color: transparent; }

.map-status {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 3;
  padding: 8px 10px;
  border-radius: 12px;
  font-size: .78rem;
  background: rgba(8,10,16,.65);
}
.map-secret-spots {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.secret-eye {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: #fff url('./assets/drippy-eyes-logo.jpg') center/85% no-repeat;
  box-shadow: 0 0 0 1px rgba(0,0,0,.22), 0 8px 16px rgba(0,0,0,.3);
  opacity: 0;
  transform: scale(.7);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: auto;
}
.secret-eye.show {
  opacity: .95;
  transform: scale(1);
}
.secret-eye:hover {
  transform: scale(1.1);
}
.eye { position: absolute; width: 30px; height: 30px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); color: #ff4666; background: linear-gradient(160deg, #360a17, #13060b); box-shadow: 0 0 24px rgba(255,55,92,.45), inset 0 1px 2px rgba(255,255,255,.2); cursor: pointer; animation: drop .6s both, idleFloat 2.4s ease-in-out infinite; transition: transform .2s ease, box-shadow .2s ease, opacity .25s ease; }
.eye span { display: inline-block; }
.eye:hover { transform: scale(1.14); }
.eye:hover span { animation: lookAround .7s ease-in-out infinite; }
.eye.active { box-shadow: 0 0 0 2px rgba(255,255,255,.22), 0 0 28px rgba(255,70,102,.75), inset 0 1px 2px rgba(255,255,255,.2); }
.eye.dimmed { opacity: .34; transform: scale(.9); }
.eye.hidden { opacity: .08; transform: scale(.78); pointer-events: none; }
.eye.active.dimmed,
.eye.active.hidden { opacity: 1; transform: scale(1); pointer-events: auto; }
.eye.active::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 999px;
  border: 1px solid rgba(255,120,145,.55);
  animation: eyePing 1.8s ease-out infinite;
}
@keyframes eyePing {
  0% { transform: scale(.78); opacity: .75; }
  70% { transform: scale(1.25); opacity: .08; }
  100% { transform: scale(1.35); opacity: 0; }
}
@keyframes drop { from { opacity: 0; transform: translateY(-18px) scale(.5) rotate(-45deg); } to { opacity: 1; transform: translateY(0) scale(1) rotate(0); } }
@keyframes idleFloat { 0%,100% { translate: 0 0; } 50% { translate: 0 -4px; } }
@keyframes lookAround { 0%,100% { transform: translate(0, 0); } 25% { transform: translate(-2px, 0); } 50% { transform: translate(2px, -1px); } 75% { transform: translate(0, 2px); } }
.eye-1{left:32%;top:24%;animation-delay:.05s}.eye-2{left:42%;top:35%;animation-delay:.1s}.eye-3{left:52%;top:44%;animation-delay:.15s}.eye-4{left:49%;top:59%;animation-delay:.2s}.eye-5{left:59%;top:22%;animation-delay:.25s}.eye-6{left:56%;top:32%;animation-delay:.3s}.eye-7{left:38%;top:71%;animation-delay:.35s}.eye-8{left:44%;top:18%;animation-delay:.4s}

.side h3 { margin: 0 0 8px; font-size: .95rem; color: var(--text); }
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
  margin: 0 0 14px;
}
.side .chip {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  line-height: 1;
}
.neighborhood-chips .chip {
  cursor: pointer;
  appearance: none;
}

.hood-art {
  margin-top: 8px;
  overflow: hidden;
  border-radius: 14px;
}
.hood-art img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--line);
}
.hood-art-copy {
  padding: 10px 12px;
}
.hood-art-label {
  margin: 0;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}
.hood-art-copy h4 {
  margin: 6px 0 4px;
  font-size: .95rem;
}
#hoodArtMeta {
  margin: 0;
  color: var(--muted);
  font-size: .78rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
}
.dash-card {
  padding: 16px;
  min-height: 196px;
}
.dash-card h3 {
  margin: 0 0 12px;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .9;
}
.pulse-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.pulse-stats div {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  display: grid;
  gap: 3px;
}
.pulse-stats strong { font-size: 1.1rem; }
.pulse-stats span { color: var(--muted); font-size: .75rem; }

.social-feed ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.social-feed li {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  font-size: .84rem;
  line-height: 1.35;
}
.social-feed li span { font-weight: 700; color: var(--text); margin-right: 4px; }
.social-feed li em { color: var(--muted); font-style: normal; float: right; }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.photo-tile {
  border-radius: 12px;
  min-height: 86px;
  border: 1px solid var(--line);
  background-size: 160% 160%;
  animation: tileFlow 10s ease-in-out infinite alternate;
}
.photo-tile.p1 { background-image: linear-gradient(135deg, #ffce54, #ff4d6d, #5a31ff); }
.photo-tile.p2 { background-image: linear-gradient(135deg, #64f5ff, #7c5cff, #ff74c6); }
.photo-tile.p3 { background-image: linear-gradient(135deg, #ff8a5c, #ffd166, #8a5cff); }
.photo-tile.p4 { background-image: linear-gradient(135deg, #66ffcc, #5e89ff, #ff5d8f); }
/* removed auto-pan animation for story images */

.report-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.report-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.report-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 14, .6);
  backdrop-filter: blur(6px);
}
.report-modal-card {
  position: relative;
  z-index: 1;
  width: min(560px, 92vw);
  padding: 14px;
}
.report-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.report-modal-head h3 { margin: 0; font-size: 1.02rem; }
.report-modal-close {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  width: 30px;
  height: 30px;
  border-radius: 999px;
  cursor: pointer;
}
.report-modal-sub { margin: 6px 0 10px; color: var(--muted); font-size: .85rem; }
.report-modal-form { display: grid; gap: 10px; }
.report-modal-form label { display: grid; gap: 6px; font-size: .82rem; }
.report-modal-form textarea,
.report-modal-form select {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  border-radius: 10px;
  padding: 10px;
  font: inherit;
}
.report-modal-form textarea { min-height: 94px; resize: vertical; }
.report-modal-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.message-board {
  padding: 0;
}
.message-board-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 10px;
  margin-bottom: 10px;
}
.message-board-head p {
  margin: 0;
  color: var(--muted);
  font-size: .86rem;
}
.board-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.board-form {
  padding: 14px;
  display: grid;
  gap: 10px;
}
.board-form label {
  display: grid;
  gap: 6px;
  font-size: .82rem;
}
.board-form textarea,
.board-form select {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  border-radius: 10px;
  padding: 10px;
  font: inherit;
}
.board-form textarea { min-height: 88px; resize: vertical; }
.board-form-row {
  display: grid;
  grid-template-columns: minmax(180px, 260px) auto auto;
  gap: 10px;
  align-items: end;
}
.anon-check {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  color: var(--muted);
  height: 40px;
}
.board-submit {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(95deg, var(--yellow), var(--red));
  color: #141414;
  height: 40px;
}
.char-count {
  margin-top: 2px;
  font-size: .72rem;
  color: var(--muted);
  justify-self: end;
}
.char-count.warn { color: #ffb74d; }
.char-count.max { color: #ff6b7c; }

/* Premium, subtler button/card motion */
.report-cta,
.board-submit,
.stories-toggle,
.shop-card,
.nav-tab,
.map-filter {
  transition: transform .18s ease, box-shadow .22s ease, border-color .22s ease, background-color .22s ease;
}

.report-cta:hover,
.board-submit:hover,
.stories-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.35);
}

.shop-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 20px rgba(0,0,0,.16);
  border-color: rgba(255,255,255,.22);
}

.nav-tab:hover,
.map-filter:hover {
  border-color: rgba(255,255,255,.26);
  box-shadow: 0 6px 12px rgba(0,0,0,.16);
}

.board-wall {
  padding: 14px;
  min-height: 260px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
  align-content: start;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
}

.note {
  border-radius: 12px;
  padding: 10px;
  border: 1px solid rgba(0,0,0,.14);
  box-shadow: 0 8px 14px rgba(0,0,0,.16);
  transform: rotate(var(--tilt, 0deg));
}
.note p {
  margin: 0 0 8px;
  font-size: .86rem;
  line-height: 1.35;
  color: #1b1f2a;
  font-weight: 650;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.note span {
  color: rgba(18,22,34,.72);
  font-size: .72rem;
  font-weight: 700;
}
.n1 { background: #ffe88f; --tilt: -1deg; }
.n2 { background: #b8f0ff; --tilt: .8deg; }
.n3 { background: #ffc6df; --tilt: -0.4deg; }
.n4 { background: #d8f8c2; --tilt: 1.1deg; }
.n5 { background: #e6dcff; --tilt: -0.8deg; }

:root[data-theme="dark"] .note span { color: rgba(20,20,20,.72); }

.featured-shops {
  padding: 0;
}
.featured-shops-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 10px;
  margin-bottom: 10px;
}
.featured-shops-head p {
  margin: 0;
  color: var(--muted);
  font-size: .86rem;
}
.shops-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.shop-card {
  text-decoration: none;
  color: inherit;
  padding: 14px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.shop-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 20px rgba(0,0,0,.16);
  border-color: rgba(255,255,255,.22);
}
.shop-card h3 {
  margin: 0 0 6px;
  font-size: .98rem;
}
.shop-card p {
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.35;
}
.shop-card span {
  display: inline-block;
  margin-top: 10px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .03em;
}

.editorial {
  padding: 0;
}
.editorial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.story {
  overflow: hidden;
}
.story-card {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 330px;
}
.story-image {
  min-height: 180px;
  border-bottom: 1px solid var(--line);
  background-size: cover;
  background-position: center center;
  transform: scale(1);
  transition: transform .45s cubic-bezier(.22,.9,.22,1), filter .3s ease;
  will-change: transform;
}
.story:hover .story-image {
  transform: scale(1.04);
  filter: saturate(1.04) contrast(1.02);
}
.story-copy { padding: 14px; display: grid; gap: 8px; }
.story-copy h3 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.25;
  letter-spacing: -.01em;
}
.story-copy p {
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
}
.story-meta {
  margin: 0;
  font-size: .7rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
}
.s1 { background-image: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.28)), url('./assets/story-1.jpg'); background-position: center; }
.s2 { background-image: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.28)), url('./assets/story-2.jpg'); background-position: center; }
.s3 { background-image: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.28)), url('./assets/story-3.jpg'); background-position: center; }
.s4 { background-image: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.28)), url('./assets/story-4.jpg'); background-position: center; }
.s5 { background-image: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.28)), url('./assets/story-5.jpg'); background-position: center; }
.s6 { background-image: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.28)), url('./assets/story-11.jpg'); background-position: center; }
.s7 { background-image: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.28)), url('./assets/story-12.jpg'); background-position: center; }
.s8 { background-image: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.28)), url('./assets/story-13.jpg'); background-position: center; }
.s9 { background-image: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.28)), url('./assets/story-14.jpg'); background-position: center; }
.s10 { background-image: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.28)), url('./assets/story-15.jpg'); background-position: center; }

.story-hidden {
  display: none;
  opacity: 0;
  transform: translateY(14px) scale(.99);
}
.story-reveal {
  transition: opacity .32s ease, transform .32s ease;
}
.story-reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.stories-actions {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}
.stories-toggle {
  min-width: 220px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px;
  background: linear-gradient(140deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.stories-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(0,0,0,.16);
  border-color: rgba(255,255,255,.25);
}
.stories-toggle-text {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .03em;
  padding-left: 8px;
}
.stories-toggle-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(95deg, var(--yellow), var(--red));
  color: #141414;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 5px 12px rgba(0,0,0,.22);
}
.stories-toggle[aria-expanded="true"] .stories-toggle-icon {
  background: linear-gradient(120deg, rgba(255,216,77,.9), rgba(255,114,135,.88));
}

@media (max-width: 980px) {
  .topbar { grid-template-columns: 1fr; justify-items: start; }
  .map-wrap, .dashboard-grid, .editorial-grid, .shops-grid, .board-layout { grid-template-columns: 1fr; }
  .featured-shops-head, .message-board-head { display: grid; gap: 6px; }
  .board-form-row { grid-template-columns: 1fr; }
  .board-wall {
    grid-template-columns: 1fr;
  }
  .report-modal-row { grid-template-columns: 1fr; }
  .hero-content { padding: 24px 16px 18px; min-height: 360px; }
  .hero-stats { display: grid; gap: 4px; }
}
