/* ---------- The gate, TV pairing, Kim izliyor? and the PIN (js/profiles.js); tokens from app.css :root ---------- */
.gate { width: min(380px, 90vw); display: grid; gap: 10px; }
.gate p { color: var(--muted); margin: 0 0 8px; }
.gate .btn { justify-content: center; margin-top: 6px; }
/* TV pairing: the code is read from across the room. */
.gate.pair { width: min(560px, 90vw); }
/* The signed-out gate draws in the text face alone (one font file there), its heading too. */
.center-screen .pair-title { font-family: var(--sans); font-weight: 700; letter-spacing: -.01em; line-height: 1.2; font-size: clamp(1.4rem, 3vw, 2rem); }
.pair-code { margin: 8px 0 16px; font-size: clamp(2.6rem, 8vw, 4.5rem); font-weight: 800; letter-spacing: .12em; line-height: 1.1; color: var(--ink);
  font-variant-numeric: tabular-nums; white-space: nowrap; }
.gate p.pair-code { color: var(--ink); }
.gate p.pair-code.waiting { color: var(--muted); opacity: .5; }
.gate.pair .msg { margin: 0; }
.profiles { display: flex; gap: clamp(16px, 3vw, 40px); flex-wrap: wrap; justify-content: center; }
.profile { display: grid; gap: 12px; justify-items: center; color: var(--muted); font-size: 1.1rem; padding: 8px; border-radius: 14px; transition: color .15s, transform 200ms var(--ease-out); }
.profile img { width: clamp(96px, 12vw, 160px); aspect-ratio: 1; border-radius: 50%; object-fit: cover; }
.profile:focus-visible { color: var(--ink); transform: scale(1.05); box-shadow: none; }
.profile:focus-visible img { box-shadow: var(--focus-art); }   /* the picture lights up, like a card */
/* PIN: native <dialog> (modal, inert background, Escape closes). */
.pin-dialog { width: min(360px, 92vw); margin: auto; border: 0; color: var(--ink); background: var(--panel); border-radius: 16px; padding: 28px; }
/* The scrim: black .85, never blurred, on every device (docs/design-language.md, materials). A blur
   behind it cost a TV 184 ms a key and showed nobody anything. */
.pin-dialog::backdrop { background: rgba(0, 0, 0, .85); }
.pin-dialog form { display: grid; gap: 12px; justify-items: center; }
.pin-dialog h2 { margin: 0; }
.pin-dialog .field-label { justify-self: center; color: var(--muted); font-weight: 600; }
.pin-dialog .row-btns { margin-top: 6px; }
.modal-avatar { width: 88px; height: 88px; border-radius: 50%; }
@media (hover: hover) {
  .profile:hover { color: var(--ink); transform: scale(1.05); }
}
@supports not (aspect-ratio: 1) {
  .profile img { height: clamp(96px, 12vw, 160px); }
}
@media (prefers-reduced-motion: reduce) { .profile:hover, .profile:focus-visible { transform: none; } }
/* A profile answers the press that picks it (app.js): the chosen one holds its lift and light, the
   others step back, and further picks are ignored until the app opens. Opacity only on a TV. */
.profile.chosen { color: var(--ink); transform: scale(1.05); }
.profile.chosen img { box-shadow: var(--focus-art); }
.picking .profile:not(.chosen) { opacity: .35; transition: opacity 150ms var(--ease-out); }
html.tv .picking .profile:not(.chosen) { transition: opacity 120ms var(--ease-out); }
@media (prefers-reduced-motion: reduce) { .profile.chosen { transform: none; } }
.pair-qr { justify-self: center; width: clamp(160px, 22vh, 240px); height: auto; border-radius: 8px; image-rendering: pixelated; }   /* square: the canvas is */
.pair-qr.waiting { opacity: .2; }
.gate.pair .pair-code { margin: 4px 0 8px; }
