:root {
  --bg: #0b0d12;
  --bg2: #121521;
  --card: rgba(255, 255, 255, 0.06);
  --card2: rgba(255, 255, 255, 0.09);
  --line: rgba(255, 255, 255, 0.14);
  --text: rgba(252, 250, 245, 0.96);
  --muted: rgba(232, 230, 220, 0.72);
  --gold: #f7cf77;
  --gold2: #ffb23d;
  --lime: #ffb23d;
  --cyan: rgba(255, 230, 176, 0.92);
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.5);
  --radius: 22px;
  --radius2: 28px;
  --wrap: 1160px;
}

[hidden] {
  display: none !important;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Keep in-page anchors visible below the sticky header. */
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: radial-gradient(circle at 18% 6%, rgba(255, 178, 61, 0.08), transparent 55%),
    radial-gradient(circle at 78% 12%, rgba(247, 207, 119, 0.08), transparent 58%),
    radial-gradient(circle at 60% 86%, rgba(255, 230, 176, 0.05), transparent 60%), var(--bg);
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

.bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.bg-grid {
  position: absolute;
  inset: 0;
  opacity: 0.34;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 30% 5%, black 0%, transparent 65%);
}

.bg-blobs {
  position: absolute;
  inset: -20vmax;
  filter: blur(32px);
  opacity: 0.78;
}

.blob {
  position: absolute;
  border-radius: 999px;
  transform: translate3d(0, 0, 0);
  animation: drift 16s ease-in-out infinite;
  mix-blend-mode: screen;
}

.blob.b1 {
  width: 56vmax;
  height: 56vmax;
  left: 6vmax;
  top: 4vmax;
  background: radial-gradient(circle at 30% 30%, rgba(247, 207, 119, 0.78), transparent 60%),
    radial-gradient(circle at 60% 60%, rgba(255, 230, 176, 0.5), transparent 62%);
}

.blob.b2 {
  width: 60vmax;
  height: 60vmax;
  right: 4vmax;
  top: 12vmax;
  animation-delay: -6s;
  background: radial-gradient(circle at 40% 40%, rgba(255, 178, 61, 0.5), transparent 62%),
    radial-gradient(circle at 60% 50%, rgba(247, 207, 119, 0.42), transparent 66%);
}

.blob.b3 {
  width: 66vmax;
  height: 66vmax;
  left: 14vmax;
  bottom: 4vmax;
  animation-delay: -10s;
  background: radial-gradient(circle at 45% 35%, rgba(255, 230, 176, 0.34), transparent 62%),
    radial-gradient(circle at 55% 55%, rgba(255, 178, 61, 0.28), transparent 64%);
}

.bg-noise {
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.33'/%3E%3C/svg%3E");
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 1.8rem);
}

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.18rem clamp(0.72rem, 2.2vw, 1.35rem);
  /* Tuned by JS so nav always stays on one line when possible. */
  --nav-font-px: 15;
  --nav-gap-px: 12;
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(11, 13, 18, 0.86), rgba(11, 13, 18, 0.56));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  justify-self: start;
  /* JS sets this so the scaled logo doesn't visually overlap the centered nav. */
  padding-right: var(--brand-pad, 0px);
}

.brand-logo {
  /* Keep the bar compact: scale doesn't affect layout, only visuals. */
  width: 58px;
  height: 58px;
  min-width: 58px;
  max-width: 58px;
  min-height: 58px;
  max-height: 58px;
  flex: 0 0 58px;
  /* Keep presence, but leave more real estate for nav links. */
  transform: translateY(6px) scale(1.94);
  transform-origin: left center;
  /* Don't crop the logo; it should always show fully. */
  object-fit: contain;
  object-position: center;
  display: block;
}

.header-spacer {
  /* Reserve space so the centered nav stays visually centered even with a left logo.
     Shrink on small viewports to avoid wasting room. */
  width: var(--spacer-w, clamp(0px, 10vw, 108px)); /* 72px * 1.5 scale */
  min-width: 0;
  height: 1px;
}

.nav {
  display: flex;
  align-items: center;
  gap: calc(var(--nav-gap-px) * 1px);
  flex-wrap: nowrap;
  overflow: hidden;
  min-width: 0;
  padding: 0.2rem 0;
  justify-content: center;
  /* Extra guard: if something overrides flex-wrap, never allow a 2nd line. */
  white-space: nowrap;
}

.nav a {
  text-decoration: none;
  color: rgba(248, 246, 240, 0.88);
  font-size: calc(var(--nav-font-px) * 1px);
  padding: 0.2rem 0.08rem;
  border-bottom: 1px solid transparent;
  transition: opacity 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
  flex: 0 0 auto;
}

.nav.nav-overflow {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  mask-image: linear-gradient(90deg, transparent 0, black 10px, black calc(100% - 10px), transparent 100%);
}

.nav.nav-overflow::-webkit-scrollbar {
  display: none;
}

.nav a:hover,
.nav a:focus-visible {
  opacity: 1;
  border-bottom-color: rgba(247, 207, 119, 0.75);
  transform: translateY(-1px);
}

/* Sister-site nav link — visually distinct (gold-tinted) */
.nav-sister {
  color: rgba(247, 207, 119, 0.8) !important;
  border-bottom-color: rgba(247, 207, 119, 0.25) !important;
}
.nav-sister:hover,
.nav-sister:focus-visible {
  color: rgba(247, 207, 119, 1) !important;
  border-bottom-color: rgba(247, 207, 119, 0.75) !important;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.52rem 0.78rem;
  border-radius: 999px;
  text-decoration: none;
  color: rgba(248, 246, 240, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
  font-weight: 650;
  font-size: 0.9rem;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
  white-space: nowrap;
}

.pill:hover,
.pill:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(247, 207, 119, 0.55);
  background: rgba(255, 255, 255, 0.06);
}

.pill-primary {
  border-color: rgba(247, 207, 119, 0.55);
  background: linear-gradient(135deg, rgba(247, 207, 119, 0.22), rgba(255, 178, 61, 0.12));
}

.hero {
  padding-top: clamp(2rem, 5vw, 4.6rem);
  padding-bottom: clamp(1.4rem, 5vw, 2.8rem);
}

.hero-title {
  margin: 0.55rem 0 0;
  font-family: "Syne", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 0.95;
  letter-spacing: -0.04em;
  will-change: opacity;
}

.hero-title-top {
  display: flex;
  align-items: flex-end;
  font-size: clamp(2.2rem, 7vw, 4.4rem);
  color: rgba(252, 250, 245, 0.92);
  width: max-content;
  white-space: nowrap;
}

.hero-title-top-letter {
  display: inline-block;
  transform: translateY(-0.86em) rotate(4deg);
  transform-origin: 50% 0%;
  opacity: 0;
  will-change: transform, opacity;
}

.hero-title-main {
  display: block;
  font-size: clamp(2.6rem, 8.2vw, 5.4rem);
  background-size: 180% 100%;
  background-position: 0% 50%;
  background: linear-gradient(135deg, rgba(247, 207, 119, 1), rgba(255, 230, 176, 0.94), rgba(255, 178, 61, 0.92));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Keep hero heading layout stable: no vertical reveal-translate on the H1 block itself. */
.hero-title[data-reveal],
.hero-title[data-reveal].reveal-in {
  transform: none;
}

.hero-title.reveal-in {
  transition: opacity 720ms ease;
}

/* Hero block: fade in only (no reveal translate) to avoid perceived page nudges on mobile. */
.hero [data-reveal],
.hero [data-reveal].reveal-in {
  transform: none;
}

.hero .reveal-in {
  transition: opacity 700ms ease;
}

/* One-shot hero heading intro: subtle rise + sharpen + gold sweep */
.hero-title.reveal-in .hero-title-top {
  animation: none;
}

.hero-title.reveal-in .hero-title-top-letter {
  animation: hero-title-top-drop 1160ms cubic-bezier(0.18, 0.84, 0.24, 1) both;
}

.hero-title.reveal-in .hero-title-top-letter:nth-child(1) {
  animation-delay: 30ms;
}

.hero-title.reveal-in .hero-title-top-letter:nth-child(2) {
  animation-delay: 150ms;
}

.hero-title.reveal-in .hero-title-top-letter:nth-child(3) {
  animation-delay: 270ms;
}

.hero-title.reveal-in .hero-title-main {
  animation: hero-title-main-in 1650ms cubic-bezier(0.18, 0.75, 0.24, 1) 90ms both;
}

@keyframes hero-title-top-drop {
  0% {
    opacity: 0;
    transform: translateY(-0.86em) rotate(4deg);
  }
  52% {
    opacity: 1;
  }
  72% {
    transform: translateY(0) rotate(0deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
  }
}

@keyframes hero-title-main-in {
  0% {
    opacity: 0;
    background-position: 0% 50%;
  }
  52% {
    opacity: 1;
  }
  72% {
    background-position: 34% 50%;
  }
  100% {
    opacity: 1;
    background-position: 58% 50%;
  }
}

.hero-slogan {
  position: relative;
  margin: 0.62rem 0 0;
  min-height: 1.42em;
  font-size: clamp(1.06rem, 2.35vw, 1.34rem);
  font-weight: 760;
  letter-spacing: 0.01em;
  color: rgba(248, 246, 240, 0.9);
  perspective: 900px;
}

.hero-slogan-line {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  line-height: 1.32;
  transform-origin: 50% 50%;
  backface-visibility: hidden;
  white-space: nowrap;
  will-change: transform, opacity;
  text-shadow: 0 0 20px rgba(247, 207, 119, 0.15);
}

.hero-slogan-brand {
  display: inline-block;
  background: linear-gradient(135deg, rgba(247, 207, 119, 1), rgba(255, 230, 176, 0.94), rgba(255, 178, 61, 0.92));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-slogan-line--start {
  animation: hero-slogan-start 8.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.hero-slogan-line--end {
  opacity: 0;
  animation: hero-slogan-end 8.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes hero-slogan-start {
  0%,
  40% {
    opacity: 1;
    transform: rotateX(0deg) translateY(0);
  }
  50% {
    opacity: 0;
    transform: rotateX(90deg) translateY(-0.28em);
  }
  51%,
  90% {
    opacity: 0;
    transform: rotateX(-90deg) translateY(0.3em);
  }
  100% {
    opacity: 1;
    transform: rotateX(0deg) translateY(0);
  }
}

@keyframes hero-slogan-end {
  0%,
  44% {
    opacity: 0;
    transform: rotateX(-90deg) translateY(0.3em);
  }
  52%,
  90% {
    opacity: 1;
    transform: rotateX(0deg) translateY(0);
  }
  98%,
  100% {
    opacity: 0;
    transform: rotateX(90deg) translateY(-0.28em);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-title.reveal-in .hero-title-top,
  .hero-title.reveal-in .hero-title-top-letter,
  .hero-title.reveal-in .hero-title-main {
    animation: none;
  }

  .hero-title-top-letter {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .hero-slogan {
    min-height: 0;
  }

  .hero-slogan-line {
    position: static;
    animation: none;
    opacity: 1;
    transform: none;
    white-space: normal;
  }

  .hero-slogan-line--end {
    display: none;
  }
}

.spacer {
  height: 1.25rem;
}

.hero-lead {
  margin: 0.5rem 0 0;
  max-width: 70ch;
  font-size: clamp(0.88rem, 1.65vw, 0.98rem);
  color: rgba(232, 230, 220, 0.62);
  letter-spacing: 0.01em;
}

/* Feature pills — compact highlight strip below hero lead */
.hero-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.65rem;
  margin: 1.2rem 0 0;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(247, 207, 119, 1);
  background: rgba(247, 207, 119, 0.12);
  border: 1px solid rgba(247, 207, 119, 0.3);
  border-radius: 100px;
  white-space: nowrap;
  text-shadow: 0 0 12px rgba(247, 207, 119, 0.3);
  box-shadow: 0 0 8px rgba(247, 207, 119, 0.08), inset 0 1px 0 rgba(255,255,255,0.05);
}

.hero-pill-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  opacity: 0.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.78rem 1.08rem;
  font-weight: 750;
  letter-spacing: 0.01em;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(248, 246, 240, 0.92);
  background: rgba(255, 255, 255, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  border-color: rgba(247, 207, 119, 0.5);
}

.btn-primary {
  border-color: rgba(247, 207, 119, 0.6);
  background: linear-gradient(135deg, rgba(247, 207, 119, 0.26), rgba(255, 178, 61, 0.12));
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
}

.hero-metrics {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.metric {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  padding: 0.95rem;
  transform: translateY(10px);
  opacity: 0;
  animation: reveal 700ms ease forwards;
  animation-delay: 220ms;
}

.metric h2 {
  margin: 0;
  font-family: "Syne", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.05rem;
}

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

.tiny {
  font-size: 0.92rem;
}

.section {
  padding-top: clamp(2.2rem, 6vw, 3.4rem);
  padding-bottom: clamp(1.8rem, 6vw, 3.2rem);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.section-title {
  margin: 0;
  font-family: "Syne", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: -0.02em;
  font-size: clamp(1.6rem, 4vw, 2.15rem);
}

.section-sub {
  margin: 0.45rem 0 0;
  color: rgba(232, 230, 220, 0.72);
  max-width: 70ch;
}

.link {
  color: rgba(247, 207, 119, 0.92);
  text-decoration: none;
  font-weight: 700;
  border-bottom: 1px solid rgba(247, 207, 119, 0.35);
  padding-bottom: 0.12rem;
}

.link:hover,
.link:focus-visible {
  opacity: 0.92;
}

.section-actions {
  display: flex;
  gap: 0.6rem;
}

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(248, 246, 240, 0.92);
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.icon-btn:hover,
.icon-btn:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(247, 207, 119, 0.55);
  background: rgba(255, 255, 255, 0.08);
}

.next-event {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 1.1rem;
  align-items: start;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  box-shadow: var(--shadow);
  overflow: hidden;
  /* Allow vertical page scroll, but keep horizontal swipes on the card itself. */
  touch-action: pan-y;
}

.next-event-media {
  height: clamp(420px, 55vh, 760px);
  background: rgba(11, 13, 18, 0.58);
  position: relative;
  overflow: hidden;
}

.next-event-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  display: block;
  filter: saturate(1.05) contrast(1.02);
  transform: none;
}

.next-event-body {
  padding: 1.2rem 1.2rem 1.25rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid rgba(247, 207, 119, 0.46);
  background: rgba(247, 207, 119, 0.12);
  color: rgba(247, 207, 119, 0.92);
}

.next-event-title {
  margin: 0.75rem 0 0;
  font-family: "Syne", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: -0.02em;
  font-size: clamp(1.35rem, 3.8vw, 2rem);
  line-height: 1.05;
}

.next-event-time {
  margin: 0.65rem 0 0;
  color: rgba(232, 230, 220, 0.82);
  font-weight: 650;
}

.next-event-desc {
  margin: 0.65rem 0 0;
  color: rgba(232, 230, 220, 0.74);
  white-space: pre-line;
}

.next-event-meta {
  margin-top: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.meta-pill {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  font-size: 0.9rem;
  color: rgba(252, 250, 245, 0.88);
}

.meta-pill-live {
  border-color: rgba(247, 207, 119, 0.35);
  background: rgba(247, 207, 119, 0.08);
  color: rgba(255, 230, 176, 0.92);
}

.events-rail-wrap {
  margin-top: 1rem;
}

.events-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 320px);
  gap: 0.9rem;
  overflow-x: auto;
  padding: 0.2rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.events-rail::-webkit-scrollbar {
  display: none;
}

.event-card {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  appearance: none;
  -webkit-appearance: none;
  padding: 0;
  outline: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  overflow: hidden;
  position: relative;
  min-height: 230px;
  cursor: pointer;
  color: rgba(252, 250, 245, 0.94);
  text-align: left;
  transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.event-card:hover,
.event-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(247, 207, 119, 0.45);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
}

.event-card.active {
  /* Keep it premium, not neon: subtle gold stroke + depth. */
  border-color: rgba(247, 207, 119, 0.42);
  /* Avoid a dark "drop shadow" patch under the first (active) card. */
  box-shadow: inset 0 0 0 1px rgba(247, 207, 119, 0.14);
}

.event-card.active .event-card-title {
  color: rgba(255, 240, 210, 0.98);
}

.event-card-media {
  height: auto;
  aspect-ratio: 1 / 1;
  padding: 0.2rem;
  display: grid;
  overflow: hidden;
  position: relative;
  z-index: 0;
  background: linear-gradient(135deg, rgba(255, 230, 176, 0.12), rgba(247, 207, 119, 0.14));
}

/* Only show the blurred poster backdrop when we use `contain`.
   For `cover` (cropped) posters we want a clean cut without glow/shadow artifacts. */
.event-card.fit-contain .event-card-media.has-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--poster);
  background-size: cover;
  background-position: center;
  filter: blur(14px) saturate(1.05);
  opacity: 0.42;
  transform: scale(1.08);
  pointer-events: none;
}

.event-card.fit-contain .event-card-media.has-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 13, 18, 0.18), rgba(11, 13, 18, 0.62));
  pointer-events: none;
}

.event-card.fit-cover .event-card-media {
  padding: 0;
  background: rgba(11, 13, 18, 0.55);
}

.event-card.fit-cover .event-card-media img {
  border-radius: 0;
  border: 0;
  box-shadow: none;
  filter: saturate(1.05) contrast(1.03);
  object-position: 50% 50%;
}

.event-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  display: block;
  z-index: 1;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  filter: saturate(1.08) contrast(1.02);
}

.event-card.fit-contain .event-card-media img {
  object-fit: contain;
  object-position: center;
  filter: saturate(1.06) contrast(1.02);
}

.event-card-body {
  padding: 0.95rem 0.95rem 1.05rem;
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(11, 13, 18, 0.18), rgba(11, 13, 18, 0));
}

.event-card-title {
  margin: 0;
  font-family: "Syne", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 820;
  letter-spacing: -0.01em;
  font-size: 1.15rem;
  line-height: 1.08;
  /* Match the site's gold headline vibe so the "topic" is immediately visible. */
  color: rgba(255, 230, 176, 0.94);
}

.event-card-time {
  margin: 0.55rem 0 0;
  color: rgba(232, 230, 220, 0.84);
  font-weight: 650;
  font-size: 0.95rem;
}

.event-card-desc {
  margin: 0.55rem 0 0;
  color: rgba(232, 230, 220, 0.7);
  font-size: 0.95rem;
  white-space: pre-line;
}

.hours {
  margin-top: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  padding: 1.05rem 1.05rem 1.1rem;
}

.hours-status {
  margin: 0;
  font-family: "Syne", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: clamp(1.55rem, 3.6vw, 2.05rem);
  line-height: 1.15;
  display: inline-flex;
  align-items: center;
}

.hours-live-dot {
  display: inline-block;
  width: 0.62rem;
  height: 0.62rem;
  margin-left: 0.95rem;
  position: relative;
  border-radius: 999px;
  background: rgba(80, 255, 150, 0.95);
  box-shadow: 0 0 0 0 rgba(80, 255, 150, 0.38);
  animation: openPulse 1.2s ease-out infinite;
}

.hours-live-dot::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 50%, rgba(80, 255, 150, 0.18), transparent 70%);
  filter: blur(2px);
  opacity: 0.9;
  pointer-events: none;
}

.hours-more {
  margin-top: 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(248, 246, 240, 0.9);
  font: inherit;
  font-weight: 750;
  padding: 0.55rem 0.85rem;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.hours-more:hover,
.hours-more:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(247, 207, 119, 0.42);
  background: rgba(255, 255, 255, 0.06);
}

.hours-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hours-list li {
  display: grid;
  gap: 0.15rem;
  padding: 0.55rem 0.65rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(232, 230, 220, 0.78);
  font-weight: 650;
}

.hours-day {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: none;
  color: rgba(255, 230, 176, 0.92);
}

.hours-hours {
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  color: rgba(248, 246, 240, 0.92);
}

.hours-meta {
  margin: 0.9rem 0 0;
  font-size: 0.83rem;
}

@media (max-width: 720px) {
  .hours-list {
    grid-template-columns: 1fr;
  }
}

.ig-grid {
  margin-top: 1.15rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.ig-item {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  aspect-ratio: 1 / 1;
  opacity: 1;
}

.ig-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
  transition: transform 0.35s ease, filter 0.35s ease;
}

.ig-badge {
  position: absolute;
  left: 0.6rem;
  top: 0.6rem;
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(11, 13, 18, 0.5);
  color: rgba(248, 246, 240, 0.9);
  backdrop-filter: blur(8px);
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .ig-item {
    transform: translateY(10px);
    opacity: 0;
    animation: reveal 650ms ease forwards;
  }

  .ig-item:hover img,
  .ig-item:focus-visible img {
    transform: scale(1.03);
    filter: saturate(1.2);
  }
}

@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
  .ig-item {
    transform: none;
    animation: none;
  }

  .ig-item img {
    filter: none;
    transition: none;
  }

  .ig-badge {
    backdrop-filter: none;
  }
}

.ig-actions {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
}

.menu-grid {
  margin-top: 1.1rem;
}

.menu-card,
.hh-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  padding: 1.05rem 1.05rem 1.1rem;
  box-shadow: var(--shadow);
}

.hh-card {
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

/* HH is a standalone spotlight card; keep it intentionally narrower. */
#happyhour .hh-card {
  width: min(100%, 420px);
  max-width: 100%;
  margin-inline: 0;
}

/* Keep the two Ruokalista cards visually identical (same border + fill). */

.menu-cats {
  margin-top: 1rem;
  display: grid;
  gap: 0.75rem;
}

.menu-cat {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(11, 13, 18, 0.33);
  overflow: hidden;
}

.menu-cat summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  padding: 0.85rem 0.95rem;
  font-family: "Syne", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 850;
  letter-spacing: -0.01em;
  color: rgba(255, 230, 176, 0.95);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.menu-cat summary::-webkit-details-marker {
  display: none;
}

.menu-cat summary::after {
  content: "›";
  transform: rotate(90deg);
  opacity: 0.7;
  transition: transform 0.18s ease, opacity 0.18s ease;
  font-size: 1.2rem;
  line-height: 1;
}

.menu-cat[open] summary::after {
  transform: rotate(-90deg);
  opacity: 0.95;
}

.menu-items {
  padding: 0.2rem 0.75rem 0.8rem;
  display: grid;
  gap: 0.55rem;
}

.menu-item {
  padding: 0.75rem 0.7rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(11, 13, 18, 0.35);
}

.menu-item-addon {
  background: rgba(11, 13, 18, 0.22);
}

.menu-item-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 0.75rem;
}

.menu-item h4 {
  margin: 0;
  font-weight: 850;
  color: rgba(252, 250, 245, 0.92);
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}

.menu-price {
  font-family: "Syne", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
  color: rgba(255, 230, 176, 0.95);
  white-space: nowrap;
}

.menu-desc {
  margin: 0.45rem 0 0;
  color: rgba(232, 230, 220, 0.74);
  line-height: 1.4;
}

.menu-tags {
  margin-top: 0.55rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.22rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(232, 230, 220, 0.82);
  font-weight: 850;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.menu-variants {
  margin-top: 0.6rem;
  display: grid;
  gap: 0.35rem;
}

.variant {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0.6rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(11, 13, 18, 0.28);
  color: rgba(232, 230, 220, 0.78);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

.menu-kicker {
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.74rem;
  color: rgba(232, 230, 220, 0.72);
}

.menu-title {
  margin: 0.35rem 0 0;
  font-family: "Syne", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 850;
  letter-spacing: -0.02em;
  font-size: 1.35rem;
  color: rgba(255, 230, 176, 0.95);
}

.menu-text {
  margin: 0.65rem 0 0;
  color: rgba(232, 230, 220, 0.74);
  line-height: 1.45;
}

/* Happy hour live badge */
.hh-live-badge[hidden] {
  display: none !important;
}

.hh-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  background: rgba(247, 207, 119, 0.14);
  border: 1px solid rgba(247, 207, 119, 0.48);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: hh-pulse 2s ease-in-out infinite;
}

@keyframes hh-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(247, 207, 119, 0.38); }
  50% { opacity: 0.82; box-shadow: 0 0 0 7px rgba(247, 207, 119, 0); }
}

/* When HH is active: subtle gold border glow */
.hh-card.hh--active {
  border-color: rgba(247, 207, 119, 0.38);
  box-shadow: 0 0 0 1px rgba(247, 207, 119, 0.14), var(--shadow);
}

.hh-list {
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.hh-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0.75rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(11, 13, 18, 0.35);
}

.hh-item {
  font-weight: 750;
  color: rgba(252, 250, 245, 0.92);
}

.hh-price {
  font-family: "Syne", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
  color: rgba(255, 230, 176, 0.95);
  white-space: nowrap;
}

.liiga-board {
  margin-top: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  padding: 1.05rem 1.05rem 1.1rem;
  box-shadow: var(--shadow);
}

.liiga-note {
  margin: 0 0 0.85rem;
}

.liiga-note:empty {
  display: none;
}

/* Flat list container — replaces the old 2-col day-card grid */
.liiga-days {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

/* Date separator pill between day groups */
.liiga-date-sep {
  margin: 0.5rem 0 0.1rem;
  display: inline-flex;
  align-self: flex-start;
  padding: 0.18rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  font-family: "Syne", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  color: rgba(232, 230, 220, 0.72);
}

.liiga-date-sep--today {
  border-color: rgba(247, 207, 119, 0.45);
  background: rgba(247, 207, 119, 0.12);
  color: rgba(255, 230, 176, 0.96);
}

/* First separator has no top margin */
.liiga-date-sep:first-child {
  margin-top: 0;
}

.liiga-game {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(11, 13, 18, 0.4);
  padding: 0.6rem 0.75rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: center;
}

/* Highlight today's games while keeping the same compact tile layout */
.liiga-game--today {
  border-color: rgba(247, 207, 119, 0.48);
  background: rgba(11, 13, 18, 0.36);
  box-shadow: none;
}

.liiga-game--today .liiga-time {
  color: rgba(255, 238, 204, 0.98);
}

.liiga-game--today .liiga-vs {
  border-color: rgba(247, 207, 119, 0.32);
  background: rgba(247, 207, 119, 0.08);
  color: rgba(255, 238, 204, 0.86);
}

/* Left column: time + league label stacked */
.liiga-game-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  min-width: 52px;
}

.liiga-time {
  font-family: "Syne", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 850;
  color: rgba(255, 230, 176, 0.96);
  letter-spacing: -0.01em;
}

.liiga-league {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(232, 230, 220, 0.62);
}

.liiga-match {
  margin-top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.42rem;
}

.liiga-team {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.liiga-team.right {
  justify-content: flex-end;
}

.liiga-logo {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  object-fit: contain;
  padding: 2px;
  flex: 0 0 28px;
}

.liiga-team-name {
  display: inline-block;
  min-width: 0;
  font-weight: 760;
  color: rgba(248, 246, 240, 0.9);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.liiga-vs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0.08rem 0.42rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: rgba(232, 230, 220, 0.72);
  background: rgba(255, 255, 255, 0.03);
}

.liiga-venue {
  margin: 0.44rem 0 0;
  color: rgba(232, 230, 220, 0.65);
  font-size: 0.84rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Inline banner strip — sits flush below the board top edge */
.liiga-punch {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1rem;
  padding: 0.6rem 0.85rem;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(247, 207, 119, 0.22), rgba(255, 178, 61, 0.12), rgba(247, 207, 119, 0.08));
  border: 1px solid rgba(247, 207, 119, 0.45);
  box-shadow: 0 0 0 1px rgba(247, 207, 119, 0.08) inset;
}

.liiga-punch-kicker {
  margin: 0;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--gold);
  font-weight: 900;
  white-space: nowrap;
  flex-shrink: 0;
}

.liiga-punch-sep {
  width: 1px;
  height: 1.1em;
  background: rgba(247, 207, 119, 0.38);
  flex-shrink: 0;
}

.liiga-punch-text {
  margin: 0;
  font-family: "Syne", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 800;
  font-size: clamp(0.88rem, 2vw, 1rem);
  color: rgba(255, 240, 208, 0.97);
  letter-spacing: -0.01em;
  line-height: 1.25;
}

/* Compact non-today tiles — use a stable grid so cards keep equal width */
.liiga-future-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
  gap: 0.55rem;
  margin-top: 0.1rem;
}

.liiga-future-row--today {
  margin-top: 0.06rem;
}

/* Compact tile for future days — overrides the grid layout from .liiga-game */
.liiga-game--future {
  width: 100%;
  min-width: 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(11, 13, 18, 0.32);
  padding: 0.56rem 0.74rem;
  /* Override .liiga-game grid to flex column */
  display: flex !important;
  flex-direction: column;
  gap: 0.44rem;
}

.liiga-game--future .liiga-match {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.08rem;
  padding-top: 0.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1;
}

.liiga-game--future .liiga-future-meta {
  display: flex;
  align-items: baseline;
  gap: 0.52rem;
  min-height: 1.3rem;
  margin-bottom: 0;
  padding-bottom: 0.06rem;
  overflow: hidden;
  position: relative;
  z-index: 3;
}

.liiga-game--future .liiga-future-meta .liiga-time {
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.83rem;
  font-weight: 800;
  line-height: 1.2;
  display: inline-block;
  overflow: hidden;
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: 0.01em;
  padding-bottom: 0.02rem;
  position: relative;
  z-index: 4;
}

.liiga-game--future .liiga-future-meta .liiga-league {
  font-size: 0.65rem;
  line-height: 1.2;
}

.liiga-game--future .liiga-logo {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

/* Keep names readable but prevent overflow in narrow cards */
.liiga-game--future .liiga-team-name {
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  min-width: 0;
}

.liiga-game--future .liiga-vs {
  font-size: 0.6rem;
  padding: 0.02rem 0.28rem;
  flex-shrink: 0;
}

.liiga-game--future .liiga-team {
  min-width: 0;
  width: 100%;
}

/* Away team: keep name+logo order from JS, align to the right edge */
.liiga-game--future .liiga-team.right {
  flex-direction: row;
  justify-content: flex-end;
}

/* Today tiles also have .liiga-game--future; force a clear gold highlight to win. */
.liiga-game--future.liiga-game--today {
  border: 1px solid rgba(247, 207, 119, 0.5);
  background: rgba(11, 13, 18, 0.32);
  box-shadow: none;
}

.liiga-game--future.liiga-game--today .liiga-match {
  border-top-color: rgba(247, 207, 119, 0.2);
}

.liiga-game--future.liiga-game--today .liiga-future-meta .liiga-time {
  color: rgba(255, 238, 204, 0.98);
}

.liiga-game--future.liiga-game--today .liiga-vs {
  border-color: rgba(247, 207, 119, 0.32);
  background: rgba(247, 207, 119, 0.08);
  color: rgba(255, 238, 204, 0.86);
}

/* Future day-group header inside the future row */
.liiga-future-day-label {
  width: 100%;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(232, 230, 220, 0.52);
  padding: 0.15rem 0;
  margin-top: 0.15rem;
}

.contact-wrap {
  margin-top: 1.1rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: start;
}

.contact-card,
.map-frame {
  border-radius: var(--radius2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow);
}

.contact-card {
  padding: 1.05rem 1.05rem 1.1rem;
}

.contact-name {
  margin: 0 0 0.55rem;
  font-family: "Syne", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 850;
  letter-spacing: -0.02em;
  font-size: 1.15rem;
  color: rgba(255, 230, 176, 0.95);
}

.contact-item {
  margin: 0.45rem 0;
  line-height: 1.2;
}

.contact-link {
  color: rgba(248, 246, 240, 0.92);
  text-decoration: none;
  border-bottom: 1px solid rgba(247, 207, 119, 0.5);
  padding-bottom: 0.12rem;
}

.contact-link:hover,
.contact-link:focus-visible {
  border-bottom-color: rgba(247, 207, 119, 0.85);
}

.map-frame {
  overflow: hidden;
  min-height: 320px;
}

.map-frame iframe {
  width: 100%;
  height: 380px;
  min-height: 320px;
  border: 0;
  display: block;
}

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(11, 13, 18, 0.6);
  backdrop-filter: blur(10px);
  padding: 0.9rem 0 0.8rem;
}

.footer-inner {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  flex-wrap: nowrap;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  color: rgba(232, 230, 220, 0.78);
  text-decoration: none;
  padding: 0.24rem 0.56rem 0.24rem 0.38rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  transition:
    color 0.24s ease,
    border-color 0.24s ease,
    background 0.24s ease,
    transform 0.24s ease;
}

.footer-social-icon {
  width: 1.65rem;
  height: 1.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(247, 207, 119, 0.18);
  background: linear-gradient(180deg, rgba(247, 207, 119, 0.12), rgba(255, 178, 61, 0.04));
  flex: 0 0 auto;
}

.footer-social-icon svg {
  width: 0.88rem;
  height: 0.88rem;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-inner .muted.tiny {
  margin: 0;
}

.footer-social-icon .footer-social-dot {
  fill: currentColor;
  stroke: none;
}

.footer-social:hover,
.footer-social:focus-visible {
  color: rgba(247, 207, 119, 0.95);
  border-color: rgba(247, 207, 119, 0.42);
  background: rgba(247, 207, 119, 0.08);
  transform: translateY(-1px);
}

.footer-location-link {
  color: rgba(247, 207, 119, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-location-link:hover {
  color: rgba(247, 207, 119, 1);
}

.skeleton {
  position: relative;
  overflow: hidden;
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.2s ease-in-out infinite;
}

.skeleton-line {
  display: inline-block;
  min-height: 1.2em;
  width: min(22rem, 90%);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
}

.skeleton-block {
  min-height: 3.6em;
  width: min(44rem, 95%);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
}

[data-reveal] {
  transform: translateY(14px);
  opacity: 0;
}

.reveal-in {
  transform: translateY(0);
  opacity: 1;
  transition: transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 700ms ease;
}

@keyframes openPulse {
  0% {
    transform: translateY(1px) scale(0.96);
    box-shadow: 0 0 0 0 rgba(80, 255, 150, 0.36);
  }
  60% {
    transform: translateY(0px) scale(1);
    box-shadow: 0 0 0 18px rgba(80, 255, 150, 0);
  }
  100% {
    transform: translateY(0px) scale(1);
    box-shadow: 0 0 0 0 rgba(80, 255, 150, 0);
  }
}

@keyframes shimmer {
  to {
    transform: translateX(100%);
  }
}

@keyframes reveal {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(3vmax, -2vmax, 0) scale(1.02);
  }
}

@media (max-width: 1120px) {
  .next-event {
    grid-template-columns: 1fr;
  }

  .next-event-media {
    width: min(94%, 820px);
    max-width: calc(100% - 1rem);
    height: auto;
    margin: 0 auto;
    display: grid;
    place-items: center;
    background: transparent;
    border: 0;
    border-radius: 0;
    isolation: auto;
  }

  .next-event-media.has-poster::before {
    content: none;
  }

  .next-event-media.has-poster::after {
    content: none;
  }

  .next-event-media img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: clamp(280px, 42vw, 420px);
    object-fit: contain;
  }
}

@media (max-width: 980px) {
  .header-cta {
    display: none;
  }

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

  .next-event {
    grid-template-columns: 1fr;
  }

  .next-event-media {
    width: min(96%, 560px);
    max-width: calc(100% - 1.25rem);
  }

  .next-event-media img {
    max-width: 100%;
    max-height: clamp(220px, 58vw, 340px);
  }

  .map-frame iframe {
    height: 320px;
  }

  .contact-wrap {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 720px) {
  .header {
    --nav-font-px: 12;
    --nav-gap-px: 8;
  }

  .header-spacer {
    width: var(--spacer-w, clamp(0px, 8vw, 96px)); /* 64px * 1.5 scale */
    min-width: 0;
  }

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

  .event-card-media {
    height: auto;
    aspect-ratio: 1 / 1;
    padding: 0.15rem;
  }

  .map-frame iframe {
    height: 320px;
  }

  .fb-shell {
    max-width: 100%;
  }

  .fb-viewport {
    --fb-crop-top: 64px;
  }

  .fb-viewport iframe {
    width: 100%;
    height: calc(760px + var(--fb-crop-top));
  }

  .brand-logo {
    width: 50px;
    height: 50px;
    min-width: 50px;
    max-width: 50px;
    min-height: 50px;
    max-height: 50px;
    flex-basis: 50px;
    /* Mobile: smaller so it won't overlap nav links */
    transform: translateY(5px) scale(1.52);
  }

  .liiga-game--future {
    gap: 0.52rem;
  }

  .liiga-game--future .liiga-future-meta {
    min-height: 1.36rem;
    padding-bottom: 0.08rem;
  }

  .liiga-game--future .liiga-future-meta .liiga-time {
    line-height: 1.24;
  }

  .liiga-game--future .liiga-match {
    margin-top: 0.1rem;
    padding-top: 0.1rem;
  }
}

.top-anchor {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
