:root {
  --blue: #12304a;
  --blue-light: #1d476a;
  --gold: #c9a24a;
  --paper: #f8f6ef;
  --white: #ffffff;
  --text: #17202a;
  --muted: #596573;
  --line: rgba(18, 48, 74, 0.14);
  --shadow: 0 22px 60px rgba(18, 48, 74, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: only light;
  color: var(--text);
  background: var(--paper);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  scroll-behavior: smooth;
}

body {
  position: relative;
  isolation: isolate;
  min-width: 320px;
  margin: 0;
  background: #fbfbfa;
}

.poster-backdrop {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  background: #fbfbfa;
  color-scheme: only light;
  forced-color-adjust: none;
  pointer-events: none;
}

.poster-backdrop-art {
  width: 100%;
  height: 100%;
  forced-color-adjust: none;
}

.poster-stars {
  fill: #dfe6ed !important;
  opacity: 0.42;
}

.poster-hill-back {
  display: none;
}

.poster-hill {
  display: none;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 8px;
}

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

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

.brand-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.brand-text {
  font-size: 0.95rem;
  font-weight: 700;
}

.language-switcher {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  color: var(--blue);
}

.language-icon {
  position: absolute;
  left: 13px;
  z-index: 1;
  font-size: 1rem;
  line-height: 1;
  pointer-events: none;
}

.language-switcher select {
  min-width: 142px;
  min-height: 46px;
  padding: 9px 34px 9px 38px;
  border: 1px solid rgba(18, 48, 74, 0.24);
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.92);
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 750;
  outline: none;
  cursor: pointer;
}

.language-switcher select:hover {
  border-color: rgba(18, 48, 74, 0.48);
}

.language-switcher select:focus-visible {
  border-color: var(--gold);
  outline: 3px solid rgba(201, 162, 74, 0.24);
  outline-offset: 2px;
}

.hero {
  padding: 32px 16px 18px;
  text-align: center;
}

.hero-content {
  width: min(860px, 100%);
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  color: var(--blue);
  font-size: clamp(2.35rem, 12vw, 4.8rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.event-title-image {
  display: grid;
  justify-items: center;
}

.event-title-image img {
  width: min(100%, 760px);
  height: auto;
}

.subtitle {
  margin-bottom: 16px;
  color: var(--blue);
  font-size: clamp(1.18rem, 4vw, 1.65rem);
  font-weight: 700;
}

.intro {
  max-width: 690px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.05rem;
}

.calendar-panel {
  width: min(760px, calc(100% - 28px));
  margin: 18px auto 30px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.info-box {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 22px;
  padding: 14px;
  border: 1px solid rgba(201, 162, 74, 0.32);
  border-radius: 8px;
  background: #fffaf0;
}

.info-box p {
  margin-bottom: 0;
  color: var(--blue);
  font-weight: 650;
}

.info-mark {
  display: grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--blue);
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1;
}

.choice-area {
  padding-top: 22px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.choice-area h2,
.how-it-works h2 {
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 1.55rem;
  line-height: 1.15;
}

.device-message {
  min-height: 1.5em;
  margin-bottom: 16px;
  color: var(--muted);
  font-weight: 650;
}

.button-group {
  display: grid;
  gap: 12px;
}

.device-button {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 15px 18px;
  border: 2px solid transparent;
  border-radius: 8px;
  color: var(--white);
  font-size: 1.04rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.device-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(18, 48, 74, 0.18);
}

.device-button.is-recommended {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 162, 74, 0.2), 0 18px 36px rgba(18, 48, 74, 0.2);
}

.device-button-iphone {
  background: var(--blue);
}

.device-button-android {
  background: var(--blue-light);
}

.button-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
}

.button-icon svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.download-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--blue);
  font-weight: 800;
  text-decoration-color: rgba(18, 48, 74, 0.35);
  text-underline-offset: 4px;
}

.download-link:hover {
  color: #0b2237;
  text-decoration-color: currentColor;
}

.calendar-alternative {
  max-width: 620px;
  margin: 24px auto 0;
  color: var(--muted);
  line-height: 1.65;
  text-wrap: pretty;
}

.view-calendar-link {
  display: flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 16px auto 0;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(201, 162, 74, 0.14);
  color: var(--blue);
  font-size: 0.94rem;
  font-weight: 800;
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease;
}

.view-calendar-link:hover {
  background: rgba(201, 162, 74, 0.26);
  transform: translateY(2px);
}

.events-section {
  width: min(1180px, calc(100% - 28px));
  margin: 52px auto 44px;
  scroll-margin-top: 24px;
}

.events-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.events-heading .eyebrow {
  margin-bottom: 7px;
}

.events-heading h2 {
  margin-bottom: 8px;
  color: var(--blue);
  font-size: clamp(2rem, 7vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.035em;
}

.events-intro {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.events-total {
  display: grid;
  flex: 0 0 auto;
  min-width: 104px;
  min-height: 104px;
  place-content: center;
  border: 1px solid rgba(201, 162, 74, 0.35);
  border-radius: 50%;
  background: #fffaf0;
  color: var(--blue);
  text-align: center;
}

.events-total strong {
  font-size: 2rem;
  line-height: 1;
}

.events-total span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.events-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 36px rgba(18, 48, 74, 0.08);
}

.search-field,
.month-field {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: center;
}

.search-field svg {
  position: absolute;
  left: 14px;
  width: 20px;
  height: 20px;
  fill: var(--muted);
  pointer-events: none;
}

.search-field input,
.month-field select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--text);
  outline: none;
}

.search-field input {
  padding: 10px 14px 10px 44px;
}

.month-field select {
  padding: 10px 38px 10px 14px;
}

.search-field input:focus,
.month-field select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 74, 0.18);
}

.view-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 10px;
  background: rgba(18, 48, 74, 0.08);
}

.view-button {
  min-height: 40px;
  padding: 7px 13px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.view-button.is-active {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 5px 14px rgba(18, 48, 74, 0.18);
}

.events-results-bar {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 2px 8px;
}

.events-results-bar p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.reset-button {
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.events-grid {
  display: grid;
  gap: 14px;
}

.event-card {
  position: relative;
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 30px rgba(18, 48, 74, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.event-card:hover {
  border-color: rgba(201, 162, 74, 0.55);
  box-shadow: 0 18px 42px rgba(18, 48, 74, 0.13);
  transform: translateY(-3px);
}

.event-card.is-today {
  padding-top: 34px;
  border: 2px solid var(--gold);
  background: #fffaf0;
  box-shadow: 0 12px 30px rgba(18, 48, 74, 0.12);
}

.event-today-label {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--blue);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.event-card.is-tomorrow {
  padding-top: 34px;
}

.event-tomorrow-label {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(18, 48, 74, 0.1);
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 850;
}

.event-poster-link {
  display: block;
  overflow: hidden;
  aspect-ratio: 5 / 7;
  border-radius: 8px;
  background: #e9edf0;
}

.event-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 320ms cubic-bezier(.22, 1, .36, 1);
}

.event-poster-link:hover .event-poster { transform: scale(1.015); }

.event-card.has-poster { grid-template-columns: 108px minmax(0, 1fr); }
.event-card.has-poster .event-poster-link {
  grid-column: 1;
  grid-row: 1;
  margin: 16px 0 0 16px;
}
.event-card.has-poster .event-date-band {
  grid-column: 2;
  grid-row: 1;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  align-self: start;
  padding-left: 12px;
}
.event-card.has-poster .event-date-badge { min-height: 52px; }
.event-card.has-poster .event-card-body { grid-column: 1 / -1; }

.event-date-band {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 16px 18px 0;
}

.event-date-badge {
  display: grid;
  min-height: 58px;
  place-content: center;
  border-radius: 10px;
  background: var(--blue);
  color: var(--white);
  text-align: center;
}

.event-date-badge strong {
  font-size: 1.45rem;
  line-height: 1;
}

.event-date-badge span {
  margin-top: 3px;
  color: #f4d98d;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: lowercase;
}

.event-date-copy {
  min-width: 0;
}

.event-date-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: lowercase;
}

.event-date-copy h3 {
  margin: 4px 0 0;
  color: var(--blue);
  font-size: 1.08rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.event-card-body {
  display: flex;
  min-height: 0;
  flex-direction: column;
  padding: 14px 18px 18px;
}

.event-meta {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
}

.event-meta-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  color: var(--muted);
  font-size: 0.9rem;
}

.event-meta-row svg {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  fill: var(--gold);
}

.event-description {
  margin-bottom: 16px;
  color: #3f4b58;
  font-size: 0.92rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.event-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.map-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 13px;
  border-radius: 9px;
  background: var(--blue);
  color: var(--white);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.map-button:hover {
  background: var(--blue-light);
}

.map-button svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.event-past-label {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(89, 101, 115, 0.1);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.events-empty {
  padding: 42px 18px;
  border: 1px dashed rgba(18, 48, 74, 0.24);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
  text-align: center;
}

.events-empty > span {
  color: var(--gold);
  font-size: 2rem;
}

.events-empty h3 {
  margin: 8px 0 4px;
  color: var(--blue);
}

.events-empty p,
.events-noscript {
  margin: 0;
  color: var(--muted);
}

.events-more-wrap {
  display: flex;
  justify-content: center;
  padding-top: 22px;
}

.events-more {
  min-height: 48px;
  padding: 11px 22px;
  border: 1px solid var(--blue);
  border-radius: 999px;
  background: transparent;
  color: var(--blue);
  font-weight: 850;
}

.events-more:hover {
  background: var(--blue);
  color: var(--white);
}

.events-noscript {
  margin-top: 18px;
  padding: 14px;
  border-radius: 10px;
  background: #fffaf0;
}

.how-it-works {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto 36px;
  padding: 24px 0;
}

.how-it-works ol {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.how-it-works li {
  position: relative;
  min-height: 54px;
  padding: 14px 16px 14px 56px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  font-weight: 700;
}

.how-it-works li::before {
  position: absolute;
  top: 12px;
  left: 14px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  content: counter(steps);
  counter-increment: steps;
  font-size: 0.9rem;
  font-weight: 900;
}

.note {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.site-footer {
  position: relative;
  margin-top: 72px;
  padding: 26px 16px 34px;
  background: var(--blue);
  color: var(--white);
  text-align: center;
}

.site-footer::before {
  position: absolute;
  right: 0;
  bottom: calc(100% - 1px);
  left: 0;
  height: 72px;
  background: var(--blue);
  clip-path: ellipse(72% 70% at 50% 100%);
  content: "";
  pointer-events: none;
}

.site-footer p {
  position: relative;
  z-index: 1;
  margin: 0;
}

.site-footer p:first-child {
  font-weight: 800;
}

.site-footer p + p {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.78);
}

.back-to-top {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 20;
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 12px 32px rgba(18, 48, 74, 0.28);
  color: var(--white);
  font-size: 0.84rem;
  font-weight: 850;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease, background 180ms ease;
}

.back-to-top[hidden] {
  display: none;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--blue-light);
}

.back-to-top:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.back-to-top svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

@media (min-width: 720px) {
  .site-header {
    padding-top: 28px;
  }

  .brand-logo {
    width: 68px;
    height: 68px;
  }

  .hero {
    padding-top: 46px;
  }

  .calendar-panel {
    padding: 30px;
  }

  .info-box {
    margin-bottom: 22px;
  }

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

  .device-button {
    justify-content: center;
  }

  .how-it-works ol {
    grid-template-columns: repeat(3, 1fr);
  }

  .how-it-works li {
    padding: 58px 16px 16px;
  }

  .how-it-works li::before {
    top: 16px;
    left: 16px;
  }

  .events-toolbar {
    grid-template-columns: minmax(260px, 1fr) minmax(160px, 0.45fr) auto;
    align-items: center;
  }

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

  .event-card {
    min-height: 390px;
  }
}

@media (min-width: 1060px) {
  .events-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .poster-stars {
    opacity: 0.3;
  }

  .site-footer {
    margin-top: 54px;
    padding-bottom: max(34px, env(safe-area-inset-bottom));
  }

  .site-footer::before {
    height: 54px;
    clip-path: ellipse(82% 68% at 50% 100%);
  }

  .site-header {
    width: min(100% - 24px, 1120px);
  }

  .header-inner {
    gap: 10px;
  }

  .brand {
    gap: 8px;
  }

  .brand-logo {
    width: 48px;
    height: 48px;
  }

  .brand-text {
    display: none;
  }

  .language-switcher select {
    min-width: 128px;
    min-height: 44px;
    padding-right: 28px;
  }

  .events-section {
    margin-top: 42px;
  }

  .events-heading {
    align-items: flex-start;
  }

  .events-total {
    min-width: 76px;
    min-height: 76px;
  }

  .events-total strong {
    font-size: 1.5rem;
  }

  .events-total span {
    font-size: 0.62rem;
  }

  .event-date-band,
  .event-card-body {
    padding-right: 15px;
    padding-left: 15px;
  }

  .event-card.has-poster { grid-template-columns: 92px minmax(0, 1fr); }
  .event-card.has-poster .event-poster-link { margin: 15px 0 0 15px; }
  .event-card.has-poster .event-date-band { padding-left: 10px; }

  .event-card.is-past { padding-top: 40px; }
  .event-card.is-past .event-past-label {
    top: 12px;
    right: 15px;
  }

  .back-to-top {
    width: 48px;
    height: 48px;
    padding: 0;
  }

  .back-to-top span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
