@font-face {
  font-family: "Mont";
  src: url("fonts/Mont-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Mont";
  src: url("fonts/mont-bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #000;
  --fg: #fff;
  --accent: #f5a2b5;
  --muted: rgba(255, 255, 255, 0.72);
  --page-max: 720px;
  --pad-x: clamp(20px, 5vw, 48px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Mont", system-ui, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  position: relative;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

.glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    ellipse 55% 45% at 50% 32%,
    rgba(160, 48, 82, 0.55) 0%,
    rgba(130, 36, 66, 0.38) 25%,
    rgba(90, 24, 50, 0.18) 50%,
    rgba(50, 12, 28, 0.05) 70%,
    transparent 85%
  );
}

@media (max-width: 640px) {
  .glow {
    background: radial-gradient(
      ellipse 120% 45% at 50% 32%,
      rgba(175, 54, 90, 0.62) 0%,
      rgba(140, 40, 72, 0.44) 25%,
      rgba(95, 26, 54, 0.22) 50%,
      rgba(55, 14, 30, 0.07) 70%,
      transparent 88%
    );
  }
  animation: glow-pulse 9s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
  from {
    opacity: 1;
  }
  to {
    opacity: 0.82;
  }
}

.petals-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.petals-layer img {
  position: absolute;
  top: -15vh;
  will-change: transform, opacity;
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
}

.dark-veil {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0) 38%,
    rgba(0, 0, 0, 0.45) 50%,
    rgba(0, 0, 0, 0.9) 60%,
    #000 68%,
    #000 100%
  );
}

.page {
  position: relative;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: clamp(10px, 1.5vw, 18px) var(--pad-x) clamp(48px, 8vw, 96px);
  text-align: center;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 4vw, 32px);
  margin-bottom: 6px;
  position: relative;
  z-index: 4;
}

.brand__logo {
  height: clamp(27px, 4.9vw, 39px);
  width: auto;
  object-fit: contain;
}

.brand__logo--korolova {
  height: clamp(32px, 6vw, 48px);
}

.brand__x {
  font-weight: 700;
  font-size: clamp(15px, 2.5vw, 22px);
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--fg);
  opacity: 0.95;
}

.presents {
  font-weight: 700;
  letter-spacing: 0.22em;
  font-size: clamp(12px, 1.7vw, 15px);
  margin-bottom: clamp(2px, 0.5vw, 6px);
  color: var(--fg);
  position: relative;
  z-index: 4;
}

.hero {
  display: flex;
  justify-content: center;
  margin-bottom: 0;
}

.hero__photo {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.headliner {
  margin-top: clamp(-420px, -52%, -220px);
  position: relative;
  z-index: 4;
  margin-bottom: 6px;
}

.lineup,
.event-meta,
.venue,
.cta-wrap {
  position: relative;
  z-index: 4;
}

.headliner__name {
  font-weight: 700;
  font-size: clamp(44px, 9vw, 88px);
  letter-spacing: 0.01em;
  line-height: 1;
}

.lineup {
  margin-bottom: clamp(18px, 3vw, 28px);
}

.lineup__main {
  font-weight: 700;
  font-size: clamp(16px, 2.7vw, 24px);
  line-height: 1.15;
  letter-spacing: 0.02em;
  margin-bottom: clamp(10px, 1.8vw, 16px);
}

.lineup__main li {
  margin-bottom: 2px;
}

.lineup__main em {
  font-style: normal;
  font-weight: 700;
  opacity: 0.95;
}

.lineup__country {
  font-weight: 700;
  font-size: 0.72em;
  letter-spacing: 0.02em;
  vertical-align: baseline;
  margin-left: 0.25em;
  opacity: 0.9;
}

.lineup__sub {
  font-weight: 700;
  font-size: clamp(9px, 1.3vw, 11px);
  letter-spacing: 0.08em;
  line-height: 1.5;
  color: var(--fg);
}

.event-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 4vw, 40px);
  margin-bottom: clamp(8px, 1.4vw, 14px);
}

.event-meta__date,
.event-meta__time {
  font-weight: 700;
  font-size: clamp(34px, 6.5vw, 62px);
  letter-spacing: 0.01em;
  color: var(--accent);
  line-height: 1;
}

.event-meta__captive {
  height: clamp(48px, 8vw, 74px);
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.venue {
  font-weight: 700;
  font-style: normal;
  font-size: clamp(11px, 1.6vw, 14px);
  letter-spacing: 0.18em;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 10px;
}

.terms-link {
  position: relative;
  z-index: 4;
  display: inline-block;
  background: transparent;
  border: 0;
  padding: 4px 6px;
  font-family: inherit;
  font-weight: 400;
  font-size: clamp(10px, 1.3vw, 12px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.25);
  text-underline-offset: 4px;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}

.terms-link:hover,
.terms-link:focus-visible {
  color: var(--accent);
  text-decoration-color: var(--accent);
  outline: none;
}

.cta-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: clamp(18px, 3vw, 28px);
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 38px;
  background: var(--accent);
  color: #0a0a0a;
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: clamp(13px, 1.8vw, 16px);
  border-radius: 999px;
  transition: transform 200ms ease, box-shadow 200ms ease, background-color 200ms ease;
  box-shadow: 0 10px 30px rgba(245, 162, 181, 0.22);
}

.cta:hover,
.cta:focus-visible {
  transform: translateY(-2px);
  background: #ffbac9;
  box-shadow: 0 14px 40px rgba(245, 162, 181, 0.35);
  outline: none;
}

.cta__arrow {
  transition: transform 200ms ease;
  font-weight: 700;
}

.cta:hover .cta__arrow {
  transform: translateX(4px);
}

.terms {
  position: fixed;
  inset: 0;
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--fg);
  width: min(720px, 94vw);
  max-height: 90vh;
  border-radius: 16px;
  overflow: hidden;
}

.terms::backdrop {
  background: rgba(0, 0, 0, 0.75);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.terms[open] {
  animation: terms-in 220ms ease-out;
}

@keyframes terms-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.terms__inner {
  background: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  overflow: hidden;
}

.terms__header {
  position: relative;
  padding: clamp(20px, 3vw, 32px) clamp(48px, 6vw, 64px) clamp(14px, 2vw, 20px) clamp(20px, 4vw, 40px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.terms__title {
  font-weight: 700;
  font-size: clamp(16px, 2.4vw, 22px);
  line-height: 1.25;
  letter-spacing: 0.01em;
  margin: 0;
}

.terms__subtitle {
  margin-top: 6px;
  font-size: clamp(11px, 1.5vw, 13px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.terms__close {
  position: absolute;
  top: clamp(14px, 2vw, 20px);
  right: clamp(14px, 2vw, 20px);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--fg);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.terms__close:hover,
.terms__close:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: #0a0a0a;
  outline: none;
}

.terms__body {
  padding: clamp(16px, 2.6vw, 28px) clamp(20px, 4vw, 40px) clamp(24px, 4vw, 40px);
  overflow-y: auto;
  font-weight: 400;
  font-size: clamp(13px, 1.6vw, 15px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  scrollbar-width: thin;
  scrollbar-color: rgba(245, 162, 181, 0.4) transparent;
}

.terms__body::-webkit-scrollbar {
  width: 8px;
}

.terms__body::-webkit-scrollbar-thumb {
  background: rgba(245, 162, 181, 0.35);
  border-radius: 999px;
}

.terms__body p {
  margin: 0 0 12px;
}

.terms__body h3 {
  font-weight: 700;
  font-size: clamp(14px, 1.8vw, 17px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg);
  margin: 22px 0 10px;
}

.terms__body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  word-break: break-word;
}

.terms__body a:hover {
  text-decoration-color: transparent;
}

.terms__body strong {
  color: var(--fg);
  font-weight: 700;
}

.terms__body ul {
  padding-left: 0;
  list-style: none;
  margin: 0 0 12px;
}

.terms__body ul li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
}

.terms__body ul li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.terms__event {
  margin: 8px 0 18px;
  padding: 14px 18px;
  border: 1px solid rgba(245, 162, 181, 0.22);
  border-radius: 10px;
  background: rgba(245, 162, 181, 0.05);
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.terms__event div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: baseline;
}

.terms__event dt {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  min-width: 180px;
}

.terms__event dd {
  margin: 0;
  color: var(--fg);
  font-weight: 700;
}

@media (max-width: 480px) {
  .headliner {
    margin-top: clamp(-280px, -44%, -140px);
  }
  .event-meta {
    gap: 14px;
  }
  .lineup__main {
    letter-spacing: 0.01em;
  }
}

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

.brand,
.presents,
.hero__photo,
.headliner,
.lineup__main,
.lineup__sub,
.event-meta,
.cta-wrap,
.venue,
.terms-link {
  animation: appear 800ms cubic-bezier(0.22, 0.61, 0.36, 1) backwards;
}

.brand { animation-delay: 100ms; }
.presents { animation-delay: 220ms; }
.hero__photo { animation-delay: 340ms; }
.headliner { animation-delay: 560ms; }
.lineup__main { animation-delay: 720ms; }
.lineup__sub { animation-delay: 860ms; }
.event-meta { animation-delay: 1000ms; }
.cta-wrap { animation-delay: 1160ms; }
.venue { animation-delay: 1300ms; }
.terms-link { animation-delay: 1420ms; }

.glow {
  opacity: 0;
  animation: glow-fade-in 1400ms ease-out forwards,
             glow-pulse 9s ease-in-out 1400ms infinite alternate;
}

@keyframes glow-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------------------------------------------------------------------------
   Status pages (success / fail / 404) — shared centred layout
--------------------------------------------------------------------------- */

.page--state {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 26px);
  max-width: 600px;
  padding-top: clamp(48px, 8vw, 80px);
  padding-bottom: clamp(48px, 8vw, 80px);
}

.page--state .brand {
  margin-bottom: clamp(8px, 2vw, 18px);
}

.state__badge {
  position: relative;
  z-index: 4;
  width: clamp(72px, 12vw, 96px);
  height: clamp(72px, 12vw, 96px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(245, 162, 181, 0.4);
  background: rgba(245, 162, 181, 0.08);
  color: var(--accent);
  box-shadow: 0 12px 40px rgba(245, 162, 181, 0.18);
}

.state__badge svg {
  width: 46%;
  height: 46%;
}

.state__badge--code {
  width: auto;
  height: auto;
  padding: clamp(8px, 2vw, 14px) clamp(20px, 5vw, 34px);
  border-radius: 18px;
  font-weight: 700;
  font-size: clamp(56px, 16vw, 104px);
  letter-spacing: 0.04em;
  line-height: 1;
}

.state__title {
  position: relative;
  z-index: 4;
  font-weight: 700;
  font-size: clamp(26px, 5.5vw, 46px);
  line-height: 1.12;
  letter-spacing: 0.01em;
}

.state__text {
  position: relative;
  z-index: 4;
  max-width: 460px;
  font-size: clamp(14px, 1.9vw, 17px);
  line-height: 1.6;
  color: var(--muted);
}

.state__text strong {
  color: var(--fg);
  font-weight: 700;
}

.state__recap {
  position: relative;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2vw, 16px);
  padding: 14px 22px;
  border: 1px solid rgba(245, 162, 181, 0.22);
  border-radius: 999px;
  background: rgba(245, 162, 181, 0.05);
  font-weight: 700;
  font-size: clamp(12px, 1.6vw, 15px);
  letter-spacing: 0.12em;
  color: var(--fg);
}

.state__recap span {
  white-space: nowrap;
}

.state__recap i {
  font-style: normal;
  color: rgba(245, 162, 181, 0.55);
}

.state__actions {
  position: relative;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: clamp(4px, 1vw, 10px);
}

.cta--ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: none;
}

.cta--ghost:hover,
.cta--ghost:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: none;
}

.state__note {
  position: relative;
  z-index: 4;
  font-size: clamp(11px, 1.4vw, 13px);
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.45);
}

.state__note a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page--state .brand,
.page--state .state__badge,
.page--state .state__title,
.page--state .state__text,
.page--state .state__recap,
.page--state .state__actions,
.page--state .state__note {
  animation: appear 760ms cubic-bezier(0.22, 0.61, 0.36, 1) backwards;
}

.page--state .brand { animation-delay: 80ms; }
.page--state .state__badge { animation-delay: 200ms; }
.page--state .state__title { animation-delay: 340ms; }
.page--state .state__text { animation-delay: 460ms; }
.page--state .state__recap { animation-delay: 560ms; }
.page--state .state__actions { animation-delay: 660ms; }
.page--state .state__note { animation-delay: 780ms; }

@media (prefers-reduced-motion: reduce) {
  .petals-layer {
    display: none;
  }
  .brand,
  .presents,
  .hero__photo,
  .headliner,
  .lineup__main,
  .lineup__sub,
  .event-meta,
  .cta-wrap,
  .venue,
  .terms-link,
  .glow,
  .page--state .brand,
  .page--state .state__badge,
  .page--state .state__title,
  .page--state .state__text,
  .page--state .state__recap,
  .page--state .state__actions,
  .page--state .state__note {
    animation: none;
  }
}
