:root {
  color-scheme: dark;
  --bg: #120817;
  --bg-soft: #1c1024;
  --card: #24142f;
  --card-2: #2c1738;
  --card-border: rgba(255, 198, 236, 0.16);
  --text: #fff7fb;
  --muted: #d8bfd8;
  --accent: #ff8bd1;
  --accent-2: #b889ff;
  --accent-3: #ffd1ea;
  --button-gradient: linear-gradient(135deg, #ff8bd1, #b889ff);
  --line: rgba(255, 198, 236, 0.16);
  --danger: #ff8f9d;
  --radius: 8px;
  --shadow: 0 22px 70px rgba(16, 5, 23, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(184, 137, 255, 0.12) 0%, transparent 34rem),
    linear-gradient(180deg, var(--bg) 0%, #0d0611 100%);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

button,
input,
textarea {
  font: inherit;
}

a {
  color: var(--accent-3);
  text-decoration: none;
}

a:hover {
  color: var(--text);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 6px 0 12px;
  font-size: clamp(2.55rem, 14vw, 5.2rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(1.45rem, 5vw, 2.1rem);
  line-height: 1.1;
}

h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.25;
}

p {
  margin: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(18, 8, 23, 0.88);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(100%, 1120px);
  margin: 0 auto;
  display: grid;
  gap: 10px;
  padding: 12px 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--text);
  font-weight: 850;
}

.logo-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 209, 234, 0.32);
  border-radius: 50%;
  background: var(--button-gradient);
  box-shadow: 0 10px 32px rgba(255, 139, 209, 0.2);
}

.logo-mark svg {
  width: 27px;
  height: 27px;
  fill: #fff7fb;
}

.logo-text {
  font-size: 1.1rem;
  white-space: nowrap;
}

.top-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 3px;
  scrollbar-width: none;
}

.top-nav::-webkit-scrollbar {
  display: none;
}

.top-nav a {
  flex: 0 0 auto;
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  white-space: nowrap;
}

.top-nav a:hover {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.shell {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 18px 16px 28px;
}

.hero {
  display: grid;
  gap: 18px;
  align-items: center;
  min-height: clamp(520px, 82vh, 720px);
  padding: 28px 0 24px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow,
.muted {
  color: var(--muted);
}

.eyebrow {
  font-size: 0.82rem;
  font-weight: 780;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lead {
  color: #ead7e8;
  max-width: 680px;
  font-size: 1.03rem;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.badges span {
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 247, 251, 0.06);
  color: var(--accent-3);
  font-size: 0.9rem;
}

.hero-orbit {
  width: min(100%, 280px);
  aspect-ratio: 1;
  justify-self: center;
  position: relative;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(255, 139, 209, 0.18), rgba(184, 137, 255, 0.12)),
    var(--bg-soft);
  box-shadow: var(--shadow);
}

.hero-orbit::before,
.hero-orbit::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 209, 234, 0.15);
  border-radius: 50%;
}

.hero-orbit::before {
  inset: 25px;
}

.hero-orbit::after {
  inset: 58px;
}

.hero-orbit span {
  position: absolute;
  inset: 36px;
  border-top: 3px solid var(--accent);
  border-right: 3px solid transparent;
  border-radius: 50%;
}

.hero-orbit strong {
  font-size: 4.4rem;
  line-height: 1;
}

.hero-orbit small {
  position: absolute;
  bottom: 76px;
  color: var(--muted);
}

.views {
  justify-self: start;
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: rgba(36, 20, 47, 0.76);
  border-radius: var(--radius);
}

.views span {
  font-size: 1.4rem;
  font-weight: 850;
}

.views small {
  color: var(--muted);
}

.panel,
.result.has-data,
.result.has-error,
.result.is-loading,
.ad-slot,
.article-card {
  border: 1px solid var(--card-border);
  background: rgba(36, 20, 47, 0.86);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel {
  padding: 16px;
}

.section-head {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.section-head p:not(.eyebrow) {
  color: var(--muted);
  max-width: 720px;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.tab,
.primary,
.mini-form button,
.chips button,
.suggestions button,
.ad-slot a,
.article-card a {
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
}

.tab {
  min-height: 46px;
  color: var(--muted);
  background: var(--card-2);
}

.tab.is-active {
  color: #18091d;
  background: var(--button-gradient);
  font-weight: 850;
}

.form,
.compatibility-only,
.mini-form {
  display: grid;
  gap: 12px;
}

.compatibility-only.is-hidden,
.single-only.is-hidden {
  display: none !important;
}

.field {
  position: relative;
  display: grid;
  gap: 7px;
}

.field span {
  color: var(--muted);
  font-size: 0.92rem;
}

input,
textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18, 8, 23, 0.72);
  color: var(--text);
  padding: 12px 13px;
  outline: none;
}

textarea {
  min-height: 104px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: rgba(216, 191, 216, 0.72);
}

input:focus,
textarea:focus {
  border-color: rgba(255, 139, 209, 0.78);
  box-shadow: 0 0 0 3px rgba(255, 139, 209, 0.16);
}

.primary,
.mini-form button {
  min-height: 52px;
  background: var(--button-gradient);
  color: #18091d;
  font-weight: 900;
}

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.chips button {
  flex: 0 0 auto;
  padding: 10px 13px;
  color: var(--text);
  background: rgba(255, 247, 251, 0.08);
  border: 1px solid var(--line);
}

.suggestions {
  position: absolute;
  z-index: 5;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  display: grid;
  max-height: 250px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #24142f;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.36);
}

.suggestions button {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  color: var(--text);
  background: transparent;
  text-align: left;
}

.suggestions button:hover {
  background: rgba(255, 247, 251, 0.07);
}

.suggestions small {
  color: var(--muted);
}

.ad-slot {
  display: grid;
  gap: 14px;
  margin: 16px 0;
  padding: 16px;
  color: #ecd9ea;
}

.ad-slot div {
  display: grid;
  gap: 5px;
}

.ad-slot span {
  color: var(--accent-3);
  font-size: 0.86rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ad-slot strong {
  font-size: 1.02rem;
}

.ad-slot a,
.article-card a {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  background: rgba(255, 247, 251, 0.08);
  color: var(--accent-3);
  border: 1px solid var(--line);
  font-weight: 760;
}

.result {
  margin: 16px 0;
}

.result.has-data,
.result.has-error,
.result.is-loading {
  padding: 14px;
}

.result.has-error {
  border-color: rgba(255, 143, 157, 0.58);
  color: #ffd8dd;
}

.result-head {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.result-head p {
  color: #ead7e8;
}

.chart-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.chart {
  display: block;
  width: 920px;
  max-width: none;
  height: auto;
}

.rotate-hint {
  display: none;
  margin: 0 0 10px;
  color: var(--accent-3);
  font-size: 0.9rem;
}

.articles {
  padding: 18px 0 2px;
}

.article-grid {
  display: grid;
  gap: 12px;
}

.article-card {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 16px;
}

.article-card p {
  color: var(--muted);
}

.suggest-panel {
  margin-top: 16px;
}

.footer {
  width: min(100%, 1120px);
  margin: 0 auto;
  display: grid;
  gap: 12px;
  padding: 18px 16px 32px;
  color: var(--muted);
}

.footer div {
  display: grid;
  gap: 3px;
}

.footer strong {
  color: var(--text);
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.legal-page {
  max-width: 760px;
}

@media (orientation: portrait) and (max-width: 620px) {
  .rotate-hint {
    display: block;
  }
}

@media (min-width: 640px) {
  .header-inner {
    grid-template-columns: auto 1fr;
    align-items: center;
  }

  .top-nav {
    justify-content: end;
  }

  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 760px) {
  .shell {
    padding: 26px 22px 38px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) 290px;
  }

  .views {
    grid-column: 1 / -1;
  }

  .panel {
    padding: 20px;
  }

  .form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
  }

  .tabs,
  .compatibility-only,
  .primary {
    grid-column: 1 / -1;
  }

  .compatibility-only {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chips {
    grid-column: 1 / -1;
  }

  .mini-form {
    grid-template-columns: 1fr 0.9fr 0.9fr;
    align-items: end;
  }

  .mini-form textarea,
  .mini-form button {
    grid-column: 1 / -1;
  }

  .footer {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

@media (min-width: 1040px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) 330px;
  }

  .hero-orbit {
    width: 330px;
  }

  .article-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ad-slot {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}
