/* The front page (lib/renderFront.js, owner 2026-10-18: "lobby up front", like swcpoker.club; signed in too since
   2026-10-24).
   Loaded by that page only, after style.css, whose tokens, .home-btn, .home-mark, .games-tabs and .gl-row it
   reuses. The top bar is this page's alone: every other page keeps the no-nav, no-foot rule. */
body.front-page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }

/* Full-width rule, content on the page's column: the side padding grows past 72rem. One row on phones too
   (style.css stacks every other header under 560px). */
header.fp-bar { position: sticky; top: 0; z-index: 5; background: var(--bg); flex-direction: row; flex-wrap: nowrap;
  justify-content: space-between; align-items: center; gap: 10px;
  padding: 10px max(16px, calc((100% - 72rem) / 2 + 16px)); }
.fp-auth { display: flex; gap: 8px; align-items: center; }
/* Signed in: the player's name before Account and Log out (poker names are 12 characters at most). */
.fp-who { color: var(--dim); font-size: .9rem; font-weight: 600; white-space: nowrap; }

main.fp { width: 100%; max-width: 72rem; margin: 0 auto; padding: 16px 16px 24px; flex: 1; }

.fp-hero { margin: 0 0 16px; padding: 26px 24px; border: 1px solid var(--line); border-radius: var(--radius);
  background: radial-gradient(120% 140% at 0% 0%, #2a1c0b 0%, var(--panel) 55%); }
.fp-title { margin: 0 0 6px; font-size: clamp(1.55rem, 4.2vw, 2.3rem); font-weight: 900; line-height: 1.1;
  letter-spacing: -.005em; word-spacing: .08em; text-wrap: balance; }
.fp-lead { margin: 0 0 16px; color: var(--accent-text); font-size: 1.1rem; font-weight: 700; }
.fp-perks { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.fp-perks li { padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel-2);
  font-size: .88rem; font-weight: 600; }
/* Signed in, email not confirmed: the card's confirm line and its Resend result, under the perks. */
.fp-hero .fp-confirm { margin: 14px 0 0; }
.fp-hero .msg:empty { display: none; }

.fp-cols { display: grid; grid-template-columns: minmax(0, 1fr) 18rem; gap: 16px; align-items: start; }
.fp-lobby { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.fp-lobby .games-tabs { margin-bottom: 4px; }
/* The tabs are buttons here (they switch in place); undo what <button> brings from style.css. */
.fp-lobby button.gt-tab { background: transparent; border: 0; font: inherit; font-weight: 700; font-size: .92rem;
  cursor: pointer; min-height: 0; }
.fp-lobby button.gt-tab.active { background: var(--accent); color: var(--ink); }
.fp-sec[hidden] { display: none !important; }
.fp-sec .hint { margin: 10px 0 0; }
.fp-lobby button.seat-link { border: 0; cursor: pointer; font: inherit; font-weight: 700; min-height: 0; }
.fp-lobby > .hint { margin: 0; }
.fp-all { display: block; margin-top: 10px; text-align: right; font-weight: 700; }
.fp .dim { color: var(--dim); }

.fp-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.fp-tile { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); font-size: .92rem; }
.fp-tile p { margin: 0 0 3px; color: var(--dim); }
.fp-tile p:last-child { margin-bottom: 0; }
.fp-tile .text-link { font-size: 1em; font-weight: 700; }
.fp-tile-h { margin: 0 0 6px; color: var(--dim); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.fp-tile [data-countdown] { color: var(--fg); font-family: var(--mono); font-weight: 700; white-space: nowrap; }
.fp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.fp-chip { padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--fg); text-decoration: none;
  font-family: var(--mono); font-size: .8rem; font-weight: 700; }
.fp-chip:hover, .fp-chip:focus-visible { border-color: var(--accent); color: var(--accent-text); }

main.fp .ad-line { margin: 16px auto 0; }
.fp-foot { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 20px;
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }

@media (max-width: 760px) {
  .fp-cols { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .fp-bar .home-mark { font-size: 1.15rem; }
  .fp-auth .home-btn.small { padding: 6px 12px; }
  main.fp { padding: 12px 12px 20px; }
  .fp-hero { padding: 18px 16px; margin-bottom: 12px; }
  .fp-lead { font-size: 1rem; margin-bottom: 12px; }
  .fp-perks { gap: 6px; }
  .fp-perks li { font-size: .8rem; padding: 4px 10px; }
  .fp-lobby { padding: 10px; }
  .fp-lobby button.gt-tab { font-size: .84rem; }
}
/* Phones: the list goes edge to edge in the page, no box around the box. */
@media (max-width: 480px) {
  .fp-who { display: none; }
  .fp-lobby { padding: 0; border: 0; background: none; }
  .fp-lobby .gl-row { gap: 8px; padding: 8px 10px; }
  .fp-lobby button.seat-link { padding: 5px 10px; font-size: .86rem; }
}
@media (max-width: 360px) {
  .fp-bar { padding-left: 12px; padding-right: 12px; }
  .fp-auth { gap: 6px; }
  .fp-auth .home-btn.small { padding: 6px 10px; font-size: .85rem; }
}
