/* Marketing landing page (public/landing.php).
 *
 * Loaded AFTER style.css + tutorial.css: the page reuses the real board
 * markup for the playable tutorial, so the game stylesheets must stay --
 * everything here either overrides the in-game shell (dark glass on a
 * bamboo photo, white text, no text selection) or adds the marketing UI.
 * All marketing classes are prefixed .lp- to avoid collisions. */

:root {
  --lp-paper: #f6f2e6;
  --lp-paper-2: #fffdf7;
  --lp-ink: #16240f;
  --lp-ink-2: #46583c;
  --lp-ink-3: #6c7f61;
  --lp-line: rgba(22, 36, 15, 0.12);
  --lp-gold: #e8a90c;
  --lp-gold-soft: #ffd96b;
  --lp-red: #d8392b;
  --lp-blue: #1f63d8;
  --lp-green: #5d9b2c;
  --lp-dark: #14210d;
  --lp-radius: 20px;
  --lp-max: 1160px;
  --lp-header-h: 68px;
  --lp-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Undo the in-game shell ---------- */
html:has(body.rps-landing),
body.rps-landing {
  background: var(--lp-paper);
  background-image: none;
  color: var(--lp-ink);
  scroll-behavior: smooth;
}
/* style.css sets overflow-x:hidden on html AND body. Any overflow other
   than visible on body makes it the sticky containing block; body itself
   does not scroll (the viewport does), so .lp-header never sticks.
   Keep html as the scroller; leave body overflow visible. Specificity must
   beat html:not(:has(body.game)) / body:not(.game) in style.css. */
html:has(body.rps-landing):not(:has(body.game)) {
  overflow-x: clip;
  overflow-y: auto;
}
body.rps-landing {
  overflow: visible;
  font-family: var(--lp-font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-user-select: text;
  user-select: text;
  scroll-padding-top: calc(var(--lp-header-h) + 12px);
}
body.rps-landing::before {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  html:has(body.rps-landing),
  body.rps-landing {
    scroll-behavior: auto;
  }
}

/* Zero-specificity resets (:where) so every .lp- rule below can still set
   its own margins without an !important arms race against style.css. */
:where(body.rps-landing) :where(h1, h2, h3) {
  margin: 0;
  color: var(--lp-ink);
  letter-spacing: -0.022em;
  line-height: 1.08;
  text-wrap: balance;
}
:where(body.rps-landing) :where(p, ul) {
  margin: 0;
}
:where(body.rps-landing) :where(img) {
  max-width: 100%;
}
body.rps-landing a {
  color: inherit;
}
body.rps-landing :focus-visible {
  outline: 3px solid var(--lp-blue);
  outline-offset: 3px;
  border-radius: 6px;
}

.lp-shell {
  position: relative;
  z-index: 1;
  overflow: clip;
}
.lp-wrap {
  width: 100%;
  max-width: var(--lp-max);
  margin: 0 auto;
  padding-inline: clamp(18px, 5vw, 32px);
  box-sizing: border-box;
}
.lp-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 10px 16px;
  background: var(--lp-ink);
  color: #fff;
  border-radius: 0 0 10px 0;
}
.lp-skip:focus {
  left: 0;
}

/* ---------- Shared bits ---------- */
.lp-eyebrow {
  display: block;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--lp-gold);
}
.lp-lead {
  max-width: 46ch;
  margin-top: 18px;
  font-size: clamp(16px, 1.6vw, 18.5px);
  color: var(--lp-ink-2);
}
.lp-mark {
  position: relative;
  isolation: isolate;
  white-space: nowrap;
}
.lp-mark::after {
  content: "";
  position: absolute;
  left: -0.04em;
  right: -0.04em;
  bottom: 0.03em;
  height: 0.2em;
  border-radius: 0.1em;
  background: linear-gradient(90deg, var(--lp-gold-soft), var(--lp-gold));
  opacity: 0.65;
  z-index: -1;
}
.lp-section {
  padding-block: clamp(64px, 8vw, 104px);
}
.lp-section-head {
  max-width: 42ch;
  margin-bottom: clamp(34px, 4vw, 52px);
}
.lp-section-head h2 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
}

/* ---------- Buttons + store badges ---------- */
body.rps-landing .lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 26px;
  border: 0;
  border-radius: 14px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease;
}
body.rps-landing .lp-btn--primary {
  background: linear-gradient(180deg, #7cbb43, #4f8a24);
  color: #fff;
  box-shadow: 0 4px 0 #3a6717, 0 10px 22px rgba(41, 78, 15, 0.28);
}
body.rps-landing .lp-btn--primary:hover {
  filter: brightness(1.06);
}
body.rps-landing .lp-btn--primary:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #3a6717, 0 6px 14px rgba(41, 78, 15, 0.24);
}
body.rps-landing .lp-btn--ghost {
  background: rgba(232, 169, 12, 0.12);
  color: #8a6106;
  box-shadow: inset 0 0 0 1.5px rgba(232, 169, 12, 0.4);
}
body.rps-landing .lp-btn--ghost:hover {
  background: rgba(232, 169, 12, 0.2);
}
body.rps-landing .lp-btn--ghost:active {
  transform: translateY(2px);
}
body.rps-landing .lp-btn--onDark {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.32);
}
body.rps-landing .lp-btn--onDark:hover {
  background: rgba(255, 255, 255, 0.18);
}
body.rps-landing .lp-btn--sm {
  min-height: 44px;
  padding: 0 18px;
  font-size: 15px;
  border-radius: 12px;
}

.lp-store-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}
.lp-store-row--tight {
  margin-top: 12px;
}
/* Official Apple / Google badges: height is the only thing we set.
   Do not recolour, invert, or crop — that violates their guidelines. */
body.rps-landing .lp-badge {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  line-height: 0;
  box-shadow: none;
  border-radius: 0;
  transition: opacity 0.12s ease;
}
body.rps-landing .lp-badge:hover {
  filter: none;
  background: transparent;
  opacity: 0.88;
}
body.rps-landing .lp-badge:active {
  transform: none;
  opacity: 0.78;
}
body.rps-landing .lp-badge img {
  display: block;
  height: 40px;
  width: auto;
}

.lp-trust {
  margin-top: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--lp-ink-3);
}
.lp-trust span {
  white-space: nowrap;
}

/* ---------- Header ---------- */
.lp-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(246, 242, 230, 0.86);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.lp-header.is-stuck {
  border-bottom-color: var(--lp-line);
  box-shadow: 0 6px 20px rgba(22, 36, 15, 0.06);
}
.lp-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--lp-header-h);
}
.lp-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: 0 0 auto;
}
.lp-brand img {
  height: 48px;
  width: auto;
  display: block;
}
.lp-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
body.rps-landing .lp-header-actions .lp-badge,
body.rps-landing .lp-header-actions .lp-badge img {
  height: 36px;
}
@media (max-width: 860px) {
  body.rps-landing .lp-header-actions .lp-badge {
    display: none;
  }
}

.lp-lang {
  position: relative;
  flex: 0 0 auto;
}
.lp-lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--lp-ink);
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  list-style: none;
}
.lp-lang-btn::-webkit-details-marker,
.lp-lang-btn::marker {
  display: none;
}
.lp-lang-btn:hover {
  background: rgba(22, 36, 15, 0.06);
}
.lp-lang[open] .lp-lang-btn {
  background: rgba(22, 36, 15, 0.08);
}
.lp-lang-chevron {
  display: block;
  opacity: 0.55;
  transition: transform 0.15s ease;
}
.lp-lang[open] .lp-lang-chevron {
  transform: rotate(180deg);
}
.lp-lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 2;
  margin: 0;
  padding: 6px;
  min-width: 188px;
  list-style: none;
  background: var(--lp-paper-2);
  border: 1px solid var(--lp-line);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(22, 36, 15, 0.12);
}
.lp-lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--lp-ink);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.lp-lang-option:hover,
.lp-lang-option:focus-visible {
  background: rgba(22, 36, 15, 0.06);
}
.lp-lang-option.is-current {
  background: rgba(93, 155, 44, 0.14);
}
.lp-lang-option-code {
  width: 2.1em;
  color: var(--lp-ink-3);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
@media (prefers-reduced-motion: reduce) {
  .lp-lang-chevron {
    transition: none;
  }
}

/* ---------- Hero ---------- */
.lp-hero {
  position: relative;
  padding-block: clamp(48px, 7vw, 88px) clamp(56px, 7vw, 96px);
  background:
    radial-gradient(80% 60% at 78% 4%, rgba(255, 217, 107, 0.28), transparent 62%),
    linear-gradient(180deg, #fbf8ee 0%, var(--lp-paper) 100%);
}
.lp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/background_2.webp") center / cover no-repeat;
  opacity: 0.17;
  -webkit-mask-image: radial-gradient(100% 80% at 76% 0%, #000 0%, transparent 70%);
  mask-image: radial-gradient(100% 80% at 76% 0%, #000 0%, transparent 70%);
  pointer-events: none;
}
.lp-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
}
.lp-hero-copy h1 {
  font-size: clamp(38px, 5.6vw, 62px);
  font-weight: 800;
}
/* Product shot: iPhone frame with a live match replay. The decorative
   chips still float around the device. */
.lp-hero-art {
  position: relative;
  isolation: isolate;
  justify-self: center;
  width: min(348px, 88vw, calc(64vh * 393 / 748));
}
.lp-phone {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 393 / 748;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}
.lp-phone-bezel {
  position: absolute;
  inset: 0;
  border-radius: 18.8% / 9.9%;
  background: #1a1a1c;
  box-shadow:
    0 0 0 1px #2c2c2e,
    0 0 0 3px #111,
    0 28px 50px -12px rgba(20, 33, 13, 0.55),
    0 8px 18px rgba(20, 33, 13, 0.2);
  overflow: hidden;
}
.lp-phone-screen {
  position: absolute;
  inset: 9px 8px;
  border-radius: 16.4% / 8.6%;
  overflow: hidden;
  background-color: #7fae3f;
  background-image: url("../img/background_mobile.webp");
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  color: #fff;
}
.lp-phone-notch {
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 30%;
  height: 22px;
  border-radius: 14px;
  background: #0a0a0a;
  box-shadow: inset 0 0 0 1px #1c1c1e;
  z-index: 8;
}
.lp-phone-status {
  position: relative;
  z-index: 7;
  flex: 0 0 auto;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  box-sizing: border-box;
}
.lp-phone-time {
  min-width: 2.6em;
  padding-left: 4px;
  font-variant-numeric: tabular-nums;
}
.lp-phone-status-icons {
  display: flex;
  align-items: center;
  gap: 5px;
  padding-right: 2px;
}
.lp-phone-status-icons svg {
  display: block;
  fill: currentColor;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.4));
}
.lp-phone-batt {
  display: block;
  width: 22px;
  height: 11px;
  border: 1.2px solid rgba(255, 255, 255, 0.95);
  border-radius: 3px;
  position: relative;
  box-sizing: border-box;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.4));
}
.lp-phone-batt::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 2.5px;
  width: 1.5px;
  height: 5px;
  border-radius: 0 1px 1px 0;
  background: rgba(255, 255, 255, 0.85);
}
.lp-phone-batt i {
  display: block;
  position: absolute;
  inset: 1.5px;
  width: 72%;
  border-radius: 1.5px;
  background: #fff;
}
.lp-phone-home {
  flex: 0 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lp-phone-home::after {
  content: "";
  width: 36%;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.45);
}
.lp-phone-btn {
  position: absolute;
  background: #2a2a2e;
  z-index: 2;
}
.lp-phone-btn--silent {
  left: -2px;
  top: 14%;
  width: 3px;
  height: 3.2%;
  border-radius: 2px 0 0 2px;
}
.lp-phone-btn--vol-up {
  left: -2px;
  top: 20%;
  width: 3px;
  height: 6%;
  border-radius: 2px 0 0 2px;
}
.lp-phone-btn--vol-down {
  left: -2px;
  top: 27.5%;
  width: 3px;
  height: 6%;
  border-radius: 2px 0 0 2px;
}
.lp-phone-btn--power {
  right: -2px;
  top: 22%;
  width: 3px;
  height: 8%;
  border-radius: 0 2px 2px 0;
}
.lp-phone-poster {
  position: absolute;
  inset: 10px 8px;
  z-index: 4;
  width: auto;
  height: auto;
  object-fit: cover;
  border-radius: 16.4% / 8.6%;
}
.lp-phone-poster[hidden] {
  display: none !important;
}
body.rps-landing .lp-phone .boardpanel {
  flex: 1 1 auto;
  align-self: stretch;
  width: auto;
  min-width: 0;
  min-height: 0;
  height: auto;
  margin: 0 8px 4px;
  padding: 0 6px;
  border-radius: 16px;
  background: rgba(20, 36, 12, 0.28);
  border: 0;
  box-shadow: none;
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  align-items: stretch;
}
body.rps-landing .lp-phone .boardpanel.turn-red,
body.rps-landing .lp-phone .boardpanel.turn-blue {
  animation: none;
}
body.rps-landing .lp-phone .banner {
  font-size: 13px;
  padding: 5px 8px;
  border-radius: 10px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  align-self: center;
}
body.rps-landing .lp-phone .banner-name-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.rps-landing .lp-phone #hero-topBanner { margin: 0; }
body.rps-landing .lp-phone #hero-botBanner { margin: 0; }
body.rps-landing .lp-phone .board-area {
  min-height: 0;
  overflow: hidden;
}
body.rps-landing .lp-phone .overlay.combat-fx,
body.rps-landing .lp-phone .overlay.tie-choose-fx {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
body.rps-landing .lp-phone .setup-hint .setup-hint-box {
  font-size: 13px;
  padding: 7px 12px;
}
body.rps-landing .lp-phone .setup-hint .setup-hint-icon {
  width: 22px;
  height: 22px;
}
body.rps-landing .lp-phone .overlay .panel {
  max-width: 100%;
  padding: 8px 6px 10px;
}
/* Isolate overlay titles from marketing .lp-hero-copy h1 and from the
   in-game 30px green-stroke treatment — the phone shell is ~220–348px. */
body.rps-landing .lp-phone .overlay h1,
body.rps-landing .lp-phone .overlay .panel > h2 {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.15;
  color: #fff;
  -webkit-text-stroke: 0;
  paint-order: fill;
  text-shadow: 0 2px 4px rgba(0, 0, 0, .55);
  margin: 0;
  padding-bottom: 0;
  white-space: nowrap;
}
body.rps-landing .lp-phone .overlay.tie-choose-fx .panel {
  background: none;
  border: none;
  box-shadow: none;
  padding: 0 4px;
}
body.rps-landing .lp-phone .overlay.tie-choose-fx .panel > p {
  font-size: 11px;
  font-weight: 700;
  margin: 4px 0 8px;
  line-height: 1.2;
}
body.rps-landing .lp-phone .tie-head {
  gap: 5px;
}
body.rps-landing .lp-phone .tie-title-block h1,
body.rps-landing .lp-phone .tie-locked-copy h1,
body.rps-landing .lp-phone .overlay.tie-choose-fx h1 {
  font-size: 14px;
}
body.rps-landing .lp-phone .tie-timer {
  flex: 0 0 auto;
  min-width: 24px;
  height: 24px;
  font-size: 12px;
  border-width: 1.5px;
}
body.rps-landing .lp-phone .choose {
  gap: 5px;
}
body.rps-landing .lp-phone .choose .pick {
  max-width: 48px;
  padding: 5px 3px;
  border-radius: 8px;
}
body.rps-landing .lp-phone .choose .pick img {
  max-width: 34px;
}
body.rps-landing .lp-phone .choose .pick.picked {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.55);
}
body.rps-landing .lp-phone .tie-locked-row {
  gap: 8px;
}
body.rps-landing .lp-phone .tie-locked-copy .waitline {
  margin-top: 2px;
  font-size: 11px;
  font-weight: 700;
}
body.rps-landing .lp-phone .tie-locked-choice img {
  width: 42px;
  height: 42px;
}
body.rps-landing .lp-phone .overlay .panel.combat-panel {
  padding: 2px 2px 4px;
  overflow: hidden;
}
body.rps-landing .lp-phone .cm-arena {
  padding: 0 2px;
}
body.rps-landing .lp-phone .cm-arena.phase-hold,
body.rps-landing .lp-phone .cm-arena.phase-return {
  gap: 6px;
  padding: 0 2px;
}
body.rps-landing .lp-phone .cm-win {
  font-size: 13px;
  margin-top: 0;
  -webkit-text-stroke: 0.8px rgba(255, 255, 255, 0.9);
}
body.rps-landing .lp-phone .endscreen .gameover {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.1;
  color: #fff;
  -webkit-text-stroke: 1.5px #3c6b1f;
  paint-order: stroke fill;
  text-shadow: 0 2px 0 #2c5114, 0 3px 6px rgba(0, 0, 0, .3);
  margin: 0;
  padding-bottom: 0;
  white-space: nowrap;
}
body.rps-landing .lp-phone .es-scene {
  margin: 2px 0 0;
  padding-top: 12px;
  padding-bottom: 2px;
}
body.rps-landing .lp-phone .es-crown {
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 6px;
}
body.rps-landing .lp-phone .es-fighter-fig {
  min-height: 72px;
}
body.rps-landing .lp-phone .es-fighter.win .es-fighter-fig {
  min-height: 96px;
}
body.rps-landing .lp-phone .es-fighter.lose .es-fighter-fig {
  min-height: 68px;
}
body.rps-landing .lp-phone .es-fighter img {
  max-height: 88px;
}
body.rps-landing .lp-phone .es-fighter.win img {
  max-height: 104px;
}
body.rps-landing .lp-phone .es-fighter.lose img {
  max-height: 72px;
}
body.rps-landing .lp-phone .es-result {
  font-size: 15px;
  margin: 2px 0 0;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.9);
}
body.rps-landing .lp-phone .es-xp {
  font-size: 12px;
  font-weight: 800;
  margin-top: 2px;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .45);
}
.lp-hero-art::after {
  content: "";
  position: absolute;
  inset: 14% -14% -12% -14%;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(232, 169, 12, 0.3), transparent 72%);
  filter: blur(6px);
}
@media (max-width: 960px) {
  .lp-hero-inner {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
  }
  .lp-hero .lp-lead,
  .lp-hero .lp-section-head {
    margin-inline: auto;
  }
  .lp-hero .lp-store-row {
    justify-content: center;
  }
  .lp-hero-art {
    margin-top: 8px;
    width: min(300px, 80vw, calc(57vh * 393 / 748));
  }
}

/* ---------- Playable tutorial ---------- */
.lp-demo {
  position: relative;
  background: linear-gradient(180deg, var(--lp-paper) 0%, #efeadb 100%);
  border-block: 1px solid var(--lp-line);
}
.lp-demo-head {
  max-width: 60ch;
  margin: 0 auto clamp(28px, 3.6vw, 40px);
  text-align: center;
}
.lp-demo-head h2 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
}
.lp-demo-head .lp-lead {
  margin-inline: auto;
}

.lp-stage {
  width: min(620px, 100%);
  margin: 0 auto;
  padding: 16px;
  border-radius: 26px;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(124, 187, 67, 0.35), transparent 60%),
    linear-gradient(180deg, #26401a 0%, #16240f 100%);
  box-shadow:
    0 0 0 1.5px rgba(232, 169, 12, 0.5),
    0 34px 70px -24px rgba(20, 33, 13, 0.6);
  box-sizing: border-box;
  /* Back to the in-game palette: the board, banners and Sensei bubble are all
     built for white text on dark glass. */
  color: #fff;
  /* The tutorial board is a game surface: dragging/selecting inside it is noise. */
  -webkit-user-select: none;
  user-select: none;
}
/* The stage itself is the frame, so the in-game panel drops its own chrome. */
body.rps-landing .lp-stage .boardpanel {
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
body.rps-landing .lp-stage .boardpanel.turn-red,
body.rps-landing .lp-stage .boardpanel.turn-blue {
  background: transparent;
  border: 0;
  animation: none;
  box-shadow: none;
}
body.rps-landing .lp-stage .banner {
  font-size: clamp(14px, 2.4vw, 17px);
  padding: 7px 10px;
}
body.rps-landing .lp-stage .board-area {
  flex: 0 0 auto;
  aspect-ratio: 7.063 / 6.34;
  min-height: 0;
}
/* On a phone the Sensei bubble eats most of the board, so the stage claims
   the extra width and the bubble gives some back. */
@media (max-width: 560px) {
  .lp-demo .lp-wrap {
    padding-inline: 12px;
  }
  .lp-stage {
    padding: 10px;
    border-radius: 20px;
  }
  body.rps-landing .lp-stage .tut-text {
    font-size: 13px;
    min-height: 30px;
  }
  body.rps-landing .lp-stage .tut-dots {
    margin: 6px 0;
  }
  body.rps-landing .lp-stage .tut-actions button {
    padding: 8px 6px;
    font-size: 12.5px;
  }
}
.lp-demo-note {
  margin: 26px auto 0;
  max-width: 46ch;
  text-align: center;
  font-size: 15px;
  color: var(--lp-ink-2);
}
.lp-demo-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

/* ---------- Mode cards ---------- */
.lp-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.lp-card {
  padding: 24px 22px 26px;
  border-radius: var(--lp-radius);
  background: var(--lp-paper-2);
  box-shadow: 0 1px 0 rgba(22, 36, 15, 0.05), 0 10px 24px -16px rgba(22, 36, 15, 0.5);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.lp-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 1px 0 rgba(22, 36, 15, 0.05), 0 18px 34px -18px rgba(22, 36, 15, 0.55);
}
.lp-card-bar {
  display: block;
  width: 42px;
  height: 6px;
  margin-bottom: 18px;
  border-radius: 3px;
  background: var(--lp-accent, var(--lp-gold));
}
.lp-card h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
}
.lp-card p {
  font-size: 15.5px;
  color: var(--lp-ink-2);
}
@media (max-width: 900px) {
  .lp-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .lp-cards {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Alternating feature strips ---------- */
.lp-strips {
  background: linear-gradient(180deg, #efeadb 0%, var(--lp-paper) 100%);
  border-top: 1px solid var(--lp-line);
}
.lp-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
  padding-block: clamp(46px, 6vw, 74px);
}
.lp-strip + .lp-strip {
  border-top: 1px solid var(--lp-line);
}
.lp-strip h3 {
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 800;
}
.lp-strip-art {
  justify-self: center;
  width: min(300px, 74vw);
}
.lp-shot {
  position: relative;
  display: block;
  width: 100%;
  border-radius: 26px;
  overflow: hidden;
  background: #14210d;
  box-shadow:
    0 0 0 1.5px rgba(232, 169, 12, 0.55),
    0 30px 60px -18px rgba(20, 33, 13, 0.55),
    0 8px 18px rgba(20, 33, 13, 0.18);
}
.lp-shot img {
  display: block;
  width: 100%;
  height: auto;
}
.lp-strip:nth-child(even) .lp-strip-copy {
  order: 2;
}
.lp-strip:nth-child(even) .lp-strip-art .lp-shot {
  transform: rotate(2deg);
}
.lp-strip:nth-child(odd) .lp-strip-art .lp-shot {
  transform: rotate(-2deg);
}
.lp-rules {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  padding: 0;
  list-style: none;
}
.lp-rules li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 8px;
  border-radius: 999px;
  background: var(--lp-paper-2);
  box-shadow: inset 0 0 0 1px var(--lp-line);
  font-size: 14.5px;
  font-weight: 700;
}
.lp-rules img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
@media (max-width: 860px) {
  .lp-strip {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
  }
  .lp-strip .lp-lead {
    margin-inline: auto;
  }
  .lp-strip .lp-rules {
    justify-content: center;
  }
  .lp-strip:nth-child(even) .lp-strip-copy {
    order: 0;
  }
  .lp-strip-art {
    order: -1;
    width: min(250px, 66vw);
  }
}

/* ---------- Closing CTA ---------- */
.lp-cta {
  position: relative;
  padding-block: clamp(64px, 8vw, 100px);
  background: linear-gradient(180deg, #1e3315 0%, var(--lp-dark) 100%);
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.lp-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/background_2.webp") center / cover no-repeat;
  opacity: 0.16;
  pointer-events: none;
}
.lp-cta-inner {
  position: relative;
}
.lp-cta img.lp-cta-logo {
  width: 132px;
  height: auto;
  margin: 0 auto 22px;
  display: block;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.45));
}
.lp-cta h2 {
  color: #fff;
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 800;
}
.lp-cta p {
  max-width: 44ch;
  margin: 18px auto 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(16px, 1.6vw, 18.5px);
}
.lp-cta .lp-store-row {
  justify-content: center;
}
.lp-cta-note {
  margin-top: 22px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- Footer ---------- */
.lp-footer {
  padding-block: 32px 40px;
  background: var(--lp-dark);
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}
.lp-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.lp-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.lp-footer a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}
.lp-footer a:hover {
  color: #fff;
  text-decoration: underline;
}
.lp-footer-legal {
  width: 100%;
  margin-top: 6px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.4);
}

/* ---------- "Coming soon" dialog (Android) ---------- */
.lp-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(12, 20, 8, 0.6);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.lp-modal[hidden] {
  display: none;
}
.lp-modal-card {
  width: min(420px, 100%);
  padding: 30px 28px 26px;
  border-radius: 22px;
  background: var(--lp-paper-2);
  box-shadow: 0 30px 70px -20px rgba(12, 20, 8, 0.65);
  text-align: center;
}
.lp-modal-card h2 {
  font-size: 26px;
  font-weight: 800;
}
.lp-modal-card p {
  margin-top: 12px;
  color: var(--lp-ink-2);
  font-size: 15.5px;
}
.lp-modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}
