:root {
  --bg-page: #fbfaf6;
  --card-bg: #ffffff;
  --text-main: #0f172a;
  --text-muted: rgba(15, 23, 42, .62);
  --border-color: #e5e7eb;
  --btn-bg: #ffffff;
  --btn-color: #374151;
  --accent: #6366f1;
  --accent-soft: rgba(99, 102, 241, .14);
  --shadow-tint: 99, 102, 241;
  --aurora-1: rgba(252, 199, 138, .14);
  --aurora-2: rgba(129, 140, 248, .09);
  --aurora-3: rgba(34, 211, 238, 0);
}

[data-theme="dark"] {
  --bg-page: #0b1020;
  --card-bg: #161d2e;
  --text-main: #f9fafb;
  --text-muted: rgba(255, 255, 255, .6);
  --border-color: rgba(129, 140, 248, .16);
  --btn-bg: #2a3146;
  --btn-color: #f9fafb;
  --accent: #818cf8;
  --accent-soft: rgba(129, 140, 248, .22);
  --shadow-tint: 129, 140, 248;
  --aurora-1: rgba(129, 140, 248, .28);
  --aurora-2: rgba(244, 114, 182, .22);
  --aurora-3: rgba(56, 189, 248, .18);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg-page);
  color: var(--text-main);
  font-family: Outfit, sans-serif;
  transition: background-color .3s ease, color .3s ease;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(38vw 30vh at 4% 4%, var(--aurora-1), transparent 70%),
    radial-gradient(42vw 32vh at 96% 94%, var(--aurora-2), transparent 70%);
}

[data-theme="dark"] body::before {
  background:
    radial-gradient(60vw 50vh at 12% 8%, var(--aurora-1), transparent 60%),
    radial-gradient(55vw 45vh at 92% 18%, var(--aurora-3), transparent 60%),
    radial-gradient(70vw 55vh at 50% 110%, var(--aurora-2), transparent 65%);
}

body > * {
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
}

button,
select,
input {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  min-height: 88px;
  padding: 1.5rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: color-mix(in oklab, var(--card-bg) 78%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}

.site-header::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent 0%, rgba(244, 114, 182, .45) 20%, rgba(129, 140, 248, .55) 50%, rgba(56, 189, 248, .45) 80%, transparent 100%);
}

.logo-link {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  color: inherit;
  text-decoration: none;
}

.logo-container,
.logo-mark {
  width: 40px;
  height: 40px;
  display: block;
}

.brand-name {
  font-size: 1.2rem;
  font-weight: 700;
}

.header-announcement {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(52vw, 620px);
  min-height: 38px;
  padding: .45rem .85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(129, 140, 248, .18);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(250, 204, 21, .1), rgba(244, 114, 182, .08), rgba(6, 182, 212, .09));
  box-shadow: 0 12px 32px -24px rgba(var(--shadow-tint), .55);
  white-space: nowrap;
}

.header-announcement-label {
  flex: 0 0 auto;
  padding: .22rem .5rem;
  border-radius: 999px;
  background: rgba(250, 204, 21, .16);
  color: #d97706;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.header-announcement-text {
  min-width: 0;
  overflow: hidden;
  color: var(--text-muted);
  font-size: .86rem;
  font-weight: 700;
  text-overflow: ellipsis;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.language-control {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.language-globe {
  position: absolute;
  left: .62rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--btn-color);
  opacity: .78;
  pointer-events: none;
}

.language-select {
  height: 32px;
  min-width: 72px;
  padding: 0 1.45rem 0 1.78rem;
  border: 1px solid color-mix(in oklab, var(--border-color) 86%, transparent);
  border-radius: 999px;
  background: linear-gradient(180deg, color-mix(in oklab, var(--card-bg) 96%, transparent), color-mix(in oklab, var(--card-bg) 82%, transparent));
  color: var(--btn-color);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .04em;
  cursor: pointer;
  box-shadow: 0 8px 24px -18px rgba(var(--shadow-tint), .65);
}

.icon-btn {
  width: 20px;
  height: 20px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: none;
  color: var(--btn-color);
  cursor: pointer;
}

.top-banner {
  width: 100%;
  height: 50px;
  padding: 11px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  border-bottom: 1px solid rgba(250, 204, 21, .28);
  background: linear-gradient(90deg, rgba(255, 247, 217, .78), rgba(255, 235, 241, .54), rgba(241, 245, 255, .68));
  color: var(--text-main);
  font-size: .82rem;
}

.top-banner-label {
  padding: .43rem .8rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #818cf8, #f472b6);
  color: white;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .05em;
}

.top-banner blockquote {
  max-width: min(70vw, 820px);
  margin: 0;
  overflow: hidden;
  color: var(--text-main);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-banner-meta {
  color: var(--text-muted);
  font-size: .76rem;
  font-weight: 700;
  white-space: nowrap;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 2rem 2rem;
}

.hero-tagline {
  max-width: 540px;
  margin: .6rem auto 0;
  padding: 0 1rem;
  color: var(--text-muted);
  font-size: .92rem;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
}

.question-header {
  margin: .6rem 0 1.95rem;
  padding: 0 1rem;
  text-align: center;
}

.question-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.1rem;
  font-weight: 500;
}

.question-header h1 {
  max-width: 920px;
  margin: .5rem 0 0;
  color: var(--text-main);
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-weight: 800;
  line-height: 1.3;
  overflow-wrap: anywhere;
}


.question-header .question-title {
  max-width: 920px;
  margin: .5rem 0 0;
  color: var(--text-main);
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-weight: 800;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.question-header span,
.ranking-head h2,
.seo-how-inner h2 em {
  background: linear-gradient(92deg, #ec4899, #6366f1, #06b6d4);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: hueShift 9s ease-in-out infinite;
}

@keyframes hueShift {
  0%,
  100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.game-container {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  column-gap: 2.5rem;
  row-gap: 1.25rem;
}

.card {
  width: 420px;
  height: 380px;
  overflow: hidden;
  position: relative;
  border-radius: 22px;
  background: var(--card-bg);
  box-shadow:
    0 1px rgba(255, 255, 255, .04) inset,
    0 0 0 1px rgba(var(--shadow-tint), .1),
    0 24px 60px -18px rgba(var(--shadow-tint), .45),
    0 8px 22px -10px rgba(0, 0, 0, .35);
}

.character-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.color-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgb(64 128 128);
}

.card-image-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.right-panel {
  position: relative;
  width: 420px;
  height: 380px;
}

.control-card,
.result-card {
  position: absolute;
  inset: 0;
  transition: opacity .28s ease, transform .28s ease;
}

.hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(.96);
}

.control-card {
  display: flex;
  flex-direction: column;
  background: rgb(64 128 128);
}

.level-indicator {
  position: absolute;
  top: 2rem;
  left: 7rem;
  z-index: 10;
  color: rgba(255, 255, 255, .72);
  font-size: .8rem;
  font-weight: 600;
}

.controls-wrapper {
  height: 100%;
  display: flex;
  align-items: stretch;
}

.vertical-slider {
  width: 32px;
  height: 100%;
  position: relative;
  display: block;
  cursor: pointer;
  touch-action: none;
}

.slider-track {
  position: absolute;
  inset: 0;
  display: block;
}

#hue-track {
  background: linear-gradient(to bottom, red, #f0f, #00f, #0ff, #0f0, #ff0, red);
}

#sat-track,
#light-track {
  background: transparent;
}

.slider-thumb {
  position: absolute;
  left: 50%;
  z-index: 6;
  width: 14px;
  height: 14px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .3);
  pointer-events: none;
}

.hint-overlay {
  position: absolute;
  left: 6px;
  right: 6px;
  z-index: 4;
  display: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, .28);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .42) inset;
  pointer-events: none;
}

.hint-overlay.show {
  display: block;
}

.vertical-slider input {
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  opacity: 0;
  appearance: none;
  -webkit-appearance: none;
  writing-mode: vertical-lr;
  direction: rtl;
  cursor: pointer;
}

.preview-area {
  position: relative;
  flex: 1;
  background: rgb(64 128 128);
}

.preview-values {
  position: absolute;
  left: 2rem;
  bottom: 2.25rem;
  color: rgba(255, 255, 255, .72);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.action-btn-group {
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  z-index: 10;
  display: flex;
  align-items: flex-end;
  gap: 1rem;
}

.action-btn {
  width: 64px;
  height: 64px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: var(--btn-bg);
  color: var(--btn-color);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .15);
  cursor: pointer;
  transition: transform .2s ease, opacity .2s ease, background-color .3s ease;
}

.action-btn:hover {
  transform: translateY(-2px);
}

.action-btn.secondary {
  width: 52px;
  height: 52px;
  opacity: .82;
}

.result-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.15rem;
  background: linear-gradient(180deg, color-mix(in oklab, var(--card-bg) 94%, transparent), color-mix(in oklab, var(--card-bg) 78%, transparent));
}

.result-card .level-indicator {
  color: var(--text-muted);
}

.result-swatches {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.result-swatches div {
  padding: 1rem;
  border: 1px solid color-mix(in oklab, var(--border-color) 75%, transparent);
  border-radius: 16px;
  background: color-mix(in oklab, var(--card-bg) 84%, transparent);
}

.result-swatches span {
  display: block;
  color: var(--text-muted);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.result-swatches strong {
  display: block;
  margin: .4rem 0 .7rem;
  font-size: .95rem;
}

.result-swatches i {
  display: block;
  height: 44px;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4);
}

.round-score {
  color: var(--accent);
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.round-score span {
  font-size: 4.2rem;
}

.round-score small {
  color: var(--text-muted);
  font-size: 1rem;
}

#score-note {
  margin: 0;
  color: var(--text-muted);
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
}

.next-btn {
  align-self: center;
  padding: .72rem 1.2rem;
  border: 1px solid color-mix(in oklab, var(--accent) 30%, transparent);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: .85rem;
  font-weight: 800;
  cursor: pointer;
}

.ranking-card {
  width: 260px;
  padding: 1.15rem;
  border: 1px solid color-mix(in oklab, var(--border-color) 82%, transparent);
  border-radius: 18px;
  background: linear-gradient(180deg, color-mix(in oklab, var(--card-bg) 92%, transparent), color-mix(in oklab, var(--card-bg) 78%, transparent));
  box-shadow: 0 1px rgba(255, 255, 255, .05) inset, 0 18px 46px -28px rgba(var(--shadow-tint), .5);
}

.ranking-head {
  margin-bottom: .7rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.ranking-head p {
  margin: 0 0 .16rem;
  color: var(--text-muted);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ranking-head h2 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.15;
}

.ranking-head > span {
  padding: .32rem .58rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, .12);
  color: #16a34a;
  font-size: .68rem;
  font-weight: 900;
}

.ranking-tabs {
  display: flex;
  gap: .24rem;
  margin-bottom: .5rem;
  padding: .18rem;
  border-radius: 10px;
  background: color-mix(in oklab, var(--border-color) 28%, transparent);
}

.ranking-tabs button {
  flex: 1;
  padding: .32rem .5rem;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text-muted);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .04em;
  cursor: pointer;
}

.ranking-tabs .is-active {
  background: var(--card-bg);
  color: var(--accent);
  box-shadow: 0 1px 2px color-mix(in oklab, rgba(var(--shadow-tint), 1) 22%, transparent);
}

.ranking-list {
  height: 245px;
  margin: 0;
  padding: 0 .25rem 0 0;
  list-style: none;
  overflow-y: auto;
}

.ranking-list li {
  min-height: 48px;
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) auto;
  align-items: center;
  gap: .62rem;
  border-top: 1px solid color-mix(in oklab, var(--border-color) 68%, transparent);
}

.ranking-list li:first-child {
  border-top: 0;
}

.ranking-list b {
  width: 1.6rem;
  height: 1.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: .76rem;
}

.ranking-list strong,
.ranking-list em {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-list strong {
  color: var(--text-main);
  font-size: .84rem;
}

.ranking-list em {
  margin-top: .08rem;
  color: var(--text-muted);
  font-size: .72rem;
  font-style: normal;
  font-weight: 600;
}

.ranking-list i {
  color: var(--text-main);
  font-size: 1rem;
  font-style: normal;
  font-weight: 900;
}

.ranking-note {
  margin: .55rem 0 0;
  color: var(--text-muted);
  font-size: .72rem;
  font-weight: 700;
}

.home-characters-strip {
  flex: 0 0 100%;
}

.home-characters-strip {
  width: 100%;
  margin-top: .1rem;
  padding: 2.4rem 1.25rem 2rem;
  background: color-mix(in oklab, var(--card-bg) 55%, transparent);
}

.home-characters-strip-head {
  max-width: 760px;
  margin: 0 auto 1.4rem;
  padding: 0 1rem;
  text-align: center;
}

.home-characters-strip-head p {
  margin: 0 0 .45rem;
  color: var(--accent);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .14em;
}

.home-characters-strip-head h2 {
  margin: 0 0 .4rem;
  font-size: 1.45rem;
  line-height: 1.2;
}

.home-characters-strip-head span {
  color: var(--text-muted);
  font-size: .92rem;
}

.home-characters-marquee {
  position: relative;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: .4rem 0;
  display: flex;
  gap: .85rem;
  overflow: hidden;
  border: 1px solid color-mix(in oklab, var(--border-color) 65%, transparent);
  border-radius: 22px;
  background: var(--card-bg);
}

.home-characters-marquee::before,
.home-characters-marquee::after {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 64px;
  content: "";
  pointer-events: none;
}

.home-characters-marquee::before {
  left: 0;
  border-radius: 22px 0 0 22px;
  background: linear-gradient(90deg, var(--card-bg) 35%, transparent);
}

.home-characters-marquee::after {
  right: 0;
  border-radius: 0 22px 22px 0;
  background: linear-gradient(-90deg, var(--card-bg) 35%, transparent);
}

.home-characters-track {
  min-width: max-content;
  padding: .4rem .1rem .55rem;
  display: flex;
  flex-shrink: 0;
  gap: .85rem;
  animation: homeCharactersScroll 38s linear infinite;
}

.home-characters-marquee:hover .home-characters-track {
  animation-play-state: paused;
}

@keyframes homeCharactersScroll {
  to { transform: translate(calc(-100% - .85rem)); }
}

.home-character-chip {
  width: 64px;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  color: var(--text-main);
  text-decoration: none;
}

.home-character-chip-thumb {
  position: relative;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border: 1px solid color-mix(in oklab, var(--card-bg) 70%, transparent);
  border-radius: 50%;
  background: color-mix(in oklab, var(--card-bg) 88%, var(--border-color));
  box-shadow: 0 0 0 2px color-mix(in oklab, var(--char-color, var(--accent)) 75%, var(--card-bg)), 0 6px 16px -10px color-mix(in oklab, var(--char-color, var(--accent)) 70%, transparent);
}

.home-character-chip-color,
.home-character-chip-img {
  position: absolute;
  inset: 0;
}

.home-character-chip-color {
  background: var(--char-color);
}

.home-character-chip-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-character-chip-name {
  max-width: 72px;
  overflow: hidden;
  color: var(--text-muted);
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-characters-cta {
  width: max-content;
  margin: 1.3rem auto 0;
  padding: .65rem 1.15rem;
  display: flex;
  align-items: center;
  gap: .4rem;
  border: 1px solid color-mix(in oklab, var(--accent) 30%, transparent);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: .85rem;
  font-weight: 800;
  text-decoration: none;
}

.open-finances-strip {
  width: min(900px, calc(100% - 2rem));
  margin: 1.5rem auto 0;
  padding: 1rem 1.3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .85rem 1.6rem;
  border: 1px solid color-mix(in oklab, var(--accent) 18%, var(--border-color));
  border-radius: 16px;
  background: color-mix(in oklab, var(--card-bg) 94%, transparent);
  box-shadow: 0 10px 32px -26px rgba(15, 23, 42, .22);
}

.open-finances-intro p,
.open-finances-intro span {
  margin: 0;
}

.open-finances-intro p {
  color: var(--text-main);
  font-size: .96rem;
  font-weight: 800;
}

.open-finances-intro span {
  color: var(--text-muted);
  font-size: .78rem;
}

.open-finances-stats {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  display: flex;
  border-left: 1px solid color-mix(in oklab, var(--accent) 16%, var(--border-color));
}

.open-finances-stats div {
  flex: 1;
  padding: .1rem 1.05rem;
  border-right: 1px solid color-mix(in oklab, var(--accent) 16%, var(--border-color));
}

.open-finances-stats div:last-child {
  border-right: 0;
}

.open-finances-stats dt {
  margin: 0;
  color: var(--text-muted);
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
  white-space: nowrap;
}

.open-finances-stats dd {
  margin: .18rem 0 0;
  display: inline-flex;
  align-items: baseline;
  gap: .3rem;
  font-size: .96rem;
  white-space: nowrap;
}

.open-finances-stats strong {
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.open-finances-stats small {
  color: var(--text-muted);
  font-size: .76em;
  font-weight: 700;
}

.is-negative {
  color: #b91c1c;
}

.open-finances-link {
  margin-left: auto;
  padding: .5rem .95rem;
  border-radius: 999px;
  background: color-mix(in oklab, var(--accent) 10%, transparent);
  color: var(--accent);
  font-size: .84rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.seo-how-section {
  margin-top: 0;
  padding: 3rem 0 0;
}

.seo-how-inner {
  width: min(1100px, calc(100% - 4rem));
  min-height: 545px;
  margin: 0 auto;
}

.seo-eyebrow-pill {
  width: max-content;
  margin: 0 0 1.1rem;
  padding: .45rem .85rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border-radius: 999px;
  background: var(--card-bg);
  color: var(--accent);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .11em;
}

.seo-eyebrow-pill span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.seo-how-inner h2 {
  max-width: 880px;
  margin: 0;
  font-size: clamp(2rem, 4.1vw, 2.85rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.seo-how-inner h2 em {
  font-style: italic;
}

.seo-how-intro {
  max-width: 640px;
  margin: 1rem 0 2rem;
  color: var(--text-muted);
  font-size: 1.16rem;
  line-height: 1.55;
}

.seo-steps {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  list-style: none;
}

.seo-steps li {
  min-height: 320px;
  padding: 2.4rem 1.5rem 1.8rem;
  border: 1px solid color-mix(in oklab, var(--border-color) 82%, transparent);
  border-radius: 20px;
  background: color-mix(in oklab, var(--card-bg) 70%, transparent);
}

.seo-step-illust {
  height: 110px;
  margin-bottom: 1.2rem;
  border-radius: 16px;
  background:
    linear-gradient(90deg, transparent 48%, var(--text-muted) 48% 49%, transparent 49%),
    radial-gradient(circle at 24% 38%, #facc15 0 12px, transparent 13px),
    linear-gradient(#2dd4bf 0 0) 22% 65% / 54px 22px no-repeat,
    linear-gradient(#fff 0 0) 78% 65% / 54px 22px no-repeat,
    color-mix(in oklab, var(--card-bg) 90%, var(--border-color));
}

.sliders-illust {
  background:
    linear-gradient(90deg, #ef4444, #f97316, #facc15, #22c55e, #06b6d4, #8b5cf6, #ec4899) 20px 20px / calc(100% - 40px) 10px no-repeat,
    linear-gradient(90deg, #e2e8f0, #6366f1) 20px 50px / calc(100% - 40px) 10px no-repeat,
    linear-gradient(90deg, #0f172a, #f1f5f9) 20px 80px / calc(100% - 40px) 10px no-repeat,
    color-mix(in oklab, var(--card-bg) 90%, var(--border-color));
}

.score-illust {
  background:
    linear-gradient(#2dd4bf 0 0) 28px 32px / 44px 44px no-repeat,
    linear-gradient(#14b8a6 0 0) 112px 32px / 44px 44px no-repeat,
    radial-gradient(circle at 74% 50%, transparent 0 26px, transparent 26px),
    color-mix(in oklab, var(--card-bg) 90%, var(--border-color));
}

.seo-steps h3 {
  margin: 0 0 .75rem;
  font-size: 1.05rem;
}

.seo-steps p {
  margin: 0;
  color: var(--text-muted);
  font-size: .94rem;
  line-height: 1.55;
}

.seo-faq {
  padding: 3rem 0 0;
}

.seo-faq-inner {
  width: min(1100px, calc(100% - 4rem));
  margin: 0 auto;
}

.seo-eyebrow {
  margin: 0 0 .35rem;
  color: var(--accent);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.seo-faq h2 {
  margin: 0 0 1.25rem;
  font-size: 2.05rem;
}

.faq-list {
  display: grid;
  gap: .65rem;
}

.faq-list details {
  border: 1px solid color-mix(in oklab, var(--border-color) 82%, transparent);
  border-radius: 12px;
  background: color-mix(in oklab, var(--card-bg) 86%, transparent);
}

.faq-list summary {
  padding: 1rem 1.2rem;
  font-weight: 800;
  cursor: pointer;
}

.faq-list p {
  margin: 0;
  padding: 0 1.2rem 1rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.home-internal-links {
  max-width: 760px;
  margin: 0 auto;
  padding: 1.25rem 1rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .55rem 1.4rem;
}

.home-internal-links a {
  color: var(--text-muted);
  font-size: .88rem;
  text-decoration: none;
}

footer {
  min-height: 86px;
  padding: 2rem;
  display: flex;
  justify-content: center;
  color: var(--text-muted);
  font-size: .9rem;
}

footer p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: .65rem;
}

.footer-mark {
  width: 22px;
  height: 22px;
}

footer a {
  text-decoration: none;
}

.feedback-fab {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1.1rem, env(safe-area-inset-bottom));
  z-index: 20;
  height: 44px;
  padding: 0 .95rem 0 .85rem;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  border: 1px solid rgba(129, 140, 248, .35);
  border-radius: 999px;
  background: linear-gradient(135deg, #818cf8, #f472b6);
  color: #fff;
  box-shadow: 0 10px 28px rgba(var(--shadow-tint), .32), 0 2px 6px rgba(0, 0, 0, .18);
  font-size: .86rem;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 1260px) {
  .ranking-card {
    flex: 0 0 min(90vw, 460px);
    width: min(90vw, 460px);
  }
}

@media (max-width: 900px) {
  .site-header {
    min-height: auto;
    padding: 1rem 1.1rem;
    gap: .9rem;
  }

  .header-announcement {
    position: static;
    order: 3;
    width: 100%;
    transform: none;
  }

  .site-header {
    flex-wrap: wrap;
  }

  .top-banner {
    padding: .65rem 1rem;
    justify-content: flex-start;
    overflow: hidden;
  }

  main {
    padding: .3rem .75rem 1.25rem;
  }

  .game-container {
    gap: 1rem;
  }

  .card,
  .right-panel {
    width: min(420px, calc(100vw - 1.5rem));
    height: min(380px, calc((100vw - 1.5rem) * .905));
    min-height: 318px;
  }

  .ranking-card {
    order: 2;
    width: min(420px, calc(100vw - 1.5rem));
    flex-basis: min(420px, calc(100vw - 1.5rem));
  }

  .home-characters-strip {
    order: 3;
  }

  .open-finances-strip {
    align-items: stretch;
  }

  .open-finances-intro,
  .open-finances-stats {
    flex: 1 0 100%;
  }

  .open-finances-stats {
    flex-direction: column;
    border-left: 0;
    border-top: 1px solid color-mix(in oklab, var(--accent) 14%, var(--border-color));
  }

  .open-finances-stats div {
    padding: .55rem 0;
    display: flex;
    justify-content: space-between;
    border-right: 0;
    border-bottom: 1px dashed color-mix(in oklab, var(--accent) 16%, var(--border-color));
  }

  .open-finances-stats div:last-child {
    border-bottom: 0;
  }

  .open-finances-link {
    margin-left: auto;
  }

  .seo-how-inner,
  .seo-faq-inner {
    width: calc(100% - 1.5rem);
  }

  .seo-steps {
    grid-template-columns: 1fr;
  }

  .seo-steps li {
    min-height: 0;
  }
}

@media (max-width: 600px) {
  .brand-name {
    font-size: 1.08rem;
  }

  .header-actions {
    gap: .85rem;
  }

  .top-banner-label,
  .top-banner-meta {
    display: none;
  }

  .question-header {
    margin-bottom: 1rem;
  }

  .question-header p {
    font-size: .96rem;
  }

  .card,
  .right-panel {
    min-height: 300px;
  }

  .level-indicator {
    top: 1.3rem;
    left: 6.1rem;
  }

  .action-btn-group {
    right: 1.25rem;
    bottom: 1.25rem;
  }

  .preview-values {
    left: 1.25rem;
    bottom: 1.5rem;
    font-size: .68rem;
  }

  .result-card {
    padding: 1.25rem;
  }

  .round-score span {
    font-size: 3.25rem;
  }

  .result-swatches {
    gap: .6rem;
  }

  .home-characters-strip {
    padding: 1.8rem .75rem 1.6rem;
  }

  .home-characters-strip-head h2 {
    font-size: 1.2rem;
  }

  .home-characters-marquee {
    border-radius: 18px;
  }

  .feedback-fab {
    width: 48px;
    height: 48px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .feedback-fab span {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  footer p {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ═══ New sections: categories + science + ranking desc ═══ */

.ranking-desc {
  margin: .6rem 0 0;
  font-size: .75rem;
  color: var(--text-muted);
  line-height: 1.5;
  padding: 0 .25rem;
}

.seo-categories-section,
.seo-science-section {
  background: color-mix(in oklab, var(--bg-page) 60%, var(--card-bg));
  border-top: 1px solid color-mix(in oklab, var(--border-color) 60%, transparent);
  border-bottom: 1px solid color-mix(in oklab, var(--border-color) 60%, transparent);
  padding: 4rem 2rem;
}

.seo-categories-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.seo-category-card {
  padding: 1.75rem;
  border-radius: 20px;
  border: 1px solid color-mix(in oklab, var(--border-color) 70%, transparent);
  background: color-mix(in oklab, var(--card-bg) 85%, transparent);
  backdrop-filter: blur(8px);
}

.seo-category-swatches {
  display: flex;
  gap: .45rem;
  margin-bottom: 1rem;
}

.seo-category-swatches span {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,.1);
  display: block;
}

.seo-category-card h3 {
  margin: 0 0 .65rem;
  font-size: 1.05rem;
  font-weight: 800;
}

.seo-category-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: .92rem;
  line-height: 1.7;
}

.seo-category-card a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  font-size: .85rem;
}

.seo-category-card a:hover {
  text-decoration: underline;
}

.seo-science-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.seo-science-block {
  padding: 1.75rem;
  border-radius: 20px;
  border: 1px solid color-mix(in oklab, var(--border-color) 70%, transparent);
  background: color-mix(in oklab, var(--card-bg) 85%, transparent);
}

.seo-science-block h3 {
  margin: 0 0 .65rem;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
}

.seo-science-block p {
  margin: 0;
  color: var(--text-muted);
  font-size: .92rem;
  line-height: 1.7;
}

@media (max-width: 800px) {
  .seo-categories-grid,
  .seo-science-grid {
    grid-template-columns: 1fr;
  }

  .seo-categories-section,
  .seo-science-section {
    padding: 2.5rem 1.5rem;
  }
}
