/* auth-bridge.css: the Connect page's box and place, the 3D FXN ID card's box. Layer: app.
   Until 2026-11-29 this sheet also carried the variables and the page base that the old site's auth sheets read, and laid the
   old page out round a card in one place. Design 2 "Steps" (owner, 2026-11-29: "We are going with 2 for the auth and remember
   to keep the 3d") replaced that page, so those rules left with it. The parts inside the panel: auth-code/old-site/style/auth.css.
   The page: one panel on the left (about 5 of 12), the 3D FXN ID card large on the right. Both stand from the first paint, so
   nothing jumps when the sign-in scripts arrive. */

.home .home-authpage { display: block; padding: 0; }
/* the footer leaves while this page stands: the panel fills the window under the bar */
:root[data-home-page="/auth"] #site-foot { display: none; }
/* the panel: the same box for the waiting line and for the page itself. A window too short for a screen scrolls inside it */
.home-authpanel { box-sizing: border-box; padding: var(--sp-6); background: hsl(var(--surface)); }
.home-authpanel > * { inline-size: 100%; max-inline-size: 420px; box-sizing: border-box; }
.home-authpanel .mx-skeleton-text > span { inline-size: 100%; }
.home-authpanel .mx-skeleton-text > span:nth-child(2) { inline-size: 80%; }
.home-authpanel .mx-skeleton-text > span:nth-child(3) { inline-size: 55%; }
/* while the skeleton stands, its line is for a screen reader; a failure hides the skeleton and the line shows */
.home-authpage__wait { margin: 0; }
.mx-skeleton-text:not([hidden]) + .home-authpage__wait { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); }

/* THE 3D FXN ID CARD'S BOX (owner, 2026-11-25; kept by his order of 2026-11-29). Only the box's place and size changed */
.home-authbox { display: none; }
/* The card's canvas fills the box. It shows when the fxn-3d player has drawn (js/home-3d.js sets data-live). No still
   stands under it yet: the stills come with the joint export of the confirmed models. */
.home-authbox__canvas { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; opacity: 0; transition: opacity .6s ease; }
.home-authbox__canvas[data-live] { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .home-authbox__canvas { transition: none; } }
/* THE CARD'S STAGE keeps the shape 751 : 618 at every box size, centred in the box: the card's text spots were measured in a
   box of that shape (js/home-card.js), and the player keeps the model's height, so another shape would move the card under
   its text. The box is the stage's size container; the stage is as large as fits. */
.home-authbox { position: relative; container-type: size; }
.home-authbox__stage { position: absolute; inset: 0; margin: auto; inline-size: min(100cqw, 100cqh * 751 / 618); aspect-ratio: 751 / 618; overflow: clip; }
/* THE CARD'S TEXT SPOTS: the open FXN ID's public facts, laid on the card's face by a matrix that js/home-card.js sets. They
   are the card's print, in the mono face and the page's text colour. They show only when the card has drawn. */
.home-card__spot { position: absolute; left: 0; top: 0; transform-origin: 0 0; display: flex; align-items: center; white-space: nowrap; overflow: hidden;
  font-family: var(--font-mono); text-transform: uppercase; color: hsl(var(--text)); pointer-events: none; }
.home-card__spot[data-k="number"] { font-size: var(--fs-primary); font-weight: 600; letter-spacing: .02em; }
.home-card__spot[data-k="line"] { font-size: var(--fs-tertiary); letter-spacing: .12em; opacity: .85; }
/* card v3 (2026-11-25): the holder's name stands at the card's top left in the display face (FXN Basalt), as the name is
   typed, not in capitals. The lower "ID // ..." spot is gone. */
.home-card__spot[data-k="name"] { font-size: var(--fs-secondary); font-family: var(--font-display); font-weight: 700; letter-spacing: .01em; text-transform: none; color: hsl(var(--text-strong)); }
/* (Until 2026-11-25 the spots showed only when the live card had drawn. The card's still stands under the canvas now, with
   the same framing, so the text shows over the still too: with no GPU, and before the player has drawn.) */
@media (min-width: 901px) {
  #auth.home-authpage:not([hidden]) { display: grid; grid-template-columns: minmax(360px, 5fr) minmax(0, 7fr); grid-template-rows: minmax(0, 1fr); block-size: calc(100svh - var(--home-top)); min-block-size: 0; }
  #auth .auth-world:not([hidden]) { grid-area: 1 / 1; min-block-size: 0; display: grid; grid-template-rows: minmax(0, 1fr); }
  #auth > .home-authpanel:not([hidden]) { grid-area: 1 / 1; }
  #auth .home-authpanel { min-block-size: 0; overflow-y: auto; padding: var(--sp-6) var(--sp-6) var(--sp-6) max(var(--sp-6), calc((100vw - 1280px) / 2)); border-inline-end: 1px solid hsl(var(--border-default)); }
  /* the card takes no pointer */
  #auth .home-authbox { display: block; grid-area: 1 / 2; margin: var(--sp-6); pointer-events: none; }
}
@media (min-width: 901px) and (min-height: 801px) { #auth .home-authpanel { padding-block: var(--sp-7); } }

/* the card of the page that names no address */
.home .home-accountcard { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-5); inline-size: min(100%, 560px); padding: var(--sp-6); }
