/* ============================================================
   Bloons TD 6 Wiki
   Theme: light paper #fdfaf2, balloon blue #1e7fd8, balloon yellow #ffb703
   ============================================================ */

:root {
  --bg:        #fdfaf2;
  --bg-deep:   #f4eedd;
  --panel:     #ffffff;
  --panel-2:   #faf5e9;
  --line:      #e3dccb;
  --line-soft: #ece6d6;
  --text:      #1f2a37;
  --text-soft: #3a4656;
  --muted:     #6d7a89;
  --gold:      #1e7fd8;   /* primary: balloon blue (links, headings accent) */
  --gold-dim:  #1668b4;
  --sun:       #ffb703;   /* accent: balloon yellow */
  --warn:      #b06a00;
  --danger:    #e63946;
  --ok:        #1d8a4e;
  --radius:    14px;
  --wrap:      1120px;
  --shadow:    0 8px 26px rgba(31,42,55,.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* soft sky-and-sun wash so the flat paper has some depth */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(1200px 600px at 12% -10%, rgba(30,127,216,.07), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(255,183,3,.10), transparent 55%);
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; position: relative; z-index: 1; }

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-dim); text-decoration: underline; }

.mono { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; }

h1, h2, h3, h4 { font-family: Nunito, Inter, "PingFang SC", "Microsoft YaHei", sans-serif; line-height: 1.25; letter-spacing: .005em; }

/* ---------------- header ---------------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253,250,242,.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.site-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 22px;
  display: flex; align-items: center; gap: 20px; min-height: 64px;
}
.logo {
  font-family: Nunito, sans-serif;
  font-weight: 800; font-size: 17px; color: var(--text);
  display: flex; align-items: center; gap: 9px; white-space: nowrap;
}
.logo:hover { text-decoration: none; color: var(--text); }
.logo-mark {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px; border-radius: 10px;
  background: linear-gradient(160deg, var(--sun), #ff9e00);
  color: #4a3000; font-size: 12px; font-weight: 800; letter-spacing: .02em;
}
.logo-accent { color: var(--gold); }

nav.main { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-item { position: relative; }
.nav-item > a.top {
  display: block; padding: 20px 13px; color: var(--text-soft);
  font-size: 14px; font-weight: 600; white-space: nowrap;
}
.nav-item > a.top:hover, .nav-item > a.top.active { color: var(--gold); text-decoration: none; }
.nav-item > a.top.active { box-shadow: inset 0 -2px 0 var(--gold); }
.dropdown {
  display: none; position: absolute; top: 100%; left: 0;
  min-width: 268px; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 7px; z-index: 60;
}
.nav-item:hover .dropdown, .nav-item.open .dropdown { display: block; }
.dropdown a {
  display: block; padding: 9px 11px; border-radius: 9px;
  color: var(--text-soft); font-size: 13.5px; line-height: 1.4;
}
.dropdown a:hover { background: var(--panel-2); color: var(--text); text-decoration: none; }
.dropdown a b { display: block; font-weight: 600; }
.dropdown a span { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
.burger {
  display: none; margin-left: auto; background: none; border: 1px solid var(--line);
  color: var(--text); font-size: 18px; border-radius: 8px; padding: 5px 11px; cursor: pointer;
}

/* ---------------- hero (variant b: centered, no cover image) ---------------- */
.hero {
  padding: 56px 0 34px;
  border-bottom: 1px solid var(--line-soft);
  background:
    linear-gradient(180deg, rgba(30,127,216,.05), transparent 70%);
}
.hero-center { text-align: center; padding: 64px 0 44px; }
.hero-center .intro { margin-left: auto; margin-right: auto; max-width: 68ch; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 42px; align-items: center; }
.game-kicker {
  display: inline-block; font-size: 12px; letter-spacing: .09em; text-transform: uppercase;
  color: var(--gold); border: 1px solid var(--line); border-radius: 999px; padding: 5px 13px; margin-bottom: 18px;
  background: var(--panel);
}
.hero h1 { font-size: clamp(32px, 5vw, 54px); margin: 0 0 14px; color: var(--text); }
.hero h1 .accent { color: var(--gold); }
.tagline {
  font-family: Nunito, sans-serif; font-size: 17.5px; color: var(--gold);
  margin-bottom: 14px; font-weight: 700;
}
.intro { color: var(--text-soft); font-size: 16.5px; margin: 0 auto 24px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-row.center { justify-content: center; }
.btn {
  display: inline-block; padding: 12px 24px; border-radius: 999px;
  font-weight: 700; font-size: 14.5px; border: 1px solid transparent;
}
.btn:hover { text-decoration: none; }
.btn.primary { background: linear-gradient(160deg, var(--gold), var(--gold-dim)); color: #fff; }
.btn.primary:hover { filter: brightness(1.08); color: #fff; }
.btn.ghost { border-color: var(--line); color: var(--text-soft); background: var(--panel); }
.btn.ghost:hover { border-color: var(--gold); color: var(--gold); }
.cover img {
  width: 100%; border-radius: var(--radius); display: block;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.tag-pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 30px; }
.pill {
  display: inline-block; padding: 7px 16px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line);
  font-size: 13.5px; font-weight: 600; color: var(--text-soft);
}
.pill:nth-child(odd) { border-color: rgba(30,127,216,.35); }
.pill:nth-child(even) { border-color: rgba(255,183,3,.55); }

.stat-cards {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 40px;
}
.sc {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 15px 17px;
}
.sc .k { font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.sc .v { font-family: Nunito, sans-serif; font-size: 19px; color: var(--gold); margin-top: 5px; font-weight: 800; }

/* ---------------- sections ---------------- */
.section { padding: 48px 0; border-bottom: 1px solid var(--line-soft); }
.section h2 { font-size: clamp(22px, 3vw, 30px); margin: 0 0 10px; }
.section h2 span { color: var(--gold); }
.section-sub { color: var(--muted); margin: 0 0 24px; max-width: 78ch; }
.section-sub-plain { color: var(--text-soft); margin: 0 0 16px; max-width: 82ch; font-size: 16px; }

.trailer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.trailer-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.trailer-thumb { position: relative; cursor: pointer; aspect-ratio: 16 / 9; background: var(--bg-deep); }
.trailer-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.trailer-thumb iframe { width: 100%; height: 100%; border: 0; display: block; }
.play {
  position: absolute; inset: 0; margin: auto; width: 60px; height: 60px; border-radius: 50%;
  background: rgba(255,183,3,.94); color: #4a3000; border: 0; font-size: 20px;
  cursor: pointer; display: grid; place-items: center; padding-left: 4px;
}
.play:hover { background: #ffc42e; }
.trailer-meta { padding: 13px 16px; }
.trailer-meta b { display: block; font-size: 14.5px; }
.trailer-meta span { color: var(--muted); font-size: 12.5px; }
.trailer-note { color: var(--muted); font-size: 14px; margin-top: 16px; }

.explore-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 17px; color: var(--text); display: block;
}
.card:hover { border-color: var(--gold); text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); }
.card .ico { font-size: 22px; }
.card .t { font-family: Nunito, sans-serif; font-size: 15.5px; margin: 7px 0 4px; color: var(--gold); font-weight: 800; }
.card .d { color: var(--muted); font-size: 13px; line-height: 1.5; }

.hl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.hl {
  background: var(--panel);
  border: 1px solid var(--line); border-left: 3px solid var(--sun);
  border-radius: var(--radius); padding: 16px 18px;
}
.hl b { display: block; font-family: Nunito, sans-serif; color: var(--gold); margin-bottom: 5px; font-size: 15.5px; font-weight: 800; }
.hl span { color: var(--text-soft); font-size: 14.5px; }

.cta {
  text-align: center; padding: 54px 22px; background: var(--bg-deep);
  border-bottom: 1px solid var(--line-soft);
}
.cta h2 { font-size: clamp(23px, 3.2vw, 33px); margin: 0 0 10px; }
.cta p { color: var(--muted); max-width: 62ch; margin: 0 auto 22px; }
.cta .btn { margin: 0 6px; }

/* ---------------- content pages ---------------- */
.crumbs {
  padding: 20px 0 4px; font-size: 12.5px; color: var(--muted);
  display: flex; flex-wrap: wrap; gap: 7px; align-items: center;
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--gold); }
.crumbs span { color: var(--line); }
.crumbs span:last-child { color: var(--text-soft); }

.page-hero { padding: 10px 0 26px; border-bottom: 1px solid var(--line-soft); }
.kicker {
  font-size: 11.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; font-weight: 700;
}
.page-hero h1 { font-size: clamp(26px, 3.8vw, 40px); margin: 0 0 14px; }
.lede { color: var(--text-soft); font-size: 17px; margin: 0 0 18px; max-width: 80ch; }
.lede b, .lede strong { color: var(--gold); }
.factcheck {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  font-size: 12.5px; color: var(--muted);
}
.badge {
  display: inline-block; padding: 4px 11px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; border: 1px solid;
}
.badge.official { color: var(--ok); border-color: rgba(29,138,78,.4); background: rgba(29,138,78,.08); }
.badge.partial  { color: var(--warn); border-color: rgba(176,106,0,.4); background: rgba(255,183,3,.12); }
.badge.pending  { color: var(--danger); border-color: rgba(230,57,70,.4); background: rgba(230,57,70,.07); }

.keyfacts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px; margin-top: 24px;
}
.kf {
  background: var(--panel); border: 1px solid var(--line); border-radius: 11px; padding: 13px 15px;
}
.kf .k { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.kf .v { color: var(--gold); font-weight: 700; font-size: 15px; margin-top: 4px; }

.caveat {
  margin: 26px 0 0; padding: 16px 19px;
  background: rgba(255,183,3,.10);
  border: 1px solid rgba(255,183,3,.55); border-left: 3px solid var(--sun);
  border-radius: var(--radius);
}
.caveat-h {
  margin: 0 0 6px; font-size: 11.5px; letter-spacing: .09em; text-transform: uppercase;
  color: var(--warn); font-weight: 700;
}
.caveat p:last-child { margin: 0; color: var(--text-soft); font-size: 14.5px; }

article { padding: 8px 0 12px; max-width: 82ch; }
article h2 {
  font-size: clamp(20px, 2.6vw, 26px); margin: 40px 0 14px; padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
}
article h3 { font-size: 17.5px; margin: 28px 0 10px; color: var(--gold); }
article h4 { font-size: 15.5px; margin: 22px 0 8px; color: var(--text); }
article p { margin: 0 0 16px; color: var(--text-soft); }
article strong { color: var(--text); }
article ul, article ol { margin: 0 0 16px; padding-left: 22px; color: var(--text-soft); }
article li { margin-bottom: 7px; }
article hr { border: 0; border-top: 1px solid var(--line-soft); margin: 32px 0; }

blockquote {
  margin: 22px 0; padding: 14px 20px;
  background: var(--panel-2); border-left: 3px solid var(--line);
  border-radius: 0 var(--radius) var(--radius) 0; color: var(--text-soft); font-style: italic;
}
blockquote p:last-child { margin: 0; }
blockquote.note {
  background: rgba(230,57,70,.06); border-left-color: var(--danger); font-style: normal;
}
blockquote.note strong { color: var(--danger); }

.shot {
  margin: 26px 0; padding: 0; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
}
.shot img { display: block; width: 100%; height: auto; background: var(--bg-deep); }
.shot figcaption {
  padding: 11px 16px; font-size: 13px; line-height: 1.55; color: var(--muted);
  border-top: 1px solid var(--line-soft);
}

.tbl-scroll { overflow-x: auto; margin: 0 0 22px; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 520px; }
thead th {
  background: var(--panel-2); color: var(--gold); text-align: left;
  padding: 12px 15px; font-weight: 700; font-size: 13px;
  letter-spacing: .04em; text-transform: uppercase; border-bottom: 1px solid var(--line);
}
tbody td { padding: 12px 15px; border-bottom: 1px solid var(--line-soft); color: var(--text-soft); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) td { background: rgba(30,127,216,.025); }
tbody td b { color: var(--text); }

.faq { margin: 0 0 20px; }
.faq details {
  background: var(--panel); border: 1px solid var(--line); border-radius: 11px;
  margin-bottom: 10px; overflow: hidden;
}
.faq summary {
  cursor: pointer; padding: 14px 17px; font-weight: 600; color: var(--text); font-size: 15.5px;
  list-style: none; position: relative; padding-right: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 17px; top: 50%; transform: translateY(-50%);
  color: var(--gold); font-size: 19px; font-weight: 400;
}
.faq details[open] summary::after { content: "\2013"; }
.faq details[open] summary { border-bottom: 1px solid var(--line-soft); }
.faq details p { margin: 0; padding: 14px 17px; color: var(--text-soft); font-size: 14.5px; }

.pagenav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 40px 0 0; }
.pagenav a {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 17px;
  color: var(--text);
}
.pagenav a:hover { border-color: var(--gold); text-decoration: none; }
.pagenav .dir { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.pagenav .t { font-family: Nunito, sans-serif; font-size: 15px; color: var(--gold); margin-top: 4px; font-weight: 800; }
.pagenav .next { text-align: right; }

.sources {
  margin: 34px 0 48px; padding: 22px 24px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
}
.sources h2 { font-size: 17px; margin: 0 0 12px; color: var(--gold); border: 0; padding: 0; }
.sources ul { margin: 0 0 14px; padding-left: 20px; }
.sources li { color: var(--text-soft); font-size: 14px; margin-bottom: 7px; }
.copyright-note { color: var(--muted); font-size: 12.5px; margin: 0; line-height: 1.6; }

/* tabs (about page) */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 20px; }
.tabs button {
  background: var(--panel); border: 1px solid var(--line); color: var(--text-soft);
  padding: 9px 17px; border-radius: 999px; cursor: pointer; font-size: 13.5px; font-weight: 500;
}
.tabs button.on { background: linear-gradient(160deg, var(--gold), var(--gold-dim)); color: #fff; border-color: transparent; font-weight: 600; }
.tabpane { display: none; }
.tabpane.on { display: block; }
.tabpane h3 { color: var(--gold); margin-top: 24px; }
.tabpane h3:first-child { margin-top: 0; }
.tabpane p, .tabpane li { color: var(--text-soft); }
.tabpane ul { padding-left: 22px; }

/* ---------------- footer ---------------- */
footer.site { background: var(--bg-deep); border-top: 1px solid var(--line); padding: 42px 0 26px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }
.foot-h { font-family: Nunito, sans-serif; color: var(--gold); font-size: 14px; margin: 0 0 10px; font-weight: 800; }
.foot-desc { color: var(--muted); font-size: 13.5px; margin: 0; line-height: 1.65; }
.foot-grid a { display: block; color: var(--text-soft); font-size: 13.5px; padding: 3px 0; }
.foot-grid a:hover { color: var(--gold); text-decoration: none; }
.foot-legal {
  color: var(--muted); font-size: 12px; margin: 30px 0 0; padding-top: 20px;
  border-top: 1px solid var(--line); line-height: 1.7;
}

/* ---------------- responsive ---------------- */
@media (max-width: 1000px) {
  .explore-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .cover { order: -1; }
}
@media (max-width: 900px) {
  .burger { display: block; }
  nav.main {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--bg-deep); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 10px 16px 18px; gap: 0;
    max-height: calc(100vh - 64px); overflow-y: auto;
  }
  nav.main.open { display: flex; }
  .nav-item > a.top { padding: 13px 4px; border-bottom: 1px solid var(--line-soft); }
  .nav-item > a.top.active { box-shadow: none; }
  .dropdown {
    display: block; position: static; border: 0; box-shadow: none; background: transparent;
    padding: 4px 0 10px 10px; min-width: 0;
  }
  .nav-item > a.top { padding: 13px 4px; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .trailer-grid { grid-template-columns: 1fr; }
  .hl-grid { grid-template-columns: 1fr; }
  .pagenav { grid-template-columns: 1fr; }
  .pagenav .next { text-align: left; }
  .hero { padding: 34px 0 26px; }
  .section { padding: 34px 0; }
}
@media (max-width: 620px) {
  .explore-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: 1fr; }
  .site-inner { min-height: 58px; }
  nav.main { top: 58px; }
}

/* ============================================================
   Screenshot gallery + lightbox
   ============================================================ */
article.has-gallery { max-width: none; }
article.has-gallery > * { max-width: 82ch; }
article.has-gallery > .gallery { max-width: none; }

.gallery { margin: 28px 0 10px; }
.gal-h {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 12px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase;
  color: var(--gold); margin: 30px 0 14px; padding-bottom: 9px;
  border-bottom: 1px solid var(--line-soft);
}
.gallery > .gal-h:first-child { margin-top: 0; }

.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 16px; }
.gal-item {
  margin: 0; display: flex; flex-direction: column; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .16s ease, transform .16s ease;
}
.gal-item:hover { border-color: var(--gold); transform: translateY(-2px); }
.gal-btn {
  position: relative; display: block; width: 100%; padding: 0; margin: 0;
  border: 0; background: var(--bg-deep); cursor: zoom-in; overflow: hidden; aspect-ratio: 16 / 9;
}
.gal-btn img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gal-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: -3px; }
.gal-zoom {
  position: absolute; right: 9px; bottom: 9px; width: 28px; height: 28px;
  display: grid; place-items: center; border-radius: 7px;
  background: rgba(31,42,55,.78); color: #fff; font-size: 14px;
  opacity: 0; transition: opacity .16s ease;
}
.gal-btn:hover .gal-zoom, .gal-btn:focus-visible .gal-zoom { opacity: 1; }
.gal-item figcaption {
  display: flex; gap: 9px; padding: 12px 14px; font-size: 12.5px; line-height: 1.55;
  color: var(--muted); border-top: 1px solid var(--line-soft);
}
.gal-n {
  flex: none; font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px; color: var(--gold); padding-top: 2px; letter-spacing: .02em;
}

/* lightbox */
body.lb-open { overflow: hidden; }
.lightbox { display: none; position: fixed; inset: 0; z-index: 200; }
.lightbox.on { display: block; }
.lb-bd { position: absolute; inset: 0; background: rgba(31,42,55,.94); }
.lb-fig {
  position: absolute; inset: 0; margin: 0; padding: 62px 92px 58px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
}
.lb-img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; display: block;
  border: 1px solid rgba(255,255,255,.25); border-radius: 8px; background: var(--bg-deep);
  box-shadow: 0 22px 70px rgba(0,0,0,.45); transition: opacity .14s ease;
}
.lightbox.loading .lb-img { opacity: .28; }
.lb-cap { max-width: 92ch; text-align: center; color: #f2f5f9; font-size: 14px; line-height: 1.6; padding: 0 8px; }
.lb-cap:empty { display: none; }
.lb-i { color: var(--sun); font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12.5px; margin-right: 11px; }
.lb-hint { position: absolute; left: 0; right: 0; bottom: 16px; margin: 0; text-align: center; color: rgba(255,255,255,.6); font-size: 12px; }
.lb-x, .lb-ar {
  position: absolute; z-index: 2; cursor: pointer;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3); color: #fff;
  display: grid; place-items: center; line-height: 1;
}
.lb-x:hover, .lb-ar:hover { background: var(--sun); border-color: var(--sun); color: #4a3000; }
.lb-x:focus, .lb-ar:focus { outline: 2px solid var(--sun); outline-offset: 2px; }
.lb-x { top: 16px; right: 18px; width: 40px; height: 40px; border-radius: 50%; font-size: 15px; }
.lb-ar { top: 50%; margin-top: -38px; width: 46px; height: 76px; border-radius: 10px; font-size: 30px; padding-bottom: 4px; }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }

/* homepage strip */
.shot-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.shot-mini {
  display: block; overflow: hidden; color: var(--text);
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .16s ease, transform .16s ease;
}
.shot-mini:hover { border-color: var(--gold); text-decoration: none; transform: translateY(-2px); }
.shot-mini img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--bg-deep); }
.shot-mini span { display: block; padding: 10px 13px; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line-soft); }

@media (max-width: 1000px) {
  .shot-strip { grid-template-columns: repeat(2, 1fr); }
  .gal-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}
@media (max-width: 620px) {
  .shot-strip { grid-template-columns: 1fr; }
  .gal-grid { grid-template-columns: 1fr; }
  .lb-fig { padding: 58px 14px 54px; }
  .lb-ar { width: 38px; height: 62px; font-size: 24px; margin-top: -31px; }
  .lb-prev { left: 6px; }
  .lb-next { right: 6px; }
  .lb-x { top: 10px; right: 10px; }
  .lb-hint { display: none; }
}

/* ---------------- roster unit cards (homepage) ---------------- */
.unit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.unit-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--sun);
  border-radius: var(--radius); padding: 20px 20px 16px;
  display: flex; flex-direction: column;
  box-shadow: 0 1px 3px rgba(30,60,90,.05);
}
.unit-card:nth-child(2) { border-top-color: #1e7fd8; }
.unit-card:nth-child(3) { border-top-color: #d84b40; }
.uh { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.uh .ui {
  width: 44px; height: 44px; flex: none; border-radius: 12px;
  background: var(--bg-deep); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.uh b { display: block; font-family: Nunito, sans-serif; font-size: 17px; font-weight: 800; color: var(--text); }
.ucount { display: inline-block; margin-top: 4px; font-size: 12.5px; font-weight: 700; color: var(--gold); background: rgba(255,183,3,.12); border: 1px solid rgba(255,183,3,.35); border-radius: 999px; padding: 2px 10px; }
.unit-facts { margin: 0 0 14px; padding: 0; list-style: none; flex: 1; }
.unit-facts li { position: relative; padding-left: 18px; margin-bottom: 8px; color: var(--text-soft); font-size: 14px; line-height: 1.55; }
.unit-facts li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 8px; height: 8px; border-radius: 50% 50% 50% 2px; background: #1e7fd8; transform: rotate(-45deg); }
.unit-card:nth-child(2) .unit-facts li::before { background: var(--sun); }
.unit-card:nth-child(3) .unit-facts li::before { background: #d84b40; }
.unit-link { font-weight: 700; font-size: 14px; color: var(--gold); text-decoration: none; }
.unit-link:hover { text-decoration: underline; }
@media (max-width: 860px) { .unit-grid { grid-template-columns: 1fr; } }

/* ---------------- full-width feature trailer (homepage) ---------------- */
.trailer-feature {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--bg-deep);
  box-shadow: 0 2px 10px rgba(30,60,90,.08);
  margin-bottom: 18px;
}
.trailer-feature iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
