/* ==========================================================================
   紐港町日常 Nuneaton Hong Kongers Community Association
   Built from Figma "Website v2" — Desktop 1280+, Tablet 800–1279, Mobile ≤799
   HTML is generated by src/build.py — edit src/data/*.json, not the HTML.
   ========================================================================== */

:root {
  /* Colour styles (from Figma) */
  --c-bg: #fffaed;          /* Background */
  --c-text: #4a2e1e;        /* Text / primary brown */
  --c-label: #8e5f41;       /* Secondary text, field labels */
  --c-accent: #f8e7cf;      /* Secondary buttons, cards */
  --c-btn-dark: #6e5242;    /* Primary buttons, menu */
  --c-footer: #dfcbb5;      /* Footer */
  --c-divider: #674e44;     /* Section dividers */
  --c-light: #fffaed;       /* Text on dark buttons */
  --c-white: #ffffff;

  /* Desktop content width = Figma Desktop frame, centred on wider screens */
  --page-w: 1280px;
  --gutter: max(40px, calc((100% - var(--page-w)) / 2 + 40px));
  --nav-gutter: max(36px, calc((100% - var(--page-w)) / 2 + 36px));
  --content-w: 880px;       /* Desktop content column (1280 - 2×200) */
  --section-pad: 88px max(40px, calc((100% - var(--content-w)) / 2));

  --f-head: "Roboto Condensed", "Noto Sans HK", "PingFang HK", "Microsoft JhengHei", sans-serif;
  --f-body: "Roboto", "Noto Sans HK", "PingFang HK", "Microsoft JhengHei", sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }

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

.skip-link {
  position: absolute; left: 16px; top: -60px;
  background: var(--c-text); color: var(--c-white);
  padding: 10px 16px; border-radius: 4px; z-index: 100;
  font-weight: 500; text-decoration: none;
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 2px solid var(--c-text); outline-offset: 3px; }
main:focus { outline: none; }

/* Line breaks that only appear at a given breakpoint */
.br-mobile, .br-desktop { display: none; }
.nowrap { white-space: nowrap; }

/* ==========================================================================
   HEADER + MENU
   ========================================================================== */
.site-header {
  position: relative;
  z-index: 40;
  width: 100%;
  padding: 28px var(--nav-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  text-decoration: none;
  color: var(--c-text);
}

.brand__logo {
  width: 100px;
  height: 100px;
  object-fit: cover;
  flex-shrink: 0;
}

.brand__name {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  font-family: var(--f-head);
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand__zh { font-size: 32px; letter-spacing: -0.32px; }
.brand__en { font-size: 28px; letter-spacing: -0.28px; }

.nav-actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 16px;
  background: var(--c-accent);
  border: 1px solid var(--c-text);
  border-radius: 4px;
  color: var(--c-text);
  font: 500 16px/1 var(--f-body);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s ease;
}
.lang-switch:hover { background: #f2dbbb; }
.lang-switch__short { display: none; }

.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 44px;
  padding: 0 16px;
  background: var(--c-btn-dark);
  border: 1px solid var(--c-text);
  border-radius: 4px;
  color: var(--c-light);
  font: 500 20px/1 var(--f-body);
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .15s ease;
}
.menu-btn:hover { background: var(--c-text); }
.menu-btn__icon { width: 24px; height: 23.5px; }
.menu-btn__close { display: none; position: relative; width: 24px; height: 24px; }
.menu-btn__close::before,
.menu-btn__close::after {
  content: "";
  position: absolute;
  left: 1px; right: 1px; top: 10px;
  height: 4px;
  border-radius: 2px;
  background: var(--c-light);
  transform: rotate(45deg);
}
.menu-btn__close::after { transform: rotate(-45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__icon { display: none; }
.menu-btn[aria-expanded="true"] .menu-btn__close { display: block; }

/* Desktop: dropdown under the buttons, right-aligned */
.site-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 206px;
  padding: 24px;
  background: var(--c-btn-dark);
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(74, 46, 30, .18);
}
.site-menu[hidden] { display: none; }
.site-menu ul {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-menu a {
  display: block;
  color: var(--c-light);
  font: 500 20px/1.3 var(--f-body);
  text-decoration: none;
  white-space: nowrap;
}
.site-menu a:hover,
.site-menu a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }

/* ==========================================================================
   SHARED SECTION PIECES
   ========================================================================== */
.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
}
.section-title__icon { width: 30px; flex-shrink: 0; }
.section-title__icon img { width: 30px; height: auto; }
.section-title__text {
  margin: 0;
  font-family: var(--f-head);
  font-weight: 900;
  font-size: 40px;
  line-height: 1.2;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  text-align: center;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid var(--c-text);
  border-radius: 4px;
  font-family: var(--f-body);
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: background-color .15s ease;
}
.btn--primary {
  display: block;            /* text + nowrap span flow as one line, not flex items */
  padding: 24px 20px;
  background: var(--c-btn-dark);
  color: var(--c-light);
  font-size: 18px;
}
.btn--primary:hover { background: var(--c-text); }
.btn--secondary {
  padding: 8px 12px;
  background: var(--c-accent);
  color: var(--c-text);
  font-size: 20px;
}
.btn--secondary:hover { background: #f2dbbb; }
.btn--secondary img { width: 19px; height: 20px; object-fit: contain; flex-shrink: 0; }

/* ==========================================================================
   HOME / PAYMENT — donation, events, about
   ========================================================================== */
.account {
  width: 100%;
  display: flex;
  align-items: stretch;
  gap: 80px;
  padding: 88px var(--gutter);
}

.account__mascot {
  width: 591px;
  height: 416px;
  flex-shrink: 0;
  aspect-ratio: 591 / 416;
  object-fit: contain;
}

.account__list {
  width: 500px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding: 40px 0;
  margin: 0;
}

.account__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.account__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  line-height: 1.5;
  white-space: nowrap;
}

.account__label {
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 24px;
  color: var(--c-label);
}

.account__value {
  margin: 0;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 32px;
  color: var(--c-text);
}
.account__value--name { text-transform: capitalize; }

.btn-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 8px 12px;
  flex-shrink: 0;
  background: var(--c-accent);
  border: 1px solid var(--c-text);
  border-radius: 4px;
  color: var(--c-text);
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 20px;
  line-height: normal;
  text-align: left;
  cursor: pointer;
  transition: background-color .15s ease, transform .1s ease;
}
.btn-copy:hover { background: #f2dbbb; }
.btn-copy:active { transform: translateY(1px); }
.btn-copy__icon { width: 19px; height: 20px; flex-shrink: 0; }
.btn-copy.is-copied { background: var(--c-text); color: var(--c-white); }
.btn-copy.is-copied .btn-copy__icon { filter: brightness(0) invert(1); }

.events,
.about {
  width: 100%;
  border-top: 0.5px solid var(--c-divider);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  padding: var(--section-pad);
}
.about { gap: 40px; }

.events__list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.event {
  width: 100%;
  display: flex;
  align-items: stretch;
  background: var(--c-accent);
  border: 0.5px solid var(--c-text);
  border-radius: 8px;
}

.event__body {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 24px 32px;
  color: var(--c-text);
}

.event__title {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.3;
  letter-spacing: -0.28px;
  white-space: nowrap;      /* desktop: one line */
}

.event__meta {
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.event__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 186px;
  padding: 8px 20px;
  background: var(--c-btn-dark);
  border: 1px solid var(--c-text);
  border-radius: 4px;
  color: var(--c-white);
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 24px;
  line-height: normal;
  text-align: center;
  text-decoration: none;
  text-transform: capitalize;
  white-space: nowrap;
  transition: background-color .15s ease;
}
.event__cta:hover { background: var(--c-text); }
.event__cta .br-desktop { display: inline; }

.about__text {
  max-width: 760px;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.8;
  color: var(--c-text);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.about__link {
  color: var(--c-text);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color .15s ease;
}
.about__link:hover { color: var(--c-label); }

/* ==========================================================================
   ABOUT PAGE (關於我們)
   ========================================================================== */
.page-about > section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding: var(--section-pad);
}
.page-about > section + section { border-top: 0.5px solid var(--c-divider); }

/* -- Intro + CTAs -- */
.about-intro__row {
  display: flex;
  align-items: flex-start;
  gap: 60px;
}
.about-intro__text {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-weight: 500;
  font-size: 24px;
  line-height: 1.5;
}
.about-intro__ctas {
  width: 296px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.follow { display: flex; flex-direction: column; gap: 12px; }
.follow__label { font-weight: 500; font-size: 16px; line-height: 1.5; color: var(--c-label); }
.follow .btn { justify-content: flex-start; }

.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 44px 24px;
  border-top: 0.5px solid var(--c-divider);
}
.contact__title {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
  text-transform: uppercase;
}
.contact__btns {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.contact__btns .btn { padding: 16px 12px; }

/* -- Emblem -- */
.emblem__summary {
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 40px 0;
}
.emblem__logo { width: 240px; height: 240px; flex-shrink: 0; }
.emblem__summary p,
.mascot__text p { font-weight: 500; font-size: 24px; line-height: 1.5; }

.concepts { margin: 0; padding: 0; list-style: none; }
.concept {
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 44px 24px;
  border-top: 0.5px solid var(--c-divider);
}
.concept__img { width: 120px; height: 120px; flex-shrink: 0; }
.concept__text { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.concept__title {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
}
.concept__text p { font-weight: 500; font-size: 16px; line-height: 1.5; color: var(--c-label); }

/* -- Mascot -- */
.mascot__summary {
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 44px 0;
}
.mascot__text { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.mascot__img { flex: 1 1 0; min-width: 0; width: 100%; height: auto; aspect-ratio: 410 / 399; }

.characters {
  background: var(--c-accent);
  border-radius: 8px;
  padding: 20px 40px;
}
.character {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 44px 0;
}
.character + .character { border-top: 0.5px solid var(--c-divider); }
.character__face { width: 222px; height: 190px; flex-shrink: 0; object-fit: contain; }
.character__details { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.character__name {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.3;
}
.character__list { display: flex; flex-direction: column; gap: 8px; }
.character__list div { display: flex; gap: 8px; }
.character__list dt,
.character__list dd { font-weight: 500; font-size: 16px; line-height: 1.5; }
.character__list dt { width: 96px; flex-shrink: 0; color: var(--c-text); font-weight: 700; }
.character__list dd { color: var(--c-label); min-width: 0; }
html[lang="en-GB"] .character__list dt { width: 110px; }

.story {
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 44px 0 0;
}
.story__text { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.story__title {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.3;
}
.story__text p { font-weight: 500; font-size: 16px; line-height: 1.6; color: var(--c-label); }
.story__figure {
  width: 360px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.story__img { width: 100%; height: auto; aspect-ratio: 463 / 429; }
.story__figure figcaption { font-weight: 500; font-size: 16px; line-height: 1.5; opacity: .5; text-align: center; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  width: 100%;
  margin-top: auto;
  background: var(--c-footer);
  padding: 28px var(--nav-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer__text {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 12px;
  line-height: 1.5;
  text-transform: uppercase;
}
.site-footer__text a { text-decoration: underline; text-underline-offset: 2px; }
.site-footer__text a:hover { text-decoration: none; }
.site-footer__text a[href^="mailto:"] { text-transform: lowercase; }

.social {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.social a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text);
  transition: opacity .15s ease;
}
.social a:hover { opacity: .75; }
.social svg { display: block; height: 16px; width: auto; fill: currentColor; } /* /card/ demo page */
.social__btn {
  width: 32px;
  height: 32px;
  background: var(--c-btn-dark);
  border-radius: 4px;
}
.social__btn img { width: auto; height: 16px; }

/* ---------- Cookie consent (UK GDPR / PECR) ---------- */
.consent {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 50;
  max-width: 720px;
  margin: 0 auto;
  background: var(--c-white);
  border: 1px solid var(--c-text);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(74, 46, 30, .18);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  line-height: 1.5;
}
.consent[hidden] { display: none; }
.consent p { flex: 1; }
.consent__actions { display: flex; gap: 8px; flex-shrink: 0; }
.consent button {
  font: 500 14px/1 var(--f-body);
  padding: 10px 14px;
  border-radius: 4px;
  border: 1px solid var(--c-text);
  cursor: pointer;
}
.consent__accept { background: var(--c-btn-dark); color: var(--c-white); }
.consent__reject { background: var(--c-accent); color: var(--c-text); }

/* ==========================================================================
   TABLET — 800px to 1279px
   ========================================================================== */
@media (max-width: 1279px) {
  :root { --section-pad: 64px max(40px, calc((100% - 560px) / 2)); }

  /* Header */
  .site-header { padding: 20px 24px; }
  .brand { gap: 12px; }
  .brand__logo { width: 72px; height: 72px; }
  .brand__zh { font-size: 24px; letter-spacing: -0.24px; }
  .brand__en { font-size: 20px; letter-spacing: -0.2px; }
  .lang-switch { padding: 0 12px; }
  .lang-switch__long { display: none; }
  .lang-switch__short { display: inline; }
  .menu-btn { width: 48px; padding: 0; }
  .menu-btn__label { display: none; }

  /* Menu: full-width panel under the header */
  .nav-actions { position: static; }
  .site-menu {
    top: 100%;
    left: 0;
    right: 0;
    min-width: 0;
    height: calc(100vh - 112px);
    height: calc(100dvh - 112px);
    overflow-y: auto;
    padding: 40px;
    border-radius: 0;
    box-shadow: none;
  }
  .site-menu ul { gap: 27px; }   /* 跟手機比例：20px 字 × 24/18 */
  .site-menu a { font-size: 20px; white-space: normal; }

  /* Home */
  .account {
    flex-direction: column;
    align-items: center;
    gap: 56px;
    padding: 64px 40px;
  }
  .account__mascot { width: 591px; max-width: 100%; height: auto; }
  .account__list {
    width: 720px;
    max-width: 100%;
    gap: 24px;
    padding: 40px 80px;
  }
  .account__label { font-size: 20px; }
  .account__value { font-size: 28px; }
  .btn-copy { height: 42px; font-size: 18px; }

  .events, .about { padding: 64px 40px; }
  .about { gap: 32px; }
  .section-title__text { font-size: 36px; letter-spacing: 1.44px; }
  .events__list { width: 608px; max-width: 100%; }
  .about__text { max-width: 608px; font-size: 18px; }

  .event { flex-direction: column; }
  .event__body { align-items: center; text-align: center; padding: 32px; }
  .event__title { font-size: 24px; letter-spacing: -0.24px; white-space: normal; }
  .event__meta { font-size: 18px; }
  .event__cta { width: 100%; padding: 24px 32px; font-size: 20px; }
  .event__cta .br-desktop { display: none; }

  /* About page */
  .page-about > section { gap: 40px; }
  .about-intro__row { flex-direction: column; gap: 40px; }
  .about-intro__text { font-size: 20px; }
  .about-intro__ctas { width: 100%; }
  .contact { padding: 36px 0; }
  .contact__btns { grid-template-columns: 1fr; gap: 12px; }

  .emblem__summary { flex-direction: column; gap: 32px; padding: 24px 0; }
  .emblem__summary p, .mascot__text p { font-size: 20px; }
  .concept { gap: 28px; padding: 36px 16px; }
  .concept__title { font-size: 16px; }
  .concept__text p { font-size: 14px; }

  .mascot__summary { flex-direction: column; gap: 40px; padding: 24px 0; }
  .mascot__img { flex: none; width: 403px; max-width: 100%; }
  .characters { width: 480px; max-width: 100%; align-self: center; padding: 8px 32px; }
  .character { flex-direction: column; align-items: center; gap: 24px; padding: 32px 0; }
  .character__details { width: 100%; }
  .character__name { text-align: center; }

  .story { flex-direction: column; gap: 40px; }
  .story__figure { width: 360px; max-width: 100%; }
}

/* ==========================================================================
   MOBILE — up to 799px (designed at 375px)
   ========================================================================== */
@media (max-width: 799px) {
  :root { --section-pad: 52px 16px; }
  .br-mobile { display: inline; }

  /* Header */
  .site-header { padding: 16px; gap: 8px; }
  .brand { gap: 8px; }
  .brand__logo { width: 64px; height: 64px; }
  .brand__name { gap: 2px; }
  .brand__zh { font-size: 18px; letter-spacing: -0.18px; }
  .brand__en { font-size: 13px; letter-spacing: -0.13px; }
  .nav-actions { gap: 8px; }
  .site-menu {
    height: calc(100vh - 96px);
    height: calc(100dvh - 96px);
    padding: 24px 16px;
  }
  .site-menu ul { gap: 24px; }
  .site-menu a { font-size: 18px; }

  /* Home */
  .account {
    align-items: flex-start;
    gap: 64px;
    padding: 52px 16px;
  }
  .account__mascot { width: 100%; max-width: 591px; align-self: center; }
  .account__list {
    width: 100%;
    max-width: 560px;
    align-self: center;
    gap: 36px;
    padding: 0;
  }
  .account__row { align-items: stretch; }
  .account__field { white-space: normal; }
  .account__label { font-size: 16px; }
  .account__value { font-size: 24px; }
  .btn-copy { height: auto; font-size: 16px; align-self: stretch; }
  .br-space { display: none; }

  .events, .about { padding: 52px 16px; }
  .about { gap: 24px; }
  .section-title { gap: 16px; }
  .section-title__icon, .section-title__icon img { width: 24px; }
  .section-title__text { font-size: 28px; letter-spacing: 1.12px; }
  .events__list { width: 100%; max-width: 608px; }
  .about__text { font-size: 16px; text-align: left; }

  .event__body { gap: 12px; padding: 24px 16px; }
  .event__title { font-size: 20px; letter-spacing: -0.2px; }
  .event__meta { font-size: 16px; }
  .event__cta { font-size: 16px; }

  /* About page */
  .page-about > section { gap: 32px; }
  .about-intro__text { font-size: 16px; }
  .btn--primary { padding: 20px 24px; font-size: 18px; }
  .btn--secondary { font-size: 16px; }
  .emblem__logo { width: 200px; height: 200px; }
  .emblem__summary p, .mascot__text p { font-size: 16px; }
  .concept { flex-direction: column; align-items: flex-start; gap: 20px; padding: 32px 0; }
  .concept__img { width: 96px; height: 96px; }
  .characters { padding: 0 20px; }
  .character__face { width: 180px; height: auto; aspect-ratio: 222 / 190; }
  .character__list div { flex-direction: column; gap: 0; }
  .character__list dt, html[lang="en-GB"] .character__list dt { width: auto; }
  .story__title, .character__name { font-size: 20px; }
  .story__figure figcaption { font-size: 13px; }

  /* Footer */
  .site-footer { flex-direction: column; align-items: flex-start; gap: 16px; padding: 28px 16px; }

  .consent { flex-direction: column; align-items: stretch; }
  .consent__actions button { flex: 1; }
}

/* Lock page scroll while the full-screen menu is open (tablet/mobile) */
@media (max-width: 1279px) {
  html.menu-open, html.menu-open body { overflow: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- Legacy classes still used by /card/ demo page ---------- */
.events__title { display: flex; align-items: center; justify-content: center; gap: 20px; width: 100%; }
.events__heading { font-family: var(--f-head); font-weight: 900; font-size: 40px; line-height: 1.2; text-transform: uppercase; text-align: center; }

/* English event titles are longer — let them wrap on desktop */
html[lang="en-GB"] .event__title { white-space: normal; }

/* First section under the header has no divider (e.g. home page without donation block) */
main > section:first-child { border-top: 0; }

/* Logo hover (Figma prototype, see video 2026-10-12):
   on hover the whole brand pops to ~1.5° tilt + 5% bigger with a springy overshoot,
   on leave it springs back, briefly overshooting the other way before settling. */
.brand {
  transform-origin: 50% 50%;
  transition: transform .5s cubic-bezier(.34, 1.8, .64, 1);           /* fallback */
  transition: transform .55s linear(0, .32 5%, .86 12%, 1.13 19%, 1.17 23%, 1.1 30%,
                                    .97 40%, .94 47%, .98 58%, 1.01 70%, 1);   /* spring */
}
@media (hover: hover) {
  .brand:hover { transform: rotate(1.5deg) scale(1.05); }
}
.brand:focus-visible { transform: rotate(1.5deg) scale(1.05); }
@media (prefers-reduced-motion: reduce) {
  .brand:hover, .brand:focus-visible { transform: none; }
}

/* ---------- Back to top button ---------- */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 45;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(110, 82, 66, .55);
  color: var(--c-light);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s ease, visibility .3s ease, transform .3s ease, background-color .2s ease;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.to-top[hidden] { display: none; }
.to-top.is-shown { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: rgba(110, 82, 66, .85); }
.consent:not([hidden]) ~ .to-top { bottom: 110px; }
@media (max-width: 799px) {
  .to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }
  .consent:not([hidden]) ~ .to-top { bottom: 190px; }
}

/* ---------- Scroll fade-in (About page; class added by main.js) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.22, .61, .36, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Mascot motion (關於我們) — 開關：site.json → mascot_motion，
   產生 <html data-mascot-motion="on|off">。off 時以下全部唔生效。
   動畫只會喺圖片入咗畫面（.is-playing，由 main.js 加）先播。
   ========================================================================== */
.motion-svg { display: block; width: 100%; height: auto; overflow: visible; }
.motion-svg g { transform-box: fill-box; }

@keyframes nhk-float  { 0% { transform: translateY(0) rotate(-1deg); } 100% { transform: translateY(-8px) rotate(1deg); } }
@keyframes nhk-hop    { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-5px); } }
@keyframes nhk-lift   { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-6px) rotate(-1.5deg); } }
@keyframes nhk-sway   { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
@keyframes nhk-tilt   { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-4deg); } 75% { transform: rotate(3deg); } }
@keyframes nhk-bob    { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes nhk-jiggle { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(8deg); } }
@keyframes nhk-wiggle {
  0%, 100% { transform: rotate(0) scale(1); }
  20% { transform: rotate(-6deg) scale(1.04); }
  45% { transform: rotate(5deg) scale(1.04); }
  70% { transform: rotate(-3deg) scale(1.02); }
}

@media (prefers-reduced-motion: no-preference) {
  /* 1. 吉祥物圖：成幅慢慢浮動；兩隻松鼠輪流跳，瓜子跟住升降 */
  html[data-mascot-motion="on"] .mascot__img.is-playing {
    animation: nhk-float 3.6s ease-in-out infinite alternate;
  }
  html[data-mascot-motion="on"] .mascot__img.is-playing #pair-Almond {
    transform-origin: 50% 100%;
    animation: nhk-lift 2.4s ease-in-out infinite;
  }
  html[data-mascot-motion="on"] .mascot__img.is-playing #pair-Squirrel-left  { animation: nhk-hop 2.4s ease-in-out infinite; }
  html[data-mascot-motion="on"] .mascot__img.is-playing #pair-Squirrel-right { animation: nhk-hop 2.4s ease-in-out -1.2s infinite; }

  /* 2. 相識經過：條尾擺、個頭側、身輕輕起伏、瓜子郁下郁下 */
  html[data-mascot-motion="on"] .story__img.is-playing #story-tail,
  html[data-mascot-motion="on"] .story__img.is-playing #story-tail_2 {
    transform-origin: 50% 100%;
    animation: nhk-sway 2.8s ease-in-out infinite;
  }
  html[data-mascot-motion="on"] .story__img.is-playing #story-tail_2 { animation-delay: -1.4s; }
  html[data-mascot-motion="on"] .story__img.is-playing #story-head,
  html[data-mascot-motion="on"] .story__img.is-playing #story-head_2 {
    transform-origin: 50% 90%;
    animation: nhk-tilt 4s ease-in-out infinite;
  }
  html[data-mascot-motion="on"] .story__img.is-playing #story-head_2 { animation-delay: -2s; }
  html[data-mascot-motion="on"] .story__img.is-playing #story-Squirrel-left,
  html[data-mascot-motion="on"] .story__img.is-playing #story-Squirrel-right {
    animation: nhk-bob 3s ease-in-out infinite;
  }
  html[data-mascot-motion="on"] .story__img.is-playing #story-Squirrel-right { animation-delay: -1.5s; }
  html[data-mascot-motion="on"] .story__img.is-playing #story-Almond > g {
    transform-origin: 50% 50%;
    animation: nhk-jiggle 1.8s ease-in-out infinite;
  }
  html[data-mascot-motion="on"] .story__img.is-playing #story-Almond > g:nth-child(2n)  { animation-delay: -.6s; }
  html[data-mascot-motion="on"] .story__img.is-playing #story-Almond > g:nth-child(3n)  { animation-delay: -1.2s; animation-direction: reverse; }

  /* 3. 丁丁、尼尼：滑鼠移上去搖一搖；手機捲到時自動搖一次 */
  html[data-mascot-motion="on"] .character__face { transform-origin: 50% 85%; }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  html[data-mascot-motion="on"] .character:hover .character__face { animation: nhk-wiggle .8s ease-in-out; }
}
@media (prefers-reduced-motion: no-preference) and (hover: none) {
  html[data-mascot-motion="on"] .character.is-visible .character__face { animation: nhk-wiggle .9s ease-in-out .5s 1; }
}

/* ==========================================================================
   EVENT DETAIL PAGE（活動詳情頁，events.json → build.py event_body）
   ========================================================================== */
.page-event > section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding: var(--section-pad);
}
.page-event > section + section { border-top: 0.5px solid var(--c-divider); }

.subnav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
}
.subnav__link { color: var(--c-text); text-decoration: none; }
.subnav__link:hover { text-decoration: underline; text-underline-offset: 4px; }
.subnav__link:only-child { margin-right: auto; }

.event-intro__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.5;
}

/* 籌委及鳴謝 */
.credits__groups {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
}
.credits__group { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.credits__title {
  padding-bottom: 8px;
  border-bottom: 0.5px solid var(--c-divider);
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.3;
  color: var(--c-label);
}
.credits__cols { display: flex; gap: 80px; }
.credits__col {
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 8px;
  align-content: start;
  margin: 0;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.3;
}
.credits__row { display: contents; }
.credits__col dt { color: var(--c-label); white-space: nowrap; }
.credits__col dd { margin: 0; color: var(--c-text); white-space: nowrap; }

/* 海報及場刊 */
.posters__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.posters__item { display: block; overflow: hidden; }
.posters__item img { width: 100%; height: auto; aspect-ratio: 432 / 610; object-fit: cover; transition: transform .3s ease; }
.posters__item:hover img { transform: scale(1.02); }

/* 活動照片 */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.gallery__item { display: block; overflow: hidden; border-radius: 2px; background: var(--c-accent); }
.gallery__item img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform .35s ease, filter .35s ease;
}
.gallery__item:hover img { transform: scale(1.05); filter: brightness(1.05); }

/* Lightbox（main.js 建立） */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(40, 24, 14, .92);
  padding: 56px 64px;
}
.lightbox[hidden] { display: none; }
.lightbox__img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; box-shadow: 0 8px 32px rgba(0,0,0,.4); }
.lightbox__btn {
  position: absolute;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 250, 237, .18);
  color: var(--c-light);
  font: 500 28px/1 var(--f-body);
  cursor: pointer;
}
.lightbox__btn:hover { background: rgba(255, 250, 237, .32); }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 8px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: var(--c-light); font: 500 14px/1 var(--f-body); opacity: .8; }
html.lightbox-open, html.lightbox-open body { overflow: hidden; }

@media (max-width: 1279px) {
  .page-event > section { gap: 40px; }
  .subnav { font-size: 14px; }
  .event-intro__text { font-size: 16px; }
  .credits__groups { flex-direction: column; gap: 48px; }
  .credits__group { width: 100%; gap: 8px; }
  .credits__title { font-size: 16px; }
  .credits__cols { justify-content: space-between; gap: 48px; }
  .credits__group:last-child .credits__cols { justify-content: flex-start; }
  .credits__col { font-size: 16px; }
  .gallery__grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
@media (max-width: 799px) {
  .page-event > section { gap: 32px; }
  .subnav, .event-intro__text, .credits__title, .credits__col { font-size: 14px; }
  .credits__cols { gap: 8px; }
  .posters__grid { grid-template-columns: 1fr; }
  .posters__item img { aspect-ratio: auto; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .lightbox { padding: 56px 8px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 8px; transform: none; }
  .lightbox__count { bottom: 24px; }
}

/* Lightbox loading：大圖未載好時，舊圖淡出＋轉圈 */
.lightbox__img { transition: opacity .2s ease; }
.lightbox.is-loading .lightbox__img { opacity: .35; }
.lightbox.is-loading::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 44px; height: 44px;
  margin: -22px 0 0 -22px;
  border: 3px solid rgba(255, 250, 237, .25);
  border-top-color: var(--c-light);
  border-radius: 50%;
  animation: nhk-spin .8s linear infinite;
}
@keyframes nhk-spin { to { transform: rotate(360deg); } }

/* 海報及場刊：圖下面嘅掣（一半疊住圖底） */
.posters__grid { row-gap: 48px; padding-bottom: 24px; }
.posters__cell { position: relative; display: flex; flex-direction: column; align-items: center; }
.posters__cell .posters__item { width: 100%; }
.posters__btn {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 24px;
  background: var(--c-btn-dark);
  border: 1px solid var(--c-text);
  border-radius: 4px;
  color: var(--c-light);
  font: 500 16px/1.2 var(--f-body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(74, 46, 30, .2);
  transition: background-color .15s ease;
}
.posters__btn:hover { background: var(--c-text); }
@media (max-width: 799px) {
  .posters__grid { row-gap: 56px; }
  .posters__btn { font-size: 15px; }
}

/* Lightbox：得一張圖時隱藏左右掣（hidden attribute 要贏 display:flex） */
.lightbox__btn[hidden] { display: none; }

/* 籌委及鳴謝：每組入面左右兩欄 50% / 50%（credits 50/50） */
.credits__groups { flex-direction: column; flex-wrap: nowrap; }
.credits__group { width: 100%; }
.credits__cols,
.credits__group:last-child .credits__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 48px;
  justify-content: stretch;
}
.credits__col { grid-template-columns: max-content 1fr; }
.credits__cols > .credits__col:only-child { grid-column: 1 / -1; }
@media (max-width: 799px) {
  .credits__cols, .credits__group:last-child .credits__cols { column-gap: 16px; }
  .credits__col dd { white-space: normal; }
}

/* 籌委及鳴謝 PC：活動（2/3，入面 50/50）同場刊（1/3）左右並排；平板／手機上下排 */
@media (min-width: 1280px) {
  .credits__groups {
    display: grid;
    grid-template-columns: max-content 1fr;
    column-gap: 56px;
    align-items: start;
  }
  .credits__group:first-child .credits__cols { column-gap: 32px; }
  .credits__group:last-child .credits__cols { grid-template-columns: 1fr; }
  .credits__group:last-child .credits__col { grid-template-columns: auto 1fr; }
  .credits__group:last-child .credits__col dt { white-space: normal; }
}

/* ==========================================================================
   PAST EVENTS（精彩活動回顧 /events/，跟 Figma 首頁「精彩活動回顧」）
   ========================================================================== */
.page-past > section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding: var(--section-pad);
}
.past__year { display: flex; flex-direction: column; gap: 24px; }
.past__year-title {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 32px;
  line-height: 1.5;
  text-align: left;
}
.past__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.past-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--c-btn-dark);
  border-radius: 8px;
  overflow: hidden;
  color: var(--c-light);
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease;
}
.past-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(74, 46, 30, .25); }
.past-card__img { display: block; overflow: hidden; background: var(--c-accent); }
.past-card__img img { width: 100%; height: auto; aspect-ratio: 264 / 171; object-fit: cover; transition: transform .4s ease; }
.past-card:hover .past-card__img img { transform: scale(1.05); }
.past-card__title {
  padding: 24px 32px;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.5;
}
@media (max-width: 1279px) {
  .page-past > section { gap: 40px; }
  .past__year { gap: 20px; }
  .past__year-title { font-size: 24px; }
  .past__grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .past-card__title { padding: 20px; font-size: 20px; }
}
@media (max-width: 799px) {
  .page-past > section { gap: 32px; }
  .past__year { gap: 16px; }
  .past__year-title { font-size: 18px; }
  .past__grid { gap: 16px; }
  .past-card__title { padding: 12px 14px; font-size: 16px; }
}

/* 精彩活動回顧：年份、活動名置中；卡片唔夠一行都置中（past 置中） */
.past__year-title { text-align: center; }
.past-card__title { text-align: center; }
.past__grid { display: flex; flex-wrap: wrap; justify-content: center; }
.past__grid > li { width: calc((100% - 48px) / 3); }
@media (max-width: 1279px) { .past__grid > li { width: calc((100% - 20px) / 2); } }
@media (max-width: 799px) { .past__grid > li { width: calc((100% - 16px) / 2); } }

/* 活動照片：得一張相時放大置中（build.py → gallery__grid--single） */
.gallery__grid.gallery__grid--single { grid-template-columns: minmax(0, 960px); justify-content: center; }
.gallery__grid--single .gallery__item img { aspect-ratio: auto; }
.gallery__grid--single .gallery__item:hover img { transform: scale(1.02); }

/* ==========================================================================
   私隱政策連結、Cookie 設定掣、PRIVACY PAGE（/privacy/）
   ========================================================================== */
.site-footer__links { margin-top: 4px; }
.link-btn {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  text-transform: inherit;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.link-btn:hover { text-decoration: none; }
.consent p a { text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.consent p a:hover { text-decoration: none; }

.page-privacy > section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: var(--section-pad);
}
.privacy__updated { margin-top: -16px; text-align: center; font-size: 14px; color: var(--c-label); }
.privacy__block { display: flex; flex-direction: column; gap: 12px; font-size: 16px; line-height: 1.7; }
.privacy__block h2 {
  padding-bottom: 8px;
  border-bottom: 0.5px solid var(--c-divider);
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.4;
}
.privacy__block ul { margin: 0; padding-left: 1.4em; display: flex; flex-direction: column; gap: 8px; }
.privacy__block a { text-decoration: underline; text-underline-offset: 2px; word-break: break-word; }
.privacy__block a:hover { text-decoration: none; }
.privacy__table-wrap { overflow-x: auto; }
.privacy__table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.privacy__table th, .privacy__table td { padding: 10px 12px; border: 0.5px solid var(--c-divider); text-align: left; vertical-align: top; }
.privacy__table th { background: var(--c-accent); font-weight: 700; }
.privacy__cta { text-align: center; }
.btn-settings {
  font: 500 16px/1 var(--f-body);
  padding: 14px 20px;
  border-radius: 4px;
  border: 1px solid var(--c-text);
  background: var(--c-btn-dark);
  color: var(--c-white);
  cursor: pointer;
}
.btn-settings:hover { opacity: .9; }
@media (max-width: 799px) {
  .page-privacy > section { gap: 32px; }
  .privacy__block { font-size: 14px; }
  .privacy__block h2 { font-size: 18px; }
  /* 手機：表格改做一格一行 */
  .privacy__table thead { display: none; }
  .privacy__table, .privacy__table tbody, .privacy__table tr, .privacy__table td { display: block; width: 100%; }
  .privacy__table tr { border: 0.5px solid var(--c-divider); margin-bottom: 12px; }
  .privacy__table td { border: 0; border-bottom: 0.5px solid rgba(103, 78, 68, .25); font-size: 14px; }
  .privacy__table td:last-child { border-bottom: 0; }
  .privacy__table td::before { content: attr(data-label); display: block; font-weight: 700; color: var(--c-label); font-size: 12px; }
}

/* ==========================================================================
   街坊商家（/hkgers-businesses/）— 商家卡由 shops.js 讀 data/hkgers-businesses.json 產生
   ========================================================================== */
.page-shops > section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: var(--section-pad);
}
.page-shops > section + section { border-top: 0.5px solid var(--c-divider); }

/* 篩選（類型） */
.shops__filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.shops__filter[hidden] { display: none; }
.shops__filter-label { margin-right: 4px; font-size: 14px; color: var(--c-label); }
.shop-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--c-btn-dark);
  border-radius: 999px;
  background: var(--c-bg);
  color: var(--c-text);
  font: 500 15px/1.2 var(--f-body);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.shop-chip:hover { background: var(--c-accent); }
.shop-chip[aria-pressed="true"] { background: var(--c-btn-dark); color: var(--c-light); }
.shop-chip__n { font-size: 12px; opacity: .7; }
/* 會員優惠篩選：最右、紅色 */
.shop-chip--offer { margin-left: auto; border-color: #c8432b; color: #a63521; }
.shop-chip--offer:hover { background: #fbe3dc; }
.shop-chip--offer[aria-pressed="true"] { background: #c8432b; border-color: #c8432b; color: #fff; }
.shops__select select {
  padding: 8px 12px; border: 1px solid var(--c-btn-dark); border-radius: 4px;
  background: var(--c-bg); color: var(--c-text); font: 500 15px var(--f-body);
}
.shops__status { text-align: center; color: var(--c-label); }
.shops__status[hidden] { display: none; }

/* 商家卡 */
.shops__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 0; padding: 0; list-style: none;
}
.shop-card {
  display: flex; flex-direction: column;
  padding: 12px;
  background: var(--c-accent);
  border: 1px solid rgba(103, 78, 68, .45);
  border-radius: 8px;
}
.shop-card__logo, .shop-modal__logo {
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  border-radius: 6px;
  background: #e9d5bc;
}
.shop-card__logo { aspect-ratio: 3 / 2; }
.shop-card__logo-btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 6px; }
.shop-card__logo-btn .shop-card__logo { transition: transform .25s ease, box-shadow .25s ease; }
.shop-card__logo-btn:hover .shop-card__logo { transform: scale(1.02); box-shadow: 0 6px 16px rgba(74, 46, 30, .2); }
.shop-card__logo img, .shop-modal__logo img { width: 100%; height: 100%; object-fit: cover; }
.shop-card__logo--blank span, .shop-modal__logo--blank span {
  font: 700 48px/1 var(--f-head); color: var(--c-btn-dark); opacity: .6;
}
.shop-card__body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 14px 4px 2px; }
.shop-card__name { font: 700 20px/1.35 var(--f-body); }
.shop-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.shop-tag {
  display: inline-block; padding: 3px 10px; border-radius: 4px;
  background: #e9d5bc; color: var(--c-text); font: 500 13px/1.5 var(--f-body);
}
.shop-offer {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border: 0; border-radius: 4px;
  background: #c8432b; color: #fff;
  font: 700 13px/1.5 var(--f-body);
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.shop-offer:hover { background: #a63521; transform: translateY(-1px); }
.shop-card__intro {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 14px; line-height: 1.6; color: var(--c-label);
}
.shop-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 4px; }
.shop-card__more {
  margin-left: auto; padding: 4px 0; border: 0; background: none;
  color: var(--c-text); font: 500 14px var(--f-body);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.shop-card__more:hover { text-decoration: none; }
.shop-links { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.shop-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 32px; height: 32px; padding: 0 8px;
  border-radius: 4px; background: var(--c-btn-dark); color: var(--c-light);
  text-decoration: none; font: 500 14px var(--f-body);
  transition: opacity .15s ease;
}
.shop-link:hover { opacity: .8; }
.shop-link__icon img { width: auto; height: 16px; }
.shop-link--text { padding: 0 12px; }

/* 詳情彈窗 */
.shop-modal {
  width: min(560px, calc(100% - 32px));
  max-height: calc(100% - 48px);
  padding: 0; border: 1px solid var(--c-text); border-radius: 10px;
  background: var(--c-bg); color: var(--c-text);
  box-shadow: 0 16px 48px rgba(40, 24, 14, .35);
}
.shop-modal::backdrop { background: rgba(40, 24, 14, .6); }
.shop-modal__inner { position: relative; display: flex; flex-direction: column; gap: 20px; padding: 28px; }
.shop-modal__close {
  position: absolute; top: 10px; right: 10px;
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: var(--c-accent); color: var(--c-text); font: 500 26px/1 var(--f-body); cursor: pointer;
}
.shop-modal__head { display: flex; align-items: center; gap: 16px; padding-right: 40px; }
.shop-modal__logo { flex-shrink: 0; width: 96px; height: 96px; }
.shop-modal__logo--blank span { font-size: 36px; }
.shop-modal__name { margin-bottom: 6px; font: 700 22px/1.35 var(--f-body); }
.shop-modal h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font: 700 16px var(--f-body); }
.shop-modal__intro p { font-size: 16px; line-height: 1.7; white-space: pre-line; }
.shop-modal__offer { padding: 16px; border-radius: 8px; background: #fbe3dc; border-left: 4px solid #c8432b; outline: none; }
.shop-modal__offer h3 { color: #a63521; }
.shop-modal__offer p { font-size: 16px; line-height: 1.6; white-space: pre-line; }
.shop-modal__offer .shop-modal__note { margin-top: 6px; font-size: 13px; color: var(--c-label); }

/* 登記街坊商家／推薦本地商家 */
.shop-register__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin: 0; padding: 0; list-style: none; }
.shop-reg {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--c-accent); border: 1px solid rgba(103, 78, 68, .45); border-radius: 8px;
}
.shop-reg__img { width: 100%; height: auto; aspect-ratio: 400 / 270; object-fit: cover; }
.shop-reg__body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 20px; }
.shop-reg__title { font: 700 20px/1.4 var(--f-body); }
.shop-reg__text { font-size: 15px; line-height: 1.6; color: var(--c-label); }
.shop-reg__cta {
  margin-top: auto; align-self: stretch; text-align: center;
  padding: 12px 20px; border: 1px solid var(--c-text); border-radius: 4px;
  background: var(--c-btn-dark); color: var(--c-white);
  font: 500 17px var(--f-body); text-decoration: none;
}
.shop-reg__cta:hover { background: var(--c-text); }

@media (max-width: 1279px) {
  .shops__grid { gap: 16px; }
  .shop-card__name { font-size: 17px; }
}
@media (max-width: 799px) {
  .page-shops > section { gap: 24px; }
  .shop-chip { flex-shrink: 0; padding: 6px 12px; font-size: 14px; }
  /* 手機：類型掣一行，左右掃 */
  .shops__filter { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 6px; scrollbar-width: none; }
  .shops__filter::-webkit-scrollbar { display: none; }
  .shops__filter-label { flex-shrink: 0; }
  .shop-chip--offer { margin-left: 0; order: -1; }  /* 手機：排頭，唔使掃到尾先見到 */
  /* 手機：一行一間，logo 喺左 */
  .shops__grid { grid-template-columns: 1fr; gap: 12px; }
  .shop-card { flex-direction: row; gap: 12px; padding: 10px; }
  .shop-card__logo-btn { flex-shrink: 0; width: 96px; height: 96px; }
  .shop-card__logo { width: 96px; height: 96px; aspect-ratio: auto; }
  .shop-card__body { padding: 0; gap: 6px; min-width: 0; }
  .shop-card__name { font-size: 16px; }
  .shop-card__intro { font-size: 13px; }
  .shop-register__list { grid-template-columns: 1fr; gap: 16px; }
  .shop-modal__inner { padding: 20px; gap: 16px; }
  .shop-modal__logo { width: 72px; height: 72px; }
  .shop-modal__name { font-size: 19px; }
}

/* ==========================================================================
   登記卡公仔郁動（街坊商家頁）— 跟 Mascot motion 開關（site.json → mascot_motion）
   JPG 底圖 + 疊加部件：松鼠眨眼、面珠泛紅、心心眼跳動、「品質保證」逐個彈
   ========================================================================== */
.reg-art { position: relative; display: block; overflow: hidden; aspect-ratio: 800 / 502; background: #fffaee; }
.reg-art__inner { position: absolute; inset: 0; transform-origin: 50% 100%; }
.reg-art__base { width: 100%; height: 100%; object-fit: cover; }
.reg-art__inner > span { position: absolute; display: block; }
.reg-art__blush { border-radius: 50%; background: radial-gradient(circle, rgba(240, 120, 150, .75) 0%, rgba(240, 120, 150, 0) 70%); opacity: 0; }
.reg-art__lid { border-radius: 50%; background: #d9b185; opacity: 0; }
.reg-art__lid::after { content: ""; position: absolute; left: 12%; right: 12%; top: 46%; height: 2px; border-radius: 2px; background: #8c5f40; }
.reg-art__heart svg { display: block; width: 100%; height: 100%; }
.reg-art__heart, .reg-art__char { transform-origin: 50% 60%; }
.reg-art__char img { width: 100%; height: 100%; }

/* 兩隻松鼠（pair）：唔成幅郁，改為各自小動作 */
.reg-art__pop { opacity: 0; transform-origin: 50% 100%; }
.reg-art__pop svg { display: block; width: 100%; height: 100%; }
@keyframes reg-pop {
  0% { opacity: 0; transform: translateY(30%) scale(.3) rotate(-10deg); }
  12% { opacity: 1; transform: translateY(0) scale(1.15) rotate(6deg); }
  22% { transform: translateY(-8%) scale(1) rotate(-4deg); }
  40% { opacity: 1; transform: translateY(-30%) scale(1) rotate(4deg); }
  55%, 100% { opacity: 0; transform: translateY(-60%) scale(.9) rotate(0); }
}
@keyframes reg-blink2 { 0%, 84%, 92%, 100% { opacity: 0; } 86%, 89%, 94%, 97% { opacity: 1; } }
@keyframes reg-breathe-soft { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.006, 1.014); } }
@keyframes reg-breathe { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.012, 1.025); } }
@keyframes reg-blink   { 0%, 90%, 100% { opacity: 0; } 92%, 96% { opacity: 1; } }
@keyframes reg-blush   { 0%, 100% { opacity: 0; } 50% { opacity: .55; } }
@keyframes reg-heart   { 0%, 40%, 100% { transform: scale(1); } 10% { transform: scale(1.35); } 20% { transform: scale(1.05); } 30% { transform: scale(1.25); } }
@keyframes reg-char    { 0%, 20%, 100% { transform: translateY(0) scale(1); } 6% { transform: translateY(-12%) scale(1.12) rotate(-4deg); } 12% { transform: translateY(0) scale(.96); } }

@media (prefers-reduced-motion: no-preference) {
  html[data-mascot-motion="on"] .reg-art--recommend.is-playing .reg-art__inner { animation: reg-breathe 3.2s ease-in-out infinite; }
  html[data-mascot-motion="on"] .reg-art--pair.is-playing .reg-art__inner { animation: reg-breathe-soft 3.6s ease-in-out infinite; }
  html[data-mascot-motion="on"] .reg-art.is-playing .reg-art__lid { animation: reg-blink2 4s linear infinite; }
  html[data-mascot-motion="on"] .reg-art.is-playing .reg-art__pop { animation: reg-pop 3.6s ease-out infinite; }
  html[data-mascot-motion="on"] .reg-art.is-playing .reg-art__pop--note2 { animation-delay: .35s; }
  html[data-mascot-motion="on"] .reg-art.is-playing .reg-art__pop--heart1 { animation-delay: 1.8s; }
  html[data-mascot-motion="on"] .reg-art.is-playing .reg-art__pop--heart2 { animation-delay: 2.15s; }
  html[data-mascot-motion="on"] .reg-art.is-playing .reg-art__blush { animation: reg-blush 3.2s ease-in-out infinite; }
  html[data-mascot-motion="on"] .reg-art.is-playing .reg-art__heart { animation: reg-heart 1.6s ease-in-out infinite; }
  html[data-mascot-motion="on"] .reg-art.is-playing .reg-art__char { animation: reg-char 4s ease-in-out infinite; }
  html[data-mascot-motion="on"] .reg-art.is-playing .reg-art__char--2 { animation-delay: .25s; }
  html[data-mascot-motion="on"] .reg-art.is-playing .reg-art__char--3 { animation-delay: .5s; }
  html[data-mascot-motion="on"] .reg-art.is-playing .reg-art__char--4 { animation-delay: .75s; }
}

/* 海報組（posters_group）：3 張一行；手機一張一行 */
.posters__grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 799px) { .posters__grid--3 { grid-template-columns: 1fr; } }

/* ==========================================================================
   本地商家（/local-businesses/）— 冇 logo，以街坊意見為主；沿用街坊商家嘅篩選、icon、彈窗樣式
   ========================================================================== */
.lb-lead { margin-top: -12px; text-align: center; font-size: 16px; line-height: 1.6; color: var(--c-label); }
.lb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 0; padding: 0; list-style: none; align-items: stretch; }
.lb-card {
  display: flex; flex-direction: column; gap: 12px;
  padding: 20px;
  background: var(--c-accent);
  border: 1px solid rgba(103, 78, 68, .45);
  border-top: 6px solid var(--c-btn-dark);
  border-radius: 8px;
}
.lb-card__head { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.lb-card__name { font: 700 20px/1.35 var(--f-body); }
.lb-card__count { font: 500 13px var(--f-body); color: var(--c-label); }
.lb-card__none { font-size: 14px; color: var(--c-label); font-style: italic; }
.lb-reviews { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.lb-review {
  position: relative;
  padding: 12px 14px 10px 38px;
  background: var(--c-bg);
  border-radius: 4px 14px 14px 14px;
  box-shadow: 0 1px 0 rgba(103, 78, 68, .15);
}
.lb-review__q { position: absolute; left: 12px; top: 13px; width: 16px; height: 12px; color: #d9b185; }
.lb-review__text { font-size: 15px; line-height: 1.55; }
.lb-review__who { margin-top: 4px; font: 500 13px var(--f-body); color: var(--c-label); }
.lb-card__foot { margin-top: 4px; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 32px; }
.lb-modal__head { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding-right: 40px; }
.lb-reviews--all .lb-review { background: var(--c-accent); }
.lb-note { text-align: center; font-size: 13px; color: var(--c-label); }
.shop-modal__note { font-size: 13px; color: var(--c-label); }

@media (max-width: 1279px) {
  .lb-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 799px) {
  .lb-grid { grid-template-columns: 1fr; gap: 12px; }
  .lb-card { padding: 16px; }
  .lb-card__name { font-size: 17px; }
  .lb-card__head { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
  .lb-review__text { font-size: 14px; }
  .lb-lead { font-size: 14px; }
}

/* 本地商家（2026-10-15 改）：每格一樣高；卡上只顯示第一個意見（最多 3 行 …），多過一個意見露出下一格邊並淡出 */
.lb-card { height: 100%; }
.lb-card__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lb-stack { position: relative; display: flex; flex-direction: column; }
.lb-stack .lb-review__text {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  min-height: calc(1.55em * 3);
}
.lb-stack .lb-review { z-index: 1; }
.lb-card__none { display: flex; align-items: center; min-height: calc(15px * 1.55 * 3 + 22px + 23px); padding: 0 14px; background: rgba(255, 250, 237, .55); border-radius: 4px 14px 14px 14px; }
.lb-peek { height: 30px; margin: -14px 12px 0; visibility: hidden; }
.lb-stack--more .lb-peek {
  visibility: visible;
  background: var(--c-bg);
  border: 1.5px solid rgba(103, 78, 68, .5);
  border-top: 0;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 2px 4px rgba(74, 46, 30, .12);
  -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 45%, transparent 100%);
}
.lb-stack .lb-review { border: 1px solid rgba(103, 78, 68, .2); }
.lb-card__foot { margin-top: auto; }
@media (max-width: 799px) {
  /* 手機一欄，唔使對齊高度：短意見唔留空位 */
  .lb-stack .lb-review__text { min-height: 0; }
  .lb-card__none { min-height: 0; padding: 12px 14px; }
}

/* 本地商家（2026-10-15 再改）：意見 preview 只顯示一行；疊卡更明顯（2 個意見露 1 層、3 個或以上露 2 層） */
.lb-stack .lb-review__text {
  display: block; -webkit-line-clamp: unset; min-height: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lb-stack .lb-review { padding-top: 10px; padding-bottom: 8px; }
.lb-review__q { top: 11px; }
.lb-card__none { min-height: 0; padding: 14px; }
.lb-peek, .lb-stack--more .lb-peek, .lb-stack--more2 .lb-peek {
  position: relative; height: 10px; margin: 0 10px; visibility: hidden;
  -webkit-mask-image: none; mask-image: none; box-shadow: none;
}
.lb-peek--2 { margin: 0 20px; }
.lb-stack--more .lb-peek:not(.lb-peek--2),
.lb-stack--more2 .lb-peek {
  visibility: visible;
  background: #f3e3cc;
  border: 1px solid rgba(103, 78, 68, .45);
  border-top: 0;
  border-radius: 0 0 10px 10px;
}
.lb-stack--more2 .lb-peek--2 { background: #ead6bb; opacity: .7; }
.lb-stack .lb-review { border-color: rgba(103, 78, 68, .45); }
/* 一行 preview（nowrap）唔好撐闊格仔 */
.lb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lb-card, .lb-stack, .lb-reviews, .lb-review { min-width: 0; }
@media (max-width: 1279px) { .lb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 799px)  { .lb-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 799px) { .lb-stack:not(.lb-stack--more):not(.lb-stack--more2) .lb-peek { display: none; } }

/* 本地商戶：每個類型有自己顏色（local-businesses.json → categories[].color）
   只用喺類型細標籤左邊；卡同意見框維持原本啡色。冇設定就用返啡色 */
.lb-card { border-top: 6px solid var(--c-btn-dark); }
.lb-tag { border-left: 4px solid var(--cat, var(--c-btn-dark)); border-radius: 2px 4px 4px 2px; }

/* ==========================================================================
   主頁「最新消息」（3 格 banner，沿用街坊小店頁 .shop-reg 卡＋公仔郁動）＋關於我們 CTA
   電腦一行 3 格；平板／手機左右掃（scroll-snap），露出下一格少少
   ========================================================================== */
.news {
  width: 100%;
  border-top: 0.5px solid var(--c-divider);
  display: flex; flex-direction: column; align-items: center; gap: 48px;
  padding: var(--section-pad);
}
.news__list { width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.news__list .shop-reg__title { font-size: 18px; }
.news__list .shop-reg__text { font-size: 14px; }
.about__cta { min-width: 260px; text-decoration: none; }
@media (max-width: 1279px) {
  .news { gap: 32px; }
  .news__list {
    display: flex; gap: 16px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    width: auto; align-self: stretch;
    margin: 0 calc(50% - 50vw); padding: 4px 40px 12px;
    scrollbar-width: none;
  }
  .news__list::-webkit-scrollbar { display: none; }
  .news__list > li { flex: 0 0 auto; width: min(300px, 78vw); scroll-snap-align: center; }
  .news__list > li:first-child { margin-left: auto; }
  .news__list > li:last-child { margin-right: auto; }
}
@media (max-width: 799px) {
  .news__list { padding-left: 16px; padding-right: 16px; }
  .news__list > li { width: min(80vw, 320px); }
  .about__cta { min-width: 0; width: 100%; }
}

/* 會員卡公仔：眨眼（兩隻輪流）、反光掃過、星星閃 */
.reg-art__lid--a { background: #dbb48b; }
.reg-art__lid--b { background: #eacc84; }
.reg-art__lid--a::after, .reg-art__lid--b::after { background: #8c5f40; height: 1.5px; }
.reg-art__star { opacity: 0; transform-origin: 50% 50%; }
.reg-art__star svg { display: block; width: 100%; height: 100%; }
.reg-art__gloss {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .55) 48%, rgba(255, 255, 255, .15) 54%, transparent 62%);
  background-size: 300% 100%; background-position: 120% 0;
}
@keyframes reg-gloss { 0%, 55% { background-position: 120% 0; } 85%, 100% { background-position: -40% 0; } }
@keyframes reg-star  { 0%, 100% { opacity: 0; transform: scale(.3) rotate(0); } 15% { opacity: 1; transform: scale(1.1) rotate(20deg); } 30% { opacity: 0; transform: scale(.6) rotate(45deg); } }
@media (prefers-reduced-motion: no-preference) {
  html[data-mascot-motion="on"] .reg-art--member.is-playing .reg-art__inner { animation: reg-breathe-soft 3.6s ease-in-out infinite; }
  html[data-mascot-motion="on"] .reg-art--member.is-playing .reg-art__lid--a { animation: reg-blink2 4s linear infinite; }
  html[data-mascot-motion="on"] .reg-art--member.is-playing .reg-art__lid--b { animation: reg-blink2 4s linear infinite 2s; }
  html[data-mascot-motion="on"] .reg-art--member.is-playing .reg-art__gloss { animation: reg-gloss 4.5s ease-in-out infinite; }
  html[data-mascot-motion="on"] .reg-art--member.is-playing .reg-art__star { animation: reg-star 3s ease-in-out infinite; }
  html[data-mascot-motion="on"] .reg-art--member.is-playing .reg-art__star--2 { animation-delay: 1s; }
  html[data-mascot-motion="on"] .reg-art--member.is-playing .reg-art__star--3 { animation-delay: 2s; }
}

/* 主頁 3 格 banner：電腦版同 header（logo 至主目錄掣）一樣闊 */
@media (min-width: 1280px) {
  .news { padding-left: var(--nav-gutter); padding-right: var(--nav-gutter); }
  .news__list { gap: 32px; }
  .news__list .shop-reg__body { padding: 24px; gap: 12px; }
  .news__list .shop-reg__title { font-size: 22px; }
  .news__list .shop-reg__text { font-size: 16px; }
  .news__list .shop-reg__cta { font-size: 18px; padding: 14px 20px; }
}

/* 本地商戶卡新版面（2026-10-18）：頂邊＋整個 tag 用分類色、意見數放 tag 右邊、底部左地圖／網站右社交 */
.lb-card { border-top: 6px solid var(--cat, var(--c-btn-dark)); }
.lb-tag { background: var(--cat, var(--c-btn-dark)); color: #fff; border-left: 0; border-radius: 4px; font-weight: 700; }
.lb-card__head { flex-direction: column; align-items: stretch; gap: 8px; }
.lb-card__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; min-height: 26px; }
.lb-card__more { font-size: 13px; margin-left: auto; }
.lb-card__foot { justify-content: space-between; }
.shop-link--outline { background: transparent; border: 1px solid var(--c-btn-dark); color: var(--c-btn-dark); }
.shop-link--outline:hover { background: var(--c-accent); opacity: 1; }
@media (max-width: 799px) { .lb-card__head { flex-direction: column; align-items: stretch; } }

/* 店名固定預留兩行位，令同一排嘅卡對齊（2026-10-18）；手機一行一張唔使 */
.lb-card__name { min-height: calc(2em * 1.35); }
@media (max-width: 799px) { .lb-card__name { min-height: 0; } }

/* 街坊小店或服務卡（2026-10-18）：卡頂分類色邊 */
.shop-card { border-top: 6px solid var(--cat, var(--c-btn-dark)); }

/* 街坊小店或服務：地區（2026-10-24）—— 店名下面一行、頂部 Tab、分段標題 */
.shop-area { display: flex; align-items: center; gap: 5px; margin: -4px 0 2px; font: 500 13px/1.3 var(--f-body); color: var(--c-label); }
.shop-area svg { flex-shrink: 0; }
.shop-area--out { color: #a3454d; font-weight: 700; }
.shop-modal__head .shop-area { margin: 2px 0 6px; }
.area-tabs { display: flex; flex-wrap: wrap; gap: 4px 28px; border-bottom: 1px solid rgba(103, 78, 68, .3); margin-bottom: -8px; }
.area-tab { background: none; border: 0; padding: 6px 2px 10px; margin-bottom: -1px; border-bottom: 3px solid transparent;
  font: 700 16px var(--f-body); color: var(--c-label); cursor: pointer; }
.area-tab span { font-weight: 500; font-size: 12px; opacity: .7; }
.area-tab:hover { color: var(--c-text); }
.area-tab[aria-pressed="true"] { color: var(--c-text); border-bottom-color: var(--c-btn-dark); }
.shops__group { grid-column: 1 / -1; list-style: none; display: flex; align-items: center; gap: 12px; margin-top: 4px;
  font: 700 18px var(--f-head); color: var(--c-text); }
.shops__group::after { content: ""; flex: 1; height: 1px; background: rgba(103, 78, 68, .3); }
.shops__group span { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 799px) { .area-tabs { gap: 4px 20px; } .area-tab { font-size: 15px; } }

/* ---------- 最新活動：已截止（home.json item "closed": true） ---------- */
.event.is-closed { position: relative; }
.event.is-closed .event__body { opacity: .55; }
.event__cta--closed { min-width: 186px; background: #e9dccb; border-color: #b8a693; cursor: not-allowed; }
.event__stamp {
  position: absolute; top: 50%; right: 93px; transform: translate(50%, -50%) rotate(-10deg);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 20px 6px; border: 4px double #c8432b; border-radius: 10px; color: #c8432b;
  background: rgba(255, 250, 237, .55); pointer-events: none; white-space: nowrap;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 1.9'/%3E%3C/filter%3E%3Crect width='120' height='60' filter='url(%23n)'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 1.9'/%3E%3C/filter%3E%3Crect width='120' height='60' filter='url(%23n)'/%3E%3C/svg%3E");
}
.event__stamp b { font: 900 34px/1 var(--f-head); letter-spacing: 6px; }
.event__stamp small { font: 700 13px/1 var(--f-body); letter-spacing: 3px; }
@media (max-width: 1279px) {
  .event__cta--closed { min-height: 84px; }
  .event__stamp { right: 50%; top: auto; bottom: -6px; transform: translate(50%, 0) rotate(-6deg); }
}

/* ---------- 最新活動：聖誕版 banner（home.json item "style": "xmas"，2026-11-12） ---------- */
.event--xmas { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(180deg, #fdf3e3 0%, var(--c-accent) 100%); }
.event--xmas .event__body { position: relative; z-index: 2; padding-top: 40px; }
.event__awning { position: absolute; left: 0; right: 0; top: 0; height: 22px; z-index: 1;
  background: repeating-linear-gradient(90deg, #f4b9b5 0 28px, #8fcfae 28px 56px);
  -webkit-mask: radial-gradient(14px at 14px 8px, #000 98%, #0000) 0 0 / 28px 22px repeat-x, linear-gradient(#000 0 0) top / 100% 8px no-repeat;
          mask: radial-gradient(14px at 14px 8px, #000 98%, #0000) 0 0 / 28px 22px repeat-x, linear-gradient(#000 0 0) top / 100% 8px no-repeat; }
.event__lights { position: absolute; left: 0; right: 0; top: 18px; height: 16px; z-index: 1; display: flex; justify-content: space-around; padding: 0 12px; pointer-events: none; }
.event__lights::before { content: ""; position: absolute; left: 0; right: 0; top: 2px; border-top: 1.5px solid rgba(31, 90, 76, .55); }
.event__lights i { position: relative; width: 8px; height: 11px; margin-top: 3px; border-radius: 50% 50% 45% 45%; background: var(--bulb, #ffd25e); box-shadow: 0 0 8px 1px var(--bulb, #ffd25e); }
.event__lights i:nth-child(4n+1) { --bulb: #ff6b5e; } .event__lights i:nth-child(4n+2) { --bulb: #ffd25e; }
.event__lights i:nth-child(4n+3) { --bulb: #7fe0b0; } .event__lights i:nth-child(4n) { --bulb: #ff9bd0; }
.event__snow { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden;
  background-image: radial-gradient(4px 4px at 20px 30px, #b7d3e6 50%, transparent 55%), radial-gradient(3px 3px at 80px 75px, #c9dfee 50%, transparent 55%),
    radial-gradient(5px 5px at 140px 20px, #b7d3e6 50%, transparent 55%), radial-gradient(3px 3px at 200px 95px, #c9dfee 50%, transparent 55%),
    radial-gradient(4px 4px at 260px 55px, #b7d3e6 50%, transparent 55%), radial-gradient(3px 3px at 110px 110px, #c9dfee 50%, transparent 55%);
  background-size: 300px 130px; }
/* 大粒雪花（❄ 字）兩層，速度唔同 */
.event__snow::before, .event__snow::after { position: absolute; left: 0; right: 0; top: 0; white-space: pre; text-align: justify; text-align-last: justify; color: #9cc3db; line-height: 1; font-family: "Segoe UI Symbol", "Apple Symbols", "Noto Sans Symbols 2", sans-serif; }
.event__snow::before { content: "\2744\FE0E      \2745\FE0E          \2746\FE0E       \2744\FE0E           \2745\FE0E        \2746\FE0E      \2744\FE0E"; font-size: 18px; padding: 0 4%; opacity: .85; }
.event__snow::after { content: "\2746\FE0E          \2744\FE0E       \2745\FE0E         \2744\FE0E      \2746\FE0E           \2745\FE0E"; font-size: 13px; padding: 0 10%; opacity: .7; }
.event--xmas .event__cta { position: relative; z-index: 2; overflow: hidden; background: #d8433a; border-color: #a8271f; }
.event--xmas .event__cta:hover { background: #a8271f; }
.event--xmas .event__cta::after { content: ""; position: absolute; top: -20%; bottom: -20%; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-18deg); opacity: 0; pointer-events: none; }
.event--xmas .event__title { color: #a8271f; }
@media (max-width: 1279px) { .event--xmas .event__body { padding-top: 44px; } }
@media (prefers-reduced-motion: no-preference) {
  .event__lights i { animation: xmas-twinkle 1.6s ease-in-out infinite; }
  .event__lights i:nth-child(2n) { animation-delay: .8s; }
  @keyframes xmas-twinkle { 50% { opacity: .35; box-shadow: 0 0 2px 0 var(--bulb, #ffd25e); } }
  .event__snow { animation: xmas-snow 8s linear infinite; }
  @keyframes xmas-snow { from { background-position: 0 -130px, 0 -130px, 0 -130px, 0 -130px, 0 -130px, 0 -130px; } to { background-position: 20px 0, -15px 0, 10px 0, -20px 0, 15px 0, -10px 0; } }
  .event__snow::before { animation: xmas-flake 7s linear infinite; }
  .event__snow::after { animation: xmas-flake 10s linear -4s infinite; }
  @keyframes xmas-flake { from { transform: translate(0, -30px); } 50% { transform: translate(12px, 70px); } to { transform: translate(-6px, 170px); } }
  .event--xmas .event__cta::after { animation: xmas-shine 3.6s ease-in-out 1s infinite; }
  @keyframes xmas-shine { 0% { left: -60%; opacity: 0; } 10% { opacity: 1; } 35%, 100% { left: 130%; opacity: 0; } }
  .event--xmas .event__cta span { display: inline-block; animation: xmas-nudge 3.6s ease-in-out 2s infinite; }
  @keyframes xmas-nudge { 0%, 84%, 100% { transform: none; } 88% { transform: translateY(-3px) rotate(-2deg); } 92% { transform: translateY(0) rotate(2deg); } }
  .event--xmas { transition: transform .2s ease, box-shadow .2s ease; }
  .event--xmas:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(74, 46, 30, .15); }
}

/* ---------- 主頁「認識更多」：關於我們下面 3 格（home.json → explore，2026-11-17） ---------- */
.explore { width: 100%; border-top: 0.5px solid var(--c-divider); display: flex; flex-direction: column; align-items: center; gap: 48px; padding: var(--section-pad); }
.explore__list { width: 100%; max-width: 1200px; margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.explore-card { display: flex; flex-direction: column; gap: 12px; padding: 28px 24px 24px; background: var(--c-accent); border: 1px solid rgba(103, 78, 68, .45); border-top: 6px solid var(--ex, var(--c-btn-dark)); border-radius: 8px; min-width: 0; }
.explore-card--events { --ex: #c46a3a; } .explore-card--shops { --ex: #7d8a3c; } .explore-card--local { --ex: #3f5f9e; }
.explore-card__stat { align-self: flex-start; padding: 4px 12px; border-radius: 999px; background: var(--ex); color: #fff; font: 700 14px/1.4 var(--f-body); }
.explore-card__title { font: 700 24px/1.35 var(--f-body); color: var(--c-text); }
.explore-card__text { font-size: 16px; line-height: 1.75; color: var(--c-text); }
.explore-card__cta { margin-top: auto; align-self: stretch; text-align: center; padding: 12px 20px; border: 1px solid var(--c-text); border-radius: 4px; background: var(--c-btn-dark); color: var(--c-white); font: 500 17px var(--f-body); text-decoration: none; transition: background-color .15s ease; }
.explore-card__cta:hover { background: var(--c-text); }
.explore-card__cta span { display: inline-block; margin-left: 6px; transition: transform .2s ease; }
.explore-card__cta:hover span { transform: translateX(4px); }
@media (max-width: 1279px) { .explore { gap: 32px; } .explore__list { grid-template-columns: minmax(0, 1fr); max-width: 680px; gap: 16px; } .explore-card { padding: 22px 20px 20px; } .explore-card__title { font-size: 21px; } }
@media (max-width: 799px) { .explore-card__text { font-size: 15px; } }

/* ---------- 頁頂介紹段落（精彩活動回顧／街坊小店／本地商戶，2026-11-18） ---------- */
.page-intro { width: 100%; max-width: 760px; margin: -8px auto 0; display: flex; flex-direction: column; gap: 12px; }
.page-intro p { font-size: 17px; line-height: 1.8; color: var(--c-text); }
.page-intro p + p { color: var(--c-label); font-size: 16px; }
@media (max-width: 799px) { .page-intro p { font-size: 15.5px; } .page-intro p + p { font-size: 15px; } }
