/* Layout: a dim wall of the crew sits behind everything; content runs in one 1100px column,
   with the "frag the crew" strip breaking out full-width as the page's one loud moment. */
/* Chakra Petch and Ubuntu Mono, self-hosted (SIL Open Font License, from Google Fonts).
 * Same files and unicode ranges Google serves; a browser only downloads the subsets a page uses. */
@font-face { font-family: "Chakra Petch"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/chakra-petch-500-thai.woff2") format("woff2"); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "Chakra Petch"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/chakra-petch-500-vietnamese.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Chakra Petch"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/chakra-petch-500-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Chakra Petch"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/chakra-petch-500-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Chakra Petch"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/chakra-petch-700-thai.woff2") format("woff2"); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "Chakra Petch"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/chakra-petch-700-vietnamese.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Chakra Petch"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/chakra-petch-700-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Chakra Petch"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/chakra-petch-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Ubuntu Mono"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/ubuntu-mono-400i-cyrillic-ext.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Ubuntu Mono"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/ubuntu-mono-400i-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Ubuntu Mono"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/ubuntu-mono-400i-greek-ext.woff2") format("woff2"); unicode-range: U+1F00-1FFF; }
@font-face { font-family: "Ubuntu Mono"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/ubuntu-mono-400i-greek.woff2") format("woff2"); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: "Ubuntu Mono"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/ubuntu-mono-400i-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Ubuntu Mono"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/ubuntu-mono-400i-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Ubuntu Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/ubuntu-mono-400-cyrillic-ext.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Ubuntu Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/ubuntu-mono-400-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Ubuntu Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/ubuntu-mono-400-greek-ext.woff2") format("woff2"); unicode-range: U+1F00-1FFF; }
@font-face { font-family: "Ubuntu Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/ubuntu-mono-400-greek.woff2") format("woff2"); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: "Ubuntu Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/ubuntu-mono-400-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Ubuntu Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/ubuntu-mono-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Ubuntu Mono"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/ubuntu-mono-700-cyrillic-ext.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Ubuntu Mono"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/ubuntu-mono-700-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Ubuntu Mono"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/ubuntu-mono-700-greek-ext.woff2") format("woff2"); unicode-range: U+1F00-1FFF; }
@font-face { font-family: "Ubuntu Mono"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/ubuntu-mono-700-greek.woff2") format("woff2"); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: "Ubuntu Mono"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/ubuntu-mono-700-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Ubuntu Mono"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/ubuntu-mono-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #120f24;        /* page ground, late-night violet */
  --panel: #1b1736;      /* raised surfaces */
  --line: #332e58;       /* hairlines, borders */
  --fg: #f1ecfb;         /* text */
  --muted: #a49ec4;      /* secondary text */
  --amber: #ffb23f;      /* HUD amber: primary accent */
  --neon: #39ff88;       /* countdown times */
  --coral: #ff5d62;      /* frags, errors */
  --mint: #5fe0b4;       /* success */

  --f-display: "Chakra Petch", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Ubuntu Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --f-mono: "Ubuntu Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --s-1: 0.5rem; --s-2: 1rem; --s-3: 1.5rem; --s-4: 2.5rem; --s-5: 4rem;
  --r: 10px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  position: relative; isolation: isolate;
  background: var(--ink);
  color: var(--fg);
  font: 400 1.0625rem/1.55 var(--f-body);
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: var(--amber); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, .crew-card:focus-visible {
  outline: 2px solid var(--amber); outline-offset: 3px;
}
.mono { font-family: var(--f-mono); }
.muted { color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap {
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* ---------- background wall ---------- */
.wall {
  position: absolute; top: 0; left: 0; right: 0; height: min(100vh, 820px); z-index: -1;
  background: url("assets/hero.webp") center 30% / cover no-repeat;
  opacity: 0.35;
  filter: saturate(0.85) blur(1px);
}
/* On narrow screens "cover" blew the photo up to 2x and showed a cropped strip of it;
 * show the whole picture at its own proportions instead. */
@media (max-width: 760px) {
  .wall { height: auto; aspect-ratio: 720 / 384; background-size: 100% auto; background-position: center top; opacity: 0.6; }
  /* let the photo read as a banner, with the title starting near its bottom edge */
  .hero { padding-top: calc(100vw * 384 / 720 - 3.5rem); }
}
.wall::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18,15,36,0.25) 0%, rgba(18,15,36,0.55) 50%, var(--ink) 100%);
}

/* ---------- hero ---------- */
.hero { padding-block: var(--s-5) var(--s-4); }
.hero-inner { display: grid; gap: var(--s-2); justify-items: start; }
/* The logo and slogan are real text in two tiny pixel fonts built from the logo's own
 * bitmaps (tools/make_font.py). One drawing pixel is 1em/9 in the logo font and 1em/5 in the
 * slogan font; --cell and --scell size them to whole screen pixels so the edges stay crisp.
 * The word is 56 pixels wide plus 1 for the shadow, so 58 cells fit the column. */
@font-face { font-family: "GOL Logo"; src: url("/assets/fonts/gol-logo.woff2") format("woff2"); font-display: block; }
@font-face { font-family: "GOL Slogan"; src: url("/assets/fonts/gol-slogan.woff2") format("woff2"); font-display: block; }
.hero-inner { --cell: clamp(4px, calc((100vw - 32px) / 58), 13px); --scell: max(2px, calc(var(--cell) * 0.36)); }
@supports (width: round(down, 10.5px, 1px)) {
  .hero-inner {
    --cell: clamp(4px, round(down, calc((100vw - 32px) / 58), 1px), 13px);
    --scell: max(2px, round(down, var(--cell) * 0.36, 1px));
  }
}
.logo, .slogan {
  margin: 0; justify-self: center; line-height: 1; font-weight: 400; font-style: normal;
  font-synthesis: none; font-kerning: none; letter-spacing: 0; white-space: nowrap;
  text-transform: none;
}
.logo {
  font-family: "GOL Logo", var(--f-display); font-size: calc(var(--cell) * 9);
  color: var(--fg); text-shadow: var(--cell) var(--cell) 0 #3a2f7a;
  padding: calc(var(--cell) * 2) var(--cell) calc(var(--cell) * 2) 0; /* same spacing as the old image */
  filter: drop-shadow(0 0 24px rgba(255, 178, 63, 0.18));
}
.logo .of { color: var(--amber); }
/* the slogan: smaller pixel capitals on their own line under the logo */
.slogan {
  font-family: "GOL Slogan", var(--f-mono); font-size: calc(var(--scell) * 5);
  color: var(--amber); text-shadow: var(--scell) var(--scell) 0 #3a2f7a;
  padding-right: var(--scell);
}
/* Hero spacing, tuned by hand on desktop: logo 134px lower, slogan tucked 30px up under it,
 * 195px of air before the countdowns, and the hero ending 70px sooner. Written in logo cells
 * (13px on desktop, so these come out at exactly those pixels there) so phones keep the same
 * proportions. */
.logo { margin-top: calc(var(--cell) * 134 / 13); }
.slogan { margin-top: calc(var(--cell) * -30 / 13); margin-bottom: calc(var(--cell) * 195 / 13); }
.hero-inner { margin-bottom: calc(var(--cell) * -70 / 13); }
.lede { margin: 0; max-width: 44ch; font-size: clamp(1.05rem, 2.4vw, 1.3rem); color: var(--fg); }

.countdowns { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; justify-self: center; }
/* app.js fills the countdowns in after the first paint; until then hold their space so the
 * buttons and everything below don't jump down (one row of two pills on wide screens, two rows
 * on phones, three on the narrowest; measured with the two current events) */
.countdowns:empty { min-height: 47px; }
@media (max-width: 739px) { .countdowns:empty { min-height: 102px; } }
@media (max-width: 374px) { .countdowns:empty { min-height: 154px; } }
/* the countdowns stand out: an amber-lit pill with the time in neon green */
.countdown {
  display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.75rem;
  padding: 0.55rem 0.95rem;
  border: 1px solid rgba(255, 178, 63, 0.7); border-radius: var(--r);
  background: linear-gradient(180deg, rgba(255, 178, 63, 0.2), rgba(255, 178, 63, 0.08)), rgba(27, 23, 54, 0.9);
  box-shadow: 0 0 18px rgba(255, 178, 63, 0.25);
  font-variant-numeric: tabular-nums;
}
.countdown { cursor: pointer; transition: border-color 0.18s ease, box-shadow 0.18s ease; }
.countdown:hover, .countdown:focus-visible { border-color: var(--neon); box-shadow: 0 0 22px rgba(57, 255, 136, 0.35); }
.cd-label { color: var(--fg); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.1em; }
.cd-time { color: var(--neon); font-weight: 700; font-size: 1.1rem; text-shadow: 0 0 10px rgba(57, 255, 136, 0.6); }

.cta-row { display: flex; flex-wrap: wrap; justify-content: center; justify-self: center; gap: 0.75rem; margin-top: var(--s-1); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 1.25rem;
  border-radius: var(--r); border: 1px solid transparent;
  font: 600 1rem/1 var(--f-display); letter-spacing: 0.03em; text-decoration: none;
  cursor: pointer; transition: transform 0.12s ease, background 0.12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--amber); color: #1a1205; }
.btn-primary:hover { background: #ffc566; }
.btn-ghost { border-color: var(--line); color: var(--fg); background: rgba(27, 23, 54, 0.75); }
.btn-ghost:hover { border-color: var(--amber); }
.btn-wide { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* ---------- sections ---------- */
.section { padding-block: var(--s-4); }
.section-h { margin: 0 0 0.25rem; font: 700 clamp(1.7rem, 4vw, 2.4rem)/1.1 var(--f-display); text-wrap: balance; }
.section-sub { margin: 0 0 var(--s-3); color: var(--muted); max-width: 60ch; }
.events-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin: 0.5rem 0 var(--s-3); }
.tbc { display: inline-block; padding: 0.15rem 0.5rem; border: 1px dashed var(--amber); border-radius: 6px; color: var(--amber); font-size: 0.9rem; }

/* events */
.events { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: var(--s-2); }
/* same as the countdowns: roughly hold the event cards' space until app.js draws them, so the
 * sections below don't jump (approximate on purpose: it only has to be close) */
.events:empty { min-height: 512px; }
@media (max-width: 899px) { .events:empty { min-height: 1040px; } }
@media (max-width: 429px) { .events:empty { min-height: 1280px; } }
.event {
  min-width: 0;
  display: grid; gap: var(--s-2);
  padding: var(--s-3);
  background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--r);
}
.event-reg { justify-self: start; }
.event-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; align-items: baseline; }
.event-role { font: 600 0.84rem/1 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.event.is-main .event-role { color: var(--amber); }
.event-tag { font: 600 0.9rem/1 var(--f-mono); color: var(--amber); }
.event-name { margin: 0; font: 700 1.6rem/1.1 var(--f-display); }
.event-seats { margin: 0.3rem 0 0; font: 600 0.84rem/1 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber); }
.event-range { margin: 0; color: var(--muted); }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li {
  display: grid; grid-template-columns: 7.2rem 3.4rem 1fr; gap: 0.75rem; align-items: baseline;
  padding: 0.45rem 0; border-top: 1px dashed var(--line);
  font-variant-numeric: tabular-nums;
}
.timeline li:first-child { border-top: 0; }
.tl-day { font-family: var(--f-mono); font-size: 0.9rem; color: var(--muted); }
.tl-time { font-family: var(--f-mono); font-weight: 600; color: var(--amber); }
.tl-what { min-width: 0; }
.tl-what small { color: var(--muted); }
.timeline li.tl-note .tl-what { grid-column: 1 / -1; text-align: center; color: var(--muted); font-style: italic; }
.tl-quote { white-space: nowrap; }
@media (max-width: 420px) {
  .timeline li { grid-template-columns: 3.4rem 1fr; row-gap: 0.1rem; }
  .tl-day { grid-column: 1 / -1; font-size: 0.9rem; }
}

/* tournaments */
.tournaments { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-2); }
@media (max-width: 900px) { .tournaments { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .tournaments { grid-template-columns: 1fr; } }
.tour-extra { border-style: dashed; border-color: rgba(255, 178, 63, 0.55); color: inherit; text-decoration: none; transition: border-color 0.18s ease, transform 0.18s ease; }
.tour-extra:hover, .tour-extra:focus-visible { border-style: solid; border-color: var(--amber); transform: translateY(-2px); }
.tour-extra .tour-name { color: var(--amber); }
.tour {
  min-width: 0; position: relative; overflow: hidden;
  padding: var(--s-3) var(--s-3) var(--s-2);
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
}
.tour-format { font: 600 0.84rem/1 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber); }
.tour-name { margin: 0.4rem 0 0.3rem; font: 700 1.35rem/1.15 var(--f-display); }
.tour-desc { margin: 0; color: var(--muted); font-size: 0.95rem; }
.tour-glyph {
  position: absolute; right: -0.2rem; bottom: -1.4rem;
  font: 700 5.5rem/1 var(--f-display); color: var(--fg); opacity: 0.05; pointer-events: none;
}

/* included / bring */
.pack { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: var(--s-3); }
.pack-col { min-width: 0; container-type: inline-size; }
.pack-h { margin: 0 0 0.75rem; font: 700 1.3rem/1.1 var(--f-display); }
.pack-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.pack-list li { display: grid; grid-template-columns: 4rem minmax(0, 1fr); gap: 0.75rem; align-items: baseline; }
/* each line stays on one line: the text shrinks to fit its column instead of wrapping */
.pack-text { white-space: nowrap; font-size: min(1em, calc((100cqw - 6rem) / 28.5)); }
@container (max-width: 420px) {
  .pack-list li { grid-template-columns: 1fr; gap: 0.25rem; }
  .pack-text { font-size: min(1em, calc(100cqw / 28.5)); }
}
.pack-key {
  /* each label as wide as its own word; the text after it still starts on one line,
   * because the label sits in a fixed column as wide as the longest one */
  justify-self: start;
  padding: 0.2rem 0.45rem; border-radius: 5px;
  font-size: 0.84rem; font-weight: 600; letter-spacing: 0.08em;
  background: rgba(95, 224, 180, 0.12); color: var(--mint);
}
.bring .pack-key { background: rgba(255, 178, 63, 0.12); color: var(--amber); }

/* ---------- frag the crew ---------- */
.frag {
  position: relative;
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(27, 23, 54, 0.85), rgba(18, 15, 36, 0.92));
}
.frag-head { margin-bottom: var(--s-1); }
.frag-head .section-sub { margin-bottom: 0; }
/* one line at any width: the text shrinks on narrow phones instead of wrapping */
.frag-rules { margin: 0.3rem 0 0; color: var(--muted); white-space: nowrap; font-size: min(0.9rem, calc((100vw - 2.5rem) / 29.5)); }
/* the TAB hint sits on the heading's line; touch screens have no TAB, they use the Scoreboard button */
.frag-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 0.9rem; }
.frag-tab { color: var(--muted); font-size: 0.9rem; white-space: nowrap; }
.frag-tab kbd { font: inherit; color: var(--amber); padding: 0 0.35rem; border: 1px solid rgba(255, 178, 63, 0.6); border-radius: 4px; }
@media (hover: none), (pointer: coarse) { .frag-tab { display: none; } }
/* the HUD stays pinned while you scroll through the crew, which matters most on phones */
.hud-bar {
  position: sticky; top: 0; z-index: 6; margin-bottom: var(--s-2); padding-block: 0.5rem;
  padding-top: max(0.5rem, env(safe-area-inset-top, 0px));
  background: rgba(18, 15, 36, 0.88); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hud { display: flex; gap: 0.5rem; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.hud > div {
  display: grid; gap: 0.15rem; min-width: 4.6rem;
  padding: 0.45rem 0.7rem; border: 1px solid var(--line); border-radius: 8px; background: rgba(0, 0, 0, 0.25);
}
.hud-k { font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.hud-v { font-size: 1.25rem; font-weight: 600; color: var(--amber); line-height: 1; }
.hud-v.bump { animation: bump 0.25s ease; }
.hud-time .hud-v { color: var(--fg); }
.hud-time.low { border-color: var(--coral); }
.hud-time.low .hud-v { color: var(--coral); animation: tick 1s steps(2, start) infinite; }
@keyframes tick { 50% { opacity: 0.55; } }
/* round over: a Counter-Strike style banner across the middle of the screen */
.round-end {
  position: fixed; left: 50%; top: 50%; z-index: 30; transform: translate(-50%, -50%);
  width: min(92vw, 520px); padding: 1.2rem 1.2rem 1.1rem; text-align: center;
  background: rgba(12, 10, 26, 0.9); border: 1px solid var(--line); border-radius: var(--r);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.round-end[hidden] { display: none; }
.round-end.won { border-color: var(--mint); }
.round-end.lost { border-color: var(--coral); }
.round-end.flash { animation: re-flash 0.4s ease; }
@keyframes re-flash { 30% { transform: translate(-50%, -50%) scale(1.04); } }
.re-title { margin: 0; font: 700 clamp(1.5rem, 6vw, 2.2rem)/1.1 var(--f-display); text-transform: uppercase; letter-spacing: 0.04em; }
.won .re-title { color: var(--mint); }
.lost .re-title { color: var(--coral); }
.re-sub { margin: 0.4rem 0 1rem; color: var(--fg); }
.re-btns { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; }
.hud-btn {
  /* min-height: when the buttons wrap onto a row of their own (tablets, phones on their side,
   * narrow windows) there is nothing to stretch to, and they shrank to a 15px strip */
  align-self: stretch; min-height: 2.75rem; padding: 0 0.8rem; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--line); background: rgba(0, 0, 0, 0.25); color: var(--fg);
  font: 600 0.84rem/1 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase;
}
.hud-btn:hover { border-color: var(--amber); }
.hud-btn[aria-pressed="false"] { color: var(--muted); }
/* phones: the five numbers on one row, the buttons on a short second row */
@media (max-width: 560px) {
  .killfeed { height: 1.6rem; margin-top: 0.3rem; gap: 0.3rem; }
  .killfeed li { font-size: 0.78rem; padding: 0.15rem 0.4rem; }
  .hud { gap: 0.3rem; }
  .hud > div { min-width: 0; flex: 1 1 13%; padding: 0.3rem 0.4rem; }
  .hud-k { font-size: 0.62rem; letter-spacing: 0.04em; }
  .hud-v { font-size: 1rem; }
  .hud-btn { flex: 1 1 28%; min-height: 0; padding: 0.4rem 0.2rem; font-size: 0.68rem; letter-spacing: 0.02em; }
}
@keyframes bump { 50% { transform: scale(1.25); color: var(--fg); } }

/* ---------- scoreboard: a see-through overlay, like the one TAB shows in a shooter ---------- */
.board {
  position: fixed; inset: 0; z-index: 30; display: grid; place-items: center;
  padding: max(16px, env(safe-area-inset-top, 0px)) 16px max(16px, env(safe-area-inset-bottom, 0px));
}
.board[hidden] { display: none; }
/* held with TAB: you can keep shooting through it */
.board.is-peek { pointer-events: none; }
.board-panel {
  width: min(100%, 760px); max-height: 100%; overflow: auto;
  padding: 1rem 1.2rem; border: 1px solid rgba(255, 178, 63, 0.35); border-radius: var(--r);
  background: rgba(8, 7, 18, 0.72); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); color: var(--fg); font-variant-numeric: tabular-nums;
}
.board-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.6rem; }
.board-top h3 { margin: 0; font-size: 1.2rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber); }
.board-top h3 span { color: var(--muted); font-size: 0.8em; letter-spacing: 0.08em; }
.board-x {
  pointer-events: auto; padding: 0.35rem 0.7rem; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--line); background: rgba(0, 0, 0, 0.35); color: var(--fg);
  font: 600 0.8rem/1 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase;
}
.board-x:hover { border-color: var(--amber); }
.board-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.board-table th {
  padding: 0.35rem 0.5rem; text-align: right; font-size: 0.76rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid rgba(255, 178, 63, 0.3);
}
.board-table td { padding: 0.32rem 0.5rem; text-align: right; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.board-table th:nth-child(-n+2), .board-table td:nth-child(-n+2) { text-align: left; }
.board-table td:first-child { color: var(--muted); width: 2.5rem; }
.board-table td:nth-child(2) { max-width: 14rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-table td:nth-child(3) { color: var(--amber); font-weight: 600; }
.board-table tr:nth-child(-n+3) td:first-child { color: var(--amber); }
.board-table tr.is-mine td { background: rgba(255, 178, 63, 0.14); }
.board-table tr.is-you td { color: var(--muted); font-style: italic; border-top: 1px dashed rgba(255, 178, 63, 0.35); }
.board-table tr.board-msg td { text-align: center; color: var(--muted); padding: 1rem; }
.board-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem 1rem; flex-wrap: wrap; margin-top: 0.8rem; }
.board-note { margin: 0; font-size: 0.9rem; color: var(--muted); }
.board-save { pointer-events: auto; padding: 0.5rem 0.9rem; font-size: 0.9rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board.is-peek .board-panel { pointer-events: auto; }
@media (max-width: 560px) {
  .board-panel { padding: 0.8rem; }
  .board-table { font-size: 0.9rem; }
  .board-table .opt { display: none; }
  .board-table th, .board-table td { padding-inline: 0.3rem; }
}

.crew-track {
  max-width: 1100px; margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
/* all ten on screen: 5 x 2 on wide screens, 2 x 5 on phones */
.crew { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.75rem; }
@media (max-width: 560px) { .crew { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; } }
.crew-card {
  /* the portraits' own shape (560 x 1211), so nothing is cropped */
  position: relative; aspect-ratio: 560 / 1211; max-width: 100%; padding: 0; /* a button: drop its default padding so the picture fills it */
  border-radius: var(--r); overflow: hidden;
  border: 1px solid var(--line); background: #0b0918;
  user-select: none; -webkit-tap-highlight-color: transparent;
  /* phones: fast taps are shots, not a double-tap zoom; a long press shows no copy/save menu */
  touch-action: manipulation; -webkit-user-select: none; -webkit-touch-callout: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.crew-card img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.18s ease, opacity 0.35s ease;
  pointer-events: none;
}
/* zoomed just enough (6%) that the sway (+/-2%) never uncovers the card's edge */
.crew-card img { transform: scale(1.06); }
.crew-card:hover img { animation: idle 0.9s ease-in-out infinite alternate; }
@keyframes idle { from { transform: scale(1.06) translateX(-2%); } to { transform: scale(1.06) translateX(2%); } }
.crew-card:hover { transform: translateY(-6px) rotate(-1deg); border-color: var(--amber); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45); }
.crew-card:nth-child(even):hover { transform: translateY(-6px) rotate(1deg); }
/* the mouse pointer is hidden over the game; a drawn crosshair (setupCrosshair) follows it */
.crew, .crew * { cursor: none; }
.crosshair {
  position: fixed; left: 0; top: 0; z-index: 40; width: 0; height: 0; pointer-events: none;
  opacity: 0; --xh: #4dff6a; --gap: 5px; --len: 9px; --w: 2px;
}
.crosshair.on { opacity: 1; }
.crosshair::before, .crosshair::after { content: ""; position: absolute; left: 0; top: 0; }
/* horizontal pair, then vertical pair, each a bar with a hole in the middle; dark edge for contrast */
.crosshair::before {
  width: calc(2 * (var(--gap) + var(--len))); height: var(--w);
  transform: translate(-50%, -50%);
  background: linear-gradient(90deg, var(--xh) 0 var(--len), transparent var(--len) calc(100% - var(--len)), var(--xh) calc(100% - var(--len)));
  filter: drop-shadow(0 0 1px #000) drop-shadow(0 0 1px #000);
}
.crosshair::after {
  width: var(--w); height: calc(2 * (var(--gap) + var(--len)));
  transform: translate(-50%, -50%);
  background: linear-gradient(180deg, var(--xh) 0 var(--len), transparent var(--len) calc(100% - var(--len)), var(--xh) calc(100% - var(--len)));
  filter: drop-shadow(0 0 1px #000) drop-shadow(0 0 1px #000);
}
/* each shot spreads the lines open for a moment, like weapon kick */
.crosshair.kick { animation: kick 0.16s ease-out; }
@keyframes kick { 30% { --gap: 9px; } }
@property --gap { syntax: "<length>"; inherits: true; initial-value: 5px; }
.crew-card .pop.miss { color: var(--muted); }
.crew-card .name-tag {
  position: absolute; left: 50%; bottom: 0.6rem; transform: translateX(-50%);
  max-width: calc(100% - 1rem); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  padding: 0.2rem 0.55rem; border-radius: 6px; pointer-events: none;
  background: rgba(18, 15, 36, 0.85); border: 1px solid var(--line);
  font: 700 0.9rem/1.2 var(--f-mono); color: var(--fg); text-align: center;
  opacity: 0; transition: opacity 0.12s;
}
.crew-card .name-tag b, .crew-card .name-tag small { display: block; overflow: hidden; text-overflow: ellipsis; }
.crew-card .name-tag small { font-weight: 400; font-size: 0.78em; color: var(--amber); }
.crew-card:hover .name-tag { opacity: 1; }
@media (hover: none) { .crew-card .name-tag { opacity: 1; font-size: 0.8rem; } }
.crew-card.is-dead .name-tag { opacity: 0; }
.crew-card.is-dead { border-color: var(--line); transform: none; box-shadow: none; }
.crew-card.is-dead img { opacity: 0; animation: none; }
.crew-card canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.crew-card .respawn {
  position: absolute; inset: auto 0 0.75rem; text-align: center;
  font: 600 0.84rem/1 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.crew-card .pop {
  position: absolute; pointer-events: none; z-index: 2;
  font: 700 1.3rem/1 var(--f-display); color: var(--amber); text-shadow: 0 2px 8px #000;
  animation: pop 0.9s ease-out forwards;
}
.crew-card .pop.hs { color: var(--coral); font-size: 1.5rem; }
.crew-card .pop.secret { color: var(--mint); font-size: 1.5rem; }
.crew-card.found::after {
  content: "*"; position: absolute; top: 0.4rem; right: 0.5rem;
  color: var(--mint); font-size: 1.1rem; text-shadow: 0 1px 4px #000; pointer-events: none;
}
@keyframes pop { from { transform: translate(-50%, 0) scale(0.8); opacity: 1; } to { transform: translate(-50%, -60px) scale(1.15); opacity: 0; } }
.crew-card.shake { animation: shake 0.25s linear; }
@keyframes shake { 25% { translate: -4px 2px; } 50% { translate: 4px -2px; } 75% { translate: -2px 0; } }

/* the kill feed lives inside the sticky HUD bar, never drawn over the pictures. On phones it is
 * a one-line strip under the numbers, newest on the left, with a fixed height so the bar never jumps */
.killfeed {
  list-style: none; margin: 0.4rem 0 0; padding: 0; display: flex; gap: 0.4rem;
  height: 1.8rem; overflow: hidden; pointer-events: none;
}
.killfeed li {
  flex: none; padding: 0.2rem 0.55rem; border-radius: 5px; line-height: 1.3;
  background: rgba(0, 0, 0, 0.7); border: 1px solid rgba(255, 93, 98, 0.5);
  font-size: 0.9rem; white-space: nowrap; animation: feed 3.2s ease forwards;
}
.killfeed .kf-you { color: var(--amber); font-weight: 600; }
.killfeed .kf-hs { color: var(--coral); }
.killfeed .kf-secret { border-color: rgba(95, 224, 180, 0.6); color: var(--mint); }
/* wide screens: the feed sits on the right of the numbers, as two lines (newest on top) exactly
 * as tall as the HUD, so the bar keeps its height. contain:size stops the entries from making
 * the bar taller; a long line is cut with an ellipsis. Below 1080px the numbers and buttons
 * need the whole width, so the feed stays the one-line strip under them. */
@media (min-width: 1080px) {
  .hud-bar .wrap { display: flex; align-items: center; gap: 0.75rem; }
  .hud { flex: 0 1 auto; }
  .killfeed {
    flex: 1 1 0; min-width: 11rem; margin: 0; height: auto; align-self: stretch; contain: size;
    flex-direction: column; align-items: flex-end; gap: 0.2rem;
  }
  .killfeed li { max-width: 100%; overflow: hidden; text-overflow: ellipsis; font-size: 0.82rem; padding: 0.1rem 0.45rem; }
  .killfeed li:nth-child(n+3) { display: none; }
}
@keyframes feed { 0% { opacity: 0; transform: translateX(10px); } 8%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .crew-card, .crew-card img { transition: none; }
  .crew-card.shake, .hud-v.bump, .crew-card:hover img { animation: none; }
}

/* ---------- registration ---------- */
.reg { display: grid; gap: var(--s-2); max-width: 620px; }
.reg-intro p { margin: 0 0 var(--s-2); max-width: 44ch; }
.form {
  display: grid; gap: var(--s-2);
  padding: var(--s-3);
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
}
.field { display: grid; gap: 0.35rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: var(--s-2); }
label, legend { font-weight: 600; font-size: 0.92rem; }
.req { margin-left: 0.3rem; color: var(--muted); font: 400 0.78rem var(--f-mono); letter-spacing: 0.04em; }
legend { padding: 0; margin-bottom: 0.35rem; }
input, textarea {
  width: 100%; min-width: 0;
  padding: 0.7rem 0.8rem;
  font: inherit; color: var(--fg);
  background: var(--ink); border: 1px solid var(--line); border-radius: 8px;
}
input::placeholder, textarea::placeholder { color: #6f6992; }
input:hover, textarea:hover { border-color: #4a4479; }
input[aria-invalid="true"] { border-color: var(--coral); }
textarea { resize: vertical; }
.field-error { margin: 0.25rem 0 0; color: var(--coral); font-size: 0.88rem; }
.field-error[hidden] { display: none; }
/* a field's error sits on its label line, above the input, at the right: that line is always
 * there, so nothing moves when an error shows up */
.field-head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; min-width: 0; }
.field-head .field-error, legend .field-error { margin: 0; white-space: nowrap; font-weight: 400; }
.field-head label { white-space: nowrap; }
legend .field-error { margin-left: 0.4rem; }
/* narrow phones: the error takes the place of the small "required" / "pick one" note */
@media (max-width: 420px) {
  .field-head:has(.field-error:not([hidden])) .req,
  legend:has(.field-error:not([hidden])) .req { display: none; }
  .field-head .field-error { font-size: 0.78rem; }
}
.field-hint { margin: 0; color: var(--muted); font-size: 0.88rem; }

/* extra people on one registration (parents bringing kids) */
.people { gap: 0.6rem; }
.people-list { display: grid; gap: 0.6rem; }
.people-list:empty { display: none; }
.person { display: grid; gap: 0.35rem; }
.person-row { display: flex; gap: 0.5rem; }
.person-row input { flex: 1; }
.add-person, .remove-person {
  justify-self: start; padding: 0.55rem 0.8rem; border-radius: 8px; cursor: pointer;
  border: 1px dashed var(--line); background: transparent; color: var(--amber); -webkit-tap-highlight-color: transparent;
  font: 600 0.9rem/1.2 var(--f-mono);
}
.add-person:hover, .remove-person:hover { border-color: var(--amber); }
.add-person[hidden] { display: none; }
.remove-person { flex: none; border-style: solid; color: var(--muted); }
.remove-person:hover { color: var(--coral); border-color: var(--coral); }

.choice-list { display: grid; gap: 0.6rem; }
.choice {
  display: grid; gap: 0.5rem;
  padding: 0.8rem 0.9rem; border: 1px solid var(--line); border-radius: 8px; background: var(--ink);
}
.choice:has(> .check input:checked) { border-color: var(--amber); }
.check { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 500; cursor: pointer; }
.check input { width: 1.15rem; height: 1.15rem; margin: 0.2rem 0 0; flex: none; accent-color: var(--amber); }
.check small { display: block; color: var(--muted); font-weight: 400; font-family: var(--f-mono); font-size: 0.9rem; }
.choice .sub { margin-left: 1.75rem; }
.choice .sub[hidden] { display: none; }

.chip-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-block; padding: 0.5rem 0.85rem; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--ink); font-size: 0.92rem;
}
.chip input:checked + span { background: var(--amber); border-color: var(--amber); color: #1a1205; font-weight: 600; }
.chip input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 2px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; min-height: 1.4em; font-size: 0.95rem; }
.form-status.ok { color: var(--mint); }
.form-status.err { color: var(--coral); }

.footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem;
  padding-block: var(--s-3) var(--s-4);
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: 0.9rem;
}
.footer a { color: var(--muted); }

/* ---------- score sharing ---------- */
.hud-share:not([disabled]) { border-color: var(--amber); color: var(--amber); }
.hud-btn[disabled] { color: var(--muted); cursor: not-allowed; } /* dim the label only: same background as the rest of the bar */
.to-beat {
  margin: 0 0 var(--s-2); padding: 0.7rem 1rem;
  border: 1px solid var(--coral); border-radius: var(--r); background: rgba(255, 93, 98, 0.08);
  font-size: 1.15rem; overflow-wrap: anywhere;
}
.to-beat strong { color: var(--amber); font-variant-numeric: tabular-nums; }
/* share your run: a header with the score, then one step at a time */
.share {
  display: grid; gap: 0.75rem; max-width: 560px; margin: 0 0 var(--s-3);
  padding: var(--s-2); background: var(--panel); border: 1px solid var(--amber); border-radius: var(--r);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.35);
}
.share[hidden], .share-step[hidden] { display: none; }
.share-head { display: flex; align-items: baseline; gap: 0.75rem; }
.share-h { margin: 0; font: 700 1.15rem/1.1 var(--f-display); }
.share-score { color: var(--amber); font-weight: 700; font-variant-numeric: tabular-nums; }
.share-x {
  margin-left: auto; padding: 0.2rem 0.5rem; border: 0; background: none; cursor: pointer;
  color: var(--muted); font: 600 0.82rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: 0.08em;
}
.share-x:hover, .share-x:focus-visible { color: var(--fg); }
.share-step { display: grid; gap: 0.5rem; }
.share-row, .share-link { display: flex; gap: 0.5rem; }
.share-row input, .share-link input { flex: 1 1 auto; min-width: 0; }
.share-row .btn, .share-link .btn { flex: none; }
.share-link input { color: var(--amber); }
.share-native { justify-self: start; }
.share-native[hidden] { display: none; }
.share-note { margin: 0; font-size: 0.88rem; color: var(--muted); }
.share-status { margin: 0; min-height: 1.3em; font-size: 0.95rem; }
.share-status:empty { display: none; }
@media (max-width: 420px) {
  .share-row, .share-link { flex-direction: column; }
  .share-row .btn, .share-link .btn, .share-native { width: 100%; }
  .share .share-social { display: grid; grid-template-columns: repeat(2, 1fr); }
  .share-social a { text-align: center; }
}
.share-status.ok { color: var(--mint); }
.share-status.err { color: var(--coral); }
.share-social { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.share-social[hidden] { display: none; }
.share-social a {
  padding: 0.35rem 0.8rem; border: 1px solid var(--line); border-radius: var(--r);
  color: var(--fg); text-decoration: none; font-size: 0.95rem;
}
.share-social a:hover, .share-social a:focus-visible { border-color: var(--amber); color: var(--amber); }
