:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --ink: #202124;
  --muted: #5f6368;
  --line: #dadce0;
  --accent: #1769e0;
  --accent-2: #f8b400;
  --soft: #e8f0fe;
  --danger: #b42318;
  --warn: #ea8600;
  --ok: #188038;
  --red: #ea4335;
  --green: #34a853;
  --yellow: #fbbc04;
  --blue: #4285f4;
  --shadow: 0 10px 28px rgba(35, 48, 68, 0.10);
  --shadow-strong: 0 18px 44px rgba(35, 48, 68, 0.14);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #f7f9fc 0, #fbfcfd 420px, var(--bg) 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a { color: inherit; }

button,
input,
select {
  font: inherit;
}

button,
a,
input,
select {
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(23, 105, 224, 0.22);
  outline-offset: 2px;
}

.site-header,
.site-footer {
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0 12px;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
}

.site-header::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: 72px;
  z-index: -1;
  background: rgba(246, 248, 251, 0.82);
  border-bottom: 1px solid rgba(218, 220, 224, 0.72);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand:hover {
  color: var(--accent);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--accent);
  font-size: 12px;
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  box-shadow: 0 3px 14px rgba(26, 115, 232, 0.18);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.select-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.share-mini,
.like-mini {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  padding: 0 11px;
  cursor: pointer;
  font-weight: 750;
}

.share-mini:hover,
.like-mini:hover {
  border-color: #c6dafc;
  background: var(--soft);
  color: var(--accent);
}

.mini-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

select,
input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
}

.select-label select {
  width: auto;
}

.segmented {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}

.segmented button {
  min-width: 58px;
  min-height: 36px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.segmented button:last-child { border-right: 0; }
.segmented button.is-active {
  background: var(--ink);
  color: #fff;
}

.quick-nav {
  position: sticky;
  top: 65px;
  z-index: 18;
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  gap: 22px;
  padding: 8px 0 0;
}

.quick-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  padding: 0;
  text-decoration: none;
  font-size: 13px;
  font-weight: 850;
  box-shadow: none;
}

.quick-nav a:hover {
  background: transparent;
  color: var(--ink);
  transform: none;
}

.app-shell {
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
}

.hero-section {
  display: block;
  min-height: 0;
  padding: 34px 0 10px;
}

.hero-copy h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(38px, 5vw, 56px);
  line-height: 1;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
  margin: 16px 0 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 800;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.primary-link,
.ghost-link,
.share-actions button,
#adPreview {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  padding: 0 16px;
  font-weight: 750;
  text-decoration: none;
}

.primary-link:hover,
.share-actions button:first-child:hover {
  background: #0f5ecf;
  border-color: #0f5ecf;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(23, 105, 224, 0.22);
}

.ghost-link:hover,
.share-actions button:last-child:hover {
  border-color: #b8c7dc;
  background: #f8fbff;
  transform: translateY(-1px);
}

.primary-link,
.share-actions button:first-child {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
}

.ghost-link,
.share-actions button:last-child,
#adPreview {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.panel,
.result-panel,
.ad-slot {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.data-panel,
.stat-card,
.ranking-card,
.poll-card,
.trend-card,
.play-card,
.guide-card,
.method-card,
.trust-grid article,
.hub-grid article {
  border: 1px solid rgba(218, 220, 224, 0.86);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: none;
}

.mini-result {
  padding: 22px;
  box-shadow: var(--shadow-strong);
}

.mini-result p,
.mini-result small {
  color: var(--muted);
}

.mini-result strong {
  display: block;
  font-size: 28px;
  margin: 8px 0 18px;
}

.status-dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--ok);
}

.meter {
  height: 10px;
  border-radius: 999px;
  background: #e6e0d2;
  overflow: hidden;
  margin-bottom: 12px;
}

.meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border: 1px solid rgba(218, 220, 224, 0.8);
  border-radius: 8px;
  overflow: hidden;
  margin: 22px 0 0;
}

.trust-strip span {
  background: var(--surface);
  padding: 14px;
  text-align: center;
  color: var(--muted);
  font-weight: 700;
}

.trust-strip span::before {
  display: none;
}

.data-dashboard,
.rankings-section,
.poll-wall {
  padding: 22px 0 0;
}

.play-lab {
  padding: 30px 0 6px;
}

.trend-section,
.competitor-section {
  padding: 48px 0 10px;
}

.methodology-section,
.source-trust-section,
.seo-hub-section {
  padding: 52px 0 8px;
}

.method-grid,
.trust-grid,
.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.method-card,
.trust-grid article,
.hub-grid article {
  padding: 18px;
}

.method-card h3,
.hub-grid h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.15;
}

.method-card p,
.trust-grid p,
.hub-grid p {
  margin: 0;
  color: var(--muted);
}

.trust-grid strong {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
}

.hub-grid ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 18px;
}

.hub-grid a {
  color: var(--ink);
  font-weight: 800;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.hub-grid a:hover {
  color: var(--accent);
}

.seo-page .hero-section {
  padding-bottom: 28px;
}

.article-body {
  max-width: 900px;
  padding: 20px 0 60px;
}

.article-body h2 {
  margin: 34px 0 10px;
  font-size: 28px;
  line-height: 1.1;
}

.article-body p,
.article-body li {
  color: var(--muted);
  font-size: 17px;
}

.seo-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.seo-table th,
.seo-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.seo-table th {
  background: #f1f3f4;
  color: var(--ink);
  font-size: 13px;
  text-transform: uppercase;
}

.seo-table tr:last-child td {
  border-bottom: 0;
}

.compact-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  max-width: none;
}

.play-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 14px;
}

.play-card {
  padding: 18px;
  min-height: 250px;
}

.play-card:hover,
.trend-card:hover,
.ranking-card:hover,
.poll-card:hover,
.guide-card:hover {
  transform: translateY(-1px);
  border-color: #c8ccd2;
}

.play-card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.12;
}

.duel-board {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  margin: 18px 0;
}

.duel-choice,
.chip-grid button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  color: var(--ink);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.duel-choice {
  display: grid;
  gap: 8px;
  min-height: 104px;
  padding: 16px;
  text-align: left;
}

.duel-choice:hover,
.chip-grid button:hover,
.duel-choice.is-selected,
.chip-grid button.is-selected {
  border-color: #c6dafc;
  background: #f8fbff;
  transform: translateY(-1px);
}

.duel-choice span {
  color: var(--muted);
  font-weight: 800;
}

.duel-choice strong {
  font-size: 28px;
}

.versus {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--accent);
  font-weight: 900;
}

.chip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 18px 0;
}

.chip-grid button {
  min-height: 48px;
  padding: 8px 10px;
  font-weight: 800;
}

.play-result {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.play-card blockquote {
  min-height: 96px;
  margin: 18px 0;
  padding: 16px;
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
  background: #f8fbff;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 850;
}

.freshness-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid #c6dafc;
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent);
  padding: 0 12px;
  font-size: 13px;
  font-weight: 850;
}

.trend-grid,
.competitor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.trend-card,
.competitor-card {
  padding: 18px;
}

.trend-card h3,
.competitor-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.15;
}

.trend-card p,
.competitor-card p {
  color: var(--muted);
  margin: 0;
}

.tag-row {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 14px 0;
}

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  background: #f1f3f4;
  color: var(--muted);
  padding: 0 9px;
  font-size: 12px;
  font-weight: 800;
}

.trend-score {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}

.trend-score strong {
  color: var(--accent);
  font-size: 28px;
}

.trend-score .bar-track {
  grid-column: auto;
}

.competitor-card strong {
  display: block;
  margin-top: 12px;
  color: var(--accent);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.stat-card {
  padding: 18px;
}

.stat-card span {
  color: var(--muted);
  font-weight: 750;
  font-size: 13px;
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: 30px;
  line-height: 1;
}

.stat-card small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.insight-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 16px;
}

.data-panel {
  padding: 20px;
  overflow: hidden;
}

.panel-heading.compact h3,
.data-panel h3 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 16px;
}

table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  padding: 13px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pressure {
  display: inline-flex;
  min-width: 70px;
  justify-content: center;
  border-radius: 999px;
  padding: 4px 9px;
  font-weight: 800;
  font-size: 12px;
}

.pressure.high { background: #fce8e6; color: var(--red); }
.pressure.medium { background: #fef7e0; color: #9a6700; }
.pressure.low { background: #e6f4ea; color: var(--ok); }

.donut-wrap {
  display: grid;
  justify-items: center;
  gap: 18px;
  margin-top: 16px;
}

.donut-chart {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: conic-gradient(var(--blue) 0 36%, var(--red) 36% 55%, var(--yellow) 55% 68%, var(--green) 68% 100%);
  position: relative;
}

.donut-chart::after {
  content: "";
  position: absolute;
  inset: 44px;
  border-radius: 50%;
  background: var(--surface);
}

.legend-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  width: 100%;
  list-style: none;
}

.legend-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.legend-list i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 8px;
}

.ranking-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.ranking-tabs button {
  flex: 0 0 auto;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  padding: 0 14px;
  cursor: pointer;
  font-weight: 750;
}

.ranking-tabs button.is-active {
  background: var(--soft);
  color: var(--accent);
  border-color: #c6dafc;
}

.ranking-grid,
.poll-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.ranking-card,
.poll-card {
  padding: 18px;
}

.ranking-card h3,
.poll-card h3 {
  margin: 0 0 12px;
  font-size: 20px;
}

.rank-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.rank-list li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
  background: #f8fafd;
}

.rank-number {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
}

.rank-label {
  font-weight: 780;
}

.rank-meta {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.bar-track {
  grid-column: 2 / 4;
  height: 6px;
  border-radius: 999px;
  background: #edf2f7;
  overflow: hidden;
}

.bar-track span {
  display: block;
  height: 100%;
  background: var(--accent);
}

.poll-options {
  display: grid;
  gap: 9px;
}

.poll-options button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 8px 10px;
  cursor: pointer;
  text-align: left;
}

.poll-options button:hover {
  border-color: #bcd1f8;
  background: #f8fbff;
  transform: translateY(-1px);
}

.poll-options button.is-selected {
  border-color: var(--accent);
  background: var(--soft);
  box-shadow: inset 4px 0 0 var(--accent);
}

.poll-options span:last-child {
  color: var(--accent);
  font-weight: 850;
}

.poll-nudge {
  margin: 12px 0 0;
  color: var(--accent);
  font-weight: 850;
  font-size: 13px;
}

.persona-section {
  padding: 46px 0 10px;
}

.persona-layout {
  display: grid;
  grid-template-columns: minmax(0, 540px);
  justify-content: center;
  gap: 14px;
  align-items: start;
}

.avatar-controls {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.avatar-primary-row {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) repeat(3, auto);
  gap: 10px;
  align-items: end;
}

.avatar-primary-row .button-link {
  min-height: 46px;
}

.avatar-controls > #refreshPersona {
  display: none;
}

.button-link {
  border: 0;
  cursor: pointer;
}

.persona-card {
  position: relative;
  overflow: hidden;
  min-height: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 20% 12%, rgba(251, 188, 4, 0.25), transparent 24%),
    radial-gradient(circle at 86% 18%, rgba(66, 133, 244, 0.20), transparent 26%),
    linear-gradient(145deg, #fff, #f7fbff 58%, #fff7fb);
  box-shadow: var(--shadow);
}

.persona-card .trait-grid {
  display: none;
}

.persona-card .avatar-face {
  top: 48px;
  width: 126px;
  height: 128px;
}

.persona-card .avatar-hair {
  top: 20px;
  width: 150px;
  height: 82px;
}

.persona-card .avatar-hair::before {
  left: 24px;
  top: 42px;
  width: 92px;
  height: 28px;
}

.persona-card .avatar-hair::after {
  left: 8px;
  top: 48px;
  width: 24px;
  height: 48px;
}

.persona-card .avatar-ear {
  top: 88px;
  width: 20px;
  height: 30px;
}

.persona-card .avatar-ear.left { left: 30px; }
.persona-card .avatar-ear.right { right: 30px; }

.persona-card .eye {
  top: 48px;
  width: 20px;
  height: 24px;
}

.persona-card .eye.left { left: 27px; }
.persona-card .eye.right { right: 27px; }

.persona-card .mouth { top: 88px; }
.persona-card .nose { top: 74px; }

.persona-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(32, 33, 36, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(32, 33, 36, 0.04) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}

.persona-card > * {
  position: relative;
  z-index: 1;
}

.persona-top,
.persona-bottom {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  width: min(400px, 100%);
  margin: 0 auto;
  padding: 10px;
  border: 1px solid rgba(218, 220, 224, 0.8);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.mini-brand {
  font-size: 14px;
}

#personaBadge {
  border: 1px solid #c6dafc;
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent);
  padding: 6px 10px;
  font-weight: 850;
  font-size: 12px;
}

.anime-avatar {
  position: relative;
  width: min(190px, 62vw);
  height: 190px;
  margin: 12px auto 4px;
  border-radius: 8px;
  background: linear-gradient(135deg, #bfe3ff 0 50%, #ffffff 50%);
  overflow: visible;
}

.anime-avatar[data-bg="mint"] {
  background: linear-gradient(135deg, #c8f7dc 0 50%, #ffffff 50%);
}

.anime-avatar[data-bg="pink"] {
  background: linear-gradient(135deg, #ffd0e6 0 50%, #ffffff 50%);
}

.anime-avatar[data-bg="yellow"] {
  background: linear-gradient(135deg, #fff2a8 0 50%, #ffffff 50%);
}

.anime-avatar[data-bg="grid"] {
  background:
    linear-gradient(90deg, rgba(32, 33, 36, .08) 1px, transparent 1px),
    linear-gradient(rgba(32, 33, 36, .08) 1px, transparent 1px),
    #f8fafd;
  background-size: 22px 22px;
}

.anime-avatar[data-bg="purple"] {
  background: linear-gradient(135deg, #dbc8ff 0 50%, #ffffff 50%);
}

.anime-avatar[data-bg="sunset"] {
  background: linear-gradient(135deg, #ffd09a 0 34%, #ffb3c7 34% 67%, #ffffff 67%);
}

.anime-avatar::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 108px;
  height: 46px;
  transform: translateX(-50%);
  border: 5px solid var(--ink);
  border-bottom: 0;
  border-radius: 48px 48px 8px 8px;
  background: linear-gradient(90deg, #d8e7ff 0 48%, #ffffff 48% 52%, #d8e7ff 52%);
  z-index: 1;
}

.anime-avatar[data-outfit="hoodie"]::after {
  background: linear-gradient(90deg, #dbeafe 0 48%, #ffffff 48% 52%, #dbeafe 52%);
}

.anime-avatar[data-outfit="suit"]::after {
  background: linear-gradient(90deg, #202124 0 42%, #ffffff 42% 58%, #202124 58%);
}

.anime-avatar[data-outfit="creative"]::after {
  background: linear-gradient(90deg, #ffd6e7 0 36%, #fff7ad 36% 64%, #c7f9cc 64%);
}

.anime-avatar[data-outfit="polo"]::after {
  background: linear-gradient(90deg, #d9f99d 0 42%, #ffffff 42% 58%, #d9f99d 58%);
}

.anime-avatar[data-outfit="sweater"]::after {
  background: repeating-linear-gradient(90deg, #fee2e2 0 18px, #dbeafe 18px 36px);
}

.anime-avatar[data-outfit="lab"]::after {
  background: linear-gradient(90deg, #ffffff 0 42%, #e8f0fe 42% 58%, #ffffff 58%);
}

.anime-avatar[data-outfit="workwear"]::after {
  background: linear-gradient(90deg, #f97316 0 48%, #1f2937 48% 52%, #f97316 52%);
}

.anime-avatar[data-outfit="uniform"]::after {
  background: linear-gradient(90deg, #1a73e8 0 48%, #ffffff 48% 52%, #1a73e8 52%);
}

.anime-avatar[data-outfit="apron"]::after {
  background: linear-gradient(90deg, #f8fafc 0 36%, #111827 36% 64%, #f8fafc 64%);
}

.avatar-face {
  position: absolute;
  left: 50%;
  top: 60px;
  width: 152px;
  height: 152px;
  transform: translateX(-50%);
  border: 5px solid var(--ink);
  border-radius: 46% 46% 48% 48%;
  background: #ffe1d7;
  box-shadow: inset -10px -12px 0 rgba(234, 67, 53, 0.06);
  z-index: 4;
}

.avatar-face::before,
.avatar-face::after {
  content: "";
  position: absolute;
  top: 86px;
  width: 18px;
  height: 10px;
  border-radius: 999px;
  background: rgba(234, 67, 53, 0.18);
  z-index: 6;
}

.anime-avatar[data-blush="none"] .avatar-face::before,
.anime-avatar[data-blush="none"] .avatar-face::after {
  display: none;
}

.anime-avatar[data-blush="heart"] .avatar-face::before,
.anime-avatar[data-blush="heart"] .avatar-face::after {
  top: 84px;
  width: 14px;
  height: 14px;
  border-radius: 2px 2px 8px 8px;
  background: #ff6aa2;
  transform: rotate(-45deg);
}

.anime-avatar[data-blush="heart"] .avatar-face::before {
  left: 24px;
}

.anime-avatar[data-blush="heart"] .avatar-face::after {
  right: 24px;
}

.avatar-face::before {
  left: 22px;
}

.avatar-face::after {
  right: 22px;
}

.anime-avatar[data-gender="female"] .avatar-face {
  border-radius: 50% 50% 48% 48%;
}

.anime-avatar[data-gender="male"] .avatar-face {
  border-radius: 44% 44% 42% 42%;
}

.anime-avatar[data-skin="warm"] .avatar-face,
.anime-avatar[data-skin="warm"] .avatar-ear {
  background: #f1bd91;
}

.anime-avatar[data-skin="tan"] .avatar-face,
.anime-avatar[data-skin="tan"] .avatar-ear {
  background: #b8774f;
}

.anime-avatar[data-skin="deep"] .avatar-face,
.anime-avatar[data-skin="deep"] .avatar-ear {
  background: #70412f;
}

.avatar-ear {
  position: absolute;
  top: 108px;
  width: 26px;
  height: 36px;
  border: 5px solid var(--ink);
  border-radius: 50%;
  background: #ffe1d7;
  z-index: 3;
}

.avatar-ear.left {
  left: 34px;
}

.avatar-ear.right {
  right: 34px;
}

.anime-avatar[data-ears="pointed"] .avatar-ear {
  width: 34px;
  height: 42px;
  border-radius: 10px 80% 10px 80%;
}

.anime-avatar[data-ears="pointed"] .avatar-ear.left {
  transform: rotate(-26deg);
}

.anime-avatar[data-ears="pointed"] .avatar-ear.right {
  transform: rotate(26deg) scaleX(-1);
}

.anime-avatar[data-ears="round"] .avatar-ear {
  top: 108px;
  width: 32px;
  height: 32px;
}

.anime-avatar[data-ears="small"] .avatar-ear {
  top: 112px;
  width: 18px;
  height: 28px;
}

.avatar-hair {
  position: absolute;
  left: 50%;
  top: 26px;
  width: 174px;
  height: 92px;
  transform: translateX(-50%);
  border: 5px solid var(--ink);
  border-radius: 52% 52% 34% 34%;
  background: #191a1d;
  z-index: 2;
}

.avatar-hair::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 48px;
  width: 106px;
  height: 34px;
  border-radius: 0 0 44px 44px;
  background: inherit;
  transform: rotate(-2deg);
}

.avatar-hair::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 54px;
  width: 30px;
  height: 58px;
  border: 5px solid var(--ink);
  border-right: 0;
  border-radius: 30px 0 0 46px;
  background: inherit;
  transform: rotate(8deg);
}

.avatar-accessory {
  position: absolute;
  left: 50%;
  top: 0;
  pointer-events: none;
  transform: translateX(-50%);
  z-index: 12;
}

.anime-avatar[data-accessory="cap"] .avatar-accessory {
  top: 16px;
  width: 130px;
  height: 44px;
  border: 5px solid var(--ink);
  border-radius: 52px 52px 18px 18px;
  background: #ea4335;
}

.anime-avatar[data-accessory="cap"] .avatar-accessory::after {
  content: "";
  position: absolute;
  left: 68px;
  bottom: -14px;
  width: 62px;
  height: 18px;
  border: 5px solid var(--ink);
  border-left: 0;
  border-radius: 0 22px 22px 0;
  background: #ea4335;
}

.anime-avatar[data-accessory="bow"] .avatar-accessory {
  top: 32px;
  left: calc(50% + 48px);
  width: 22px;
  height: 22px;
  border: 4px solid var(--ink);
  border-radius: 50%;
  background: #ff6aa2;
}

.anime-avatar[data-accessory="bow"] .avatar-accessory::before,
.anime-avatar[data-accessory="bow"] .avatar-accessory::after {
  content: "";
  position: absolute;
  top: -8px;
  width: 26px;
  height: 28px;
  border: 4px solid var(--ink);
  background: #ff6aa2;
}

.anime-avatar[data-accessory="bow"] .avatar-accessory::before {
  left: -28px;
  border-radius: 60% 20% 60% 30%;
  transform: rotate(-20deg);
}

.anime-avatar[data-accessory="bow"] .avatar-accessory::after {
  right: -28px;
  border-radius: 20% 60% 30% 60%;
  transform: rotate(20deg);
}

.anime-avatar[data-accessory="headphones"] .avatar-accessory {
  top: 82px;
  width: 190px;
  height: 74px;
  border-left: 8px solid var(--ink);
  border-right: 8px solid var(--ink);
  border-radius: 54px;
}

.anime-avatar[data-accessory="headphones"] .avatar-accessory::before,
.anime-avatar[data-accessory="headphones"] .avatar-accessory::after {
  content: "";
  position: absolute;
  top: 28px;
  width: 26px;
  height: 42px;
  border: 5px solid var(--ink);
  border-radius: 14px;
  background: #e8f0fe;
}

.anime-avatar[data-accessory="headphones"] .avatar-accessory::before {
  left: -18px;
}

.anime-avatar[data-accessory="headphones"] .avatar-accessory::after {
  right: -18px;
}

.anime-avatar[data-accessory="pin"] .avatar-accessory {
  top: 50px;
  left: calc(50% - 48px);
  width: 34px;
  height: 12px;
  border: 4px solid var(--ink);
  border-radius: 999px;
  background: #fbbc04;
  transform: rotate(-18deg);
}

.anime-avatar[data-accessory="beanie"] .avatar-accessory {
  top: 16px;
  width: 132px;
  height: 48px;
  border: 5px solid var(--ink);
  border-radius: 46px 46px 18px 18px;
  background: #8b5cf6;
}

.anime-avatar[data-accessory="beanie"] .avatar-accessory::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -20px;
  width: 26px;
  height: 26px;
  border: 5px solid var(--ink);
  border-radius: 50%;
  background: #8b5cf6;
  transform: translateX(-50%);
}

.anime-avatar[data-accessory="crown"] .avatar-accessory {
  top: 22px;
  width: 78px;
  height: 38px;
  background: #fbbc04;
  border: 5px solid var(--ink);
  clip-path: polygon(0 100%, 0 42%, 22% 72%, 34% 10%, 50% 70%, 66% 10%, 78% 72%, 100% 42%, 100% 100%);
}

.anime-avatar[data-accessory="tie"] .avatar-accessory {
  top: 184px;
  width: 24px;
  height: 54px;
  background: #ea4335;
  border: 4px solid var(--ink);
  border-radius: 8px 8px 14px 14px;
  z-index: 13;
}

.eye {
  position: absolute;
  top: 56px;
  width: 22px;
  height: 27px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: radial-gradient(circle at 58% 32%, #fff 0 14%, #202124 15% 44%, #202124 45%);
  z-index: 9;
}

.eye::before {
  content: "";
  position: absolute;
  left: -2px;
  top: -18px;
  width: 28px;
  height: 8px;
  border-top: 4px solid var(--ink);
  border-radius: 50%;
}

.anime-avatar[data-brows="thick"] .eye::before {
  border-top-width: 6px;
}

.anime-avatar[data-brows="arch"] .eye::before {
  top: -20px;
  transform: rotate(-12deg);
}

.anime-avatar[data-brows="arch"] .eye.right::before {
  transform: rotate(12deg);
}

.anime-avatar[data-brows="flat"] .eye::before {
  top: -15px;
  border-radius: 0;
}

.eye.left { left: 34px; }
.eye.right { right: 34px; }

.mouth {
  position: absolute;
  left: 50%;
  top: 106px;
  width: 22px;
  height: 13px;
  border-bottom: 4px solid var(--ink);
  border-radius: 0 0 50px 50px;
  transform: translateX(-50%);
  z-index: 10;
}

.anime-avatar[data-mouth="cat"] .mouth {
  width: 28px;
  height: 14px;
  border-left: 4px solid var(--ink);
  border-right: 4px solid var(--ink);
  border-bottom: 4px solid var(--ink);
  border-radius: 0 0 50px 50px;
}

.anime-avatar[data-mouth="open"] .mouth {
  width: 18px;
  height: 22px;
  border: 4px solid var(--ink);
  border-radius: 50%;
  background: #202124;
}

.anime-avatar[data-mouth="flat"] .mouth {
  width: 28px;
  height: 0;
  border-bottom: 4px solid var(--ink);
  border-radius: 0;
}

.nose {
  position: absolute;
  left: 50%;
  top: 88px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(32, 33, 36, 0.56);
  transform: translateX(-50%);
  z-index: 9;
}

.anime-avatar[data-nose="line"] .nose {
  width: 8px;
  height: 14px;
  border-radius: 0;
  border-left: 3px solid rgba(32, 33, 36, 0.52);
  background: transparent;
}

.anime-avatar[data-nose="none"] .nose {
  display: none;
}

.avatar-glasses,
.avatar-beard {
  position: absolute;
  left: 50%;
  pointer-events: none;
  transform: translateX(-50%);
}

.anime-avatar[data-glasses="round"] .avatar-glasses {
  top: 50px;
  width: 118px;
  height: 42px;
  border-left: 3px solid var(--ink);
  border-right: 3px solid var(--ink);
  z-index: 9;
}

.anime-avatar[data-glasses="round"] .avatar-glasses::before,
.anime-avatar[data-glasses="round"] .avatar-glasses::after {
  content: "";
  position: absolute;
  top: -6px;
  width: 44px;
  height: 44px;
  border: 4px solid var(--ink);
  border-radius: 50%;
}

.anime-avatar[data-glasses="round"] .avatar-glasses::before {
  left: -2px;
}

.anime-avatar[data-glasses="round"] .avatar-glasses::after {
  right: -2px;
}

.anime-avatar[data-glasses="square"] .avatar-glasses {
  top: 50px;
  width: 120px;
  height: 44px;
  z-index: 9;
}

.anime-avatar[data-glasses="square"] .avatar-glasses::before,
.anime-avatar[data-glasses="square"] .avatar-glasses::after {
  content: "";
  position: absolute;
  top: 0;
  width: 46px;
  height: 36px;
  border: 4px solid var(--ink);
  border-radius: 10px;
}

.anime-avatar[data-glasses="square"] .avatar-glasses::before {
  left: 0;
}

.anime-avatar[data-glasses="square"] .avatar-glasses::after {
  right: 0;
}

.anime-avatar[data-glasses="sunglasses"] .avatar-glasses {
  top: 52px;
  width: 122px;
  height: 40px;
  z-index: 9;
}

.anime-avatar[data-glasses="sunglasses"] .avatar-glasses::before,
.anime-avatar[data-glasses="sunglasses"] .avatar-glasses::after {
  content: "";
  position: absolute;
  top: 0;
  width: 48px;
  height: 34px;
  border: 4px solid var(--ink);
  border-radius: 14px;
  background: #202124;
}

.anime-avatar[data-glasses="sunglasses"] .avatar-glasses::before {
  left: 0;
}

.anime-avatar[data-glasses="sunglasses"] .avatar-glasses::after {
  right: 0;
}

.anime-avatar[data-beard="stubble"] .avatar-beard {
  top: 126px;
  width: 62px;
  height: 10px;
  border-bottom: 4px dotted #5b3a30;
  border-radius: 50%;
  z-index: 7;
}

.anime-avatar[data-beard="moustache"] .avatar-beard {
  top: 108px;
  width: 54px;
  height: 16px;
  border-radius: 50%;
  background: #3d2b24;
  clip-path: polygon(0 50%, 18% 0, 50% 42%, 82% 0, 100% 50%, 82% 100%, 50% 58%, 18% 100%);
  z-index: 7;
}

.anime-avatar[data-beard="goatee"] .avatar-beard {
  top: 130px;
  width: 24px;
  height: 20px;
  border-radius: 10px 10px 22px 22px;
  background: #3d2b24;
  z-index: 7;
}

.anime-avatar[data-beard="soulpatch"] .avatar-beard {
  top: 134px;
  width: 18px;
  height: 14px;
  border-radius: 8px 8px 16px 16px;
  background: #3d2b24;
  z-index: 7;
}

.anime-avatar[data-beard="chinstrap"] .avatar-beard {
  top: 124px;
  width: 82px;
  height: 34px;
  border: 5px solid #3d2b24;
  border-top: 0;
  border-radius: 0 0 46px 46px;
  z-index: 7;
}

.anime-avatar[data-beard="beard"] .avatar-beard {
  top: 128px;
  width: 74px;
  height: 28px;
  border-radius: 18px 18px 42px 42px;
  background: #3d2b24;
  z-index: 7;
}

.anime-avatar[data-hair="sidepart"] .avatar-hair {
  height: 92px;
  border-radius: 58% 46% 34% 28%;
}

.anime-avatar[data-hair="undercut"] .avatar-hair {
  top: 32px;
  width: 170px;
  height: 78px;
  border-radius: 56% 56% 24% 24%;
}

.anime-avatar[data-hair="undercut"] .avatar-hair::before {
  left: 48px;
  top: 36px;
  width: 92px;
  height: 42px;
  border-radius: 0 0 48px 24px;
  transform: rotate(-16deg);
}

.anime-avatar[data-hair="fringe"] .avatar-hair {
  top: 24px;
  width: 178px;
  height: 102px;
  border-radius: 50% 50% 36% 36%;
}

.anime-avatar[data-hair="fringe"] .avatar-hair::before {
  left: 22px;
  top: 52px;
  width: 132px;
  height: 42px;
  clip-path: polygon(0 0, 20% 100%, 38% 10%, 55% 100%, 72% 10%, 100% 100%, 100% 0);
}

.anime-avatar[data-hair="messy"] .avatar-hair {
  top: 20px;
  width: 180px;
  height: 104px;
  clip-path: polygon(0 68%, 10% 32%, 20% 58%, 30% 18%, 42% 58%, 54% 24%, 66% 58%, 78% 26%, 90% 60%, 100% 38%, 96% 100%, 4% 100%);
}

.anime-avatar[data-hair="crew"] .avatar-hair {
  top: 42px;
  width: 154px;
  height: 54px;
  border-radius: 48% 48% 18% 18%;
}

.anime-avatar[data-hair="crew"] .avatar-hair::before,
.anime-avatar[data-hair="crew"] .avatar-hair::after {
  display: none;
}

.anime-avatar[data-hair="sidepart"] .avatar-hair::before {
  content: "";
  position: absolute;
  left: 44px;
  top: 52px;
  width: 98px;
  height: 30px;
  border-radius: 0 0 44px 22px;
  background: inherit;
  transform: rotate(-10deg);
}

.anime-avatar[data-hair="buzz"] .avatar-hair {
  top: 46px;
  width: 152px;
  height: 48px;
  border-radius: 70% 70% 20% 20%;
}

.anime-avatar[data-hair="buzz"] .avatar-hair::before,
.anime-avatar[data-hair="buzz"] .avatar-hair::after {
  display: none;
}

.anime-avatar[data-hair="bob"] .avatar-hair {
  top: 24px;
  width: 186px;
  height: 132px;
  border-radius: 46% 46% 30% 30%;
}

.anime-avatar[data-hair="bob"] .avatar-hair::before {
  left: 38px;
  top: 54px;
  width: 110px;
  height: 36px;
}

.anime-avatar[data-hair="waves"] .avatar-hair {
  background: #8d5524;
  border-radius: 46% 54% 44% 30%;
}

.anime-avatar[data-hair="waves"] .avatar-hair::before {
  left: 34px;
  top: 48px;
  width: 114px;
  height: 34px;
  border-radius: 0 0 48px 28px;
  background: inherit;
}

.anime-avatar[data-hair="curls"] .avatar-hair {
  top: 24px;
  width: 176px;
  height: 102px;
  border-radius: 50% 50% 38% 38%;
  background: #3b2a24;
}

.anime-avatar[data-hair="curls"] .avatar-hair::before {
  left: 22px;
  top: 18px;
  width: 132px;
  height: 54px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 14px 24px, #3b2a24 0 18px, transparent 19px),
    radial-gradient(circle at 46px 14px, #3b2a24 0 18px, transparent 19px),
    radial-gradient(circle at 78px 16px, #3b2a24 0 18px, transparent 19px),
    radial-gradient(circle at 110px 25px, #3b2a24 0 18px, transparent 19px);
}

.anime-avatar[data-hair="long"] .avatar-hair,
.anime-avatar[data-hair="wavyLong"] .avatar-hair,
.anime-avatar[data-hair="ponytail"] .avatar-hair,
.anime-avatar[data-hair="twin"] .avatar-hair,
.anime-avatar[data-hair="bun"] .avatar-hair {
  top: 22px;
  width: 188px;
  height: 146px;
  border-radius: 50% 50% 26% 26%;
  background: #2b2524;
}

.anime-avatar[data-hair="long"] .avatar-hair::before,
.anime-avatar[data-hair="wavyLong"] .avatar-hair::before,
.anime-avatar[data-hair="ponytail"] .avatar-hair::before {
  left: 42px;
  top: 58px;
  width: 108px;
  height: 34px;
  border-radius: 0 0 44px 34px;
}

.anime-avatar[data-hair="wavyLong"] .avatar-hair {
  background: #5c3b22;
  border-radius: 48% 48% 30% 30%;
}

.anime-avatar[data-hair="wavyLong"] .avatar-hair::before {
  background:
    radial-gradient(circle at 20px 18px, #5c3b22 0 18px, transparent 19px),
    radial-gradient(circle at 52px 26px, #5c3b22 0 18px, transparent 19px),
    radial-gradient(circle at 84px 18px, #5c3b22 0 18px, transparent 19px);
}

.anime-avatar[data-hair="long"] .avatar-hair::after {
  left: auto;
  right: 8px;
  top: 62px;
  width: 30px;
  height: 76px;
  border: 5px solid var(--ink);
  border-left: 0;
  border-radius: 0 28px 46px 0;
  background: inherit;
  transform: rotate(-3deg);
}

.anime-avatar[data-hair="ponytail"] .avatar-hair::after {
  left: auto;
  right: -20px;
  bottom: 16px;
  width: 34px;
  height: 58px;
  border: 5px solid var(--ink);
  border-left: 0;
  border-radius: 0 34px 34px 0;
  background: inherit;
  transform: rotate(12deg);
}

.anime-avatar[data-hair="twin"] .avatar-hair::after {
  left: -32px;
  right: auto;
  top: 72px;
  width: 42px;
  height: 72px;
  border: 5px solid var(--ink);
  border-radius: 34px;
  background: inherit;
  transform: rotate(16deg);
}

.anime-avatar[data-hair="twin"] .avatar-hair::before {
  left: auto;
  right: -32px;
  top: 72px;
  width: 42px;
  height: 72px;
  border: 5px solid var(--ink);
  border-radius: 34px;
  background: inherit;
  transform: rotate(-16deg);
}

.anime-avatar[data-hair="bun"] .avatar-hair {
  height: 118px;
}

.anime-avatar[data-hair="bun"] .avatar-hair::before {
  left: 118px;
  top: -18px;
  width: 56px;
  height: 56px;
  border: 5px solid var(--ink);
  border-radius: 50%;
  background: inherit;
}

.anime-avatar[data-hair="spiky"] .avatar-hair {
  top: 16px;
  height: 104px;
  clip-path: polygon(2% 76%, 12% 40%, 24% 60%, 36% 16%, 50% 58%, 62% 26%, 76% 62%, 90% 40%, 98% 76%, 88% 100%, 12% 100%);
}
.anime-avatar[data-face="sharp"] .avatar-face { border-radius: 44% 44% 38% 38%; }
.anime-avatar[data-face="chibi"] .avatar-face { width: 158px; height: 150px; border-radius: 50%; }
.anime-avatar[data-eyes="calm"] .eye { height: 10px; border-top: 0; border-left: 0; border-right: 0; background: transparent; top: 70px; }
.anime-avatar[data-eyes="star"] .eye { border-radius: 30%; background: radial-gradient(circle at center, #fbbc04 0 38%, #202124 39%); transform: rotate(45deg); }
.anime-avatar[data-eyes="focus"] .eye { width: 30px; height: 18px; border-radius: 45% 45% 50% 50%; background: #202124; top: 62px; }
.anime-avatar[data-eyes="wink"] .eye.left {
  height: 10px;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  background: transparent;
  top: 66px;
  transform: rotate(-8deg);
}
.anime-avatar[data-eyes="sleepy"] .eye {
  height: 12px;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  background: transparent;
  top: 66px;
}

.persona-card h3 {
  margin: 4px 0;
  text-align: center;
  font-size: 24px;
  line-height: 1;
}

.persona-card > p {
  margin: 0 auto 8px;
  max-width: 420px;
  text-align: center;
  color: var(--muted);
  font-weight: 700;
}

.type-code {
  width: fit-content;
  margin: 6px auto 10px;
  border: 4px solid var(--ink);
  border-radius: 18px;
  background: #fff;
  padding: 6px 14px;
  color: var(--ink);
  font-size: 34px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0.04em;
  box-shadow: 8px 8px 0 #fbbc04;
}

.trait-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 460px;
  margin: 0 auto 8px;
}

.trait-box {
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  padding: 8px 10px;
}

.trait-box span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.trait-box strong {
  display: block;
  margin-top: 2px;
  font-size: 16px;
}

.persona-score {
  display: grid;
  justify-items: center;
  margin: 10px auto 14px;
}

.persona-score span {
  font-size: 44px;
  line-height: 0.9;
  font-weight: 900;
  color: var(--accent);
}

.persona-score small {
  color: var(--muted);
  font-weight: 850;
}

.persona-bottom strong {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  padding: 0 18px;
  font-size: 17px;
}

.persona-bottom p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.persona-actions {
  justify-content: center;
  margin-top: 18px;
}

.calculator-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(400px, 520px);
  justify-content: center;
  gap: 0;
  align-items: stretch;
  padding: 0;
  scroll-margin-top: 112px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(35, 48, 68, 0.12);
  overflow: hidden;
}

.form-panel {
  align-self: start;
  min-height: 420px;
}

.result-panel {
  min-height: 560px;
}

.panel {
  padding: 24px;
}

.calculator-layout .panel {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.panel-copy {
  margin: 10px 0 0;
  color: var(--muted);
}

.panel-heading h2,
.section-heading h2,
.ad-slot h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: 0;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.form-panel > .field-grid {
  grid-template-columns: minmax(0, 1.1fr) repeat(2, minmax(0, 1fr));
}

.advanced-panel,
.customize-avatar,
.section-disclosure {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.advanced-panel summary,
.customize-avatar summary,
.section-disclosure > summary {
  cursor: pointer;
  padding: 12px 14px;
  color: var(--ink);
  font-weight: 850;
}

.advanced-panel .field-grid,
.avatar-detail-grid,
.section-disclosure .insight-grid,
.section-disclosure .poll-grid,
.section-disclosure .guide-grid {
  margin: 0;
  padding: 0 14px 14px;
}

.avatar-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.scenario-strip {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.scenario-strip button {
  min-height: 82px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 12px;
  cursor: pointer;
  text-align: left;
}

.scenario-strip button:hover,
.scenario-strip button.is-selected {
  border-color: #aac7ff;
  background: #f5f9ff;
  box-shadow: 0 10px 24px rgba(23, 105, 224, 0.10);
  transform: translateY(-1px);
}

.scenario-strip span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.scenario-strip strong {
  display: block;
  margin-top: 6px;
  font-size: 15px;
}

label span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.form-helper {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.offer-steps {
  display: grid;
  gap: 8px;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.offer-steps span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 800;
}

.offer-steps span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
}

.toggle-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.check-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--soft);
}

.check-label input {
  width: auto;
  min-height: auto;
}

.check-label span {
  margin: 0;
  color: var(--ink);
}

.result-panel {
  position: static;
  border-left: 1px solid var(--line) !important;
  background: #fbfcfd;
}

.result-card {
  width: 100%;
  max-width: 100%;
}

.result-card h2 {
  display: none;
}

.verdict-callout {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 36px;
  line-height: 1.02;
  font-weight: 900;
  text-align: center;
}

.result-card[data-verdict="comfortable"] .verdict-callout {
  background: transparent;
  color: var(--ok);
}

.result-card[data-verdict="tight"] .verdict-callout {
  background: transparent;
  color: var(--warn);
}

.result-card[data-verdict="risky"] .verdict-callout {
  background: transparent;
  color: var(--danger);
}

.verdict-reason {
  min-height: 0;
  max-width: 340px;
  margin: 0 auto 18px;
  color: var(--muted);
  text-align: center;
}

.result-card > .eyebrow {
  display: none;
}

.next-step {
  margin: 12px 0 4px;
  padding: 12px 14px;
  border: 1px solid #c6dafc;
  border-radius: 8px;
  background: #f5f9ff;
  color: #174ea6;
  font-weight: 800;
}

.score-ring {
  display: grid;
  place-items: center;
  position: relative;
  width: auto;
  height: auto;
  margin: 0 auto 8px;
}

.score-ring svg {
  display: none;
}

.score-ring circle {
  fill: none;
  stroke-width: 12;
  stroke: #e6e0d2;
}

#scoreCircle {
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-dasharray: 327;
  stroke-dashoffset: 92;
}

.score-ring div {
  position: static;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
}

.score-ring strong {
  font-size: 104px;
  line-height: 0.92;
  letter-spacing: 0;
  color: var(--ink);
}

.share-question {
  margin: 0 0 8px;
  text-align: center;
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
}

.pressure-detail {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.pressure-detail summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 850;
  text-align: center;
  list-style-position: inside;
}

.score-ring span {
  color: var(--muted);
  font-size: 20px;
  font-weight: 850;
}

.metric-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 0;
}

.metric-list div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.metric-list dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.metric-list dd {
  margin: 6px 0 0;
  font-size: 20px;
  font-weight: 850;
}

.pressure-bars {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.pressure-bars div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.pressure-bars span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.pressure-bars strong {
  font-size: 13px;
}

.pressure-bars em {
  grid-column: 1 / 3;
  display: block;
  height: 9px;
  border-radius: 999px;
  background: #edf2f7;
  overflow: hidden;
  font-style: normal;
}

.pressure-bars i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--ok);
}

.pressure-bars i[data-level="warn"] {
  background: var(--warn);
}

.pressure-bars i[data-level="risk"] {
  background: var(--danger);
}

.share-box {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #f6f9fd;
}

.loop-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 12px;
}

.loop-actions button,
.loop-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.share-box p {
  margin: 0 0 12px;
  font-weight: 750;
}

.share-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.share-actions button {
  cursor: pointer;
}

#shareStatus {
  display: block;
  margin-top: 10px;
  color: var(--accent);
  min-height: 18px;
}

.ad-slot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 28px 0;
  padding: 22px;
}

.ad-slot p {
  max-width: 620px;
  margin: 8px 0 0;
  color: var(--muted);
}

.okx-ad {
  position: relative;
  overflow: hidden;
  margin: 18px 0 0;
  min-height: 58px;
  padding: 10px 14px;
  border-color: rgba(17, 24, 39, 0.12);
  background: #f3f6fa;
  box-shadow: none;
  opacity: 0.88;
}

.okx-ad::after {
  display: none;
}

.okx-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #111827;
  color: #fff;
  font-size: 14px;
  font-weight: 950;
  letter-spacing: 0;
}

.okx-ad h2 {
  max-width: 620px;
  font-size: 20px;
}

.okx-ad small {
  display: none;
  max-width: 620px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.okx-ad #adPreview {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  border-color: #111827;
  background: #111827;
  color: #fff;
}

.okx-ad #adPreview:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.content-section {
  padding: 46px 0 20px;
}

.more-insight-modules .section-heading {
  margin-top: 20px;
  margin-bottom: 14px;
}

.more-insight-modules .eyebrow,
.more-insight-modules .section-heading p:not(.eyebrow) {
  display: none;
}

.more-insight-modules .section-heading h2 {
  font-size: 22px;
}

.learn-more-details {
  margin: 34px 0 0;
}

.learn-more-content .methodology-section,
.learn-more-content .source-trust-section,
.learn-more-content .seo-hub-section {
  padding: 24px 0 0;
}

.learn-more-content .methodology-section:first-child {
  padding-top: 12px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 22px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.guide-card {
  min-height: 172px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  text-decoration: none;
  box-shadow: var(--shadow);
}

.guide-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.guide-card p {
  margin: 0;
  color: var(--muted);
}

.guide-card strong {
  display: block;
  margin-top: 14px;
  color: var(--accent);
}

.faq-section details {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}

.faq-section details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-section summary {
  cursor: pointer;
  font-weight: 850;
  font-size: 18px;
}

.faq-section p {
  color: var(--muted);
  max-width: 800px;
}

.source-section {
  margin-top: 30px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f1f3f4;
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 34px 0 46px;
  color: var(--muted);
}

body.view-h5 .app-shell,
body.view-h5 .site-header,
body.view-h5 .site-footer,
body.view-h5 .quick-nav {
  max-width: 430px;
}

body.view-h5 .hero-section,
body.view-h5 .calculator-layout,
body.view-h5 .guide-grid,
body.view-h5 .trust-strip,
body.view-h5 .method-grid,
body.view-h5 .trust-grid,
body.view-h5 .hub-grid,
body.view-h5 .play-grid,
body.view-h5 .trend-grid,
body.view-h5 .competitor-grid,
body.view-h5 .stat-grid,
body.view-h5 .insight-grid,
body.view-h5 .ranking-grid,
body.view-h5 .poll-grid,
body.view-h5 .persona-layout {
  grid-template-columns: 1fr;
}

body.view-h5 .mini-result,
body.view-h5 .result-panel {
  position: static;
}

body.view-h5 .mini-result {
  display: none;
}

body.view-h5 .field-grid,
body.view-h5 .avatar-controls,
body.view-h5 .avatar-detail-grid,
body.view-h5 .form-panel > .field-grid,
body.view-h5 .metric-list,
body.view-h5 .scenario-strip {
  grid-template-columns: 1fr;
}

body.view-h5 .site-header {
  position: static;
}

body.view-h5 .site-header::before {
  display: none;
}

body.view-h5 .quick-nav {
  top: 0;
  padding: 8px 0 10px;
  overflow-x: auto;
}

body.view-h5 .hero-section {
  min-height: auto;
  padding-top: 28px;
}

body.view-h5 .hero-copy h1 {
  font-size: 42px;
}

body.view-h5 .mini-result,
body.view-h5 .panel,
body.view-h5 .data-panel,
body.view-h5 .ad-slot,
body.view-h5 .stat-card,
body.view-h5 .ranking-card,
body.view-h5 .poll-card,
body.view-h5 .trend-card {
  padding: 18px;
}

body.view-h5 .okx-ad {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
}

body.view-h5 .okx-mark {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  font-size: 18px;
}

body.view-h5 .okx-ad #adPreview {
  grid-column: 1 / 3;
  width: 100%;
}

body.view-h5 .persona-section {
  padding-top: 36px;
}

body.view-h5 .persona-card {
  padding: 16px;
}

body.view-h5 .persona-top,
body.view-h5 .persona-bottom {
  grid-template-columns: auto minmax(0, 1fr);
  justify-items: stretch;
  gap: 8px;
}

body.view-h5 .anime-avatar {
  width: min(200px, 64vw);
  height: 200px;
  margin-top: 12px;
}

body.view-h5 .anime-avatar::after {
  width: 112px;
  height: 48px;
}

body.view-h5 .avatar-face {
  top: 48px;
  width: 126px;
  height: 128px;
}

body.view-h5 .avatar-hair {
  top: 20px;
  width: 150px;
  height: 82px;
}

body.view-h5 .avatar-hair::before {
  left: 24px;
  top: 42px;
  width: 92px;
  height: 28px;
}

body.view-h5 .avatar-hair::after {
  left: 8px;
  top: 48px;
  width: 24px;
  height: 48px;
}

body.view-h5 .anime-avatar[data-accessory="cap"] .avatar-accessory {
  top: 12px;
  width: 112px;
  height: 38px;
}

body.view-h5 .anime-avatar[data-accessory="bow"] .avatar-accessory {
  top: 26px;
  left: calc(50% + 42px);
}

body.view-h5 .anime-avatar[data-accessory="headphones"] .avatar-accessory {
  top: 70px;
  width: 166px;
  height: 64px;
}

body.view-h5 .anime-avatar[data-accessory="pin"] .avatar-accessory {
  top: 42px;
  left: calc(50% - 42px);
}

body.view-h5 .avatar-ear {
  top: 88px;
  width: 20px;
  height: 30px;
}

body.view-h5 .avatar-ear.left { left: 30px; }
body.view-h5 .avatar-ear.right { right: 30px; }

body.view-h5 .eye {
  top: 48px;
  width: 20px;
  height: 24px;
}

body.view-h5 .eye.left { left: 27px; }
body.view-h5 .eye.right { right: 27px; }

body.view-h5 .mouth {
  top: 88px;
}

body.view-h5 .nose {
  top: 74px;
}

body.view-h5 .anime-avatar[data-hair="bob"] .avatar-hair { top: 18px; width: 160px; height: 112px; }
body.view-h5 .anime-avatar[data-hair="buzz"] .avatar-hair { top: 38px; height: 40px; }
body.view-h5 .anime-avatar[data-hair="long"] .avatar-hair,
body.view-h5 .anime-avatar[data-hair="ponytail"] .avatar-hair { top: 18px; width: 160px; height: 124px; }
body.view-h5 .anime-avatar[data-hair="spiky"] .avatar-hair { top: 10px; height: 90px; }
body.view-h5 .anime-avatar[data-face="chibi"] .avatar-face { width: 136px; height: 128px; }
body.view-h5 .anime-avatar[data-eyes="calm"] .eye { top: 60px; }
body.view-h5 .anime-avatar[data-glasses="round"] .avatar-glasses,
body.view-h5 .anime-avatar[data-glasses="square"] .avatar-glasses { top: 42px; }
body.view-h5 .anime-avatar[data-beard="stubble"] .avatar-beard { top: 106px; }
body.view-h5 .anime-avatar[data-beard="goatee"] .avatar-beard { top: 110px; }
body.view-h5 .anime-avatar[data-beard="beard"] .avatar-beard { top: 108px; height: 24px; }

body.view-h5 .persona-card h3 {
  font-size: 26px;
}

body.view-h5 .type-code {
  font-size: 38px;
  border-radius: 14px;
  box-shadow: 6px 6px 0 #fbbc04;
}

body.view-h5 .persona-score span {
  font-size: 48px;
}

body.view-h5 .persona-bottom strong {
  min-height: 44px;
  padding: 0 14px;
  font-size: 18px;
}

body.view-h5 .ranking-tabs {
  flex-wrap: wrap;
  overflow: visible;
}

body.view-h5 .ranking-tabs button {
  flex: 1 1 calc(50% - 8px);
  border-radius: 8px;
}

body.view-h5 .calculator-layout {
  padding-top: 24px;
  scroll-margin-top: 58px;
}

body.view-h5 .score-ring,
body.view-h5 .score-ring svg {
  width: 132px;
  height: 132px;
}

body.view-h5 .score-ring {
  margin: 12px auto;
}

body.view-h5 .score-ring strong {
  font-size: 38px;
}

body.view-h5 .table-wrap {
  overflow: visible;
}

body.view-h5 table,
body.view-h5 thead,
body.view-h5 tbody,
body.view-h5 tr,
body.view-h5 td {
  display: block;
  width: 100%;
  min-width: 0;
}

body.view-h5 thead {
  display: none;
}

body.view-h5 tr {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

body.view-h5 tr:last-child {
  border-bottom: 0;
}

body.view-h5 td {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 5px 0;
  border-bottom: 0;
  text-align: right;
}

body.view-h5 td::before {
  content: attr(data-label);
  flex: 0 0 35%;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-align: left;
  text-transform: uppercase;
}

body.view-web .app-shell,
body.view-web .site-header,
body.view-web .site-footer {
  max-width: 1180px;
}

@media (max-width: 820px) {
  .site-header,
  .nav-actions,
  .ad-slot,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .site-header {
    position: static;
  }

  .site-header::before {
    display: none;
  }

  .quick-nav {
    top: 0;
    overflow-x: auto;
  }

  .hero-section,
  .calculator-layout,
  .guide-grid,
  .trust-strip,
  .method-grid,
  .trust-grid,
  .hub-grid,
  .play-grid,
  .trend-grid,
  .competitor-grid,
  .stat-grid,
  .insight-grid,
  .ranking-grid,
  .poll-grid,
  .persona-layout {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
    padding-top: 28px;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .field-grid,
  .avatar-controls,
  .avatar-detail-grid,
  .form-panel > .field-grid,
  .metric-list,
  .scenario-strip {
    grid-template-columns: 1fr;
  }

  .result-panel {
    position: static;
  }

  .mini-result {
    display: none;
  }

  .mini-result,
  .panel,
  .data-panel,
  .ad-slot,
  .stat-card,
  .ranking-card,
  .poll-card,
  .trend-card {
    padding: 18px;
  }

  .okx-ad {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: start;
    gap: 14px;
  }

  .okx-mark {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    font-size: 18px;
  }

  .okx-ad #adPreview {
    grid-column: 1 / 3;
    width: 100%;
  }

  .persona-section {
    padding-top: 36px;
  }

  .persona-card {
    padding: 16px;
  }

  .persona-top,
  .persona-bottom {
    grid-template-columns: auto minmax(0, 1fr);
    justify-items: stretch;
    gap: 8px;
  }

  .anime-avatar {
    width: min(200px, 64vw);
    height: 200px;
    margin-top: 12px;
  }

  .anime-avatar::after {
    width: 112px;
    height: 48px;
  }

  .avatar-face {
    top: 48px;
    width: 126px;
    height: 128px;
  }

  .avatar-hair {
    top: 20px;
    width: 150px;
    height: 82px;
  }

  .avatar-hair::before {
    left: 24px;
    top: 42px;
    width: 92px;
    height: 28px;
  }

  .avatar-hair::after {
    left: 8px;
    top: 48px;
    width: 24px;
    height: 48px;
  }

  .anime-avatar[data-accessory="cap"] .avatar-accessory {
    top: 12px;
    width: 112px;
    height: 38px;
  }

  .anime-avatar[data-accessory="bow"] .avatar-accessory {
    top: 26px;
    left: calc(50% + 42px);
  }

  .anime-avatar[data-accessory="headphones"] .avatar-accessory {
    top: 70px;
    width: 166px;
    height: 64px;
  }

  .anime-avatar[data-accessory="pin"] .avatar-accessory {
    top: 42px;
    left: calc(50% - 42px);
  }

  .avatar-ear {
    top: 88px;
    width: 20px;
    height: 30px;
  }

  .avatar-ear.left { left: 30px; }
  .avatar-ear.right { right: 30px; }

  .eye {
    top: 48px;
    width: 20px;
    height: 24px;
  }

  .eye.left { left: 27px; }
  .eye.right { right: 27px; }

  .mouth {
    top: 88px;
  }

  .nose {
    top: 74px;
  }

  .anime-avatar[data-hair="bob"] .avatar-hair { top: 18px; width: 160px; height: 112px; }
  .anime-avatar[data-hair="buzz"] .avatar-hair { top: 38px; height: 40px; }
  .anime-avatar[data-hair="long"] .avatar-hair,
  .anime-avatar[data-hair="ponytail"] .avatar-hair { top: 18px; width: 160px; height: 124px; }
  .anime-avatar[data-hair="spiky"] .avatar-hair { top: 10px; height: 90px; }
  .anime-avatar[data-face="chibi"] .avatar-face { width: 136px; height: 128px; }
  .anime-avatar[data-eyes="calm"] .eye { top: 60px; }
  .anime-avatar[data-glasses="round"] .avatar-glasses,
  .anime-avatar[data-glasses="square"] .avatar-glasses { top: 42px; }
  .anime-avatar[data-beard="stubble"] .avatar-beard { top: 106px; }
  .anime-avatar[data-beard="goatee"] .avatar-beard { top: 110px; }
  .anime-avatar[data-beard="beard"] .avatar-beard { top: 108px; height: 24px; }

  .persona-card h3 {
    font-size: 26px;
  }

  .type-code {
    font-size: 38px;
    border-radius: 14px;
    box-shadow: 6px 6px 0 #fbbc04;
  }

  .persona-score span {
    font-size: 48px;
  }

  .persona-bottom strong {
    min-height: 44px;
    padding: 0 14px;
    font-size: 18px;
  }

  .ranking-tabs {
    flex-wrap: wrap;
    overflow: visible;
  }

  .ranking-tabs button {
    flex: 1 1 calc(50% - 8px);
    border-radius: 8px;
  }

  .calculator-layout {
    padding-top: 24px;
    scroll-margin-top: 58px;
  }

  .score-ring,
  .score-ring svg {
    width: 132px;
    height: 132px;
  }

  .score-ring {
    margin: 12px auto;
  }

  .score-ring strong {
    font-size: 38px;
  }

  .table-wrap {
    overflow: visible;
  }

  table,
  thead,
  tbody,
  tr,
  td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  thead {
    display: none;
  }

  tr {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  tr:last-child {
    border-bottom: 0;
  }

  td {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 5px 0;
    border-bottom: 0;
    text-align: right;
  }

  td::before {
    content: attr(data-label);
    flex: 0 0 35%;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
    text-align: left;
    text-transform: uppercase;
  }
}

/* Final product-pass overrides: keep the first screen focused and the lower page quieter. */
.hero-copy .eyebrow,
.section-heading .eyebrow {
  color: var(--muted);
}

.trend-score strong,
.persona-score span {
  color: var(--accent);
}

.ranking-tabs button,
.freshness-pill,
#personaBadge,
.versus {
  background: #f1f3f4;
  border-color: #e1e5ea;
  color: var(--ink);
}

body.view-h5 .calculator-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 0;
  border-radius: 12px;
}

body.view-h5 .result-panel {
  border-left: 0 !important;
  border-top: 1px solid var(--line) !important;
}

body.view-h5 .hero-copy h1 {
  font-size: 34px;
}

body.view-h5 .hero-section {
  padding-top: 18px;
}

body.view-h5 .trust-strip {
  display: none;
}

body.view-h5 .avatar-primary-row {
  grid-template-columns: 1fr;
}

body.view-h5 .quick-nav,
body.view-h5 .segmented {
  display: none;
}

body.view-h5 .hero-lede {
  font-size: 16px;
  margin-top: 10px;
}

body.view-h5 .hero-actions {
  margin-top: 18px;
}

body.view-h5 .panel-heading .eyebrow,
body.view-h5 .panel-heading .panel-copy,
body.view-h5 .form-helper,
body.view-h5 .offer-steps {
  display: none;
}

body.view-h5 .form-panel {
  min-height: auto;
}

body.view-h5 .panel-heading h2 {
  font-size: 22px;
}

body.view-h5 .panel {
  padding: 18px;
}

body.view-h5 .field-grid {
  gap: 10px;
  margin-top: 14px;
}

body.view-h5 select,
body.view-h5 input {
  min-height: 42px;
}

@media (max-width: 820px) {
  .calculator-layout {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
    border-radius: 12px;
  }

  .result-panel {
    border-left: 0 !important;
    border-top: 1px solid var(--line) !important;
  }

  .hero-copy h1 {
    font-size: 34px;
  }

  .hero-section {
    padding-top: 18px;
  }

  .trust-strip {
    display: none;
  }

  .avatar-primary-row {
    grid-template-columns: 1fr;
  }

  .quick-nav,
  .segmented {
    display: none;
  }

  .hero-lede {
    font-size: 16px;
    margin-top: 10px;
  }

  .hero-actions {
    margin-top: 18px;
  }

  .panel-heading .eyebrow,
  .panel-heading .panel-copy,
  .form-helper,
  .offer-steps {
    display: none;
  }

  .form-panel {
    min-height: auto;
  }

  .panel-heading h2 {
    font-size: 22px;
  }

  .panel {
    padding: 18px;
  }

  .field-grid {
    gap: 10px;
    margin-top: 14px;
  }

  select,
  input {
    min-height: 42px;
  }
}

/* Mobile product focus: verdict first, sharing second, deeper SEO content only on demand. */
@media (max-width: 820px) {
  .app-shell,
  .site-header,
  .site-footer {
    width: min(100% - 32px, 430px);
  }

  .hero-section {
    padding: 14px 0 10px;
  }

  .hero-copy h1 {
    max-width: 340px;
    font-size: 32px;
    line-height: 1.05;
  }

  .hero-lede {
    max-width: 330px;
    font-size: 15px;
  }

  .hero-actions {
    margin-top: 14px;
  }

  .calculator-layout {
    margin-top: 6px;
    box-shadow: 0 16px 42px rgba(35, 48, 68, 0.11);
  }

  .panel {
    padding: 14px;
  }

  .panel-heading h2 {
    font-size: 20px;
    line-height: 1.15;
  }

  .form-panel > .field-grid {
    grid-template-columns: 1fr;
    gap: 9px;
    margin-top: 12px;
  }

  label span {
    margin-bottom: 5px;
    font-size: 13px;
  }

  select,
  input {
    min-height: 40px;
    border-radius: 7px;
  }

  .advanced-panel {
    margin-top: 10px;
  }

  .advanced-panel summary {
    padding: 10px 12px;
    font-size: 14px;
  }

  .result-panel {
    min-height: auto;
    background: #fff;
  }

  .result-card {
    display: grid;
    justify-items: center;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .verdict-callout {
    max-width: 280px;
    margin-bottom: 4px;
    font-size: 27px;
    line-height: 1.08;
  }

  .score-ring {
    margin: 0 auto;
  }

  .score-ring,
  .score-ring svg {
    width: auto;
    height: auto;
  }

  .score-ring strong {
    font-size: 76px;
    line-height: 0.94;
  }

  .score-ring span {
    font-size: 15px;
  }

  .share-question {
    margin: 2px 0 6px;
    font-size: 16px;
  }

  .verdict-reason {
    max-width: 286px;
    margin-bottom: 8px;
    font-size: 14px;
  }

  .pressure-detail {
    width: 100%;
    margin-top: 8px;
    padding-top: 10px;
  }

  .metric-list {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .metric-list div,
  .pressure-bars,
  .next-step {
    padding: 10px;
  }

  .metric-list dd {
    font-size: 17px;
  }

  .share-box {
    width: 100%;
    max-width: 100%;
    margin-top: 10px;
    padding: 10px;
    background: #f8fafc;
  }

  .share-box p {
    display: none;
  }

  .share-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .share-actions button {
    min-height: 38px;
    padding: 0 10px;
    font-size: 14px;
  }

  .loop-actions {
    grid-template-columns: 1fr;
    gap: 6px;
    margin-top: 8px;
  }

  .loop-actions button,
  .loop-actions a {
    min-height: 34px;
    font-size: 13px;
  }

  .persona-section {
    padding-top: 22px;
  }

  .persona-section .section-heading {
    margin-bottom: 12px;
  }

  .persona-layout {
    gap: 12px;
  }

  .persona-card {
    max-width: 330px;
    margin: 0 auto;
  }

  .anime-avatar {
    height: 172px;
    margin-top: 4px;
  }

  .persona-card h3 {
    margin-top: 0;
    font-size: 22px;
  }

  .persona-card #personaLine {
    font-size: 13px;
  }

  .type-code {
    margin: 8px auto;
    font-size: 32px;
  }

  .trait-grid {
    gap: 6px;
  }

  .persona-score span {
    font-size: 42px;
  }

  .avatar-controls {
    max-width: 330px;
    margin: 0 auto;
  }

  .okx-ad {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    min-height: 54px;
    margin: 18px 0 0;
    padding: 9px 10px;
  }

  .okx-mark {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    font-size: 12px;
  }

  .okx-ad .eyebrow,
  .okx-ad p,
  .okx-ad small {
    display: none;
  }

  .okx-ad h2 {
    font-size: 14px;
    line-height: 1.2;
  }

  .okx-ad #adPreview {
    grid-column: auto;
    width: auto;
    min-height: 34px;
    padding: 0 10px;
    white-space: nowrap;
    font-size: 13px;
  }

  .trend-section {
    padding-top: 28px;
  }

  .trend-grid .trend-card:nth-child(n+3) {
    display: none;
  }

  .trend-card {
    padding: 14px;
  }

  .trend-card h3 {
    font-size: 18px;
  }

  .trend-card p {
    font-size: 14px;
  }

  .tag-row {
    margin: 10px 0;
  }

  .play-lab {
    display: none;
  }

  .learn-more-details,
  .content-section {
    margin-top: 20px;
    padding-top: 0;
  }

  .learn-more-content .methodology-section,
  .learn-more-content .source-trust-section,
  .learn-more-content .seo-hub-section {
    padding-top: 18px;
  }

  .method-grid,
  .trust-grid,
  .hub-grid {
    gap: 10px;
  }

  .method-card,
  .trust-grid article,
  .hub-grid article {
    padding: 12px;
  }

  .data-dashboard,
  .rankings-section,
  .poll-wall {
    padding-top: 12px;
  }
}

/* Typography polish pass: improve reading scale without changing product flow. */
body {
  font-size: 16px;
}

p,
li,
.panel-copy,
.verdict-reason,
.trend-card p,
.method-card p,
.trust-grid p,
.hub-grid p,
.source-section p {
  line-height: 1.62;
}

label span {
  font-size: 14px;
  font-weight: 650;
}

.panel-heading h2,
.section-heading h2,
.ad-slot h2 {
  font-size: 30px;
}

@media (min-width: 821px) {
  .calculator-layout {
    grid-template-columns: minmax(0, 680px) minmax(440px, 560px);
  }
}

.form-panel {
  min-height: 0;
}

.offer-steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
  padding-top: 16px;
}

.offer-steps span {
  font-size: 13px;
}

.result-panel {
  min-height: 0;
}

.share-box {
  background: #f8fafc;
}

.trust-strip {
  opacity: 0.7;
  box-shadow: none;
}

.trust-strip span {
  padding: 10px;
  font-size: 13px;
}

.learn-more-content .method-grid,
.learn-more-content .trust-grid,
.learn-more-content .hub-grid {
  grid-template-columns: 1fr;
  gap: 12px;
}

.learn-more-content .method-card,
.learn-more-content .trust-grid article,
.learn-more-content .hub-grid article {
  padding: 16px 18px;
}

.learn-more-content .method-card h3,
.learn-more-content .hub-grid h3 {
  font-size: 18px;
}

.learn-more-content .hub-grid li:nth-child(n+4) {
  display: none;
}

@media (max-width: 820px) {
  body {
    font-size: 15px;
    line-height: 1.55;
  }

  .hero-copy h1 {
    margin-bottom: 8px;
    font-size: 32px;
    line-height: 1.12;
  }

  .hero-lede {
    font-size: 15px;
    line-height: 1.55;
  }

  .form-panel > .field-grid {
    gap: 13px;
  }

  select,
  input {
    min-height: 44px;
  }

  label span {
    font-size: 13px;
    font-weight: 620;
  }

  .share-actions {
    grid-template-columns: 1fr 1fr;
  }

  .loop-actions {
    display: block;
  }

  .loop-actions button {
    width: 100%;
  }

  .loop-actions a {
    display: none;
  }

  .persona-section {
    padding-top: 18px;
  }

  .persona-card {
    max-width: 300px;
    padding: 12px;
  }

  .persona-top {
    min-height: 36px;
    padding: 6px;
  }

  .persona-top .brand-logo {
    width: 24px;
    height: 24px;
  }

  .anime-avatar {
    width: min(172px, 54vw);
    height: 158px;
  }

  .anime-avatar::after {
    width: 96px;
    height: 42px;
  }

  .avatar-primary-row {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .avatar-primary-row label {
    grid-column: 1 / 3;
  }

  .avatar-primary-row .button-link {
    min-height: 38px;
    padding: 0 10px;
    font-size: 13px;
  }

  #refreshPersona {
    display: none;
  }

  .trend-card .share-mini {
    display: none;
  }

  .trend-card .tag-row span:nth-child(n+3) {
    display: none;
  }

  .trend-card p:nth-of-type(2) {
    display: none;
  }

  .trend-score {
    margin-top: 10px;
  }

  .trend-score strong {
    font-size: 24px;
  }

  .learn-more-content .method-card,
  .learn-more-content .trust-grid article,
  .learn-more-content .hub-grid article {
    padding: 14px;
  }

  .learn-more-content .method-card h3,
  .learn-more-content .hub-grid h3 {
    font-size: 16px;
  }

  .learn-more-content .method-card p,
  .learn-more-content .trust-grid p,
  .learn-more-content .hub-grid p {
    line-height: 1.66;
  }
}

/* Edge-spacing pass: keep dense copy away from card borders. */
.trend-card,
.ranking-card,
.poll-card,
.guide-card,
.data-panel,
.stat-card {
  padding: 20px;
}

.method-card,
.trust-grid article,
.hub-grid article {
  padding: 20px;
}

.section-disclosure > summary {
  padding: 14px 18px;
}

.section-disclosure .insight-grid,
.section-disclosure .poll-grid,
.section-disclosure .guide-grid,
.advanced-panel .field-grid {
  padding: 0 18px 18px;
}

.hub-grid ul {
  padding-left: 22px;
}

.hub-grid li,
.method-card p,
.trust-grid p,
.guide-card p,
.ranking-card li,
.poll-card li,
.trend-card p {
  overflow-wrap: anywhere;
}

.share-box {
  padding: 18px;
}

.share-actions button,
.loop-actions button,
.loop-actions a {
  padding-inline: 14px;
}

.persona-bottom {
  padding: 12px;
}

.persona-bottom p,
.persona-card > p {
  padding-inline: 4px;
}

.source-section {
  padding: 22px;
}

@media (max-width: 820px) {
  .trend-card,
  .ranking-card,
  .poll-card,
  .guide-card,
  .data-panel,
  .stat-card,
  .method-card,
  .trust-grid article,
  .hub-grid article {
    padding: 16px;
  }

  .section-disclosure > summary {
    padding: 14px 16px;
  }

  .section-disclosure .insight-grid,
  .section-disclosure .poll-grid,
  .section-disclosure .guide-grid,
  .advanced-panel .field-grid {
    padding: 0 16px 16px;
  }

  .result-card {
    padding-inline: 2px;
  }

  .share-box {
    padding: 12px;
  }

  .share-actions button {
    padding-inline: 12px;
  }

  .persona-bottom {
    padding: 12px;
  }

  .persona-bottom p {
    padding-inline: 6px;
  }

  .trend-card {
    padding: 16px;
  }

  .source-section {
    padding: 18px;
  }
}

/* Disclosure content spacing: prevent expanded explanatory copy from touching borders. */
.learn-more-content {
  padding: 0 20px 20px;
}

.learn-more-content .section-heading {
  padding: 0 4px;
}

.learn-more-content .methodology-section,
.learn-more-content .source-trust-section,
.learn-more-content .seo-hub-section {
  padding-inline: 0;
}

.more-insights-section > .section-heading {
  padding-inline: 4px;
}

.more-insights-section .section-disclosure > details {
  margin: 0 18px 12px;
  padding: 14px 16px;
  border: 1px solid rgba(218, 220, 224, 0.75);
  border-radius: 8px;
  background: #fff;
}

.more-insights-section .section-disclosure > details > summary {
  font-weight: 850;
}

.more-insights-section .section-disclosure > details > p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.66;
}

.more-insight-modules {
  padding: 0 18px 18px;
}

.more-insight-modules .data-dashboard,
.more-insight-modules .rankings-section,
.more-insight-modules .poll-wall {
  padding-inline: 0;
}

.more-insight-modules .stat-grid,
.more-insight-modules .ranking-tabs,
.more-insight-modules .ranking-grid {
  padding-inline: 2px;
}

@media (max-width: 820px) {
  .learn-more-content {
    padding: 0 16px 16px;
  }

  .learn-more-content .section-heading {
    padding-inline: 2px;
  }

  .more-insights-section > .section-heading {
    padding-inline: 2px;
  }

  .more-insights-section .section-disclosure > details {
    margin: 0 16px 10px;
    padding: 14px;
  }

  .more-insight-modules {
    padding: 0 16px 16px;
  }
}
