@font-face {
  font-family: "Pretendard";
  src: url("/assets/fonts/pretendard/Pretendard-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Pretendard";
  src: url("/assets/fonts/pretendard/Pretendard-Bold.woff2") format("woff2");
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #fffaf2;
  --panel: #ffffff;
  --text: #20242c;
  --muted: #667085;
  --line: #ece4d8;
  --coral: #ff7d68;
  --mint: #71cdb7;
  --sky: #74b7e7;
  --yellow: #ffd166;
  --shadow: 0 12px 30px rgba(37, 35, 30, .09);
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top left, rgba(255, 209, 102, .28), transparent 32rem),
    radial-gradient(circle at top right, rgba(113, 205, 183, .24), transparent 28rem);
}

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

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.wz-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 32px);
  background: rgba(255, 250, 242, .88);
  border-bottom: 1px solid rgba(236, 228, 216, .82);
  backdrop-filter: blur(16px);
}

.wz-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.wz-brand-logo {
  display: block;
  width: 124px;
  height: auto;
}

.wz-nav {
  display: flex;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
}

.wz-nav a {
  padding: 8px 10px;
  border-radius: 999px;
}

.wz-nav a:hover { background: #fff; }

.wz-page {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 22px clamp(16px, 4vw, 32px) 64px;
}

.wz-page.wz-has-fixed-cta {
  padding-bottom: 144px;
}

.wz-narrow {
  width: min(680px, 100%);
}

.wz-hero {
  min-height: 250px;
  display: grid;
  align-items: center;
  padding: 36px clamp(18px, 5vw, 42px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 125, 104, .16), rgba(113, 205, 183, .16)),
    #fff;
  box-shadow: var(--shadow);
}

.wz-hero > div {
  min-width: 0;
}

.wz-eyebrow {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
  padding: 5px 10px;
  color: #72533f;
  background: #fff1d3;
  border: 1px solid #ffe0a3;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.wz-hero h1,
.wz-start h1,
.wz-question h1,
.wz-result-card h1 {
  margin: 0;
  line-height: 1.14;
  letter-spacing: 0;
}

.wz-hero h1 {
  font-size: clamp(32px, 6vw, 58px);
}

.wz-hero-title {
  max-width: none;
  overflow-wrap: normal;
  white-space: nowrap;
  word-break: keep-all;
}

.wz-hero-line {
  display: inline;
}

.wz-hero-title.is-split {
  white-space: normal;
}

.wz-hero-title.is-split .wz-hero-line {
  display: block;
}

.wz-hero-title.is-split .wz-hero-gap {
  display: none;
}

.wz-hero p,
.wz-start p,
.wz-result-card p,
.wz-share-unlock p {
  margin: 14px 0 0;
  color: var(--muted);
}

.wz-discovery {
  display: grid;
  gap: 12px;
  padding: 22px 0 10px;
}

.wz-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.wz-search label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wz-search input[type="search"] {
  min-width: 0;
  min-height: 46px;
  padding: 0 16px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
}

.wz-search input[type="search"]:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 4px rgba(255, 125, 104, .12);
}

.wz-search button {
  min-height: 46px;
  padding: 0 16px;
  color: #fff;
  background: var(--text);
  border: 0;
  border-radius: 14px;
  font-weight: 900;
  cursor: pointer;
}

.wz-sortbar,
.wz-categorybar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.wz-categorybar {
  padding-right: 36px;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 34px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 34px), transparent);
  scroll-padding-inline: 12px 42px;
}

.wz-sortbar a,
.wz-categorybar a {
  white-space: nowrap;
  padding: 9px 14px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

.wz-sortbar a.is-active,
.wz-categorybar a.is-active {
  color: #fff;
  background: var(--text);
  border-color: var(--text);
}

.wz-list-message {
  display: none;
  margin: 24px 0 0;
  padding: 24px;
  color: var(--muted);
  text-align: center;
  background: rgba(255, 255, 255, .62);
  border: 1px dashed var(--line);
  border-radius: 18px;
}

.wz-list-message.is-visible {
  display: block;
}

.wz-load-trigger {
  display: flex;
  width: fit-content;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  margin: 24px auto 0;
  padding: 0 18px;
  color: #fff;
  background: var(--text);
  border: 0;
  border-radius: 14px;
  font-weight: 900;
  cursor: pointer;
}

.wz-load-trigger[hidden] {
  display: none;
}

.wz-load-trigger:disabled {
  opacity: .5;
  cursor: wait;
}

.wz-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 12px;
}

.wz-test-card {
  min-width: 0;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(37, 35, 30, .06);
  transition: transform .18s ease, box-shadow .18s ease;
}

.wz-test-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.wz-thumb {
  display: grid;
  aspect-ratio: 4 / 3;
  place-items: center;
  color: rgba(32, 36, 44, .68);
}

.wz-thumb span,
.wz-start-art span,
.wz-result-art span {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  background: rgba(255, 255, 255, .64);
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 28px;
  font-size: 28px;
  font-weight: 900;
}

.wz-card-body {
  display: grid;
  gap: 7px;
  padding: 15px;
}

.wz-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.wz-card-meta span,
.wz-keywords span {
  display: inline-flex;
  width: fit-content;
  padding: 4px 8px;
  color: #5d5344;
  background: #fff2d6;
  border-radius: 999px;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.wz-card-body strong {
  font-size: 18px;
  line-height: 1.25;
}

.wz-card-body small {
  min-height: 42px;
  color: var(--muted);
  font-size: 14px;
}

.wz-card-body em {
  color: var(--coral);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.wz-card-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.wz-card-stats span:last-child {
  color: var(--muted);
  font-weight: 500;
  text-align: right;
  white-space: nowrap;
}

.wz-card-attempt-count[hidden] {
  display: none;
}

.wz-start,
.wz-result-card,
.wz-share-unlock,
.wz-detail article,
.wz-related {
  margin-top: 18px;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 8px 20px rgba(37, 35, 30, .055);
}

.wz-start-art,
.wz-result-art {
  display: grid;
  aspect-ratio: 16 / 10;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 20px;
}

.wz-thumb.has-image,
.wz-start-art.has-image,
.wz-result-art.has-image {
  background-position: center;
  background-size: cover;
}

.wz-result-heading {
  margin-bottom: 14px;
}

.wz-result-heading h1 {
  margin-top: 5px;
}

.wz-result-name {
  margin: 0 0 8px;
  font-size: clamp(24px, 5.5vw, 34px);
  line-height: 1.18;
}

.wz-start h1,
.wz-result-card h1 {
  font-size: clamp(28px, 7vw, 42px);
}

.wz-start-form {
  display: grid;
  gap: 9px;
  margin-top: 22px;
}

.wz-start-form label {
  font-weight: 800;
}

.wz-start-form input {
  width: 100%;
  padding: 15px 16px;
  background: #fffaf4;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
}

.wz-start-form input:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 4px rgba(255, 125, 104, .13);
}

.wz-start-form small {
  color: var(--muted);
}

.wz-start-form button,
.wz-primary-link,
.wz-share-buttons button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  color: #fff;
  background: var(--text);
  border: 0;
  border-radius: 14px;
  font-weight: 900;
  cursor: pointer;
}

.wz-primary-link {
  width: fit-content;
  margin-top: 18px;
}

.wz-secondary-link {
  display: inline-flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
  padding: 0 20px;
  color: #fff;
  background: var(--text);
  border: 1px solid rgba(32, 36, 44, .2);
  border-radius: 16px;
  font-size: 17px;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(32, 36, 44, .16);
}

.wz-secondary-link:hover {
  background: #303541;
}

.wz-fixed-cta {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 35;
  padding: 24px clamp(16px, 4vw, 32px) calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(255, 250, 242, 0), rgba(255, 250, 242, .94) 40%, var(--bg));
  pointer-events: none;
}

.wz-fixed-cta-inner {
  width: min(680px, 100%);
  margin: 0 auto;
}

.wz-fixed-cta-link {
  display: flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--coral), #ff9b74);
  border: 1px solid rgba(255, 125, 104, .46);
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(255, 125, 104, .28);
  font-size: 18px;
  font-weight: 900;
  pointer-events: auto;
}

.wz-fixed-cta-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(255, 125, 104, .32);
}

.wz-progress {
  position: sticky;
  top: 66px;
  z-index: 10;
  padding: 14px 0;
  background: transparent;
}

.wz-progress span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.wz-progress div {
  height: 9px;
  overflow: hidden;
  background: #f0e7dc;
  border-radius: 999px;
}

.wz-progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--coral), var(--yellow));
  border-radius: inherit;
  transition: width .22s ease;
}

.wz-question {
  display: none;
  margin-top: 20px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.wz-question.is-active {
  display: block;
}

.wz-question h1 {
  font-size: clamp(25px, 7vw, 36px);
}

.wz-choice-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.wz-choice {
  width: 100%;
  min-height: 58px;
  padding: 15px 16px;
  color: var(--text);
  text-align: left;
  background: #fffaf4;
  border: 1px solid var(--line);
  border-radius: 16px;
  cursor: pointer;
}

.wz-choice:hover,
.wz-choice.is-selected {
  border-color: var(--coral);
  box-shadow: 0 0 0 4px rgba(255, 125, 104, .11);
}

.wz-quiz-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
}

.wz-quiz-actions button,
.wz-quiz-actions a {
  padding: 9px 12px;
  color: var(--muted);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.wz-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.wz-share-buttons {
  display: grid;
  grid-template-columns: repeat(var(--wz-share-count, 4), minmax(0, 1fr));
  gap: clamp(12px, 3vw, 24px);
  margin-top: 18px;
}

.wz-share-buttons button {
  -webkit-appearance: none;
  appearance: none;
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: auto;
  aspect-ratio: 1 / 1;
  padding: 0;
  background: transparent;
  border-radius: 14px;
  line-height: 0;
}

.wz-share-buttons button[data-share-channel="tiktok"] {
  display: none;
}

.wz-share-buttons.is-tiktok-unlocked button[data-share-channel="tiktok"] {
  display: flex;
}

.wz-share-buttons button img {
  display: block;
  width: 88%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 20px;
  transition: transform .16s ease, opacity .16s ease;
}

.wz-share-buttons button:hover img {
  transform: translateY(-2px);
}

.wz-share-buttons button.is-loading img {
  opacity: .45;
}

.wz-share-notice {
  position: fixed;
  right: clamp(14px, 4vw, 28px);
  bottom: clamp(14px, 4vw, 28px);
  z-index: 40;
  display: grid;
  width: min(360px, calc(100vw - 28px));
  gap: 5px;
  padding: 15px 16px;
  color: var(--text);
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .18s ease, transform .18s ease;
}

.wz-share-notice.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.wz-share-notice strong {
  font-size: 15px;
  line-height: 1.3;
}

.wz-share-notice span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.wz-detail {
  display: none;
}

.wz-detail.is-open {
  display: block;
}

.wz-detail article h2,
.wz-related h2,
.wz-share-unlock h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.wz-detail article p {
  margin: 0;
  color: var(--muted);
}

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

.wz-mini-grid a {
  display: grid;
  min-height: 76px;
  align-items: center;
  padding: 14px;
  background: #fff8ec;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-weight: 800;
}

.wz-mini-grid a strong {
  font-size: 15px;
  line-height: 1.35;
}

.wz-mini-grid a span {
  margin-top: 4px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 900;
}

.wz-related-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

@media (max-width: 960px) {
  .wz-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .wz-nav { display: none; }
  .wz-page { padding-top: 14px; }
  .wz-hero { min-height: 220px; border-radius: 20px; }
  .wz-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .wz-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wz-card-body { padding: 12px; }
  .wz-card-body strong { font-size: 15px; }
  .wz-card-body small { min-height: 54px; font-size: 13px; }
  .wz-start, .wz-result-card, .wz-share-unlock, .wz-detail article, .wz-related { padding: 18px; border-radius: 18px; }
  .wz-mini-grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .wz-grid { grid-template-columns: 1fr; }
  .wz-related-grid { grid-template-columns: 1fr; }
}
