:root {
  --color-primary: #e76a1a;
  --color-secondary: #f49b2a;
  --color-accent: #ffd26a;
  --color-text: #ffffff;
  --button-bg: #f2b043;
  --button-text: #5a2a00;
  --shadow: 0 18px 40px rgba(40, 12, 0, 0.25);
  --shadow-strong: 0 20px 50px rgba(40, 12, 0, 0.35);
  --shadow-soft: 0 12px 24px rgba(40, 12, 0, 0.2);
  --glow: 0 0 12px rgba(255, 220, 140, 0.2);
  --bg-photo-url: none;
  --bg-ball-url: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  min-height: 100vh;
  background: radial-gradient(circle at 25% 18%, rgba(255, 229, 170, 0.22), transparent 45%),
    linear-gradient(180deg, rgba(10, 5, 0, 0.35), rgba(0, 0, 0, 0.55)),
    linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: var(--color-text);
}

.page {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: clamp(28px, 5vw, 70px);
  overflow: hidden;
  isolation: isolate;
}

.page::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23noise)' opacity='0.22'/%3E%3C/svg%3E");
  opacity: 0.12;
  mix-blend-mode: soft-light;
  pointer-events: none;
  z-index: 1;
}

.bg-layer {
  position: absolute;
  pointer-events: none;
}

.bg-photo {
  left: 0;
  top: 0;
  width: 58%;
  height: 100%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.22), transparent 60%),
    linear-gradient(180deg, rgba(0, 0, 0, 0) 15%, rgba(0, 0, 0, 0.55) 100%);
  opacity: 0.95;
}

.bg-photo.has-image {
  background-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 10%, rgba(0, 0, 0, 0.35) 100%),
    var(--bg-photo-url);
  background-size: cover;
  background-position: left center;
}

.bg-ball {
  right: -10%;
  top: 0;
  width: 68%;
  height: 78%;
  border-radius: 45%;
  background: radial-gradient(circle at 30% 20%, rgba(255, 246, 214, 0.6), transparent 55%),
    radial-gradient(circle at 60% 50%, rgba(255, 210, 106, 0.8), transparent 70%);
  opacity: 0.95;
  filter: drop-shadow(0 25px 45px rgba(40, 12, 0, 0.25));
}

.bg-ball.has-image {
  background-image: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.35) 0%,
      rgba(0, 0, 0, 0.55) 100%
    ),
    var(--bg-ball-url);
  background-size: cover;
  background-position: center right;
  background-blend-mode: multiply;
  border-radius: 50%;
  filter: saturate(1.1);
}

.content {
  position: relative;
  z-index: 2;
  width: min(560px, 90vw);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  animation: fadeInUp 0.8s ease;
}

.logo-wrap {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 5px solid rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: var(--shadow-strong);
  overflow: hidden;
}

.logo-wrap::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

#logoImage {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  transform: scale(1.12);
  transform-origin: center;
  display: none;
}

#logoImage.is-visible {
  display: block;
}

#logoPlaceholder {
  font-weight: 700;
  font-size: 14px;
  color: #9e4a05;
  letter-spacing: 0.2em;
}

.tagline {
  font-weight: 600;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  text-shadow: var(--glow);
}

.headline {
  margin: 0;
  line-height: 0.9;
  font-family: "Bebas Neue", sans-serif;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-shadow: 0 10px 25px rgba(40, 12, 0, 0.28);
}

.headline-top {
  font-size: clamp(30px, 5.5vw, 42px);
  letter-spacing: 0.14em;
}

.headline-main {
  font-size: clamp(88px, 14vw, 150px);
  color: transparent;
  -webkit-text-stroke: 3px rgba(255, 255, 255, 0.9);
  text-shadow: 0 6px 16px rgba(255, 255, 255, 0.12);
}

.headline-bottom {
  font-size: clamp(36px, 6.5vw, 58px);
  letter-spacing: 0.14em;
}

.cta-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 24px;
  background: rgba(12, 6, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 20px 42px rgba(12, 6, 0, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.cta-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chevrons {
  font-weight: 700;
  color: var(--color-accent);
  font-size: 20px;
  letter-spacing: 0.06em;
  text-shadow: 0 4px 12px rgba(40, 12, 0, 0.25);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: 999px;
  background: linear-gradient(
      135deg,
      rgba(255, 223, 163, 0.98),
      rgba(222, 150, 62, 0.98)
    )
    padding-box,
    rgba(12, 6, 0, 0.55) border-box;
  color: var(--button-text);
  text-decoration: none;
  font-weight: 700;
  min-width: 260px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 36px rgba(12, 6, 0, 0.45);
  position: relative;
  overflow: hidden;
  background-size: 180% 180%, auto;
  background-position: left center, center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-position 0.25s ease;
}

.events {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 24px;
  background: rgba(12, 6, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 20px 42px rgba(12, 6, 0, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.events.replays {
  margin-top: 20px;
}

.events-header {
  text-transform: uppercase;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.events-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.event-item {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px 16px 12px 48px;
  border-radius: 18px;
  background: rgba(8, 4, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 22px rgba(10, 5, 0, 0.25);
}

.event-item::before {
  content: ">>>";
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 700;
  color: var(--color-accent);
  font-size: 18px;
  letter-spacing: 0.05em;
  text-shadow: 0 4px 12px rgba(40, 12, 0, 0.25);
}

.event-date {
  font-weight: 700;
  font-size: 18px;
  color: #ffe7b3;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 12px;
  border-radius: 999px;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.event-link {
  text-decoration: none;
  color: var(--button-text);
  background: linear-gradient(
      135deg,
      rgba(255, 223, 163, 0.98),
      rgba(222, 150, 62, 0.98)
    )
    padding-box,
    rgba(12, 6, 0, 0.55) border-box;
  border-radius: 999px;
  padding: 11px 22px;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 36px rgba(12, 6, 0, 0.45);
  text-align: center;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 12px;
  position: relative;
  overflow: hidden;
  background-size: 180% 180%, auto;
  background-position: left center, center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-position 0.25s ease;
}

.btn::after,
.event-link::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -60%;
  width: 120%;
  height: 200%;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0));
  transform: translateX(-120%) rotate(8deg);
  transition: transform 0.45s ease;
  pointer-events: none;
  opacity: 0.45;
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover,
  .event-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-strong);
    background-position: right center;
  }

  .btn:hover::after,
  .event-link:hover::after {
    transform: translateX(120%) rotate(8deg);
  }

  .btn:active,
  .event-link:active {
    transform: translateY(-1px) scale(0.99);
  }
}

.event-empty {
  font-size: 14px;
  opacity: 0.8;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1200px) {
  .content {
    width: min(520px, 92vw);
  }

  .logo-wrap {
    width: 116px;
    height: 116px;
  }

  .headline-top {
    font-size: clamp(28px, 5vw, 36px);
  }

  .headline-main {
    font-size: clamp(76px, 13vw, 130px);
  }

  .headline-bottom {
    font-size: clamp(32px, 6vw, 50px);
  }

  .btn {
    min-width: 240px;
    font-size: 12px;
  }

  .event-date {
    font-size: 18px;
  }

  .event-link {
    font-size: 11px;
  }
}

@media (max-width: 900px) {
  .page {
    justify-content: center;
    padding: 32px 20px;
  }

  .bg-photo {
    width: 100%;
    opacity: 0.35;
  }

  .bg-photo.has-image {
    background-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 10%, rgba(0, 0, 0, 0.35) 100%),
      var(--bg-photo-mobile-url, var(--bg-photo-url));
    background-size: 100% 100%, contain;
    background-position: center, center bottom;
    background-repeat: no-repeat;
  }

  .bg-ball {
    width: 90%;
    height: 60%;
    right: -20%;
  }

  .cta-group {
    padding: 16px 14px;
    border-radius: 22px;
    background: rgba(12, 6, 0, 0.5);
  }

  .events {
    padding: 16px 14px;
    border-radius: 22px;
    gap: 12px;
    background: rgba(12, 6, 0, 0.5);
  }

  .events.replays {
    margin-top: 18px;
  }

  .content {
    align-items: center;
    text-align: center;
    gap: 18px;
  }

  .logo-wrap {
    width: 108px;
    height: 108px;
  }

  .tagline {
    letter-spacing: 0.16em;
  }

  .headline-top {
    font-size: clamp(24px, 6vw, 34px);
  }

  .headline-main {
    font-size: clamp(68px, 16vw, 110px);
    -webkit-text-stroke: 2.5px rgba(255, 255, 255, 0.9);
  }

  .headline-bottom {
    font-size: clamp(28px, 7vw, 44px);
  }

  .cta-item {
    justify-content: center;
  }

  .btn {
    min-width: 220px;
    letter-spacing: 0.1em;
  }

  .event-item {
    grid-template-columns: 1fr;
    padding: 14px 12px;
    justify-items: center;
    text-align: center;
  }

  .event-item::before {
    display: none;
  }

  .event-date {
    font-size: 18px;
  }

  .event-link {
    padding: 12px 22px;
    font-size: 12px;
    width: min(280px, 100%);
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .page {
    padding: 28px 18px 36px;
  }

  .logo-wrap {
    width: 96px;
    height: 96px;
  }

  .tagline {
    font-size: 11px;
    letter-spacing: 0.14em;
  }

  .headline-top {
    font-size: clamp(22px, 7vw, 30px);
  }

  .headline-main {
    font-size: clamp(60px, 18vw, 92px);
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.9);
  }

  .headline-bottom {
    font-size: clamp(26px, 8vw, 38px);
  }

  .cta-group {
    gap: 12px;
  }

  .btn {
    min-width: 200px;
    padding: 10px 18px;
    font-size: 11px;
  }

  .chevrons {
    font-size: 16px;
  }

  .events-header {
    font-size: 10px;
    letter-spacing: 0.14em;
  }

  .event-date {
    font-size: 16px;
    padding: 6px 12px;
  }

  .event-link {
    padding: 14px 24px;
    font-size: 12px;
    width: 100%;
  }
}
