:root {
  --cream: #fff4e6;
  --peach: #ffd4b0;
  --pink: #ff6b9d;
  --mint: #6ee7c5;
  --ink: #2a1610;
  --amber: #ffb347;
}

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

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #1a0e0a;
  color: var(--cream);
  font-family: "Fredoka", system-ui, sans-serif;
}

#stage {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.vignette {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 52%, rgba(20, 8, 4, 0.45) 100%);
  z-index: 2;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: -40px;
  z-index: 3;
  opacity: 0.08;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.7s steps(2) infinite;
}

@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-8px, 6px); }
  50% { transform: translate(6px, -10px); }
  75% { transform: translate(-4px, -4px); }
  100% { transform: translate(0, 0); }
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 180, 90, 0.18), transparent 36%),
    radial-gradient(circle at 80% 80%, rgba(255, 107, 157, 0.16), transparent 32%),
    linear-gradient(180deg, rgba(18, 8, 6, 0.28), rgba(18, 8, 6, 0.55));
  backdrop-filter: blur(10px);
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.overlay.gone {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  backdrop-filter: none;
}

html.autoplay .overlay {
  display: none !important;
}

html.autoplay .hud,
html.autoplay .footer {
  opacity: 1;
  pointer-events: auto;
}

.card {
  width: min(560px, 100%);
  text-align: center;
  animation: rise 0.8s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.portraits {
  display: flex;
  justify-content: center;
  align-items: end;
  gap: 0;
  height: 168px;
  margin-bottom: 8px;
}

.portrait {
  width: 148px;
  height: 148px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--cream);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.portrait.weazel {
  transform: rotate(-8deg) translate(10px, 8px);
  z-index: 2;
}

.portrait.van {
  transform: rotate(9deg) translate(-10px, 0);
  width: 136px;
  height: 136px;
}

.kicker {
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--peach);
  margin: 10px 0 6px;
}

h1 {
  font-family: "Lilita One", Impact, sans-serif;
  font-size: clamp(56px, 12vw, 92px);
  line-height: 0.84;
  letter-spacing: 0.02em;
  color: var(--cream);
  text-shadow:
    0 4px 0 #c45c3e,
    0 10px 0 rgba(80, 20, 10, 0.25),
    0 18px 40px rgba(0, 0, 0, 0.35);
}

.lede {
  margin: 16px auto 22px;
  max-width: 42ch;
  font-size: 15px;
  line-height: 1.45;
  color: #ffe8d2;
}

#enter {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  background: linear-gradient(180deg, #ffe08a, var(--amber));
  padding: 14px 34px;
  border-radius: 999px;
  box-shadow:
    0 0 0 4px rgba(255, 244, 230, 0.15),
    0 10px 0 #d47a1f,
    0 18px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#enter:hover {
  transform: translateY(-2px);
}

#enter:active {
  transform: translateY(6px);
  box-shadow:
    0 0 0 4px rgba(255, 244, 230, 0.15),
    0 4px 0 #d47a1f,
    0 8px 16px rgba(0, 0, 0, 0.3);
}

.hint {
  margin-top: 16px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(255, 236, 214, 0.7);
}

.hud,
.footer {
  position: fixed;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.hud {
  top: 18px;
  left: 18px;
  right: 18px;
  justify-content: space-between;
}

.footer {
  bottom: 16px;
  left: 0;
  right: 0;
  justify-content: center;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(255, 244, 230, 0.78);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hidden {
  opacity: 0;
  pointer-events: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(24, 10, 6, 0.42);
  border: 1px solid rgba(255, 244, 230, 0.14);
  backdrop-filter: blur(12px);
  padding: 7px 14px 7px 7px;
  border-radius: 999px;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.brand strong {
  display: block;
  font-family: "Lilita One", sans-serif;
  font-size: 16px;
  letter-spacing: 0.04em;
  line-height: 1;
}

.brand span {
  font-size: 11px;
  color: var(--peach);
}

.controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cams,
#mute {
  background: rgba(24, 10, 6, 0.42);
  border: 1px solid rgba(255, 244, 230, 0.14);
  backdrop-filter: blur(12px);
  border-radius: 999px;
}

.cams {
  display: flex;
  padding: 4px;
  gap: 2px;
}

.cams button,
#mute {
  font-family: inherit;
  font-weight: 600;
  font-size: 13px;
  color: var(--cream);
  border: 0;
  background: transparent;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
}

.cams button.active {
  background: linear-gradient(180deg, #ffe08a, var(--amber));
  color: var(--ink);
}

#mute {
  padding: 10px 16px;
}

#mute.on {
  background: linear-gradient(180deg, var(--mint), #3dcea6);
  color: var(--ink);
  border-color: transparent;
}

.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 8px var(--pink);
}

.bubble {
  position: fixed;
  z-index: 6;
  font-family: "Lilita One", sans-serif;
  font-size: 20px;
  color: var(--ink);
  background: var(--cream);
  padding: 8px 14px;
  border-radius: 18px 18px 18px 4px;
  box-shadow: 0 8px 0 #c45c3e, 0 14px 24px rgba(0, 0, 0, 0.25);
  transform: translate(-50%, -120%);
  pointer-events: none;
  white-space: nowrap;
}

.bubble.hidden {
  opacity: 0;
}

@media (max-width: 700px) {
  .portrait {
    width: 110px;
    height: 110px;
  }
  .portraits {
    height: 128px;
  }
  .hud {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    top: 10px;
    left: 10px;
    right: 10px;
  }
  .brand {
    padding: 5px 12px 5px 5px;
  }
  .brand img {
    width: 30px;
    height: 30px;
  }
  .controls {
    justify-content: space-between;
  }
  .footer span:first-child {
    display: none;
  }
}
