:root {
  --fondo: #050405;
  --pillola: #121012;
  --bordo: rgba(255, 244, 230, 0.11);
  --testo: #f3ede6;
  --tenue: #8a8079;
  --scuro: #070506;
  --accento: #ff7a1a;
  --alt: 72px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: var(--fondo); }
body {
  font-family: "Mona Sans Variable", system-ui, sans-serif;
  color: var(--testo);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.stage {
  position: relative;
  height: 100vh;
  width: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(60% 50% at 50% 52%, #0d0a0b 0%, var(--fondo) 70%);
}

.door {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(18px, 5vh, 30px);
  width: min(88vw, 440px);
}

.door__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}
.door__name {
  font-size: clamp(16px, 4.8vw, 20px);
  font-weight: 600;
  font-stretch: 112%;
  letter-spacing: -0.01em;
}
.door__date { font-size: 13px; color: var(--tenue); letter-spacing: 0.01em; }

.door__wrap {
  position: relative;
  display: grid;
  place-items: center;
}

/* the warm spill of the candle on the dark around the button */
.glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 340px;
  height: 180px;
  margin: -90px 0 0 -170px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 122, 26, 0.22), rgba(255, 122, 26, 0.06) 55%, transparent);
  opacity: 0;
  pointer-events: none;
  filter: blur(6px);
}

.btn {
  position: relative;
  height: min(var(--alt), 13vh);
  min-height: 48px;
  padding: 0 30px 0 24px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--testo);
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}
.btn:focus-visible .btn__fill { box-shadow: inset 0 0 0 1px var(--bordo), 0 0 0 3px rgba(255, 122, 26, 0.45); }

.btn__fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--pillola);
  box-shadow: inset 0 0 0 1px var(--bordo), inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 14px 34px -14px rgba(0, 0, 0, 0.9);
  overflow: hidden;
}
/* the light falling on the inside of the pill from the slit */
.btn__warm {
  position: absolute;
  left: -10%;
  top: -40%;
  width: 70%;
  height: 180%;
  background: radial-gradient(closest-side, rgba(255, 140, 50, 0.32), rgba(255, 122, 26, 0.08) 60%, transparent);
  opacity: 0;
}

.btn__row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
}

.slit { display: block; width: clamp(30px, 8vw, 36px); height: clamp(19px, 5.2vw, 23px); }
.slit svg { display: block; width: 100%; height: 100%; overflow: visible; }
.slit__dark { fill: var(--scuro); }
.slit__edge {
  fill: none;
  stroke: rgba(255, 244, 230, 0.32);
  stroke-width: 0.9;
  stroke-linejoin: round;
}

.btn__labels { position: relative; display: grid; overflow: visible; }
.btn__label {
  grid-area: 1 / 1;
  font-size: clamp(16px, 4.8vw, 20px);
  font-weight: 560;
  font-stretch: 104%;
  letter-spacing: -0.005em;
  white-space: nowrap;
}
.btn__label--treat { color: #ffd9b8; justify-self: start; }

.sweet {
  position: absolute;
  left: 0;
  top: 0;
  width: 48px;
  height: 24px;
  overflow: visible;
  pointer-events: none;
  opacity: 0;
}
.sweet__wrap, .sweet__twist {
  fill: #160d07;
  stroke: var(--accento);
  stroke-width: 1.3;
  stroke-linejoin: round;
}
.sweet__stripe { fill: none; stroke: rgba(255, 122, 26, 0.55); stroke-width: 1.1; stroke-linecap: round; }
.sweet__shine { fill: none; stroke: rgba(255, 236, 214, 0.75); stroke-width: 1.1; stroke-linecap: round; }
.sweet__shadow {
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 6px;
  margin: -3px 0 0 -17px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 122, 26, 0.28), transparent);
  opacity: 0;
  pointer-events: none;
}

.door__hint {
  display: grid;
  font-size: 13.5px;
  color: var(--tenue);
  text-align: center;
  min-height: 1.4em;
}
.door__hint span { grid-area: 1 / 1; }

.ptr {
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  fill: #f3ede6;
  stroke: #050405;
  stroke-width: 1.2;
  stroke-linejoin: round;
  pointer-events: none;
  opacity: 0;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.6));
}

@media (max-height: 460px) {
  .door { gap: 14px; }
  .door__head { gap: 2px; }
}
