/* Boardroom Games auth theme (login / account / reset) — corporate overlay.
   Served instead of /auth/auth.css on the corporate deployment only (brand static
   overlay mounts first); drag keeps the shared file. Same class contract as the
   base sheet, plus body-prefixed overrides to out-specify account.html's inline
   styles. Primary actions ride the logo blue (--btn); lime is the signal accent. */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wdth,wght@62..125,400..900&family=Audiowide&family=Martian+Mono:wght@400;600&display=swap');

:root {
  --bg: #0d1626;
  --bg-2: #060B14;
  --panel: #1B2B45;
  --panel-2: #24395B;
  --line: rgba(143,163,190,.18);
  --text: #F2F6FC;
  --muted: #8FA3BE;
  --faint: #4A5D7A;
  /* legacy slot names, corporate values */
  --pink: #2563EB;       /* deep blue (gradients, hovers) */
  --pink-2: #7DD3FC;
  --gold: #D8F34A;
  --mint: #10B981;
  --purple: #7C3AED;
  --cyan: #7DD3FC;
  --orange: #F97316;
  --green: #10B981;
  --outline: rgba(143,163,190,.18);
  --signal: #D8F34A;     /* lime = live/on-air accent, never a button */
  --cold: #7DD3FC;
  --btn: #7DD3FC;        /* buttons ride the logo's blue */
  --btn-ink: #0B1424;
  --lip: inset 0 2px 0 rgba(143,163,190,.16);
  color-scheme: dark;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font: 15px/1.5 "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-variation-settings: 'wdth' 100;
  color: var(--text);
  background:
    radial-gradient(1100px 700px at 50% -8%, #16233A 0%, rgba(22,35,58,0) 62%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  background-attachment: fixed;
  min-height: 100vh;
}
.accent { color: var(--signal); }

/* ── Wordmark: Audiowide + the PlayBeam mark (overlay serves /brand/mark.svg). ── */
.qc-wordmark {
  font-family: "Audiowide", "Archivo", system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: -.02em;
  color: var(--text);
  user-select: none;
}
.qc-wordmark::before {
  content: "";
  display: inline-block;
  background: url(/brand/mark.svg) center/contain no-repeat;
}
/* login card: stacked lockup — mark above the name */
.auth-card > .qc-wordmark::before {
  display: block; width: 74px; height: 66px; margin: 0 auto 14px;
}
/* account topbar: compact horizontal lockup */
body .topbar .qc-wordmark { display: inline-flex; align-items: center; gap: 9px; font-size: 15px; }
body .topbar .qc-wordmark::before { width: 24px; height: 21px; }

.auth-body { display: grid; place-items: center; min-height: 100vh; padding: 20px; }
.auth-card {
  background: var(--panel); border: none; border-radius: 8px;
  box-shadow: var(--lip), 0 30px 70px rgba(0,0,0,.55);
  padding: 36px 40px; width: 380px; max-width: 100%; text-align: center;
}
.auth-card h1 { font-size: 27px; margin: 0; line-height: 1.1; }
.auth-card .sub {
  color: var(--muted); margin: 8px 0 24px;
  font: 600 12px/1 "Martian Mono", ui-monospace, monospace;
  letter-spacing: .14em; text-transform: uppercase;
}

form { display: flex; flex-direction: column; gap: 14px; text-align: left; }
label { display: flex; flex-direction: column; gap: 6px; font: 600 11px/1 "Martian Mono", ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
input[type="email"], input[type="password"], input[type="text"] {
  background: #16233A; border: none; color: var(--text);
  border-radius: 4px; padding: 12px; font: 400 15px "Archivo", system-ui, sans-serif;
  box-shadow: inset 0 2px 0 rgba(143,163,190,.12);
}
input::placeholder { color: var(--faint); }
input:focus { outline: 2px solid var(--cold); outline-offset: 2px; }

.btn {
  display: inline-block; text-align: center; text-decoration: none;
  border: none; background: var(--panel-2); color: var(--text);
  padding: 12px 16px; border-radius: 4px; cursor: pointer;
  font: 600 14px "Archivo", system-ui, sans-serif; box-shadow: var(--lip);
  transition: filter .12s;
}
.btn:hover { filter: brightness(1.09); }
.btn.primary { background: var(--btn); border: none; color: var(--btn-ink); font-weight: 800; box-shadow: none; }
.btn.primary:hover { filter: brightness(1.06); }
.btn.outline { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.btn.full { width: 100%; }
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--cold); outline-offset: 2px; }

.error { color: #fca5a5; font-size: 13px; text-align: center; }
.msg { font-size: 13px; text-align: center; padding: 9px; border-radius: 4px; }
.msg.success { color: #6ee7b7; background: var(--panel-2); box-shadow: inset 0 2px 0 var(--green); }
.msg.error { color: #fca5a5; background: var(--panel-2); box-shadow: inset 0 2px 0 #EF4444; }

.divider {
  display: flex; align-items: center; gap: 12px; margin: 18px 0 14px;
  color: var(--muted); font: 600 11px/1 "Martian Mono", ui-monospace, monospace; text-transform: uppercase; letter-spacing: .1em;
}
.divider::before, .divider::after {
  content: ''; flex: 1; height: 1px; background: var(--line);
}
.google-btn-wrap { display: flex; justify-content: center; min-height: 44px; }

.forgot {
  display: block; margin-top: 16px;
  color: var(--muted); font-size: 13px; text-decoration: none;
}
.forgot:hover { color: var(--cold); }

.reset-section {
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--line); text-align: left;
}
.reset-text { font-size: 13px; color: var(--muted); margin: 0 0 12px; text-align: center; }

/* Account page */
.auth-card.account { text-align: center; }
.profile {
  display: flex; align-items: center; gap: 14px;
  padding: 16px; background: var(--panel-2); border-radius: 4px; box-shadow: var(--lip);
  margin-bottom: 16px; text-align: left;
}
.avatar {
  width: 56px; height: 56px; border-radius: 4px; object-fit: cover;
  box-shadow: var(--lip);
}
.avatar.placeholder {
  display: grid; place-items: center; font-size: 24px;
  background: #16233A; color: var(--muted);
  width: 56px; height: 56px; border-radius: 4px;
  box-shadow: var(--lip);
}
.profile-info { flex: 1; }
.pname { font-weight: 700; font-size: 16px; }
.pemail { font-size: 13px; color: var(--muted); }
.admin-badge {
  display: inline-block; margin-top: 4px;
  font: 600 11px/1 "Martian Mono", ui-monospace, monospace; padding: 4px 9px; border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--signal); color: var(--signal); text-transform: uppercase; letter-spacing: .06em;
}
.back-link {
  display: block; margin-top: 12px;
  color: var(--muted); font-size: 13px; text-decoration: none;
}
.back-link:hover { color: var(--cold); }

/* Shared "back to account" pill for use inside the apps (self-contained). */
.qc-account-link {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--panel); box-shadow: var(--lip); color: var(--text);
  border-radius: 4px; padding: 8px 14px; font: 600 13px/1 "Archivo", system-ui, sans-serif;
  text-decoration: none;
}
.qc-account-link:hover { filter: brightness(1.1); color: #fff; }

/* ── Broadcast pass over account.html's inline styles (body-prefixed to win). ── */
body .app-tile {
  border: none; border-radius: 6px;
  box-shadow: var(--lip);
  transition: transform .18s cubic-bezier(.2,.7,.2,1), box-shadow .18s ease;
}
body .app-tile:hover { transform: translateY(-3px); box-shadow: inset 0 2px 0 var(--cold), 0 18px 36px -18px rgba(0,0,0,.8); }
body .app-tile:focus-visible { outline: 2px solid var(--cold); outline-offset: 3px; }
body .app-tile .tile-icon { text-shadow: none; }
body .app-tile .tile-badge { background: var(--signal); color: #131903; }
/* photoreal game tiles: taller banner, legibility scrim, slow zoom on hover */
body .app-tile.has-photo .tile-banner {
  height: 132px; position: relative;
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
body .app-tile.has-photo:hover .tile-banner { transform: scale(1.06); }
body .app-tile.has-photo .tile-banner::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(4,8,16,.5), transparent 55%);
}
body .app-tile.has-photo .tile-badge { z-index: 1; }
/* entrance: tiles fall into focus, staggered — same language as the site's lineup */
@media (prefers-reduced-motion: no-preference) {
  body .app-tile { opacity: 0; animation: tileIn .55s cubic-bezier(.2,.7,.2,1) forwards; }
  body .app-tile:nth-child(2)  { animation-delay: .07s }
  body .app-tile:nth-child(3)  { animation-delay: .14s }
  body .app-tile:nth-child(4)  { animation-delay: .21s }
  body .app-tile:nth-child(5)  { animation-delay: .28s }
  body .app-tile:nth-child(6)  { animation-delay: .35s }
  body .app-tile:nth-child(7)  { animation-delay: .42s }
  body .app-tile:nth-child(8)  { animation-delay: .49s }
  body .app-tile:nth-child(9)  { animation-delay: .56s }
  body .app-tile:nth-child(n+10) { animation-delay: .63s }
}
@keyframes tileIn {
  from { opacity: 0; transform: translateY(-26px) scale(.97); filter: blur(10px); }
  to   { opacity: 1; transform: none; filter: none; }
}

body .dl-card {
  border: none; border-radius: 6px; box-shadow: var(--lip);
}
body .dl-banner {
  border: none; border-radius: 6px; box-shadow: none;
  background: linear-gradient(135deg, var(--pink), var(--cyan));
}
body .dl-fields select, body .dl-fields input {
  border: none; border-radius: 4px; box-shadow: inset 0 2px 0 rgba(143,163,190,.12);
  background: #16233A;
}
body .dl-fields select:focus, body .dl-fields input:focus { outline: 2px solid var(--cold); outline-offset: 2px; }
body .dl-open {
  background: var(--btn); border: none; color: var(--btn-ink);
  border-radius: 4px; box-shadow: none;
}
body .dl-open:active { transform: none; filter: brightness(.95); }
body .topbar .signout:hover { color: var(--cold); }
