/* Pack Builder (docs/pack/), on top of the site's style.css. pack.js builds it into #pack-app: the options in rows by
   group, with the pack's receipt beside them (under them on narrow screens). */
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pk-app { display: grid; min-width: 0; }
.pk-app:not(.ready) { min-height: 60vh; }
.pk-app button { font: inherit; color: inherit; }
/* the rows as plain text until pack.js has put the builder in their place (site/build.py, pack_static) */
.pk-static { max-width: 76ch; min-width: 0; line-height: 1.55; }
.pk-static h2 { margin: 1.6em 0 0.3em; }
.pk-static h2:first-child { margin-top: 0; }
.pk-static h3 { margin: 0 0 0.2em; }
.pk-static h4 { margin: 0.8em 0 0.2em; }
.pk-static p { margin: 0 0 0.5em; }
.pk-static-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pk-static-rows > li { padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; }
.pk-static-nums { font-weight: 600; }
.pk-static figure { margin: 0.8em 0; }
.pk-static img { max-width: 100%; height: auto; border-radius: 10px; }
/* the page's heading sits on the page, like the main page's, not in a card */
.pk-hero { padding-block: clamp(4px, 2vw, 24px) clamp(2px, 0.8vw, 10px); }
.pk-hero h1 { margin: 0; }

/* section heads */
.pk-section-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; margin-bottom: 10px; }
.pk-section-head h2 { margin: 0; font-size: clamp(24px, 3vw, 30px); }
.pk-section-head h2::before { height: 0.7em; }
.pk-section-head > p { margin: 0; color: var(--muted); font-size: 15px; }
.pk-kicker { margin: 0 0 10px; font: 600 11.5px/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

.pk-text { margin: 0; font-size: 14px; line-height: 1.45; color: var(--muted); }
.pk-how { margin: 0; color: color-mix(in srgb, var(--fg) 84%, var(--muted)); font-size: 14.5px; line-height: 1.6; }
.pk-included { margin: 0; font-size: 13.5px; color: var(--ok); }
.pk-warn { display: block; margin: 2px 0 0; font-style: normal; font-size: 13px; line-height: 1.45; color: var(--caution); }
.pk-more { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; text-decoration: none; }
.pk-more:hover { text-decoration: underline; }
.pk-more svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* switch: a checkbox drawn as a track. Green is on, here and everywhere an option is on. A locked switch
   (an option another one has built in) is on and dimmed, and its tooltip says why. A press near it counts: its own
   column of the row and most of the gap beside it are part of it (a press there would open the row instead). */
.pk-switch { position: relative; flex: none; display: inline-block; width: 44px; height: 26px; cursor: pointer; }
.pk-switch::before { content: ""; position: absolute; inset: -14px -10px -14px -16px; }
.pk-switch-input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: inherit; }
.pk-switch-track {
  position: absolute; inset: 0; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line);
  transition: background 0.15s, border-color 0.15s;
}
.pk-switch-track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--muted);
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.35); transition: transform 0.15s, background 0.15s;
}
@media (prefers-reduced-motion: no-preference) {   /* the knob stretches while it is held and lands on a spring */
  .pk-switch-track::after { transition: transform 0.4s var(--spring), width 0.15s var(--ease-out), background 0.15s; }
  .pk-switch:not(.locked):active .pk-switch-track::after { width: 23px; }
  .pk-switch:not(.locked):active .pk-switch-input:checked + .pk-switch-track::after { transform: translateX(13px); }
}
.pk-switch-input:checked + .pk-switch-track { background: var(--ok); border-color: var(--ok); }
.pk-switch-input:checked + .pk-switch-track::after { transform: translateX(18px); background: var(--panel); }
.pk-switch.locked { cursor: not-allowed; }
.pk-switch.locked .pk-switch-track { opacity: 0.5; }
.pk-switch-input:focus-visible + .pk-switch-track { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .pk-switch-track, .pk-switch-track::after { transition: none; } }
.pk-tip {
  position: fixed; z-index: 30; max-width: min(280px, calc(100vw - 16px)); padding: 9px 12px; border-radius: 10px; pointer-events: none;
  border: 1px solid var(--line); background: var(--panel-2); box-shadow: var(--shadow), 0 8px 24px -10px rgb(0 0 0 / 0.5);
  font: 400 13.5px/1.45 var(--body); color: var(--fg);
}
.pk-tip::after {
  content: ""; position: absolute; top: 100%; left: var(--arrow, 22px); width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border: solid var(--line); border-width: 0 1px 1px 0; background: inherit; transform: rotate(45deg);
}
.pk-tip.below::after { top: 0; border-width: 1px 0 0 1px; }

/* versions of an option */
.pk-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; }
.pk-choice { position: relative; display: block; cursor: pointer; }
.pk-choice input { position: absolute; z-index: 1; opacity: 0; inset: 0; margin: 0; cursor: inherit; }   /* over the whole card, clip included */
.pk-choice-body {
  display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 10px 12px 11px 34px; border-radius: 11px; border: 1px solid var(--line); background: var(--panel-2);
  font-size: 13.5px; line-height: 1.45; color: var(--muted); transition: border-color 0.15s, background-color 0.15s, opacity 0.15s, transform 0.2s var(--ease-out);
}
.pk-choice-body b { color: var(--fg); font-size: 14px; font-weight: 600; }
/* the dot in the ring is a length of its own (--dot), so it can grow in on a spring */
@property --dot { syntax: "<length>"; inherits: false; initial-value: 0px; }
.pk-choice-body::before {
  --dot: 0px;
  content: ""; position: absolute; left: 12px; top: 13px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--muted);
  background: radial-gradient(circle, var(--ok) 0 var(--dot), transparent calc(var(--dot) + 0.5px));
}
.pk-choice input:checked + .pk-choice-body { border-color: color-mix(in srgb, var(--ok) 70%, var(--line)); background: color-mix(in srgb, var(--ok) 8%, var(--panel-2)); }
.pk-choice input:checked + .pk-choice-body::before { --dot: 3px; border-color: var(--ok); }
.pk-choice input:focus-visible + .pk-choice-body { outline: 2px solid var(--accent); outline-offset: 2px; }
.pk-choice:hover .pk-choice-body { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); }
/* an option that is off shows its versions dimmed, and still takes a press: picking one turns the option on with it */
.pk-row:not(.on, .base) > .pk-row-choices .pk-choice-body { opacity: 0.6; }
.pk-row:not(.on, .base) > .pk-row-choices .pk-choice:hover .pk-choice-body, .pk-row:not(.on, .base) > .pk-row-choices .pk-choice input:focus-visible + .pk-choice-body { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .pk-choice-body::before { transition: --dot 0.3s var(--spring), border-color 0.15s; }
  .pk-choice:active input:not(:checked) + .pk-choice-body { transform: scale(0.985); }
}
.pk-choice-nums { display: grid; margin-top: 4px; font: 500 12px/1.4 var(--mono); }   /* one number a line, the same in every card */
.pk-choice-nums > span { white-space: nowrap; }
.pk-choice-nums b { font: 600 12.5px/1.4 var(--mono); color: var(--ok); }
.pk-choice-nums b.neg { color: var(--caution); }
.pk-choice-nums small { font: 400 12px/1.4 var(--body); }
/* a version's clip under its name, as far in from the card's left as from its right (the radio sits left of the name) */
.pk-choice-body.has-clip { padding-bottom: 12px; }
.pk-choice-clip { display: block; margin: 8px 0 0 -22px; }
.pk-choice-clip video { display: block; width: 100%; height: auto; border-radius: 8px; background: #0c0e12; }
.pk-choice-clip + .pk-choice-nums { margin-top: 8px; }
/* HUD++'s damage number cards end where their content does: the clips line up, Hidden's numbers hang below */
.pk-row.base .pk-choices { align-items: start; }
/* gameinfo.gi's optional settings (cloth and client physics): option rows nested in its row, smaller, in an inset panel
   lined up with HUD++'s damage number cards */
.pk-choices-label { margin: 0 0 8px; font: 600 11px/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.pk-sub { padding: 0 16px 14px 74px; }
.pk-sub-rows { border-radius: 11px; background: var(--panel-2); box-shadow: none; }
.pk-sub-rows .pk-row-main { grid-template-columns: 36px minmax(0, 1fr) auto auto; gap: 12px; padding: 10px 12px; }
.pk-sub-rows .pk-row h3 { font-size: 14.5px; }
.pk-sub-rows .pk-text { font-size: 13.5px; }
.pk-sub-rows .pk-warn { font-size: 12.5px; }
.pk-sub-rows .pk-how { font-size: 14px; }
.pk-sub-rows .pk-num b { font-size: 13.5px; }
.pk-sub-rows .pk-num small { font-size: 10px; }
.pk-sub-rows .pk-switch { width: 36px; height: 22px; }
.pk-sub-rows .pk-switch-track::after { width: 14px; height: 14px; }
.pk-sub-rows .pk-switch-input:checked + .pk-switch-track::after { transform: translateX(14px); }
.pk-sub-rows .pk-switch::before { inset: -10px -8px -10px -12px; }
@media (prefers-reduced-motion: no-preference) {
  .pk-sub-rows .pk-switch:not(.locked):active .pk-switch-track::after { width: 18px; }
  .pk-sub-rows .pk-switch:not(.locked):active .pk-switch-input:checked + .pk-switch-track::after { transform: translateX(10px); }
}
.pk-sub-rows .pk-own { width: 30px; height: 30px; }
.pk-sub-rows .pk-row-tools { min-width: 30px; }   /* client physics has no download: its numbers line up with cloth's */
.pk-sub-rows .pk-row.on { background: color-mix(in srgb, var(--ok) 6%, var(--panel-2)); }
.pk-sub-rows .pk-row-more-in { padding: 2px 12px 14px 60px; }

/* the field of view (pack.js fovPanel): the view at the value picked beside its slider, in an inset panel like the
   physics settings'. The picture is the frame at the widest value scaled up by --s about its middle; the dashed
   outline (--w of the view) is what stock shows. Side by side where the panel has room, else stacked. */
.pk-fov { container-type: inline-size; }
.pk-fov-box { display: grid; grid-template-columns: minmax(0, 3fr) minmax(220px, 2fr); gap: 14px 18px; align-items: center; padding: 12px; border-radius: 11px; background: var(--panel-2); }
@container (max-width: 540px) { .pk-fov-box { grid-template-columns: minmax(0, 1fr); } }
.pk-fov-view { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 8px; background: #0c0e12; isolation: isolate; }
.pk-fov-view img { position: absolute; inset: 0; width: 100%; height: 100%; transform: scale(var(--s, 1)); }
.pk-fov-stock {
  position: absolute; left: 50%; top: 50%; width: var(--w, 100%); height: var(--w, 100%); translate: -50% -50%;
  border: 1.5px dashed rgb(255 255 255 / 0.9); border-radius: 3px; filter: drop-shadow(0 0 1.5px rgb(0 0 0 / 0.9));
}
.pk-fov-stock span {
  position: absolute; left: 5px; top: 5px; padding: 2px 6px; border-radius: 4px; background: rgb(12 14 18 / 0.75);
  font: 600 10px/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: #e8ebf0;
}
.pk-fov-view.stock .pk-fov-stock { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .pk-fov-view img { transition: transform 0.35s var(--ease-out); }
  .pk-fov-stock { transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out), opacity 0.2s; }
}
.pk-fov-side { display: grid; gap: 10px; min-width: 0; }
.pk-fov-side > p { margin: 0; }
.pk-fov-read { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.pk-fov-read b { font: 700 28px/1 var(--mono); letter-spacing: -0.01em; color: var(--fg); font-variant-numeric: tabular-nums; }
.pk-fov-delta { font: 600 13px/1.2 var(--mono); color: var(--ok); }
.pk-fov-delta.zero { color: var(--muted); }
.pk-fov-read code { flex-basis: 100%; padding: 0; border: 0; background: none; font: 500 12px/1.4 var(--mono); color: var(--muted); }
/* the slider: a track with a dot at every stop, green up to the thumb (--p: the thumb's middle), and the names of three
   stops under it, each placed under its dot */
.pk-fov-slider { position: relative; padding-bottom: 22px; }
.pk-fov-range {
  -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 22px; margin: 0; background: none; cursor: pointer;
  --fill: linear-gradient(to right, var(--ok) var(--p, 0%), var(--line) 0);
}
.pk-fov-range:focus-visible { outline: none; }
.pk-fov-range::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: var(--fill); }
.pk-fov-range::-moz-range-track { height: 6px; border-radius: 3px; background: var(--fill); }
.pk-fov-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; box-sizing: border-box; width: 20px; height: 20px; margin-top: -7px; border-radius: 50%;
  border: 2px solid var(--ok); background: var(--panel); box-shadow: 0 1px 3px rgb(0 0 0 / 0.35); transition: transform 0.15s var(--ease-out);
}
.pk-fov-range::-moz-range-thumb {
  box-sizing: border-box; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--ok); background: var(--panel);
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.35); transition: transform 0.15s var(--ease-out);
}
.pk-fov-range:active::-webkit-slider-thumb { transform: scale(1.12); }
.pk-fov-range:active::-moz-range-thumb { transform: scale(1.12); }
.pk-fov-range:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--accent); outline-offset: 2px; }
.pk-fov-range:focus-visible::-moz-range-thumb { outline: 2px solid var(--accent); outline-offset: 2px; }
.pk-fov-dots { position: absolute; left: 0; right: 0; top: 11px; height: 0; pointer-events: none; }
.pk-fov-dots span { position: absolute; top: -2px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: color-mix(in srgb, var(--muted) 70%, transparent); }
.pk-fov-dots span.in { background: color-mix(in srgb, var(--panel) 75%, transparent); }
.pk-fov-dots span.ours { background: var(--accent); }
.pk-fov-dots span.at { top: -3px; width: 6px; height: 6px; margin-left: -3px; background: var(--ok); }   /* in the thumb, like a picked version's dot */
.pk-fov .pk-fov-mark {
  position: absolute; top: 26px; translate: -50% 0; padding: 0 2px; border: 0; border-radius: 4px; background: none; cursor: pointer;
  font: 500 11px/1.4 var(--mono); letter-spacing: 0.04em; color: var(--muted); white-space: nowrap; transition: color 0.15s;
}
.pk-fov .pk-fov-mark.start { translate: -10px 0; }
.pk-fov .pk-fov-mark.end { translate: calc(-100% + 10px) 0; }
.pk-fov .pk-fov-mark.ours { color: var(--accent); }
.pk-fov .pk-fov-mark:hover { color: var(--fg); }
.pk-fov .pk-fov-mark:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
@media (prefers-reduced-motion: reduce) { .pk-fov-range::-webkit-slider-thumb, .pk-fov-range::-moz-range-thumb { transition: none; } }

/* before/after: the main page's slider */
.pk-ba { margin: 0; }
.pk-ba .ba-view { aspect-ratio: 16 / 9; }
.sounds { margin: 0; }

/* the options: rows in a panel per group */
.pk-two { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.pk-two-main { display: grid; gap: 28px; min-width: 0; }
.pk-rows { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); overflow: hidden; box-shadow: var(--shadow); }
.pk-row { margin: 0; border-top: 1px solid var(--line); transition: background-color 0.2s, box-shadow 0.2s; }
/* a band of its green crosses an option as it is turned on (pack.js plays it on this layer) */
.pk-row:not(.base) { position: relative; overflow: hidden; }
.pk-row:not(.base)::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--ok) 16%, transparent) 50%, transparent 70%);
}
.pk-row:first-child { border-top: 0; }
.pk-row.on { background: color-mix(in srgb, var(--ok) 5%, var(--panel)); box-shadow: inset 3px 0 0 var(--ok); }
.pk-row.base { background: color-mix(in srgb, var(--ok) 4%, var(--panel)); box-shadow: inset 3px 0 0 var(--ok); }
.pk-row-main { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 14px 16px; }
.pk-row h3 { margin: 0 0 2px; font: 600 16px/1.3 var(--body); }
.pk-row-nums { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 14px; text-align: right; }
.pk-num { display: grid; justify-items: end; }
.pk-num b { font: 600 15px/1.2 var(--mono); color: var(--ok); }
.pk-num small { font: 500 10.5px/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.pk-num.measured b { font-size: 14px; color: var(--fg); white-space: nowrap; }
.pk-num b.neg { color: var(--caution); }
.pk-num b.zero, .pk-choice-nums b.zero { color: var(--muted); }
.pk-num-vs { flex-basis: 100%; font-size: 12.5px; line-height: 1.3; color: var(--muted); }
/* a row with details opens from anywhere on it (pack.js openable): the pointer, a light wash and the title in the accent
   say so on hover; its title is the button keyboards and screen readers use */
.pk-row.can-open > .pk-row-main { cursor: pointer; transition: background 0.2s ease; }
.pk-row-title { padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; transition: color 0.2s ease; }
.pk-row-title:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
@media (hover: hover) {
  .pk-row.can-open > .pk-row-main:hover { background: color-mix(in srgb, var(--fg) 3.5%, transparent); }
  .pk-row.can-open > .pk-row-main:hover .pk-row-title { color: var(--accent); }
}
.pk-row.can-open > .pk-row-main:active { background: color-mix(in srgb, var(--fg) 5%, transparent); }
.pk-row.open > .pk-row-main { background: color-mix(in srgb, var(--fg) 2.5%, transparent); }
.pk-row.open .pk-row-title { color: var(--accent); }
.pk-by { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); }
/* when a row was last updated, after its title: a link to its entry on the Changelog page (a green tag: the newest
   release) */
.pk-upd { display: inline-block; margin-left: 10px; font: 500 11px/1.3 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; color: var(--muted); text-decoration: none; vertical-align: 1px; }
.pk-upd.new { padding: 2px 8px 2px 7px; border-radius: 999px; background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); font-weight: 600; }
.pk-upd.new::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: currentColor; vertical-align: 1px; }
.pk-upd:hover { text-decoration: underline; text-underline-offset: 3px; }
.pk-upd.new:hover { text-decoration: none; background: color-mix(in srgb, var(--ok) 24%, transparent); }
/* the page keeps the opened row in place itself (pack.js steady); the browser's own scroll anchoring would fight it */
html { overflow-anchor: none; }
/* a row's own download (its paks, or gameinfo.gi): a small gold button, like the pack's */
.pk-row-tools { display: flex; align-items: center; gap: 2px; }
.pk-own { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--accent) 38%, var(--line)); background: color-mix(in srgb, var(--accent) 9%, transparent); cursor: pointer; color: var(--accent); transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease; }
.pk-own:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 18%, transparent); transform: translateY(-1px); }
.pk-own:active { transform: scale(0.92); }
.pk-own:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pk-own svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pk-own.running { color: var(--ok); cursor: progress; }
.pk-own.running svg { animation: pk-own 0.9s ease-in-out infinite; }
.pk-own.bad { color: var(--caution); }
@keyframes pk-own { 50% { transform: translateY(2px); opacity: 0.55; } }
@media (prefers-reduced-motion: reduce) { .pk-own.running svg { animation: none; } }
.pk-lock-icon { display: grid; place-items: center; width: 26px; height: 26px; margin-left: 9px; border-radius: 50%; background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.pk-lock-icon svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pk-row-choices { padding: 0 16px 14px 74px; }
.pk-row-more-in { display: grid; gap: 14px; padding: 4px 16px 18px 76px; max-width: 760px; }
.pk-row-foot { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; margin: 0; font-size: 13.5px; color: var(--muted); }
.pk-row-foot:empty { display: none; }
.pk-points { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; color: color-mix(in srgb, var(--fg) 84%, var(--muted)); font-size: 14.5px; line-height: 1.5; }
.pk-points li { margin: 0; }
/* an option's link to another page of the site (link and link_text in pack.toml), under its text */
.pk-link { margin: 3px 0 0; font-size: 13px; line-height: 1.45; }
.pk-link a { font-weight: 600; text-decoration: none; }
.pk-link a:hover { text-decoration: underline; }
/* the gameinfo.gi lines an option sets (pack.js cvars()) */
.pk-cvars { display: grid; gap: 6px; }
.pk-cvars-label { margin: 0; font: 600 11px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pk-cvars ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.pk-cvars li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 0; font-size: 13px; color: var(--muted); }
.pk-cvars code { font: 500 13px/1.5 var(--mono); overflow-wrap: anywhere; }
.pk-shots { margin: 0; }
.pk-diagram { margin: 0; padding: 12px 14px 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel-2); }
/* the sound cap's scene (pack.js soundStage): one sound going round you, seen from above, stock and capped side by
   side where there is room. The scenes are drawn dark in both themes, like the game pictures. */
.pk-sound { display: grid; gap: 12px; padding: 14px; }
.pk-sound > *, .pk-sound-scene > * { margin: 0; }
.pk-sound-scenes { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px 12px; }
.pk-sound-scene { display: grid; gap: 7px; min-width: 0; }
.pk-sound-head { display: flex; align-items: baseline; gap: 8px; }
.pk-sound-head b { font: 600 13.5px/1.2 var(--body); color: var(--fg); }
.pk-sound-head span { font: 500 11.5px/1.2 var(--mono); color: var(--muted); }
.pk-sound-view { display: block; width: 100%; height: auto; aspect-ratio: 280 / 176; border-radius: 10px; border: 1px solid var(--line); background: #0c0e12; }
.pk-sound-says { font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.pk-sound-says b { font-weight: 600; color: var(--fg); }
.pk-sound-scene.cap .pk-sound-says b { color: var(--ok); }
.pk-sound-key { display: grid; gap: 3px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.4; color: var(--muted); }
.pk-sound-key span { display: flex; align-items: center; gap: 9px; }
.pk-sound-key span::before { content: ""; flex: none; box-sizing: border-box; width: 9px; height: 9px; border-radius: 50%; }
.pk-sound-key .tick::before { border: 1.5px solid var(--accent); }
.pk-sound-key .upd::before { width: 6px; height: 6px; margin: 0 12px 0 1.5px; background: var(--muted); box-shadow: 10px 0 0 var(--ok); }   /* stock's and capped's */
.pk-sound figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; line-height: 1.5; }
.pk-sound figcaption b { font-size: 14px; font-weight: 600; color: var(--fg); }
.pk-sound figcaption small { font-size: 12.5px; color: var(--muted); }
.pk-pics { display: flex; flex-wrap: wrap; gap: 10px; }
.pk-pics figure { flex: 1 1 200px; margin: 0; max-width: 340px; }
.pk-pics img { display: block; width: auto; max-width: 100%; height: auto; border-radius: 10px; background: #0c0e12; }
.pk-pics figcaption { margin-top: 6px; font-size: 13px; color: var(--muted); }
.pk-shots .shot figcaption { padding: 8px 12px 10px; font-size: 13px; }

/* the receipt: what's in the pack, its estimated gain, its size and the download */
.pk-receipt { position: sticky; top: 84px; }
/* pack.js glides the card's lines to their new places when the pack changes: they are placed against the card, its
   rows keep their size while its height follows, and a line that left (.pk-gone) fades where it was */
.pk-receipt-card { position: relative; display: grid; align-content: start; gap: 12px; padding: 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow); }
.pk-gone { position: absolute; pointer-events: none; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 6px 0; font-size: 13.5px; }
.pk-receipt-card > * { margin: 0; }
.pk-receipt-card .pk-kicker:first-child { font: 800 24px/1 var(--display); letter-spacing: 0.02em; color: var(--fg); }
.pk-receipt-list .pk-files { font-size: 13.5px; }
/* the estimated gain of the pack as picked, over the game without mods */
.pk-est { display: grid; gap: 4px; padding: 12px 14px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--ok) 35%, var(--line)); background: color-mix(in srgb, var(--ok) 7%, var(--panel-2)); }
.pk-est > p { margin: 0; }
.pk-est-head { font: 600 11.5px/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.pk-est-nums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 2px 0; }
.pk-est-nums span { display: grid; gap: 3px; }
.pk-est-nums b { font: 700 24px/1.1 var(--mono); color: var(--ok); letter-spacing: -0.01em; }
.pk-est-nums small { font: 500 11px/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.pk-est-vs { font-size: 13px; color: var(--muted); }
.pk-receipt-total { display: grid; grid-template-columns: auto auto; justify-content: space-between; gap: 2px 12px; padding: 12px 0 2px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.pk-receipt-total b { font: 600 14px/1.4 var(--mono); color: var(--fg); text-align: right; }
.pk-receipt-install summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--muted); }
.pk-receipt-install[open] summary { margin-bottom: 10px; }
.pk-receipt-install .pk-install { font-size: 13.5px; }
.pk-files { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: 14px; }
.pk-files li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: baseline; margin: 0; padding: 6px 0; border-bottom: 1px dashed color-mix(in srgb, var(--line) 80%, transparent); }
.pk-files li:last-child { border-bottom: 0; }
.pk-files-size { font: 500 12.5px/1 var(--mono); color: var(--muted); }
.pk-install { margin: 0; padding-left: 1.3em; display: grid; align-content: start; gap: 8px; font-size: 14.5px; color: color-mix(in srgb, var(--fg) 88%, var(--muted)); }
.pk-install li { margin: 0; padding-left: 4px; }
.pk-install b { font-weight: 600; color: var(--fg); }
.pk-app .pk-dl { position: relative; overflow: hidden; width: 100%; justify-content: center; border: 0; cursor: pointer; color: var(--accent-ink); }
.pk-dl::before { content: none; }
.pk-dl > * { position: relative; z-index: 1; }
.pk-dl .pk-progress { position: absolute; z-index: 0; left: 0; top: 0; bottom: 0; width: 0; background: color-mix(in srgb, var(--accent-ink) 22%, transparent); transition: width 0.2s; }
.pk-dl.running { cursor: progress; }
.pk-dl .btn-meta:empty { display: none; }
.pk-copy {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; width: 100%; padding: 10px 14px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--line); background: transparent; font-size: 14px; font-weight: 600; white-space: nowrap;
}
.pk-copy:hover { border-color: var(--accent); color: var(--accent); }
.pk-copy { transition: border-color 0.15s, color 0.15s, transform 0.2s var(--ease-out); }
.pk-copy:active:not([disabled]) { transform: scale(0.98); }
.pk-copy svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.pk-copy[disabled] { opacity: 0.5; cursor: default; }
.pk-getapp { display: grid; gap: 8px; }
.pk-getapp .pk-copy { box-sizing: border-box; border-color: transparent; background: var(--blue); color: var(--accent-ink); text-decoration: none; transition: filter 0.15s, transform 0.2s var(--ease-out); }
.pk-getapp .pk-copy:hover { border-color: transparent; color: var(--accent-ink); filter: brightness(1.08); }
.pk-getapp .pk-copy svg { stroke-width: 1.6; stroke-linejoin: round; }
.pk-getapp p { margin: 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
.pk-status { margin: 0; font-size: 14px; color: var(--ok); }
.pk-status.bad { color: var(--caution); }

@media (max-width: 1020px) {
  .pk-two { grid-template-columns: minmax(0, 1fr); }
  .pk-receipt { position: static; }
  .pk-row-main { grid-template-columns: 44px minmax(0, 1fr) minmax(0, 170px) 34px; }
}
@media (max-width: 760px) {
  .pk-row-main { grid-template-columns: 44px minmax(0, 1fr) 34px; padding: 12px 12px; gap: 10px; }
  .pk-row-nums { grid-column: 2 / 3; justify-content: flex-start; text-align: left; }
  .pk-num { justify-items: start; }
  .pk-row-tools { grid-row: 1; grid-column: 3; flex-direction: column; gap: 4px; }
  .pk-row-choices, .pk-row-more-in { padding-left: 12px; padding-right: 12px; }
  .pk-sub { padding: 0 12px 12px; }
  .pk-sub-rows .pk-row-main { grid-template-columns: 36px minmax(0, 1fr) 30px; padding: 10px; gap: 10px; }
  .pk-sub-rows .pk-row-more-in { padding: 2px 10px 12px; }
}

