:root {
  --bg: #f7dfe6;
  --panel: #fff8fb;
  --panel-strong: #ffffff;
  --text: #2e2430;
  --muted: #6e6170;
  --line: rgba(62, 43, 58, 0.14);
  --accent: #b54a8f;
  --accent-2: #ff8bc4;
  --accent-3: #fff0f6;
  --accent-dark: #8f2f6a;
  --shadow: 0 18px 50px rgba(60, 32, 51, 0.12);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Noto Sans KR", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.55), transparent 38%),
    linear-gradient(180deg, #f8e6ec 0%, var(--bg) 100%);
}

img {
  max-width: 100%;
  display: block;
}

button {
  font: inherit;
}

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 244, 248, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #fff, #ffd9ea);
  box-shadow: inset 0 0 0 1px rgba(181, 74, 143, 0.18);
  font-size: 22px;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.brand h1 {
  margin: 0;
  font-size: 18px;
}

.brand p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

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

.ghost-btn,
.solid-btn {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
}

.ghost-btn {
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line);
}

.solid-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: var(--shadow);
}

.page-shell {
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 180px;
  gap: 18px;
  padding: 22px 20px 40px;
}

.home-body,
.test-play-body {
  padding-bottom: 40px;
}

.content {
  min-width: 0;
}

.hero {
  margin-bottom: 18px;
}

.hero-shell,
.hero-copy,
.ad-card,
.note-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 22px;
  border-radius: 26px;
  padding: 28px;
}

.hero-copy {
  border: 0;
  box-shadow: none;
  background: transparent;
  padding: 0;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.hero h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.08;
}

.hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-mascot {
  display: grid;
  place-items: center;
  align-self: start;
  aspect-ratio: 1;
  padding: 18px;
  border-radius: 26px;
  background: linear-gradient(145deg, #fff4b8 0%, #ffd9ea 100%);
  border: 1px solid rgba(181, 74, 143, 0.16);
}

.hero-mascot img {
  width: 100%;
  max-width: 180px;
  object-fit: cover;
  border-radius: 26px;
}

.ad-slot-wrap {
  margin: 18px 0;
}

.ad-card {
  border-radius: 22px;
  padding: 14px;
  overflow: hidden;
}

.ad-card-wide {
  min-height: 118px;
  height: 118px;
  max-height: 118px;
}

.ad-card-wide .adsbygoogle {
  min-height: 72px !important;
  height: 72px !important;
  max-height: 72px !important;
  overflow: hidden;
}

.ad-label {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.ad-placeholder {
  min-height: 140px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--muted);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 230, 240, 0.9));
  border: 1px dashed rgba(110, 97, 112, 0.25);
}

.affiliate-slot-card {
  display: grid;
  gap: 12px;
}

.affiliate-slot-copy {
  display: grid;
  gap: 8px;
}

.affiliate-slot-title {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
}

.affiliate-slot-description {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 13px;
}

.affiliate-slot-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.affiliate-slot-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(181, 74, 143, 0.08);
  border: 1px solid rgba(181, 74, 143, 0.12);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 700;
}

.affiliate-slot-copy-rail .affiliate-slot-description {
  font-size: 12px;
  line-height: 1.5;
}

.affiliate-slot-copy-inline {
  text-align: left;
}

.affiliate-banner-embed {
  display: block;
  width: 100%;
  overflow: hidden;
}

.affiliate-banner-embed a {
  display: block;
}

.affiliate-banner-embed img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 16px;
}

.affiliate-banner-embed-rail img {
  max-width: 160px;
  margin: 0 auto;
}

.affiliate-banner-embed-dynamic {
  min-height: 110px;
  border-radius: 16px;
  overflow: hidden;
}

.affiliate-banner-embed-dynamic iframe,
.affiliate-banner-embed-dynamic img,
.affiliate-banner-embed-dynamic div {
  max-width: 100%;
}

.inline-banner-ad {
  margin-top: 22px;
}

.affiliate-disclosure {
  margin: 10px 4px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.ad-card-horizontal {
  min-height: 124px;
}

.ad-placeholder-horizontal {
  min-height: 90px;
}

.section-head {
  margin: 26px 0 14px;
}

.section-head h3 {
  margin: 0 0 6px;
  font-size: 22px;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 8px;
}

.featured-card {
  display: grid;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 251, 253, 0.94));
  border: 1px solid rgba(62, 43, 58, 0.14);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 34px rgba(60, 32, 51, 0.12);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.featured-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 40px rgba(60, 32, 51, 0.16);
}

.featured-card-stage {
  position: relative;
  min-height: 220px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.44), rgba(255, 255, 255, 0.12)),
    var(--thumb, linear-gradient(135deg, #fff1bf, #e7e7ff));
  overflow: hidden;
}

.featured-card-tags {
  position: absolute;
  inset: 16px 18px auto 18px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.featured-card-tags span {
  max-width: 48%;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.featured-card-stickers {
  position: absolute;
  inset: 58px 24px auto 24px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.featured-card-stickers i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  font-style: normal;
}

.featured-card-copy {
  position: absolute;
  left: 50%;
  top: 58%;
  width: min(84%, 300px);
  transform: translate(-50%, -50%);
  text-align: center;
  overflow: hidden;
}

.featured-card-copy small {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #d55f9f;
  font-size: 12px;
  font-weight: 800;
}

.featured-card-copy strong {
  display: block;
  font-size: clamp(16px, 1.9vw, 24px);
  line-height: 1.24;
  letter-spacing: -0.04em;
  word-break: keep-all;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-wrap: balance;
}

.featured-card-copy p {
  margin: 10px auto 0;
  max-width: 260px;
  color: #675765;
  font-size: 13px;
  line-height: 1.5;
  word-break: keep-all;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-card-body {
  padding: 18px 18px 20px;
  display: grid;
  gap: 8px;
}

.featured-card-body h4 {
  margin: 0;
  font-size: 19px;
  line-height: 1.35;
  word-break: keep-all;
}

.featured-card-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
  word-break: keep-all;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
  align-items: stretch;
}

.card-pager {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.pager-btn {
  min-width: 118px;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text);
  cursor: pointer;
}

.pager-btn:disabled {
  cursor: default;
  opacity: 0.42;
}

.pager-status {
  min-width: 72px;
  text-align: center;
  font-weight: 700;
  color: var(--muted);
}

.tool-card {
  display: grid;
  grid-template-rows: auto auto 1fr;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 251, 253, 0.94));
  border: 1px solid rgba(62, 43, 58, 0.14);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 34px rgba(60, 32, 51, 0.12);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 40px rgba(60, 32, 51, 0.16);
}

.poster-topbar {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(62, 43, 58, 0.12);
  font-size: 16px;
  font-weight: 700;
}

.poster-icon {
  font-size: 16px;
  flex: 0 0 auto;
}

.poster-topbar strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tool-thumb {
  aspect-ratio: 1.28 / 1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.08)),
    var(--thumb, linear-gradient(135deg, #f4c6d9, #e5c0ff));
  position: relative;
  display: block;
  overflow: hidden;
}

.poster-stage {
  min-height: clamp(230px, 27vw, 280px);
  padding: 16px;
}

.poster-chip-row {
  position: absolute;
  inset: 16px 18px auto 18px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  z-index: 2;
}

.poster-chip {
  max-width: 48%;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.poster-chip-soft {
  background: rgba(255, 255, 255, 0.86);
  color: #a4758d;
}

.poster-chip-highlight {
  justify-self: end;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
}

.poster-stickers {
  position: absolute;
  inset: 42px 26px auto 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-content: flex-start;
}

.poster-stickers i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  font-style: normal;
}

.poster-copy {
  position: absolute;
  left: 50%;
  top: 58%;
  width: min(82%, 320px);
  transform: translate(-50%, -50%);
  text-align: center;
  overflow: hidden;
}

.poster-copy span {
  display: block;
  margin-bottom: 12px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  letter-spacing: 0.02em;
  font-weight: 700;
  color: #d55f9f;
}

.poster-copy strong {
  display: block;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.22;
  letter-spacing: -0.04em;
  word-break: keep-all;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-wrap: balance;
}

.poster-copy p {
  margin: 10px auto 0;
  max-width: 290px;
  color: #6a5a66;
  font-size: 14px;
  line-height: 1.45;
  word-break: keep-all;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-wrap: balance;
}

.tool-thumb span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}

.tool-body {
  padding: 18px 18px 20px;
  display: grid;
  align-content: start;
  gap: 10px;
}

.tool-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--muted);
}

.tool-meta small {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(181, 74, 143, 0.08);
  font-size: 11px;
  font-weight: 600;
}

.tool-body h4 {
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
  word-break: keep-all;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tool-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
  word-break: keep-all;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.note-card {
  border-radius: 20px;
  padding: 18px;
}

.note-card h4 {
  margin: 0 0 8px;
}

.note-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.empty-card,
.panel-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.empty-card {
  padding: 22px;
}

.empty-card h4 {
  margin: 0 0 8px;
}

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

.page-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 20px 48px;
}

.breadcrumb {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--accent-dark);
}

.test-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 18px;
  margin-bottom: 18px;
}

.hero-feature {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.85), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 239, 246, 0.86));
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.hero-feature h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.05;
}

.hero-feature p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.pill-row,
.cta-row,
.share-row,
.chip-list,
.result-strengths {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(181, 74, 143, 0.1);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
}

.hero-feature .pill-row,
.hero-feature .cta-row {
  margin-top: 18px;
}

.panel-card {
  padding: 22px;
}

.panel-card h3,
.panel-card h4 {
  margin-top: 0;
}

.panel-card p,
.panel-card li {
  color: var(--muted);
  line-height: 1.7;
}

.test-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
}

.content-stack {
  display: grid;
  gap: 18px;
}

.eyebrow-block {
  margin-bottom: 12px;
}

.eyebrow-block strong {
  display: block;
  margin-top: 8px;
  font-size: 20px;
}

.question-list {
  margin: 0;
  padding-left: 20px;
}

.question-list li + li {
  margin-top: 10px;
}

.chip {
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--accent-3);
  border: 1px solid rgba(181, 74, 143, 0.12);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 600;
}

.solid-link,
.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}

.solid-link {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: var(--shadow);
}

.ghost-link {
  color: var(--text);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
}

.share-row button {
  min-width: 112px;
}

.quiz-form {
  display: grid;
  gap: 16px;
}

.quiz-card {
  margin: 0;
  padding: 18px;
  border: 1px solid rgba(181, 74, 143, 0.14);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 243, 248, 0.92));
}

.quiz-card legend {
  padding: 0 8px;
  font-size: 17px;
  font-weight: 700;
}

.quiz-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 28px;
  margin-right: 10px;
  border-radius: 999px;
  background: rgba(181, 74, 143, 0.1);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 700;
  vertical-align: middle;
}

.quiz-options {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.quiz-option {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(62, 43, 58, 0.08);
  cursor: pointer;
}

.quiz-option input {
  margin-top: 2px;
}

.quiz-option span {
  color: var(--text);
  line-height: 1.6;
}

.quiz-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quiz-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.result-summary {
  margin-top: -2px;
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-dark);
}

.result-tip {
  margin-top: 18px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 240, 246, 0.9);
  border: 1px solid rgba(181, 74, 143, 0.12);
}

.result-tip strong {
  display: block;
  margin-bottom: 8px;
}

.result-tip p {
  margin: 0;
}

.inline-ad {
  padding: 18px;
  border-radius: 22px;
  border: 1px dashed rgba(110, 97, 112, 0.28);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 240, 246, 0.92));
}

.inline-ad strong {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
}

.inline-ad p {
  margin: 0;
  color: var(--muted);
}

.sidebar-stack {
  display: grid;
  gap: 18px;
  align-content: start;
}

.related-list {
  display: grid;
  gap: 12px;
}

.related-item {
  display: block;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}

.related-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
}

.related-item span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.site-footer {
  padding: 30px 0 10px;
  color: var(--muted);
  font-size: 13px;
}

.ad-rail {
  position: sticky;
  top: 96px;
  align-self: start;
}

.ad-card .ad-placeholder {
  min-height: 600px;
}

.test-play-body {
  --test-theme: linear-gradient(135deg, #fff1bf, #e7e7ff);
  min-height: 100vh;
  background:
    linear-gradient(rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.34)),
    var(--test-theme),
    linear-gradient(90deg, rgba(240, 214, 120, 0.16) 1px, transparent 1px),
    linear-gradient(rgba(240, 214, 120, 0.16) 1px, transparent 1px);
  background-size: auto, auto, 24px 24px, 24px 24px;
}

.test-play-shell {
  min-height: 100vh;
}

.test-play-topbar {
  max-width: 980px;
  margin: 0 auto;
  padding: 18px 20px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.test-brand-pill,
.test-nav-pills span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 239, 152, 0.92);
  border: 1px solid rgba(62, 43, 58, 0.18);
  box-shadow: 0 3px 0 rgba(62, 43, 58, 0.14);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.test-nav-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.test-nav-pills span {
  min-height: 34px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.95);
}

.test-play-main {
  display: flex;
  justify-content: center;
  padding: 24px 20px 48px;
}

.test-flow-stack {
  width: min(100%, 860px);
  display: grid;
  gap: 16px;
}

.test-inline-ad {
  width: 100%;
}

.test-inline-ad .ad-card {
  background: rgba(255, 255, 255, 0.8);
}

.test-inline-ad .ad-card-horizontal {
  min-height: 78px;
}

.test-inline-ad .ad-placeholder-horizontal {
  min-height: 46px;
}

.test-inline-ad .affiliate-slot-title {
  font-size: 13px;
}

.test-inline-ad .affiliate-slot-description {
  font-size: 12px;
}

.test-play-frame {
  width: min(100%, 720px);
}

.test-card-shell {
  position: relative;
  padding-top: 24px;
}

.test-card-tab {
  position: absolute;
  left: 18px;
  top: 0;
  z-index: 1;
  padding: 10px 18px;
  border-radius: 20px 20px 0 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.08)),
    var(--test-theme);
  border: 3px solid rgba(62, 43, 58, 0.72);
  border-bottom: 0;
  font-weight: 800;
}

.test-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.58)),
    var(--test-theme);
  border: 3px solid rgba(62, 43, 58, 0.72);
  border-radius: 28px;
  box-shadow: 0 8px 0 rgba(62, 43, 58, 0.12);
  padding: 18px;
}

.intro-art {
  position: relative;
  min-height: 560px;
  padding: 28px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.1)),
    var(--test-theme);
  overflow: hidden;
}

.intro-stickers {
  position: absolute;
  inset: 20px;
  z-index: 1;
}

.intro-stickers span {
  position: absolute;
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 6px 16px rgba(62, 43, 58, 0.12);
  font-size: 20px;
}

.intro-stickers span:nth-child(1) { left: 4%; top: 8%; }
.intro-stickers span:nth-child(2) { right: 9%; top: 14%; }
.intro-stickers span:nth-child(3) { left: 18%; bottom: 18%; }
.intro-stickers span:nth-child(4) { right: 6%; bottom: 10%; }
.intro-stickers span:nth-child(5) { right: 16%; top: 42%; }
.intro-stickers span:nth-child(6) { left: 9%; top: 46%; }
.intro-stickers span:nth-child(7) { left: 42%; top: 20%; }
.intro-stickers span:nth-child(8) { right: 36%; bottom: 14%; }

.intro-center-mark {
  position: relative;
  z-index: 2;
  font-size: clamp(56px, 8vw, 88px);
  text-align: center;
  margin-top: 92px;
}

.intro-copy {
  position: relative;
  z-index: 2;
  margin-top: 18px;
  text-align: center;
  color: #1f1a10;
}

.intro-copy strong {
  display: block;
  font-size: clamp(28px, 4.5vw, 42px);
  line-height: 1.3;
  font-weight: 800;
}

.intro-copy span {
  display: block;
  margin-top: 12px;
  font-size: 16px;
  font-weight: 700;
}

.test-main-button,
.test-sub-button {
  width: 100%;
  min-height: 64px;
  margin-top: 18px;
  border-radius: 22px;
  border: 3px solid rgba(62, 43, 58, 0.72);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.08)),
    var(--test-theme);
  color: #1f1a10;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 0 rgba(62, 43, 58, 0.1);
}

.test-sub-button {
  background: rgba(255, 251, 231, 0.96);
}

.question-card {
  padding: 18px 16px 16px;
}

.test-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 14px 0 10px;
  font-size: 16px;
  font-weight: 800;
  color: #7a582c;
}

.test-progress-track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid rgba(62, 43, 58, 0.72);
  overflow: visible;
  isolation: isolate;
}

.test-progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(238, 216, 88, 0.92) 0,
      rgba(238, 216, 88, 0.92) 18px,
      rgba(250, 235, 151, 0.92) 18px,
      rgba(250, 235, 151, 0.92) 36px
    );
}

.test-progress-train {
  position: absolute;
  top: -18px;
  font-size: 28px;
  line-height: 1;
  transform: translateX(-50%);
  filter: drop-shadow(0 2px 3px rgba(62, 43, 58, 0.24));
  pointer-events: none;
  z-index: 3;
}

.question-panel {
  margin-top: 16px;
  padding: 18px 14px 16px;
  background: #fff;
  border: 3px solid rgba(62, 43, 58, 0.72);
  border-radius: 24px;
}

.question-panel h1 {
  margin: 0 0 20px;
  font-size: clamp(23px, 3vw, 34px);
  line-height: 1.4;
  font-weight: 800;
}

.question-choice-list {
  display: grid;
  gap: 12px;
}

.question-choice-list.is-image-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.question-choice {
  min-height: 92px;
  padding: 14px 18px;
  border-radius: 22px;
  border: 3px solid rgba(62, 43, 58, 0.72);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.84)),
    var(--test-theme);
  color: #3d3423;
  font-size: clamp(16px, 2.3vw, 24px);
  text-align: left;
  font-weight: 700;
  cursor: pointer;
  display: grid;
  gap: 8px;
  align-content: center;
}

.question-choice-compact {
  min-height: 76px;
  padding: 12px 18px;
}

.question-choice-image {
  min-height: 176px;
  padding: 18px 14px;
  text-align: center;
  justify-items: center;
}

.question-choice-emoji {
  font-size: 48px;
  line-height: 1;
}

.question-choice-label {
  display: block;
}

.question-choice-help {
  display: block;
  color: #7a582c;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.test-card-footnote {
  margin: 16px 0 2px;
  text-align: center;
  font-weight: 700;
  color: #7a582c;
}

.loading-shell {
  display: flex;
  justify-content: center;
  padding-top: 72px;
}

.loading-card {
  width: min(100%, 460px);
  min-height: 360px;
  padding: 34px 24px;
  border-radius: 28px;
  border: 3px solid rgba(62, 43, 58, 0.72);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.72)),
    var(--test-theme);
  text-align: center;
  box-shadow: 0 8px 0 rgba(62, 43, 58, 0.12);
}

.loading-progress-head {
  margin-top: 0;
}

.loading-progress-track {
  margin-bottom: 24px;
}

.loading-orb {
  width: 96px;
  height: 96px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.08)),
    var(--test-theme);
  font-size: 42px;
  animation: wobble 1.2s ease-in-out infinite;
}

.loading-copyright {
  margin: 0 0 18px;
  color: #7a582c;
  font-weight: 700;
}

.loading-card h1 {
  margin: 0 0 16px;
  font-size: 34px;
}

.loading-card p {
  margin: 0;
  line-height: 1.7;
  color: var(--muted);
}

.loading-hint {
  margin-top: 12px !important;
}

.result-card {
  padding: 12px;
}

.result-header-board,
.result-section {
  border: 2px solid rgba(62, 43, 58, 0.5);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.8)),
    var(--test-theme);
  margin-bottom: 14px;
  border-radius: 10px;
  overflow: hidden;
}

.result-header-title,
.result-section-title {
  padding: 14px 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.08)),
    var(--test-theme);
  border-bottom: 2px solid rgba(62, 43, 58, 0.4);
  text-align: center;
  font-size: 24px;
  font-weight: 800;
  border-radius: 8px 8px 0 0;
}

.result-header-body {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 14px;
  padding: 12px;
  border-radius: 6px;
}

.result-avatar-box {
  background: linear-gradient(180deg, #ffef97 0%, #fff9d9 100%);
  border: 2px solid rgba(62, 43, 58, 0.26);
  display: grid;
  align-items: center;
  justify-items: center;
  min-height: 224px;
  padding: 10px;
  border-radius: 6px;
}

.result-avatar {
  font-size: 86px;
  line-height: 1;
}

.result-avatar-box strong {
  font-size: 28px;
  text-align: center;
}

.result-summary-box {
  display: grid;
  gap: 12px;
}

.result-mini-badge {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #fff0b0;
  font-weight: 800;
}

.result-summary-copy {
  min-height: 166px;
  padding: 18px;
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(255, 255, 178, 0.95), rgba(255, 248, 199, 0.95));
}

.result-summary-copy strong {
  display: block;
  margin-bottom: 12px;
  font-size: 26px;
  line-height: 1.5;
}

.result-summary-copy p,
.result-section-body p {
  margin: 0;
  color: #2e2430;
  line-height: 1.8;
  font-size: 18px;
}

.result-traits-extended,
.result-match-followup {
  color: #7a582c;
}

.result-summary-extended {
  margin-top: 14px !important;
  color: #463754;
  font-weight: 700;
}

.result-section-body {
  padding: 16px;
  border-radius: 6px;
}

.result-traits {
  display: grid;
  gap: 10px;
  text-align: center;
}

.result-traits-lead,
.result-match-extended {
  margin-top: 8px !important;
  color: #5f4b2f;
  font-weight: 700;
}

.result-tip-line {
  margin-top: 10px !important;
  padding-top: 10px;
  border-top: 1px dashed rgba(62, 43, 58, 0.24);
  color: #7a582c !important;
  font-weight: 700;
}

.result-chip-board,
.result-preview-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.result-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff4b9;
  border: 1px solid rgba(62, 43, 58, 0.18);
  font-weight: 700;
}

.result-match-board {
  text-align: center;
  border-radius: 6px;
}

.result-match-board strong {
  display: block;
  margin-bottom: 8px;
  font-size: 26px;
}

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

.result-related-card {
  min-height: 170px;
  padding: 14px;
  display: grid;
  align-content: start;
  gap: 10px;
  background: #fff9df;
  border: 2px solid rgba(62, 43, 58, 0.18);
  color: inherit;
  text-decoration: none;
  border-radius: 6px;
}

.result-related-icon {
  font-size: 34px;
}

.result-related-card strong {
  font-size: 18px;
}

.result-related-card span {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.result-preview-board {
  text-align: center;
  display: grid;
  gap: 14px;
}

.result-share-row,
.result-action-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.result-share-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 10px;
  justify-items: center;
}

.result-share-nudge {
  margin: 4px 0 14px;
  text-align: center;
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 700;
}

.result-action-row .test-main-button,
.result-action-row .test-sub-button {
  margin-top: 0;
}

.share-icon-btn {
  width: 72px;
  height: 72px;
  border: 2px solid rgba(62, 43, 58, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(60, 32, 51, 0.1);
}

.share-icon-btn svg {
  width: 30px;
  height: 30px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.share-icon-btn-kakao {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  border-color: transparent;
}

.share-icon-btn-label {
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.01em;
}

.result-action-row .test-main-button,
.result-action-row .test-sub-button {
  font-size: 30px;
}

@keyframes wobble {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px) scale(1.03); }
}

@media (max-width: 1180px) {
  .page-shell {
    grid-template-columns: 1fr;
  }

  .ad-rail {
    display: none;
  }
}

@media (max-width: 960px) {
  .hero,
  .featured-grid,
  .card-grid,
  .note-grid,
  .test-hero,
  .test-layout {
    grid-template-columns: 1fr;
  }

  .site-header .wrap {
    padding-top: 12px;
    padding-bottom: 12px;
    align-items: start;
    flex-direction: column;
  }

  .header-actions {
    width: 100%;
  }

  .ghost-btn,
  .solid-btn {
    flex: 1;
  }

  .hero-feature {
    padding: 24px;
  }

  .hero-shell {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .poster-stage {
    min-height: 236px;
  }

  .poster-copy strong {
    font-size: 20px;
  }

  .poster-copy p {
    max-width: 250px;
    font-size: 13px;
  }

  .featured-card-copy strong {
    font-size: 21px;
  }

  .featured-card-copy p {
    font-size: 12px;
    max-width: 230px;
  }

  .poster-chip-row {
    inset: 14px 16px auto 16px;
  }

  .poster-chip {
    max-width: 46%;
    font-size: 11px;
    padding: 8px 12px;
  }

  .test-play-topbar {
    padding-top: 14px;
    flex-direction: column;
    align-items: flex-start;
  }

  .test-nav-pills {
    width: 100%;
  }

  .result-header-body,
  .result-related-grid {
    grid-template-columns: 1fr;
  }

  .result-avatar-box {
    min-height: 180px;
  }
}

@media (max-width: 640px) {
  .page-shell,
  .page-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .home-body,
  .test-play-body {
    padding-bottom: 28px;
  }

  .hero-copy,
  .panel-card {
    padding: 20px;
  }

  .hero-cta-row .solid-link,
  .hero-cta-row .ghost-link {
    width: 100%;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .featured-card-copy strong {
    font-size: 18px;
  }

  .featured-card-copy p {
    font-size: 12px;
    max-width: 210px;
    -webkit-line-clamp: 2;
  }

  .test-inline-ad .ad-card-horizontal {
    min-height: 68px;
  }

  .test-inline-ad .ad-placeholder-horizontal {
    min-height: 40px;
  }

  .affiliate-slot-description {
    font-size: 12px;
  }

  .affiliate-slot-tag {
    min-height: 26px;
    padding: 0 9px;
    font-size: 11px;
  }

  .hero-mascot {
    max-width: 240px;
    justify-self: center;
  }

  .poster-topbar {
    font-size: 16px;
  }

  .poster-stage {
    min-height: 220px;
  }

  .poster-copy {
    width: min(84%, 250px);
  }

  .poster-copy strong {
    font-size: 18px;
  }

  .poster-copy p {
    font-size: 12px;
    max-width: 220px;
  }

  .poster-chip-row {
    inset: 12px 14px auto 14px;
  }

  .poster-chip {
    font-size: 10px;
    padding: 7px 10px;
  }

  .poster-stickers {
    inset: 38px 18px auto 18px;
  }

  .intro-art {
    min-height: 420px;
    padding: 20px;
  }

  .intro-stickers span {
    width: 32px;
    height: 32px;
    font-size: 17px;
  }

  .intro-stickers span:nth-child(5),
  .intro-stickers span:nth-child(6) {
    display: none;
  }

  .intro-center-mark {
    margin-top: 64px;
  }

  .test-card-tab {
    left: 12px;
    padding: 8px 14px;
    font-size: 14px;
  }

  .test-card {
    border-radius: 22px;
    padding: 12px;
  }

  .test-main-button,
  .test-sub-button {
    min-height: 58px;
    font-size: 20px;
  }

  .result-action-row .test-main-button,
  .result-action-row .test-sub-button {
    font-size: 18px;
  }

  .share-icon-btn {
    width: 64px;
    height: 64px;
  }

  .share-icon-btn svg {
    width: 26px;
    height: 26px;
  }

  .share-icon-btn-label {
    font-size: 9px;
  }

  .question-panel h1 {
    font-size: 20px;
  }

  .question-choice {
    min-height: 80px;
    font-size: 15px;
  }

  .loading-card h1,
  .result-header-title,
  .result-section-title,
  .result-summary-copy strong,
  .result-match-board strong {
    font-size: 22px;
  }

  .result-summary-copy p,
  .result-section-body p {
    font-size: 16px;
  }
}

@media (max-width: 1560px) {
  .page-shell {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  .ad-rail-right {
    display: none;
  }
}

@media (max-width: 1720px) {
  .page-shell {
    grid-template-columns: 1fr;
  }

  .ad-rail {
    display: none;
  }
}

@media (max-width: 1360px) {
  .page-shell {
    grid-template-columns: 1fr;
  }

  .ad-rail {
    display: none;
  }
}
