/* Landing pages, direction B ("brand blue refined").
   Deep navy surfaces, one yellow accent reserved for CTAs, rank badges,
   key numbers and links; red only for age labels.
   Radius rule: cards and media 10px, buttons and chips 6-8px. */

body:has(.lp) {
  background: #061428;
}

.lp {
  --bg: #061428;
  --bg2: #0b1e3a;
  --card: #0f2648;
  --line: #1c3966;
  --text: #eef3fb;
  --soft: #c9d6ea;
  --muted: #94a8c7;
  --yellow: #ffd23f;
  --blue: #2f7de1;
  --red: #ff6b7d;
  --display: "Righteous", "Nunito Sans", system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
}

.lp a:focus-visible,
.lp button:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

.lp-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.lp-h2,
.lp-article h2,
.lp .most-played h2 {
  margin: 0 0 16px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(26px, 2.4vw, 32px);
  line-height: 1.15;
  color: var(--text);
  text-transform: none;
  text-wrap: balance;
}

/* ---------- Hero ---------- */

.lp-hero {
  padding: 22px 0 56px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(47, 125, 225, 0.28), transparent 60%),
    var(--bg);
}

.lp .bread-crumb {
  margin: 0 0 26px;
  font-size: 13px;
  color: var(--muted);
}

.lp .bread-crumb a {
  color: var(--yellow);
}

.lp .bread-crumb-list,
.lp .bread-crumb-list > .d-flex {
  flex-wrap: wrap;
  justify-content: flex-start;
  row-gap: 2px;
}

.lp .bread-after::before {
  content: "›";
  color: var(--muted);
}

.lp-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 48px;
  align-items: start;
}

.lp-collage {
  margin-top: 6px;
}

.lp-tag {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 4px;
  background: rgba(255, 210, 63, 0.1);
  color: var(--yellow);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lp-hero h1 {
  margin: 16px 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(42px, 5.4vw, 72px);
  line-height: 1;
  color: var(--text);
}

.lp-lede {
  max-width: 560px;
  margin: 0 0 24px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--soft);
}

.lp-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.lp-facts li {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--card);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.3;
}

.lp-facts b {
  color: var(--yellow);
  font-weight: 800;
}

.lp-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
}

.lp-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 8px;
  background: var(--yellow);
  box-shadow: 0 6px 0 #b48f12;
  color: #04101f;
  font-weight: 800;
  font-size: 16px;
  line-height: 1.2;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.lp-cta svg {
  width: 12px;
  height: 14px;
  flex: none;
}

.lp-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 7px 0 #b48f12;
}

.lp-cta:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #b48f12;
}

.lp-ghost {
  color: #dbe5f4;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.lp-ghost:hover {
  color: var(--yellow);
}

.lp-collage {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  height: 380px;
}

.lp-collage img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
}

.lp-collage img:first-child {
  grid-row: span 2;
}

/* ---------- Sections and game cards ---------- */

.lp-sec {
  padding: 60px 0;
}

.lp-group + .lp-group {
  margin-top: 36px;
}

.lp-group__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  margin-bottom: 14px;
}

.lp-group__head h3 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  color: var(--text);
}

.lp-group__count {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.lp-more {
  color: var(--yellow);
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.lp-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.lp-grid--dense {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.lp-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.lp-card:hover {
  border-color: var(--yellow);
  transform: translateY(-2px);
}

.lp-card__thumb {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--bg2);
}

.lp-card__thumb img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lp-card__rank {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--yellow);
  color: #04101f;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

.lp-card__body {
  display: block;
  padding: 12px 14px 14px;
}

.lp-card__title {
  display: block;
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
}

.lp-card__meta {
  display: flex;
  flex-wrap: wrap;
  min-width: 0;
  gap: 2px 10px;
  white-space: nowrap;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--muted);
}

.lp-card__age {
  flex-shrink: 0;
  color: var(--red);
  font-weight: 800;
}

/* Facts wrap to a second line rather than being cut; a single fact longer
   than the card gets an ellipsis. The age label never shrinks. */
.lp-card__fact {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* "Show all" for long hub groups is a phone-only control. */
.lp-showall {
  display: none;
}

.lp-article > .lp-intro-rest {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
}

.lp-article > .lp-intro-rest + * {
  margin-top: 40px;
}

/* ---------- Article band ---------- */

.lp-band {
  padding: 64px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg2);
}

.lp-article > * + * {
  margin-top: 64px;
}

.lp-article p,
.lp-article li {
  color: var(--soft);
}

.lp-article p {
  margin: 0 0 14px;
}

.lp-article a {
  color: var(--yellow);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.lp-article a:hover {
  text-decoration-thickness: 2px;
}

.lp-article strong {
  color: var(--text);
}

.lp-article h3 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 23px;
  line-height: 1.2;
  color: var(--text);
}

.lp-prose {
  max-width: 760px;
}

.lp-prose > :last-child,
.lp-row__txt > :last-child {
  margin-bottom: 0;
}

/* Image-text rows; --rev puts the media first on desktop. */
.lp-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.lp-row--rev .lp-row__txt {
  order: 2;
}

.lp-row__media figure,
.lp-row__media .lp-figure {
  margin: 0;
}

.lp-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
}

.lp-figure--photo img {
  aspect-ratio: 3 / 2;
}

.lp-figure figcaption,
.lp-video figcaption {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}

/* Hub: the five kinds of horror as cards. */
.lp-kinds {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.lp-kind {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
}

.lp-kind img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.lp-kind > div {
  padding: 14px 16px 16px;
}

.lp-article .lp-kind h3 {
  margin: 0 0 6px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 800;
}

.lp-article .lp-kind p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

/* Yandere: ending structure as a grid of short cards. */
.lp-endings ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.lp-endings li {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  font-size: 15px;
  line-height: 1.6;
}

.lp-endings li strong {
  color: var(--text);
}

/* Pick by mood cards. */
.lp-picks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.lp-pick {
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
}

.lp-pick small {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- Most played ---------- */

.most-played__lead {
  margin-bottom: 22px;
}

.most-played__list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.most-played__list li {
  margin: 0;
  min-width: 0;
}

.lp-article .most-played__card {
  color: var(--text);
  text-decoration: none;
}

.most-played__excerpt {
  display: -webkit-box;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* ---------- Comparison table ---------- */

.comparison__table {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--card);
  font-size: 15px;
}

.comparison__table thead th {
  padding: 12px 16px;
  background: #0a1c37;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.comparison__table tbody th,
.comparison__table tbody td {
  padding: 11px 16px;
  border-top: 1px solid var(--line);
  vertical-align: middle;
  line-height: 1.45;
  color: var(--soft);
}

.comparison__table tbody th a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.comparison__table tbody th a:hover span {
  color: var(--yellow);
}

.comparison__table tbody th img {
  width: 40px;
  height: 40px;
  flex: none;
  object-fit: cover;
  border-radius: 6px;
}

.comparison__table td[data-label="Age"]:not(.is-empty) {
  color: var(--red);
  font-weight: 800;
}

.comparison__table td.is-empty {
  color: rgba(148, 168, 199, 0.55);
}

/* ---------- Video ---------- */

.lp-video {
  margin: 0;
}

.lp-video__frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #04101f;
  cursor: pointer;
}

.lp-video__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
  transition: opacity 0.3s var(--ease);
}

.lp-video__frame:hover img {
  opacity: 1;
}

.lp-video__play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 72px;
  height: 52px;
  margin: -26px 0 0 -36px;
  border-radius: 8px;
  background: var(--yellow);
  box-shadow: 0 5px 0 #b48f12;
  transition: transform 0.2s var(--ease);
}

.lp-video__play::after {
  content: "";
  position: absolute;
  left: 30px;
  top: 15px;
  border-style: solid;
  border-width: 11px 0 11px 17px;
  border-color: transparent transparent transparent #04101f;
}

.lp-video__frame:hover .lp-video__play {
  transform: scale(1.05);
}

.lp-video iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 10px;
}

/* ---------- FAQ ---------- */

.lp-faq dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0 0;
}

.lp-faq__item {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
}

.lp-faq dt {
  margin-bottom: 8px;
  font-size: 16.5px;
  font-weight: 800;
  line-height: 1.4;
  color: var(--text);
}

.lp-faq dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--soft);
}

/* ---------- Category cards (hub) and strip (category pages) ---------- */

.category-cards,
.category-strip {
  margin-top: 60px;
}

.category-cards__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.category-cards__card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.category-cards__card:hover {
  border-color: var(--yellow);
  transform: translateY(-2px);
}

.category-cards__card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.category-cards__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px 18px;
}

.category-cards__card strong {
  font-family: var(--display);
  font-weight: 400;
  font-size: 22px;
  color: var(--text);
}

.category-cards__count {
  color: var(--yellow);
  font-size: 13px;
  font-weight: 800;
}

.category-cards__intro {
  margin-top: 4px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--soft);
}

@media (min-width: 900px) {
  .category-cards__card:only-child {
    grid-column: 1 / -1;
    flex-direction: row;
  }

  .category-cards__card:only-child img {
    width: 44%;
    flex: none;
  }

  .category-cards__card:only-child .category-cards__body {
    justify-content: center;
    padding: 28px 36px;
  }

  .category-cards__card:only-child .category-cards__intro {
    max-width: 52ch;
    font-size: 17px;
  }
}

.category-strip h2 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 24px;
  color: var(--text);
}

.category-strip ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.category-strip a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--card);
  color: var(--text);
  font-size: 14.5px;
  font-weight: 700;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.category-strip a:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

/* ---------- Tablet ---------- */

@media (max-width: 1099px) {
  .lp-grid--dense,
  .most-played__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .lp-kinds {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---------- Phone ---------- */

@media (max-width: 899px) {
  .lp-wrap {
    padding: 0 16px;
  }

  .lp-hero {
    padding: 12px 0 36px;
  }

  .lp .bread-crumb {
    margin-bottom: 12px;
  }

  .lp-hero__grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .lp-collage {
    order: -1;
    height: 220px;
    margin-top: 0;
    gap: 8px;
  }

  .lp-tag {
    font-size: 11px;
  }

  .lp-facts {
    gap: 8px;
    margin-bottom: 20px;
  }

  .lp-facts li {
    padding: 5px 10px;
    font-size: 13px;
  }

  .lp-lede {
    margin-bottom: 16px;
  }

  .lp-cta {
    padding: 13px 20px;
  }

  .lp-article > .lp-intro-rest {
    font-size: 16.5px;
  }

  .lp-group[data-collapsible]:not(.is-open) .lp-card--more {
    display: none;
  }

  .lp-showall {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--card);
    color: var(--text);
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
  }

  .lp-showall[hidden] {
    display: none;
  }

  .lp-collage img {
    border-radius: 8px;
  }

  .lp-hero h1 {
    margin: 12px 0 10px;
    font-size: 38px;
  }

  .lp-lede {
    font-size: 16px;
  }

  .lp-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .lp-cta {
    width: 100%;
    justify-content: center;
  }

  .lp-sec {
    padding: 42px 0;
  }

  .lp-grid,
  .lp-grid--dense {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .lp-card__body {
    padding: 10px;
  }

  .lp-card__title {
    font-size: 14px;
  }

  .lp-band {
    padding: 44px 0;
  }

  .lp-article > * + * {
    margin-top: 44px;
  }

  .lp-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .lp-row--rev .lp-row__txt {
    order: 0;
  }

  .lp-article h3 {
    font-size: 21px;
  }

  .lp-kinds {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .lp-kind {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .lp-kind img {
    height: 100%;
    aspect-ratio: auto;
  }

  .lp-kind > div {
    padding: 12px 14px;
  }

  .lp-endings ul,
  .lp-picks,
  .lp-faq dl {
    grid-template-columns: 1fr;
  }

  .most-played__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .most-played__list li:first-child {
    grid-column: 1 / -1;
  }

  .most-played__excerpt {
    -webkit-line-clamp: 2;
  }

  /* Table becomes one card per game. */
  .comparison__table {
    border: 0;
    background: none;
  }

  .comparison__table thead {
    display: none;
  }

  .comparison__table,
  .comparison__table tbody {
    display: block;
  }

  .comparison__table tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 16px;
    margin-bottom: 10px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--card);
  }

  .comparison__table tbody th,
  .comparison__table tbody td {
    padding: 0;
    border: 0;
  }

  .comparison__table tbody th {
    grid-column: 1 / -1;
    padding-bottom: 4px;
  }

  .comparison__table tbody td {
    font-size: 14px;
  }

  .comparison__table tbody td::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .comparison__table tbody td.is-empty {
    display: none;
  }

  .comparison__table tbody td[data-label="Heads-up"] {
    grid-column: 1 / -1;
  }

  .category-cards,
  .category-strip {
    margin-top: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lp *,
  .lp *::before,
  .lp *::after {
    transition: none !important;
  }
}
