/* css/home.css — THE GUEST HOMEPAGE chrome.
   The page is the open sky: one scene (the guest airwaves, css/plaza.css
   copied from realm per the copy-don't-import law), one entry (ENTER).
   This file carries: the shared vars plaza.css expects, the minimal chrome
   (logo + tagline · ENTER pill · Navi + centred radio), and the auth sheet
   (markup and classes are the old homepage's — the sheet is the same door,
   it just opens onto /realm/ now). */

:root {
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-pixel: 'Press Start 2P', monospace;
  --rlm-gold: #f5c542;
  --rlm-gold-deep: #e0a040;
  --rlm-blue: #18B0F5;
  --rlm-blue-soft: #7fc3ff;
  --rlm-text: #e9eff8;
  --rlm-dim: #8fa3c0;
  --rlm-panel: rgba(13, 22, 42, 0.62);
  --rlm-border: rgba(120, 170, 230, 0.22);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; overflow: hidden; }
body {
  background: #070b14; color: var(--rlm-text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; }

/* the deep-space backdrop — the Anchorage warp (teal variant, realm's twin) */
#warp-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; display: block; }

/* ── the stage: Navi + the radio, CENTRED (no chest — login grows it in
      over at /realm/, where the radio sits 96px left of this very spot) ── */
#rn-navi-dock {
  position: fixed; top: 70px; left: 50%; z-index: 410;
  transform: translateX(-50%) translateX(44px);   /* holding the radio — clear of the antenna */
  background: none; border: none; padding: 6px; cursor: default;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
#rn-navi {
  display: block; width: 72px; height: 72px; image-rendering: pixelated;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.35));
  transform: rotate(-7deg); transform-origin: 30% 92%;   /* the hold — tilted in */
}
#plaza-entry { left: 50% !important; pointer-events: none; cursor: default; }
/* plaza.css walks Navi on body.plaza-open — pin her beside the centred
   radio instead (the body wears plaza-open from the first frame here) */
body.plaza-open #rn-navi-dock { transform: translateX(-50%) translateX(44px); }
/* no lever panel on the guest home — undo the console's flank lean/reserve */
@media (min-width: 860px) and (orientation: landscape) {
  .plz-stage, .plz-tuner { left: 0; }
  .plz-stage { width: min(1060px, 94vw); }
  .plz-tuner { width: min(860px, 92vw); }
}

/* ── top-left: the mark alone, quietly (no line under it) ── */
#home-brand { position: fixed; top: 26px; left: 26px; z-index: 419; }
#home-brand img { height: 30px; width: auto; display: block; }

/* ── top-right: the one entry — gold, pixel, unmissable ── */
#home-enter {
  position: fixed; top: 24px; right: 26px; z-index: 419;
  cursor: pointer; padding: 13px 22px; border-radius: 12px; border: none;
  background: linear-gradient(180deg,#f7d873,#e9b83f); color: #241a04;
  font-family: var(--font-pixel); font-size: 10px; letter-spacing: 0.06em;
  box-shadow: 0 3px 0 #8f6416, 0 0 22px rgba(245,197,66,0.28), inset 0 1px 0 rgba(255,255,255,0.35);
  transition: transform .12s ease, box-shadow .12s ease, filter .18s ease;
}
#home-enter:hover {
  transform: translateY(1px);
  box-shadow: 0 2px 0 #8f6416, 0 0 30px rgba(245,197,66,0.45), inset 0 1px 0 rgba(255,255,255,0.35);
}

/* ── the auth sheet — the old homepage's door, verbatim classes ── */
.auth-overlay {
  position: fixed; inset: 0; z-index: 1300; display: none; align-items: center; justify-content: center; padding: 24px;
  background: rgba(4,8,16,0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.auth-overlay.visible { display: flex; animation: authFade .22s ease; }
@keyframes authFade { from { opacity: 0; } to { opacity: 1; } }
.auth-modal {
  position: relative; width: min(92vw, 400px);
  background: rgba(13,22,40,0.97); border: 1px solid rgba(24,176,245,0.3); border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.06);
  padding: 30px 30px 24px; animation: authPop .26s cubic-bezier(.2,.8,.3,1);
  text-align: center;
}
@keyframes authPop { from { transform: translateY(14px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
.auth-close {
  position: absolute; top: 10px; right: 14px; background: none; border: none; cursor: pointer;
  color: var(--rlm-dim); font-size: 20px; line-height: 1; padding: 4px;
}
.auth-close:hover { color: var(--rlm-text); }
.auth-brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 20px; }
.auth-logo { height: 24px; width: auto; display: block; }
.auth-lead { margin: -4px 0 18px; font-size: 13px; color: var(--rlm-dim); }
.auth-form { display: flex; flex-direction: column; gap: 13px; }
.auth-field { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.auth-field span {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--rlm-dim);
}
.auth-field input {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(24,176,245,0.22); color: var(--rlm-text);
  border-radius: 10px; padding: 12px 13px; font-family: var(--font-mono); font-size: 16px; outline: none;
  transition: border-color .15s ease, background .15s ease;
}
.auth-field input::placeholder { color: rgba(143,163,192,0.5); }
.auth-field input:focus { border-color: var(--rlm-blue); background: rgba(24,176,245,0.07); }
.auth-submit {
  margin-top: 5px; background: var(--rlm-blue); border: none; cursor: pointer; padding: 2px;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  filter: drop-shadow(0 0 10px rgba(24,176,245,.5));
  transition: filter .2s, transform .15s;
}
.auth-submit:hover { filter: drop-shadow(0 0 18px rgba(24,176,245,.8)); transform: translateY(-1px); }
.auth-submit .btn-fill {
  display: flex; align-items: center; justify-content: center; background: #0d1c30; color: #cfe6ff;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  font-family: var(--font-pixel); font-size: 10px; letter-spacing: .03em; padding: 14px 0;
}
.auth-or {
  display: flex; align-items: center; gap: 10px; margin: 16px 0 14px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; color: rgba(143,163,192,0.55); text-transform: uppercase;
}
.auth-or::before, .auth-or::after { content: ''; flex: 1; height: 1px; background: rgba(24,176,245,0.16); }
.auth-wallet {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 9px; cursor: pointer;
  font-family: var(--font-pixel); font-size: 9px; letter-spacing: .05em; color: #cfe6ff;
  background: rgba(24,176,245,0.06); border: 1px solid rgba(24,176,245,0.28); padding: 13px 0; border-radius: 0;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  transition: background .2s, border-color .2s;
}
.auth-wallet:hover { background: rgba(24,176,245,0.13); border-color: rgba(24,176,245,0.55); }
.auth-wallet-ico { font-size: 12px; color: var(--rlm-blue); }
/* Google quick sign-in — twin of the wallet button, neutral so it reads as a distinct rail */
.auth-google {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 9px; cursor: pointer;
  font-family: var(--font-pixel); font-size: 9px; letter-spacing: .05em; color: #e8eef7;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.22); padding: 13px 0; border-radius: 0;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  transition: background .2s, border-color .2s; margin-bottom: 9px;
}
.auth-google:hover { background: rgba(255,255,255,0.13); border-color: rgba(255,255,255,0.4); }
.auth-google-ico { display: block; }
.auth-note {
  margin: 16px 0 0; font-family: var(--font-mono); font-size: 10px; line-height: 1.6;
  letter-spacing: .02em; color: rgba(143,163,192,0.6);
}

/* ── phones ── */
@media (max-width: 640px) {
  #home-brand { top: 18px; left: 16px; }
  #home-brand img { height: 22px; }
  #home-enter { top: 16px; right: 16px; padding: 11px 14px; font-size: 8.5px; }
  #rn-navi-dock, body.plaza-open #rn-navi-dock { top: calc(6vh + 32px); transform: translateX(-50%) translateX(34px); }
  #rn-navi { width: 56px; height: 56px; }
}

/* ══ large-display scale (2026-07) — see realm's plaza note. Guest home has
   no forced-height 100vh boxes (all layers are inset:0 / flex), so zoom alone
   is enough. Anchored: MacBook (~1470) & phones = zoom 1. ══ */
@media (min-width: 1560px) { :root { zoom: 1.15; } }
@media (min-width: 1920px) { :root { zoom: 1.30; } }
@media (min-width: 2400px) { :root { zoom: 1.50; } }
