/* the door, plainer than the error pages: the place's mark and name, lines to type on, words to press, hearts rising behind */
body.door-page { background: var(--bg); overflow: hidden; }
.hearts { position: fixed; inset: 0; pointer-events: none; overflow: hidden; contain: strict; }
.hearts svg { position: absolute; bottom: -48px; fill: currentColor; animation: rise var(--t) linear var(--d) infinite; will-change: transform; }
@keyframes rise {
  from { transform: translate3d(0, 0, 0) rotate(var(--r)); }
  50% { transform: translate3d(var(--sway), -58vh, 0) rotate(0deg); }
  to { transform: translate3d(0, calc(-100vh - 96px), 0) rotate(calc(var(--r) * -1)); }
}
.door { position: relative; z-index: 1; width: min(272px, 100%); gap: 6px; }
.who { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; }
.who img { width: 30px; height: 30px; object-fit: contain; border-radius: 7px; }
.who b { color: var(--bright); font-weight: 400; font-size: 17px; }
.who i { color: var(--dim); font-style: normal; font-size: 17px; }
.door input { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 7px 1px; font-size: 14px; }
.door input:focus { border-color: var(--wave); }
.door input:-webkit-autofill { -webkit-text-fill-color: var(--bright); box-shadow: 0 0 0 40px var(--bg) inset; caret-color: var(--bright); }
.door button { align-self: flex-start; margin: 10px 0 0; padding: 2px 0; background: none; border: 0; border-bottom: 1px solid transparent; border-radius: 0; color: var(--bright); font-size: 14px; }
.door button:hover, .door button:focus-visible { border-bottom-color: var(--wave); outline: none; }
.door a { margin-top: 2px; }
/* a season's shapes: leaves and snow fall instead, ghosts fade in and out as they go */
.hearts svg.fall { bottom: auto; top: -48px; animation-name: fall; }
.hearts svg.fade { animation: rise var(--t) linear var(--d) infinite, fade var(--f) ease-in-out var(--d) infinite; }
@keyframes fall {
  from { transform: translate3d(0, 0, 0) rotate(var(--r)); }
  50% { transform: translate3d(var(--sway), 58vh, 0) rotate(0deg); }
  to { transform: translate3d(0, calc(100vh + 96px), 0) rotate(calc(var(--r) * -1)); }
}
@keyframes fade { 0%, 100% { opacity: 0; } 50% { opacity: var(--o); } }
/* each one comes up out of nothing as the page opens; a pumpkin's candle and the snow's glint flicker, a leaf turns in
   the air, and its halo may spill past its box */
.hearts svg { overflow: visible; }
.hearts .in { animation: enter 2.6s ease-out var(--in, 0s) both; }
.hearts .glow { animation: flicker var(--k, 2.6s) linear infinite; }
.hearts .flutter { transform-box: fill-box; transform-origin: center; animation: flutter var(--k, 2.6s) ease-in-out infinite alternate; }
@keyframes enter { from { opacity: 0; } }
@keyframes flicker { 0%, 100% { opacity: .85; } 12% { opacity: 1; } 21% { opacity: .62; } 33% { opacity: .95; } 48% { opacity: .78; } 61% { opacity: 1; } 77% { opacity: .7; } }
@keyframes flutter { from { transform: rotate(-24deg) scaleX(1); } 50% { transform: rotate(4deg) scaleX(.45); } to { transform: rotate(28deg) scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  .hearts svg, .hearts svg.fall, .hearts svg.fade { animation: none; bottom: auto; top: var(--y); }
  .hearts .in, .hearts .glow, .hearts .flutter { animation: none; }
  .door .get .ways a { transition: none; }
  .door .get .ways a:hover { transform: none; }
}
/* a password row: the line to type on, the canvas the scribble shows the letters on, the eye at its end */
.pw { position: relative; display: block; }
.pw[hidden] { display: none; }
.pw input { width: 100%; box-sizing: border-box; padding-right: 30px; touch-action: none; }
.pw canvas { position: absolute; left: 0; top: 0; width: calc(100% - 30px); height: 100%; pointer-events: none; }
.pw .eye { position: absolute; right: 0; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 26px; height: 26px; margin: 0; padding: 0; border: 0; color: var(--dim); background: none; cursor: pointer; }
.pw .eye:hover, .pw .eye:focus-visible { color: var(--bright); border: 0; outline: none; }
.pw .eye svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pw .eye.open .shut { display: none; }
.pw .eye.open { color: var(--wave); }
.pw.off input { border-bottom-color: var(--accent); }
.pw.on input { border-bottom-color: #5fd38a; }
.ways { display: flex; gap: 14px; }
.ways a[hidden] { display: none; }
/* the launcher under the sign-in, past a hairline: its name and version, then its downloads; scoped to the door, as the
   people pages carry this sheet and have a .get of their own */
/* nothing said, nothing there: an empty status line never pushes the launcher down */
#said:empty { display: none; }
.door .get { display: flex; flex-direction: column; gap: 4px; margin-top: 2px; padding-top: 14px; border-top: 1px solid var(--line); }
.door .get .ways { align-items: center; gap: 8px; }
.door .get .ways a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 40px; height: 36px; margin: 0; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); font-size: 12px; transition: color .2s, border-color .2s, box-shadow .2s, transform .18s ease-out; }
.door .get .ways a[hidden] { display: none; }
.door .get .ways a.lit { color: var(--bright); border-color: rgba(163, 92, 240, .55); box-shadow: 0 0 14px rgba(163, 92, 240, .22); }
.door .get .ways a:hover { color: #fff; border-color: var(--wave); box-shadow: 0 0 14px rgba(163, 92, 240, .4); transform: translateY(-1px); }
.door .get svg { width: 18px; height: 18px; flex: none; fill: currentColor; }
.door .get .ways small { margin: 0; color: var(--dim); }
/* the page is the screen itself: 100vh on a phone is taller than what shows, so the door sat low and moved as the bars came and went */
body.door-page { position: fixed; inset: 0; min-height: 0; box-sizing: border-box; overflow-y: auto; place-items: start stretch; }
body.door-page .door { margin: auto; }
/* a phone zooms into any field under 16px and keeps the zoom on the page after the sign-in; at 16 it never zooms */
@media (pointer: coarse) { .door input { font-size: 16px; } }
#said.kind { color: var(--bright); }
/* the backup codes, once, after an account is made: two columns of codes, a tick, and only then the way on */
.door[hidden] { display: none; }
.backup h1 { font-size: 20px; margin: 0; color: var(--bright); }
.backup .warn { color: var(--accent); min-height: 0; }
.backup ol { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px; margin: 6px 0; padding: 0; list-style: none; font: 14px/1.6 var(--sy-mono, ui-monospace, Consolas, monospace); color: var(--bright); user-select: all; }
.backup .tick { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 13px; cursor: pointer; }
.backup .tick input { width: 14px; height: 14px; margin: 0; padding: 0; border: 0; accent-color: var(--wave); }

/* the fairy's arrow leading the door's ways (me.css draws the same one on the people pages; the door does not load it) */
.door .ways { align-items: center; }
.door .sy-fairy { width: 42px; height: 19px; overflow: visible; filter: drop-shadow(0 0 2px rgba(203, 184, 255, .55)); transform-origin: 88% 50%; animation: sy-fairy-in 1.4s linear both; }
.door .sy-fairy-trail { stroke-dasharray: 100; stroke-dashoffset: 100; animation: sy-fairy-draw 1.3s cubic-bezier(.35, 0, .2, 1) .15s forwards; }
.door .sy-fairy-head { opacity: 0; transform-box: fill-box; transform-origin: 100% 50%; transform: scale(.4); animation: sy-fairy-head .4s cubic-bezier(.2, 1.6, .4, 1) 1.3s forwards; }
.door .sy-fairy-spark { filter: drop-shadow(0 0 2.5px #fff); animation: sy-fairy-spark 1.7s ease-out .15s forwards; opacity: 0; }
.door .sy-fairy-dust { opacity: 0; transform-box: fill-box; transform-origin: center; animation: sy-fairy-twinkle 1.1s ease-out forwards, sy-fairy-shimmer 4.6s ease-in-out 2.4s infinite; }
.door .sy-fairy-dust0 { animation-delay: .25s, 2.4s; }
.door .sy-fairy-dust1 { animation-delay: .45s, 3.3s; }
.door .sy-fairy-dust2 { animation-delay: .7s, 2.9s; }
.door .sy-fairy-dust3 { animation-delay: .9s, 3.8s; }
.door .sy-fairy-dust4 { animation-delay: 1.15s, 4.4s; }
@keyframes sy-fairy-in { 0% { opacity: 0; transform: translate(-19.9px, -1.5px) rotate(-340deg) scale(.12); } 8% { opacity: .4; transform: translate(-6.1px, -10.9px) rotate(-283deg) scale(.27); } 17% { opacity: .85; transform: translate(8.8px, -6.9px) rotate(-226deg) scale(.42); } 27% { transform: translate(9.8px, 1.6px) rotate(-170deg) scale(.56); } 38% { transform: translate(2.5px, 4.6px) rotate(-119deg) scale(.69); } 50% { transform: translate(-2.1px, 2.7px) rotate(-74deg) scale(.81); } 62% { transform: translate(-2.2px, .7px) rotate(-40deg) scale(.9); } 74% { transform: translate(-1px, 0) rotate(-18deg) scale(.95); } 86% { transform: translate(-.3px, 0) rotate(7deg) scale(1.05); } 100% { transform: none; } }
@keyframes sy-fairy-draw { to { stroke-dashoffset: 0; } }
@keyframes sy-fairy-head { to { opacity: 1; transform: scale(1); } }
@keyframes sy-fairy-spark { 0% { opacity: 0; } 12% { opacity: 1; } 78% { opacity: 1; } 100% { opacity: 0; } }
@keyframes sy-fairy-twinkle { 0% { opacity: 0; transform: scale(.3) rotate(0deg); } 35% { opacity: 1; transform: scale(1.5) rotate(45deg); } 100% { opacity: .4; transform: scale(.7) rotate(90deg); } }
@keyframes sy-fairy-shimmer { 0%, 80%, 100% { opacity: .4; transform: scale(.7) rotate(90deg); } 88% { opacity: 1; transform: scale(1.3) rotate(135deg); } }
@keyframes sy-fairy-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(2px); } }
@media (prefers-reduced-motion: reduce) {
  .door .sy-fairy { animation: none; }
  .door .sy-fairy-trail { animation: none; stroke-dashoffset: 0; }
  .door .sy-fairy-head { animation: none; opacity: 1; transform: none; }
  .door .sy-fairy-spark { display: none; }
  .door .sy-fairy-dust { animation: none; opacity: .3; }
}
