@font-face {
  font-family: "LobbyInter";
  src: url("assets/fonts/inter-v1.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* Shared with BackgammonLobbyScreen and its table cards. */
  --ink: #f5f1e8;
  --ink-muted: #bdb9b0;
  --surface: #211f1c;
  --surface-soft: #25231f;
  --surface-raised: #292723;
  --line: #48443b;
  --line-strong: #9d8b6d;
  --gold: #ffd166;
  --gold-bright: #ffdb83;
  --shell: min(1360px, calc(100% - 72px));
  --sans: "LobbyInter", Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(110px + var(--language-suggestion-height, 0px)); background: var(--surface); }
body {
  margin: 0;
  min-width: 320px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  isolation: isolate;
}
body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--surface) url("assets/lobby_background-v1.webp") center / cover no-repeat;
  content: "";
  pointer-events: none;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
.shell { width: var(--shell); margin-inline: auto; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
.skip-link {
  position: fixed;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--gold);
  color: var(--surface);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.language-suggestion {
  border-bottom: 1px solid rgba(58, 66, 55, .14);
  background: #f8f6f2;
  color: #252b23;
  color-scheme: light;
}
.language-suggestion__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 54px;
  padding: calc(env(safe-area-inset-top, 0px) + 9px) 20px 9px;
  background: #edf1e9;
}
.language-suggestion__text { margin: 0; font-size: 14px; font-weight: 700; line-height: 1.4; }
.language-suggestion__link { margin-inline-start: 6px; color: #476d2e; text-decoration: none; }
.language-suggestion__link:hover { color: #345221; text-decoration: underline; }
.language-suggestion :focus-visible { outline-color: #476d2e; outline-offset: 3px; }
.language-suggestion__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(47, 42, 36, .44);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.language-suggestion__close:hover { background: rgba(47, 42, 36, .08); color: #252b23; }
@media (max-width: 768px) {
  .language-suggestion__inner { width: 100%; gap: 10px; padding-inline: 16px 12px; }
  .language-suggestion__link { display: block; margin-block-start: 6px; margin-inline-start: 0; }
  .language-suggestion__close { width: 44px; height: 44px; }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid #454037;
  background: rgba(35, 33, 29, .88);
  backdrop-filter: blur(18px);
  transition: background-color 180ms ease;
}
.site-header.is-scrolled { background: rgba(35, 33, 29, .97); }
.header__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  min-height: 84px;
  gap: 32px;
}
.brand { display: inline-flex; align-items: center; width: 222px; max-width: 100%; text-decoration: none; }
/* Use the same artwork crop as BackgammonBrandTitle in the game menu. */
.brand__art { display: block; width: 100%; aspect-ratio: 4; overflow: hidden; }
.brand__art img { width: 100%; height: auto; transform: translateY(-14.375%); }
.header__nav { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px 28px; }
.header__nav a { color: var(--ink-muted); font-size: 14px; font-weight: 500; text-decoration: none; transition: color 160ms ease; }
.header__nav a:hover { color: var(--gold); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}
.button--compact { min-height: 44px; padding: 10px 22px; font-size: 14px; }
.button--primary, .button--compact {
  border-color: var(--gold-bright);
  background: linear-gradient(180deg, #ffd775, #eab548);
  color: #191710;
  box-shadow: 0 5px 20px rgba(255, 209, 102, .08), inset 0 1px 0 rgba(255, 255, 255, .2);
}
.button--primary:hover, .button--compact:hover { filter: brightness(1.08); box-shadow: 0 5px 26px rgba(255, 209, 102, .18); }
.button--outline { border-color: var(--line-strong); background: rgba(41, 39, 35, .6); color: var(--ink); }
.button--outline:hover { border-color: var(--gold); color: var(--gold); }
.eyebrow { margin: 0 0 18px; color: var(--gold); font-size: 11px; font-weight: 650; letter-spacing: .12em; line-height: 1.5; }

.hero { padding: clamp(44px, 5vw, 76px) 0 64px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); align-items: center; gap: clamp(32px, 4.5vw, 68px); }
.hero h1, .section h2 { margin: 0; font-weight: 700; letter-spacing: -.04em; line-height: 1.12; text-wrap: balance; }
.hero h1 { font-size: clamp(40px, 4.2vw, 64px); }
.hero h1 span { display: block; }
.hero__title-accent { margin-top: 8px; color: var(--gold); }
.hero__lead { max-width: 590px; margin: 24px 0 0; color: var(--ink-muted); font-size: clamp(16px, 1.35vw, 18px); line-height: 1.7; }
.hero__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px 26px; margin-top: 30px; }
.text-link { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 14px; font-weight: 550; text-decoration: none; }
.text-link span:last-child { color: var(--gold); font-size: 20px; }
.text-link:hover { color: var(--gold); }
.hero__proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 32px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); list-style: none; }
.hero__proof li { display: flex; flex-direction: column; gap: 5px; }
.hero__proof strong { font-size: 12px; font-weight: 600; line-height: 1.5; }
.hero__proof span { color: var(--ink-muted); font-size: 11px; line-height: 1.5; }
.hero__visual {
  min-width: 0;
  margin: 0;
}
.hero__visual img { width: 100%; height: auto; object-fit: contain; filter: drop-shadow(0 18px 16px rgba(0, 0, 0, .24)); }

.section { padding: clamp(60px, 6vw, 88px) 0; }
.section h2 { font-size: clamp(30px, 3.1vw, 44px); }
.section-heading { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: end; gap: 48px; margin-bottom: 32px; }
.section-heading > p { margin: 0; color: var(--ink-muted); font-size: 15px; }
.modes { padding-top: 44px; border-top: 1px solid var(--line); }
.mode-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.mode-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface-raised) url("assets/blot_bar_background-v1.webp") center / cover;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.mode-card:nth-child(2) { background-image: url("assets/anchor_room_background-v1.webp"); }
.mode-card:nth-child(3) { background-image: url("assets/golden_point_background-v1.webp"); }
.mode-card:nth-child(4) { background-image: url("assets/gammon_house_background-v1.webp"); }
.mode-card--feature { border-color: var(--gold); box-shadow: 0 0 26px rgba(255, 209, 102, .08); }
.mode-card:hover, .mode-card:focus-within { border-color: var(--gold); box-shadow: 0 0 26px rgba(255, 209, 102, .1); }
.mode-card__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #c9c5bc; font-size: 11px; font-weight: 500; letter-spacing: .04em; }
.mode-card__top span:last-child { color: var(--gold); }
.mode-card__board { width: 100%; height: auto; margin-block: 16px 12px; object-fit: contain; }
.mode-card h3 { margin: 0 0 12px; font-size: 22px; font-weight: 650; letter-spacing: -.025em; line-height: 1.25; }
.mode-card p { margin: 0 0 24px; color: var(--ink-muted); font-size: 14px; line-height: 1.65; }
.mode-card a { display: flex; align-items: center; justify-content: center; min-height: 46px; margin-top: auto; padding: 10px 12px; border: 1px solid #646056; border-radius: 12px; background: linear-gradient(180deg, #3d3a34, #302e29); color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1.5; text-align: center; text-decoration: none; }
.mode-card a:hover { border-color: var(--gold); }
.mode-card--feature a { border-color: var(--gold-bright); background: linear-gradient(180deg, #ffd775, #eab548); color: #191710; }
.mode-card--feature a:hover { filter: brightness(1.08); }

.flow, .rules, .strategy, .history, .faq { border-top: 1px solid var(--line); }
.flow__grid, .strategy__grid, .history__grid, .faq__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: start; gap: clamp(40px, 6vw, 88px); }
.flow__intro, .strategy__intro, .history__intro { position: sticky; top: 120px; }
.flow__intro > p:not(.eyebrow), .strategy__intro > p:not(.eyebrow), .history__intro > p:not(.eyebrow), .faq__intro > p:not(.eyebrow) { margin: 24px 0 0; color: var(--ink-muted); }
.flow__intro .button { margin-top: 28px; }
.flow__steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.flow__steps li { display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: start; gap: 20px; padding: 24px; border: 1px solid var(--line); border-radius: 17px; background: rgba(41, 39, 35, .8); }
.flow__number { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #66563a; border-radius: 12px; background: #353025; color: var(--gold); font-size: 14px; font-weight: 600; }
.flow__steps h3 { margin: 5px 0 10px; font-size: 20px; font-weight: 600; line-height: 1.3; }
.flow__steps p { margin: 0; color: var(--ink-muted); font-size: 14px; }
.rules, .strategy, .history { background: rgba(24, 23, 20, .28); }
.rule-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rule-grid article, .strategy__cards article { min-width: 0; padding: 26px; border: 1px solid var(--line); border-radius: 17px; background: rgba(41, 39, 35, .84); }
.rule-grid article > span { color: var(--gold); font-size: 14px; font-weight: 600; }
.rule-grid h3 { margin: 28px 0 12px; font-size: 21px; font-weight: 600; letter-spacing: -.02em; line-height: 1.3; }
.rule-grid p, .strategy__cards p { margin: 0; color: var(--ink-muted); font-size: 14px; }

.why__panel { padding: clamp(26px, 4vw, 56px); border: 1px solid #706045; border-radius: 17px; background: var(--surface-raised) url("assets/golden_point_background-v1.webp") center / cover; }
.why__heading { max-width: 760px; }
.why__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 40px; }
.why__list article { min-width: 0; }
.why__list article > span { color: var(--gold); font-size: 26px; font-weight: 600; }
.why__list h3 { margin: 18px 0 10px; font-size: 21px; font-weight: 600; letter-spacing: -.02em; line-height: 1.3; }
.why__list p { margin: 0; color: var(--ink-muted); font-size: 14px; }
.rule-note { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.rule-note p { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 24px; margin: 0; }
.rule-note span { color: var(--gold); font-size: 12px; font-weight: 600; }
.rule-note strong { color: var(--ink-muted); font-size: 14px; font-weight: 400; }
.strategy__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.strategy__cards article > span { color: var(--gold); font-size: 11px; font-weight: 600; letter-spacing: .08em; }
.strategy__cards h3 { margin: 28px 0 12px; font-size: 21px; font-weight: 600; letter-spacing: -.02em; line-height: 1.3; }
.history__intro .history__note { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--gold); }
.history__timeline { margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.history__timeline li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.history__timeline time { padding-top: 4px; color: var(--gold); font-size: 12px; font-weight: 550; }
.history__timeline h3 { margin: 0 0 10px; font-size: 20px; font-weight: 600; line-height: 1.3; }
.history__timeline p { margin: 0; color: var(--ink-muted); font-size: 14px; }

.faq__items { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: rgba(41, 39, 35, .8); }
.faq details[open] { border-color: #82704e; }
.faq summary { position: relative; padding: 20px; padding-inline-end: 54px; cursor: pointer; font-size: 16px; font-weight: 550; line-height: 1.5; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { position: absolute; top: 50%; right: 20px; color: var(--gold); content: "+"; font-size: 23px; font-weight: 400; transform: translateY(-50%); }
.faq summary:hover { color: var(--gold); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 20px 22px; color: var(--ink-muted); font-size: 14px; }
html[dir="rtl"] .faq summary::after { right: auto; left: 20px; }

.final-cta { padding-top: 12px; }
.final-cta__inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; gap: 48px; padding: clamp(28px, 4vw, 56px); border: 1px solid var(--gold); border-radius: 17px; background: var(--surface-raised) url("assets/golden_point_background-v1.webp") center / cover; box-shadow: 0 0 30px rgba(255, 209, 102, .06); }
.final-cta__action { justify-self: end; max-width: 360px; }
.final-cta__action p { margin: 0 0 20px; color: var(--ink-muted); }
.site-footer { padding: 48px 0 24px; border-top: 1px solid var(--line); background: rgba(24, 23, 20, .4); }
.footer__top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; padding-bottom: 36px; }
.footer__top > p { margin: 0; color: var(--ink-muted); font-size: 13px; text-align: center; }
.footer__top .button { justify-self: end; }
.footer__languages { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-bottom: 24px; font-size: 12px; }
.footer__languages a { display: inline-flex; align-items: center; min-height: 32px; color: var(--ink-muted); text-decoration: none; }
.footer__languages a:hover, .footer__languages a[aria-current="page"] { color: var(--gold); }
.footer__bottom { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--ink-muted); font-size: 12px; }
.footer__bottom p { margin: 0; }
.footer__bottom nav { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; }
.footer__bottom a, .footer__bottom button { padding: 6px 0; border: 0; background: none; color: inherit; cursor: pointer; text-decoration: none; }
.footer__bottom a:hover, .footer__bottom button:hover { color: var(--gold); }

/* All content stays visible when scripts or motion are unavailable. */
.reveal.is-visible { animation: reveal-in 420ms ease both; }
.reveal--delay.is-visible { animation-delay: 80ms; }
@keyframes reveal-in { from { opacity: .6; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (max-width: 1100px) {
  :root { --shell: calc(100% - 48px); }
  .header__inner { gap: 20px; }
  .header__nav { gap: 8px 18px; }
  .header__nav a { font-size: 12px; }
  .hero__grid { gap: 30px; }
  .hero h1 { font-size: 44px; }
  .mode-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mode-card__board { max-height: 220px; }
  .footer__top { grid-template-columns: 1fr auto; }
  .footer__top > p { grid-row: 2; text-align: start; }
}

@media (max-width: 999px) {
  .brand { width: 164px; }
}

@media (max-width: 820px) {
  :root { --shell: min(100% - 32px, 680px); }
  html { scroll-padding-top: calc(130px + var(--language-suggestion-height, 0px)); }
  .header__inner { grid-template-columns: minmax(0, 1fr) auto; min-height: 72px; padding-block: 14px 0; gap: 12px 18px; }
  .header__nav { grid-column: 1 / -1; grid-row: 2; justify-content: start; gap: 10px 24px; padding-block: 4px 14px; }
  .header__nav a { font-size: 12px; }
  .hero { padding-block: 40px 48px; }
  .hero__grid, .section-heading, .flow__grid, .strategy__grid, .history__grid, .faq__grid, .final-cta__inner { grid-template-columns: minmax(0, 1fr); }
  .hero__grid { gap: 32px; }
  .hero h1 { max-width: 620px; font-size: clamp(36px, 7vw, 52px); }
  .hero__visual { width: 100%; }
  .hero__visual img { max-height: 340px; }
  .section-heading { gap: 20px; }
  .flow__grid, .strategy__grid, .history__grid, .faq__grid { gap: 32px; }
  .flow__intro, .strategy__intro, .history__intro { position: static; }
  .rule-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why__list { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 28px; }
  .why__list article + article { padding-top: 24px; border-top: 1px solid var(--line); }
  .why__list h3 { margin-top: 10px; }
  .final-cta__inner { gap: 28px; }
  .final-cta__action { justify-self: start; max-width: none; }
  .footer__bottom { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}

@media (max-width: 560px) {
  .header__inner { gap: 12px; }
  .button--compact { min-height: 40px; padding: 10px 12px; font-size: 12px; }
  .header__nav { justify-content: space-between; column-gap: 14px; }
  .header__nav a { font-size: 11px; }
  .hero h1 { font-size: clamp(32px, 9vw, 46px); }
  .eyebrow { font-size: 10px; letter-spacing: .08em; }
  .hero__actions { align-items: stretch; flex-direction: column; gap: 18px; }
  .hero__actions .button { width: 100%; }
  .hero__actions .text-link { justify-content: center; }
  .hero__proof { gap: 14px; margin-top: 26px; }
  .hero__proof strong { font-size: 11px; }
  .hero__proof span { font-size: 10px; }
  .section { padding-block: 48px; }
  .modes { padding-top: 32px; }
  .section h2 { font-size: clamp(28px, 7vw, 36px); }
  .mode-grid { gap: 12px; }
  .mode-card { padding: 12px; border-radius: 14px; }
  .mode-card__top { font-size: 9px; }
  .mode-card__board { margin-block: 14px 10px; }
  .mode-card h3 { font-size: 17px; }
  .mode-card p { margin-bottom: 18px; font-size: 12px; }
  .mode-card a { padding-inline: 8px; font-size: 12px; border-radius: 10px; }
  .rule-grid, .strategy__cards { grid-template-columns: minmax(0, 1fr); }
  .rule-grid article, .strategy__cards article { padding: 22px; }
  .rule-grid h3, .strategy__cards h3 { margin-top: 18px; }
  .flow__steps li { grid-template-columns: 34px minmax(0, 1fr); gap: 14px; padding: 20px; }
  .flow__number { width: 34px; height: 34px; border-radius: 10px; font-size: 12px; }
  .flow__steps h3 { margin-top: 3px; font-size: 19px; }
  .rule-note p { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .history__timeline li { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .faq summary { font-size: 15px; }
  .final-cta { padding-top: 0; }
  .final-cta__action, .final-cta__action .button { width: 100%; }
  .footer__top { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .footer__top .button { justify-self: start; }
  .footer__languages { gap: 6px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition-duration: .01ms !important; }
}
