:root {
  --bg-a: #091012;
  --bg-b: #10181e;
  --panel: rgba(7, 12, 15, 0.64);
  --line: rgba(140, 164, 181, 0.22);
  --text: #ebf5ff;
  --muted: #9ab0c4;
  --good: #16d17a;
  --warn: #ffc24b;
  --bad: #ff5d5d;
  --font-ui: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-ui);
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(59, 170, 129, 0.2), transparent),
    radial-gradient(900px 500px at 80% -15%, rgba(59, 123, 170, 0.18), transparent),
    linear-gradient(165deg, var(--bg-a), var(--bg-b));
}

.app-shell {
  width: min(980px, 92vw);
  margin: 0 auto;
  padding: 2.2rem 0 3rem;
}

.hero {
  text-align: center;
  margin-bottom: 1.5rem;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 650;
  font-size: 0.74rem;
}

h1 {
  margin: 0.2rem 0;
  font-size: clamp(1.8rem, 5vw, 2.9rem);
  line-height: 1.1;
}

.subtitle {
  margin: 0;
  color: var(--muted);
}

.verdict-panel {
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 1.25rem;
  background: var(--panel);
  backdrop-filter: blur(10px);
}

.updated-pill {
  display: inline-block;
  margin: 0;
  font-size: 0.78rem;
  color: #a9c1d6;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.orb {
  margin: 1rem auto 1.2rem;
  width: min(430px, 94%);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 1px solid rgba(103, 137, 163, 0.5);
  display: grid;
  place-content: center;
  text-align: center;
  background:
    radial-gradient(circle at 50% 30%, rgba(20, 29, 35, 0.9), rgba(11, 17, 21, 0.95) 65%),
    rgba(10, 14, 18, 0.8);
  box-shadow: inset 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 60px rgba(55, 152, 117, 0.15);
  padding: 2rem;
}

.orb-label {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

#verdict-text {
  margin: 0.7rem 0 0.4rem;
  font-size: clamp(1.5rem, 4vw, 2.3rem);
  line-height: 1.05;
}

#verdict-summary {
  margin: 0;
  color: #bfd0df;
  font-size: 0.96rem;
}

.score-wrap {
  width: min(720px, 96%);
  margin: 0 auto;
}

.score-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.93rem;
}

.score-row p {
  margin: 0.2rem 0 0.45rem;
}

#score-value {
  font-size: 2rem;
  font-weight: 700;
}

.meter {
  height: 12px;
  border-radius: 999px;
  background: rgba(166, 193, 214, 0.18);
  border: 1px solid rgba(166, 193, 214, 0.28);
  overflow: hidden;
}

.meter-fill {
  display: block;
  height: 100%;
  width: 50%;
  border-radius: inherit;
  background: linear-gradient(90deg, #66c5f4, #14d378);
  transition: width 500ms ease;
}

.scale {
  margin: 0.55rem 0 0;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.8rem;
}

.scale span {
  transform: translateX(0.5rem);
}

.indicators {
  margin-top: 1.1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.8rem;
}

.card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  padding: 0.95rem;
}

.card-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
}

.card h3 {
  margin: 0;
  font-size: 0.96rem;
}

.card .value {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0.3rem 0;
}

.badge {
  font-size: 0.74rem;
  padding: 0.28rem 0.52rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.badge.good {
  color: #8ff3bf;
  border-color: rgba(39, 191, 112, 0.5);
  background: rgba(39, 191, 112, 0.12);
}

.badge.neutral {
  color: #ffe1a0;
  border-color: rgba(255, 202, 85, 0.52);
  background: rgba(255, 202, 85, 0.12);
}

.badge.bad {
  color: #ffb0b0;
  border-color: rgba(255, 103, 103, 0.5);
  background: rgba(255, 103, 103, 0.12);
}

.card .note {
  color: var(--muted);
  margin: 0;
  line-height: 1.42;
  font-size: 0.86rem;
}

.footnote {
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.footnote-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.footnote-text {
  margin: 0;
  max-width: 72ch;
}

.donate-slot {
  min-height: 44px;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}

.donate-slot .bmc-btn-container,
.donate-slot a.bmc-btn {
  position: static !important;
  inset: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
}

.donate-slot .bmc-btn-container {
  margin: 0 !important;
}

.donate-slot a.bmc-btn {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28) !important;
}

.good-mode #verdict-text,
.good-mode #score-value {
  color: var(--good);
}

.neutral-mode #verdict-text,
.neutral-mode #score-value {
  color: var(--warn);
}

.bad-mode #verdict-text,
.bad-mode #score-value {
  color: var(--bad);
}

@media (max-width: 700px) {
  .orb {
    width: 100%;
    border-radius: 28px;
    aspect-ratio: auto;
    min-height: 240px;
  }

  .scale span {
    transform: none;
  }

  .footnote-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .footnote-text {
    max-width: none;
  }

  .donate-slot {
    width: 100%;
    justify-content: flex-start;
  }
}
