:root {
  --blue: #3d64af;
  --yellow: #f8c025;
  --yellow-hover: #ffd140;
  --cream: #fff8ec;
  --ink: #20263a;
  --ink-2: #414a63;
  --ink-3: #6a7288;
  --ink-4: #7c8499;
  --pale: #c8cee0;
  --sky: #dbe4f6;
  --card-border: rgba(32, 38, 58, 0.1);
  --card-shadow: 0 6px 16px rgba(32, 38, 58, 0.07);
  --col: 480px;
  --font-body: 'Nunito', system-ui, sans-serif;
  --font-display: 'Fredoka', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

.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;
}

html, body {
  width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

/* Header: blue band with confetti and the floating logo */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--blue);
  padding: 18px 16px 26px;
}

.hero-inner {
  position: relative;
  max-width: calc(var(--col) - 32px);
  margin: 0 auto;
}

.logo {
  display: block;
  width: 100%;
  height: 100px;
  object-fit: cover;
  object-position: center 52%;
  border-radius: 14px;
  animation: mf-float 6s ease-in-out infinite;
}

.confetti {
  position: absolute;
  top: -10px;
  animation: mf-fall linear infinite;
}

.c1 { left: 8%;  width: 9px;  height: 9px; border-radius: 2px;  background: var(--yellow); animation-duration: 4.2s; }
.c2 { left: 22%; width: 7px;  height: 7px; border-radius: 50%; background: #fff;          animation-duration: 5.1s; animation-delay: 0.4s; }
.c3 { left: 37%; width: 10px; height: 5px; border-radius: 2px;  background: #ff9f6b;       animation-duration: 4.7s; animation-delay: 0.9s; }
.c4 { left: 52%; width: 8px;  height: 8px; border-radius: 2px;  background: var(--yellow); animation-duration: 5.6s; animation-delay: 0.2s; }
.c5 { left: 66%; width: 6px;  height: 6px; border-radius: 50%; background: #9ad6ff;       animation-duration: 4.4s; animation-delay: 1.3s; }
.c6 { left: 79%; width: 9px;  height: 5px; border-radius: 2px;  background: #fff;          animation-duration: 5.3s; animation-delay: 0.7s; }
.c7 { left: 91%; width: 8px;  height: 8px; border-radius: 2px;  background: var(--yellow); animation-duration: 4.9s; animation-delay: 1.6s; }

/* Page column */

.page {
  max-width: var(--col);
  margin: 0 auto;
  padding: 20px 16px 34px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 20px;
  box-shadow: var(--card-shadow);
}

/* Poster */

.poster-card {
  padding: 12px;
}

.poster {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #141f3d;
  aspect-ratio: 4 / 5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 16px;
  color: #fff;
}

#event-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 16, 34, 0.72) 0%, rgba(10, 16, 34, 0.28) 34%, rgba(10, 16, 34, 0.52) 62%, rgba(10, 16, 34, 0.92) 100%);
}

.snow {
  position: absolute;
  top: -12px;
  border-radius: 50%;
  animation: mf-fall linear infinite;
}

.s1 { left: 12%; width: 6px; height: 6px; background: #fff;       opacity: 0.8;  animation-duration: 6.5s; }
.s2 { left: 31%; width: 4px; height: 4px; background: var(--sky);                animation-duration: 8s;   animation-delay: 1.1s; }
.s3 { left: 48%; width: 7px; height: 7px; background: #fff;       opacity: 0.7;  animation-duration: 7.2s; animation-delay: 0.5s; }
.s4 { left: 64%; width: 5px; height: 5px; background: var(--sky);                animation-duration: 9s;   animation-delay: 1.8s; }
.s5 { left: 82%; width: 6px; height: 6px; background: #fff;       opacity: 0.75; animation-duration: 6.8s; animation-delay: 0.9s; }

.poster-top {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(248, 192, 37, 0.16);
  border: 1px solid rgba(248, 192, 37, 0.45);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--yellow);
}

.poster-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
}

.poster-title span {
  color: var(--yellow);
}

.poster-bottom {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.poster-when {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--yellow);
}

.poster-desc {
  font-size: 13px;
  line-height: 1.4;
  color: var(--sky);
}

.poster-brand {
  margin-top: 6px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

/* Time and place */

.info-card {
  padding: 16px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
}

.twinkle {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--yellow);
  animation: mf-twinkle 2.4s ease-in-out infinite;
}

.event {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 13px;
  border-radius: 14px;
  background: var(--cream);
  border: 1px solid rgba(248, 192, 37, 0.4);
}

.event-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.event-text strong {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.15;
}

.event-title {
  font-size: 13.5px;
  color: var(--ink-2);
}

.event-venue {
  font-size: 13px;
  color: var(--ink-3);
}

.event-venue a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.price {
  padding: 8px 12px;
  border-radius: 11px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 800;
  font-size: 15px;
}

/* Tickets: counter, total, payment */

.tickets {
  background: var(--ink);
  border-radius: 20px;
  padding: 16px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tickets-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tickets-label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.eyebrow {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--yellow);
}

.tickets-title {
  font-size: 14px;
  color: var(--pale);
}

.counter {
  display: flex;
  align-items: center;
  gap: 10px;
}

.counter-btn {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 14px;
  font-family: var(--font-body);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 120ms ease, opacity 120ms ease;
}

.counter-btn.dec {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 700;
}

.counter-btn.dec:hover {
  background: rgba(255, 255, 255, 0.16);
}

.counter-btn.inc {
  border: none;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 800;
}

.counter-btn.inc:hover {
  background: var(--yellow-hover);
}

.counter-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.qty {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  min-width: 24px;
  text-align: center;
}

.total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.25);
}

.total-label {
  font-size: 14px;
  color: var(--pale);
}

.total {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  color: var(--yellow);
}

.btn {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  border-radius: 15px;
  font-family: var(--font-body);
  font-weight: 800;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 120ms ease;
}

.btn-primary {
  border: none;
  background: var(--yellow);
  color: var(--ink);
  padding: 15px;
  font-size: 16.5px;
}

.btn-primary:hover {
  background: var(--yellow-hover);
}

.btn-ghost {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  color: #fff;
  padding: 14px;
  font-size: 15px;
}

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

.btn-ghost.copied {
  border-color: rgba(248, 192, 37, 0.6);
  color: var(--yellow);
}

.btn:focus-visible,
.counter-btn:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

/* Programme */

.program {
  position: relative;
  background: #fff;
  border: 2px dashed var(--blue);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.program-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
}

.program-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.program-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: baseline;
}

.program-list .num {
  color: var(--blue);
  font-weight: 800;
  font-size: 14px;
}

.program-list .text {
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-2);
}

/* Footer note */

.footer-note {
  margin: 2px 0 0;
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-4);
}

.footer-note a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* 404 */

.not-found {
  padding-top: 32px;
}

.not-found-card {
  padding: 24px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.not-found-card h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
}

.not-found-card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-2);
}

.not-found-card .btn {
  width: auto;
  margin-top: 8px;
  padding: 13px 22px;
}

/* Motion */

@keyframes mf-float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-7px) rotate(-2deg); }
}

@keyframes mf-fall {
  0% { transform: translateY(-20px) rotate(0); opacity: 0; }
  12% { opacity: 1; }
  100% { transform: translateY(300px) rotate(420deg); opacity: 0; }
}

@keyframes mf-twinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.1); }
}

@media (prefers-reduced-motion: reduce) {
  .confetti,
  .snow {
    display: none;
  }

  .logo,
  .twinkle {
    animation: none;
  }
}
