/* The gun guide (zedendayz.com/guns, 2026-11-06): the landing page's tokens, blocks and buttons (style.css), neutral,
   the same on every server (Cole). Colour carries meaning only: each stat family has its own hue, firepower, ballistics
   and handling. Gun pictures sit on pale plates: the wiki's dark guns would vanish on the page's black. */

.guns {
  --track: #262a2f; --raise: #23272b;
  --fire: #ff7058; --ball: #5cc4ff; --hand: #b897ff;
}
.gg { padding-top: calc(110px + env(safe-area-inset-top, 0px)); padding-bottom: 48px; display: flex; flex-direction: column; gap: 22px; }
.gg .hero__kicker { margin-bottom: -18px; }
.gg__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(44px, 8vw, 72px); line-height: .95;
  text-transform: uppercase; color: var(--paper); margin: 0; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.gg__fams { display: inline-flex; gap: 6px; }
.gg__fams em, .gg-fam em, .f-dot { width: 12px; height: 12px; display: block; }
.f-fire { background: var(--fire); } .f-ball { background: var(--ball); } .f-hand { background: var(--hand); }
.gg__lead { margin: 0; max-width: 62ch; }
.gg__loading { color: var(--grey); margin: 0; }
.gg__small { font-size: 14px; color: var(--grey); max-width: 90ch; margin: 8px 0 0; }
.gg__small a { color: var(--paper-soft); }
.gg button, .gg select, .gg input { font: inherit; color: inherit; }
.num { font-family: var(--font-display); font-variant-numeric: tabular-nums; }
.muted { color: var(--grey); }

.gg__tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.gg__tab { min-height: 46px; padding: 0 20px; border: 2px solid var(--rule-strong); background: transparent; color: var(--paper);
  font-family: var(--font-display) !important; font-weight: 800; font-size: 20px !important; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.gg__tab:hover { border-color: var(--paper); }
.gg__tab[aria-pressed="true"] { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.gg__panel { background: var(--ink-3); border: 1px solid var(--rule); }
.plate { background: var(--paper); display: flex; align-items: center; justify-content: center; }
.plate img { max-width: 100%; max-height: 100%; object-fit: contain; }
.track { height: 14px; background: var(--track); overflow: hidden; display: flex; }
.fill { height: 100%; transition: width .35s ease; }
@media (prefers-reduced-motion: reduce) { .fill { transition: none; } }
.gg-fam { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 18px 0 4px; }
.gg-fam.c-fire { color: var(--fire); } .gg-fam.c-ball { color: var(--ball); } .gg-fam.c-hand { color: var(--hand); }
.gg h2 { font-family: var(--font-display); font-weight: 800; letter-spacing: .04em; margin: 16px 0 4px; font-size: 26px; text-transform: uppercase; color: var(--paper); }
.note { font-size: 14px; color: var(--grey); margin: 12px 0 4px; }

/* look up: the list beside the card */
.gg__lookup { display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start; }
.gg__lookup[hidden], .gg__compare[hidden] { display: none; }
.gg__list { flex: 1 1 260px; max-width: 300px; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--ink-2);
  border: 1px solid var(--rule); position: sticky; top: calc(84px + env(safe-area-inset-top, 0px)); max-height: calc(100vh - 100px); overflow: auto; }
.gg__list label { font-size: 14px; font-weight: 700; color: var(--grey); display: flex; flex-direction: column; gap: 6px; }
.gg__list input { background: var(--ink); border: 1px solid var(--rule-strong); padding: 10px 12px; min-height: 44px; font-size: 16px; }
.grp { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--grey); padding-top: 8px; }
.gun-btn { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 46px; padding: 5px 8px; border: 1px solid transparent;
  background: transparent; color: var(--paper-soft); text-align: left; font-weight: 700; font-size: 15px; cursor: pointer; }
.gun-btn:hover { background: var(--raise); }
.gun-btn[aria-current="true"] { background: var(--ink-3); border-color: var(--rule-strong); color: var(--paper); }
.gun-btn .plate { width: 62px; height: 30px; flex: none; padding: 2px; }
.gg__card { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.gg-hero { display: flex; flex-wrap: wrap; gap: 22px; }
.gg-hero .plate { flex: 1 1 420px; min-height: 280px; padding: 28px; position: relative; }
.gg-hero .plate img { max-height: 240px; }
.tag { position: absolute; left: 0; top: 0; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; background: var(--ink); color: var(--paper); padding: 6px 12px; }
.who { flex: 1 1 320px; display: flex; flex-direction: column; gap: 16px; justify-content: space-between; min-width: 0; }
.who h1 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(48px, 7vw, 76px); line-height: .95; color: var(--paper); text-wrap: balance; }
.who p { margin: 8px 0 0; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tile { padding: 12px 16px; }
.tile .k { font-size: 14px; color: var(--grey); }
.tile .v { font-family: var(--font-display); font-weight: 800; font-size: 44px; line-height: 1.05; }
.tile .u { font-size: 12px; color: var(--grey); }
.cta { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.ranks, .gg__crows, .gg__kit, .gg-facts { padding: 6px 22px 16px; }
.rrow { display: grid; grid-template-columns: 180px minmax(0, 1fr) 92px 100px; gap: 14px; align-items: center; padding: 11px 0; border-top: 1px solid var(--rule); }
.rrow .l b { display: block; font-size: 15px; color: var(--paper); } .rrow .l small { font-size: 12px; color: var(--grey); }
.rrow .val { font-weight: 800; font-size: 22px; text-align: right; color: var(--paper); }
.rrow .rk { text-align: right; font-size: 14px; font-weight: 800; color: var(--grey); }
.rrow .rk.best { color: var(--paper); }
dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 5px 18px; font-size: 15px; }
dt { color: var(--grey); } dd { margin: 0; color: var(--paper-soft); }
.kitgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px 24px; margin-top: 8px; }
.kitcat h3 { margin: 0 0 8px; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--paper-soft);
  display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--rule); padding-bottom: 6px; }
.kitcat h3 span { color: var(--grey); }
.parts { display: flex; flex-direction: column; gap: 6px; }
.part { display: flex; align-items: center; gap: 10px; font-size: 14px; min-height: 36px; color: var(--paper-soft); }
.part .plate { width: 54px; height: 34px; flex: none; padding: 3px; }
.part .plate.none { background: var(--track); color: var(--grey); }
.part small { color: var(--grey); font-size: 12px; margin-left: auto; white-space: nowrap; }
.kitcat .empty { font-size: 14px; color: var(--grey); margin: 0; }

/* compare: two guns facing, the bars meeting at the stat's name */
.gg__compare { display: flex; flex-direction: column; gap: 22px; }
.gg__pick { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 14px; align-items: end; }
.gg__pick label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--grey); }
.gg__pick label:last-child { text-align: right; }
.gg__pick select { appearance: none; -webkit-appearance: none; background: var(--ink-3); border: 2px solid var(--rule-strong); padding: 11px 14px;
  min-height: 48px; font-weight: 700; font-size: 17px; width: 100%; color: var(--paper); }
/* gun two's box reads left to right like gun one's: a right-aligned select opened its list off the left of the screen (Cole, 2026-11-06) */
.gg__swap { width: 48px; height: 48px; border: 2px solid var(--rule-strong); background: var(--ink-3); cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--paper); }
.gg__vs { display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr); gap: 14px; }
.side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.side.b { text-align: right; }
.side .plate { height: 200px; padding: 18px; }
.side.b .plate img { transform: scaleX(-1); }
.side h2 { margin: 0; font-size: clamp(34px, 5vw, 52px); line-height: 1; letter-spacing: .02em; text-transform: none; }
.side p { margin: 0; font-size: 15px; }
.vsmark { display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 30px; color: var(--grey); }
.crow { display: grid; grid-template-columns: 100px minmax(0, 1fr) 160px minmax(0, 1fr) 100px; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.crow .va, .crow .vb { font-size: 24px; }
.crow .vb { text-align: right; }
.crow .mid { text-align: center; }
.crow .mid b { display: block; font-size: 15px; color: var(--paper); } .crow .mid small { display: block; font-size: 12px; color: var(--grey); }
.crow .rule { display: block; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.rule.c-fire { color: var(--fire); } .rule.c-ball { color: var(--ball); } .rule.c-hand { color: var(--hand); }
.crow .va .num, .crow .vb .num { display: block; }
.crow .wins { display: block; font-family: var(--font-body); font-size: 13px; font-weight: 700; color: var(--grey); margin-top: 2px; }
.crow .ta { justify-content: flex-end; }
.gg__crows .gg-fam { justify-content: center; }
.lit { color: var(--paper); font-weight: 800; } .dim { color: #6f757c; font-weight: 600; } .even { color: var(--paper-soft); font-weight: 600; }
.gg__score { display: flex; flex-wrap: wrap; gap: 12px; }
.gg__score > div { flex: 1 1 200px; padding: 14px 18px; }
.gg__score .num { font-weight: 800; font-size: 36px; color: var(--paper); }
.gg__score .num.muted { color: var(--grey); }
.ktable { width: 100%; border-collapse: collapse; font-size: 15px; }
.ktable th, .ktable td { padding: 10px 6px; border-bottom: 1px solid var(--rule); }
.ktable th { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--grey); font-weight: 800; text-align: center; }
.ktable td { text-align: center; font-family: var(--font-display); font-size: 22px; font-variant-numeric: tabular-nums; }
.ktable td:nth-child(2) { font-family: var(--font-body); font-size: 15px; font-weight: 700; color: var(--paper-soft); }
.ktable th:first-child, .ktable td:first-child { text-align: left; } .ktable th:last-child, .ktable td:last-child { text-align: right; }

@media (max-width: 720px) {
  .gg__list { max-width: none; position: static; max-height: 300px; }
  .rrow { grid-template-columns: minmax(0, 1fr) auto auto; row-gap: 6px; }
  .rrow .track { grid-column: 1 / -1; order: 3; }
  .gg__vs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vsmark { display: none; }
  .side .plate { height: 110px; padding: 8px; }
  .side p:last-child { font-size: 13px; }
  .crow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 4px; }
  .crow .mid { order: 0; grid-column: 1 / -1; }
  .crow .va, .crow .vb { order: 1; }
  .crow .ta, .crow .tb { order: 2; }
  .crow .mid small { display: none; }
  .gg__pick { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .gg__swap { display: none; }
}
