@import url('https://fonts.googleapis.com/css2?family=Lexend+Zetta:wght@400;600;700;800&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --yellow: #FFEE00;
  --yellow-bright: #FFF94D;
  --blue: #3DA9FC;
  --blue-bright: #6EC6FF;
  --bg: #050505;
  --bg-card: #101010;
  --bg-card2: #191919;
  --white: #FAFAF6;
  --gray: #8B8B85;
  --gray-light: #C9C9C2;
  --line: rgba(255, 255, 255, 0.09);
  --font-zetta: 'Lexend Zetta', 'Archivo', Arial, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --gutter: 22px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

body {
  position: relative;
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* fixed-to-viewport ambient glow — a pseudo-element instead of a fixed
   body background, so it never tiles/repeats a seam on pages taller than
   one viewport (background-attachment:fixed repeats by default) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 90% 46% at 50% -6%, #1E1B00 0%, rgba(30,27,0,0) 60%),
    linear-gradient(180deg, #0A0900 0%, var(--bg) 40%, #000000 100%);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; }
}

/* grain overlay */
.grain {
  position: fixed;
  inset: -10px;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.35;
  mix-blend-mode: soft-light;
  filter: blur(2.5px);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 140px 140px;
  background-repeat: repeat;
}

/* nav */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(5,5,5,0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
.nav__logo { height: 24px; width: auto; border-radius: 5px; }
.nav__name {
  font-family: var(--font-zetta);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-light);
}
.v-mark { text-transform: none; }

/* hero with bouncing pinball stickers */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px var(--gutter) 60px;
  overflow: hidden;
}
.hero__bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.sticker-field {
  position: absolute;
  inset: 0;
}
.sticker {
  position: absolute;
  top: 0;
  left: 0;
  height: auto;
  opacity: 0.85;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,0.55));
  will-change: transform;
  pointer-events: none;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 74% 60% at 50% 42%, rgba(5,5,5,0.32) 0%, rgba(5,5,5,0.42) 60%, rgba(5,5,5,0.72) 100%),
    linear-gradient(180deg, rgba(5,5,5,0.5) 0%, rgba(5,5,5,0.22) 26%, rgba(5,5,5,0.55) 76%, var(--bg) 100%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
  animation: heroReveal 0.9s cubic-bezier(.16,1,.3,1) both;
}
@keyframes heroReveal {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.eyebrow-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--yellow);
  margin-bottom: 18px;
  padding: 7px 14px;
  border: 1px solid rgba(255,238,0,0.3);
  border-radius: 100px;
  background: rgba(255,238,0,0.06);
}
.eyebrow-label .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 0 rgba(255,238,0,0.6);
  animation: pulseDot 1.8s ease-out infinite;
}
@keyframes pulseDot {
  0%   { box-shadow: 0 0 0 0 rgba(255,238,0,0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(255,238,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,238,0,0); }
}

h1 {
  font-family: var(--font-zetta);
  font-weight: 800;
  font-size: clamp(19px, 6.6vw, 28px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  color: var(--white);
  white-space: nowrap;
}

.description {
  color: var(--gray-light);
  font-size: 17.5px;
  line-height: 1.6;
  margin: 0 0 28px;
  text-align: justify;
  hyphens: auto;
}

.pills {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 22px;
}

.pill {
  flex: 0 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 5px;
  padding: 16px 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--white);
  background: rgba(16,16,16,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* countdown — same width/margins as the pills bar above */
.countdown {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
.countdown__unit {
  flex: 1;
  background: rgba(16,16,16,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 6px;
  text-align: center;
}
.countdown__value {
  display: block;
  font-family: var(--font-zetta);
  font-weight: 700;
  font-size: 19px;
  color: var(--yellow);
  font-variant-numeric: tabular-nums;
}
.countdown__label {
  display: block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-light);
  margin-top: 3px;
}

/* footer */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 48px var(--gutter) calc(48px + env(safe-area-inset-bottom));
  color: var(--gray);
  font-size: 14px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.footer p { margin-bottom: 8px; }
.footer a { color: var(--gray-light); }
.footer a:hover { color: var(--yellow); }
.footer__legal {
  font-size: 11px;
  letter-spacing: 0.03em;
  line-height: 1.6;
  margin-bottom: 20px;
}
.footer__contacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 0;
}
.footer__contacts a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}
.footer__contacts .icon { width: 16px; height: 16px; flex-shrink: 0; }

/* RSVP action block, under the countdown — same width/margins as the pills bar */
.rsvp-action {
  margin: 20px 0 0;
}
.cta-bar__progress { margin-bottom: 14px; }
.cta-bar__progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.cta-bar__progress-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-light);
}
.cta-bar__progress-value {
  font-family: var(--font-zetta);
  font-size: 13px;
  font-weight: 700;
  color: var(--blue-bright);
}
.progress__track {
  height: 7px;
  background: var(--bg-card2);
  border: 1px solid var(--line);
  border-radius: 100px;
  overflow: hidden;
}
.progress__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--blue-bright));
  border-radius: 100px;
  transition: width 0.5s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 0 12px rgba(61,169,252,0.5);
}

.status-line {
  text-align: center;
  padding: 14px 0 6px;
  font-family: var(--font-zetta);
  font-weight: 700;
  font-size: 15px;
}
.status-line--success { color: var(--yellow); }
.status-line--soldout { color: var(--gray-light); }
.status-line small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12.5px;
  color: var(--gray-light);
  margin-top: 4px;
  letter-spacing: 0;
  text-transform: none;
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-family: var(--font-zetta);
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: var(--yellow);
  color: #131300;
  border: none;
  border-radius: 100px;
  padding: 17px 24px;
  cursor: pointer;
  box-shadow: 0 8px 24px -8px rgba(255,238,0,0.45);
  transition: background-color 0.18s cubic-bezier(.4,0,.2,1), transform 0.12s cubic-bezier(.4,0,.2,1), box-shadow 0.18s ease, opacity 0.15s ease;
}

.btn:hover { background: var(--yellow-bright); }
.btn:active { transform: scale(0.97); box-shadow: 0 4px 14px -6px rgba(255,238,0,0.4); }
.btn:focus-visible { outline: 2px solid var(--yellow-bright); outline-offset: 3px; }

.btn:disabled {
  background: var(--bg-card2);
  color: var(--gray);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.btn--secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--line);
  box-shadow: none;
}

.btn--secondary:hover { background: rgba(255,255,255,0.05); }
.btn--secondary:active { transform: scale(0.97); }

[hidden] { display: none !important; }

/* modals — bottom sheet, high-end feel */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 200;
  animation: overlayFade 0.25s ease both;
}
@keyframes overlayFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@media (min-width: 480px) {
  .modal-overlay {
    align-items: center;
    padding: 20px;
  }
}

.modal-card {
  position: relative;
  background: linear-gradient(180deg, var(--bg-card2) 0%, var(--bg-card) 100%);
  border: 1px solid var(--line);
  border-radius: 26px 26px 0 0;
  padding: 14px 26px calc(30px + env(safe-area-inset-bottom));
  width: 100%;
  max-width: 420px;
  box-shadow: 0 -24px 60px -24px rgba(0,0,0,0.9);
  animation: sheetUp 0.38s cubic-bezier(.16,1,.3,1) both;
}
@keyframes sheetUp {
  from { transform: translateY(24px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

@media (min-width: 480px) {
  .modal-card { border-radius: 22px; padding: 28px 26px 30px; }
  .modal-card .drag-handle { display: none; }
}

.drag-handle {
  width: 36px;
  height: 4px;
  border-radius: 100px;
  background: var(--line);
  margin: 0 auto 18px;
}

.modal-card h2 {
  font-family: var(--font-zetta);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.3;
  margin: 0 0 16px;
}

.modal-card p {
  color: var(--gray-light);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0 0 20px;
}

.notice {
  background: linear-gradient(160deg, rgba(255,238,0,0.09), rgba(255,238,0,0.03));
  border: 1px solid rgba(255,238,0,0.22);
  border-radius: 16px;
  padding: 18px 18px 4px;
  margin-bottom: 22px;
}
.notice p {
  font-family: var(--font-zetta);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.75;
  color: var(--white);
  text-align: justify;
  hyphens: auto;
}

.arrow-list {
  list-style: none;
  margin: 0 0 4px;
  padding: 0;
}
.arrow-list li {
  position: relative;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.6;
  color: var(--white);
  padding-left: 20px;
  margin-bottom: 10px;
  text-align: justify;
  hyphens: auto;
}
.arrow-list li:last-child { margin-bottom: 0; }
.arrow-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--yellow);
}
.arrow-list strong { font-weight: 700; }
.notice p strong { font-weight: 700; }

.field { margin-bottom: 14px; }

.field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gray-light);
  margin-bottom: 6px;
}

.field input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 15px;
  color: var(--white);
  font-size: 16px;
  font-family: var(--font-body);
}

.field input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(61,169,252,0.15);
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 16px;
  cursor: pointer;
}
.checkbox-field input {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--yellow);
}
.checkbox-field span {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--gray-light);
}
.checkbox-field a {
  color: var(--yellow);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.checkbox-field a:hover { color: var(--yellow-bright); }

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
}

.error-text {
  color: #FF8080;
  font-size: 13px;
  margin: -6px 0 4px;
}

/* legal / terms page */
.legal {
  max-width: 620px;
  margin: 0 auto;
  padding: 96px var(--gutter) 60px;
}
.legal__back {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-light);
}
.legal__back:hover { color: var(--yellow); }
.legal__meta {
  font-size: 13px;
  color: var(--gray);
  margin: -6px 0 32px;
  line-height: 1.6;
}
.legal h1 { font-size: clamp(24px, 6vw, 32px); margin-bottom: 10px; }
.legal h3 {
  font-family: var(--font-zetta);
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--yellow);
  margin: 30px 0 12px;
}
.about__copy {
  color: var(--gray-light);
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 16px;
}
.about__copy a { color: var(--yellow); text-decoration: underline; text-underline-offset: 2px; }
.about__copy a:hover { color: var(--yellow-bright); }
.legal__list {
  margin: 0 0 16px;
  padding-left: 20px;
  color: var(--gray-light);
  font-size: 15px;
  line-height: 1.7;
}
.legal__list li { list-style: disc; margin-bottom: 6px; }
