/* The front door, for anyone who isn't a player: the host's sign-in page and
   the TV's "which room?" gate wear the same poster as the player landing --
   the hero art behind, a header with the wordmark, copy in the art's clear
   left third and one glass card in the right. Under 1280px it stacks: card,
   then the mobile crop of the art, then the copy. The player landing keeps
   its own copy of this (it has a story below the fold); this file is for the
   one-card pages. */
.poster {
  position: relative; min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  background: var(--bg); color: var(--text); font-family: var(--font);
  overflow-x: hidden;
  /* Breakpoints are on the poster's own width, not the window's: the TV
     gate lives inside the 1920px stage however the screen is scaled. */
  container: poster / inline-size;
}
.poster-top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
  position: relative; z-index: 2; background: rgba(11, 7, 20, 0.6); backdrop-filter: blur(6px);
}
.poster-top .brand-name { font-size: 22px; }
.poster-top .brand-mark { width: 40px; height: 40px; }
.poster-nav { display: flex; align-items: center; gap: 8px; flex: none; }
.poster-link {
  color: var(--muted); font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap;
  padding: 8px 14px; border-radius: var(--r-pill); border: 1px solid var(--line);
}
.poster-link:hover { color: var(--text); border-color: var(--line-strong); }

.poster-hero { position: relative; flex: 1; display: grid; gap: 22px; padding: 28px 20px 0; align-content: start; }
.poster-copy { position: relative; z-index: 1; }
.poster-eyebrow {
  display: block; font-size: 13px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brand-bright); margin-bottom: 14px;
}
.poster-h1 {
  margin: 0 0 12px; font-family: var(--font-display); font-weight: 900;
  font-size: clamp(34px, 5.2cqw, 60px); line-height: 0.98; letter-spacing: -0.02em;
}
.poster-wordmark { white-space: nowrap; }
.poster-wordmark .brand-name-second { color: var(--brand-bright); }
.poster-lede { margin: 0 0 16px; font-size: clamp(16px, 1.6cqw, 20px); line-height: 1.45; color: rgba(255, 255, 255, 0.86); max-width: 34ch; }
.poster-proof { margin: 0; font-weight: 800; font-size: clamp(16px, 1.4cqw, 19px); color: var(--gold); letter-spacing: 0.01em; }

/* --- the card --- */
.poster-card {
  position: relative; z-index: 1;
  background: linear-gradient(160deg, rgba(168, 85, 247, 0.22), rgba(60, 25, 110, 0.38));
  border: 1.5px solid rgba(196, 150, 255, 0.55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-radius: 22px; padding: 30px 30px 26px;
  box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.18), 0 0 46px rgba(168, 85, 247, 0.28), 0 24px 60px rgba(0, 0, 0, 0.45);
  max-width: 440px; width: 100%; margin-inline: auto;
}
.poster-card-title { margin: 0 0 8px; font-family: var(--font-display); font-weight: 900; font-size: 32px; letter-spacing: -0.01em; color: #fff; }
.poster-card-lede { margin: 0 0 20px; color: rgba(255, 255, 255, 0.78); font-size: 16px; line-height: 1.45; }
.poster-card-lede b, .poster-note b { color: #fff; font-weight: 700; }
.poster-form { display: flex; flex-direction: column; gap: 12px; }
.poster-label { font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 255, 255, 0.8); margin-bottom: -2px; }
.poster-code-input {
  width: 100%; box-sizing: border-box; font: 800 30px/1 var(--font-display); letter-spacing: 0.3em; text-transform: uppercase;
  text-align: center; color: #fff; background: rgba(15, 8, 30, 0.55); border: 1px solid rgba(196, 150, 255, 0.45);
  border-radius: 12px; padding: 18px 12px 18px calc(12px + 0.3em); outline: none;
  font-variant-numeric: tabular-nums;
}
.poster-code-input::placeholder { color: rgba(255, 255, 255, 0.4); }
.poster-code-input:focus { border-color: var(--brand-bright); box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.28); }
.poster-btn {
  display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; box-sizing: border-box;
  font: 800 18px/1 var(--font-display); letter-spacing: 0.01em; text-decoration: none;
  color: #fff; background: linear-gradient(180deg, #9d6bff, var(--brand)); border: 0; border-radius: 12px;
  padding: 19px; cursor: pointer; box-shadow: 0 10px 28px rgba(139, 92, 246, 0.45);
}
.poster-btn:hover, .poster-btn:focus-visible { background: var(--brand-bright); }
.poster-btn:focus-visible, .poster-btn-2:focus-visible { outline: 3px solid var(--accent, #22d3ee); outline-offset: 2px; }
.poster-fine { margin: 10px 0 0; font-size: 12px; text-align: center; }
.poster-fine a { color: rgba(255, 255, 255, 0.55); text-decoration: underline; text-underline-offset: 3px; }
.poster-btn-2 {
  display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; box-sizing: border-box;
  font: 700 16px/1 var(--font); color: #fff; background: rgba(15, 8, 30, 0.35); text-decoration: none;
  border: 1px solid rgba(196, 150, 255, 0.45); border-radius: 12px; padding: 17px; cursor: pointer;
}
.poster-btn-2:hover { border-color: var(--brand-bright); background: rgba(168, 85, 247, 0.16); }
.poster-or {
  display: flex; align-items: center; gap: 14px; color: rgba(255, 255, 255, 0.7); font-size: 14px;
  margin: 18px 0 14px;
}
.poster-or span { text-align: center; }
.poster-or::before, .poster-or::after { content: ""; flex: 1; min-width: 20px; height: 1px; background: rgba(196, 150, 255, 0.35); }
.poster-note { margin: 12px 0 0; font-size: 13px; line-height: 1.45; color: rgba(255, 255, 255, 0.72); }
.poster-note a { color: #fff; }
.poster-error { margin: 10px 0 0; font-size: 14px; font-weight: 700; color: var(--incorrect); }
.poster-ok { margin: 0 0 4px; font-size: 14px; font-weight: 700; color: var(--correct); }
.poster-ok .who { color: #fff; }
.poster-big-code {
  display: block; margin: 6px 0 4px; font: 900 clamp(44px, 10cqw, 64px)/1 var(--font-display);
  letter-spacing: 0.22em; color: var(--gold); text-align: center; padding-left: 0.22em;
}
.poster-stack { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }

/* --- the art --- */
.poster-art-mobile { display: none; margin: 0 -20px; aspect-ratio: 800 / 640; background-color: var(--bg); }
@container poster (max-width: 1279px) {
  .poster-art-mobile {
    display: block; order: 1;
    background-image: url("/shared/brand/player-hero-mobile-2x.webp");
    background-size: cover; background-position: center;
  }
  .poster-card { order: 0; }
  .poster-copy { order: 2; max-width: 640px; margin-inline: auto; text-align: center; padding-bottom: 28px; }
  .poster-lede { margin-inline: auto; }
}
@container poster (max-width: 639px) { .poster-top .brand-sub { display: none; } }
@container poster (max-width: 420px) {
  .poster-top { padding: 12px 14px; gap: 8px; }
  .poster-top .brand-name { font-size: 17px; }
  .poster-link { padding: 7px 10px; font-size: 12px; }
  .poster-card { padding: 24px 20px 22px; }
  .poster-card-title { font-size: 27px; }
}
@container poster (min-width: 1280px) {
  .poster-hero {
    grid-template-columns: minmax(0, 34cqw) minmax(0, min(420px, 30cqw)); justify-content: space-between;
    gap: 48px; align-items: center; align-content: center; padding: 40px 5cqw;
  }
  .poster-hero::before {
    content: ""; position: absolute; inset: 0;
    background: var(--bg) url("/shared/brand/player-hero-2x.webp") center / cover no-repeat;
    pointer-events: none;
  }
  .poster-copy { justify-self: start; }
  .poster-h1 { font-size: clamp(24px, 2.45cqw, 44px); line-height: 1.1; letter-spacing: -0.025em; }
  .poster-lede { font-size: clamp(15px, 1.25cqw, 19px); max-width: 30ch; }
  .poster-card { max-width: 420px; margin-inline: 0; justify-self: end; }
}

/* A TV is read from across a room: everything a notch bigger at 1080p. */
.poster.poster-tv .poster-top { padding: 22px 40px; }
.poster.poster-tv .poster-top .brand-name { font-size: 30px; }
.poster.poster-tv .poster-top .brand-mark { width: 52px; height: 52px; }
.poster.poster-tv .poster-link { font-size: 17px; padding: 10px 18px; }
@container poster (min-width: 1280px) {
  .poster.poster-tv .poster-hero { grid-template-columns: minmax(0, 36cqw) minmax(0, min(520px, 32cqw)); }
  .poster.poster-tv .poster-eyebrow { font-size: 17px; }
  .poster.poster-tv .poster-h1 { font-size: clamp(30px, 3cqw, 56px); }
  .poster.poster-tv .poster-lede { font-size: clamp(18px, 1.5cqw, 24px); }
  .poster.poster-tv .poster-proof { font-size: clamp(18px, 1.5cqw, 23px); }
  .poster.poster-tv .poster-card { max-width: 520px; padding: 36px 36px 32px; }
  .poster.poster-tv .poster-card-title { font-size: 38px; }
  .poster.poster-tv .poster-card-lede { font-size: 19px; }
  .poster.poster-tv .poster-label { font-size: 14px; }
  .poster.poster-tv .poster-code-input { font-size: 44px; padding: 20px 14px 20px calc(14px + 0.3em); }
  .poster.poster-tv .poster-btn { font-size: 22px; padding: 22px; }
  .poster.poster-tv .poster-note { font-size: 16px; }
  .poster.poster-tv .poster-error { font-size: 18px; }
}
