/* Nightfall Classes (v2.03) — page-only styles. Linked only from classes.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;
  }
}

.pbn-pic > .cl-banner-img {
  object-position: 50% 42%;
}

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

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

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

/* ---------- Role filter ---------- */
.cl-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  padding-top: 24px;
  padding-bottom: 28px;
}

.cl-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  margin: 0;
  padding: 9px 16px;
  border: 1px solid var(--v2-line);
  background: rgba(10, 10, 14, 0.88);
  color: var(--v2-soft);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 22px;
  white-space: nowrap;
}

.cl-chip img {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  object-fit: contain;
}

.cl-chip.is-active {
  border-color: var(--v2-gold);
  background: rgba(201, 165, 92, 0.16);
  color: var(--v2-gold-pale);
}

/* ---------- Role groups ---------- */
.cl-group {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 8px;
  padding-bottom: 34px;
}

.cl-group[hidden] {
  display: none;
}

.cl-role {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--v2-gold-light);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 26px;
}

.cl-role img {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  object-fit: contain;
}

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

.cl-grid > li {
  display: flex;
  min-width: 0;
}

.cl-group-damage .cl-grid {
  --cols: 6;
  --gap: 14px;
}

.cl-card {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 22px 16px 20px;
  background: rgba(10, 10, 14, 0.88);
  text-align: center;
}

a.cl-card {
  color: inherit;
  transition: border-color 140ms ease;
}

.cl-portrait {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 134px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  flex: 0 0 auto;
  border: 1px solid var(--v2-line-strong);
  background: radial-gradient(circle farthest-corner at 50% 35%, rgba(138, 110, 60, 0.34) 0%, rgba(5, 5, 8, 0.95) 72%);
}

.cl-portrait img {
  width: 94%;
  height: auto;
  object-fit: contain;
}

.cl-name {
  color: var(--v2-text);
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 700;
  line-height: 28px;
}

.cl-sig {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--v2-muted);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 22px;
}

.cl-sig img {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  object-fit: contain;
}

.cl-group-damage .cl-card {
  gap: 10px;
  padding: 18px 12px;
}

.cl-group-damage .cl-portrait {
  width: 112px;
}

.cl-group-damage .cl-name {
  font-size: 21px;
  line-height: 25px;
}

.cl-group-damage .cl-sig {
  gap: 6px;
  min-height: 42px;
  font-size: 17px;
  line-height: 21px;
}

.cl-group-damage .cl-sig img {
  width: 19px;
  height: 19px;
}

/* ---------- 8 more after launch ---------- */
.cl-more {
  padding-top: 8px;
  padding-bottom: 40px;
}

.cl-more-box {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 26px 32px;
  border: 2px dashed var(--v2-line);
  background: rgba(10, 10, 14, 0.7);
}

.cl-more-qs {
  display: flex;
  flex: 0 0 auto;
}

.cl-more-qs span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border: 1px solid #4A3B22;
  background: #0A0A0E;
  color: var(--v2-line);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  line-height: 34px;
}

.cl-more-copy {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.cl-more-title {
  color: var(--v2-text);
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  line-height: 32px;
}

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

.cl-more-date {
  flex: 0 0 auto;
  color: var(--v2-dim);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 22px;
}

/* ---------- Every class is free ---------- */
.cl-free {
  padding-top: 24px;
  padding-bottom: 56px;
}

.cl-free-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px 48px;
  padding: 28px 40px;
  background: rgba(10, 10, 14, 0.88);
}

.cl-free-head {
  display: flex;
  align-items: center;
  gap: 18px;
}

.cl-free-head img {
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  object-fit: contain;
}

.cl-free-title {
  color: var(--v2-gold-pale);
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  line-height: 36px;
}

.cl-free-rule {
  width: 1px;
  height: 56px;
  flex: 0 0 auto;
  background: var(--v2-line);
}

.cl-free-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 48px;
}

.cl-free-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--v2-body);
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 24px;
}

.cl-free-list img {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  object-fit: contain;
}

@media (hover: hover) {
  .cl-chip:hover {
    border-color: var(--v2-gold);
    color: var(--v2-gold-pale);
  }

  a.cl-card:hover {
    border-color: var(--v2-gold-light);
  }
}

/* ---------- iPad landscape (1024–1279) ---------- */
@media (max-width: 1279px) {
  .cl-group-damage .cl-grid {
    --cols: 3;
    --gap: 20px;
  }

  .cl-free-box {
    column-gap: 26px;
    padding-inline: 24px;
  }

  .cl-free-title {
    font-size: 25px;
  }

  .cl-free-list {
    column-gap: 26px;
  }
}

@media (max-width: 1179px) {
  .cl-free-box {
    padding-inline: 28px;
  }

  .cl-free-head {
    flex-basis: 100%;
    justify-content: center;
  }

  .cl-free-rule {
    display: none;
  }
}

/* ---------- iPad portrait (768–1023) ---------- */
@media (max-width: 1023px) {
  .cl-group .cl-grid {
    --gap: 18px;
  }

  .cl-group-damage .cl-grid {
    --gap: 20px;
  }

  .cl-card {
    padding-inline: 10px;
  }

  .cl-free-box {
    row-gap: 18px;
  }

  .cl-free-list {
    column-gap: 32px;
  }
}

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

  .cl-filter {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .cl-chip {
    height: 44px;
  }

  .cl-group .cl-grid,
  .cl-group-damage .cl-grid {
    --cols: 2;
    --gap: 12px;
  }

  .cl-card,
  .cl-group-damage .cl-card {
    gap: 8px;
    padding: 16px 10px 14px;
  }

  .cl-portrait,
  .cl-group-damage .cl-portrait {
    width: 96px;
  }

  .cl-name,
  .cl-group-damage .cl-name {
    font-size: 18px;
    line-height: 22px;
  }

  .cl-sig,
  .cl-group-damage .cl-sig {
    gap: 7px;
    min-height: 0;
    font-size: 16px;
    line-height: 20px;
  }

  .cl-sig img,
  .cl-group-damage .cl-sig img {
    width: 19px;
    height: 19px;
  }

  .cl-more-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
  }

  .cl-more-copy {
    flex: 0 0 auto;
  }

  .cl-free-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 22px 20px;
  }

  .cl-free-head {
    flex-basis: auto;
    justify-content: flex-start;
  }

  .cl-free-title {
    font-size: 23px;
    line-height: 28px;
  }

  .cl-free-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

@media (max-width: 374px) {
  .cl-name,
  .cl-group-damage .cl-name {
    font-size: 16px;
    line-height: 20px;
  }
}

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

  .cl-filter {
    display: flex;
    gap: 14px;
  }

  .cl-group .cl-grid {
    --cols: 4;
    --gap: 18px;
  }

  .cl-group-damage .cl-grid {
    --cols: 3;
    --gap: 20px;
  }

  .cl-card {
    gap: 11px;
    padding: 22px 10px 20px;
  }

  .cl-group-damage .cl-card {
    gap: 10px;
    padding: 18px 12px;
  }

  .cl-portrait {
    width: 134px;
  }

  .cl-group-damage .cl-portrait {
    width: 112px;
  }

  .cl-name {
    font-size: 23px;
    line-height: 28px;
  }

  .cl-group-damage .cl-name {
    font-size: 21px;
    line-height: 25px;
  }

  .cl-sig {
    font-size: 18px;
    line-height: 22px;
  }

  .cl-group-damage .cl-sig {
    min-height: 42px;
    font-size: 17px;
    line-height: 21px;
  }

  .cl-more-box {
    flex-direction: row;
    align-items: center;
    gap: 28px;
    padding: 26px 32px;
  }

  .cl-free-box {
    flex-direction: row;
    align-items: center;
    gap: 18px 32px;
    padding: 28px;
  }

  .cl-free-head {
    flex-basis: 100%;
    justify-content: center;
  }

  .cl-free-title {
    font-size: 25px;
    line-height: 36px;
  }

  .cl-free-list {
    flex-direction: row;
    align-items: center;
    gap: 14px 32px;
  }
}

/* ==========================================================================
   Version 3 "native to every screen" (lane site-v3-b). Mac (>= 1280) unchanged.
   ========================================================================== */

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

/* "Class page ›" hint on the one card that links (Knight); hidden on Mac via .below-mac */
.cl-open {
  display: inline-flex;
  align-items: center;
  margin-top: 2px;
  color: var(--v2-gold);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  line-height: 18px;
  white-space: nowrap;
}

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

  .cl-filter-bar {
    position: sticky;
    z-index: 40;
    top: var(--bar-h);
    margin-bottom: 18px;
    border-bottom: 1px solid var(--v2-line-dark);
    background: rgba(7, 7, 10, 0.94);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
  }

  .cl-filter {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .cl-group {
    scroll-margin-top: calc(var(--bar-h) + 76px);
  }
}

/* ---------- 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-pic {
    height: 340px;
  }

  .cl-filter {
    justify-content: flex-start;
    gap: 10px;
  }
}

/* ---------- iPhone portrait: one chip row, compact 2-up cards ---------- */
@media (max-width: 767px) and (min-height: 501px), (max-width: 767px) and (orientation: portrait) {
  .pbn-copy > nav {
    display: none;
  }

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

  .pbn-pic {
    height: 170px;
  }

  .cl-filter-bar {
    padding-left: 0;
    padding-right: 0;
  }

  .cl-filter {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 8px;
    padding-left: var(--pad-l);
    padding-right: var(--pad-r);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .cl-filter::-webkit-scrollbar {
    display: none;
  }

  .cl-chip {
    flex: 1 0 auto;
    gap: 6px;
    padding: 0 12px;
    font-size: 15px;
    line-height: 18px;
  }

  .cl-chip img {
    display: none;
  }

  .cl-group {
    gap: 12px;
    padding-bottom: 26px;
  }

  .cl-role {
    font-size: 20px;
    line-height: 24px;
  }

  .cl-card,
  .cl-group-damage .cl-card {
    gap: 6px;
    padding: 14px 8px 12px;
  }

  .cl-portrait,
  .cl-group-damage .cl-portrait {
    width: 84px;
  }

  .cl-more {
    padding-bottom: 28px;
  }

  .cl-more-qs span {
    width: 48px;
    height: 48px;
    font-size: 22px;
  }

  .cl-free {
    padding-top: 0;
    padding-bottom: 40px;
  }

  .cl-free-head img {
    width: 56px;
    height: 56px;
  }

  .cl-free-list li {
    font-size: 18px;
    line-height: 22px;
  }

  .cl-free-list img {
    width: 32px;
    height: 32px;
  }
}

/* ---------- iPhone landscape (short screens, last): 4 / 3 columns, smaller cards ---------- */
@media (max-height: 500px) and (orientation: landscape) {
  .cl-filter {
    padding-top: 16px;
    padding-bottom: 20px;
  }

  .cl-group {
    gap: 14px;
    padding-bottom: 26px;
  }

  .cl-card,
  .cl-group-damage .cl-card {
    gap: 8px;
    padding: 16px 10px 14px;
  }

  .cl-portrait,
  .cl-group-damage .cl-portrait {
    width: 100px;
  }

  .cl-name,
  .cl-group-damage .cl-name {
    font-size: 20px;
    line-height: 24px;
  }

  .cl-sig,
  .cl-group-damage .cl-sig {
    min-height: 0;
    font-size: 16px;
    line-height: 20px;
  }

  .cl-group-damage .cl-grid {
    --cols: 3;
  }
}
