/* Editorial landing pages share PLAYGRIDDAY's existing app palette and type. */
body.landing-page [hidden] {
  display: none !important;
}
body.landing-page {
  --landing-wash: #edf3ec;
  --landing-soft: #f7f8f3;
  --landing-edge: #d7e3d9;
  --landing-deep: #153f38;
  --landing-gold: #efc77b;
  min-height: 100dvh;
  color: var(--ink, #193932);
  overflow-wrap: anywhere;
  word-break: normal;
  line-break: auto;
}

body.landing-page :where(p, li, summary, a, h1, h2) {
  overflow-wrap: anywhere;
  word-break: normal;
  line-break: auto;
}

body.landing-page .app-header {
  align-items: center;
  flex-wrap: wrap;
  padding-top: 22px;
  padding-bottom: 18px;
}

body.landing-page .language-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 5px;
  max-width: 100%;
}

body.landing-page .language-links a {
  display: inline-flex;
  min-height: 42px;
  min-width: 42px;
  align-items: center;
  justify-content: center;
  padding: 8px 11px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted, #637a6d);
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}

body.landing-page .language-links a:hover {
  color: var(--green, #14785d);
  background: var(--landing-wash);
  transform: translateY(-1px);
}

body.landing-page .language-links a[aria-current="page"] {
  color: var(--ink, #193932);
  background: #e4eee5;
  border-color: #ccddcf;
  font-weight: 750;
}

body.landing-page .app-main {
  padding-top: 8px;
  padding-bottom: 64px;
}

body.landing-page .landing-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 5px 0 28px;
  padding: clamp(28px, 6vw, 62px);
  border: 1px solid #d8e5d9;
  border-radius: 28px;
  background:
    radial-gradient(ellipse at 95% 8%, #d9e9d6 0, #d9e9d600 36%),
    linear-gradient(135deg, #f9faf5 4%, #edf4eb 100%);
}

body.landing-page .landing-hero::after {
  position: absolute;
  z-index: -1;
  right: clamp(-45px, 3vw, 36px);
  bottom: -125px;
  width: clamp(190px, 28vw, 320px);
  aspect-ratio: 1;
  border: 1px solid #cddfce;
  border-radius: 36%;
  box-shadow: 0 0 0 18px #ffffff30, 0 0 0 37px #d7e5d733;
  content: "";
  transform: rotate(21deg);
  pointer-events: none;
}

body.landing-page .landing-hero > :not(.eyebrow) {
  max-width: 720px;
}

body.landing-page .landing-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.45px;
  line-height: 1.5;
  text-transform: uppercase;
}

body.landing-page .landing-hero .eyebrow::before {
  width: 19px;
  height: 2px;
  border-radius: 2px;
  background: var(--landing-gold);
  content: "";
}

body.landing-page .landing-hero h1 {
  max-width: 760px;
  margin: 0 0 17px;
  color: var(--landing-deep);
  font-size: clamp(32px, 5.2vw, 54px);
  font-weight: 780;
  letter-spacing: -.045em;
  line-height: 1.16;
  text-wrap: pretty;
}

body.landing-page .landing-hero > p {
  max-width: 660px;
  margin: 0;
  color: var(--muted, #637a6d);
  font-size: clamp(15px, 1.7vw, 17px);
  line-height: 1.85;
}

body.landing-page .landing-actions {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 23px;
}

body.landing-page .landing-actions > a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 19px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-size: 14px;
  font-weight: 720;
  line-height: 1.45;
  text-align: center;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .16s ease, box-shadow .16s ease;
}

body.landing-page .landing-actions > a:hover {
  transform: translateY(-2px);
}

body.landing-page .landing-actions > a.primary {
  background: var(--green, #14785d);
  color: #fff;
  box-shadow: 0 5px 14px #174b3b1a;
}

body.landing-page .landing-actions > a.primary:hover {
  background: #10694f;
  box-shadow: 0 8px 18px #174b3b24;
}

body.landing-page .landing-actions > a.secondary {
  border-color: #c7d9cb;
  background: #ffffffb8;
  color: var(--green, #14785d);
}

body.landing-page .landing-actions > a.secondary:hover {
  border-color: #9fbea6;
  background: #fff;
}

body.landing-page .landing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 20px;
  margin-top: 22px;
}

body.landing-page .landing-grid > article {
  min-width: 0;
  border: 1px solid var(--landing-edge);
  border-radius: 21px;
  background: var(--card, #fff);
  box-shadow: 0 8px 26px #19393208;
}

body.landing-page article.game-card {
  position: relative;
  overflow: hidden;
  padding: 25px;
  background: linear-gradient(155deg, #fff 25%, #f0f6ef);
}

body.landing-page article.game-card::before {
  display: block;
  width: 38px;
  height: 4px;
  margin-bottom: 19px;
  border-radius: 4px;
  background: var(--landing-gold);
  content: "";
}

body.landing-page article.game-card h2,
body.landing-page article.guide-article h2 {
  color: var(--ink, #193932);
  font-size: clamp(20px, 2.4vw, 25px);
  font-weight: 760;
  letter-spacing: -.025em;
  line-height: 1.35;
  text-wrap: pretty;
}

body.landing-page article.game-card h2 {
  margin: 0 0 10px;
}

body.landing-page article.game-card p {
  margin: 0;
  color: var(--muted, #637a6d);
  font-size: 14px;
  line-height: 1.8;
}

body.landing-page article.game-card .landing-actions {
  margin-top: 20px;
}

body.landing-page article.guide-article {
  padding: clamp(22px, 3.4vw, 36px);
}

body.landing-page article.guide-article > section {
  margin: 0;
  padding: 0;
  border: 0;
}

body.landing-page article.guide-article > section + section {
  margin-top: 30px;
  padding-top: 27px;
  border-top: 1px solid var(--landing-edge);
}

body.landing-page article.guide-article h2 {
  margin: 0 0 11px;
}

body.landing-page article.guide-article p,
body.landing-page article.guide-article li {
  color: #526c60;
  font-size: 15px;
  line-height: 1.85;
}

body.landing-page article.guide-article p {
  margin: 0 0 15px;
}

body.landing-page article.guide-article ol {
  margin: 15px 0 21px;
  padding-left: 1.55em;
}

body.landing-page article.guide-article li {
  padding-left: 5px;
}

body.landing-page article.guide-article li + li {
  margin-top: 8px;
}

body.landing-page .example-box {
  margin: 20px 0;
  padding: 18px 20px;
  border: 1px solid #d6e4d4;
  border-left: 4px solid #a6c69f;
  border-radius: 13px;
  background: var(--landing-soft);
  color: var(--ink, #193932);
}

body.landing-page .example-box :last-child {
  margin-bottom: 0;
}

body.landing-page .level-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 17px 0 0;
  padding: 0;
  list-style: none;
}

body.landing-page .level-list li {
  min-width: 0;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #e0e9de;
  border-radius: 12px;
  background: #f7f9f5;
  font-size: 13px;
  line-height: 1.6;
}

body.landing-page article.guide-article details,
body.landing-page .return-tools details {
  border: 1px solid var(--landing-edge);
  border-radius: 13px;
  background: #fbfcf9;
}

body.landing-page article.guide-article details + details {
  margin-top: 9px;
}

body.landing-page article.guide-article summary,
body.landing-page .return-tools summary {
  position: relative;
  min-height: 48px;
  padding: 13px 42px 13px 15px;
  color: var(--ink, #193932);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
  cursor: pointer;
  list-style: none;
}

body.landing-page article.guide-article summary::-webkit-details-marker,
body.landing-page .return-tools summary::-webkit-details-marker {
  display: none;
}

body.landing-page article.guide-article summary::after,
body.landing-page .return-tools summary::after {
  position: absolute;
  top: 50%;
  right: 16px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--green, #14785d);
  border-bottom: 2px solid var(--green, #14785d);
  content: "";
  transform: translateY(-70%) rotate(45deg);
  transition: transform .16s ease;
}

body.landing-page article.guide-article details[open] > summary::after,
body.landing-page .return-tools details[open] > summary::after {
  transform: translateY(-25%) rotate(225deg);
}

body.landing-page article.guide-article details > p,
body.landing-page .return-tools details > ol {
  margin: 0;
  padding: 0 16px 16px;
  color: var(--muted, #637a6d);
  font-size: 14px;
  line-height: 1.8;
}

body.landing-page .return-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: start;
  gap: 18px;
  margin-top: 24px;
  padding: clamp(20px, 3.5vw, 30px);
  border: 1px solid #d4e1d5;
  border-radius: 21px;
  background: var(--landing-wash);
}

body.landing-page .return-tools > button.secondary {
  min-height: 48px;
  border-color: #b9d2be;
  border-radius: 12px;
  background: #fff;
  color: var(--green, #14785d);
  font-weight: 700;
  transition: background-color .16s ease, border-color .16s ease, transform .16s ease;
}

body.landing-page .return-tools > button.secondary:hover {
  transform: translateY(-1px);
  border-color: #93b89c;
  background: #fafff9;
}

body.landing-page .return-tools .share-fallback {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 102px;
  resize: vertical;
  padding: 13px 14px;
  border: 1px solid #cbdccf;
  border-radius: 12px;
  background: #fff;
  color: var(--ink, #193932);
  font: inherit;
  font-size: 14px;
  line-height: 1.65;
}

body.landing-page .return-tools p[role="status"] {
  grid-column: 1 / -1;
  min-height: 1.5em;
  margin: -8px 0 0;
  color: var(--green, #14785d);
  font-size: 13px;
  line-height: 1.55;
}

body.landing-page .return-tools details {
  align-self: start;
  overflow: hidden;
  background: #ffffffb8;
}

body.landing-page .return-tools details > ol {
  padding-left: 36px;
}

body.landing-page .related-games {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 0;
  padding: 19px 0 0;
  border-top: 1px solid var(--landing-edge);
}

body.landing-page .related-games a,
body.landing-page .difficulty-links a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 8px 13px;
  border: 1px solid #d6e3d7;
  border-radius: 999px;
  background: #fff;
  color: var(--green, #14785d);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
  transition: background-color .16s ease, border-color .16s ease, transform .16s ease;
}

body.landing-page .related-games a:hover,
body.landing-page .difficulty-links a:hover {
  transform: translateY(-1px);
  border-color: #aec9b3;
  background: #f5faf3;
}

body.landing-page .difficulty-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

body.landing-page .site-footer {
  padding-top: 22px;
  padding-bottom: max(25px, env(safe-area-inset-bottom));
  line-height: 1.65;
}

body.landing-page .site-footer a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  text-decoration: underline;
  text-decoration-color: #b7c8b9;
  text-underline-offset: 3px;
}

body.landing-page :where(a, button, textarea, summary):focus-visible {
  outline: 3px solid #ce942b;
  outline-offset: 3px;
}

@media (max-width: 760px) {
  body.landing-page .landing-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body.landing-page article.game-card {
    padding: 23px;
  }

  body.landing-page .return-tools {
    grid-template-columns: minmax(0, 1fr);
  }

  body.landing-page .return-tools .share-fallback,
  body.landing-page .return-tools p[role="status"] {
    grid-column: auto;
  }
}

@media (max-width: 520px) {
  body.landing-page .app-header {
    align-items: flex-start;
    padding: 15px 16px 12px;
  }

  body.landing-page .language-links {
    justify-content: flex-start;
    width: 100%;
    gap: 3px;
  }

  body.landing-page .language-links a {
    min-width: 42px;
    padding: 7px 9px;
    font-size: 12px;
  }

  body.landing-page .app-main {
    padding: 7px 16px 34px;
  }

  body.landing-page .landing-hero {
    margin-top: 4px;
    padding: 27px 22px 29px;
    border-radius: 22px;
  }

  body.landing-page .landing-hero::after {
    right: -115px;
    bottom: -155px;
    width: 245px;
  }

  body.landing-page .landing-hero h1 {
    font-size: clamp(30px, 9vw, 39px);
    letter-spacing: -.035em;
    line-height: 1.24;
  }

  body.landing-page .landing-hero > p {
    font-size: 15px;
    line-height: 1.8;
  }

  body.landing-page .landing-actions {
    gap: 9px;
  }

  body.landing-page .landing-actions > a {
    flex: 1 1 145px;
    padding-right: 14px;
    padding-left: 14px;
  }

  body.landing-page article.game-card,
  body.landing-page article.guide-article {
    padding: 21px;
    border-radius: 18px;
  }

  body.landing-page article.guide-article p,
  body.landing-page article.guide-article li {
    font-size: 14px;
  }

  body.landing-page .level-list {
    grid-template-columns: minmax(0, 1fr);
  }

  body.landing-page .related-games {
    gap: 6px;
  }
}

@media (max-width: 380px) {
  body.landing-page .app-header {
    padding-right: 13px;
    padding-left: 13px;
  }

  body.landing-page .app-main {
    padding-right: 13px;
    padding-left: 13px;
  }

  body.landing-page .landing-hero {
    padding-right: 18px;
    padding-left: 18px;
  }

  body.landing-page .landing-actions > a {
    flex-basis: 100%;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.landing-page *,
  body.landing-page *::before,
  body.landing-page *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Consistent game-first layout across all six languages. */
body.landing-page .app-header { padding-top: 16px; padding-bottom: 12px; }
body.landing-page .app-main { max-width: 1080px; }
body.landing-page .landing-hero { margin-bottom: 20px; padding: 28px 32px; border-radius: 22px; }
body.landing-page .landing-hero h1 { font-size: clamp(28px, 3.5vw, 40px); line-height: 1.25; margin-bottom: 12px; }
body.landing-page .landing-hero > p { max-width: 800px; font-size: 15px; line-height: 1.7; }
body.landing-page .landing-hero .eyebrow { margin-bottom: 10px; }
body.landing-page .landing-hero::after { width: 210px; bottom: -135px; opacity: .55; }
body.landing-page .landing-grid { align-items: stretch; gap: 16px; }
body.landing-page article.game-card { display: flex; flex-direction: column; padding: 22px; min-height: 230px; background: #fff; border-radius: 20px; box-shadow: 0 3px 12px #19393205; }
body.landing-page article.game-card::before { width: 30px; height: 3px; margin-bottom: 14px; }
body.landing-page article.game-card h2 { font-size: 23px; }
body.landing-page article.game-card p { flex: 1; }
body.landing-page article.game-card .landing-actions { margin-top: 18px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
body.landing-page .landing-actions > a { min-height: 48px; padding: 11px 14px; border-radius: 12px; }
body.landing-page article.game-card .landing-actions > a { width: 100%; }
body.landing-page .return-tools { display: block; margin-top: 26px; padding: 24px; border: 1px solid var(--landing-edge); border-radius: 20px; background: var(--landing-soft); }
body.landing-page .return-tools > h2 { width: 100%; margin: 0 0 18px; font-size: 23px; white-space: nowrap; }
body.landing-page .return-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; gap: 18px; }
body.landing-page .return-action-column { min-width: 0; }
body.landing-page .return-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
body.landing-page .return-actions > button,
body.landing-page .return-actions > a {
  box-sizing: border-box; display: flex; width: 100%; min-width: 0; min-height: 50px;
  align-items: center; justify-content: center; margin: 0; padding: 12px 16px;
  border: 1px solid #c7d9cb; border-radius: 12px; background: #fff; color: var(--green, #14785d);
  font: inherit; font-size: 14px; font-weight: 720; line-height: 1.5; text-align: center;
  text-decoration: none; cursor: pointer;
}
body.landing-page .return-actions > button:hover,
body.landing-page .return-actions > a:hover { border-color: #9fbea6; background: #fff; }
body.landing-page .return-actions > button:focus-visible,
body.landing-page .return-actions > a:focus-visible,
body.landing-page .return-guidance summary:focus-visible { outline: 3px solid #14785d; outline-offset: 3px; }
body.landing-page .return-tools p[role="status"] { margin: 10px 0 0; line-height: 1.7; }
body.landing-page .return-tools p[role="status"]:empty { display: none; }
body.landing-page .return-tools .share-fallback { box-sizing: border-box; width: 100%; min-height: 88px; margin-top: 10px; }
body.landing-page .return-guidance { min-width: 0; margin: 0; border: 1px solid #d7e3d9; border-radius: 14px; background: #fff; }
body.landing-page .return-guidance > summary { padding: 16px 18px; color: var(--landing-deep); font-weight: 740; line-height: 1.55; cursor: pointer; }
body.landing-page .return-guidance-content { padding: 0 20px 18px 40px; }
body.landing-page .return-guidance-content p,
body.landing-page .return-guidance-content li { font-size: 14px; line-height: 1.8; }
body.landing-page .return-guidance-content p { margin: 0 0 12px; }
body.landing-page .return-guidance-content ol { margin: 0; padding: 0; list-style: none; counter-reset: save-steps; }
body.landing-page .return-guidance-content li { position: relative; }
body.landing-page .return-guidance-content li::before {
  position: absolute; right: calc(100% + 8px); counter-increment: save-steps;
  content: counter(save-steps) "."; color: var(--landing-deep); font-weight: 740;
}
body.landing-page .return-guidance-content li + li { margin-top: 9px; }
@media(max-width:760px) { body.landing-page article.game-card { min-height: 0; } }
@media(max-width:520px) {
  body.landing-page .landing-hero { padding: 23px 20px; }
  body.landing-page .landing-hero h1 { font-size: 30px; }
  body.landing-page .landing-hero > p { font-size: 14px; }
  body.landing-page article.game-card { padding: 20px; }
  body.landing-page article.game-card h2 { font-size: 22px; }
  body.landing-page article.game-card .landing-actions > a { font-size: 13px; }
  body.landing-page .return-tools { padding: 20px; }
  body.landing-page .return-layout { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  body.landing-page .return-tools > h2 { white-space: normal; }
  body.landing-page .return-guidance-content { padding-right: 16px; padding-left: 34px; }
  body.landing-page .return-guidance > summary { padding: 15px 16px; }
}
/* Keep step numbers intact and preserve disclosure-arrow space. */
body.landing-page .return-guidance-content li::before { white-space: nowrap; min-width: 1.2em; text-align: right; }
body.landing-page .return-guidance > summary { padding-right: 44px; }
