:root {
  --color-bg: #000000;
  --color-gold: #bfa670;
  --color-muted: #b2b3b5;
  --color-line: #766442;
  --color-ink: #000;
  --color-button-ink: #0f0f0e;
  --radius-card: 25px;
  --shadow-card: 0 18px 28px rgba(0,0,0,.58), 0 5px 9px rgba(0,0,0,.32);
  --movie-width: 600px;
  --movie-gap: 20px;
  --motion-duration: 500ms;
  --coupon-width: 249px;
  font-family: "Noto Sans", "Noto Sans TC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--color-muted);
  background: var(--color-bg);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 16px; line-height: 1.65; letter-spacing: .05em; isolation: isolate; background: var(--color-bg); }
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
button { border: 0; padding: 0; background: none; color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--color-gold); outline-offset: 4px; }
button:disabled { cursor: default; }
[aria-disabled="true"] { opacity: .45; cursor: default; }
h1, h2, h3, p { margin: 0; }
h2 { font-size: 25px; font-weight: 700; line-height: 1.4; letter-spacing: .1em; text-align: center; }
h2 > span { color: var(--color-gold); }
.movies h2, .activities h2, .faq h2 { font-size: 25px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 30; padding: 10px 16px; color: var(--color-ink); background: var(--color-gold); transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.container { width: calc(100% - 80px); max-width: 1220px; margin-inline: auto; }
.hero { position: relative; isolation: isolate; width: 100%; max-width: 2048px; margin-inline: auto; aspect-ratio: 2880 / 1688; background: #000; }
.hero-poster, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-poster img { width: 100%; height: 100%; object-fit: cover; }
.hero-video { object-fit: cover; opacity: 0; pointer-events: none; }
.hero-video.is-playing { opacity: 1; }
.hero-starting .hero-poster, .hero-starting .hero-overlay { visibility: hidden; }
.hero-overlay { position: absolute; pointer-events: none; }
.hero-overlay img { width: 100%; }
.hero-legal, .hero-title, .hero-ann { opacity: var(--hero-reveal, 1); }
.hero-legal { width: 29.2361%; top: 14.0995%; left: 49.5486%; transform: translateX(-50%); }
.hero-title { width: 39.9306%; top: 23.6967%; left: 50%; transform: translateX(-50%); }
.hero-ann { width: 5.5556%; top: 3.8507%; left: 2.2569%; }
.coupon { position: absolute; z-index: 10; width: var(--coupon-width); left: 50%; bottom: 72px; transform: translateX(-50%); border-radius: 50px; }
.coupon img, .guide img { width: 100%; }
.movies { padding-top: 140px; background: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.72) 28%, rgba(0,0,0,.28) 65%, transparent 100%) top / 100% calc(221.5px + var(--movie-width) * 730 / 2400) no-repeat; }
.movies h2 { margin-bottom: 46.5px; }
.carousel-viewport { overflow: hidden; padding-top: 24px; margin-top: -24px; padding-bottom: 59px; margin-bottom: -24px; touch-action: pan-y pinch-zoom; }
.carousel-track { display: flex; gap: var(--movie-gap); margin-left: calc(50% - var(--movie-width) / 2); width: max-content; transition: transform var(--motion-duration) ease-in-out; will-change: transform; }
.movie-card { flex: 0 0 var(--movie-width); width: var(--movie-width); height: calc(var(--movie-width) * 730 / 1200); aspect-ratio: 1200 / 730; filter: drop-shadow(0 14px 12px rgba(0,0,0,.72)); }
.movie-card picture { height: 100%; }
.movie-card img { width: 100%; height: 100%; object-fit: contain; }
.static-movies { display: flex; gap: var(--movie-gap); overflow-x: auto; padding: 16px 0 40px; }
.carousel-controls { display: flex; justify-content: center; align-items: center; gap: 12px; height: 50px; }
.arrow { flex: 0 0 50px; width: 50px; height: 50px; border-radius: 50%; }
.arrow:focus-visible { outline: 2px solid var(--color-gold); outline-offset: 4px; }
.arrow:focus:not(:focus-visible) { outline: none; }
.guide { width: 173.5px; flex: 0 1 173.5px; min-width: 0; border-radius: 50px; }
.coupon, .guide, .arrow { filter: drop-shadow(0 9px 8px rgba(0,0,0,.7)); }
.dialog-links a { box-shadow: 0 6px 10px rgba(0,0,0,.4); }
.activities { margin-top: 140px; }
.activities h2, .faq h2 { margin-bottom: 46.5px; }
.activity-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--movie-gap); }
.activity-card { min-height: 490.5px; min-width: 0; border-radius: var(--radius-card); box-shadow: var(--shadow-card); color: var(--color-ink); }
.activity-mask { border-radius: var(--radius-card); overflow: hidden; background: var(--color-gold); height: 100%; display: flex; flex-direction: column; }
.activity-photo { border-radius: var(--radius-card); overflow: hidden; aspect-ratio: 1200 / 546; flex-shrink: 0; }
.activity-photo img { width: 100%; height: 100%; object-fit: cover; object-position: var(--activity-position, 50% 50%); }
.activity-card:nth-child(2) .activity-photo { --activity-position: 50% 50%; }
.activity-copy { padding: 20px; display: flex; flex: 1; flex-direction: column; align-items: flex-start; min-height: 217.5px; overflow-wrap: anywhere; }
.eyebrow { font-family: "Noto Sans TC", sans-serif; font-size: 14px; font-weight: 700; line-height: 1.5; letter-spacing: 0; }
.activity-copy h3 { font-family: "Noto Sans TC", sans-serif; font-size: 20px; font-weight: 700; line-height: 1.4; letter-spacing: 0; margin-bottom: 12px; }
.activity-copy > p:not(.eyebrow) { margin-bottom: 12px; }
.read-rules { font-size: 14px; font-weight: 400; line-height: 1.25; margin-top: auto; padding: 6px 12px; min-height: 32px; border-radius: 999px; background: #000000; color: var(--color-gold); }
.fallback-links, .dialog-links { display: flex; flex-direction: column; gap: 8px; }
.fallback-links a, .dialog-links a { display: flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
.faq { margin-top: 140px; padding-bottom: 105px; overflow-wrap: anywhere; }
.faq details { position: relative; }
.faq details::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 0.5px; background: #a18a5d; pointer-events: none; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 60px; padding-block: 12px; color: var(--color-gold); font-size: 16px; font-weight: 700; line-height: 1.6; }
.faq summary::-webkit-details-marker { display: none; }
.faq-arrow { flex: 0 0 26px; display: grid; place-items: center; }
.faq-arrow img { width: 13px; height: 7.5px; }
.faq-arrow .up, details[open] .faq-arrow .down { display: none; }
details[open] .faq-arrow .up { display: block; }
.faq-body { padding: 6px 0 20px; }
.faq-body ol { margin: 0; padding-left: 1.65em; }
.faq-body p { margin-bottom: 12px; }
.faq-body li + li { margin-top: 8px; }
dialog { color: #000; background: var(--color-gold); border: 1px solid var(--color-line); border-radius: var(--radius-card); box-shadow: var(--shadow-card); width: min(480px, calc(100% - 32px)); max-height: 80vh; max-height: 80dvh; padding: 24px; overscroll-behavior: contain; overflow-y: auto; }
dialog::backdrop { background: rgba(0,0,0,.65); }
@media (prefers-reduced-motion: no-preference) {
  dialog[open] { animation: dialog-enter 240ms cubic-bezier(.2,.7,.2,1); }
  dialog[open]::backdrop { animation: dialog-backdrop-enter 240ms ease-out; }
  dialog[open].is-closing { animation: dialog-exit 180ms ease-in forwards; }
  dialog[open].is-closing::backdrop { animation: dialog-exit 180ms ease-in forwards; }
}
@keyframes dialog-exit {
  from { opacity: 1; }
  to { opacity: 0; }
}
@keyframes dialog-enter {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes dialog-backdrop-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}
dialog h2 { color: #000; font-size: 20px; line-height: 28px; text-align: left; letter-spacing: 0; padding-right: 40px; margin-bottom: 24px; }
.dialog-close { position: absolute; top: 16px; right: 10px; width: 44px; height: 44px; display: grid; place-items: center; }
.dialog-links { color: var(--color-gold); }
.dialog-links { gap: 12px; }
.dialog-links a { background: #000 url("../images/dialog-button.svg") center / 100% 100% no-repeat; justify-content: center; min-height: 52px; padding: 12px 20px; border: 1px solid var(--color-gold); border-radius: 12px; text-align: center; text-decoration: none; font-weight: 400; line-height: 1.5; transition: background-color 160ms ease, color 160ms ease; }
@media (hover: hover) and (pointer: fine) {
  .dialog-links a:hover { background-color: #000; color: #fff; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .container { width: calc(100% - 64px); }
}
@media (max-width: 767px) {
  :root { --movie-width: min(300px, 77vw); --coupon-width: min(249px, calc(100vw - 32px)); }
  .movie-card { height: calc(var(--movie-width) * 730 / 600); aspect-ratio: 600 / 730; }
  .container { width: calc(100% - 70px); }
  dialog { width: calc(100% - 70px); }
  /* Match the reference on one shared mobile artwork coordinate system. */
  .hero { --hero-art-width: min(100vw, calc((max(560px, 100svh) - 100px) * 0.65)); --hero-scene-top: calc(50% - var(--hero-art-width) * 1.127); height: 100svh; min-height: 560px; aspect-ratio: auto; overflow: hidden; }
  .hero-poster, .hero-video { top: var(--hero-scene-top); bottom: auto; left: 50%; width: var(--hero-art-width); height: calc(var(--hero-art-width) * 2.164103); transform: translateX(-50%); }
  .hero-legal { width: calc(var(--hero-art-width) * 0.948718); top: 0; left: 50%; }
  .hero-ann { width: calc(var(--hero-art-width) * 0.153846); top: calc(var(--hero-art-width) * 0.171795); left: calc(50% - var(--hero-art-width) * 0.435897); transform: none; }
  .hero-title { width: calc(var(--hero-art-width) * 0.9); top: calc(var(--hero-scene-top) + var(--hero-art-width) * 0.561538); left: 50%; transform: translateX(-50%); }
  .coupon { bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
  .movies { padding-top: 140px; background-size: 100% calc(221.5px + var(--movie-width) * 730 / 1200); }
  .movies h2 { margin-bottom: 46.5px; }
  .carousel-controls { gap: 12px; }
  .activities { margin-top: 140px; }
  .activities h2, .faq h2 { margin-bottom: 46.5px; }
  .activity-grid { grid-template-columns: minmax(0,1fr); }
  .activity-photo { aspect-ratio: 640 / 460; }
  .activity-card:nth-child(2) .activity-photo { --activity-position: 50% 50%; }
  .activity-copy { padding: 18px; min-height: 0; }
  .faq { margin-top: 140px; padding-bottom: 105px; }
}
@media (max-width: 359px) {
  h2 { font-size: 22px; }
  .carousel-controls { gap: 12px; padding-inline: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
  .carousel-track { transition: none; }
}


dialog :focus-visible { outline: none; }

@media (min-width: 768px) {
  .hero { height: 844px; aspect-ratio: auto; overflow: hidden; }
  .hero-legal { width: 421px; top: 119px; left: calc(50% - 6.5px); }
  .hero-title { width: 575px; top: 200px; left: 50%; }
  .hero-title img { aspect-ratio: 1150 / 965; }
  .hero-ann { width: 80px; top: 32.5px; left: 2.2569%; }
  .coupon { bottom: 72px; }
  .hero-ann.is-colliding { visibility: hidden; }
}


/* Scale the desktop hero and its overlays together beyond the 1440px layout. */
@media (min-width: 1440px) {
  .hero { height: auto; aspect-ratio: 2880 / 1688; }
  .hero-legal { width: 29.2361%; top: 14.0995%; left: 49.5486%; }
  .hero-title { width: 39.9306%; top: 23.6967%; }
  .hero-ann { top: 3.8507%; }
  .coupon { bottom: 8.5308%; }
}

.carousel-viewport { cursor: grab; touch-action: pan-y; user-select: none; }
.carousel-viewport.is-dragging { cursor: grabbing; }
@media (max-width: 767px) {
  .carousel-viewport { overflow-x: auto; touch-action: pan-x pan-y pinch-zoom; overscroll-behavior-x: contain; scrollbar-width: none; }
  .carousel-viewport::-webkit-scrollbar { display: none; }
}

/* 2026-09-18 XD: organizer columns, film partners, original-size sponsor strip. */
.partners { padding: 70px 0 60px; background: #fff; color: #282e3a; text-align: center; }
.partners h2 { font-size: 16px; line-height: 22px; letter-spacing: .05em; }
.organizers { display: grid; grid-template-columns: repeat(3, 230px); justify-content: center; column-gap: min(68px, 4vw); }
.organizers picture { width: 230px; margin-top: 0; }
.distributors { margin-top: 33px; }
.distributors p { margin-top: 12px; font-size: 14px; letter-spacing: .1em; line-height: inherit; }
.sponsors { margin-top: 40px; }
.sponsor-strip { scrollbar-width: none; overflow-x: auto; overscroll-behavior-x: contain; margin-top: 0; }
.sponsor-strip::-webkit-scrollbar { display: none; }
.sponsor-strip picture { width: 3133px; max-width: none; }
.sponsor-strip img { width: 100%; max-width: none; }
@media (max-width: 767px) {
  .organizers { grid-template-columns: 230px; row-gap: 0; }
  .organizers > div { min-height: 135px; }
  .distributors { margin-top: 35px; }
  .sponsors { margin-top: 40px; }
  .partners { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
}

.sponsor-track { display: flex; width: max-content; animation: sponsor-marquee 65s linear infinite; }
.sponsor-track picture { flex: 0 0 3133px; }
@keyframes sponsor-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .sponsor-track { animation: none; }
  .sponsor-track picture[aria-hidden="true"] { display: none; }
}

/* Keep the approved hero composition, extending only the surrounding darkness. */
@media (min-width: 2049px) {
  .hero {
    overflow: visible;
    --edge-shade: #000;
    --edge-fade: min(64px, calc((100vw - 2048px) / 2));
  }
  .hero::before, .hero::after { content: ""; position: absolute; pointer-events: none; background: var(--edge-shade); }
  .hero::before { inset: 0; box-shadow: 0 0 0 100vmax #000; clip-path: inset(0 -100vmax); z-index: -1; }
  .hero::after {
    inset: 0;
    z-index: 2;
    mask-image: linear-gradient(to right, #000, transparent var(--edge-fade), transparent calc(100% - var(--edge-fade)), #000);
    -webkit-mask-image: linear-gradient(to right, #000, transparent var(--edge-fade), transparent calc(100% - var(--edge-fade)), #000);
  }
}
