/* Battle Tavern — promotional site.
   Palette, type and layout lifted from the in-game UI tokens (bt-tokens.css)
   via the design handoff. The public page ships no JavaScript. */

:root {
  --wood-blackest: #150d06;
  --wood-darkest:  #20140a;
  --wood-dark:     #2c1d0f;
  --wood:          #3a2716;
  --wood-light:    #4d361f;
  --wood-edge:     #63462a;
  --parch-hi:   #f2e6c6;
  --parch:      #e7d5aa;
  --parch-lo:   #d8c290;
  --parch-edge: #b7995f;
  --ink:        #2e2008;
  --ink-soft:   #5a4420;
  --brass-hi:   #f0d68f;
  --brass:      #c9a64e;
  --brass-deep: #97772f;
  --brass-dark: #5f4a1e;
  --brass-line: rgba(201,166,78,.42);
  --on-wood:      #e9dcc0;
  --on-wood-dim:  #c9b893;
  --on-wood-mute: #9a8a68;
  --font-display: 'Cinzel', 'Trajan Pro', Georgia, serif;
  --font-body:    'Spectral', 'Iowan Old Style', Georgia, serif;
  --r: 10px;
  --r-sm: 6px;
  --max: 1080px;
  /* hero backdrop grade — matches the in-game Quartermaster's Store blurred
     tavern backdrop (ui_blur.gdshader: blur 5px / brightness .42 / saturate 1.05) */
  --hero-dim: 0.42;
  --hero-blur: 5px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body {
  background: var(--wood-blackest);
  color: var(--on-wood);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--brass-hi); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }

/* ---------- shared type ---------- */
.eyebrow {
  font-family: var(--font-display); font-weight: 600; font-size: 12px;
  letter-spacing: .24em; text-transform: uppercase; color: var(--brass);
  margin: 0 0 14px;
}
h2 {
  font-family: var(--font-display); font-weight: 700; letter-spacing: .03em;
  font-size: clamp(26px, 3.6vw, 38px); line-height: 1.12; color: var(--parch-hi);
  margin: 0 0 14px; text-wrap: balance;
}
.lede { font-size: 18px; color: var(--on-wood-dim); max-width: 56ch; margin: 0; text-wrap: pretty; }

/* brass rule with center glyph */
.rule { display: flex; align-items: center; gap: 12px; margin: 0 auto; max-width: 320px; color: var(--brass); }
.rule::before, .rule::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--brass-line)); }
.rule::after { background: linear-gradient(90deg, var(--brass-line), transparent); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: .06em;
  padding: 15px 30px; border-radius: var(--r-sm); cursor: pointer; text-decoration: none;
  border: 1px solid var(--brass-line); color: var(--on-wood);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.25)),
              linear-gradient(180deg, var(--wood-light), var(--wood-dark));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 2px 6px rgba(0,0,0,.4);
  transition: border-color .15s, color .15s, box-shadow .15s, transform .06s;
}
.btn:hover { border-color: var(--brass); color: var(--brass-hi); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 14px rgba(201,166,78,.25), 0 2px 6px rgba(0,0,0,.4); }
.btn:active { transform: translateY(1px); }
.btn--primary {
  color: #2a1c0a; border-color: var(--brass-hi);
  background: linear-gradient(180deg, var(--brass-hi), var(--brass) 55%, var(--brass-deep));
  text-shadow: 0 1px 0 rgba(255,255,255,.25);
}
.btn--primary:hover { color: #2a1c0a; background: linear-gradient(180deg, #ffe7a8, var(--brass) 60%, var(--brass-deep)); box-shadow: 0 0 22px rgba(201,166,78,.4), 0 2px 6px rgba(0,0,0,.4); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; }
.hero-bg {
  /* bleed past the hero edges so blur() doesn't feather into transparency;
     .hero has overflow:hidden so the overscan is clipped. */
  position: absolute; inset: -16px;
  background: url('refs/background.jpg') center 30% / cover no-repeat;
  filter: blur(var(--hero-blur)) brightness(var(--hero-dim)) saturate(1.05);
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(85% 70% at 50% 42%, transparent 30%, rgba(13,8,3,.78) 100%),
    linear-gradient(180deg, rgba(13,8,3,.35), transparent 30%, transparent 62%, var(--wood-blackest) 100%);
}
.hero-inner { position: relative; text-align: center; padding: 72px 28px 96px; width: 100%; }
.hero-logo { width: min(440px, 72vw); margin: 0 auto 8px; filter: drop-shadow(0 14px 34px rgba(0,0,0,.65)); }
.hero-tag {
  font-family: var(--font-display); font-weight: 700; letter-spacing: .04em;
  font-size: clamp(22px, 3.4vw, 34px); color: var(--parch-hi); margin: 18px 0 10px;
  text-shadow: 0 2px 14px rgba(0,0,0,.7); text-wrap: balance;
}
.hero-sub {
  font-size: clamp(16px, 1.7vw, 19px); color: var(--on-wood-dim); max-width: 54ch;
  margin: 0 auto 30px; text-shadow: 0 1px 8px rgba(0,0,0,.8); text-wrap: pretty;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-meta {
  margin-top: 26px; font-family: var(--font-display); font-size: 11.5px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--on-wood-mute);
  display: flex; gap: 18px; justify-content: center; flex-wrap: wrap;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 18px; }

/* scroll cue — signals there's more below the full-viewport hero. Pinned to
   the hero's bottom edge, gently bobbing; also an anchor link to the next
   section (clickable + keyboard-focusable). */
.scroll-cue {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%);
  display: inline-flex; flex-direction: column; align-items: center; gap: 6px;
  text-decoration: none; color: var(--on-wood-mute);
  font-family: var(--font-display); font-weight: 600; font-size: 10.5px;
  letter-spacing: .22em; text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0,0,0,.8); transition: color .2s; z-index: 3;
}
.scroll-cue:hover, .scroll-cue:focus-visible { color: var(--brass-hi); }
.scroll-cue svg { display: block; animation: scroll-bob 2.2s ease-in-out infinite; }
@keyframes scroll-bob {
  0%, 100% { transform: translateY(-3px); opacity: .65; }
  50%      { transform: translateY(4px);  opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-cue svg { animation: none; }
}

/* ---------- sections ---------- */
section { padding: 96px 0; }
.section-head { text-align: center; margin-bottom: 56px; }
.section-head .lede { margin: 0 auto; }

/* the table */
.table-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 44px; align-items: center; }
.shot-frame {
  padding: 10px; border-radius: var(--r);
  background:
    repeating-linear-gradient(90deg, var(--wood) 0px, var(--wood) 6px, var(--wood-dark) 7px, var(--wood) 13px),
    linear-gradient(180deg, var(--wood-light), var(--wood-dark) 55%, var(--wood-darkest));
  border: 1px solid var(--brass-line);
  box-shadow: 0 18px 44px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.07);
}
.shot-frame .shot-ar { aspect-ratio: 16 / 9; position: relative; }
.shot-cap {
  margin: 10px 4px 0; font-size: 12.5px; font-style: italic; color: var(--on-wood-mute); text-align: center;
}
.feat-list { display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0; list-style: none; }
.feat-list li { padding: 18px 0; border-bottom: 1px solid rgba(201,166,78,.16); display: flex; gap: 14px; align-items: flex-start; }
.feat-list li:first-child { padding-top: 0; }
.feat-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.feat-glyph { flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center; color: var(--brass); border: 1px solid var(--brass-line); border-radius: var(--r-sm); background: linear-gradient(180deg, var(--wood-light), var(--wood-dark)); box-shadow: inset 0 1px 0 rgba(255,255,255,.07); }
.feat-list h3 { font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: .03em; color: var(--parch-hi); margin: 0 0 3px; }
.feat-list p { margin: 0; font-size: 15px; color: var(--on-wood-dim); text-wrap: pretty; }

/* liveries */
.liveries { background: linear-gradient(180deg, var(--wood-blackest), var(--wood-darkest) 18%, var(--wood-darkest) 82%, var(--wood-blackest)); }
.pack-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pack {
  padding: 22px 20px; border-radius: var(--r); border: 1px solid var(--brass-line);
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(0,0,0,.2)), linear-gradient(180deg, var(--wood-dark), var(--wood-darkest));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 8px 22px rgba(0,0,0,.4);
  display: flex; flex-direction: column; gap: 10px;
}
.pack-shot { aspect-ratio: 3 / 4; position: relative; border-radius: var(--r-sm); overflow: hidden; border: 1px solid rgba(201,166,78,.25); background: linear-gradient(180deg, rgba(0,0,0,.3), rgba(0,0,0,.5)); }
.pack h3 { font-family: var(--font-display); font-weight: 700; font-size: 16.5px; line-height: 1.25; color: var(--brass-hi); margin: 6px 0 0; }
.pack .fac { font-family: var(--font-display); font-weight: 600; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--on-wood-mute); margin: 0; }
.pack p.tag { margin: 0; font-size: 14px; font-style: italic; color: var(--on-wood-dim); text-wrap: pretty; }
.liveries-note { text-align: center; margin-top: 28px; font-size: 14px; color: var(--on-wood-mute); font-style: italic; }

/* final cta */
.outro { text-align: center; padding: 120px 0 100px; }
.outro h2 { font-size: clamp(30px, 4.4vw, 46px); }
.outro .lede { margin: 0 auto 34px; }

/* footer */
footer { border-top: 1px solid rgba(201,166,78,.16); padding: 30px 0 40px; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.foot p { margin: 0; font-size: 13px; color: var(--on-wood-mute); }
.foot nav { display: flex; gap: 22px; }
.foot a { font-family: var(--font-display); font-weight: 600; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--on-wood-dim); }
.foot a:hover { color: var(--brass-hi); }

/* ---------- image slots (production) ----------
   A slot renders as a real <img> once marketing supplies it through the
   admin settings page; until then it falls back to a styled placeholder.
   Both fill the parent frame (.shot-ar 16:9 / .pack-shot 3:4). */
.slot-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.shot-frame .slot-img { border-radius: 4px; cursor: zoom-in; }
.slot-empty {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px; text-align: center;
  padding: 16px; color: var(--on-wood-mute);
  background: repeating-linear-gradient(135deg, rgba(201,166,78,.04) 0 12px, transparent 12px 24px);
}
.shot-frame .slot-empty { border-radius: 4px; }
.slot-empty svg { opacity: .5; color: var(--brass); }
.slot-empty .cap { font-family: var(--font-display); font-weight: 600; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--on-wood-mute); max-width: 90%; }

@media (max-width: 880px) {
  section { padding: 72px 0; }
  .table-grid { grid-template-columns: 1fr; gap: 30px; }
  .pack-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .pack-grid { grid-template-columns: 1fr; }
}

/* Additional screenshots strip for the proving ground (populated from bbt shots) */
.screenshots-strip {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}
.screenshots-strip img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--brass-line);
  background: var(--wood-dark);
  box-shadow: 0 4px 14px rgba(0,0,0,.4);
}
.screenshots-strip .cap {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 12px;
  color: var(--on-wood-mute);
  font-style: italic;
  margin-top: 4px;
}
@media (max-width: 880px) {
  .screenshots-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .screenshots-strip { grid-template-columns: 1fr; }
}

/* ====================== Screenshots Gallery ====================== */
.screenshots-gallery {
  margin-top: 32px;
}
.screenshots-head {
  text-align: center;
  margin-bottom: 16px;
}
.screenshots-head h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--parch-hi);
  margin: 0;
  letter-spacing: .02em;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.gallery-grid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--brass-line);
  cursor: zoom-in;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s;
  background: var(--wood-dark);
}
.gallery-grid img:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  border-color: var(--brass);
}

/* ====================== Lightbox ====================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(8, 5, 2, 0.92);
  padding: 24px;
}
.lightbox.open {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 96vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 82vh;
  border-radius: 4px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.75);
  background: #111;
  display: block;
}

.lightbox-close {
  position: absolute;
  top: -18px;
  right: -18px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--brass-line);
  background: var(--wood-dark);
  color: var(--on-wood);
  font-size: 22px;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.1s ease;
}
.lightbox-close:hover {
  background: var(--brass);
  color: var(--wood-blackest);
  border-color: var(--brass-hi);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 1px solid var(--brass-line);
  background: rgba(20, 14, 8, 0.75);
  color: var(--on-wood);
  font-size: 26px;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.1s ease;
  z-index: 2;
}
.lightbox-prev { left: -18px; }
.lightbox-next { right: -18px; }
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--brass);
  color: var(--wood-blackest);
  border-color: var(--brass-hi);
}

@media (max-width: 600px) {
  .lightbox-prev, .lightbox-next {
    width: 38px;
    height: 38px;
    font-size: 22px;
  }
  .lightbox-prev { left: 4px; }
  .lightbox-next { right: 4px; }
}

.lightbox-caption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--on-wood-mute);
  font-style: italic;
  text-align: center;
  max-width: 80ch;
}

@media (max-width: 600px) {
  .lightbox-close {
    top: 8px;
    right: 8px;
  }
  .lightbox-content img {
    max-height: 78vh;
  }
}
