/* =========================================================
   广阳文旅 · 网红小店漫游手账
   Naive Design System (2026):
   Wobbly Lines × Asymmetry × Bold Colors × Characters × Texture
   ========================================================= */

:root {
  --paper: #FDF8EF;
  --paper-bright: #FFFDF7;
  --paper-tint: #F7EEDB;
  --ink: #1E1B18;
  --ink-muted: #524B43;

  --persimmon: #F25C43;
  --yolk: #FFD23F;
  --cobalt: #2E6BF6;
  --rousseau: #2EB872;
  --lilac: #A675F5;
  --pink: #FF8FAB;

  --font-display: "ZCOOL KuaiLe", "Fredoka", "Wawati SC", "Hannotate SC", "PingFang SC", cursive, sans-serif;
  --font-body: "Nunito", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;

  --border-wobbly: 255px 16px 225px 16px / 16px 225px 16px 255px;
  --border-wobbly-sm: 140px 14px 120px 14px / 14px 120px 14px 140px;
  --shadow-ink: 5px 6px 0 #1E1B18;
  --shadow-ink-sm: 3px 4px 0 #1E1B18;
  --shadow-ink-lg: 8px 9px 0 #1E1B18;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
}

/* Tactile Paper Grain & Subtle Notebook Dots */
.paper-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container {
  width: min(1160px, calc(100% - 32px));
  margin-inline: auto;
}

.hidden {
  display: none !important;
}

img {
  display: block;
  max-width: 100%;
}

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

/* =========================================================
   Header & Navigation
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(253, 248, 239, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 2.5px solid var(--ink);
}

.header-inner {
  width: min(1160px, calc(100% - 24px));
  margin-inline: auto;
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand-badge {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--persimmon);
  color: var(--paper-bright);
  font-family: var(--font-display);
  font-size: 1.05rem;
  border: 2.5px solid var(--ink);
  border-radius: 52% 48% 55% 45% / 48% 56% 44% 52%;
  box-shadow: var(--shadow-ink-sm);
  transform: rotate(-4deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

.brand-text small {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--ink-muted);
  letter-spacing: 0.08em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-pill {
  text-decoration: none;
  font-weight: 800;
  font-size: 0.92rem;
  padding: 6px 13px;
  background: var(--paper-bright);
  border: 2px solid var(--ink);
  border-radius: var(--border-wobbly-sm);
  transform: rotate(var(--rot, 0deg));
  transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.nav-pill:hover,
.nav-pill:focus-visible {
  background: var(--yolk);
  transform: rotate(0deg) translateY(-2px);
  box-shadow: 2px 3px 0 var(--ink);
  outline: none;
}

.stamp-counter-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  padding: 7px 14px;
  background: var(--yolk);
  border: 2.5px solid var(--ink);
  border-radius: 28px 18px 26px 18px;
  box-shadow: var(--shadow-ink-sm);
  font-weight: 800;
  font-size: 0.92rem;
  transition: transform 0.18s ease;
  white-space: nowrap;
}

.stamp-counter-pill:hover {
  transform: translateY(-2px) rotate(-1deg);
}

.stamp-dot {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  background: var(--persimmon);
  color: var(--paper-bright);
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  font-size: 0.78rem;
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  border: 2.5px solid var(--ink);
  border-radius: 24px 14px 22px 16px / 16px 22px 14px 24px;
  box-shadow: var(--shadow-ink);
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 8px 0 var(--ink);
}

.btn:active {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--ink);
}

.btn-primary {
  background: var(--persimmon);
  color: var(--paper-bright);
}

.btn-secondary {
  background: var(--yolk);
  color: var(--ink);
}

.btn-cobalt {
  background: var(--cobalt);
  color: var(--paper-bright);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.88rem;
  box-shadow: var(--shadow-ink-sm);
}

.btn-full {
  width: 100%;
}

/* =========================================================
   Hero Section
   ========================================================= */
.hero-section {
  padding: 46px 0 36px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 42px;
  align-items: center;
}

.doodle-kicker {
  display: inline-block;
  background: var(--yolk);
  border: 2px solid var(--ink);
  border-radius: 18px 8px 20px 10px;
  padding: 5px 14px;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-1.4deg);
  margin-bottom: 18px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.1vw, 3.25rem);
  line-height: 1.24;
  margin: 0 0 18px;
  letter-spacing: 0.01em;
}

.marker-highlight {
  display: inline-block;
  background: linear-gradient(180deg, transparent 52%, var(--yolk) 52%, var(--yolk) 92%, transparent 92%);
  padding: 0 6px;
}

.wavy-underline {
  text-decoration: underline wavy var(--persimmon);
  text-underline-offset: 8px;
  text-decoration-thickness: 3.5px;
}

.hero-desc {
  font-size: 1.03rem;
  color: var(--ink-muted);
  margin: 0 0 26px;
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.hero-doodle-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.stat-sticker {
  background: var(--bg, var(--yolk));
  border: 2px solid var(--ink);
  border-radius: 16px 22px 14px 20px;
  padding: 10px 16px;
  box-shadow: var(--shadow-ink-sm);
  transform: rotate(var(--rot, 0deg));
  display: flex;
  flex-direction: column;
  min-width: 112px;
}

.stat-sticker strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.1;
}

.stat-sticker span {
  font-size: 0.82rem;
  font-weight: 800;
}

/* Hero Art with Washi Tape & Floating Stickers */
.hero-art-wrap {
  position: relative;
  padding: 12px;
}

.washi-tape {
  position: absolute;
  width: 96px;
  height: 26px;
  background: var(--tape-bg, var(--yolk));
  opacity: 0.85;
  border: 1.5px solid rgba(30, 27, 24, 0.35);
  z-index: 4;
  pointer-events: none;
}

.tape-left {
  top: -2px;
  left: 34px;
  transform: rotate(-16deg);
}

.tape-right {
  top: 4px;
  right: 30px;
  transform: rotate(14deg);
}

.hero-frame {
  margin: 0;
  background: var(--paper-bright);
  padding: 14px 14px 16px;
  border: 3px solid var(--ink);
  border-radius: 26px 14px 24px 18px / 18px 24px 14px 26px;
  box-shadow: var(--shadow-ink-lg);
  transform: rotate(1.4deg);
}

.hero-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  border: 2px solid var(--ink);
}

.hero-caption {
  margin-top: 12px;
  font-weight: 800;
  font-size: 0.92rem;
  text-align: center;
  color: var(--ink);
}

.floating-sticker {
  position: absolute;
  z-index: 5;
  filter: drop-shadow(3px 4px 0 rgba(30, 27, 24, 0.9));
  animation: gentleBob 4.2s ease-in-out infinite;
  pointer-events: none;
}

.sticker-shaobing {
  bottom: -16px;
  left: -14px;
  transform: rotate(-8deg);
}

.sticker-cup {
  top: -18px;
  right: -10px;
  animation-delay: -1.8s;
  transform: rotate(9deg);
}

@keyframes gentleBob {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-7px) rotate(4deg); }
}

/* =========================================================
   Section Dividers & Headings
   ========================================================= */
.section-divider {
  width: min(1160px, calc(100% - 32px));
  margin: 12px auto 0;
}

.section-divider svg {
  width: 100%;
  height: 36px;
  display: block;
}

.section-block {
  padding: 56px 0;
}

.section-tinted {
  background-color: var(--paper-tint);
  border-top: 2.5px solid var(--ink);
  border-bottom: 2.5px solid var(--ink);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--cobalt);
  background: var(--paper-bright);
  border: 2px solid var(--ink);
  padding: 2px 10px;
  border-radius: 12px;
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  margin: 0;
  line-height: 1.2;
}

.section-sub {
  margin: 0;
  color: var(--ink-muted);
  font-weight: 700;
  max-width: 44ch;
}

/* =========================================================
   Interactive Map Section
   ========================================================= */
.map-board {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.map-canvas-wrap {
  background: var(--paper-bright);
  border: 3px solid var(--ink);
  border-radius: 22px 14px 26px 16px;
  box-shadow: var(--shadow-ink);
  padding: 16px;
  background-image: radial-gradient(rgba(30, 27, 24, 0.12) 1px, transparent 1px);
  background-size: 16px 16px;
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 800;
  background: var(--paper);
  border: 1.8px solid var(--ink);
  border-radius: 999px;
  padding: 3px 10px;
}

.legend-chip i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
}

.naive-map-svg {
  width: 100%;
  height: auto;
  display: block;
  border: 2px solid var(--ink);
  border-radius: 14px;
}

.map-label-park {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 800;
  fill: var(--ink);
}

.map-label-road {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 800;
  fill: #3A342D;
}

.map-pin {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.map-pin:hover .pin-circle,
.map-pin.is-active .pin-circle {
  stroke-width: 4;
  transform: scale(1.16);
}

.pin-circle {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.2s ease;
}

.pin-pulse {
  fill: none;
  stroke: var(--persimmon);
  stroke-width: 2.5;
  opacity: 0;
}

.map-pin.is-active .pin-pulse {
  opacity: 1;
  animation: pinPulse 1.6s ease-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes pinPulse {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(1.7); opacity: 0; }
}

.pin-label-pill {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 800;
  fill: var(--ink);
}

.map-preview-card {
  position: relative;
  background: var(--paper-bright);
  border: 3px solid var(--ink);
  border-radius: 18px 26px 16px 24px;
  box-shadow: var(--shadow-ink);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.preview-art {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  border: 2px solid var(--ink);
  overflow: hidden;
  background: var(--paper);
}

.preview-art img,
.preview-art svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.preview-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.pill-badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.78rem;
  font-weight: 800;
  border: 1.8px solid var(--ink);
  border-radius: 999px;
  background: var(--yolk);
}

.preview-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 0;
  line-height: 1.25;
}

.preview-tip {
  background: var(--paper);
  border: 2px dashed var(--ink);
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 0.9rem;
  margin: 0;
}

.preview-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* =========================================================
   Filter Tabs & Shop Grid
   ========================================================= */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: var(--paper-bright);
  border: 2.5px solid var(--ink);
  border-radius: 18px 10px 20px 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 3px 4px 0 var(--ink);
  transition: transform 0.16s ease, background-color 0.16s ease;
}

.filter-tab:hover {
  transform: translateY(-2px) rotate(-1deg);
}

.filter-tab.is-active {
  background: var(--tab-color, var(--yolk));
  transform: rotate(-1.5deg) translateY(-2px);
}

.filter-count {
  font-size: 0.76rem;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--paper-bright);
  border: 1.5px solid var(--ink);
}

.shops-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 22px;
  align-items: start;
}

.shop-card {
  position: relative;
  background: var(--paper-bright);
  border: 2.5px solid var(--ink);
  border-radius: 22px 14px 26px 14px / 14px 26px 14px 22px;
  box-shadow: var(--shadow-ink);
  padding: 16px;
  transform: rotate(var(--card-rot, 0deg));
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shop-card:hover {
  transform: rotate(0deg) translateY(-5px);
  box-shadow: var(--shadow-ink-lg);
  z-index: 2;
}

.card-tape {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 78px;
  height: 20px;
  background: var(--tape-color, var(--yolk));
  border: 1.5px solid rgba(30, 27, 24, 0.35);
  opacity: 0.9;
}

.card-art {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  border: 2px solid var(--ink);
  overflow: hidden;
  background: var(--paper);
}

.card-art img,
.shop-svg-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.32rem;
  margin: 0;
  line-height: 1.25;
}

.card-area {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--ink-muted);
  margin: 2px 0 0;
}

.card-tagline {
  margin: 0;
  font-size: 0.94rem;
  color: var(--ink);
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mini-tag {
  font-size: 0.76rem;
  font-weight: 800;
  padding: 2px 9px;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
}

.card-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: 6px;
}

.card-actions .btn {
  flex: 1;
}

.btn-stamp-done {
  background: var(--rousseau);
  color: var(--paper-bright);
}

/* =========================================================
   Citywalk Routes Section
   ========================================================= */
.route-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.route-tab {
  padding: 10px 18px;
  background: var(--paper-bright);
  border: 2.5px solid var(--ink);
  border-radius: 16px 24px 14px 20px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-ink-sm);
  transition: transform 0.16s ease, background-color 0.16s ease;
}

.route-tab.is-active {
  background: var(--route-color, var(--yolk));
  color: var(--paper-bright);
  transform: translateY(-2px) rotate(-1deg);
}

.route-board {
  background: var(--paper-bright);
  border: 3px solid var(--ink);
  border-radius: 26px 16px 24px 18px;
  box-shadow: var(--shadow-ink);
  padding: 26px;
}

.route-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  margin-bottom: 24px;
  border-bottom: 2.5px dashed var(--ink);
}

.route-header h3 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  margin: 0 0 4px;
}

.route-header p {
  margin: 0;
  color: var(--ink-muted);
  font-weight: 700;
}

.route-stops {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  position: relative;
}

.route-stop-card {
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: 18px 12px 20px 14px;
  padding: 18px;
  box-shadow: var(--shadow-ink-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stop-num-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.stop-bubble {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  color: var(--paper-bright);
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.stop-time {
  font-weight: 800;
  font-size: 0.85rem;
  background: var(--paper-bright);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 2px 10px;
}

.route-stop-card h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0;
}

.route-stop-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

/* =========================================================
   Stamp Passport Section
   ========================================================= */
.section-passport {
  background: linear-gradient(180deg, var(--paper) 0%, #F4E8D1 100%);
}

.passport-notebook {
  background: var(--paper-bright);
  border: 3px solid var(--ink);
  border-radius: 24px 18px 28px 16px;
  box-shadow: var(--shadow-ink-lg);
  padding: 28px;
  background-image: radial-gradient(rgba(30, 27, 24, 0.1) 1px, transparent 1px);
  background-size: 18px 18px;
}

.passport-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 22px;
}

.passport-progress-box {
  min-width: 240px;
  flex: 0 1 300px;
}

.crayon-progress-track {
  height: 22px;
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  overflow: hidden;
  padding: 2px;
}

.crayon-progress-fill {
  height: 100%;
  background: repeating-linear-gradient(
    -45deg,
    var(--rousseau),
    var(--rousseau) 10px,
    #3CD084 10px,
    #3CD084 20px
  );
  border-radius: 999px;
  transition: width 0.35s ease;
}

.passport-progress-label {
  display: block;
  margin-top: 6px;
  font-weight: 800;
  font-size: 0.9rem;
  text-align: right;
}

.master-ribbon {
  background: var(--yolk);
  border: 2.5px solid var(--ink);
  border-radius: 16px;
  padding: 12px 18px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-ink-sm);
  font-size: 1rem;
  text-align: center;
  transform: rotate(-0.5deg);
}

.stamps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.stamp-slot {
  background: var(--paper);
  border: 2.5px dashed rgba(30, 27, 24, 0.45);
  border-radius: 18px;
  padding: 16px 12px;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.stamp-slot:hover {
  transform: translateY(-2px);
  border-color: var(--ink);
}

.stamp-slot.is-stamped {
  background: var(--paper-bright);
  border-style: solid;
  border-color: var(--ink);
  box-shadow: var(--shadow-ink-sm);
}

.stamp-svg-mark {
  width: 88px;
  height: 88px;
  transform: rotate(-7deg);
}

.stamp-empty-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px dashed rgba(30, 27, 24, 0.35);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  opacity: 0.6;
}

.stamp-slot strong {
  font-family: var(--font-display);
  font-size: 0.98rem;
  line-height: 1.25;
}

.stamp-slot small {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--ink-muted);
}

/* =========================================================
   Sticky Notes Guestbook Wall
   ========================================================= */
.notes-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 26px;
  align-items: start;
}

.note-form-card {
  background: var(--paper-bright);
  border: 3px solid var(--ink);
  border-radius: 22px 14px 24px 16px;
  box-shadow: var(--shadow-ink);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.note-form-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0;
}

.field-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 800;
}

.field-label input,
.field-label textarea {
  width: 100%;
  padding: 9px 12px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 12px;
  outline: none;
}

.field-label input:focus,
.field-label textarea:focus {
  background: var(--paper-bright);
  box-shadow: 3px 3px 0 var(--yolk);
}

.avatar-picker,
.color-picker {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.avatar-opt {
  width: 38px;
  height: 38px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--paper);
  cursor: pointer;
  font-size: 1.15rem;
}

.avatar-opt.active {
  background: var(--yolk);
  transform: scale(1.08) rotate(-4deg);
  box-shadow: 2px 2px 0 var(--ink);
}

.color-opt {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  cursor: pointer;
}

.color-opt.active {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

.notes-board {
  background: #EADBC0;
  border: 3px solid var(--ink);
  border-radius: 22px;
  box-shadow: var(--shadow-ink);
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  min-height: 340px;
}

.sticky-note {
  position: relative;
  background: var(--note-bg, #FFF2A6);
  border: 2.5px solid var(--ink);
  border-radius: 12px 18px 14px 16px;
  box-shadow: var(--shadow-ink-sm);
  padding: 18px 16px 14px;
  transform: rotate(var(--note-rot, 0deg));
  transition: transform 0.16s ease;
}

.sticky-note:hover {
  transform: rotate(0deg) translateY(-3px);
}

.sticky-pin {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--persimmon);
  border: 2px solid var(--ink);
}

.sticky-shop {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 2px 9px;
  background: rgba(255, 253, 247, 0.85);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  margin-bottom: 8px;
}

.sticky-msg {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 700;
}

.sticky-author {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--ink-muted);
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  border-top: 3px solid var(--ink);
  background: var(--paper-tint);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand p {
  margin: 2px 0 0;
  font-size: 0.86rem;
  color: var(--ink-muted);
}

.footer-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-link,
.footer-reset-btn {
  padding: 7px 14px;
  background: var(--paper-bright);
  border: 2px solid var(--ink);
  border-radius: 14px;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.86rem;
  cursor: pointer;
}

.footer-reset-btn:hover,
.footer-link:hover {
  background: var(--yolk);
}

/* =========================================================
   Modals & Toast
   ========================================================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(30, 27, 24, 0.58);
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal-paper {
  position: relative;
  width: min(680px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--paper-bright);
  border: 3px solid var(--ink);
  border-radius: 26px 16px 24px 18px;
  box-shadow: var(--shadow-ink-lg);
  padding: 26px;
}

.modal-close {
  position: sticky;
  float: right;
  top: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--yolk);
  border: 2.5px solid var(--ink);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 2px 3px 0 var(--ink);
  z-index: 4;
}

.modal-art {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  border: 2.5px solid var(--ink);
  overflow: hidden;
  margin-bottom: 16px;
}

.modal-art img,
.modal-art svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.info-box {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 9px 12px;
  font-size: 0.88rem;
}

.info-box strong {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.gacha-paper {
  width: min(500px, 100%);
  text-align: center;
}

.gacha-heading {
  font-family: var(--font-display);
  font-size: 1.65rem;
  margin: 8px 0 18px;
}

.gacha-slot {
  background: var(--yolk);
  border: 3px solid var(--ink);
  border-radius: 18px;
  padding: 22px 16px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  box-shadow: var(--shadow-ink-sm);
  margin-bottom: 18px;
}

.gacha-result {
  background: var(--paper);
  border: 2.5px dashed var(--ink);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 18px;
  text-align: left;
}

.gacha-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  background: var(--ink);
  color: var(--paper-bright);
  border: 2.5px solid var(--yolk);
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 800;
  box-shadow: var(--shadow-ink-sm);
}

/* =========================================================
   Responsive Breakpoints
   ========================================================= */
@media (max-width: 980px) {
  .hero-grid,
  .map-board,
  .notes-layout {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 760px) {
  .main-nav {
    display: none;
  }
}

@media (max-width: 620px) {
  .shops-grid,
  .route-stops,
  .notes-board,
  .modal-info-grid {
    grid-template-columns: 1fr;
  }

  .hero-section {
    padding: 28px 0 24px;
  }

  .passport-notebook,
  .route-board,
  .modal-paper {
    padding: 18px;
  }

  .floating-sticker {
    display: none;
  }
}
