/* 竹山開飯了 V3 — 動態互動作品檔案 */

.zs-page {
  --zs-paper: #f7f6f2;
  --zs-white: #ffffff;
  --zs-ink: #111111;
  --zs-muted: #5c5a54;
  --zs-warm: #8a8882;
  --zs-rule: #d8d6d0;
  --zs-accent: #3d4a3a;
  --zs-max: 720px;
  --zs-wide: 960px;
  --zs-serif: "Noto Serif TC", "Source Han Serif TC", "PingFang TC", serif;
  --zs-sans: "Noto Sans TC", "PingFang TC", -apple-system, BlinkMacSystemFont, sans-serif;
  --zs-ease: cubic-bezier(.22, .61, .36, 1);
}

.zs-page {
  margin: 0;
  padding: 0;
  font-family: var(--zs-sans);
  font-size: 16px;
  line-height: 1.85;
  color: var(--zs-ink);
  background: var(--zs-paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.zs-page img,
.zs-page video,
.zs-page canvas {
  max-width: 100%;
  display: block;
  height: auto;
}

.zs-page a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.zs-page a:hover {
  opacity: 0.72;
}

.zs-page :focus-visible {
  outline: 2px solid var(--zs-ink);
  outline-offset: 3px;
}

.zs-page [hidden] {
  display: none !important;
}

.zs-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 8px 16px;
  background: var(--zs-ink);
  color: var(--zs-white);
  z-index: 100;
}

.zs-skip:focus {
  left: 16px;
  top: 16px;
}

.zs-shell {
  max-width: var(--zs-wide);
  margin: 0 auto;
  padding: 0 20px 96px;
  overflow-x: hidden;
}

/* Fiber texture — abstract, very faint */
.zs-fiber {
  position: relative;
  overflow-x: hidden;
}

.zs-fiber::before {
  content: "";
  position: absolute;
  inset: -24px -40px;
  pointer-events: none;
  opacity: 0.045;
  background-image:
    repeating-linear-gradient(
      92deg,
      transparent 0 18px,
      #3d4a3a 18.5px,
      transparent 19px 46px
    ),
    repeating-linear-gradient(
      8deg,
      transparent 0 34px,
      #8a8882 34.6px,
      transparent 35px 70px
    );
  -webkit-mask-image: radial-gradient(ellipse at 30% 20%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse at 30% 20%, #000 0%, transparent 72%);
  z-index: 0;
}

.zs-fiber > * {
  position: relative;
  z-index: 1;
}

/* Reveal */
.zs-reveal.is-pending,
.zs-reveal-child.is-pending,
.zs-hero-anim.is-pending {
  opacity: 0;
  transform: translateY(16px);
}

.zs-reveal.is-in,
.zs-reveal-child.is-in,
.zs-hero-anim.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 800ms var(--zs-ease), transform 800ms var(--zs-ease);
}

.zs-hero-anim.is-in[data-hero-delay="520"] img {
  transform: none;
}

.zs-hero-anim.is-pending[data-hero-delay="520"] img {
  transform: scale(1.015);
  opacity: 0;
}

.zs-hero-anim.is-in[data-hero-delay="520"] img {
  opacity: 1;
  transform: scale(1);
  transition: opacity 900ms var(--zs-ease), transform 900ms var(--zs-ease);
}

/* Hero */
.zs-hero {
  padding: 48px 0 40px;
}

.zs-hero--text-only {
  padding-bottom: 8px;
}

.zs-hero__text {
  max-width: var(--zs-max);
}

.zs-hero__title {
  margin: 0;
  font-family: var(--zs-serif);
  font-weight: 600;
  font-size: clamp(2rem, 6vw, 2.75rem);
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.zs-hero__subtitle {
  margin: 12px 0 0;
  font-family: var(--zs-serif);
  font-weight: 500;
  font-size: clamp(1.125rem, 3.5vw, 1.375rem);
  line-height: 1.45;
  color: var(--zs-muted);
}

.zs-hero__meta {
  margin: 28px 0 0;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--zs-warm);
}

.zs-hero__materials {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--zs-muted);
}

.zs-hero__tags {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--zs-warm);
}

.zs-hero__quote {
  margin: 32px 0 0;
  padding: 0;
  border: none;
  font-family: var(--zs-serif);
  font-size: clamp(1.0625rem, 2.8vw, 1.25rem);
  line-height: 1.65;
  color: var(--zs-ink);
}

.zs-hero__figure {
  margin: 40px 0 0;
  max-width: var(--zs-wide);
  overflow: hidden;
}

.zs-hero__figure img {
  width: 100%;
  background: var(--zs-white);
  border: 1px solid var(--zs-rule);
  will-change: transform;
}

.zs-hero__caption {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--zs-warm);
}

/* Sections */
.zs-section {
  padding: 56px 0 0;
  max-width: var(--zs-max);
}

.zs-section--wide {
  max-width: var(--zs-wide);
}

.zs-section__label {
  margin: 0 0 20px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--zs-warm);
}

.zs-section__title {
  margin: 0 0 24px;
  font-family: var(--zs-serif);
  font-weight: 600;
  font-size: 1.375rem;
  line-height: 1.35;
}

.zs-section__lead {
  margin: 0 0 20px;
  color: var(--zs-muted);
}

.zs-prose p {
  margin: 0 0 1.25em;
}

.zs-prose p:last-child {
  margin-bottom: 0;
}

.zs-rule {
  border: none;
  border-top: 1px solid var(--zs-rule);
  margin: 56px 0 0;
}

/* Interactions */
.zs-interactions {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--zs-rule);
  margin-top: 8px;
}

.zs-interaction {
  border-bottom: 1px solid var(--zs-rule);
  padding: 24px 0;
  transition: border-color 400ms var(--zs-ease);
}

.zs-interaction__name {
  margin: 0;
  font-family: var(--zs-serif);
  font-size: 1.125rem;
  font-weight: 500;
  transition: transform 400ms var(--zs-ease);
}

.zs-interaction__hint {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--zs-muted);
}

.zs-interaction__body {
  margin: 16px 0 0;
  font-size: 15px;
  color: var(--zs-muted);
}

.zs-interactions__note {
  margin: 28px 0 0;
  font-family: var(--zs-serif);
  font-size: 15px;
  line-height: 1.7;
  color: var(--zs-muted);
  text-align: center;
}

@media (hover: hover) {
  .zs-interaction:hover {
    border-bottom-color: var(--zs-ink);
  }

  .zs-interaction:hover .zs-interaction__name {
    transform: translateY(-2px);
  }
}

@media (min-width: 760px) {
  .zs-interactions {
    grid-template-columns: repeat(3, 1fr);
    border-left: 1px solid var(--zs-rule);
  }

  .zs-interaction {
    border-right: 1px solid var(--zs-rule);
    padding: 28px 20px;
  }
}

/* Buttons */
.zs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  appearance: none;
  border: 1px solid var(--zs-ink);
  background: var(--zs-ink);
  color: var(--zs-white);
  font-family: inherit;
  font-size: 14px;
  letter-spacing: 0.04em;
  padding: 12px 28px;
  text-decoration: none;
  cursor: pointer;
}

.zs-btn:hover {
  opacity: 0.85;
}

.zs-btn-ghost {
  background: transparent;
  color: var(--zs-ink);
}

.zs-btn-link {
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  min-height: 44px;
  font-family: inherit;
  font-size: 14px;
  color: var(--zs-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.zs-btn:disabled {
  background: transparent;
  color: var(--zs-warm);
  border-color: var(--zs-rule);
  cursor: not-allowed;
}

.zs-wish-cta {
  margin-top: 8px;
}

.zs-form-note {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--zs-warm);
  line-height: 1.65;
}

/* Wishes */
.zs-wishes__count {
  margin: 0 0 24px;
  font-size: 14px;
  color: var(--zs-muted);
}

.zs-wishes__count strong {
  font-weight: 500;
  color: var(--zs-ink);
}

.zs-wishes__display {
  min-height: 140px;
}

.zs-wishes__quote {
  margin: 0;
  padding: 32px 0;
  border-top: 1px solid var(--zs-rule);
  border-bottom: 1px solid var(--zs-rule);
  font-family: var(--zs-serif);
  font-size: clamp(1.0625rem, 2.5vw, 1.1875rem);
  line-height: 1.75;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 900ms var(--zs-ease), transform 900ms var(--zs-ease);
}

.zs-wishes__quote.is-visible {
  opacity: 1;
  transform: none;
}

.zs-wishes__quote p {
  margin: 0;
}

.zs-wishes__meta {
  margin-top: 12px;
  font-family: var(--zs-sans);
  font-size: 12px;
  color: var(--zs-warm);
  font-style: normal;
}

.zs-wishes__empty {
  margin: 0;
  padding: 24px 0;
  font-size: 14px;
  color: var(--zs-warm);
  border-top: 1px solid var(--zs-rule);
  border-bottom: 1px solid var(--zs-rule);
}

.zs-wishes__skeleton {
  height: 1px;
  background: var(--zs-rule);
  margin: 40px 0;
  opacity: 0.6;
}

/* Stats */
.zs-stats {
  margin-top: 40px;
  padding-top: 8px;
}

.zs-stats__grid {
  display: grid;
  gap: 24px 20px;
}

@media (min-width: 600px) {
  .zs-stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.zs-stats__item {
  border-top: 1px solid var(--zs-rule);
  padding-top: 16px;
}

.zs-stats__value {
  font-family: var(--zs-serif);
  font-size: 1.5rem;
  line-height: 1.2;
}

.zs-stats__label {
  margin-top: 6px;
  font-size: 13px;
  color: var(--zs-warm);
}

.zs-bars {
  margin-top: 36px;
}

.zs-bars__title {
  margin: 0 0 16px;
  font-family: var(--zs-serif);
  font-size: 15px;
  font-weight: 500;
}

.zs-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 3.5em;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
  font-size: 13px;
}

.zs-bar__label {
  color: var(--zs-muted);
}

.zs-bar__track {
  grid-column: 1 / -1;
  height: 4px;
  background: var(--zs-rule);
}

.zs-bar__fill {
  height: 4px;
  background: var(--zs-accent);
  width: 0;
  transition: width 900ms var(--zs-ease);
}

.zs-bar__n {
  text-align: right;
  color: var(--zs-ink);
  font-variant-numeric: tabular-nums;
}

/* Wish card */
.zs-card-label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--zs-muted);
}

.zs-card-input {
  width: 100%;
  max-width: 100%;
  font-family: var(--zs-serif);
  font-size: 16px;
  line-height: 1.7;
  color: var(--zs-ink);
  background: var(--zs-white);
  border: 1px solid var(--zs-rule);
  padding: 14px 16px;
  resize: vertical;
  min-height: 96px;
}

.zs-card-count {
  margin: 8px 0 20px;
  font-size: 12px;
  color: var(--zs-warm);
}

.zs-card-result {
  margin-top: 32px;
}

.zs-card-result canvas {
  width: 100%;
  max-width: 360px;
  height: auto;
  border: 1px solid var(--zs-rule);
  background: var(--zs-paper);
}

.zs-card-text {
  margin: 16px 0 0;
  font-family: var(--zs-serif);
  font-size: 15px;
  color: var(--zs-muted);
}

.zs-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

/* Process */
.zs-process-grid {
  display: grid;
  gap: 32px 24px;
}

@media (min-width: 600px) {
  .zs-process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.zs-process-item {
  margin: 0;
}

.zs-process-item__num {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--zs-warm);
  margin-bottom: 8px;
}

.zs-process-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--zs-white);
  border: 1px solid var(--zs-rule);
  transition: transform 500ms var(--zs-ease);
}

@media (hover: hover) {
  .zs-process-item img:hover {
    transform: scale(1.015);
  }
}

.zs-process-item figcaption {
  margin-top: 10px;
  font-size: 14px;
  color: var(--zs-muted);
}

.zs-video {
  margin-top: 40px;
}

.zs-video__player {
  width: 100%;
  background: var(--zs-ink);
}

/* Venue */
.zs-venue__figure {
  margin: 0 0 24px;
  overflow: hidden;
}

.zs-venue__figure img {
  width: 100%;
  border: 1px solid var(--zs-rule);
  will-change: transform;
}

.zs-venue-quiet {
  margin: 20px 0 0;
  font-size: 12px;
  line-height: 1.6;
}

.zs-venue-quiet a {
  color: var(--zs-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--zs-rule);
}

.zs-venue-quiet a:hover {
  color: var(--zs-ink);
}

/* Moments */
.zs-moments {
  columns: 1;
  column-gap: 24px;
}

@media (min-width: 760px) {
  .zs-moments {
    columns: 2;
  }
}

.zs-moment {
  break-inside: avoid;
  margin: 0 0 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--zs-rule);
}

.zs-moment img {
  width: 100%;
  margin-bottom: 12px;
  border: 1px solid var(--zs-rule);
}

.zs-moment p {
  margin: 0;
  font-family: var(--zs-serif);
  font-size: 15px;
}

.zs-moment__meta {
  margin-top: 8px;
  font-size: 12px;
  color: var(--zs-warm);
}

.zs-moment a {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
}

/* Share */
.zs-share {
  font-size: 15px;
  color: var(--zs-muted);
}

.zs-share__tag {
  margin: 12px 0 20px;
  font-family: var(--zs-serif);
  font-size: 15px;
  color: var(--zs-ink);
}

/* Credits */
.zs-credits {
  margin: 0;
  padding: 0;
  font-size: 14px;
  line-height: 1.85;
}

.zs-credits dt {
  margin: 0;
  padding-top: 12px;
  color: var(--zs-warm);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.zs-credits dt:first-of-type {
  padding-top: 0;
}

.zs-credits dd {
  margin: 4px 0 0;
  padding-bottom: 12px;
  color: var(--zs-ink);
  border-bottom: 1px solid var(--zs-rule);
}

.zs-credits dd:last-of-type {
  border-bottom: none;
}

.zs-credits a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--zs-rule);
}

.zs-credits a:hover {
  color: var(--zs-muted);
}

@media (min-width: 600px) {
  .zs-credits {
    display: grid;
    grid-template-columns: 9em 1fr;
    column-gap: 16px;
  }

  .zs-credits dt,
  .zs-credits dd {
    padding-top: 12px;
    padding-bottom: 12px;
    margin: 0;
    border-bottom: 1px solid var(--zs-rule);
  }

  .zs-credits dt:first-of-type,
  .zs-credits dd:first-of-type {
    padding-top: 0;
  }

  .zs-credits dt:nth-last-of-type(1),
  .zs-credits dd:last-of-type {
    border-bottom: none;
  }
}

.zs-section--quiet .zs-section__title {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 12px;
}

.zs-related {
  margin: 0;
}

.zs-related__group {
  padding: 16px 0;
  border-top: 1px solid var(--zs-rule);
}

.zs-related__group:last-child {
  padding-bottom: 0;
}

.zs-related__kicker {
  margin: 0 0 4px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--zs-warm);
}

.zs-related__name {
  margin: 0 0 4px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--zs-ink);
}

.zs-related__addr {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--zs-warm);
}

.zs-related__links {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.zs-related__links a {
  font-size: 12px;
  color: var(--zs-muted);
  text-decoration: none;
  border-bottom: none;
}

.zs-related__links a:hover {
  color: var(--zs-ink);
}

.zs-outcomes dl {
  margin: 0;
  font-size: 14px;
}

.zs-outcomes dt {
  color: var(--zs-warm);
  font-size: 12px;
  margin-top: 16px;
}

.zs-outcomes dd {
  margin: 4px 0 0;
}

.zs-foot-block {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--zs-rule);
  max-width: var(--zs-max);
  font-size: 13px;
  color: var(--zs-warm);
}

.zs-foot-block__credit {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--zs-muted);
}

.zs-foot-block a {
  color: var(--zs-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--zs-rule);
}

.zs-foot {
  margin-top: 24px;
  font-size: 12px;
  line-height: 1.65;
}

/* Passing thought / reaction stage */
.zs-stage {
  position: relative;
  height: 148px;
  overflow: hidden;
  margin: 0 0 28px;
  border-top: 1px solid var(--zs-rule);
  border-bottom: 1px solid var(--zs-rule);
}

@media (min-width: 760px) {
  .zs-stage {
    height: 184px;
  }
}

.zs-danmaku {
  position: absolute;
  left: 100%;
  max-width: none;
  font-family: var(--zs-serif);
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  pointer-events: none;
  color: var(--zs-ink);
}

.zs-danmaku.is-drift {
  animation: zs-drift var(--zs-dur, 9s) linear forwards;
}

.zs-danmaku.is-fade {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  white-space: normal;
  max-width: 86%;
  text-align: center;
  animation: zs-fade-pass 3.2s ease forwards;
}

@keyframes zs-drift {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-100% - 100vw)); }
}

@keyframes zs-fade-pass {
  0% { opacity: 0; }
  14% { opacity: 0.78; }
  78% { opacity: 0.78; }
  100% { opacity: 0; }
}

.zs-live-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.zs-thought-actions {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin: 8px 0 32px;
}

.zs-thought-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.zs-thought-hint,
.zs-thought-soon,
.zs-thought-status {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.65;
  color: var(--zs-warm);
  max-width: 28em;
}

.zs-thought-status {
  color: var(--zs-muted);
}

.zs-quick__lead {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--zs-muted);
}

.zs-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}

.zs-quick button {
  appearance: none;
  background: none;
  border: none;
  border-bottom: 1px solid var(--zs-rule);
  border-radius: 0;
  padding: 10px 0;
  min-height: 44px;
  font-family: inherit;
  font-size: 13px;
  color: var(--zs-muted);
  cursor: pointer;
}

.zs-quick button:hover {
  color: var(--zs-ink);
}

.zs-video__poster {
  appearance: none;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 1px solid var(--zs-rule);
  background: var(--zs-ink);
  cursor: pointer;
  color: var(--zs-white);
  font-family: inherit;
  font-size: 14px;
  min-height: 180px;
}

.zs-video__poster img {
  width: 100%;
  height: auto;
}

.zs-video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .zs-reveal.is-pending,
  .zs-reveal-child.is-pending,
  .zs-hero-anim.is-pending,
  .zs-hero-anim.is-pending[data-hero-delay="520"] img {
    opacity: 1;
    transform: none;
  }

  .zs-reveal.is-in,
  .zs-reveal-child.is-in,
  .zs-hero-anim.is-in,
  .zs-hero-anim.is-in[data-hero-delay="520"] img,
  .zs-wishes__quote,
  .zs-bar__fill,
  .zs-process-item img,
  .zs-danmaku.is-drift {
    transition: none;
    animation: none;
  }
}
