/* The launch page (web/launch/): the countdown, the feature rows, the addon
   spotlight and the wall of one-line snippets. Built on style.css's hero,
   .win, .section and .btn; only what is this page's own is here. The countdown, date, local
   time and tip are in style.css, shared with the front page's launch strip. */

.launch-hero .paint { background-image: url(/img/art/courtyard.webp); }
.launch-hero .hero-inner { padding-block: clamp(56px, 10vw, 120px) clamp(48px, 7vw, 84px); }

.launch-hero .hero-actions { margin-top: 26px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ------------------------------------------------------------ at a glance */
.glance { padding-block: 40px; }
.launch-facts {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  border: 1px solid var(--border);
  background: var(--window);
}
.launch-facts li { padding: 16px 10px; text-align: center; border-left: 1px solid var(--line-faint); display: grid; gap: 4px; }
.launch-facts li:first-child { border-left: 0; }
.launch-facts b { font-family: var(--display); font-size: 1.9rem; color: var(--gold-hi); line-height: 1.1; }
.launch-facts span { font-family: var(--pixel); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); -webkit-font-smoothing: none; }
.glance-line { margin: 20px auto 0; max-width: 46em; text-align: center; color: var(--text-dim); font-size: 1.08rem; }

/* ------------------------------------------------------------ the best of it */
.best { display: grid; gap: clamp(36px, 6vw, 64px); }
.best-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(22px, 4vw, 48px); align-items: center; }
.best-row.flip .best-pic { order: 2; }
.best-pic {
  margin: 0; display: grid; place-items: center;
  min-height: 300px; max-height: 520px; padding: 14px;
  background: radial-gradient(ellipse at center, #1c1408, #080504 75%);
}
.best-pic img { max-width: 100%; max-height: 490px; width: auto; height: auto; display: block; }
.best-num {
  font-family: var(--pixel); font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); -webkit-font-smoothing: none;
}
.best-text h3 { margin: 8px 0 12px; font-family: var(--display); font-size: clamp(1.6rem, 3.4vw, 2.3rem); color: var(--gold-hi); line-height: 1.1; }
.best-text > p { color: var(--text); font-size: 1.06rem; }
.best-text ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.best-text li { position: relative; padding-left: 22px; color: var(--text-dim); }
.best-text li::before {
  content: ""; position: absolute; left: 3px; top: .55em;
  width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg);
}
.best-text li b { color: var(--text); }
.best-text ul.styles { gap: 8px; }
.best-text .more { display: inline-block; margin-top: 16px; color: var(--gold); }
.best-text .more:hover { color: var(--gold-hi); }
code { font-family: var(--pixel); font-size: .9em; color: var(--spell-key); -webkit-font-smoothing: none; }

.best-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: calc(-1 * clamp(14px, 3vw, 32px)); }
.best-gallery.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.best-gallery figure { margin: 0; display: grid; grid-template-rows: 1fr auto; }
.best-gallery img { width: 100%; height: 220px; object-fit: contain; background: #080504; padding: 8px; display: block; }
.best-gallery figcaption { padding: 10px 12px 12px; color: var(--text-dim); font-size: .92rem; border-top: 1px solid var(--line-faint); }

/* A feature with a band of its own: the arena, the games, replays */
.band { display: grid; gap: 18px; padding: clamp(22px, 3vw, 34px); border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(40, 33, 14, .28), rgba(10, 6, 4, .5)); scroll-margin-top: 80px; }
.band-head { max-width: 52em; }
.band-head h3 { margin: 8px 0 10px; font-family: var(--display); font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--gold-hi); line-height: 1.1; }
.band-head p:not(.best-num) { font-size: 1.08rem; }
.band-pics { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; align-items: start; }
.band-pics figure, .best-gallery figure { margin: 0; }
.band-pics img { width: 100%; height: auto; max-height: 520px; object-fit: contain; object-position: top; background: #080504; padding: 8px; display: block; }
.band-pics figcaption { padding: 10px 12px 12px; color: var(--text-dim); font-size: .94rem; border-top: 1px solid var(--line-faint); }
.band-strip { margin: 0; }
.band-strip img { width: 100%; height: auto; display: block; }
.band-strip figcaption { padding: 10px 12px 12px; color: var(--text-dim); font-size: .94rem; border-top: 1px solid var(--line-faint); }
.band-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.chips-head { margin-top: 4px; font-family: var(--pixel); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); -webkit-font-smoothing: none; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 12px; border: 1px solid var(--border); background: var(--window); color: var(--text); }
.best-gallery.three { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 0; }
.game-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.game-cols h4 { font-family: var(--display); color: var(--gold); font-size: 1.05rem; margin-bottom: 6px; }
.game-cols p { color: var(--text-dim); font-size: .95rem; }
.gear-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: start; }
.gear-pair img { width: 100%; max-height: none; }
.game-cols.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.build { margin-block: 28px; }
.build-pics { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; align-items: start; }
.build-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.build-list li { color: var(--text-dim); }
.build-list b { color: var(--text); }

/* ------------------------------------------------------------ addons */
.spotlight .win-body { padding: clamp(14px, 2.4vw, 24px); }
.spotlight-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(18px, 3vw, 32px); align-items: center; }
.spotlight-pic img { width: 100%; height: auto; display: block; }
.spotlight-pic .compare { width: 100%; aspect-ratio: 1440 / 847; }
.spotlight-text h3 { font-family: var(--display); font-size: 1.7rem; color: var(--gold-hi); margin-bottom: 10px; }
.spotlight-text p { margin-bottom: 12px; }
.spotlight-text .dim { color: var(--text-faint); font-size: .92rem; }

.addon-cards { margin-top: 28px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.addon-card { display: grid; grid-template-rows: auto 1fr; color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
.addon-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.addon-card img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; display: block; border-bottom: 1px solid var(--border); }
.addon-card div { padding: 14px 16px 18px; }
.addon-card h3 { font-family: var(--display); font-size: 1.15rem; color: var(--gold-hi); margin-bottom: 6px; }
.addon-card p { color: var(--text-dim); font-size: .95rem; }

.addon-more {
  list-style: none; margin: 26px 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 24px;
  color: var(--text-dim);
}
.addon-more b { color: var(--gold); margin-right: 6px; }
.center { text-align: center; }

/* ------------------------------------------------------------ snippets */
.snip-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 36px; }
.snip-nav a {
  padding: 6px 12px; border: 1px solid var(--border); background: var(--window);
  font-family: var(--pixel); font-size: 12px; letter-spacing: .06em; color: var(--text-dim);
  text-decoration: none; -webkit-font-smoothing: none;
}
.snip-nav a:hover { color: var(--gold-hi); border-color: var(--gold); }
.snip-nav.jump { margin: 22px 0 0; }
.snip-group { margin-bottom: 36px; scroll-margin-top: 80px; }
.snip-group h3 {
  display: flex; align-items: center; gap: 14px; margin-bottom: 14px;
  font-family: var(--display); font-size: 1.35rem; color: var(--gold);
}
.snip-group h3::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.snips { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.snip {
  padding: 12px 14px; border: 1px solid rgba(99, 83, 50, .6);
  background: linear-gradient(180deg, rgba(40, 33, 14, .3), rgba(16, 8, 8, .6));
}
.snip b { display: block; margin-bottom: 4px; color: var(--gold-hi); font-weight: 700; }
.snip a { text-decoration: none; }
.snip p { color: var(--text-dim); font-size: .94rem; line-height: 1.45; }

/* ------------------------------------------------------------ be ready */
.ready-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.ready-steps .win-body { display: grid; gap: 10px; justify-items: start; height: 100%; align-content: start; }
.ready-steps .step {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid var(--gold); color: var(--gold-hi); font-family: var(--display); font-size: 1.3rem;
  line-height: 1; padding-bottom: 3px;
}
.ready-steps h3 { font-family: var(--display); color: var(--gold-hi); font-size: 1.15rem; }
.ready-steps p { color: var(--text-dim); }
.faq { max-width: 760px; margin: 40px auto 0; display: grid; gap: 8px; }
.faq details { border: 1px solid var(--border); background: var(--window); padding: 12px 16px; }
.faq summary { cursor: pointer; color: var(--gold-hi); font-weight: 700; }
.faq p { margin-top: 8px; color: var(--text-dim); }

@media (max-width: 960px) {
  .launch-facts { grid-template-columns: repeat(4, 1fr); }
  .launch-facts li:nth-child(5) { border-left: 0; }
  .launch-facts li:nth-child(n+5) { border-top: 1px solid var(--line-faint); }
  .best-row, .spotlight-grid, .band-pics { grid-template-columns: 1fr; }
  .band-tiles, .game-cols, .game-cols.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .best-row.flip .best-pic { order: 0; }
  .addon-cards, .ready-steps, .best-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .addon-more { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .launch-facts { grid-template-columns: repeat(2, 1fr); }
  .launch-facts li:nth-child(odd) { border-left: 0; }
  .launch-facts li:nth-child(n+3) { border-top: 1px solid var(--line-faint); }
  .addon-cards, .ready-steps, .addon-more, .best-gallery, .best-gallery.two, .best-gallery.three, .band-tiles, .game-cols, .game-cols.three, .build-pics { grid-template-columns: 1fr; }
  .best-pic { min-height: 0; }
}
