/* PipRank landing (piprank.com/). Sidebar nav, animated board, headline and one green call to action.
   Colours are PipRank Theme tokens (Assets/BackgammonApp.Style.cs); radii 10px, sidebar 180px. Dark only. */
:root {
  --page: #26292D;
  --side: #1D2127;
  --side-hover: #1A1D20;
  --surface: #30343A;
  --surface2: #3A3F46;
  --hairline: #474D55;
  --text: #FFFFFF;
  --text2: #CDCBC8;
  --text3: #B2AFAB;
  --green: #3FA56A;
  --green-hi: #5CB882;
  --green-lip: #2B7A4C;
  /* Primary button gradient: the same tokens as shared.css --pr-primary-grad, so Get Started matches Continue with Email. */
  --green-top: #4AAE74;
  --green-bottom: #389962;
  --green-grad: linear-gradient(180deg, var(--green-top) 0%, var(--green-bottom) 100%);
  --green-grad-hover: linear-gradient(180deg, #55B67D 0%, #3FA56A 100%);
  --green-grad-pressed: linear-gradient(180deg, #3D9F66 0%, #318A57 100%);
  --side-w: 180px;
  --radius: 10px;
  /* Hero gutters: one value on both sides, so the board + pitch group sits centred in the main column
     (about 40px at 1440 wide: board frame at x=220, CTA ending 40px before the content edge). */
  --pad-x: clamp(24px, 2.8vw, 72px);
  --pad-v: 32px;
  --sans: Inter, "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; background: var(--page); color: var(--text); }
body { font-family: var(--sans); font-size: 16px; line-height: 1.4; min-height: 100vh; -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--green-hi); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.lp-btn { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: var(--radius); font-weight: 800;
  cursor: pointer; white-space: nowrap; user-select: none; -webkit-user-select: none;
  transition: filter .12s ease, transform .08s ease; }
/* PipRank button depth: an inset lower edge plus a short neutral drop shadow (no coloured glow, no hard offset lip). */
.lp-btn-green { background: var(--green-bottom) var(--green-grad); color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, .18);
  box-shadow: inset 0 -3px 0 var(--green-lip), 0 4px 10px rgba(0, 0, 0, .3); }
.lp-btn-green:hover { background: var(--green-bottom) var(--green-grad-hover); }
.lp-btn-green:active { background: var(--green-bottom) var(--green-grad-pressed); transform: translateY(1px); box-shadow: inset 0 -1px 0 var(--green-lip), 0 2px 6px rgba(0, 0, 0, .3); }
.lp-btn-dark { background: var(--surface); color: var(--text2); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .28), 0 6px 14px -10px rgba(0, 0, 0, .8); }
.lp-btn-dark:hover { background: var(--surface2); color: var(--text); }
.lp-btn-cta { width: 100%; height: 64px; font-size: 24px; border-radius: var(--radius);
  box-shadow: inset 0 -4px 0 var(--green-lip), 0 6px 14px rgba(0, 0, 0, .35); }
.lp-btn-cta:active { box-shadow: inset 0 -2px 0 var(--green-lip), 0 3px 8px rgba(0, 0, 0, .35); }
.lp-btn-side { width: 100%; height: 40px; font-size: 15px; border-radius: var(--radius); }
.lp-btn-side2 { margin-top: 8px; }
.lp-btn-sm { height: 34px; padding: 0 14px; font-size: 15px; border-radius: var(--radius); }

/* ---------- Brand ---------- */
.lp-logo { display: inline-flex; align-items: center; gap: 7px; color: var(--text); }
.lp-mark { width: 30px; height: 30px; flex: none; }
.lp-word { font-weight: 800; font-size: 24px; letter-spacing: -.02em; line-height: 1; }

/* ---------- Sidebar (desktop) ---------- */
.lp-nav { position: fixed; z-index: 20; top: 0; bottom: 0; left: 0; width: var(--side-w); display: flex; flex-direction: column;
  background: var(--side); padding: 14px 0 8px; overflow-y: auto; }
.lp-logo-side { margin: 0 0 12px 14px; height: 38px; }
.lp-menu { list-style: none; margin: 0; padding: 0; }
.lp-menu a { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px; font-weight: 700; font-size: 15.5px;
  color: #fff; opacity: .9; }
.lp-menu a:hover { background: var(--side-hover); opacity: 1; }
.lp-ico { width: 26px; height: 26px; flex: none; }
.lp-nav-foot { margin-top: auto; padding: 0 7px; }
.lp-search { display: flex; align-items: center; gap: 10px; width: 100%; height: 40px; padding: 0 7px; margin-bottom: 10px;
  background: none; border: 0; border-radius: 4px; color: var(--text3); font-size: 15px; font-weight: 600; cursor: pointer; text-align: left; }
.lp-search:hover { color: var(--text2); background: var(--side-hover); }
.lp-ico-line { width: 22px; height: 22px; margin: 0 2px; }
.lp-scrim { position: fixed; inset: 0; z-index: 19; background: rgba(16, 18, 21, .66); }

/* ---------- Top bar (phones / tablets) ---------- */
.lp-top { display: none; }

/* ---------- Hero ---------- */
/* The hero row sits centred in the first viewport (equal air above and below the board). The board is sized from the
   viewport height first (all of it minus the 2 x --pad-v the main padding reserves), then capped by the width
   that is left after the pitch column and the gap. 760/720 = the board's aspect ratio. */
.lp-main { margin-left: var(--side-w); min-height: 100vh; min-height: 100dvh; display: flex; justify-content: center; align-items: center;
  padding: var(--pad-v) var(--pad-x); container-type: inline-size; }
.lp-hero { --gap: clamp(24px, 1.7vw, 96px); --pitch-w: clamp(320px, 27.5vw, 450px);
  --bw: min(1000px, calc((100vh - 2 * var(--pad-v)) * 760 / 720), calc(100vw - var(--side-w) - var(--pitch-w) - var(--gap) - 2 * var(--pad-x) - 16px));
  display: flex; align-items: center; gap: var(--gap); }
/* Size the board from the real content width (100cqw excludes the scrollbar, 100vw does not). */
@supports (width: 1cqw) {
  .lp-hero { --bw: min(1000px, calc((100vh - 2 * var(--pad-v)) * 760 / 720), calc(100cqw - var(--pitch-w) - var(--gap))); }
}
.lp-board-wrap { flex: none; width: var(--bw); }
.lp-board { position: relative; width: 100%; aspect-ratio: 760 / 720; border-radius: var(--radius); }
.lp-board > svg { display: block; width: 100%; height: 100%; overflow: visible; }
.lp-pitch { flex: none; width: var(--pitch-w); display: flex; flex-direction: column; align-items: center; text-align: center; }
/* The headline tracks the pitch column (27.5vw): 44px at 1440 wide, so "Play Backgammon" (~386px, 97% of the 396px CTA)
   spans the column; the sub runs a touch wider so the block under it is not bottom-light. */
.lp-h1 { margin: 0; white-space: nowrap; font-weight: 800; font-size: clamp(34px, 3.06vw, 50px); line-height: 1.12; letter-spacing: -.018em; color: #fff; }
.lp-sub { margin: 22px 0 40px; font-size: clamp(17px, 1.32vw, 20px); line-height: 1.5; font-weight: 500; color: rgba(255, 255, 255, .88);
  max-width: 340px; text-wrap: balance; }
.lp-art { display: none; }

/* ---------- Store badges + footer (below the fold) ---------- */
.lp-apps { margin-left: var(--side-w); padding: 56px 24px 40px; border-top: 1px solid var(--hairline); text-align: center; }
.lp-apps-h { margin: 0 0 22px; font-size: clamp(24px, 2vw, 30px); font-weight: 800; letter-spacing: -.01em; color: var(--text); }
.lp-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.lp-badge { display: block; border-radius: var(--radius); transition: transform .12s ease, filter .12s ease; }
.lp-badge img { display: block; width: 180px; height: 54px; }
.lp-badge:hover { filter: brightness(1.12); }
.lp-badge:active { transform: translateY(1px); }
.lp-foot { margin-left: var(--side-w); display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px;
  padding: 18px 24px max(28px, env(safe-area-inset-bottom)); font-size: 14px; font-weight: 600; color: var(--text3); }
.lp-foot a:hover { color: var(--text); }
.lp-foot-c { color: var(--text3); opacity: .8; font-weight: 500; }

/* ---------- Toast ---------- */
.lp-toast { position: fixed; z-index: 40; left: 50%; bottom: max(28px, env(safe-area-inset-bottom)); transform: translate(-50%, 16px);
  padding: 12px 18px; border-radius: var(--radius); background: #1A1D20; color: var(--text); font-size: 15px; font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
  max-width: calc(100vw - 32px); text-align: center; }
.lp-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Phones / tablets: sidebar becomes a top bar + drawer, the board stacks over the headline ---------- */
@media (max-width: 960px) {
  .lp-top { display: flex; align-items: center; gap: 8px; position: sticky; top: 0; z-index: 18; height: 56px;
    padding: 0 max(10px, env(safe-area-inset-right)) 0 max(6px, env(safe-area-inset-left)); background: var(--page); }
  .lp-burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 0 9px;
    background: none; border: 0; cursor: pointer; }
  .lp-burger span { display: block; height: 4px; border-radius: 2px; background: #9CA1A7; }
  .lp-logo-top .lp-mark { width: 28px; height: 28px; }
  .lp-logo-top .lp-word { font-size: 23px; }
  .lp-top-actions { margin-left: auto; display: flex; gap: 8px; }

  .lp-nav { width: min(280px, 82vw); transform: translateX(-102%); visibility: hidden;
    transition: transform .22s cubic-bezier(.2, .7, .2, 1), visibility 0s linear .22s;
    box-shadow: 0 0 40px rgba(0, 0, 0, .5); padding-top: max(14px, env(safe-area-inset-top)); }
  .lp-nav.open { transform: none; visibility: visible; transition: transform .22s cubic-bezier(.2, .7, .2, 1); }
  .lp-menu a { height: 48px; font-size: 17px; }

  /* 16px under the top bar so the board frame never touches it. */
  .lp-main { margin-left: 0; min-height: 0; padding: 16px 16px 48px; container-type: normal; }
  .lp-hero { flex-direction: column; gap: 26px; width: 100%; --bw: min(100%, 560px); }
  .lp-board-wrap { width: var(--bw); }
  .lp-pitch { width: min(100%, 560px); }
  .lp-h1 { font-size: clamp(30px, 8vw, 44px); }
  .lp-sub { margin: 18px 0 30px; font-size: 17px; max-width: 340px; }
  .lp-btn-cta { height: 62px; font-size: 24px; }
  .lp-apps, .lp-foot { margin-left: 0; }
  .lp-apps { padding: 40px 16px 28px; }
  .lp-badge img { width: 162px; height: 48.6px; }
  /* Phones: the register illustration floats in the band under Get Started. */
  .lp-art { display: block; width: min(300px, 76vw); height: auto; margin: 14px auto 0; pointer-events: none; user-select: none; }
}
@media (max-width: 360px) {
  .lp-btn-sm { padding: 0 10px; font-size: 14px; }
  .lp-logo-top .lp-word { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .lp-btn, .lp-nav, .lp-toast, .lp-badge { transition: none; }
}

/* ---------- Signed-in landing (data-pr-auth="in" on <html>; set by the head guard + site/landing.js) ----------
   Additive only: existing tokens, no new colours. Sign Up / Log In give way to one player chip. */
[data-pr-auth=in] .lp-nav-foot > a.lp-btn:not(.lp-chip),
[data-pr-auth=in] .lp-top-actions > a.lp-btn:not(.lp-chip) { display: none; }
[data-pr-auth=in] .lp-chip { justify-content: flex-start; gap: 8px; min-width: 0; padding: 0 10px 0 6px; color: var(--text); font-weight: 800; overflow: hidden; }
[data-pr-auth=in] .lp-chip-av { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px;
  border-radius: 50%; background: var(--green); color: var(--text); font-size: 14px; font-weight: 800; line-height: 1;
  box-shadow: inset 0 -2px 0 var(--green-lip); text-shadow: none; }
[data-pr-auth=in] .lp-chip-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
[data-pr-auth=in] .lp-chip-rating { flex: none; margin-left: auto; color: var(--text3); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
[data-pr-auth=in] .lp-chip-rating[hidden] { display: none; }
[data-pr-auth=in] .lp-chip-sm { gap: 7px; padding: 0 11px 0 5px; }
[data-pr-auth=in] .lp-chip-sm .lp-chip-av { width: 24px; height: 24px; font-size: 13px; }
[data-pr-auth=in] .lp-chip-sm .lp-chip-name { max-width: 120px; }
[data-pr-auth=in] .lp-signout { height: 32px; margin: 6px 0 0; font-size: 14px; }
@media (max-width: 379px) {
  [data-pr-auth=in] .lp-chip-sm .lp-chip-rating { display: none; }
  [data-pr-auth=in] .lp-chip-sm .lp-chip-name { max-width: 96px; }
}

/* ---------- About PipRank (2026-12-01): a short text section between the store badges and the footer ----------
   Written by tools/web_seo_pages.py, for visitors who scroll down and for crawlers that run no JavaScript.
   Additive only: existing tokens, no new colours; nothing above the fold changes. */
.lp-about { margin-left: var(--side-w); padding: 34px 24px 6px; border-top: 1px solid var(--hairline); }
.lp-about-in { max-width: 720px; margin: 0 auto; text-align: center; }
.lp-about-h { margin: 0 0 12px; font-size: 18px; font-weight: 800; letter-spacing: -.005em; color: var(--text2); }
.lp-about p { margin: 0 0 12px; font-size: 15px; line-height: 1.6; color: var(--text3); }
.lp-about .lp-about-more { font-size: 14px; }
.lp-about a { color: var(--text2); text-decoration: underline; text-underline-offset: 3px; }
.lp-about a:hover { color: var(--text); }
@media (max-width: 960px) {
  .lp-about { margin-left: 0; padding: 28px 16px 4px; }
}
