:root {
  --ink: #203548;
  --paper: #fff8e8;
  --paper-2: #fffdf6;
  --pink: #ff65a3;
  --pink-deep: #c92b66;
  --yellow: #ffd83d;
  --orange: #ff8b61;
  --blue: #20cbd4;
  --blue-deep: #178fd9;
  --purple: #654adf;
  --green: #91dc4d;
  --line: rgba(32, 53, 72, 0.18);
  --muted: #65727f;
  --shadow: 0 18px 50px rgba(34, 46, 73, 0.12);
  --hard-shadow: 7px 8px 0 var(--ink);
  --radius-xl: 38px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --page: min(1180px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 9% 8%, rgba(255, 216, 61, 0.29) 0 90px, transparent 92px),
    radial-gradient(circle at 90% 16%, rgba(32, 203, 212, 0.19) 0 125px, transparent 127px),
    var(--paper);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  color: inherit;
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 4px solid #fff;
  box-shadow: 0 0 0 7px var(--purple);
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 12px 18px;
  border-radius: 14px;
  color: #fff;
  background: var(--ink);
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: none;
}

.page-shell {
  width: var(--page);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  width: var(--page);
  min-height: 94px;
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-orbit {
  position: relative;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 3px solid var(--ink);
  border-radius: 48% 52% 44% 56%;
  background: var(--pink);
  transform: rotate(-7deg);
}

.brand-orbit::before {
  position: absolute;
  width: 59px;
  height: 22px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  content: "";
  transform: rotate(-17deg);
}

.brand-face {
  margin-top: -5px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 19px;
  letter-spacing: 0.06em;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

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

.pill-button {
  display: inline-flex;
  min-height: 46px;
  padding: 0 17px;
  align-items: center;
  gap: 9px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 13px;
  font-weight: 800;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.pill-button:hover {
  box-shadow: 1px 2px 0 var(--ink);
  transform: translate(2px, 1px);
}

.pill-button[aria-pressed="true"] {
  color: white;
  background: var(--purple);
}

.audio-icon {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.audio-button[aria-pressed="true"] .audio-icon {
  animation: musicPulse 1.1s ease-in-out infinite alternate;
}

.ghost-button {
  background: transparent;
  box-shadow: none;
}

.hero {
  display: grid;
  min-height: 670px;
  padding: 58px 0 78px;
  grid-template-columns: minmax(0, 0.94fr) minmax(440px, 1.06fr);
  align-items: center;
  gap: 55px;
}

.eyebrow {
  display: flex;
  margin: 0 0 18px;
  align-items: center;
  gap: 9px;
  color: var(--pink-deep);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow span {
  font-size: 18px;
}

.eyebrow.purple {
  color: var(--purple);
}

.eyebrow.yellow {
  color: var(--yellow);
}

.hero h1 {
  max-width: 630px;
  margin: 0;
  font-size: clamp(48px, 5.7vw, 78px);
  font-weight: 950;
  letter-spacing: -0.075em;
  line-height: 1.08;
}

.scribble-word {
  position: relative;
  display: inline-block;
  z-index: 0;
  color: var(--paper-2);
  white-space: nowrap;
}

.scribble-word::before {
  position: absolute;
  inset: -5px -12px -7px;
  z-index: -1;
  border: 4px solid var(--ink);
  border-radius: 46% 54% 44% 56% / 58% 40% 60% 42%;
  background: var(--pink);
  content: "";
  transform: rotate(-2deg);
}

.scribble-word::after {
  position: absolute;
  right: -18px;
  bottom: -17px;
  width: 40px;
  height: 13px;
  border-bottom: 4px solid var(--purple);
  border-radius: 50%;
  content: "";
  transform: rotate(-12deg);
}

.hero-lead {
  max-width: 550px;
  margin: 31px 0 0;
  color: #51606f;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  margin-top: 29px;
  flex-wrap: wrap;
  gap: 13px;
}

.primary-action,
.secondary-action,
.dark-action {
  display: inline-flex;
  min-height: 56px;
  padding: 0 23px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 3px solid var(--ink);
  border-radius: 18px;
  background: var(--pink);
  box-shadow: 5px 6px 0 var(--ink);
  font-size: 16px;
  font-weight: 900;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.primary-action:hover,
.secondary-action:hover,
.dark-action:hover {
  box-shadow: 2px 3px 0 var(--ink);
  transform: translate(3px, 2px);
}

.action-spark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--yellow);
  font-size: 20px;
}

.secondary-action {
  background: var(--paper-2);
}

.location-line {
  display: flex;
  margin-top: 23px;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.status-dot {
  width: 9px;
  height: 9px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--orange);
}

.location-line.success .status-dot {
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(145, 220, 77, 0.24);
}

.location-line.loading .status-dot {
  animation: ping 0.8s ease-in-out infinite alternate;
  background: var(--yellow);
}

.hero-stats {
  display: flex;
  margin: 37px 0 0;
  gap: 0;
}

.hero-stats div {
  padding: 0 24px;
  border-left: 1px solid var(--line);
}

.hero-stats div:first-child {
  padding-left: 0;
  border-left: 0;
}

.hero-stats dt {
  font-size: 25px;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.hero-stats dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.hero-visual {
  position: relative;
  min-height: 580px;
}

.postcard {
  position: absolute;
  inset: 35px 12px 15px 22px;
  overflow: hidden;
  border: 4px solid var(--ink);
  border-radius: 45px 30px 48px 25px;
  background: #7ee2f2;
  box-shadow: var(--hard-shadow), 0 31px 70px rgba(55, 78, 114, 0.17);
  transform: rotate(2.2deg);
}

.postcard::before {
  position: absolute;
  inset: 12px;
  z-index: 1;
  border: 2px dashed rgba(32, 53, 72, 0.38);
  border-radius: 34px 22px 40px 20px;
  content: "";
  pointer-events: none;
}

.postcard-topline {
  position: absolute;
  top: 25px;
  left: 32px;
  z-index: 2;
  display: flex;
  width: calc(100% - 64px);
  justify-content: space-between;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.island-scene {
  position: absolute;
  inset: 35px 0 0;
  width: 100%;
  height: calc(100% - 35px);
}

.postcard-caption {
  position: absolute;
  right: 28px;
  bottom: 20px;
  z-index: 3;
  padding: 8px 13px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper-2);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.monster {
  transform-origin: 282px 300px;
  animation: monsterBob 3.2s ease-in-out infinite;
}

.flying-fish {
  transform-origin: 120px 143px;
  animation: fishFloat 4.4s ease-in-out infinite;
}

.sun-sticker {
  position: absolute;
  top: -2px;
  right: -28px;
  z-index: 5;
  display: grid;
  width: 112px;
  height: 112px;
  place-content: center;
  border: 3px solid var(--ink);
  border-radius: 44% 56% 45% 55%;
  background: var(--yellow);
  box-shadow: 4px 5px 0 var(--ink);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-align: center;
  transform: rotate(10deg);
}

.sun-sticker strong {
  font-size: 21px;
  letter-spacing: -0.04em;
}

.mini-note {
  position: absolute;
  z-index: 6;
  padding: 13px 15px;
  border: 3px solid var(--ink);
  border-radius: 14px 18px 11px 17px;
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
}

.mini-note strong {
  font-size: 12px;
}

.mini-note-left {
  bottom: 4px;
  left: -16px;
  background: var(--yellow);
  transform: rotate(-7deg);
}

.mini-note-right {
  right: -10px;
  bottom: 95px;
  color: white;
  background: var(--purple);
  transform: rotate(6deg);
}

.sky-confetti {
  position: absolute;
  inset: 0 0 auto;
  height: 820px;
  overflow: hidden;
  pointer-events: none;
}

.confetti {
  position: absolute;
  display: block;
  opacity: 0.7;
}

.confetti-a {
  top: 154px;
  left: 2.5%;
  width: 18px;
  height: 18px;
  border: 4px solid var(--purple);
  transform: rotate(23deg);
}

.confetti-b {
  top: 665px;
  left: 7%;
  width: 48px;
  height: 20px;
  border-top: 5px solid var(--blue);
  border-radius: 50%;
  transform: rotate(-20deg);
}

.confetti-c {
  top: 150px;
  left: 48%;
  width: 12px;
  height: 40px;
  border-radius: 10px;
  background: var(--orange);
  transform: rotate(34deg);
}

.confetti-d {
  top: 630px;
  right: 3%;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: var(--pink);
}

.confetti-e {
  top: 260px;
  right: 2%;
  width: 50px;
  height: 16px;
  border-top: 5px solid var(--yellow);
  border-radius: 50%;
  transform: rotate(-48deg);
}

.confetti-f {
  top: 520px;
  left: 45%;
  width: 16px;
  height: 16px;
  background: var(--green);
  transform: rotate(45deg);
}

.ticker {
  overflow: hidden;
  border-block: 3px solid var(--ink);
  background: var(--yellow);
  transform: rotate(-0.6deg) scale(1.01);
}

.ticker-track {
  display: flex;
  width: max-content;
  padding: 13px 0;
  animation: tickerMove 25s linear infinite;
}

.ticker span {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  padding-left: 26px;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.04em;
}

.ticker b {
  font-size: 19px;
}

.explorer {
  padding: 114px 0 128px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 35px;
}

.section-heading h2,
.trust-copy h2,
.lab-section h2 {
  margin: 0;
  font-size: clamp(38px, 4.5vw, 60px);
  font-weight: 950;
  letter-spacing: -0.065em;
  line-height: 1.14;
}

.section-note {
  max-width: 380px;
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.7;
  text-align: right;
}

.filter-board {
  position: relative;
  margin-top: 43px;
  padding: 25px 28px;
  border: 3px solid var(--ink);
  border-radius: 25px 32px 23px 34px;
  background: rgba(255, 253, 246, 0.9);
  box-shadow: 6px 7px 0 var(--ink);
}

.filter-board::before {
  position: absolute;
  top: -17px;
  right: 54px;
  width: 76px;
  height: 27px;
  border-inline: 2px solid rgba(32, 53, 72, 0.25);
  background: rgba(255, 139, 97, 0.65);
  content: "";
  transform: rotate(5deg);
}

.filter-row {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.filter-row + .filter-row {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px dashed var(--line);
}

.filter-label {
  flex: 0 0 48px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.filter-chip,
.sort-button {
  min-height: 39px;
  padding: 0 15px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: #edf0ee;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  transition: 0.18s ease;
}

.filter-chip:hover,
.sort-button:hover {
  border-color: var(--ink);
}

.filter-chip.active {
  border-color: var(--ink);
  background: var(--yellow);
  box-shadow: 2px 3px 0 var(--ink);
}

.district-chips {
  display: flex;
  min-width: 0;
  flex: 1;
  gap: 8px;
  overflow-x: auto;
  padding: 3px 3px 6px;
  scrollbar-width: thin;
}

.district-chips .filter-chip.active {
  color: #fff;
  background: var(--purple);
}

.compact-row {
  display: grid;
  grid-template-columns: 1fr 1fr minmax(220px, 1.35fr) auto;
}

.select-wrap,
.search-wrap {
  display: flex;
  min-height: 48px;
  padding: 0 13px;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--line);
  border-radius: 13px;
  background: white;
}

.select-wrap > span {
  color: var(--pink-deep);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.select-wrap select,
.search-wrap input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 750;
}

.search-wrap > span:not(.sr-only) {
  font-size: 23px;
}

.locate-small {
  min-height: 48px;
  padding: 0 16px;
  border: 2px solid var(--ink);
  border-radius: 13px;
  color: #fff;
  background: var(--ink);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.result-toolbar {
  display: flex;
  margin: 39px 0 22px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.result-toolbar p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.result-toolbar p strong {
  color: var(--ink);
  font-size: 25px;
}

.sort-control {
  display: flex;
  gap: 6px;
}

.sort-button {
  min-height: 36px;
  padding-inline: 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
}

.sort-button.active {
  color: var(--ink);
  background: #e8e2ff;
}

.recommend-banner {
  display: flex;
  margin: 0 0 23px;
  padding: 16px 18px;
  align-items: center;
  gap: 14px;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: #dff8ec;
  box-shadow: 3px 4px 0 var(--ink);
}

.recommend-banner[hidden] {
  display: none;
}

.recommend-compass {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--blue-deep);
  font-size: 23px;
}

.recommend-banner > div:nth-child(2) {
  flex: 1;
}

.recommend-banner span,
.recommend-banner strong {
  display: block;
}

.recommend-banner span {
  color: #287358;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.recommend-banner strong {
  margin-top: 3px;
  font-size: 13px;
}

.recommend-banner button {
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  font-size: 11px;
  font-weight: 850;
}

.spot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.spot-card {
  --card-accent: var(--pink);
  position: relative;
  display: flex;
  min-height: 390px;
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: 28px 23px 31px 22px;
  background: var(--paper-2);
  box-shadow: 5px 6px 0 var(--ink);
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.spot-card:nth-child(3n + 2) {
  border-radius: 21px 31px 24px 33px;
}

.spot-card:hover {
  box-shadow: 8px 10px 0 var(--ink);
  transform: translateY(-4px) rotate(-0.35deg);
}

.spot-card[data-tone="blue"] {
  --card-accent: var(--blue);
}

.spot-card[data-tone="yellow"] {
  --card-accent: var(--yellow);
}

.spot-card[data-tone="purple"] {
  --card-accent: #a997ff;
}

.spot-card[data-tone="green"] {
  --card-accent: var(--green);
}

.spot-card[data-tone="orange"] {
  --card-accent: var(--orange);
}

.card-visual {
  position: relative;
  display: grid;
  height: 145px;
  overflow: hidden;
  place-items: center;
  border-bottom: 3px solid var(--ink);
  background: var(--card-accent);
}

.card-visual::before,
.card-visual::after {
  position: absolute;
  content: "";
}

.card-visual::before {
  top: 21px;
  left: -10%;
  width: 120%;
  height: 80px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  opacity: 0.25;
  transform: rotate(-9deg);
}

.card-visual::after {
  right: 19px;
  bottom: 16px;
  width: 26px;
  height: 26px;
  border: 3px solid var(--ink);
  transform: rotate(18deg);
}

.card-emoji {
  position: relative;
  z-index: 2;
  display: grid;
  width: 81px;
  height: 81px;
  place-items: center;
  border: 3px solid var(--ink);
  border-radius: 48% 52% 43% 57%;
  background: var(--paper-2);
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 43px;
  transform: rotate(-4deg);
}

.distance-sticker,
.evidence-sticker {
  position: absolute;
  z-index: 3;
  padding: 7px 10px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper-2);
  font-size: 10px;
  font-weight: 900;
}

.distance-sticker {
  top: 12px;
  right: 12px;
}

.evidence-sticker {
  bottom: 12px;
  left: 12px;
  color: var(--ink);
  background: var(--yellow);
}

.card-body {
  display: flex;
  padding: 19px 20px 20px;
  flex: 1;
  flex-direction: column;
}

.card-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.05em;
}

.card-kicker .spot-type {
  color: var(--pink-deep);
}

.spot-card h3 {
  margin: 10px 0 8px;
  font-size: 22px;
  font-weight: 950;
  letter-spacing: -0.04em;
  line-height: 1.25;
}

.card-tagline {
  display: -webkit-box;
  min-height: 43px;
  margin: 0;
  overflow: hidden;
  color: #596674;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.spot-tags {
  display: flex;
  margin-top: 13px;
  flex-wrap: wrap;
  gap: 6px;
}

.spot-tag {
  padding: 5px 8px;
  border: 1.5px solid var(--line);
  border-radius: 7px;
  background: #f5f1e8;
  font-size: 9px;
  font-weight: 800;
}

.card-footer {
  display: flex;
  margin-top: auto;
  padding-top: 17px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.price-block span,
.price-block strong {
  display: block;
}

.price-block span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.price-block strong {
  margin-top: 2px;
  font-size: 19px;
  font-weight: 950;
}

.detail-button {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--card-accent);
  box-shadow: 2px 3px 0 var(--ink);
  font-size: 20px;
  font-weight: 950;
}

.load-more {
  display: flex;
  min-height: 54px;
  margin: 34px auto 0;
  padding: 0 21px;
  align-items: center;
  gap: 12px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper-2);
  box-shadow: 3px 4px 0 var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.load-more[hidden] {
  display: none;
}

.load-more span {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow);
}

.empty-state {
  padding: 80px 20px;
  border: 2px dashed var(--line);
  border-radius: 28px;
  text-align: center;
}

.empty-state[hidden] {
  display: none;
}

.empty-state > span {
  font-size: 55px;
}

.empty-state h3 {
  margin: 12px 0 8px;
  font-size: 22px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.empty-state button {
  margin-top: 18px;
  padding: 10px 18px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  font-size: 12px;
  font-weight: 850;
}

.trust-section {
  position: relative;
  overflow: hidden;
  padding: 115px 0;
  color: white;
  background: var(--purple);
}

.trust-section::before {
  position: absolute;
  top: -145px;
  right: -80px;
  width: 380px;
  height: 380px;
  border: 55px solid rgba(255, 216, 61, 0.22);
  border-radius: 50%;
  content: "";
}

.trust-section::after {
  position: absolute;
  bottom: -80px;
  left: -60px;
  width: 220px;
  height: 220px;
  border: 4px dashed rgba(255, 255, 255, 0.32);
  border-radius: 42% 58% 55% 45%;
  content: "";
}

.trust-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 85px;
}

.trust-copy > p:not(.eyebrow) {
  max-width: 510px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.9;
}

.dark-action {
  margin-top: 28px;
  border-color: white;
  color: white;
  background: var(--ink);
  box-shadow: 5px 6px 0 var(--yellow);
}

.trust-cards {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 16px;
  list-style: none;
}

.trust-card {
  position: relative;
  display: grid;
  min-height: 135px;
  padding: 22px 70px 22px 23px;
  grid-template-columns: 60px 1fr;
  align-items: center;
  gap: 13px;
  border: 3px solid var(--ink);
  border-radius: 22px 29px 20px 31px;
  color: var(--ink);
  box-shadow: 5px 6px 0 var(--ink);
  transform: rotate(-1deg);
}

.trust-card:nth-child(2) {
  transform: rotate(1deg) translateX(17px);
}

.trust-card:nth-child(3) {
  transform: rotate(-0.5deg) translateX(-6px);
}

.pink-card {
  background: #ff7eae;
}

.yellow-card {
  background: var(--yellow);
}

.blue-card {
  background: #6fe4ef;
}

.step-number {
  color: rgba(32, 53, 72, 0.55);
  font-size: 12px;
  font-weight: 950;
}

.trust-card h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 950;
}

.trust-card p {
  margin: 6px 0 0;
  color: rgba(32, 53, 72, 0.75);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.6;
}

.trust-doodle {
  position: absolute;
  right: 20px;
  font-size: 35px;
  font-weight: 900;
}

.lab-section {
  position: relative;
  padding: 125px 0 135px;
  text-align: center;
}

.lab-section > .eyebrow {
  justify-content: center;
}

.lab-grid {
  display: grid;
  margin-top: 48px;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: left;
}

.lab-grid article {
  min-height: 255px;
  padding: 26px;
  border: 3px solid var(--ink);
  border-radius: 32px 22px 29px 23px;
  background: var(--paper-2);
  box-shadow: 5px 6px 0 var(--ink);
}

.lab-grid article:nth-child(1) {
  background: #ffe0ed;
  transform: rotate(-1.2deg);
}

.lab-grid article:nth-child(2) {
  background: #fff2ad;
  transform: translateY(13px) rotate(1deg);
}

.lab-grid article:nth-child(3) {
  background: #d9f7f4;
  transform: rotate(-0.7deg);
}

.lab-grid article > span {
  color: var(--purple);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.09em;
}

.lab-grid h3 {
  margin: 43px 0 12px;
  font-size: 21px;
  font-weight: 950;
  letter-spacing: -0.035em;
  line-height: 1.45;
}

.lab-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.7;
}

.lab-orbit {
  position: absolute;
  top: 75px;
  right: 5%;
  width: 110px;
  height: 80px;
}

.lab-orbit span {
  position: absolute;
  color: var(--pink);
  font-size: 24px;
}

.lab-orbit span:nth-child(1) {
  top: 0;
  left: 0;
}

.lab-orbit span:nth-child(2) {
  top: 17px;
  right: 5px;
  color: var(--blue);
  font-size: 14px;
}

.lab-orbit span:nth-child(3) {
  bottom: 0;
  left: 46px;
  color: var(--yellow);
  font-size: 28px;
}

footer {
  padding: 50px 0;
  border-top: 3px solid var(--ink);
  background: var(--yellow);
}

.footer-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.footer-inner strong {
  font-size: 20px;
  font-weight: 950;
}

.footer-inner p {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 700;
}

.footer-meta {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 6px;
  color: rgba(32, 53, 72, 0.7);
  font-size: 10px;
  font-weight: 800;
}

dialog {
  max-width: min(730px, calc(100vw - 28px));
  max-height: min(820px, calc(100vh - 28px));
  overflow: auto;
  padding: 0;
  border: 3px solid var(--ink);
  border-radius: 30px;
  color: var(--ink);
  background: var(--paper-2);
  box-shadow: 10px 12px 0 var(--ink);
}

dialog::backdrop {
  background: rgba(27, 36, 50, 0.58);
  backdrop-filter: blur(6px);
}

.dialog-close {
  position: sticky;
  top: 16px;
  z-index: 5;
  display: grid;
  width: 43px;
  height: 43px;
  margin: 16px 16px -58px auto;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: white;
  box-shadow: 2px 3px 0 var(--ink);
  font-size: 25px;
  font-weight: 800;
}

.dialog-hero {
  display: grid;
  min-height: 225px;
  padding: 45px 55px 35px;
  place-items: center;
  border-bottom: 3px solid var(--ink);
  background: var(--dialog-accent, var(--pink));
  text-align: center;
}

.dialog-emoji {
  font-size: 60px;
}

.dialog-hero h2 {
  margin: 14px 0 4px;
  font-size: 34px;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.dialog-hero p {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
}

.dialog-body {
  padding: 28px 31px 34px;
}

.dialog-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.dialog-summary div {
  padding: 14px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: #faf5e8;
}

.dialog-summary span,
.dialog-summary strong {
  display: block;
}

.dialog-summary span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
}

.dialog-summary strong {
  margin-top: 5px;
  font-size: 13px;
  font-weight: 950;
}

.dialog-section {
  margin-top: 25px;
}

.dialog-section h3 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 950;
}

.dialog-section p,
.dialog-section li {
  color: #566574;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.8;
}

.dialog-section p {
  margin: 0;
}

.dialog-section ul {
  margin: 0;
  padding-left: 19px;
}

.evidence-box {
  padding: 16px 17px;
  border: 2px dashed var(--purple);
  border-radius: 15px;
  background: #f0ecff;
}

.dialog-actions {
  display: flex;
  margin-top: 28px;
  flex-wrap: wrap;
  gap: 10px;
}

.dialog-actions a {
  display: inline-flex;
  min-height: 45px;
  padding: 0 16px;
  align-items: center;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--yellow);
  box-shadow: 2px 3px 0 var(--ink);
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
}

.dialog-actions a.secondary {
  background: white;
}

.source-note {
  margin-top: 18px !important;
  color: var(--muted) !important;
  font-size: 10px !important;
}

.method-content {
  padding: 42px 38px 38px;
}

.method-content h2 {
  margin: 0;
  font-size: 36px;
  font-weight: 950;
  letter-spacing: -0.055em;
}

.method-grid {
  display: grid;
  margin-top: 31px;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.method-grid section {
  padding: 18px;
  border: 2px solid var(--line);
  border-radius: 17px;
  background: #faf5e8;
}

.method-grid section > span {
  color: var(--pink-deep);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.method-grid h3 {
  margin: 9px 0 6px;
  font-size: 14px;
  font-weight: 950;
}

.method-grid p,
.method-footnote {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.8;
}

.method-footnote {
  margin-top: 21px;
  padding: 13px 15px;
  border-radius: 12px;
  background: #e5f8ed;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 200;
  max-width: min(360px, calc(100vw - 36px));
  padding: 14px 17px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--ink);
  box-shadow: 4px 5px 0 var(--pink);
  color: white;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.55;
  opacity: 0;
  pointer-events: none;
  transform: translateY(15px);
  transition: 0.22s ease;
}

.toast.show {
  opacity: 1;
  transform: none;
}

noscript {
  position: fixed;
  inset: auto 20px 20px;
  z-index: 999;
  padding: 16px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--yellow);
  font-weight: 800;
}

@keyframes monsterBob {
  from { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-8px) rotate(1deg); }
  to { transform: translateY(0) rotate(-1deg); }
}

@keyframes fishFloat {
  from { transform: translate(0, 0) rotate(-2deg); }
  50% { transform: translate(8px, -10px) rotate(3deg); }
  to { transform: translate(0, 0) rotate(-2deg); }
}

@keyframes tickerMove {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes ping {
  from { transform: scale(0.75); }
  to { transform: scale(1.2); }
}

@keyframes musicPulse {
  from { transform: scale(0.88) rotate(-7deg); }
  to { transform: scale(1.08) rotate(7deg); }
}

@media (max-width: 1050px) {
  .hero {
    grid-template-columns: 1fr 0.88fr;
    gap: 34px;
  }

  .hero-visual {
    min-height: 530px;
  }

  .spot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compact-row {
    grid-template-columns: 1fr 1fr;
  }

  .search-wrap {
    grid-column: 1 / 2;
  }

  .trust-inner {
    gap: 50px;
  }
}

@media (max-width: 820px) {
  :root {
    --page: min(100% - 30px, 680px);
  }

  .site-header {
    min-height: 82px;
  }

  .hero {
    padding-top: 47px;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    text-align: center;
  }

  .hero .eyebrow,
  .hero-actions,
  .location-line,
  .hero-stats {
    justify-content: center;
  }

  .hero-lead {
    margin-inline: auto;
  }

  .hero-visual {
    width: min(590px, 100%);
    min-height: 560px;
    margin: 10px auto 0;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }

  .section-note {
    text-align: left;
  }

  .trust-inner {
    grid-template-columns: 1fr;
  }

  .trust-copy {
    text-align: center;
  }

  .trust-copy .eyebrow {
    justify-content: center;
  }

  .trust-copy > p:not(.eyebrow) {
    margin-inline: auto;
  }

  .lab-grid {
    grid-template-columns: 1fr;
  }

  .lab-grid article {
    min-height: 210px;
  }

  .lab-grid article:nth-child(2) {
    transform: rotate(0.7deg);
  }
}

@media (max-width: 620px) {
  :root {
    --page: calc(100% - 24px);
  }

  .site-header {
    min-height: 72px;
  }

  .brand small,
  .ghost-button,
  .audio-label {
    display: none;
  }

  .brand-orbit {
    width: 41px;
    height: 41px;
  }

  .brand-orbit::before {
    width: 50px;
  }

  .pill-button {
    width: 44px;
    min-height: 44px;
    padding: 0;
    justify-content: center;
    box-shadow: 2px 3px 0 var(--ink);
  }

  .audio-icon {
    border: 0;
  }

  .hero {
    min-height: auto;
    padding: 43px 0 64px;
  }

  .hero h1 {
    font-size: clamp(42px, 13vw, 58px);
  }

  .hero-lead {
    font-size: 14px;
    line-height: 1.8;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .primary-action,
  .secondary-action {
    min-height: 54px;
    padding-inline: 12px;
    font-size: 13px;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-stats div {
    padding: 0 10px;
  }

  .hero-stats dt {
    font-size: 19px;
  }

  .hero-stats dd {
    font-size: 9px;
  }

  .hero-visual {
    min-height: 410px;
  }

  .postcard {
    inset: 27px 4px 13px 8px;
    border-radius: 29px 21px 31px 19px;
  }

  .sun-sticker {
    right: -6px;
    width: 84px;
    height: 84px;
  }

  .sun-sticker strong {
    font-size: 16px;
  }

  .mini-note-right {
    right: -1px;
    bottom: 56px;
  }

  .mini-note-left {
    left: -1px;
  }

  .explorer {
    padding: 85px 0 95px;
  }

  .section-heading h2,
  .trust-copy h2,
  .lab-section h2 {
    font-size: 39px;
  }

  .filter-board {
    padding: 20px 16px;
    border-radius: 20px;
  }

  .filter-row {
    align-items: flex-start;
  }

  .type-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .type-row .filter-label {
    grid-column: 1 / -1;
  }

  .filter-label {
    flex-basis: 38px;
  }

  .filter-chip {
    min-height: 42px;
    padding-inline: 10px;
    font-size: 11px;
  }

  .district-row {
    align-items: center;
  }

  .compact-row {
    grid-template-columns: 1fr;
  }

  .search-wrap {
    grid-column: auto;
  }

  .result-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .sort-control {
    width: 100%;
    overflow-x: auto;
  }

  .sort-button {
    min-height: 40px;
  }

  .recommend-banner {
    align-items: flex-start;
  }

  .recommend-banner button {
    min-height: 40px;
  }

  .spot-grid {
    grid-template-columns: 1fr;
  }

  .spot-card {
    min-height: 368px;
  }

  .trust-section {
    padding: 90px 0;
  }

  .trust-card,
  .trust-card:nth-child(2),
  .trust-card:nth-child(3) {
    min-height: 146px;
    padding-right: 54px;
    grid-template-columns: 38px 1fr;
    transform: none;
  }

  .lab-section {
    padding: 95px 0;
  }

  .lab-orbit {
    display: none;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-meta {
    align-items: flex-start;
  }

  .dialog-hero {
    padding-inline: 30px;
  }

  .dialog-hero h2 {
    font-size: 27px;
  }

  .dialog-body {
    padding: 24px 19px 28px;
  }

  .card-kicker,
  .spot-tag,
  .price-block span,
  .dialog-summary span,
  .source-note,
  .footer-meta {
    font-size: 11px !important;
  }

  .card-tagline,
  .dialog-section p,
  .dialog-section li {
    font-size: 13px;
  }

  .dialog-summary {
    grid-template-columns: 1fr 1fr;
  }

  .dialog-summary div:last-child {
    grid-column: 1 / -1;
  }

  .method-content {
    padding: 36px 20px 25px;
  }

  .method-content h2 {
    font-size: 29px;
  }

  .method-grid {
    grid-template-columns: 1fr;
  }
}

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

/* v5.2 全量发现、游客三态与温柔分流 */
.visit-state-legend {
  display: grid;
  margin-top: 30px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.visit-state-item {
  display: grid;
  min-width: 0;
  padding: 15px 17px;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: #fffdf6;
  grid-template-columns: auto 1fr;
  gap: 2px 9px;
  box-shadow: 3px 4px 0 var(--ink);
}

.visit-state-item > span {
  grid-row: 1 / 3;
  font-size: 17px;
}

.visit-state-item strong {
  font-size: 14px;
  font-weight: 950;
}

.visit-state-item small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.55;
}

.visit-state-item.is-today > span { color: #42a83d; }
.visit-state-item.is-review > span { color: #e19b00; }
.visit-state-item.is-maintenance > span { color: #e84f7c; }

.pocket-discovery-shelves {
  display: grid;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin-top: 26px;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}

.pocket-discovery-shelf,
.region-pocket-browser {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 24px;
  border: 3px solid var(--ink);
  border-radius: 26px 31px 23px 29px;
  background: linear-gradient(135deg, #fff9d7, #fffdf8 52%, #efffec);
  box-shadow: 5px 6px 0 var(--ink);
}

.pocket-discovery-shelf.is-nearby {
  background: linear-gradient(135deg, #e9f9ff, #fffdf8 50%, #f5eaff);
}

.region-pocket-browser {
  margin-top: 22px;
  background: linear-gradient(135deg, #ffeafa, #fffdf8 52%, #fff3c6);
}

.pocket-shelf-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
}

.pocket-shelf-heading > div { min-width: 0; }

.pocket-shelf-heading p {
  margin: 0 0 4px;
  color: var(--pink-deep);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.pocket-shelf-heading h3 {
  margin: 0;
  font-size: clamp(23px, 3vw, 34px);
  font-weight: 950;
  letter-spacing: -0.045em;
}

.pocket-shelf-heading > span,
.pocket-shelf-heading > button {
  padding: 8px 12px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  font-size: 10px;
  font-weight: 950;
}

.pocket-shelf-heading > button {
  cursor: pointer;
  box-shadow: 2px 3px 0 var(--ink);
}

.pocket-shelf-note {
  margin: 9px 0 17px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.65;
}

.pocket-mini-grid {
  display: grid;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.pocket-mini-card {
  display: flex;
  min-width: 0;
  max-width: 100%;
  min-height: 185px;
  padding: 14px;
  border: 2px solid var(--ink);
  border-radius: 18px 15px 20px 16px;
  background: #fff;
  flex-direction: column;
  box-shadow: 2px 3px 0 var(--ink);
}

.pocket-mini-card.is-protected {
  background: #fff6e5;
}

.pocket-mini-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pocket-mini-top > span {
  font-size: 27px;
}

.visit-state-badge {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  padding: 4px 8px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  font-size: 9px;
  font-style: normal;
  font-weight: 950;
  white-space: nowrap;
}

.visit-state-badge.is-today { background: #c9f68f; }
.visit-state-badge.is-review { background: #ffe08b; }
.visit-state-badge.is-maintenance { background: #ffb7cc; }

.card-visual > .visit-state-badge {
  position: absolute;
  z-index: 4;
  top: 45px;
  right: 12px;
}

.spot-card.is-maintenance .card-visual::before {
  opacity: 0.48;
}

.spot-card.is-maintenance .detail-button {
  background: #ffd2df;
}

.pocket-mini-card h4 {
  margin: 10px 0 5px;
  overflow-wrap: anywhere;
  font-size: 15px;
  font-weight: 950;
  line-height: 1.35;
}

.pocket-mini-card p,
.pocket-mini-card small {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  line-height: 1.5;
}

.pocket-mini-card small {
  margin: 5px 0 10px;
}

.pocket-mini-card button {
  min-height: 34px;
  margin-top: auto;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--yellow);
  font-size: 10px;
  font-weight: 950;
  cursor: pointer;
}

.pocket-shelf-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 20px;
  border: 2px dashed var(--ink);
  border-radius: 16px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.7;
}

.region-pocket-grid {
  display: grid;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.region-pocket-card {
  display: grid;
  min-width: 0;
  padding: 14px 15px;
  border: 2px solid var(--ink);
  border-radius: 16px;
  color: var(--ink);
  background: #fff;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px 14px;
  text-align: left;
  cursor: pointer;
}

.region-pocket-card > span:first-child {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.region-pocket-card strong { font-size: 17px; font-weight: 950; }
.region-pocket-card small { color: var(--muted); font-size: 10px; font-weight: 750; }
.region-pocket-card em { align-self: end; font-size: 10px; font-style: normal; font-weight: 950; }

.region-state-counts {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px;
}

.region-state-counts b {
  padding: 3px 6px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
}

.region-state-counts .is-today { background: #d8f8b0; }
.region-state-counts .is-review { background: #ffe9a8; }
.region-state-counts .is-maintenance { background: #ffd2df; }

.visitor-status-box {
  border: 3px solid var(--ink);
  border-radius: 17px;
  background: #fff;
}

.visitor-status-box.is-today { background: #efffdb; }
.visitor-status-box.is-review { background: #fff7d7; }
.visitor-status-box.is-maintenance { background: #fff0f5; }

.visitor-status-box h3 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.passport-pick-group {
  display: grid;
  gap: 8px;
}

.passport-pick-group + .passport-pick-group {
  margin-top: 16px;
}

.passport-pick-group > h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  padding-bottom: 7px;
  border-bottom: 2px dashed var(--ink);
  font-size: 14px;
  font-weight: 950;
}

.passport-pick-group > h3 span {
  color: var(--muted);
  font-size: 10px;
}

.structured-pocket-details {
  display: grid;
  gap: 12px;
  border: 3px solid var(--ink);
  border-radius: 18px;
  background: linear-gradient(135deg, #fff9d7, #f3edff);
}

.spot-dialog {
  width: min(730px, calc(100vw - 28px));
  min-width: 0;
  max-width: calc(100vw - 28px);
  overflow-x: hidden;
}

#dialogContent,
.dialog-hero,
.dialog-body,
.dialog-summary,
.dialog-summary > div,
.dialog-section,
.upgrade-detail-panel,
.freshness-timeline,
.structured-pocket-details,
.structured-detail-block,
.detail-alternative-list,
.dialog-actions {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
}

#dialogContent h2,
#dialogContent h3,
#dialogContent p,
#dialogContent li,
#dialogContent strong,
#dialogContent small,
#dialogContent a,
#dialogContent button {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.dialog-summary,
.freshness-timeline {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dialog-actions a,
.detail-alternative-list button {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
}

.structured-detail-block {
  padding: 12px 13px;
  border: 2px solid var(--ink);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.82);
}

.structured-detail-block > strong {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 950;
}

.structured-detail-block p,
.structured-detail-block ul {
  margin: 0;
}

.scenario-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.scenario-profile-grid span {
  display: grid;
  padding: 8px;
  border-radius: 10px;
  background: #fff;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.scenario-profile-grid b {
  color: var(--ink);
  font-size: 10px;
}

.detail-alternative-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.detail-alternative-list button {
  min-height: 36px;
  padding: 7px 10px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  color: var(--ink);
  background: var(--yellow);
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}

@media (max-width: 1050px) {
  .pocket-mini-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .visit-state-legend { grid-template-columns: 1fr; }
  .pocket-discovery-shelf,
  .region-pocket-browser { padding: 18px 15px; }
  .pocket-shelf-heading { align-items: flex-start; flex-direction: column; gap: 9px; }
  .pocket-mini-grid {
    display: grid;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: visible;
    grid-template-columns: minmax(0, 1fr);
  }
  .pocket-mini-card { width: 100%; min-width: 0; max-width: 100%; }
  .pocket-shelf-empty { width: 100%; min-width: 0; max-width: 100%; }
  .region-pocket-grid { grid-template-columns: 1fr; }
  .region-pocket-card { grid-template-columns: 1fr; }
  .region-state-counts { justify-content: flex-start; }
  .scenario-profile-grid { grid-template-columns: 1fr; }
  .freshness-timeline { grid-template-columns: 1fr; }
}
