/* Nightfall The Game (v2.02) — page-only styles. Linked only from game.html.
   Breakpoints: see the "Version 2 foundation" header in ../site.css. */

/* ---------- Inner-page banner (v2.00 "Inner page header", same on game / classes / knight) ---------- */
.pbn {
  position: relative;
  background:
    radial-gradient(60% 80% at 75% 40%, rgba(138, 110, 60, 0.18) 0%, rgba(12, 11, 10, 0) 70%),
    linear-gradient(180deg, #12100D 0%, #0C0B0A 100%);
}

.pbn-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  min-height: 360px;
  padding-top: 76px; /* room for the hanging crest */
}

.pbn-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 0 1 640px;
  min-width: 0;
}

.pbn-crumb {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--v2-dim);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 22px;
}

.pbn-crumb li + li::before {
  content: "›";
  padding-inline: 5px;
}

.pbn-crumb a {
  color: inherit;
}

.pbn-title {
  margin: 0;
  color: var(--v2-text-hero);
  font-family: var(--font-display);
  font-size: 58px;
  font-weight: 700;
  line-height: 62px;
}

.pbn-line {
  margin: 0;
  color: var(--v2-body);
  font-family: var(--font-body);
  font-size: 23px;
  line-height: 28px;
}

.pbn-pic {
  position: relative;
  flex: 0 0 auto;
  width: 460px;
  max-width: 100%;
  height: 240px;
  overflow: hidden;
  border: 1px solid var(--v2-line-strong);
  background: #0A0909;
  box-shadow: 0 0 0 5px #0A0908, 0 0 0 6px #4A3B22;
}

.pbn-pic > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
}

/* ---------- Section title rule with the gold diamond ---------- */
.pg-rule {
  padding-top: 40px;
  padding-bottom: 8px;
}

.pg-rule .title-rule {
  gap: 18px;
}

.pg-rule .title-rule::after {
  background: linear-gradient(90deg, #8A6E3C 0%, rgba(138, 110, 60, 0) 100%);
}

.tr-diamond {
  position: relative;
  order: 2;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
}

.tr-diamond::before {
  content: "";
  position: absolute;
  inset: 4px;
  background: var(--v2-gold);
  transform: rotate(45deg);
}

/* ---------- Closing playtest button ---------- */
.pg-cta {
  display: flex;
  justify-content: center;
  padding-top: 4px;
  padding-bottom: 28px;
}

@media (max-width: 1279px) {
  .pbn-copy {
    flex-basis: 520px;
  }

  .pbn-pic {
    width: 420px;
    height: 220px;
  }
}

@media (max-width: 1023px) {
  .pbn-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
    min-height: 0;
    padding-top: 40px;
    padding-bottom: 44px;
  }

  .pbn-copy {
    flex-basis: auto;
  }

  .pbn-pic {
    width: 100%;
    height: 300px;
  }
}

@media (max-width: 767px) {
  .pbn-inner {
    gap: 22px;
    padding-top: 28px;
    padding-bottom: 32px;
  }

  .pbn-copy {
    gap: 10px;
  }

  .pbn-crumb {
    font-size: 16px;
    line-height: 20px;
  }

  .pbn-title {
    font-size: 42px;
    line-height: 48px;
  }

  .pbn-line {
    font-size: 19px;
    line-height: 24px;
  }

  .pbn-pic {
    height: 200px;
  }

  .pg-rule {
    padding-top: 28px;
  }

  .pg-rule .title-rule {
    gap: 12px;
    font-size: 28px;
    line-height: 34px;
  }

  .pg-cta .btn-xl {
    width: 354px;
    height: 60px;
    padding-inline: 36px;
    font-size: 18px;
    line-height: 28px;
  }
}

@media (max-width: 359px) {
  .pg-rule .title-rule {
    font-size: 24px;
    line-height: 30px;
  }

  .pg-cta .btn-xl {
    padding-inline: 28px;
    font-size: 16px;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .pbn-inner {
    flex-direction: row;
    align-items: center;
    gap: 24px;
    padding-top: 18px;
    padding-bottom: 22px;
  }

  .pbn-copy {
    flex: 0 1 380px;
    gap: 8px;
  }

  .pbn-title {
    font-size: 42px;
    line-height: 48px;
  }

  .pbn-pic {
    flex-shrink: 1;
    width: 320px;
    min-width: 0;
    height: 176px;
  }

  .pg-rule {
    padding-top: 24px;
  }

  .pg-rule .title-rule {
    gap: 18px;
    font-size: 30px;
    line-height: 36px;
  }

  .pg-cta .btn-xl {
    width: 520px;
    height: 72px;
    padding-inline: 64px;
    font-size: 22px;
  }
}

/* ---------- Page body ---------- */
.gm-content {
  padding-bottom: 104px;
}

:where(.gm-content) ul,
:where(.gm-content) ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

:where(.gm-content) h3,
:where(.gm-content) p {
  margin: 0;
}

/* ---------- What you do ---------- */
.gm-do {
  padding-top: 26px;
  padding-bottom: 78px;
}

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

.gm-do-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: rgba(10, 10, 14, 0.88);
}

.gm-do-media {
  position: relative;
  height: 158px;
  overflow: hidden;
  background: #050506;
}

.gm-do-media > img,
.gm-play-media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gm-pos-45 {
  object-position: 50% 45%;
}

.gm-pos-35 {
  object-position: 50% 35%;
}

.gm-do-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 18px 20px;
}

.gm-do-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--v2-text);
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 700;
  line-height: 28px;
}

.gm-do-title img {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  object-fit: contain;
}

.gm-do-text {
  color: var(--v2-body);
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 23px;
}

/* ---------- Play your way ---------- */
.gm-play {
  padding-top: 24px;
  padding-bottom: 86px;
}

.gm-play-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.gm-play-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: rgba(10, 10, 14, 0.88);
}

.gm-play-media {
  position: relative;
  height: 252px;
  overflow: hidden;
  background: #050506;
}

.gm-play-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 24px 24px;
}

.gm-play-title {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--v2-text);
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 700;
  line-height: 32px;
}

.gm-play-title img {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  object-fit: contain;
}

.gm-play-text {
  color: var(--v2-body);
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 24px;
}

.gm-keys {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gm-keys li {
  padding: 5px 10px;
  border: 1px solid var(--v2-line);
  background: rgba(201, 165, 92, 0.1);
  color: var(--v2-gold-pale);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
  white-space: nowrap;
}

/* ---------- Always fair ---------- */
.gm-fair {
  padding-top: 24px;
  padding-bottom: 86px;
}

.gm-fair-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding-inline: 30px;
}

.gm-fair-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 30px 24px 32px;
  background: rgba(10, 10, 14, 0.88);
  text-align: center;
}

.gm-fair-card img {
  width: 82px;
  height: 82px;
  object-fit: contain;
}

.gm-fair-title {
  color: var(--v2-text);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  line-height: 30px;
}

.gm-fair-text {
  color: var(--v2-body);
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 24px;
}

/* ---------- Road to launch ---------- */
.gm-road {
  padding-top: 24px;
  padding-bottom: 50px;
}

.gm-road-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding-inline: 20px;
}

.gm-road-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 28px 24px 30px;
  background: rgba(10, 10, 14, 0.88);
  text-align: center;
}

.gm-road-card img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.gm-road-step {
  color: var(--v2-dim);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 20px;
  text-transform: uppercase;
}

.gm-road-title {
  color: var(--v2-text);
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 700;
  line-height: 30px;
}

.gm-road-card.is-now .gm-road-title {
  color: var(--v2-gold-pale);
}

.gm-road-text {
  color: var(--v2-body);
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 24px;
}

.gm-road-date {
  color: var(--v2-dim);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 21px;
}

/* ---------- iPad landscape (1024–1279) ---------- */
@media (max-width: 1279px) {
  .gm-fair-grid,
  .gm-road-grid {
    padding-inline: 0;
  }
}

/* ---------- iPad portrait (768–1023) ---------- */
@media (max-width: 1023px) {
  .gm-do-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gm-play-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .gm-fair-grid,
  .gm-road-grid {
    gap: 16px;
  }

  .gm-fair-card,
  .gm-road-card {
    padding-inline: 14px;
  }

  .gm-fair-title,
  .gm-road-title {
    font-size: 20px;
    line-height: 26px;
  }

  .gm-fair-text,
  .gm-road-text {
    font-size: 18px;
    line-height: 23px;
  }
}

/* ---------- iPhone portrait (< 768) ---------- */
@media (max-width: 767px) {
  .gm-content {
    padding-bottom: 56px;
  }

  .gm-do,
  .gm-play,
  .gm-fair,
  .gm-road {
    padding-bottom: 48px;
  }

  .gm-do-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .gm-do-media {
    height: 150px;
  }

  .gm-play-grid {
    gap: 24px;
  }

  .gm-play-media {
    height: 200px;
  }

  .gm-fair-grid,
  .gm-road-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .gm-fair-card {
    gap: 8px;
    padding-block: 18px;
  }

  .gm-fair-card img {
    width: 64px;
    height: 64px;
  }

  .gm-road-card {
    padding-block: 22px;
  }
}

/* ---------- iPhone landscape (short screens) ---------- */
@media (max-height: 500px) and (orientation: landscape) {
  .gm-content {
    padding-bottom: 56px;
  }

  .gm-do,
  .gm-play,
  .gm-fair {
    padding-bottom: 48px;
  }

  .gm-road {
    padding-bottom: 50px;
  }

  .gm-do-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .gm-do-media {
    height: 130px;
  }

  .gm-play-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .gm-play-media {
    height: 170px;
  }

  .gm-fair-grid,
  .gm-road-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .gm-fair-card {
    gap: 12px;
    padding-block: 30px 32px;
  }

  .gm-fair-card img {
    width: 82px;
    height: 82px;
  }

  .gm-road-card {
    padding-block: 28px 30px;
  }
}

/* ==========================================================================
   Version 3 "native to every screen" (lane site-v3-b). Nothing here changes
   the Mac layout (>= 1280) except the new "Where it's heading" block.
   ========================================================================== */

/* Status line slot in the hero (filled by site.js; shown on iPad portrait + iPhone portrait) */
.pbn-status {
  display: none;
}

/* Screenshot tiles open in the lightbox */
a.gm-do-media,
a.gm-play-media {
  display: block;
  color: inherit;
}

/* ---------- Where it's heading (before / after) ---------- */
.gm-rule-sub {
  margin: 10px 0 0;
  color: var(--v2-muted);
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 25px;
}

.gm-ba-wrap {
  padding-top: 24px;
  padding-bottom: 78px;
}

.gm-ba-row {
  --swipe-gap: 20px;
}

@media (min-width: 1280px) {
  .gm-ba-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    overflow: visible;
    scroll-snap-type: none;
  }
}

@media (max-width: 1279px) {
  .gm-ba-row { --per: 2.3; }
}

/* ---------- Grids that are swipe rows only on phones ---------- */
@media (min-width: 768px) and (min-height: 501px), (min-width: 768px) and (orientation: portrait) {
  .gm-do-grid.swipe {
    overflow: visible;
    scroll-snap-type: none;
  }
}

/* ---------- iPad portrait ---------- */
@media (min-width: 768px) and (max-width: 1023px) and (min-height: 501px), (min-width: 768px) and (max-width: 1023px) and (orientation: portrait) {
  .pbn-status {
    display: block;
  }

  .pbn-pic {
    height: 340px;
  }

  .gm-ba-row { --per: 1.7; }

  .gm-play-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .gm-play-media {
    height: 200px;
  }

  .gm-play-body {
    padding: 18px 18px 20px;
  }

  .gm-play-title {
    font-size: 23px;
    line-height: 28px;
  }

  .gm-play-text {
    font-size: 18px;
    line-height: 23px;
  }
}

/* ---------- iPhone portrait + landscape: swipe rows ---------- */
@media (max-width: 767px), (max-height: 500px) and (orientation: landscape) {
  .gm-do-grid {
    display: flex;
    gap: var(--swipe-gap);
  }

  .gm-do-body {
    gap: 6px;
    padding: 14px 16px 16px;
  }

  .gm-do-title {
    font-size: 21px;
    line-height: 26px;
  }

  .gm-do-title img {
    width: 32px;
    height: 32px;
  }

  .gm-do-text {
    font-size: 17px;
    line-height: 22px;
  }

  .gm-ba-row {
    --swipe-gap: 12px;
  }

  .gm-rule-sub {
    margin-top: 6px;
    font-size: 17px;
    line-height: 22px;
  }

  .gm-ba-wrap {
    padding-top: 18px;
    padding-bottom: 48px;
  }

  .gm-do {
    padding-top: 18px;
  }
}

/* ---------- iPhone portrait ---------- */
@media (max-width: 767px) and (min-height: 501px), (max-width: 767px) and (orientation: portrait) {
  .pbn-status {
    display: block;
  }

  .pbn-copy > nav {
    display: none;
  }

  .pbn-inner {
    gap: 18px;
    padding-top: 22px;
    padding-bottom: 26px;
  }

  .pbn-pic {
    height: 190px;
  }

  .gm-ba-row { --per: 1.18; }

  .gm-do-media {
    height: 160px;
  }

  .gm-play {
    padding-top: 18px;
  }

  .gm-play-grid {
    gap: 16px;
  }

  .gm-play-media {
    height: 170px;
  }

  .gm-play-body {
    gap: 10px;
    padding: 14px 16px 16px;
  }

  .gm-play-title {
    font-size: 21px;
    line-height: 26px;
  }

  .gm-play-title img {
    width: 36px;
    height: 36px;
  }

  .gm-play-text {
    font-size: 17px;
    line-height: 22px;
  }

  .gm-keys li {
    font-size: 15px;
    line-height: 19px;
  }

  /* Always fair: compact icon rows */
  .gm-fair,
  .gm-road {
    padding-top: 18px;
  }

  .gm-fair-grid {
    gap: 10px;
  }

  .gm-fair-card {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: center;
    column-gap: 14px;
    row-gap: 2px;
    padding: 14px 16px;
    text-align: left;
  }

  .gm-fair-card img {
    grid-row: 1 / span 2;
    width: 52px;
    height: 52px;
  }

  .gm-fair-title {
    align-self: end;
    font-size: 19px;
    line-height: 24px;
  }

  .gm-fair-text {
    align-self: start;
    font-size: 16px;
    line-height: 21px;
  }

  /* Road to launch: compact steps, top to bottom */
  .gm-road-grid {
    gap: 12px;
  }

  .gm-road-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    grid-template-areas:
      "icon step date"
      "icon title title"
      "icon text text";
    align-items: center;
    column-gap: 14px;
    row-gap: 2px;
    padding: 14px 16px;
    text-align: left;
  }

  .gm-road-card img {
    grid-area: icon;
    align-self: center;
    width: 48px;
    height: 48px;
  }

  .gm-road-step {
    grid-area: step;
    font-size: 14px;
    line-height: 18px;
  }

  .gm-road-date {
    grid-area: date;
    font-size: 14px;
    line-height: 18px;
    white-space: nowrap;
  }

  .gm-road-title {
    grid-area: title;
    font-size: 20px;
    line-height: 25px;
  }

  .gm-road-text {
    grid-area: text;
    font-size: 16px;
    line-height: 21px;
  }
}

/* ---------- iPhone landscape (short screens, last) ---------- */
@media (max-height: 500px) and (orientation: landscape) {
  .gm-ba-row { --per: 2.3; }

  .gm-do-media {
    height: 130px;
  }

  .gm-fair-card {
    gap: 8px;
    padding-block: 18px 20px;
  }

  .gm-fair-card img {
    width: 56px;
    height: 56px;
  }

  .gm-road-card {
    gap: 6px;
    padding-block: 18px 20px;
  }

  .gm-road-card img {
    width: 48px;
    height: 48px;
  }
}
