/* front_door: the sign-in dialog (web/signin_dialog.js; Aaron, Nov 28 2026). Loaded after the page's own styles, only for a
   visitor who is not in yet. A full-screen sheet on a phone, a centred card on a laptop, in the site's own frame and palette.
   Pixel type at 16, 24, 32 and 48 only; reading text in --read. Buttons keep the site's rules (blue with white words in the
   clean pixel font), except the two ways in that belong to someone else: Google's own dark button and Discord's blurple,
   each with its mark, set in the device's font as their brand rules ask. */
html.sd-lock { overflow: hidden; }
dialog.sd { padding: 0; border: 0; background: transparent; color: var(--text); max-width: none; max-height: none; overflow: visible;
  width: min(440px, calc(100vw - 32px)); }
dialog.sd::backdrop { background: rgba(1, 9, 27, .86); }
.sd-card { position: relative; box-sizing: border-box; padding: 48px 32px 24px; background: var(--panel); max-height: calc(100dvh - 48px); overflow-y: auto;
  box-shadow: 0 -4px var(--frame), 0 4px var(--frame), -4px 0 var(--frame), 4px 0 var(--frame), 0 24px 48px rgba(0, 0, 0, .5); }
.sd-x { position: absolute; top: 4px; right: 4px; width: 48px; height: 48px; margin: 0; padding: 0; display: grid; place-items: center;
  color: var(--text); background: transparent; box-shadow: none; --b: transparent; }
.sd-x:hover { color: #fff; --b: var(--night-3); }
.sd-x:active { transform: none; box-shadow: none; }
@media (max-width: 640px) {
  dialog.sd { width: 100%; height: 100%; max-height: none; }
  .sd-card { width: 100%; height: 100%; max-height: none; padding: 48px 20px 24px; box-shadow: none; }
  dialog.sd::backdrop { background: var(--night-0); }
}
#sd-body { display: block; }
#sd-body h2 { margin: 0 0 8px; font-size: 24px; line-height: 40px; text-align: center; }
#sd-body h2.sd-big { font-size: 32px; line-height: 48px; padding: 0; }
.sd .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sd-lead { margin: 0 0 16px; text-align: center; color: var(--text); }
.sd-note, .sd-fine, .sd-said { margin: 8px 0 0; text-align: center; font: var(--t-small); color: var(--muted); }
.sd-fine { margin-top: 16px; }
.sd-wait { text-align: center; color: var(--muted); }
.sd-err { margin: 0 0 16px; padding: 12px 16px; color: var(--cream); background: rgba(120, 40, 60, .35);
  box-shadow: 0 -4px var(--rose), 0 4px var(--rose), -4px 0 var(--rose), 4px 0 var(--rose); }
.sd-err[hidden] { display: none; }
.sd a:not(.button):not(.sd-prov):not([aria-label]) { color: var(--gold); }
.sd a.button { color: var(--cta-ink); }
.sd-link { display: inline; margin: 0; padding: 0; font: var(--t-small); color: var(--gold); background: none; text-decoration: underline; text-underline-offset: 4px; box-shadow: none; --b: transparent; }
.sd-link:hover { color: var(--gold-hi); --b: transparent; }
.sd-link:active { transform: none; box-shadow: none; }

/* the ways in: each a full-width, 48 px tall tap target */
.sd-ways { display: block; }
a.sd-prov { display: flex; align-items: center; justify-content: center; gap: 12px; position: relative; box-sizing: border-box; width: 100%; min-height: 48px; margin: 0 0 12px;
  padding: 12px 16px; border-radius: 4px; font: 500 16px/24px var(--read); letter-spacing: 0; text-decoration: none; -webkit-font-smoothing: auto; text-rendering: auto; }
a.sd-prov .mark { flex: none; width: 24px; height: 24px; }
a.sd-google { color: #e3e3e3; background: #131314; border: 1px solid #8e918f; }          /* Google's published dark button */
a.sd-google:hover { color: #fff; background: #1d1e1f; }
a.sd-discord { color: #fff; background: #5865f2; border: 1px solid #5865f2; }              /* Discord's blurple */
a.sd-discord:hover { color: #fff; background: #4752c4; border-color: #4752c4; }
a.sd-prov:focus-visible { outline: 4px solid #fff; outline-offset: 4px; }
.sd-last { position: absolute; right: 12px; font: 12px/16px var(--read); opacity: .75; }
.sd-lastline { margin: 4px 0 0; text-align: center; font: var(--t-small); color: var(--muted); }
.sd-lastline .sd-last { position: static; font: var(--t-small); }
.sd-or { margin: 4px 0 16px; text-align: center; color: var(--muted); font: 16px/24px var(--px); -webkit-font-smoothing: none; }
.sd-email label { margin: 0; }
.sd-email input { margin: 8px 0 16px; }
.sd-email button, .sd-code button.wide { margin: 0 0 8px; }
.sd-email .sd-note { margin-top: 12px; }
input.codebox { margin: 0 0 16px; }
.sd-code { margin: 8px 0 0; }
button.sd-resend { display: block; width: 100%; margin: 8px 0; }

/* "You're on the list": the cheering Mosscap (the site's own art, web/mosscap-cheer.png: 27 cells of 72 x 64, 9 across), one
   each side, hopping on the sheet's ten-steps-a-second clock, with a little confetti in the site's colours */
.sd-party { position: relative; height: 128px; margin: -16px 0 8px; overflow: hidden; }
.sd-mc { position: absolute; bottom: 0; width: 144px; height: 128px; background: url("/static/mosscap-cheer.png") no-repeat; background-size: 1296px 384px;
  image-rendering: crisp-edges; image-rendering: pixelated; animation: sd-hop .8s steps(1) infinite; background-position: -1152px 0; }
.sd-mc-l { left: calc(50% - 160px); }
.sd-mc-r { right: calc(50% - 160px); transform: scaleX(-1); animation-delay: .4s; }
@keyframes sd-hop {
  0% { background-position: 0 0; } 12.5% { background-position: -144px 0; } 25% { background-position: -288px 0; }
  37.5% { background-position: -432px 0; } 50% { background-position: -576px 0; } 62.5% { background-position: -720px 0; }
  75% { background-position: -864px 0; } 87.5% { background-position: -1008px 0; } 100% { background-position: -1152px 0; } }
.sd-conf { position: absolute; top: -8px; width: 8px; height: 8px; background: var(--gold); animation: sd-fall 2.4s linear infinite; }
.sd-conf:nth-child(3) { left: 12%; background: var(--sky); animation-delay: .2s; }
.sd-conf:nth-child(4) { left: 28%; background: var(--teal); animation-delay: 1.1s; }
.sd-conf:nth-child(5) { left: 44%; animation-delay: .6s; }
.sd-conf:nth-child(6) { left: 58%; background: var(--rose); animation-delay: 1.6s; }
.sd-conf:nth-child(7) { left: 74%; background: var(--sky); animation-delay: .9s; }
.sd-conf:nth-child(8) { left: 88%; background: var(--teal); animation-delay: 1.9s; }
@keyframes sd-fall { from { transform: translateY(0); opacity: 1; } to { transform: translateY(136px); opacity: .2; } }
@media (prefers-reduced-motion: reduce) { .sd-mc { animation: none; } .sd-conf { animation: none; top: 24px; } }
@media (max-width: 400px) { .sd-mc-l { left: calc(50% - 150px); } .sd-mc-r { right: calc(50% - 150px); } }
.sd-share { margin: 16px 0 0; }
.sd-linkrow { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.sd-linkrow input { flex: 1 1 auto; min-width: 0; margin: 0; padding: 8px 12px; font: var(--t-small); }
.sd-linkrow button { flex: none; margin: 0 4px; }
.sd-said { min-height: 24px; margin: 4px 0 0; color: var(--teal); }
.sd-join { margin-top: 16px; text-align: center; }
.sd-join .discord { margin-bottom: 8px; }

/* "You're in!": the big Play button under the heading */
.sd-play { display: block; margin: 8px auto 16px; max-width: 320px; text-align: center; font-size: 24px; line-height: 40px; padding: 8px 24px; }


