/* Carnivores Community Mods: a hunter's field terminal. One stylesheet, no web fonts, no frameworks.
   Dense on purpose: the search is in the header, the list starts at the top, the filters sit beside it (chip rows on
   a phone). The game's own language: hexagons like its hunt menu, species-card data in small monospace, scope corners
   that lock onto the card you aim at. Dark by default, light when the device asks; no motion for those who ask. */

/* ------------------------------------------------------------------ tokens */

:root {
  --bg: #0b0d0a;
  --bg-2: #0e110c;
  --panel: #12150f;
  --panel-2: #181c14;
  --panel-3: #20251b;
  --line: rgba(232, 236, 220, .075);
  --line-2: rgba(232, 236, 220, .13);
  --line-3: rgba(232, 236, 220, .22);
  --text: #eceee4;
  --muted: #a4a898;
  --faint: #6f7466;
  --accent: #ffb547;
  --accent-2: #ff8a3d;
  --accent-ink: #1a1103;
  --accent-soft: rgba(255, 181, 71, .1);
  --accent-line: rgba(255, 181, 71, .4);
  --leaf: #8fd17f;
  --ice: #8fcbf5;
  --grid: rgba(232, 236, 220, .028);
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, .7);
  --r: 6px;
  --r-l: 10px;
  --head: 60px;
  --side: 248px;
  --wrap: 1320px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI Variable Text", "Segoe UI", Roboto, "Noto Sans", Ubuntu,
          sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, "Cascadia Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f3ee;
    --bg-2: #eceae3;
    --panel: #ffffff;
    --panel-2: #f6f5f0;
    --panel-3: #ebe9e1;
    --line: rgba(30, 32, 22, .09);
    --line-2: rgba(30, 32, 22, .15);
    --line-3: rgba(30, 32, 22, .26);
    --text: #191b14;
    --muted: #595d50;
    --faint: #8b8f81;
    --accent: #d2680a;
    --accent-2: #b8480a;
    --accent-ink: #ffffff;
    --accent-soft: rgba(210, 104, 10, .09);
    --accent-line: rgba(210, 104, 10, .45);
    --leaf: #3f8a31;
    --ice: #2a78b2;
    --grid: rgba(30, 32, 22, .04);
    --shadow: 0 18px 40px -20px rgba(60, 45, 10, .25);
    color-scheme: light;
  }
}

/* ------------------------------------------------------------------ base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head) + 64px); }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column; color: var(--text);
  font: 15.5px/1.55 var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  background:
    radial-gradient(700px 300px at 0 0, var(--accent-soft), transparent 70%),
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--bg);
  background-attachment: fixed;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--accent-ink); }
code { font: .84em/1.4 var(--mono); background: var(--panel-2); border: 1px solid var(--line); padding: .08em .4em;
       border-radius: 4px; overflow-wrap: anywhere; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.02em; font-weight: 760; }
p { margin: 0 0 .8em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 14px; }
@media (min-width: 720px) { .wrap { padding: 0 24px; } }
.i { width: 17px; height: 17px; flex: none; }
.muted { color: var(--muted); }
.skip { position: absolute; left: 10px; top: -60px; z-index: 50; padding: 9px 13px; border-radius: var(--r);
        background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.skip:focus { top: 10px; }
.label { font: 700 .7rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint);
         margin: 0 0 10px; }
.hide-s { display: none; }
@media (min-width: 560px) { .hide-s { display: inline; } }

/* a hexagon, like the cells of the game's hunt menu */
.hexlogo { display: grid; place-items: center; width: 34px; height: 38px; flex: none;
           clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
           background: linear-gradient(160deg, var(--accent), var(--accent-2)); }
.hexlogo img { width: 20px; height: 20px; filter: brightness(0) saturate(0) opacity(.85); }
@media (prefers-color-scheme: light) { .hexlogo img { filter: brightness(0) invert(1); } }
.hexlogo.small { width: 18px; height: 20px; display: inline-grid; vertical-align: -5px; margin-right: 8px; }
.hexlogo.small img { width: 12px; height: 12px; }

/* ------------------------------------------------------------------ header */

.top { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--line);
       background: color-mix(in srgb, var(--bg) 82%, transparent);
       -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); }
.top-in { height: var(--head); display: flex; align-items: center; gap: 14px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); flex: none; }
.brand:hover { text-decoration: none; }
.brand-t { display: flex; flex-direction: column; font-weight: 780; font-size: .98rem; line-height: 1.05;
           letter-spacing: -.015em; white-space: nowrap; }
.brand-t small { font: 700 .62rem/1.2 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
@media (max-width: 640px) { .brand-t { display: none; } }
.hsearch { position: relative; flex: 1; max-width: 560px; margin: 0 auto; }
.hsearch .i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--faint);
              pointer-events: none; }
.hsearch input { width: 100%; height: 40px; padding: 0 44px 0 40px; border-radius: var(--r); font: inherit;
                 border: 1px solid var(--line-2); background: var(--panel); color: var(--text);
                 transition: border-color .15s ease, box-shadow .15s ease; }
.hsearch input::placeholder { color: var(--faint); }
.hsearch input:focus { outline: none; border-color: var(--accent-line); box-shadow: 0 0 0 4px var(--accent-soft); }
.hsearch kbd { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); font: 600 .72rem/1 var(--mono);
               color: var(--faint); border: 1px solid var(--line-2); border-radius: 4px; padding: 4px 7px; }
@media (hover: none) { .hsearch kbd { display: none; } }
.nav { display: flex; align-items: center; gap: 6px; flex: none; }
.nav > a:not(.btn) { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: var(--r);
                     color: var(--muted); font-weight: 600; font-size: .92rem; }
.nav > a:not(.btn):hover { color: var(--text); background: var(--line); text-decoration: none; }
@media (max-width: 860px) { .nav > a:not(.btn) span, .nav .btn span { display: none; } .nav .btn { padding: 0 11px; } }

/* ------------------------------------------------------------------ buttons */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px;
       border-radius: var(--r); border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text);
       font: 650 .93rem/1 var(--sans); cursor: pointer; white-space: nowrap;
       transition: border-color .15s ease, background .15s ease, transform .15s var(--ease), box-shadow .15s ease; }
.btn:hover { text-decoration: none; border-color: var(--line-3); background: var(--panel-3); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(180deg, var(--accent), var(--accent-2)); border-color: transparent;
               color: var(--accent-ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 8px 22px -12px var(--accent-2); }
.btn-primary:hover { background: linear-gradient(180deg, var(--accent), var(--accent-2)); border-color: transparent;
                     filter: brightness(1.06); }
.btn-small { min-height: 34px; padding: 0 12px; font-size: .86rem; }
.btn-big { min-height: 50px; padding: 0 20px; font-size: 1rem; }
.btn-block { display: flex; width: 100%; }
.btn small { font: 600 .74rem/1 var(--mono); opacity: .7; margin-left: 4px; }

/* ------------------------------------------------------------------ the list page: side column + grid */

.shell { display: grid; gap: 14px; padding-top: 16px; padding-bottom: 48px; }
@media (min-width: 1000px) { .shell { grid-template-columns: var(--side) minmax(0, 1fr); gap: 28px; padding-top: 24px; } }

.side { min-width: 0; }
@media (min-width: 1000px) { .side { align-self: start; } }
.filters { display: grid; gap: 10px; }
.filters fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.filters legend { padding: 0; font: 700 .68rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
                  color: var(--faint); margin-bottom: 8px; }
.opts { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -14px; padding: 0 14px; }
.opts::-webkit-scrollbar { display: none; }
.opt { position: relative; flex: none; cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt-t { display: inline-flex; align-items: center; height: 32px; padding: 0 11px; border-radius: var(--r);
         border: 1px solid var(--line-2); background: var(--panel); color: var(--muted); font-size: .86rem;
         font-weight: 600; white-space: nowrap; transition: color .15s ease, border-color .15s ease, background .15s ease; }
.opt-n { display: none; }
.opt:hover .opt-t { color: var(--text); border-color: var(--line-3); }
.opt input:checked ~ .opt-t { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.opt input:focus-visible ~ .opt-t { outline: 2px solid var(--accent); outline-offset: 2px; }
.pick select { width: 100%; height: 34px; padding: 0 30px 0 11px; border-radius: var(--r); border: 1px solid var(--line-2);
               background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%23999' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 10px center / 12px;
               color: var(--text); font: 600 .86rem/1 var(--sans); -webkit-appearance: none; appearance: none; cursor: pointer; }
.pick select:hover { border-color: var(--line-3); }
@media (max-width: 999px) {
  .filters { grid-template-columns: 1fr 1fr; gap: 10px 8px; }
  .filters fieldset:not(.pick) { grid-column: 1 / -1; }
  .filters legend { display: none; }
  .side-card { display: none; }
}
@media (min-width: 1000px) {
  .filters { gap: 22px; }
  .opts { flex-direction: column; gap: 2px; margin: 0; padding: 0; overflow: visible; }
  .opt { display: flex; align-items: center; }
  .opt-t { flex: 1; height: 34px; padding: 0 10px; border: 0; background: transparent; border-radius: var(--r);
           font-size: .92rem; }
  .opt-n { display: block; position: absolute; right: 10px; font: 600 .74rem/1 var(--mono); color: var(--faint); }
  .opt:hover .opt-t { background: var(--line); }
  .opt input:checked ~ .opt-t { background: var(--accent-soft); color: var(--accent); box-shadow: inset 2px 0 0 var(--accent); }
  .opt input:checked ~ .opt-n { color: var(--accent); }
}
.side-card { margin-top: 24px; padding: 16px; border-radius: var(--r-l); border: 1px solid var(--line-2);
             background: linear-gradient(160deg, var(--accent-soft), transparent 60%), var(--panel); }
.side-card p:not(.label) { color: var(--muted); font-size: .88rem; }
.side-link { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 10px; color: var(--muted);
             font-size: .86rem; font-weight: 600; }

.list { min-width: 0; }
.list-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin: 0 0 14px; }
.list-head h1 { font-size: 1.5rem; font-weight: 820; letter-spacing: -.03em; }
.count { margin: 0; font: 600 .8rem/1 var(--mono); color: var(--accent); }
.tagline { flex-basis: 100%; margin: 0; color: var(--faint); font-size: .88rem; }
@media (max-width: 999px) { .list-head { margin-top: 4px; } }

/* ------------------------------------------------------------------ cards */

.grid { display: grid; gap: 10px; }
@media (min-width: 560px) { .grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; } }
.card {
  position: relative; display: flex; flex-direction: column; border-radius: var(--r-l); background: var(--panel);
  border: 1px solid var(--line); color: var(--text); overflow: hidden; isolation: isolate;
  animation: rise .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms);
  transition: border-color .2s ease, transform .25s var(--ease), box-shadow .25s ease;
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.card[hidden] { display: none; }
.card:hover { text-decoration: none; border-color: var(--line-3); transform: translateY(-2px); box-shadow: var(--shadow); }
/* the scope corners that lock onto the card you aim at */
.card::after {
  content: ""; position: absolute; inset: 14px; z-index: 3; pointer-events: none; opacity: 0;
  transition: inset .3s var(--ease), opacity .2s ease;
  --c: var(--accent); --l: 16px; --w: 2px;
  background:
    linear-gradient(var(--c), var(--c)) 0 0 / var(--l) var(--w), linear-gradient(var(--c), var(--c)) 0 0 / var(--w) var(--l),
    linear-gradient(var(--c), var(--c)) 100% 0 / var(--l) var(--w), linear-gradient(var(--c), var(--c)) 100% 0 / var(--w) var(--l),
    linear-gradient(var(--c), var(--c)) 0 100% / var(--l) var(--w), linear-gradient(var(--c), var(--c)) 0 100% / var(--w) var(--l),
    linear-gradient(var(--c), var(--c)) 100% 100% / var(--l) var(--w), linear-gradient(var(--c), var(--c)) 100% 100% / var(--w) var(--l);
  background-repeat: no-repeat;
}
.card:hover::after, .card:focus-visible::after { inset: 6px; opacity: 1; }
.thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--panel-2); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), filter .3s ease; }
.card:hover .thumb img { transform: scale(1.05); }
.thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, .55)); }
.thumb .ph { display: grid; place-items: center; height: 100%; font: 800 2rem/1 var(--sans); color: var(--faint); }
.flag { position: absolute; top: 9px; left: 9px; z-index: 2; display: inline-flex; align-items: center; gap: 5px;
        padding: 4px 8px; border-radius: 4px; background: var(--accent); color: var(--accent-ink);
        font: 800 .64rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.flag .i { width: 12px; height: 12px; }
.marks { position: absolute; left: 9px; bottom: 9px; z-index: 2; display: flex; gap: 5px; }
.gm { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px 3px 6px; border-radius: 4px;
      background: rgba(10, 12, 8, .62); border: 1px solid rgba(255, 255, 255, .12); color: #e9ecdf;
      font: 700 .66rem/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase;
      -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.gm::before { content: ""; width: 8px; height: 9px; flex: none; background: currentColor;
              clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.gm.g-dinohunter::before { background: var(--leaf); }
.gm.g-iceage::before { background: var(--ice); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 12px 14px 12px; }
.card h3 { font-size: 1.04rem; font-weight: 760; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .by { margin: 2px 0 0; color: var(--faint); font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .sum { margin: 8px 0 0; color: var(--muted); font-size: .88rem; line-height: 1.45; display: -webkit-box;
             -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.data { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: auto 0 0; padding-top: 11px; margin-top: 11px;
        border-top: 1px dashed var(--line-2); font: 600 .76rem/1.2 var(--mono); color: var(--text); }
.data b { font-weight: 700; color: var(--faint); margin-right: 5px; letter-spacing: .06em; }

/* on a phone: a compact row */
@media (max-width: 559px) {
  .card { display: grid; grid-template-columns: 118px minmax(0, 1fr); align-items: stretch; }
  .card .thumb { height: 100%; aspect-ratio: auto; min-height: 84px; }
  .card .marks, .card .sum { display: none; }
  .flag { top: 6px; left: 6px; padding: 3px 6px; font-size: .58rem; }
  .card-body { padding: 10px 12px; }
  .data { padding-top: 7px; margin-top: 7px; gap: 3px 10px; font-size: .72rem; }
  .card-wide { grid-template-columns: 1fr; }
  .card-wide .thumb { aspect-ratio: 16 / 9; }
  .card-wide .marks { display: flex; }
  .card-wide .sum { display: -webkit-box; }
}
/* the featured mod: a wide first card */
@media (min-width: 900px) {
  .card-wide { grid-column: span 2; flex-direction: row; }
  .card-wide .thumb { flex: 1.2; aspect-ratio: auto; min-height: 250px; }
  .card-wide .thumb::after { background: linear-gradient(90deg, transparent 60%, rgba(0, 0, 0, .25)); }
  .card-wide .card-body { flex: 1; padding: 22px 22px 18px; }
  .card-wide h3 { font-size: 1.55rem; font-weight: 820; letter-spacing: -.03em; white-space: normal; }
  .card-wide .sum { -webkit-line-clamp: 5; font-size: .95rem; margin-top: 12px; }
}
.none { color: var(--muted); padding: 40px 0; text-align: center; }
.none button { font: inherit; color: var(--accent); background: none; border: 0; cursor: pointer; padding: 0;
               text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------------ a mod's page */

.modpage, .subpage { padding-top: 14px; padding-bottom: 56px; }
.crumbs { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font: 600 .78rem/1 var(--mono);
          letter-spacing: .04em; color: var(--faint); min-width: 0; }
.crumbs a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.crumbs a .i { width: 15px; height: 15px; }
.crumbs > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mod-top { display: grid; gap: 14px; grid-template-areas: "media" "dossier" "content"; }
.mod-top .gallery { grid-area: media; }
.mod-top .dossier { grid-area: dossier; }
.content { grid-area: content; min-width: 0; }
@media (min-width: 960px) { .mod-top { grid-template-columns: minmax(0, 1fr) 380px; grid-template-areas: "media dossier" "content dossier";
                                       gap: 4px 24px; align-items: start; }
                            .content .tabs { margin-top: 14px; } }

.gallery { min-width: 0; }
.stage { position: relative; display: block; border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--line-2);
         background: var(--panel-2); cursor: zoom-in; }
.stage img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.stage::after { content: ""; position: absolute; inset: 10px; pointer-events: none; opacity: .75; --c: rgba(255, 255, 255, .7);
                --l: 18px; --w: 2px;
                background:
                  linear-gradient(var(--c), var(--c)) 0 0 / var(--l) var(--w), linear-gradient(var(--c), var(--c)) 0 0 / var(--w) var(--l),
                  linear-gradient(var(--c), var(--c)) 100% 0 / var(--l) var(--w), linear-gradient(var(--c), var(--c)) 100% 0 / var(--w) var(--l),
                  linear-gradient(var(--c), var(--c)) 0 100% / var(--l) var(--w), linear-gradient(var(--c), var(--c)) 0 100% / var(--w) var(--l),
                  linear-gradient(var(--c), var(--c)) 100% 100% / var(--l) var(--w), linear-gradient(var(--c), var(--c)) 100% 100% / var(--w) var(--l);
                background-repeat: no-repeat; }
.strip { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip .shot { flex: 0 0 120px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line-2); opacity: .6;
               transition: opacity .15s ease, border-color .15s ease; }
.strip .shot img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.strip .shot:hover, .strip .shot.on { opacity: 1; border-color: var(--accent); }

.dossier { position: relative; padding: 18px; border-radius: var(--r-l); border: 1px solid var(--line-2);
           background: linear-gradient(170deg, var(--panel-2), var(--panel) 40%); box-shadow: var(--shadow); }
@media (min-width: 960px) { .mod-top .dossier { position: sticky; top: calc(var(--head) + 16px); } }
.dossier::before { content: ""; position: absolute; left: 18px; right: 18px; top: -1px; height: 2px;
                   background: linear-gradient(90deg, var(--accent), transparent); }
.tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 12px; }
.tag { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 4px; background: var(--panel-3);
       color: var(--muted); font: 700 .66rem/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.tags .gm { background: var(--panel-3); border-color: var(--line); color: var(--text); -webkit-backdrop-filter: none; backdrop-filter: none; }
.dossier h1 { font-size: clamp(1.6rem, 4vw, 2.1rem); font-weight: 840; letter-spacing: -.035em; }
.dossier .by { margin: 5px 0 10px; color: var(--faint); font-size: .9rem; }
.lede { color: var(--muted); font-size: .98rem; margin-bottom: 16px; }
.sheet { margin: 16px 0 0; display: grid; font-size: .88rem; }
.sheet div { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px;
             border-top: 1px dashed var(--line-2); }
.sheet dt { font: 700 .7rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); flex: none; }
.sheet dd { margin: 0; text-align: right; font-weight: 600; min-width: 0; overflow-wrap: anywhere; display: flex;
            align-items: center; gap: 2px; justify-content: flex-end; }
.copy { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 4px; border: 0;
        background: transparent; color: var(--faint); cursor: pointer; transition: color .15s ease, background .15s ease; flex: none; }
.copy:hover { color: var(--text); background: var(--line); }
.copy .i { width: 14px; height: 14px; }
.copy.done { color: var(--leaf); }

.tabs { position: sticky; top: var(--head); z-index: 10; display: flex; gap: 2px; margin: 24px 0 0; overflow-x: auto;
        scrollbar-width: none; border-bottom: 1px solid var(--line-2);
        background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 13px 14px; color: var(--muted);
       font-weight: 650; font-size: .93rem; white-space: nowrap; }
.tab:hover { color: var(--text); text-decoration: none; }
.tab span { font: 700 .7rem/1 var(--mono); padding: 3px 6px; border-radius: 4px; background: var(--panel-3); color: var(--muted); }
.tab.on { color: var(--text); }
.tab.on::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--accent); }
.panel { padding-top: 20px; }
.js-tabs .panel { display: none; }
.js-tabs .panel.on { display: block; animation: rise .35s var(--ease) both; }
.description { font-size: 1.02rem; line-height: 1.7; }
.description ul { padding-left: 1.2em; }
.links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.need { display: flex; align-items: center; gap: 10px; padding: 12px 14px; margin: 0 0 12px; border-radius: var(--r-l);
        background: var(--accent-soft); border: 1px solid var(--accent-line); }
.need .i { color: var(--accent); }
.how-grid { display: grid; gap: 12px; }
@media (min-width: 720px) { .how-grid { grid-template-columns: 1fr 1fr; } }
.how { padding: 16px 18px; border-radius: var(--r-l); border: 1px solid var(--line-2); background: var(--panel); }
.how.mine { border-color: var(--accent-line); box-shadow: 0 0 0 4px var(--accent-soft); }
.how h2 { display: flex; align-items: center; gap: 10px; font-size: 1rem; margin-bottom: 10px; }
.hexi { display: inline-grid; place-items: center; width: 30px; height: 34px; flex: none; font: 800 .6rem/1 var(--mono);
        color: var(--accent-ink); background: var(--accent); letter-spacing: .04em;
        clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.how ol { margin: 0; padding-left: 1.2em; color: var(--muted); font-size: .94rem; }
.how li + li { margin-top: 6px; }
.how li::marker { font: 700 .8rem var(--mono); color: var(--faint); }
.how strong, .how em { color: var(--text); }
.small-print { color: var(--faint); font-size: .85rem; margin-top: 14px; }

.vers { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ver { padding: 13px 16px; border-radius: var(--r-l); border: 1px solid var(--line-2); background: var(--panel); }
.ver.is-latest { border-color: var(--accent-line); }
.ver-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.ver-n { font: 800 1.05rem/1 var(--mono); letter-spacing: -.02em; }
.pill { padding: 3px 7px; border-radius: 4px; background: var(--accent); color: var(--accent-ink);
        font: 800 .62rem/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.ver-meta { flex: 1 1 auto; min-width: 0; color: var(--faint); font: 600 .78rem/1.3 var(--mono); }
.ver-body { margin-top: 8px; color: var(--muted); font-size: .92rem; }
.ver-body > :last-child { margin-bottom: 0; }
.sha { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: .78rem; }
.sha b { font: 700 .66rem/1 var(--mono); letter-spacing: .1em; color: var(--faint); }
.sha code { font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1 1 auto; }

/* the download bar on a phone, once the big button has scrolled away */
.dl-bar { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 25;
          display: flex; align-items: center; gap: 12px; padding: 9px 9px 9px 16px; border-radius: var(--r-l);
          background: color-mix(in srgb, var(--panel-2) 88%, transparent); border: 1px solid var(--line-2);
          -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: var(--shadow);
          transform: translateY(150%); transition: transform .3s var(--ease); }
.dl-bar.show { transform: none; }
.dl-bar .what { min-width: 0; margin-right: auto; font-size: .86rem; line-height: 1.3; }
.dl-bar strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-bar span { color: var(--faint); font: 600 .74rem/1.3 var(--mono); }
.has-bar .foot { padding-bottom: 78px; }
@media (min-width: 960px) { .dl-bar { display: none; } .has-bar .foot { padding-bottom: 0; } }

/* ------------------------------------------------------------------ the picture viewer, the toast */

.viewer { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0;
          border: 0; background: rgba(5, 6, 4, .94); color: #fff; display: grid; place-items: center; }
.viewer:not([open]) { display: none; }
.viewer::backdrop { background: transparent; }
.viewer img { max-width: min(94vw, 1600px); max-height: 86vh; border-radius: 6px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
              animation: rise .3s var(--ease); }
.viewer button { position: absolute; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 6px;
                 border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; }
.viewer button:hover { background: rgba(255, 255, 255, .16); }
.viewer .close { top: 14px; right: 14px; }
.viewer .prev { left: 14px; top: 50%; transform: translateY(-50%); }
.viewer .next { right: 14px; top: 50%; transform: translateY(-50%); }
.viewer .n { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); font: 600 .8rem var(--mono);
             color: rgba(255, 255, 255, .7); }
.toast { position: fixed; left: 50%; bottom: 26px; z-index: 60; transform: translate(-50%, 16px); opacity: 0;
         padding: 9px 14px; border-radius: var(--r); background: var(--text); color: var(--bg); font: 650 .86rem var(--sans);
         box-shadow: var(--shadow); transition: opacity .2s ease, transform .25s var(--ease); pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ------------------------------------------------------------------ the submit page */

.sub-grid { display: grid; gap: 22px; }
@media (min-width: 960px) { .sub-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
                            .sub-side { position: sticky; top: calc(var(--head) + 16px); } }
.sub-main h1, .lost h1 { font-size: clamp(1.8rem, 5vw, 2.5rem); font-weight: 840; letter-spacing: -.035em; }
.sub-main h2 { font-size: 1.15rem; margin: 30px 0 12px; }
.sub-main p { color: var(--muted); }
.sub-main .lede { margin: 10px 0 20px; font-size: 1.05rem; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.steps li { display: flex; gap: 16px; padding: 14px 16px; border-radius: var(--r-l); border: 1px solid var(--line-2);
            background: var(--panel); }
.steps li > b { font: 800 1.2rem/1 var(--mono); color: var(--accent); padding-top: 2px; }
.steps strong { display: block; margin-bottom: 3px; }
.steps p { margin: 0; font-size: .93rem; }
.needs { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
@media (min-width: 640px) { .needs { grid-template-columns: 1fr 1fr; } }
.needs li { display: flex; gap: 12px; padding: 14px; border-radius: var(--r-l); border: 1px solid var(--line); background: var(--panel); }
.needs .i { color: var(--leaf); margin-top: 2px; }
.needs p { margin: 3px 0 0; font-size: .9rem; }
.faq { border-top: 1px dashed var(--line-2); }
.faq:last-of-type { border-bottom: 1px dashed var(--line-2); }
.faq summary { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; cursor: pointer; font-weight: 650;
               list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 700 1rem/1 var(--mono); color: var(--accent); }
.faq[open] summary::after { content: "\2013"; }
.faq p { margin: 0 0 14px; font-size: .94rem; }
.sub-side .dossier .btn + .btn { margin-top: 8px; }
.sub-side .label { margin-top: 18px; }
.sub-side .label:first-child { margin-top: 0; }
.rules { margin: 0; padding-left: 1.1em; color: var(--muted); font-size: .9rem; }
.rules li + li { margin-top: 5px; }
.lost { padding-top: 60px; padding-bottom: 80px; }

/* ------------------------------------------------------------------ footer */

.foot { border-top: 1px solid var(--line); background: var(--bg-2); font-size: .84rem; color: var(--faint); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px;
           padding-top: 18px; padding-bottom: 20px; }
.foot p { margin: 0; }
.foot-r { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--text); }

/* ------------------------------------------------------------------ scrollbars, motion */

@supports selector(::-webkit-scrollbar) {
  html::-webkit-scrollbar { width: 11px; }
  html::-webkit-scrollbar-track { background: var(--bg); }
  html::-webkit-scrollbar-thumb { background: var(--panel-3); border-radius: 10px; border: 3px solid var(--bg); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
