.event-page {
  --event-accent: var(--celtic-blue, #1E70D6);
  --event-surface: #EFECE7;
  --event-muted: rgba(9, 12, 8, .70);
  --event-secondary: rgba(9, 12, 8, .60);
  --event-placeholder: rgba(0, 0, 0, .05);
  --event-placeholder-logo: rgba(0, 0, 0, .08);
  --event-skeleton: rgba(9, 12, 8, .10);
  --event-focus: #0B57B7;
  --event-video-width: 260px;
  --event-gutter: 16px;
  --root-motion-fade-duration: 220ms;
  --root-motion-fade-easing: ease-in-out;
  --root-motion-fade-transition: opacity var(--root-motion-fade-duration) var(--root-motion-fade-easing);
  min-height: 100vh;
  background: var(--root-bg, #FFFCF7);
  color: var(--root-fg, #090C08);
}

@media (prefers-color-scheme: dark) {
  .event-page {
    --event-accent: #287BE0;
    --event-surface: #1C1F1A;
    --event-muted: rgba(255, 252, 247, .70);
    --event-secondary: rgba(255, 252, 247, .60);
    --event-placeholder: rgba(255, 255, 255, .08);
    --event-placeholder-logo: rgba(255, 255, 255, .20);
    --event-skeleton: rgba(255, 252, 247, .10);
    --event-focus: #78ADFF;
  }
}

html, body {
  min-height: 100%;
  margin: 0;
  background: var(--root-bg, #FFFCF7);
  color: var(--root-fg, #090C08);
  color-scheme: light dark;
  font-family: var(--font-sans);
}

.event-page *, .event-page *::before, .event-page *::after { box-sizing: border-box; }
.event-page [hidden] { display: none !important; }
.event-main h1, .event-main h2, .event-main h3, .event-main p,
.event-dialog h2, .event-dialog h3, .event-dialog p { margin: 0; }
.event-main a, .event-dialog a { color: inherit; text-decoration: none; }
.event-page button { font: inherit; cursor: pointer; }
.event-main :focus-visible, .event-dialog :focus-visible, .event-navigation-error :focus-visible {
  outline: 3px solid var(--event-focus);
  outline-offset: 4px;
}

.event-main {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: calc(100% - 32px);
  max-width: 1216px;
  margin-inline: auto;
  padding-block: 24px 64px;
  min-width: 0;
}

.event-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: center; }
.event-artwork { width: 100%; aspect-ratio: 16 / 9; border-radius: 4px; }
.event-information { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.event-information h1, .event-videos-heading h1 { font: 700 28px/36px var(--font-display); overflow-wrap: anywhere; }
.event-description { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.event-summary { color: var(--event-muted); font-size: 17px; line-height: 24px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.event-main .event-link, .event-dialog .event-link { display: inline-flex; align-items: center; gap: 8px; width: fit-content; color: var(--event-accent); font-size: 15px; line-height: 20px; font-weight: 600; }
.event-main .event-details-link { gap: 4px; }
.event-details-link .event-icon { width: 16px; height: 16px; }
.event-metadata { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding-top: 4px; font-size: 13px; line-height: 18px; }
.event-metadata time { color: var(--event-muted); }
.event-status { display: inline-flex; align-items: center; min-height: 32px; padding: 7px 12px; border-radius: 16px; background: var(--root-fg, #090C08); color: var(--root-bg, #FFFCF7); font-size: 13px; line-height: 18px; font-weight: 600; }
.event-status--upcoming { background: var(--event-accent); color: #FFFCF7; }
.event-status--live { background: #FF3223; color: #FFFCF7; }
.event-actions { display: flex; flex-wrap: wrap; padding-top: 8px; }
.event-main .event-action, .event-navigation-error .event-action { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 48px; max-width: 100%; padding: 12px 24px; border-radius: 24px; background: var(--event-accent); color: #FFFCF7; font: 600 15px/20px var(--font-sans); text-decoration: none; text-align: center; }
.event-main .event-action--secondary { background: var(--event-surface); color: var(--root-fg, #090C08); }
.event-hint, .event-countdown { color: var(--event-muted); font-size: 13px; line-height: 18px; }
.event-videos, .event-games { display: flex; flex-direction: column; min-width: 0; gap: 8px; }
.event-games { gap: 16px; }
.event-videos h2, .event-games h2 { color: var(--event-accent); font: 700 28px/36px var(--font-display); }
.event-section-link { position: relative; display: flex; width: fit-content; align-items: center; gap: 8px; min-height: 36px; }
/* Keep a 44px pointer target without adding height to the shared heading line box. */
.event-section-link::after { content: ''; position: absolute; inset: -4px 0; }
.event-section-link .event-heading-chevron { width: 12px; height: 20px; margin-bottom: 2px; opacity: 0; transition: var(--root-motion-fade-transition); }
.event-videos:has(.event-section-link:hover, .event-video-link:hover, :focus-visible) .event-heading-chevron { opacity: 1; }
.event-carousel { position: relative; margin-inline: calc(-1 * var(--event-gutter)); }
.event-video-rail { display: flex; align-items: flex-start; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none; padding: 8px var(--event-gutter); scroll-padding-inline: var(--event-gutter); }
.event-video-rail::-webkit-scrollbar { display: none; }
.event-video-rail > * { flex: 0 0 var(--event-video-width); min-width: 0; scroll-snap-align: start; }
.event-video-card { min-width: 0; }
.event-video-link { display: flex; flex-direction: column; gap: 4px; border-radius: 4px; transform-origin: center; }
.event-video-rail .event-video-link:focus-visible { outline-offset: -3px; }
.event-video-rail > :first-child .event-video-link { transform-origin: left center; }
[dir='rtl'] .event-video-rail > :first-child .event-video-link { transform-origin: right center; }
.event-video-thumbnail { position: relative; width: 100%; aspect-ratio: 16 / 9; margin-block-end: 4px; border-radius: 4px; }
.event-video-thumbnail .event-media, .event-game-cover .event-media { position: absolute; inset: 0; border-radius: inherit; }
.event-video-card h3 { font-size: 17px; line-height: 24px; font-weight: 500; overflow-wrap: anywhere; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.event-video-card p { color: var(--event-secondary); font-size: 15px; line-height: 20px; overflow-wrap: anywhere; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; }
.event-youtube { position: absolute; inset-inline-end: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 20px; background: #FFFCF7; color: #090C08; font-size: 14px; line-height: 18px; font-weight: 600; pointer-events: none; }
.event-youtube .event-icon { width: 18px; height: 14px; }
.event-youtube { direction: ltr; }
.event-carousel-arrow { position: absolute; top: 8px; display: flex; align-items: center; width: 88px; height: calc(var(--event-video-width) * 9 / 16); padding: 0 16px; border: 0; color: #FFFCF7; z-index: 1; }
.event-carousel-arrow--next { inset-inline-end: 0; justify-content: flex-end; background: linear-gradient(to right, rgba(9,12,8,0), rgba(9,12,8,.08) 25%, rgba(9,12,8,.24) 50%, rgba(9,12,8,.44) 75%, rgba(9,12,8,.60)); }
.event-carousel-arrow--previous { inset-inline-start: 0; justify-content: flex-start; background: linear-gradient(to left, rgba(9,12,8,0), rgba(9,12,8,.08) 25%, rgba(9,12,8,.24) 50%, rgba(9,12,8,.44) 75%, rgba(9,12,8,.60)); }
.event-carousel-arrow .event-icon { width: 28px; height: 28px; }
.event-main .event-show-all { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; aspect-ratio: 16 / 9; color: var(--event-accent); font-size: 15px; line-height: 20px; font-weight: 600; }
.event-show-all .event-icon { width: 56px; height: 56px; }
.event-video-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px 8px; }
.event-game-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 8px; }
.event-game-card { min-width: 0; }
.event-game-card > a { display: flex; flex-direction: column; gap: 12px; border-radius: 4px; transform-origin: center; }
.event-game-cover { position: relative; width: 100%; aspect-ratio: 2 / 3; border-radius: 4px; }
.event-game-card h3 { font-size: 15px; line-height: 20px; font-weight: 500; overflow-wrap: anywhere; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.event-release { position: absolute; inset-inline: 0; bottom: 0; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 28px; padding: 4px; background: var(--event-accent); color: #FFFCF7; border-radius: 0 0 4px 4px; font-size: 13px; line-height: 18px; font-weight: 600; }
.event-release .event-icon { width: 16px; height: 16px; }
.event-media { position: relative; overflow: hidden; background: var(--event-placeholder); }
.event-media__placeholder { position: absolute; inset: 0; display: grid; place-items: center; transition: var(--root-motion-fade-transition); }
.event-media__placeholder::before { content: ""; width: 23.26%; max-width: 80px; aspect-ratio: 1; background: var(--event-placeholder-logo); mask: url('/main_placeholder.svg') center / contain no-repeat; -webkit-mask: url('/main_placeholder.svg') center / contain no-repeat; }
.event-media__image { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; opacity: 1; transition: var(--root-motion-fade-transition); }
.event-media.is-loading .event-media__image, .event-media.is-failed .event-media__image { opacity: 0; }
.event-media.is-loaded .event-media__placeholder { opacity: 0; }
.event-main--videos { min-height: 620px; gap: 32px; }
.event-videos-heading { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.event-videos-heading > div { display: flex; flex-direction: column; gap: 8px; }
.event-videos-heading p { color: var(--event-muted); font-size: 17px; line-height: 24px; overflow-wrap: anywhere; }
.event-back { min-height: 44px; padding-block: 12px; }
.event-empty { padding-block: 32px; text-align: center; color: var(--event-muted); font-size: 17px; line-height: 24px; }
.event-details-fallback { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 24px; padding-top: 24px; scroll-margin-top: calc(var(--root-header-total-height, 68px) + 24px); }
.event-dialog { display: none; width: min(600px, calc(100% - 32px)); max-height: calc(100dvh - 48px); margin: auto; padding: 24px; border: 0; border-radius: 16px; overflow: auto; background: var(--root-bg, #FFFCF7); color: var(--root-fg, #090C08); }
.event-dialog[open] { display: flex; flex-direction: column; gap: 24px; }
.event-dialog::backdrop { background: rgba(0, 0, 0, .48); }
.event-dialog-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.event-dialog-header h2 { font: 700 24px/32px var(--font-display); }
.event-close { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; padding: 10px; border: 0; border-radius: 50%; background: var(--event-surface); color: inherit; }
.event-dialog-identity { display: flex; flex-direction: column; gap: 8px; }
.event-dialog-identity h3 { font: 600 22px/28px var(--font-display); overflow-wrap: anywhere; }
.event-dialog-identity p { font-size: 15px; line-height: 20px; }
.event-dialog-description { color: var(--event-muted); font-size: 17px; line-height: 24px; white-space: pre-line; overflow-wrap: anywhere; }
.event-dialog-links { display: flex; flex-direction: column; gap: 12px; }
.event-dialog-links .event-link { flex-wrap: wrap; }
.event-dialog-links .event-icon--external { width: 18px; height: 18px; }
.event-socials { display: flex; flex-wrap: wrap; gap: 8px; }
.event-social-link { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 4px; }
.event-social-link .event-icon { width: 24px; height: 24px; }
.event-icon { display: inline-block; flex-shrink: 0; width: 20px; height: 20px; background: currentColor; mask: var(--event-icon) center / contain no-repeat; -webkit-mask: var(--event-icon) center / contain no-repeat; }
.event-icon--bell { --event-icon: url('/events/bell.svg'); }
.event-icon--calendar { --event-icon: url('/events/calendar.svg'); }
.event-icon--chevron { --event-icon: url('/events/chevron.svg'); }
.event-icon--heading-chevron { --event-icon: url('/events/heading-chevron.svg'); }
.event-icon--play { --event-icon: url('/events/play.svg'); }
.event-icon--show-all { --event-icon: url('/events/show-all.svg'); }
.event-icon--youtube { --event-icon: url('/events/youtube.svg'); }
.event-icon--twitch { --event-icon: url('/events/twitch.svg'); }
.event-icon--x { --event-icon: url('/events/x.svg'); }
.event-icon--close { --event-icon: url('/events/close.svg'); }
.event-icon--globe { --event-icon: url('/events/globe.svg'); }
.event-icon--external { --event-icon: url('/events/external.svg'); }
.event-icon--back { transform: rotate(180deg); }
[dir='rtl'] .event-icon--forward { transform: rotate(180deg); }
[dir='rtl'] .event-icon--back { transform: none; }
[dir='rtl'] .event-carousel-arrow--next { background: linear-gradient(to left, rgba(9,12,8,0), rgba(9,12,8,.08) 25%, rgba(9,12,8,.24) 50%, rgba(9,12,8,.44) 75%, rgba(9,12,8,.60)); }
[dir='rtl'] .event-carousel-arrow--previous { background: linear-gradient(to right, rgba(9,12,8,0), rgba(9,12,8,.08) 25%, rgba(9,12,8,.24) 50%, rgba(9,12,8,.44) 75%, rgba(9,12,8,.60)); }
.event-skeleton-block { background: var(--event-skeleton); border-radius: 4px; }
.event-skeleton .event-video-card { display: flex; flex-direction: column; gap: 4px; }
.event-skeleton-heading { width: 85%; height: 72px; }
.event-skeleton-line { width: 78%; height: 20px; }
.event-skeleton-line--short { width: 43%; height: 16px; }
.event-skeleton-button { width: 180px; height: 48px; margin-top: 16px; border-radius: 24px; }
.event-navigation-error { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; width: calc(100% - 32px); max-width: 1216px; margin-inline: auto; padding-bottom: 40px; }
.event-navigation-error p { margin: 0; }

@media (min-width: 768px) {
  .event-page { --event-video-width: 320px; --event-gutter: 64px; }
  .event-main { width: calc(100% - 128px); padding-top: 48px; gap: 64px; }
  .event-main--videos { gap: 32px; }
  .event-information h1, .event-videos-heading h1 { font-size: 32px; line-height: 40px; }
  .event-video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .event-game-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 12px; }
  .event-carousel-arrow { width: 112px; }
  .event-dialog { padding: 32px; }
}

@media (min-width: 1200px) {
  .event-page { --event-video-width: 420px; --event-gutter: 0px; }
  .event-hero { grid-template-columns: minmax(0, 640fr) minmax(0, 528fr); gap: 48px; }
  .event-hero--no-artwork { grid-template-columns: minmax(0, 1fr); }
  .event-video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .event-game-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (hover: hover) and (pointer: fine) {
  .event-video-link, .event-game-card > a { transition: transform .2s ease-in-out; }
  .event-video-link:hover, .event-video-link:focus-visible,
  .event-game-card > a:hover, .event-game-card > a:focus-visible { transform: scale(1.02); }
  .event-social-link:hover { background: var(--event-surface); }
}

@media (prefers-reduced-motion: reduce) {
  .event-page { --root-motion-fade-duration: 0ms; }
  .event-page *, .event-page *::before, .event-page *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .event-video-link:hover, .event-video-link:focus-visible,
  .event-game-card > a:hover, .event-game-card > a:focus-visible { transform: none; }
}
