/* SEO Soap — "bubble bath" single-box design. */
:root {
  --bg: #04161a;
  --bg-2: #0a2a30;
  --panel: rgba(10, 38, 44, 0.72);
  --line: rgba(140, 255, 220, 0.14);
  --line-hi: rgba(92, 242, 195, 0.5);
  --text: #eafff8;
  --muted: #8db5ad;
  --mint: #5cf2c3;
  --pink: #ff7ad1;
  --lilac: #b49bff;
  --ok: #6bf59a;
  --warn: #ffd166;
  --bad: #ff5c7a;
  --glow: var(--pink);
  --radius: 22px;
  --f-display: "Fredoka", "Figtree", system-ui, sans-serif;
  --f-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse at 50% 25%, var(--bg-2) 0%, var(--bg) 70%) fixed, var(--bg);
  color: var(--text);
  font: 16px/1.55 var(--f-body);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}
a { color: var(--mint); text-decoration: none; }
a:hover { text-decoration: underline; }
.mono { font-family: var(--f-mono); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- backdrop ---------- */
#foam { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.sheen {
  position: fixed; inset: -20%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(35% 30% at 18% 28%, rgba(255, 122, 209, 0.13), transparent 70%),
    radial-gradient(35% 30% at 82% 72%, rgba(92, 242, 195, 0.11), transparent 70%),
    radial-gradient(30% 25% at 60% 10%, rgba(180, 155, 255, 0.10), transparent 70%);
  filter: blur(20px);
  animation: drift 24s ease-in-out infinite alternate;
}
header, main, footer { position: relative; z-index: 1; }

/* ---------- top bar ---------- */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px clamp(16px, 4vw, 40px); }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font: 600 20px/1 var(--f-display); letter-spacing: 0.06em; }
.logo:hover { text-decoration: none; }
.logo b { color: var(--mint); font-weight: 700; margin-left: 0.15em; }
.logo-bubble {
  width: 26px; height: 26px; border-radius: 50%; position: relative;
  background: radial-gradient(circle at 32% 28%, #fff 0 12%, transparent 13%), conic-gradient(from 200deg, var(--mint), var(--pink), var(--lilac), var(--mint));
  box-shadow: 0 0 14px rgba(92, 242, 195, 0.5);
  animation: wobble 5s ease-in-out infinite;
}
.by { color: var(--muted); font-size: 14px; }
.by strong { color: var(--text); font-weight: 600; }

/* ---------- stage ---------- */
main { flex: 1; width: 100%; max-width: 980px; margin: 0 auto; padding: 0 16px; }
.stage { min-height: calc(100vh - 150px); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 0 48px; }
.kicker {
  margin: 0 0 28px; font: 700 clamp(26px, 4.8vw, 44px)/1.1 var(--f-display); text-align: center;
  background: linear-gradient(90deg, var(--mint), var(--text) 35%, var(--pink) 70%, var(--lilac));
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s ease-in-out infinite alternate;
}
.hint { margin: 26px 0 0; color: var(--muted); font-size: 15px; text-align: center; max-width: 440px; }

.sisters { margin-top: 22px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.sister {
  display: grid; gap: 2px; padding: 12px 18px; border-radius: 16px; border: 1px solid var(--line);
  background: rgba(92, 242, 195, 0.04); color: var(--text); min-width: 200px;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
.sister:hover { text-decoration: none; border-color: var(--line-hi); transform: translateY(-3px); background: rgba(92, 242, 195, 0.09); }
.sister-k { font: 500 10px/1 var(--f-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--pink); }
.sister-n { font: 600 16px/1.3 var(--f-display); }
.sister-d { font-size: 13px; color: var(--muted); }

/* ---------- the tub (the one box) ---------- */
.tub-jolt { width: min(540px, 100%); }
.tub {
  position: relative;
  padding: 24px clamp(18px, 5vw, 36px) 28px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(16, 56, 62, 0.85), rgba(6, 22, 26, 0.92));
  border: 1px solid var(--line);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04) inset, 0 30px 80px -20px rgba(0, 0, 0, 0.8), 0 0 60px -10px color-mix(in srgb, var(--glow) 40%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: box-shadow 0.6s ease, border-color 0.6s ease;
}
/* iridescent rim */
.tub::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--rim, 0deg), var(--mint), var(--pink), var(--lilac), var(--mint));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0.55; animation: rim 8s linear infinite;
}
@property --rim { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

.tub-top { display: flex; align-items: center; justify-content: center; gap: 10px; font: 500 12px/1 var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); text-align: center; }
.led { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 10px var(--glow); animation: blink 1.1s steps(2, start) infinite; }

/* core: bubble + progress ring + fizz */
.core-wrap { position: relative; width: 220px; height: 220px; margin: 20px auto 16px; }
.ring { position: absolute; inset: 0; transform: rotate(-90deg); overflow: visible; }
.ring circle { fill: none; stroke-width: 4; }
.ring-track { stroke: rgba(140, 255, 220, 0.12); stroke-dasharray: 3 7; }
.ring-fill {
  stroke: url(#ring-grad); stroke-linecap: round;
  stroke-dasharray: 628.3; stroke-dashoffset: 628.3;
  filter: drop-shadow(0 0 6px var(--glow));
  transition: stroke-dashoffset 0.9s cubic-bezier(.3, .7, .3, 1);
}
.tub[data-state="ok"] .ring-fill, .tub[data-state="warn"] .ring-fill, .tub[data-state="bad"] .ring-fill { stroke: var(--glow); transition-duration: 1.6s; }

.bubble {
  position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; margin: -60px 0 0 -60px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, transparent 55%, rgba(255, 255, 255, 0.10) 68%, rgba(255, 255, 255, 0.35) 100%),
    conic-gradient(from var(--hue, 0deg), rgba(92, 242, 195, 0.55), rgba(255, 122, 209, 0.5), rgba(180, 155, 255, 0.55), rgba(255, 209, 102, 0.35), rgba(92, 242, 195, 0.55));
  box-shadow: 0 0 40px color-mix(in srgb, var(--glow) 45%, transparent), inset 0 0 26px rgba(255, 255, 255, 0.25);
  animation: wobble 4s ease-in-out infinite, hue 7s linear infinite;
  transition: box-shadow 0.6s, transform 0.4s;
  z-index: 2;
}
@property --hue { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.shine { position: absolute; top: 18%; left: 22%; width: 26%; height: 16%; border-radius: 50%; background: rgba(255, 255, 255, 0.85); transform: rotate(-35deg); filter: blur(1px); }
.shine.s2 { top: 38%; left: 15%; width: 8%; height: 8%; opacity: 0.7; }

.readout {
  position: absolute; z-index: 4; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  font: 700 26px/1 var(--f-display); color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55); pointer-events: none;
}
.readout small { display: block; margin-top: 6px; font: 500 11px/1 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.8); }
.readout .big { font-size: 54px; }
.readout.tick { animation: tick 0.35s ease-out; }

/* little bubbles carrying each crawled page up and out */
.fizz { position: absolute; inset: -30px -60px; pointer-events: none; z-index: 3; overflow: visible; }
.mini {
  position: absolute; bottom: 30%; display: flex; align-items: center; gap: 6px;
  font: 500 11px/1 var(--f-mono); color: var(--text); white-space: nowrap;
  animation: rise-pop 2.4s cubic-bezier(.3, .6, .4, 1) forwards;
}
.mini i {
  flex: none; display: block; width: var(--s, 14px); height: var(--s, 14px); border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #fff 0 14%, transparent 16%), conic-gradient(from 120deg, var(--mint), var(--pink), var(--lilac), var(--mint));
  opacity: 0.85; box-shadow: 0 0 10px rgba(92, 242, 195, 0.5);
}
.mini span { max-width: 130px; overflow: hidden; text-overflow: ellipsis; opacity: 0.85; background: rgba(4, 22, 26, 0.6); padding: 3px 6px; border-radius: 6px; }

/* the burst when the scan finishes */
.splash { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.drop { position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px; border-radius: 50%; background: var(--c, var(--mint)); box-shadow: 0 0 8px var(--c, var(--mint)); animation: splash 0.9s cubic-bezier(.15, .7, .3, 1) forwards; }
.burst-ring { position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; margin: -60px; border-radius: 50%; border: 3px solid var(--glow); animation: burst 0.8s ease-out forwards; }

/* phase steps */
.steps { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.steps li {
  position: relative; text-align: center; padding: 7px 4px; border-radius: 999px;
  font: 500 11px/1 var(--f-mono); letter-spacing: 0.04em; color: var(--muted);
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); transition: all 0.4s;
}
.steps li.now { color: var(--bg); background: var(--mint); border-color: var(--mint); box-shadow: 0 0 18px -2px var(--mint); animation: throb 1s ease-in-out infinite; }
.steps li.done { color: var(--mint); border-color: color-mix(in srgb, var(--mint) 50%, transparent); }
.steps li.done::after { content: " ✓"; }

/* scan log */
.log { list-style: none; margin: 0 0 16px; padding: 0; font: 12px/1.75 var(--f-mono); color: var(--muted); text-align: left; }
.log:empty { display: none; }
.log li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: logIn 0.35s ease both; }
.log li::before { content: "○ "; color: var(--pink); }
.log li.hit { color: var(--mint); }
.log li.hit::before { content: "● "; color: var(--mint); }

/* buttons */
.go { display: flex; justify-content: center; }
.go .btn { width: min(320px, 100%); padding: 18px 20px; }
.go .btn-label { font-size: 19px; }
.btn {
  appearance: none; cursor: pointer; border-radius: 16px; padding: 14px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-family: var(--f-display); color: var(--text); background: transparent;
  border: 1px solid var(--line-hi); text-decoration: none !important;
  transition: transform 0.15s ease, box-shadow 0.25s ease, background 0.25s ease, opacity 0.25s;
}
.btn:hover:not(:disabled) { transform: translateY(-2px) scale(1.01); }
.btn:active:not(:disabled) { transform: translateY(0) scale(0.97); }
.btn:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
.btn:disabled { opacity: 0.45; cursor: default; }
.btn-label { font-size: 16px; font-weight: 600; letter-spacing: 0.03em; }
.btn-sub { font: 12px/1.2 var(--f-body); color: var(--muted); }
.btn-main {
  color: #03211b;
  background: linear-gradient(135deg, var(--mint), #a6ffe3 50%, var(--mint));
  background-size: 200% 200%; border-color: transparent;
  box-shadow: 0 8px 28px -8px var(--mint), inset 0 -3px 0 rgba(0, 0, 0, 0.12);
  animation: gloss 4s ease-in-out infinite;
}
.btn-main .btn-sub { color: #0f5446; }
.btn-main:hover:not(:disabled) { box-shadow: 0 10px 36px -6px var(--mint), inset 0 -3px 0 rgba(0, 0, 0, 0.12); }
.btn-deep { border-color: var(--pink); background: rgba(255, 122, 209, 0.08); box-shadow: 0 0 24px -10px var(--pink); }
.btn-deep:hover:not(:disabled) { box-shadow: 0 0 30px -4px var(--pink); background: rgba(255, 122, 209, 0.14); }

.audit-form { display: grid; gap: 12px; animation: unfold 0.5s cubic-bezier(.2, .9, .3, 1.2) both; }
.url {
  width: 100%; padding: 15px 18px; border-radius: 14px; font: 500 17px/1.2 var(--f-mono); color: var(--text);
  background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line-hi); outline: none; text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.url::placeholder { color: rgba(141, 181, 173, 0.6); }
.url:focus { border-color: var(--mint); box-shadow: 0 0 0 4px rgba(92, 242, 195, 0.15), 0 0 26px -6px var(--mint); }
.audit-form.shake .url { animation: nope 0.4s ease; border-color: var(--bad); }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-error { margin: 2px 0 0; padding: 10px 14px; border-radius: 12px; font-size: 14px; color: #ffd6de; background: rgba(255, 92, 122, 0.12); border: 1px solid rgba(255, 92, 122, 0.4); animation: logIn 0.3s ease both; }

.cancel { display: block; margin: 0 auto; appearance: none; cursor: pointer; background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 7px 18px; font: 500 12px/1 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; }
.cancel:hover { color: var(--text); border-color: var(--line-hi); }

/* ---------- tub states ---------- */
/* idle: a constant buzz (inner) plus a bigger jolt every few seconds (outer). */
.tub-jolt.idle { animation: jolt 2.8s ease-in-out infinite; }
.tub[data-state="idle"] { animation: buzz 0.16s linear infinite, alarm 1.4s ease-in-out infinite; }
.tub[data-state="idle"] .bubble { animation: wobble 1.2s ease-in-out infinite, hue 3s linear infinite; }

.tub[data-state="ready"] { --glow: var(--mint); animation: settle 0.5s ease-out; }

.tub[data-state="scanning"] { --glow: var(--mint); border-color: var(--line-hi); animation: settle 0.5s ease-out; }
.tub[data-state="scanning"] .bubble { animation: wobble 1.4s ease-in-out infinite, hue 2s linear infinite, breathe 1.4s ease-in-out infinite; }
.tub[data-state="scanning"] .led { animation-duration: 0.35s; }
.tub[data-state="scanning"]::before { animation-duration: 2s; opacity: 0.9; }

.tub[data-state="ok"] { --glow: var(--ok); }
.tub[data-state="warn"] { --glow: var(--warn); }
.tub[data-state="bad"] { --glow: var(--bad); }
.tub[data-state="ok"], .tub[data-state="warn"], .tub[data-state="bad"] { animation: settle 0.5s ease-out; border-color: color-mix(in srgb, var(--glow) 45%, transparent); }
.tub[data-state="ok"] .led, .tub[data-state="warn"] .led, .tub[data-state="bad"] .led { animation: none; }
.tub[data-state="ok"] .bubble, .tub[data-state="warn"] .bubble, .tub[data-state="bad"] .bubble {
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.55), color-mix(in srgb, var(--glow) 70%, transparent) 40%, color-mix(in srgb, var(--glow) 25%, #04161a) 100%);
  box-shadow: 0 0 50px color-mix(in srgb, var(--glow) 60%, transparent), inset 0 0 26px rgba(255, 255, 255, 0.25);
  animation: popIn 0.7s cubic-bezier(.2, 1.6, .4, 1) both, wobble 6s ease-in-out 0.7s infinite;
}
.tub[data-state="error"] { --glow: var(--bad); animation: nope 0.45s ease; }

.bubble.popping { animation: pop 0.32s ease-in forwards !important; }

/* ---------- results ---------- */
.results { padding: 8px 0 56px; display: grid; gap: 16px; }
.results > * { opacity: 0; }
.results.in > * { animation: rise 0.7s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 0.14s); }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.p-title { margin: 0 0 14px; font: 600 15px/1.2 var(--f-display); letter-spacing: 0.05em; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.p-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.p-head .p-title { margin: 0; }
.count { font: 500 12px/1 var(--f-mono); color: var(--bg); background: var(--mint); border-radius: 999px; padding: 4px 9px; letter-spacing: 0; }

.verdict { --v: var(--mint); display: flex; gap: 22px; align-items: center; border-color: color-mix(in srgb, var(--v) 45%, transparent); box-shadow: 0 0 50px -18px var(--v); padding: 26px; }
.verdict.ok { --v: var(--ok); }
.verdict.warn { --v: var(--warn); }
.verdict.bad { --v: var(--bad); }
.v-score {
  flex: none; width: 104px; height: 104px; border-radius: 50%; display: grid; place-content: center; text-align: center;
  font: 700 38px/1 var(--f-display); color: var(--v);
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--v) 25%, transparent), transparent 70%);
  border: 2px solid var(--v); box-shadow: 0 0 26px -6px var(--v), inset 0 0 20px -8px var(--v);
  animation: wobble 6s ease-in-out infinite;
}
.v-score small { font: 500 12px/1 var(--f-mono); color: var(--muted); margin-top: 4px; }
.v-label { margin: 0 0 6px; font: 500 11px/1 var(--f-mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--v, var(--pink)); }
.verdict h1 { margin: 0 0 8px; font: 700 clamp(24px, 3.8vw, 32px)/1.1 var(--f-display); }
.verdict p { margin: 0; color: #c4e2db; }
.v-meta { margin-top: 10px !important; font-size: 12px; color: var(--muted) !important; overflow-wrap: anywhere; }

.tallies { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tally { --t: var(--mint); display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 12px; text-align: center; }
.tally.bad { --t: var(--bad); }
.tally.warn { --t: var(--warn); }
.tally.info { --t: var(--lilac); }
.t-v { font: 700 34px/1 var(--f-display); color: var(--t); text-shadow: 0 0 18px color-mix(in srgb, var(--t) 50%, transparent); }
.t-k { font: 500 11px/1 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

.bars { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 28px; }
.bar-row { display: grid; gap: 7px; }
.bar-head { display: flex; justify-content: space-between; font-size: 14px; }
.bar-head b { font: 500 14px/1 var(--f-mono); }
.bar-track { height: 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.bar-fill {
  height: 100%; width: 0; border-radius: inherit; position: relative;
  background: var(--c); box-shadow: 0 0 14px -2px var(--c);
  transition: width 1.1s cubic-bezier(.2, .8, .2, 1);
}
/* bubbles fizzing along each filled bar */
.bar-fill::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 10px 50%, rgba(255, 255, 255, 0.55) 0 2.5px, transparent 3px) 0 0 / 22px 100% repeat-x;
  animation: fizzbar 1.6s linear infinite; opacity: 0.7;
}

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  appearance: none; cursor: pointer; font: 500 11px/1 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase;
  padding: 7px 11px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: transparent; transition: all 0.2s;
}
.chip:hover { color: var(--text); }
.chip.on { color: var(--bg); background: var(--mint); border-color: var(--mint); }
.chip.bad.on { background: var(--bad); border-color: var(--bad); }
.chip.warn.on { background: var(--warn); border-color: var(--warn); }
.chip.info.on { background: var(--lilac); border-color: var(--lilac); }

.issues { display: grid; gap: 10px; }
.issue { --s: var(--lilac); border-radius: 14px; border: 1px solid var(--line); border-left: 4px solid var(--s); background: rgba(255, 255, 255, 0.025); overflow: hidden; animation: cascade 0.5s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 0.06s); }
.issue.critical { --s: var(--bad); }
.issue.warning { --s: var(--warn); }
.issue-head { width: 100%; appearance: none; cursor: pointer; background: none; border: 0; color: var(--text); font: inherit; text-align: left; display: grid; grid-template-columns: auto 1fr auto auto; gap: 12px; align-items: center; padding: 13px 16px; }
.issue-head:hover { background: rgba(255, 255, 255, 0.03); }
.sev { width: 10px; height: 10px; border-radius: 50%; background: var(--s); box-shadow: 0 0 10px var(--s); }
.issue-title { font-weight: 600; }
.issue-cat { font: 500 11px/1 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.chev { width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform 0.3s; margin-right: 4px; }
.issue.open .chev, .pages[open] .chev { transform: rotate(-135deg); }
.issue-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s ease; }
.issue.open .issue-body { grid-template-rows: 1fr; }
.issue-body > div { overflow: hidden; }
.issue-body dl { margin: 0; padding: 2px 16px 16px 38px; display: grid; gap: 4px; }
.issue-body dt { font: 500 11px/1.4 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.issue-body dd { margin: 0; color: #cfe8e2; font-size: 15px; }
.issue-body dd.fix { color: var(--text); padding: 10px 12px; border-radius: 10px; background: rgba(92, 242, 195, 0.07); border: 1px dashed rgba(92, 242, 195, 0.35); }
.issue-body dd.url { font: 13px/1.5 var(--f-mono); color: var(--mint); overflow-wrap: anywhere; }
.empty { text-align: center; color: var(--muted); padding: 18px; }
.more { display: block; margin: 14px auto 0; appearance: none; cursor: pointer; background: none; border: 1px solid var(--line-hi); color: var(--mint); border-radius: 999px; padding: 9px 20px; font: 500 13px/1 var(--f-display); letter-spacing: 0.04em; }
.more:hover { background: rgba(92, 242, 195, 0.08); }

.pages summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; }
.pages summary::-webkit-details-marker { display: none; }
.pages summary .p-title { margin: 0; }
.page-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; max-height: 420px; overflow: auto; }
.page-list li { display: grid; grid-template-columns: 46px minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.025); font-size: 14px; }
.code { font: 500 12px/1 var(--f-mono); text-align: center; padding: 4px 0; border-radius: 6px; background: rgba(107, 245, 154, 0.14); color: var(--ok); }
.code.r { background: rgba(255, 209, 102, 0.14); color: var(--warn); }
.code.e { background: rgba(255, 92, 122, 0.14); color: var(--bad); }
.pl-path { font: 13px/1.4 var(--f-mono); color: var(--mint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-title { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-color: rgba(255, 122, 209, 0.35); background: linear-gradient(120deg, rgba(255, 122, 209, 0.08), rgba(180, 155, 255, 0.06) 50%, var(--panel)); }
.cta p { margin: 0; }
.cta #cta-line { color: #d9eee9; max-width: 560px; }
.cta .btn { flex: none; padding: 14px 26px; }

.downloads { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.downloads a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); font: 500 12px/1 var(--f-mono); transition: all 0.2s; }
.downloads a:hover { text-decoration: none; border-color: var(--line-hi); background: rgba(92, 242, 195, 0.08); transform: translateY(-2px); }

.again { display: flex; justify-content: center; padding-top: 6px; }
.again .btn { min-width: 240px; padding: 16px 20px; }

/* ---------- footer ---------- */
.foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px; padding: 22px 16px 28px; color: var(--muted); font-size: 13px; text-align: center; border-top: 1px solid var(--line); }
.foot .sep { opacity: 0.5; }

/* ---------- keyframes ---------- */
@keyframes buzz {
  0%   { transform: translate(0, 0) rotate(0deg); }
  20%  { transform: translate(-1.5px, 1px) rotate(-0.4deg); }
  40%  { transform: translate(1.5px, -1px) rotate(0.4deg); }
  60%  { transform: translate(-1px, -1.5px) rotate(0.2deg); }
  80%  { transform: translate(1px, 1.5px) rotate(-0.2deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}
@keyframes jolt {
  0%, 72%, 100% { transform: translate(0, 0) rotate(0deg); }
  75% { transform: translate(-9px, 2px) rotate(-1.6deg); }
  78% { transform: translate(8px, -2px) rotate(1.4deg); }
  81% { transform: translate(-6px, 1px) rotate(-1deg); }
  84% { transform: translate(5px, 0) rotate(0.8deg); }
  87% { transform: translate(-3px, 0) rotate(-0.4deg); }
  90% { transform: translate(2px, 0) rotate(0.2deg); }
}
@keyframes alarm {
  0%, 100% { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04) inset, 0 30px 80px -20px rgba(0, 0, 0, 0.8), 0 0 40px -14px var(--glow); }
  50%      { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 30px 80px -20px rgba(0, 0, 0, 0.8), 0 0 80px -6px var(--glow); }
}
@keyframes settle { 0% { transform: scale(1); } 30% { transform: scale(0.985); } 100% { transform: scale(1); } }
@keyframes nope { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
@keyframes wobble {
  0%, 100% { border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%; }
  25% { border-radius: 54% 46% 52% 48% / 47% 54% 46% 53%; }
  50% { border-radius: 47% 53% 46% 54% / 53% 47% 54% 46%; }
  75% { border-radius: 52% 48% 55% 45% / 48% 52% 47% 53%; }
}
@keyframes hue { to { --hue: 360deg; } }
@keyframes rim { to { --rim: 360deg; } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
@keyframes throb { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes blink { to { opacity: 0.25; } }
@keyframes tick { from { transform: scale(1.25); } to { transform: scale(1); } }
@keyframes logIn { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(26px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes cascade { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
@keyframes unfold { from { opacity: 0; transform: translateY(10px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes rise-pop {
  0%   { opacity: 0; transform: translate(0, 0) scale(0.4); }
  15%  { opacity: 1; transform: translate(calc(var(--dx) * 0.2), -30px) scale(1); }
  85%  { opacity: 1; transform: translate(var(--dx), -150px) scale(1); }
  100% { opacity: 0; transform: translate(var(--dx), -175px) scale(1.5); }
}
@keyframes pop { 0% { transform: scale(1); opacity: 1; } 60% { transform: scale(1.35); opacity: 0.9; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes popIn { 0% { transform: scale(0.2); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes splash { from { transform: translate(0, 0) scale(1); opacity: 1; } to { transform: translate(var(--x), var(--y)) scale(0.2); opacity: 0; } }
@keyframes burst { from { transform: scale(1); opacity: 0.9; } to { transform: scale(2.1); opacity: 0; } }
@keyframes gloss { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes shimmer { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@keyframes drift { from { transform: translate(-2%, -1%) rotate(0deg); } to { transform: translate(2%, 1%) rotate(4deg); } }
@keyframes fizzbar { from { background-position: 0 0; } to { background-position: 22px 0; } }

/* ---------- small screens ---------- */
@media (max-width: 760px) {
  .tallies { grid-template-columns: 1fr 1fr; }
  .bars { grid-template-columns: 1fr; }
  .cta { flex-direction: column; align-items: flex-start; }
  .page-list li { grid-template-columns: 46px minmax(0, 1fr); }
  .pl-title { display: none; }
}
@media (max-width: 460px) {
  .actions { grid-template-columns: 1fr; }
  .by { font-size: 12px; }
  .logo { font-size: 17px; }
  .verdict { flex-direction: column; align-items: flex-start; gap: 14px; padding: 22px 18px; }
  .issue-head { grid-template-columns: auto 1fr auto; }
  .issue-cat { display: none; }
  .issue-body dl { padding-left: 16px; }
  .stage { min-height: calc(100vh - 170px); }
  .core-wrap { width: 190px; height: 190px; }
  .bubble { width: 104px; height: 104px; margin: -52px 0 0 -52px; }
  .mini span { max-width: 90px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li { white-space: nowrap; }
}

/* People who've asked their OS for less motion get gentle glows, not shakes. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .tub[data-state="idle"] { animation: none !important; }
  .results > * { opacity: 1; }
  .mini, .drop, .burst-ring { display: none; }
}
