/* The front door's small additions (index.php), loaded by that page only; built from its own colours and type
   (assets/empyrez.css :root and .fd). Nothing here moves or restyles the door itself.
   .fd-note   why he is here (lib/auth.php door_say), by the log-in; and the sign-up's shut or stale line over its button.
              Calm: no box and no stripe, only type. One line of bone text on the night, a touch heavier than the
              row's labels, with the room of the log-in row around it; the time in it in the count colour.
   .fd-check  the live name check under the street name box (assets/front_door.js): one line, its height held while
              the script is on so the form never jumps; free in the good green, taken or not allowed in the door's red. */
body.ez .fd-note { margin: 0; padding: 0; border: 0; background: none; text-shadow: 0 1px 12px rgb(0 0 0 / .9);
  color: var(--ez-bone); font-size: 16px; font-weight: 600; line-height: 1.45; max-width: 60ch; }
/* Its own line over the fields, as wide as their row and never wider (contain: its words do not stretch the row), so
   the fields keep the size and place they always have */
body.ez .fd-login > .fd-note { flex: 1 0 100%; max-width: none; contain: inline-size; }
body.ez .fd-note b { color: var(--ez-v-count); font-weight: 700; }
body.ez .fd-note--join { max-width: none; }

body.ez .fd-check { margin: 6px 0 0; color: var(--ez-bone-2); font-size: 14px; font-weight: 600; line-height: 1.35; }
.fd-join .has-check .fd-check { min-height: 1.35em; }
body.ez .fd-check.is-free { color: var(--ez-v-good); }
body.ez .fd-check:is(.is-taken, .is-bad) { color: var(--fd-bad, var(--ez-v-bad)); }
/* With the check on, the submit's old line about the name steps aside once he changes the name (front_door.js) */
.fd-join .fd-err[hidden] { display: none; }

/* The phone's first screen (owner 2026-11-13: "Kind of dumb on mobile to have the login inputs all the way down there").
   The roof was 920px tall with the picture held to its top 470px and the log-in pinned to the roof's foot, so on a
   phone the log-in sat under a band of empty night and ran off under Safari's toolbar. Now the roof is exactly one
   small-viewport screen (svh: the height with Safari's bars showing), laid out as three rows:
     1  the name, the tagline and Sign up across the top, the two doors under them, over the sky of the picture;
     2  the rest of the picture: the towers, as much of them as the screen has room for;
     3  the log-in, on the picture's own black rooftop, which fades into the night under it.
   The picture and its lights fill rows 1 and 2 (an absolute child of a grid sits in its grid area), so the log-in is
   always whole at the foot of the first screen and the towers take whatever height is left; nothing between them.
   Sign up keeps the orange, up in the corner where it is on every width: it is the newcomer's one call, and it is
   nowhere on the returning player's way down to the fields. The log-in's button stays the quiet outline. */
@media (max-width: 767px) {
  body.ez .fd-roof { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(96px, 1fr) auto;
    height: auto; min-height: 100vh; min-height: 100svh; }
  body.ez .fd-roof::after { display: none; }
  body.ez .fd-roof picture { display: contents; }
  /* The picture is drawn taller than its rows (its bottom third is the black rooftop), so the city's lights end where
     the log-in starts and the rooftop runs on under the round line and the first field, fading into the night */
  body.ez .fd-roof .fd-roof__img { grid-row: 1 / 3; grid-column: 1; inset: 0 0 auto; width: 100%; height: calc(100% / .7); object-position: 22% 0;
    -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 96%); mask-image: linear-gradient(to bottom, #000 72%, transparent 96%); }
  body.ez .fd-top { position: relative; grid-row: 1; grid-column: 1; padding-top: max(18px, env(safe-area-inset-top)); }
  body.ez .fd-door { position: relative; z-index: 2; grid-row: 3; grid-column: 1; bottom: auto; margin-top: 0;
    padding-bottom: max(16px, env(safe-area-inset-bottom)); }
  body.ez .fd-roof .fd-wrap { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }

  /* The top: name and tagline left, Sign up right on the same line; How it plays and Hall of Fame under them */
  body.ez .fd-top__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 6px 12px; }
  body.ez .fd-top__links { display: contents; }
  body.ez .fd-top__links .fd-nav { grid-column: 1 / -1; grid-row: 2; padding-top: 0; justify-content: flex-start; }
  body.ez .fd .fd-top__signup { grid-column: 2; grid-row: 1; gap: 8px; min-height: 48px; padding-inline: 18px; font-size: 19px; }
  body.ez .fd-mark .ez-mark { font-size: 40px; }
  body.ez .fd-tag { margin-top: 6px; font-size: 16px; }

  /* The log-in: the round line over the fields, the fields full width, the button under them as wide, then the line
     for the ones who cannot get in */
  body.ez .fd-door__in { gap: 12px; }
  body.ez .fd-line { gap: 2px 16px; text-shadow: 0 1px 10px rgb(0 0 0 / .9); }
  body.ez .fd-login { gap: 10px; }
  body.ez .fd-login .fd-btn { width: 100%; margin-top: 4px; }
  body.ez .fd-login .ez-input { scroll-margin-block: 24px 120px; }   /* a focused field clears the keyboard's bar */
  body.ez .fd-lost { gap: 0 24px; }
  body.ez .fd-lost a { display: inline-flex; align-items: center; min-height: 44px; }
}
