body.cumple {
  --tinta: #1d1714;
  --papel: #f6efe3;
  --cobre: #a24d2f;
  --sobre-cobre: #fff6ec;
  --display: "IM Fell English", "Palatino Linotype", serif;
  color-scheme: light;
}

.carta-sobre {
  position: relative;
  width: min(100%, 18.5rem);
  aspect-ratio: 4 / 5;
  max-height: 23rem;
  margin-top: 1.4rem;
  overflow: hidden;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 0.5rem;
  padding: 2.2rem 1.4rem;
  border-radius: 6px;
  background: #fffbf4;
  box-shadow:
    inset 0 0 0 8px #fffbf4,
    inset 0 0 0 9px rgba(162, 77, 47, 0.35),
    0 28px 40px -18px rgba(60, 35, 15, 0.45);
}

.carta-titulo {
  margin: 0;
  font-family: var(--display);
  font-size: 2.3rem;
  line-height: 1;
  color: var(--tinta);
}

.carta-titulo em {
  display: block;
  color: var(--cobre);
  font-size: 2.9rem;
}

.carta-cuando {
  margin: 0.4rem 0 0;
  color: color-mix(in srgb, var(--tinta) 70%, transparent);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.direccion {
  margin: 0;
  font-family: var(--display);
  font-size: 1.15rem;
  font-style: italic;
  color: color-mix(in srgb, var(--tinta) 75%, transparent);
}

.solapa {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  align-content: end;
  justify-items: center;
  gap: 0.5rem;
  padding-bottom: 1.4rem;
  border-radius: 6px;
  background:
    repeating-linear-gradient(92deg, rgba(90, 55, 25, 0.05) 0 2px, transparent 2px 7px),
    linear-gradient(170deg, #d4b088, #b98d60);
  box-shadow: inset 0 0 0 1px rgba(80, 45, 20, 0.2);
  color: #3b2414;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  touch-action: none;
  cursor: grab;
}

.solapa::before {
  content: "Inés · 40";
  position: absolute;
  left: 0;
  right: 0;
  top: 38%;
  padding: 0.75rem 0;
  background: linear-gradient(#b4583a, #93412a);
  box-shadow: 0 6px 12px rgba(60, 20, 8, 0.25);
  color: #fbe6d6;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: none;
}

.solapa::after {
  content: "";
  order: -1;
  width: 26px;
  height: 26px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v16M6 14l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v16M6 14l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  animation: baja 1.6s var(--ease) infinite;
}

@keyframes baja {
  0%, 100% { transform: translateY(-3px); opacity: 0.6; }
  50% { transform: translateY(4px); opacity: 1; }
}

.solapa:active { cursor: grabbing; }

.is-revelada .solapa { pointer-events: none; }
.is-revelada .solapa::after { animation: none; opacity: 0; }
