/* Home — app shell and login gate. */

.user {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: var(--fg-alt);
  font-weight: 600;
}
.user .badge { margin-left: .1rem; }

.avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: .95rem;
  font-weight: 600;
  object-fit: cover;
}

.actions {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.actions form { margin: 0; }

.content { min-height: calc(100vh - 58px); }

.loading {
  margin: 0;
  padding: 2.5rem 1rem;
  color: var(--comment);
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .06em;
  text-align: center;
  text-transform: uppercase;
}

.gate {
  max-width: 28rem;
  margin: clamp(4rem, 14vh, 9rem) auto;
  padding: 2.5rem clamp(1.5rem, 5vw, 3rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-alt);
  box-shadow: var(--shadow);
  text-align: center;
}
.gate h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.gate h1::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 1px;
  margin: 1rem auto 0;
  background: var(--sand);
  opacity: .6;
}
.gate p {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: .95rem;
}
/* Full-screen live feed: one media at a time, nothing else. */

/* Anton (SIL OFL) stands in for Impact, the classic old-meme font, when it is not installed. */
@font-face {
  font-family: "Anton";
  src: url("/assets/anton.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

.stage {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.stage:not(:empty) {
  z-index: 20;
  background: #000;
  pointer-events: auto;
}

.stage .live-card {
  position: relative;
  width: 100vw;
  height: 100vh;
  margin: 0;
}

.stage .live-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.live-author {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  color: var(--fg-alt);
  font-family: var(--font-serif);
  font-size: 2rem;
  text-shadow: 0 1px 4px #000, 0 0 12px rgba(0, 0, 0, .6);
}

.live-avatar {
  width: 77px;
  height: 77px;
  border: 1px solid rgba(232, 220, 192, .35);
  border-radius: 50%;
  background: var(--bg-soft);
  object-fit: cover;
}

.live-text {
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 1.6rem;
  z-index: 2;
  margin: 0;
  color: var(--fg);
  font-family: Impact, "Anton", "Arial Black", sans-serif;
  font-size: clamp(2.45rem, 4.55vw, 4.2rem);
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-shadow: 0 2px 8px #000, 0 0 3px #000;
  white-space: pre-wrap;
}

.live-status {
  position: fixed;
  right: 1rem;
  top: 1rem;
  z-index: 30;
  margin: 0;
  padding: .3rem .6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  color: var(--comment);
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .75;
}
.live-status.off { color: var(--orange); }
