/* Mobile first: one column, large touch targets; wider screens only get more margin.
   Three themes, chosen in the Profile (assets/theme.js sets <html data-theme>): k7 (default), nocturne, partition.
   Every theme sets the same variables; the few shapes that differ (scale, code label, player marks) are at the end.
   Fonts: assets/fonts/ (OFL); a browser only downloads the fonts the active theme uses. */
@font-face { font-family: "Space Grotesk"; src: url(fonts/space-grotesk.woff2) format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url(fonts/space-mono-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url(fonts/space-mono-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url(fonts/inter.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(fonts/jetbrains-mono.woff2) format("woff2"); font-weight: 100 800; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url(fonts/fraunces.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

/* K7 (default): analogue studio, warm black, tape amber, « REC » red for the comment marks. */
:root {
  --bg: #17120e;
  --panel: #241c16;
  --line: #33281f;          /* separators */
  --border: #3a2e24;        /* field and button borders */
  --text: #f1e6d6;
  --muted: #a8998a;
  --accent: #f0a23b;
  --on-accent: #1a1206;     /* text on the accent colour */
  --mark: #d9483b;
  --error: #ff8a7a;
  --player-bg: rgba(15, 11, 8, .97);
  --radius: 4px;
  --radius-btn: 4px;
  --font: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: var(--font);
  --font-mono: "Space Mono", ui-monospace, monospace;
  color-scheme: dark;
}
/* Nocturne: calm neon, night blue, mint and violet. */
[data-theme="nocturne"] {
  --bg: #0b0d18;
  --panel: #161a2b;
  --line: #22273d;
  --border: #2b3150;
  --text: #e7e9f5;
  --muted: #9095b8;
  --accent: #5ee6c8;
  --on-accent: #0b0d18;
  --mark: #9b8cff;
  --error: #ff8f9e;
  --player-bg: rgba(18, 21, 42, .92);
  --radius: 14px;
  --radius-btn: 999px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Space Grotesk", var(--font);
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  color-scheme: dark;
}
/* Partition: paper and ink, light theme, correction red. */
[data-theme="partition"] {
  --bg: #f4efe6;
  --panel: #fffaf2;
  --line: #ddd4c5;
  --border: #cfc5b4;
  --text: #1d1b18;
  --muted: #645d53;
  --accent: #b8382a;
  --on-accent: #fff;
  --mark: #b8382a;
  --error: #a3261a;
  --player-bg: rgba(29, 27, 24, .98);
  --radius: 6px;
  --radius-btn: 6px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Fraunces", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.5 var(--font);
  padding-bottom: env(safe-area-inset-bottom);
}
[data-theme="nocturne"] body { background: radial-gradient(120% 50vh at 50% 0, #1a1f3d, var(--bg) 70%) no-repeat, var(--bg); }

.bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .8rem 1rem;
  padding-top: max(.8rem, env(safe-area-inset-top));
  border-bottom: 1px solid var(--line);
}
.brand { color: var(--accent); font: 700 1.2rem/1.2 var(--font-head); text-decoration: none; letter-spacing: .02em; }
.brand .world { font-weight: 400; margin-left: .25rem; color: var(--text); }
.brand .module { color: var(--muted); font: 500 .95rem var(--font); margin-left: .35rem; }
.who { color: var(--muted); font-size: .9rem; }

main { padding: 1rem 1rem 0; max-width: 40rem; margin: 0 auto; }
h1, h2 { font-family: var(--font-head); }
h1 { font-size: 1.5rem; margin: .5rem 0 1rem; }
h2 { font-size: 1.15rem; margin: 2rem 0 .8rem; }

form { display: grid; gap: .9rem; }
label { display: grid; gap: .3rem; color: var(--muted); font-size: .95rem; }

input {
  font: inherit;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .75rem .9rem;
  min-height: 48px;
}
input:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

button {
  font: inherit;
  font-weight: 600;
  min-height: 48px;
  padding: .7rem 1.1rem;
  border: 0;
  border-radius: var(--radius-btn);
  background: var(--accent);
  color: var(--on-accent);
  cursor: pointer;
}
button:disabled { opacity: .5; }
button.link {
  min-height: 0;
  padding: .2rem .3rem;
  background: none;
  color: var(--accent);
  font-weight: 500;
  text-decoration: underline;
}

.msg { padding: .7rem .9rem; border-radius: var(--radius); background: var(--panel); }
.msg.error { color: var(--error); }
.url { display: grid; gap: .5rem; }
.url input { font-size: .85rem; width: 100%; }

.invites { list-style: none; padding: 0; margin: 1rem 0 0; }
.invites li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  padding: .6rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .95rem;
}

/* ---- module Écoute ---- */
.tabs { display: flex; gap: .3rem; margin: 0 -1rem 1rem; padding: 0 1rem; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs a { padding: .7rem .8rem; color: var(--muted); text-decoration: none; border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs a.on { color: var(--text); border-bottom-color: var(--accent); }
a { color: var(--accent); }
h3 { font-size: 1rem; margin: 1.5rem 0 .5rem; }

.code { font-family: var(--font-mono); color: var(--muted); }
.hint { color: var(--muted); font-size: .9rem; }

/* Blind code as a label (a cassette sticker in K7). Neutral on purpose: same look for every track. */
.tape { display: grid; margin: 0 0 1rem; padding: .6rem .9rem; border-radius: var(--radius); background: var(--panel); }
.tape small { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.tape strong { font: 700 1.9rem/1.2 var(--font-mono); letter-spacing: .06em; }
.tape .len { font-family: var(--font-mono); font-size: .85rem; color: var(--muted); }

button.secondary { background: var(--panel); color: var(--text); border: 1px solid var(--border); }
textarea, select {
  font: inherit; color: var(--text); background: var(--panel);
  border: 1px solid var(--border); border-radius: var(--radius); padding: .6rem .8rem; min-height: 48px;
}
textarea { resize: vertical; }

/* 1-5 scale: big tappable segments, the radio itself is hidden but keeps keyboard focus.
   The values below the chosen one are lit too (a meter); « ? » (value "") lights only itself. */
.scale { border: 0; padding: 0; margin: 0; }
.scale legend { color: var(--muted); font-size: .95rem; margin-bottom: .3rem; }
.scale { display: flex; flex-wrap: wrap; gap: .4rem; align-items: flex-end; }
.scale legend { flex-basis: 100%; }
.scale label { display: block; flex: 1; max-width: 72px; }
.scale input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.scale span {
  display: grid; place-items: center; min-width: 48px; min-height: 48px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--border); color: var(--text); font-weight: 600; cursor: pointer;
}
.scale label:has(~ label input:checked:not([value=""])) span,
.scale input:checked + span { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.scale input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

details { background: var(--panel); border-radius: var(--radius); padding: .6rem .9rem; }
details[open] { display: grid; gap: .8rem; }
summary { cursor: pointer; color: var(--accent); min-height: 32px; }
details .scale span { background: var(--bg); }

.annotate { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }

.filters { display: flex; gap: .5rem; margin-bottom: .8rem; }
.filters select { flex: 1; }
.catalogue { list-style: none; padding: 0; margin: 0; }
.catalogue a { display: grid; gap: .1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); }
.catalogue .title { font-weight: 600; }
.catalogue .meta { color: var(--muted); font-size: .88rem; }

.info { display: grid; grid-template-columns: auto 1fr; gap: .2rem 1rem; margin: .5rem 0 1rem; }
.info dt { color: var(--muted); }
.info dd { margin: 0; overflow-wrap: anywhere; }
.stats { border-collapse: collapse; margin: .5rem 0; }
.stats caption { text-align: left; color: var(--muted); padding-bottom: .3rem; }
.stats td { padding: .2rem 1rem .2rem 0; }
.comments { list-style: none; padding: 0; display: grid; gap: .6rem; }
.comments li { background: var(--panel); border-radius: var(--radius); padding: .6rem .8rem; }
.stamp { min-height: 0; padding: .1rem .5rem; margin-right: .4rem; font-size: .85rem; font-family: var(--font-mono); }
.reveal { margin-top: 1rem; }

.chips { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; margin: .4rem 0; }
.chip { background: var(--panel); border: 1px solid var(--border); border-radius: 999px; padding: .15rem .6rem; font-size: .85rem; }
.chip.auto { border-style: dashed; }
.pre { white-space: pre-wrap; margin: .5rem 0 0; font-size: .92rem; }
.reveal details, .info + details { margin-top: .5rem; }

.hq { min-height: 32px; padding: .2rem .6rem; font-size: .8rem; background: var(--panel); color: var(--muted); border: 1px solid var(--border); font-family: var(--font-mono); }
.hq.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.who { display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; justify-content: flex-end; }

/* ---- player bar: sticky at the bottom of the view, thumb-sized controls ---- */
.player {
  position: sticky; bottom: 0; z-index: 10;
  margin: 1.5rem -1rem 0; padding: .5rem 1rem calc(.6rem + env(safe-area-inset-bottom));
  background: var(--player-bg); border-top: 1px solid var(--line); backdrop-filter: blur(8px);
}
.seekwrap { position: relative; height: 28px; display: flex; align-items: center; }
.seek { width: 100%; margin: 0; accent-color: var(--accent); height: 28px; background: transparent; }
.marks { position: absolute; inset: 0; pointer-events: none; }
.mark {
  position: absolute; top: 2px; width: 12px; height: 12px; min-height: 0; padding: 0; margin-left: -6px;
  border-radius: 50%; background: var(--mark); border: 2px solid var(--bg); pointer-events: auto; cursor: pointer;
}
.controls { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.controls .pp { width: 56px; height: 56px; border-radius: 50%; font-size: 1.2rem; padding: 0; }
.controls .jump { background: var(--panel); color: var(--text); border: 1px solid var(--border); padding: .5rem .6rem; min-width: 48px; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.controls .time { margin-left: auto; color: var(--muted); font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: .9rem; }

.devbanner { background: repeating-linear-gradient(45deg, #7a1f1f, #7a1f1f 12px, #8f2a2a 12px, #8f2a2a 24px);
  color: #fff; font-weight: 700; text-align: center; padding: .4rem 1rem; font-size: .85rem; letter-spacing: .03em; }

.foot { text-align: center; padding: 1.5rem 1rem calc(1rem + env(safe-area-inset-bottom)); font-size: .85rem; }
.foot a { color: var(--muted); }
.update { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(110px + env(safe-area-inset-bottom)); z-index: 20;
  background: var(--panel); border: 1px solid var(--accent); border-radius: var(--radius); padding: .5rem .8rem;
  display: flex; align-items: center; gap: .6rem; box-shadow: 0 6px 24px rgba(0,0,0,.4); max-width: calc(100% - 2rem); }
.update button { min-height: 40px; }
.check { display: flex; align-items: center; gap: .6rem; color: var(--text); }
.check input { width: 24px; height: 24px; min-height: 0; accent-color: var(--accent); }
.release ul { padding-left: 1.2rem; }

/* Theme choice (Profile): three big cards, each previewed in its own colours whatever the active theme. */
.themes { border: 0; padding: 0; margin: 0; display: grid; gap: .5rem; }
.themes legend { color: var(--muted); font-size: .95rem; margin-bottom: .3rem; }
.themes label { display: block; }
.themes input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.themes .card { display: grid; gap: .1rem; min-height: 56px; padding: .6rem .9rem; border-radius: 8px; border: 2px solid transparent; cursor: pointer; }
.themes .card b { font-size: 1rem; }
.themes .card small { font-size: .85rem; opacity: .8; }
.themes input:checked + .card { border-color: var(--text); box-shadow: 0 0 0 2px var(--bg) inset; }
.themes input:focus-visible + .card { outline: 2px solid var(--accent); outline-offset: 2px; }
.card.t-k7 { background: #17120e; color: #f1e6d6; font-family: "Space Grotesk", sans-serif; }
.card.t-k7 b { color: #f0a23b; }
.card.t-nocturne { background: linear-gradient(135deg, #1a1f3d, #0b0d18); color: #e7e9f5; font-family: "Inter", sans-serif; }
.card.t-nocturne b { color: #5ee6c8; }
.card.t-partition { background: #f4efe6; color: #1d1b18; font-family: "Inter", sans-serif; }
.card.t-partition b { font-family: "Fraunces", serif; color: #b8382a; }

/* ---------------------------------------------------------------- theme shapes */

/* K7: the scale is a VU meter (taller to the right, 5 = « REC » red); the code is a cassette sticker. */
:root:not([data-theme]) .scale label:nth-of-type(1) span, [data-theme="k7"] .scale label:nth-of-type(1) span { min-height: 44px; }
:root:not([data-theme]) .scale label:nth-of-type(2) span, [data-theme="k7"] .scale label:nth-of-type(2) span { min-height: 50px; }
:root:not([data-theme]) .scale label:nth-of-type(3) span, [data-theme="k7"] .scale label:nth-of-type(3) span { min-height: 56px; }
:root:not([data-theme]) .scale label:nth-of-type(4) span, [data-theme="k7"] .scale label:nth-of-type(4) span { min-height: 62px; }
:root:not([data-theme]) .scale label:nth-of-type(5) span, [data-theme="k7"] .scale label:nth-of-type(5) span { min-height: 68px; }
[data-theme="k7"] .scale span { font-family: var(--font-mono); }
[data-theme="k7"] .scale label:nth-of-type(5) input:checked + span { background: var(--mark); border-color: var(--mark); color: #fff; }
[data-theme="k7"] .tape { background: #efe2c8; color: #2a1d12; border-left: 10px solid var(--accent); box-shadow: inset 0 -3px 0 #d9c7a5; }
[data-theme="k7"] .tape small, [data-theme="k7"] .tape .len { color: #6e5a45; }
[data-theme="k7"] button[type="submit"] { text-transform: uppercase; letter-spacing: .06em; }
[data-theme="k7"] .controls .pp { border-radius: 6px; }
[data-theme="k7"] .controls .time { color: var(--accent); background: #000; padding: .25rem .45rem; border-radius: 3px; }
[data-theme="k7"] .mark { border-radius: 0; background: none; border: 0; width: 12px; height: 12px;
  clip-path: polygon(0 0, 100% 0, 50% 80%); background-color: var(--mark); }

/* Nocturne: the scale is an equalizer (rising bars, gradient when lit); glassy rounded player. */
[data-theme="nocturne"] .scale label:nth-of-type(1) span { min-height: 48px; }
[data-theme="nocturne"] .scale label:nth-of-type(2) span { min-height: 56px; }
[data-theme="nocturne"] .scale label:nth-of-type(3) span { min-height: 64px; }
[data-theme="nocturne"] .scale label:nth-of-type(4) span { min-height: 72px; }
[data-theme="nocturne"] .scale label:nth-of-type(5) span { min-height: 80px; }
[data-theme="nocturne"] .scale label:has(~ label input:checked:not([value=""])) span,
[data-theme="nocturne"] .scale input:checked + span { background: linear-gradient(180deg, #9b8cff, #5ee6c8); border-color: transparent; }
[data-theme="nocturne"] .scale input:checked + span { box-shadow: 0 0 18px rgba(94, 230, 200, .45); }
[data-theme="nocturne"] .brand { background: linear-gradient(90deg, #5ee6c8, #9b8cff); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-theme="nocturne"] .brand .world { color: inherit; }
[data-theme="nocturne"] .tabs { border-bottom: 0; gap: .2rem; }
[data-theme="nocturne"] .tabs a { border-bottom: 0; border-radius: 999px; padding: .6rem .9rem; }
[data-theme="nocturne"] .tabs a.on { background: rgba(255, 255, 255, .09); color: #fff; }
[data-theme="nocturne"] .tape { background: none; padding: 0; }
[data-theme="nocturne"] .tape small { color: var(--accent); }
[data-theme="nocturne"] .player { border-radius: 20px 20px 0 0; border-top-color: rgba(255, 255, 255, .08); }
[data-theme="nocturne"] .controls .pp { background: #fff; color: var(--bg); box-shadow: 0 0 24px rgba(94, 230, 200, .35); }
[data-theme="nocturne"] .controls .jump { border-radius: 999px; }

/* Partition: the scale is five round notes on a staff; dark ink player bar on the paper page. */
[data-theme="partition"] .scale label { flex: 0 0 auto; }
[data-theme="partition"] .scale span { border-radius: 50%; width: 48px; border: 2px solid var(--text); font-family: var(--font-head); font-size: 1.1rem; }
[data-theme="partition"] .scale label:has(~ label input:checked:not([value=""])) span { background: var(--text); color: var(--bg); border-color: var(--text); opacity: .35; }
[data-theme="partition"] .scale input:checked + span { background: var(--text); color: var(--bg); border-color: var(--text); }
[data-theme="partition"] .scale { background: linear-gradient(transparent calc(50% + .9rem), var(--border) 0, var(--border) calc(50% + .9rem + 1px), transparent 0); }
[data-theme="partition"] .brand { color: var(--text); font-size: 1.35rem; }
[data-theme="partition"] .brand .world { font-style: italic; color: var(--accent); }
[data-theme="partition"] h1 { font-weight: 600; }
[data-theme="partition"] .tape { background: none; padding: 0; }
[data-theme="partition"] .tape small { color: var(--accent); }
[data-theme="partition"] .player { color: #f4efe6; --text: #f4efe6; --muted: #b8b0a3; --panel: #2c2925; --border: #4a453e; --accent: #f4efe6; --on-accent: #1d1b18; --bg: #1d1b18; --mark: #e0604f; }

/* ---- lot 1: members, my data, security log ---- */
.members, .events { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.member { background: var(--panel); border: 1px solid var(--border, #333842); border-radius: var(--radius); padding: .6rem .8rem; }
.member p { margin: .25rem 0; }
.member .actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.member.s-revoked, .member.s-expired { opacity: .65; }
.member.s-suspended { border-style: dashed; }
.events li { font-size: .9rem; }
.mydata label { margin: .6rem 0; }
details.danger { margin-top: .8rem; border: 1px solid var(--error, #e5736b); }
details.danger summary { color: var(--error, #e5736b); }
.danger-btn { background: var(--error, #e5736b); color: #1a0606; }
details.notice { margin: .8rem 0; }

/* ---- mode Découverte ---- */
.swipe-card {
  position: relative; display: grid; place-items: center; gap: .3rem; min-height: 46vh; margin: .5rem 0 1rem;
  border-radius: calc(var(--radius) * 2); background: var(--panel); border: 1px solid var(--border, #333842);
  touch-action: none; user-select: none; cursor: grab; transition: transform .25s ease, opacity .25s ease, border-color .15s;
  text-align: center; padding: 1.5rem;
}
.swipe-card:active { cursor: grabbing; transition: none; }
.swipe-card small { color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.swipe-card strong { font-family: var(--font-mono, ui-monospace, monospace); font-size: clamp(2rem, 9vw, 3.2rem); }
.swipe-card .len { color: var(--muted); }
.swipe-card .swipe-hint { position: absolute; bottom: .8rem; left: 0; right: 0; color: var(--muted); font-size: .8rem; }
.swipe-card.armed[data-dir="right"] { border-color: var(--accent); }
.swipe-card.armed[data-dir="up"] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent); }
.swipe-card.armed[data-dir="left"], .swipe-card.armed[data-dir="down"] { border-color: var(--error, #e5736b); }
.swipe-card.gone-right { transform: translateX(120vw) rotate(20deg); opacity: 0; }
.swipe-card.gone-left { transform: translateX(-120vw) rotate(-20deg); opacity: 0; }
.swipe-card.gone-up { transform: translateY(-120vh); opacity: 0; }
.swipe-buttons { display: flex; justify-content: center; gap: .8rem; margin: .5rem 0; }
.swipe-btn { width: 60px; height: 60px; border-radius: 50%; font-size: 1.4rem; padding: 0; position: relative; }
.swipe-btn.left, .swipe-btn.down { background: var(--panel); color: var(--text); border: 1px solid var(--border, #333842); }
.swipe-btn small { position: absolute; top: -4px; right: -4px; font-size: .7rem; background: var(--bg); color: var(--text);
  border-radius: 999px; padding: 0 .35rem; border: 1px solid var(--border, #333842); }
.swipe-toast { min-height: 1.5rem; text-align: center; }
.report-panel { background: var(--panel); border-radius: var(--radius); padding: .8rem; margin-bottom: 1rem; display: grid; gap: .6rem; }
.reasons { border: 0; padding: 0; margin: 0; display: grid; gap: .3rem; }
@media (prefers-reduced-motion: reduce) { .swipe-card { transition: none; } }

/* ---- player settings (Profile): full or minimal bar, optional gestures on the bar ---- */
.themes .card.opt { background: var(--panel); color: var(--text); border-color: var(--border); }
.themes input:checked + .card.opt { border-color: var(--accent); }
.player.min .controls { flex-wrap: nowrap; }
/* Gestures: vertical scroll still works; horizontal moves, taps and double taps go to the bar (no double-tap zoom). */
.player.gestures { touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.player.gestures .controls { min-height: 64px; }
.controls { position: relative; }
.gfeedback { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); pointer-events: none;
  padding: .3rem .8rem; border-radius: var(--radius); background: var(--accent); color: var(--on-accent);
  font: 700 1rem var(--font-mono); opacity: 0; transition: opacity .15s; }
.gfeedback.on { opacity: 1; }
.gfeedback:empty { display: none; }

/* ---- stats, thanks, contact ---- */
.counter { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .8rem; margin: 1rem 0; }
.counter > div:not(.vs) { background: var(--panel); border-radius: var(--radius); padding: .9rem; display: grid; gap: .2rem; }
.counter small { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; }
.counter strong { font-family: var(--font-mono, ui-monospace, monospace); font-size: clamp(1.4rem, 6vw, 2.2rem); }
.counter .vs { color: var(--accent); font-weight: 700; }
@media (max-width: 420px) { .counter { grid-template-columns: 1fr; } .counter .vs { text-align: center; } }
.top { padding-left: 1.3rem; display: grid; gap: .3rem; }
.models th, .models td { padding: .25rem .6rem .25rem 0; text-align: left; }
.credits { padding-left: 1.1rem; display: grid; gap: .35rem; }
.button-link { display: inline-block; padding: .7rem 1.1rem; border-radius: var(--radius); background: var(--accent); color: var(--on-accent, #1a1206); text-decoration: none; font-weight: 600; }
.saved { margin-left: .6rem; }

/* Découverte: the browser blocked the automatic start; shown above the card, hard to miss. */
.blocked { display: grid; gap: .5rem; margin: .5rem 0; padding: .9rem 1rem; border-radius: var(--radius);
  background: var(--panel); border: 2px solid var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }
.blocked strong { color: var(--accent); font-size: 1.05rem; }
.blocked p { margin: 0; font-size: .92rem; }
.blocked button { justify-self: start; min-width: 160px; }

/* ---- volume ---- */
.volbox { display: inline-flex; align-items: center; gap: .3rem; }
.vol { width: 88px; accent-color: var(--accent); }
@media (max-width: 420px) { .vol { width: 64px; } }
