:root {
  --cream: #FAF5E8;
  --ink: #111;
  --yellow: #FFE66D;
  --pink: #FFB3C7;
  --mint: #B8F2D8;
  --blue: #B5D8FF;
  --lavender: #DDB8FF;
  --shadow: 5px 5px 0 #111;
  --shadow-sm: 3px 3px 0 #111;
  --shadow-lg: 8px 8px 0 #111;
}

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

html, body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  line-height: 1.5;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(0,0,0,0.08) 1px, transparent 0);
  background-size: 18px 18px;
  min-height: 100vh;
}

.screen { display: none; }
.screen.active { display: block; }

.hidden { display: none !important; }

/* ---------- LOADING ---------- */
#loading {
  min-height: 100vh;
  align-items: center;
  justify-content: center;
}
#loading.active { display: flex; }
.loader { text-align: center; padding: 24px; }
.blob {
  width: 80px; height: 80px; margin: 0 auto 24px;
  background: var(--yellow);
  border: 3px solid var(--ink);
  border-radius: 50%;
  box-shadow: var(--shadow);
  animation: bounce 1.2s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-12px) scale(1.05); }
}
.loader-text {
  font-family: 'Archivo Black', sans-serif;
  font-size: 22px;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

/* ---------- TYPOGRAPHY ---------- */
.display {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(40px, 8vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}
.sub {
  font-size: clamp(18px, 2.4vw, 22px);
  max-width: 560px;
  margin-bottom: 32px;
}
.rainbow {
  background: linear-gradient(90deg, #FF6B9D 0%, #FFD93D 25%, #6BCB77 50%, #4D96FF 75%, #B388FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* ---------- STICKER ---------- */
.sticker {
  display: inline-block;
  background: var(--ink);
  color: var(--cream);
  font-family: 'Archivo Black', sans-serif;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}
.rotate-left  { transform: rotate(-3deg); }
.rotate-right { transform: rotate(2deg); }

/* ---------- PILLS / BUTTONS ---------- */
.pill {
  display: inline-block;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 12px 22px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
  background: white;
}
.pill:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.pill:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.pill.big { font-size: 19px; padding: 16px 28px; box-shadow: var(--shadow); }
.pill-yellow { background: var(--yellow); }
.pill-pink   { background: var(--pink); }
.pill-mint   { background: var(--mint); }
.pill-blue   { background: var(--blue); }
.pill-lav    { background: var(--lavender); }

/* ---------- OUTSIDE ---------- */
.outside-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}
.video-card {
  background: white;
  border: 3px solid var(--ink);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  padding: 18px;
  margin: 32px 0;
  position: relative;
  overflow: hidden;
}
.video-card::before {
  content: "";
  position: absolute; top: -40px; right: -40px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, var(--pink) 0%, transparent 70%);
  pointer-events: none;
}
.video-label {
  font-family: 'Archivo Black', sans-serif;
  font-size: 14px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 540px;
  background: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 14px;
}
.video-frame iframe,
.video-frame video {
  width: 100%; height: 100%;
  border: 0;
  display: block;
}
.video-fallback {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  height: 100%;
  color: var(--cream);
  text-align: center;
  padding: 24px;
  background:
    repeating-linear-gradient(45deg, #1a1a1a 0 14px, #111 14px 28px);
}
.video-fallback .emoji { font-size: 64px; margin-bottom: 12px; }
.video-fallback p { font-family: 'Archivo Black', sans-serif; font-size: 20px; }

.flight-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

/* ---------- INSIDE ---------- */
#inside { padding: 32px 20px 80px; max-width: 1100px; margin: 0 auto; }
.hero { text-align: left; padding: 24px 0 24px; }

.counter-card {
  background: white;
  border: 3px solid var(--ink);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  padding: 32px 28px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}
.counter-card::after {
  content: "";
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, var(--yellow) 0%, transparent 70%);
  pointer-events: none;
}
.counter-label {
  font-family: 'Archivo Black', sans-serif;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  position: relative;
}
.counter-num {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(64px, 14vw, 144px);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 18px;
  position: relative;
}
.counter-bar {
  height: 18px;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.counter-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #FF6B9D, #FFD93D, #6BCB77, #4D96FF);
  background-size: 200% 100%;
  animation: shimmer 4s linear infinite;
  transition: width 0.8s cubic-bezier(.2,.8,.2,1);
}
@keyframes shimmer {
  0%   { background-position:   0% 50%; }
  100% { background-position: 200% 50%; }
}
.counter-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-weight: 700;
  font-size: 14px;
  position: relative;
}

/* ---------- SIGNUP ---------- */
.signup-card {
  background: var(--lavender);
  border: 3px solid var(--ink);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  padding: 28px;
  margin-bottom: 36px;
}
.signup-label {
  display: block;
  font-family: 'Archivo Black', sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.input-row {
  display: flex;
  align-items: center;
  background: white;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 6px 18px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.at {
  font-family: 'Archivo Black', sans-serif;
  font-size: 22px;
  margin-right: 8px;
  color: #888;
}
#username {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  padding: 12px 0;
  font-weight: 500;
}
.hint { font-size: 14px; margin-top: 12px; opacity: 0.75; }

/* ---------- WALL ---------- */
.wall { margin-bottom: 32px; }
.wall-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
  border-bottom: 2px dashed var(--ink);
  padding-bottom: 8px;
}
.wall-header h2 {
  font-family: 'Archivo Black', sans-serif;
  font-size: 28px;
  letter-spacing: -0.02em;
}
.wall-count {
  background: var(--ink);
  color: var(--cream);
  font-family: 'Archivo Black', sans-serif;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.wall-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.wall-tag {
  background: white;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  animation: pop 0.4s cubic-bezier(.2,1.4,.4,1);
}
.wall-tag:nth-child(5n+1) { background: var(--yellow); }
.wall-tag:nth-child(5n+2) { background: var(--pink); }
.wall-tag:nth-child(5n+3) { background: var(--mint); }
.wall-tag:nth-child(5n+4) { background: var(--blue); }
.wall-tag:nth-child(5n+5) { background: var(--lavender); }

@keyframes pop {
  0%   { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1);   opacity: 1; }
}

.foot {
  text-align: center;
  font-size: 14px;
  opacity: 0.7;
  margin-top: 40px;
}
.foot a { color: var(--ink); }

/* ---------- TOAST ---------- */
.toast {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: var(--cream);
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 100;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .pill.big { width: 100%; text-align: center; }
  .flight-row .pill { flex: 1 1 100%; text-align: center; }
}
