:root {
  --paper: #fff;
  --ink: #242725;
  --muted: #68706b;
  --line: #dce0dc;
  --red: #ab2538;
  --red-dark: #8b1d2d;
  --green: #315a47;
  --wash: #f3f5f2;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, "PingFang TC", "PingFang SC", "Microsoft JhengHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button, select { cursor: pointer; }
button { color: inherit; border: 0; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}
img { max-width: 100%; display: block; }
svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  flex-shrink: 0;
}
h1, h2, h3, p { margin: 0; }
.container { max-width: 1180px; padding: 0 32px; margin: 0 auto; }
.site-header { height: 78px; border-bottom: 1px solid var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.logo { flex-shrink: 0; }
.logo img, .gate-top img, .footer-top > img { width: 172px; height: 40px; }
.header-inner nav { display: flex; gap: 28px; font-size: 13px; margin-left: auto; }
.header-inner nav a:hover { color: var(--red); }
.nav-active { font-weight: 700; }
.language-select {
  border: 1px solid var(--line);
  background: white;
  border-radius: 3px;
  padding: 10px;
  min-height: 42px;
  max-width: 140px;
  font-size: 13px;
  color: var(--ink);
}
.hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 72px;
  align-items: center;
  padding-top: 42px;
  padding-bottom: 42px;
  border-bottom: 1px solid var(--line);
}
.edition, .eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: .5px;
}
.edition { color: var(--red); margin-bottom: 16px; }
.red-dot { width: 5px; height: 5px; background: var(--red); flex-shrink: 0; }
.hero h1 { font-size: 44px; line-height: 1.13; letter-spacing: -1.6px; font-weight: 700; }
.hero-description { margin-top: 18px; max-width: 440px; font-size: 14px; line-height: 1.75; color: var(--muted); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 700;
}
.primary { color: white; background: var(--red); }
.primary:hover { background: var(--red-dark); }
.hero-copy > .button { margin-top: 22px; }
.cover-frame { position: relative; overflow: hidden; background: #222829; }
.cover-frame > img { width: 100%; height: 300px; object-fit: cover; }
.image-credit { display: none; }
.featured-event {
  width: 100%;
  padding: 16px 0;
  background: transparent;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  gap: 16px;
}
.featured-event:hover h2 { color: var(--red); }
.featured-event .eyebrow { color: var(--red); font-size: 10px; }
.featured-event h2 { font-size: 18px; line-height: 1.4; margin: 5px 0; }
.featured-event p { font-size: 12px; line-height: 1.5; color: var(--muted); }
.featured-event p > span:first-child { display: none; }
.feature-arrow { font-size: 26px; color: var(--muted); }
.visual-caption { display: block; font-size: 10px; color: var(--muted); margin-top: 9px; }
.calendar-section { padding-top: 36px; padding-bottom: 36px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 22px; }
.section-heading .eyebrow { color: var(--muted); margin-bottom: 7px; }
.section-heading h2 { font-size: 26px; letter-spacing: -.5px; line-height: 1.3; }
.section-heading > p { max-width: 360px; font-size: 13px; line-height: 1.7; color: var(--muted); }
.filter-panel { border-block: 1px solid var(--line); padding: 10px 0 12px; }
.year-bar { display: flex; align-items: center; gap: 18px; margin: 0 0 12px; }
.year-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; flex: 0 0 auto; }
.year-switch button { min-width: 68px; min-height: 38px; padding: 8px 12px; background: white; color: var(--muted); font-size: 12px; font-weight: 700; }
.year-switch button + button { border-left: 1px solid var(--line); }
.year-switch button[aria-pressed="true"] { background: var(--ink); color: white; }
#year-status { font-size: 12px; line-height: 1.6; color: var(--muted); }
.brand-filters { display: flex; gap: 4px; overflow: auto; padding-bottom: 10px; }
.brand-chip { padding: 11px 13px; border-radius: 3px; background: transparent; font-size: 12px; white-space: nowrap; min-height: 40px; }
.brand-chip.active { color: white; background: var(--ink); }
.brand-chip:hover:not(.active) { background: var(--wash); }
.filter-tools { display: flex; align-items: center; gap: 16px; border-top: 1px solid var(--line); padding-top: 10px; }
.search-box { display: flex; align-items: center; gap: 10px; flex: 1; color: var(--muted); }
.search-box input { border: 0; min-width: 0; width: 100%; font-size: 13px; padding: 11px 4px; color: var(--ink); background: transparent; }
.month-select { display: flex; align-items: center; gap: 8px; border-left: 1px solid var(--line); padding-left: 18px; }
.month-select svg { width: 16px; }
.month-select select { color: var(--ink); font-size: 13px; border: 0; background: transparent; min-height: 40px; width: 160px; }
.text-button { background: transparent; text-decoration: underline; color: var(--muted); font-size: 12px; min-height: 40px; padding: 8px; }
.results-heading { display: flex; justify-content: space-between; gap: 16px; font-size: 12px; color: var(--muted); margin: 20px 0; }
.results-heading strong { color: var(--ink); }
.month-group { display: grid; grid-template-columns: 116px 1fr; gap: 20px; margin-bottom: 32px; }
.month-label { padding-top: 17px; border-top: 2px solid var(--ink); }
.month-number { font-size: 24px; color: var(--muted); font-variant-numeric: tabular-nums; }
.month-label h3 { font-size: 14px; margin-top: 8px; }
.month-label small { display: block; font-size: 11px; margin-top: 8px; color: var(--muted); }
.event-grid { display: flex; flex-direction: column; border-top: 2px solid var(--ink); }
.event-card {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 160px;
  gap: 0 24px;
  background: transparent;
  border-bottom: 1px solid var(--line);
  padding: 17px 12px;
  text-align: left;
  width: 100%;
  min-width: 0;
}
.event-card:hover { background: var(--wash); }
.event-top { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand-label { display: inline-block; font-size: 10px; font-weight: 700; line-height: 1.4; color: var(--red); }
.brand-ept, .brand-apt { color: var(--green); }
.brand-triton { color: #88662d; }
.brand-pgt { color: #3d6183; }
.event-date { font-size: 12px; color: var(--ink); font-variant-numeric: tabular-nums; }
.event-card h3 { grid-column: 1; font-size: 16px; line-height: 1.45; margin: 8px 0 6px; }
.event-extra { grid-column: 1; font-size: 11px; color: var(--green); line-height: 1.5; margin-bottom: 7px; }
.event-location { grid-column: 1; font-size: 12px; line-height: 1.65; color: var(--muted); }
.event-bottom { grid-column: 2; grid-row: 2 / 5; display: flex; justify-content: flex-end; align-items: center; gap: 16px; }
.event-buyin { font-size: 14px; font-weight: 700; }
.event-buyin small { display: block; margin-bottom: 5px; font-size: 11px; font-weight: 400; color: var(--muted); }
.event-buyin.unlisted { font-size: 11px; font-weight: 400; line-height: 1.5; color: var(--muted); }
.event-arrow { font-size: 24px; color: var(--muted); }
.schedule-note { border-top: 1px solid var(--line); padding-top: 16px; font-size: 11px; line-height: 1.8; color: var(--muted); }
.schedule-note > span { display: none; }
.empty-state { padding: 48px 12px; text-align: center; }
.empty-state > span { display: none; }
.empty-state h3 { font-size: 20px; }
.empty-state p { margin: 12px 0 20px; color: var(--muted); font-size: 13px; }
.highlights-section { border-block: 1px solid var(--line); padding: 32px 0; background: var(--wash); }
.highlights-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.highlight-card { background: transparent; text-align: left; padding: 0 24px; border-left: 1px solid var(--line); }
.highlight-card:first-child { padding-left: 0; border-left: 0; }
.highlight-card:last-child { padding-right: 0; }
.highlight-body { display: flex; flex-direction: column; height: 100%; }
.highlight-body .eyebrow { color: var(--muted); font-size: 10px; }
.highlight-body h3 { font-size: 18px; line-height: 1.4; margin: 8px 0; }
.highlight-body p { font-size: 13px; color: var(--muted); line-height: 1.75; margin-bottom: 16px; }
.highlight-link { margin-top: auto; color: var(--red); font-size: 12px; font-weight: 700; }
.highlight-card:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.about-section { padding-top: 32px; padding-bottom: 32px; }
.about-section .eyebrow { display: none; }
.about-section h2 { font-size: 20px; }
.about-section p { max-width: 800px; font-size: 13px; line-height: 1.8; color: var(--muted); margin-top: 12px; }
.about-section a { display: inline-block; color: var(--red); font-size: 12px; margin-top: 12px; }
footer { border-top: 1px solid var(--line); }
.footer-top { display: flex; align-items: center; gap: 24px; padding-block: 22px; }
.footer-top p { color: var(--muted); font-size: 12px; }
.footer-top a { margin-left: auto; font-size: 12px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-block: 16px 24px; font-size: 10px; color: var(--muted); }
.skip-link { position: fixed; top: 5px; left: 5px; z-index: 50; background: var(--ink); color: white; padding: 10px; transform: translateY(-200%); }
.skip-link:focus { transform: none; }

.gate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--wash); padding: 24px; overflow: auto; }
.gate[hidden] { display: none; }
.gate-card { width: 100%; max-width: 430px; padding: 30px; background: white; border: 1px solid var(--line); border-radius: 4px; }
.gate-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.gate-top img { width: 172px; height: 40px; }
.gate-card > .eyebrow { display: none; }
.gate-card h1 { font-size: 26px; line-height: 1.3; margin-bottom: 12px; }
.gate-card > p { font-size: 13px; line-height: 1.7; color: var(--muted); }
.captcha-row { display: flex; align-items: stretch; gap: 10px; margin: 24px 0 18px; }
.captcha-row canvas { width: calc(100% - 54px); height: 80px; min-width: 0; border: 1px solid var(--line); border-radius: 3px; }
.refresh { width: 44px; border: 1px solid var(--line); border-radius: 3px; background: var(--wash); color: var(--green); font-size: 25px; }
.gate-card label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 8px; }
.gate-card input { border: 1px solid #b8c0b8; width: 100%; min-height: 48px; padding: 12px; font-size: 18px; letter-spacing: 8px; text-transform: uppercase; border-radius: 3px; }
.form-error { font-size: 12px; line-height: 1.5; color: var(--red); min-height: 34px; padding: 8px 0; }
.gate-submit { width: 100%; }
.gate-card > small { display: block; font-size: 11px; color: var(--muted); line-height: 1.6; margin-top: 16px; }
.noscript { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 40px; background: white; }

dialog { border: 1px solid var(--line); border-radius: 4px; background: white; color: var(--ink); padding: 32px; width: calc(100% - 32px); max-width: 580px; max-height: 90vh; max-height: 90dvh; overflow: auto; }
dialog::backdrop { background: #17221cb3; }
.dialog-close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; background: var(--wash); font-size: 24px; border-radius: 3px; }
.detail-brand { margin: 10px 0 14px; }
.detail-title { font-size: 25px; line-height: 1.4; padding-right: 16px; }
.detail-extra { color: var(--green); font-size: 12px; margin-top: 10px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 24px 0; padding: 22px 0; border-block: 1px solid var(--line); }
.detail-grid dt { color: var(--muted); font-size: 11px; margin-bottom: 6px; }
.detail-grid dd { margin: 0; font-size: 14px; line-height: 1.6; }
.detail-grid dd small { display: block; font-size: 11px; color: var(--muted); }
.detail-note { font-size: 12px; line-height: 1.8; color: var(--muted); margin-bottom: 20px; }
.detail-note.alert { padding: 12px; border-left: 3px solid #b49866; background: #f7f3eb; color: #755f3b; }
.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.button.secondary { background: var(--wash); color: var(--green); border: 1px solid var(--line); }
.detail-foot { display: block; margin-top: 18px; font-size: 10px; line-height: 1.7; color: var(--muted); }
.dialog-fallback { display: block; position: fixed; z-index: 150; inset: 5vh 0; margin: auto; box-shadow: 0 0 0 100vmax #17221cb3; }

@media (max-width: 900px) {
  .hero { gap: 32px; }
  .hero h1 { font-size: 36px; }
  .header-inner nav { gap: 18px; }
  .event-card { grid-template-columns: minmax(160px, 1fr) 120px; gap: 0 16px; }
}

@media (max-width: 720px) {
  .container { padding-left: 20px; padding-right: 20px; }
  .site-header { height: 70px; }
  .header-inner { gap: 12px; }
  .header-inner nav { display: none; }
  .header-inner > .language-select { margin-left: auto; }
  .header-inner .logo img { width: 132px; height: auto; }
  .year-bar { align-items: flex-start; flex-direction: column; gap: 8px; }
  .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 28px; padding-bottom: 28px; }
  .hero h1 { font-size: 36px; line-height: 1.15; letter-spacing: -1px; }
  .hero-description { margin-top: 14px; font-size: 14px; }
  .edition { font-size: 10px; margin-bottom: 12px; }
  .cover-frame > img { height: 190px; }
  .featured-event h2 { font-size: 17px; }
  .calendar-section { padding-top: 28px; padding-bottom: 28px; }
  .section-heading { display: block; margin-bottom: 18px; }
  .section-heading h2 { font-size: 24px; }
  .section-heading > p { margin-top: 10px; font-size: 12px; }
  .brand-chip { font-size: 11px; padding: 10px; }
  .filter-tools { flex-wrap: wrap; gap: 6px 10px; }
  .search-box { flex-basis: 100%; border-bottom: 1px solid var(--line); padding-bottom: 5px; }
  .month-select { border-left: 0; padding-left: 0; flex: 1; }
  .month-select select { width: 100%; }
  .results-heading { font-size: 10px; }
  .month-group { display: block; margin-bottom: 24px; }
  .month-label { display: flex; align-items: center; gap: 10px; padding: 12px 0; }
  .month-number { font-size: 22px; }
  .month-label h3 { margin: 0; }
  .month-label small { margin: 0 0 0 auto; font-size: 10px; }
  .event-grid { border-top: 0; }
  .event-card { grid-template-columns: minmax(0, 1fr) 88px; gap: 0 12px; padding: 15px 0; }
  .event-card h3 { font-size: 15px; }
  .event-top { gap: 8px; }
  .event-date { font-size: 11px; }
  .event-buyin { font-size: 13px; }
  .event-buyin small, .event-buyin.unlisted { font-size: 10px; }
  .event-bottom { gap: 10px; }
  .event-location { font-size: 11px; }
  .highlights-section { padding: 28px 0; }
  .highlights-grid { grid-template-columns: 1fr; }
  .highlight-card, .highlight-card:first-child, .highlight-card:last-child { padding: 18px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .highlight-card:first-child { padding-top: 0; }
  .highlight-card:last-child { border-bottom: 0; padding-bottom: 0; }
  .highlight-body h3 { font-size: 18px; }
  .about-section { padding-block: 28px; }
  .footer-top { flex-wrap: wrap; gap: 14px; padding-block: 20px; }
  .footer-top img { width: 90px; height: auto; }
  .footer-top p { width: 100%; order: 2; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .gate { padding: 16px; }
  .gate-card { padding: 24px; }
  .gate-top img { width: 100px; }
  dialog { padding: 26px 22px; }
  .detail-title { font-size: 23px; }
  .detail-grid { gap: 18px 14px; }
}

@media (max-width: 360px) {
  .container { padding-inline: 16px; }
  .hero h1 { font-size: 32px; }
  .gate-card { padding: 20px; }
  .gate-top { gap: 10px; }
  .gate-top img { width: 86px; }
  .language-select { font-size: 12px; max-width: 120px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
