/* The Wavito door: El Huevote asks three questions before the album opens. House palette. */
:root {
  --ink: #0c0a08; --cream: #f7efe2; --muted: #9d927f; --gold: #ffd166; --coral: #ff6b6b; --pink: #f066b6;
  --line: rgba(247, 239, 226, 0.16);
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --text: "Newsreader", "Iowan Old Style", Georgia, serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--ink); color: var(--cream); }
body.door-body {
  font-family: var(--text); font-size: 18px; line-height: 1.45;
  background:
    radial-gradient(60% 45% at 50% 0%, rgba(255, 209, 102, 0.16), transparent 70%),
    radial-gradient(50% 40% at 85% 100%, rgba(240, 102, 182, 0.12), transparent 70%),
    var(--ink);
  -webkit-font-smoothing: antialiased;
}
.door { min-height: 100svh; display: grid; place-items: center; padding: 28px 16px 40px; }
.door-card { width: min(560px, 100%); text-align: center; }
.door-egg { width: 112px; height: 140px; display: block; margin: 0 auto 10px; transform-origin: 50% 90%;
  animation: wobble 4.6s ease-in-out infinite; filter: drop-shadow(0 18px 30px rgba(255, 209, 102, 0.18)); }
.door-egg .eye { fill: var(--ink); transform-box: fill-box; transform-origin: center; animation: blink 5.2s infinite; }
.door-egg .mouth { stroke: var(--ink); transition: d .3s; }
.door-egg .crack { stroke: var(--ink); stroke-dasharray: 140; stroke-dashoffset: 140; opacity: 0; }
.door-egg.yes { animation: hop .55s var(--ease, cubic-bezier(.2,.7,.1,1)); }
.door-egg.no { animation: tilt .6s ease-in-out; }
.door-egg.open .crack { opacity: 1; animation: crack 1s forwards; }
@keyframes wobble { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes hop { 0% { transform: translateY(0) scale(1); } 35% { transform: translateY(-22px) scale(1.04, .96); } 70% { transform: translateY(0) scale(.97, 1.03); } 100% { transform: none; } }
@keyframes tilt { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-12deg); } 60% { transform: rotate(9deg); } }
@keyframes crack { to { stroke-dashoffset: 0; } }
.door-say { font-family: var(--display); font-size: clamp(21px, 5vw, 27px); line-height: 1.25; margin: 0 auto 22px; max-width: 30ch; min-height: 3.75em; text-wrap: balance; }
.door-say b { color: var(--gold); font-weight: 600; }
.door-form { margin: 0; }
.door-q:focus { outline: none; }
.door-q { border: 0; margin: 0 0 22px; padding: 0; }
.door-q legend { font-family: var(--display); font-size: clamp(22px, 5.4vw, 30px); font-weight: 600; line-height: 1.15; margin: 0 auto 14px; padding: 0; width: 100%; text-wrap: balance; }
.door-n { display: block; font-family: var(--text); font-size: 13px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.choices { display: grid; gap: 10px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span { display: block; padding: 15px 18px; border: 1px solid var(--line); border-radius: 999px; background: rgba(247, 239, 226, .04);
  transition: border-color .2s, background .2s, transform .2s, color .2s; }
@media (hover: hover) { .choice:hover span { border-color: rgba(255, 209, 102, .55); } }
.choice input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }
.choice input:checked + span { border-color: var(--gold); background: rgba(255, 209, 102, .12); }
.choice.right span { border-color: var(--gold); background: var(--gold); color: var(--ink); }
.choice.wrong span { border-color: var(--coral); color: var(--muted); text-decoration: line-through; animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.door-teach { color: var(--gold); margin: 0 0 12px; }
.door-go, .door-wordform button { font: 600 18px/1 var(--display); color: var(--ink); background: var(--gold); border: 0; border-radius: 999px;
  padding: 16px 30px; cursor: pointer; transition: transform .2s, background .2s; }
@media (hover: hover) { .door-go:hover, .door-wordform button:hover { background: #ffe09a; transform: translateY(-1px); } }
.door-go:focus-visible, .door-wordform button:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }
.js .door-q { display: none; }
.js .door-q.now { display: block; animation: rise .45s cubic-bezier(.2,.7,.1,1); }
.js .door-go { display: none; }
.js .door-go.ready { display: inline-block; animation: rise .45s cubic-bezier(.2,.7,.1,1); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.door-word { margin: 30px auto 0; color: var(--muted); font-size: 16px; }
.door-word summary { cursor: pointer; display: inline-block; padding: 6px 4px; border-bottom: 1px dotted var(--muted); list-style: none; }
.door-word summary::-webkit-details-marker { display: none; }
.door-word summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.door-wordform { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; margin-top: 14px; }
.door-wordform label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.door-wordform input { font: 18px/1.2 var(--text); color: var(--cream); background: transparent; border: 1px solid var(--line); border-radius: 999px;
  padding: 14px 18px; min-width: 0; flex: 1 1 220px; text-align: center; }
.door-wordform input:focus { outline: none; border-color: var(--gold); }
.door-wordform input::placeholder { color: var(--muted); }
.door-foot { margin: 34px auto 0; max-width: 34ch; color: var(--muted); font-style: italic; font-size: 15px; }
.door-foot span { display: block; font-style: normal; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-top: 6px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .door-egg.open .crack { stroke-dashoffset: 0; } }

.door-rooms { margin: 26px auto 0; max-width: 36ch; font-size: 15px; line-height: 1.45; color: var(--muted); text-align: center; }
