:root {
  color-scheme: light;
  --ink: #123053;
  --paper: #f4fcff;
  --aqua: #71d7e7;
  --blue: #55aee8;
  --deep: #2867b2;
  --coral: #ff8798;
  --pink: #ffb8cc;
  --yellow: #ffe56d;
  --mint: #9ae4c5;
  --line: #122b52;
  font-family: "Noto Sans KR", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; touch-action: manipulation; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 18px 18px, #56b9df33 2px, transparent 2.5px) 0 0 / 36px 36px,
    linear-gradient(145deg, #f3fdff, #eef8ff 58%, #fff2f6);
}
button, a { font: inherit; touch-action: manipulation; }
button { color: inherit; cursor: pointer; transition: transform .08s ease, box-shadow .08s ease, filter .08s ease; }
button:active:not(:disabled) { transform: translate(3px, 3px) !important; box-shadow: 0 0 0 var(--line) !important; }
button:disabled { opacity: .55; cursor: wait; }
[hidden] { display: none !important; }

.page { width: min(100% - 28px, 1060px); margin: auto; padding: 12px 0 42px; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 53px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-size: 14px; font-weight: 900; letter-spacing: -.04em; text-decoration: none; }
.brand img { width: 43px; height: 43px; object-fit: contain; }
.brand small { display: block; color: #65758c; font-size: 8px; letter-spacing: .1em; }
.header-links { display: flex; gap: 8px; }
.header-links a { padding: 7px 12px; border: 3px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 800; text-decoration: none; box-shadow: 3px 3px 0 var(--line); }
.header-links a:last-child { background: var(--yellow); }

.top-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 18px; margin-top: 14px; }
.main-column { min-width: 0; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 245px; align-items: center; gap: 20px; min-height: 315px; padding: 28px; border: 5px solid var(--line); border-radius: 30px; background: linear-gradient(140deg, #63d4e7, #8ccbf4 48%, #f7a9cb); box-shadow: 7px 8px 0 var(--line); overflow: hidden; }
.eyebrow, .card-kicker { display: inline-block; padding: 5px 11px; border: 3px solid var(--line); border-radius: 999px; background: var(--yellow); color: var(--ink); font-family: "Gaegu", cursive; font-size: 17px; font-weight: 700; line-height: 1; box-shadow: 2px 2px 0 var(--line); transform: rotate(-1deg); }
.hero h1 { margin: 10px 0 12px; font-family: "Gaegu", cursive; font-size: clamp(50px, 7vw, 71px); line-height: .86; letter-spacing: -.07em; text-shadow: 2px 3px 0 #fff; }
.hero h1 em { color: #fff; font-style: normal; text-shadow: 3px 3px 0 var(--line); }
.hero-copy > p { max-width: 500px; margin: 0; color: #102d4c; font-size: 18px; font-weight: 700; line-height: 1.5; }
.hero-pills { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 16px; }
.hero-pills span { padding: 5px 10px; border: 3px solid var(--line); border-radius: 999px; background: #fff; font-size: 13px; font-weight: 800; box-shadow: 2px 2px 0 var(--line); }
.hero-pills span:nth-child(2) { background: var(--mint); }
.hero-pills span:nth-child(3) { background: #ffe3ed; }
.hero-art { position: relative; margin: 0; padding: 8px 8px 31px; border: 5px solid var(--line); border-radius: 28px; background: #fff; box-shadow: 5px 5px 0 var(--line); transform: rotate(2deg); }
.hero-art img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border: 3px solid var(--line); border-radius: 20px; }
.hero-art figcaption { position: absolute; right: 4px; bottom: 4px; left: 4px; font-family: "Gaegu", cursive; font-size: 15px; font-weight: 700; text-align: center; }

.invite-banner { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 16px; margin-top: 21px; padding: 15px 20px; border: 5px solid var(--line); border-radius: 24px; background: linear-gradient(135deg, #fff2bb, #ffdce7); box-shadow: 5px 6px 0 var(--line); }
.invite-banner img { width: 110px; height: 110px; object-fit: contain; }
.invite-banner span { color: #ba3e65; font-size: 13px; font-weight: 900; }
.invite-banner h2 { margin: 2px 0; font-family: "Gaegu", cursive; font-size: 29px; line-height: 1; }
.invite-banner p { margin: 5px 0 0; font-size: 14px; font-weight: 600; line-height: 1.55; }

.quiz-card { position: relative; margin-top: 21px; padding: 24px; border: 5px solid var(--line); border-radius: 28px; background: #fff; box-shadow: 6px 7px 0 var(--line); }
.quiz-card h2 { margin: 15px 0 10px; font-family: "Gaegu", cursive; font-size: clamp(30px, 4vw, 40px); line-height: 1.06; letter-spacing: -.04em; }
.quiz-card > p { margin: 8px 0; font-size: 17px; line-height: 1.65; }
.primary-button, .secondary-button, .invite-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 7px 18px; border: 4px solid var(--line); border-radius: 16px; font-family: "Gaegu", cursive; font-size: 21px; font-weight: 700; box-shadow: 4px 5px 0 var(--line); }
.primary-button { background: var(--yellow); }
.secondary-button { background: #dff4ff; }
.secondary-button:nth-of-type(3) { background: var(--mint); }
.primary-button:focus-visible, .secondary-button:focus-visible, .invite-button:focus-visible, .text-button:focus-visible, .choice:focus-visible { outline: 4px dashed #ee4169; outline-offset: 4px; }
.small-note { margin-top: 14px !important; color: #586b80 !important; font-size: 13px !important; }
.progress-head { display: flex; justify-content: space-between; gap: 10px; font-family: "Gaegu", cursive; font-size: 18px; font-weight: 700; }
.progress-head span:first-child { padding: 2px 9px; border: 2px solid var(--line); border-radius: 999px; background: var(--yellow); }
.progress-track { height: 20px; margin: 11px 0 23px; border: 4px solid var(--line); border-radius: 999px; background: #e6f8ff; overflow: hidden; }
.progress-track span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--aqua), var(--blue), var(--coral)); transition: width .18s; }
.choices { display: grid; gap: 14px; margin-top: 20px; }
.choice { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 72px; padding: 13px 16px; border: 4px solid var(--line); border-radius: 18px; background: #effaff; color: var(--ink); font-size: 18px; font-weight: 700; text-align: left; line-height: 1.45; box-shadow: 3px 4px 0 var(--line); }
.choice:nth-child(2) { background: #fff0f4; }
.choice:hover, .choice[aria-pressed="true"] { background: #fff3a8; transform: translate(-1px, -1px); }
.choice-index { display: grid; flex: 0 0 34px; width: 34px; height: 34px; place-items: center; border: 3px solid var(--line); border-radius: 50%; background: var(--blue); color: #fff; font-family: "Gaegu", cursive; font-size: 19px; }
.question-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 20px; }
.text-button { padding: 6px 9px; border: 0; border-bottom: 3px dashed var(--line); background: transparent; font-weight: 800; }
.text-button:disabled { opacity: .4; cursor: default; }

.capture-sticker { position: absolute; top: -14px; right: 15px; padding: 4px 11px; border: 3px solid var(--line); border-radius: 999px; background: var(--mint); font-family: "Gaegu", cursive; font-size: 15px; font-weight: 700; box-shadow: 2px 2px 0 var(--line); transform: rotate(2deg); }
.result-hero { display: grid; grid-template-columns: 220px minmax(0, 1fr); align-items: center; gap: 22px; margin-top: 15px; padding: 15px; border: 4px solid var(--line); border-radius: 24px; background: linear-gradient(135deg, #fff 0 55%, #dcf6ff 100%); box-shadow: 3px 4px 0 var(--line); }
.result-art { display: grid; width: 100%; aspect-ratio: 1; place-items: center; border: 4px solid var(--line); border-radius: 50%; background: radial-gradient(circle, #fff 0 56%, #c7f0ef 57% 100%); overflow: hidden; }
.result-art img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(3px 5px 1px #20315822); }
.result-heading { min-width: 0; }
.result-label { display: inline-block; margin: 0 0 4px; padding: 3px 9px; border: 2px solid var(--line); border-radius: 999px; background: var(--mint); font-family: "Gaegu", cursive; font-size: 16px; font-weight: 700; }
.result-heading h2 { margin: 0; font-size: 48px; line-height: 1; }
.result-heading > p { margin: 7px 0 0; color: #2874a9; font-family: "Gaegu", cursive; font-size: 21px; font-weight: 700; line-height: 1.2; }
.result-keywords { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.result-keywords span { padding: 4px 9px; border: 2px solid var(--line); border-radius: 999px; background: #fff; font-size: 13px; font-weight: 800; box-shadow: 1px 2px 0 var(--line); }
.result-summary { margin: 18px 0 0 !important; padding: 18px; border: 4px solid var(--line); border-radius: 17px; background: #fff; font-size: 17px !important; font-weight: 600; line-height: 1.72 !important; box-shadow: 3px 3px 0 var(--line); }
.retry-cta { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 60px; margin: 18px 0 4px; padding: 7px 16px; border: 5px solid var(--line); border-radius: 17px; background: var(--yellow); font-family: "Gaegu", cursive; font-size: 28px; font-weight: 700; box-shadow: 5px 6px 0 var(--line); }
.result-section-title { display: flex; align-items: center; gap: 8px; margin: 28px 0 11px; font-family: "Gaegu", cursive; font-size: 27px; line-height: 1; }
.result-section-title span { display: grid; width: 36px; height: 36px; place-items: center; border: 3px solid var(--line); border-radius: 50%; background: var(--yellow); font-size: 18px; }
.result-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.result-details article { display: flex; align-items: flex-start; gap: 10px; min-width: 0; padding: 15px 13px; border: 4px solid var(--line); border-radius: 17px; background: #dff5ff; box-shadow: 3px 3px 0 var(--line); }
.result-details article:nth-child(2) { background: #ffe7ed; }
.result-details article:nth-child(3) { background: #e4f9e9; }
.detail-icon { display: grid; flex: 0 0 34px; width: 34px; height: 34px; place-items: center; border: 2px solid var(--line); border-radius: 50%; background: #fff; font-size: 18px; }
.result-details strong { display: block; color: #2867a6; font-family: "Gaegu", cursive; font-size: 19px; line-height: 1.1; }
.result-details p { margin: 7px 0 0; font-size: 14px; line-height: 1.58; letter-spacing: -.025em; }
.fish-fact { display: flex; gap: 10px; align-items: flex-start; margin: 15px 0 0 !important; padding: 13px 15px; border: 3px dashed var(--line); border-radius: 15px; background: #eefcff; font-size: 14px !important; }
.fish-fact b { flex: 0 0 auto; color: #d64c72; font-family: "Gaegu", cursive; font-size: 18px; }
.fish-matchups { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fish-matchups article { min-width: 0; padding: 15px; border: 4px solid var(--line); border-radius: 18px; box-shadow: 3px 3px 0 var(--line); }
.fish-matchups .match-card { background: #dcf8e7; }
.fish-matchups .mismatch-card { background: #ffe4ea; }
.fish-matchups > article > span { display: block; font-family: "Gaegu", cursive; font-size: 18px; font-weight: 700; }
.match-person { display: flex; align-items: center; gap: 10px; margin-top: 5px; }
.match-person img { flex: 0 0 84px; width: 84px; height: 84px; object-fit: contain; }
.fish-matchups strong { display: block; font-family: "Gaegu", cursive; font-size: 27px; line-height: 1; }
.fish-matchups p { margin: 7px 0 0; font-size: 14px; line-height: 1.58; }
.score-area { margin-top: 19px; padding: 15px; border: 4px dashed var(--line); border-radius: 16px; background: #f7fcff; }
.score-area h3 { margin: 0 0 11px; font-family: "Gaegu", cursive; font-size: 24px; }
.score-row { display: grid; grid-template-columns: 220px minmax(0, 1fr) 75px; align-items: center; gap: 8px; margin-top: 9px; font-size: 14px; }
.score-track { height: 14px; border: 3px solid var(--line); border-radius: 999px; background: #fff; overflow: hidden; }
.score-track span { display: block; height: 100%; background: linear-gradient(90deg, var(--aqua), var(--coral)); }
.score-area > p { margin: 11px 0 0; font-weight: 700; }

.couple-panel { margin: 16px 0 22px; padding: 20px; border: 5px solid var(--line); border-radius: 24px; background: linear-gradient(145deg, #d9f8ff, #fff0f5); box-shadow: 4px 5px 0 var(--line); text-align: center; }
.couple-kicker { display: inline-block; padding: 4px 11px; border: 3px solid var(--line); border-radius: 999px; background: var(--yellow); font-family: "Gaegu", cursive; font-size: 18px; font-weight: 700; }
.couple-fishes { display: grid; grid-template-columns: 1fr 105px 1fr; align-items: center; gap: 8px; margin: 15px 0 8px; }
.couple-fishes figure { margin: 0; }
.couple-fishes img { width: min(100%, 145px); aspect-ratio: 1; object-fit: contain; }
.couple-fishes figcaption { font-family: "Gaegu", cursive; font-size: 21px; font-weight: 700; }
.heart-score { display: flex; align-items: baseline; justify-content: center; width: 105px; height: 94px; padding-top: 22px; background: var(--coral); color: #fff; font-family: "Gaegu", cursive; font-weight: 700; clip-path: path("M52.5 89 C45 79 8 54 8 28 C8 7 35 1 52.5 22 C70 1 97 7 97 28 C97 54 60 79 52.5 89 Z"); filter: drop-shadow(3px 4px 0 var(--line)); }
.heart-score span { font-size: 38px; line-height: 1; }
.heart-score small { font-size: 18px; }
.couple-panel > h2 { margin: 6px 0 13px; font-size: 36px; color: #d3456d; }
.couple-insights { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; text-align: left; }
.couple-insights article { padding: 13px; border: 3px solid var(--line); border-radius: 15px; background: #fff; }
.couple-insights strong { font-family: "Gaegu", cursive; font-size: 20px; }
.couple-insights ul { margin: 8px 0 0; padding-left: 18px; font-size: 13px; line-height: 1.55; }
.couple-insights li + li { margin-top: 5px; }
.couple-mission { display: grid; gap: 3px; margin: 11px 0 0 !important; padding: 12px; border: 3px solid var(--line); border-radius: 14px; background: var(--yellow); font-size: 14px !important; text-align: left; }
.couple-mission b { font-family: "Gaegu", cursive; font-size: 19px; }
.invite-action { margin-top: 22px; padding: 15px; border: 4px solid var(--line); border-radius: 17px; background: linear-gradient(135deg, #ffdce8, #e0f8ff); text-align: center; box-shadow: 3px 3px 0 var(--line); }
.invite-button { width: 100%; background: var(--coral); color: #fff; }
.invite-action p { margin: 9px 0 0; font-size: 13px; font-weight: 700; }
.share-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 19px; }
.share-actions .primary-button { background: var(--blue); color: #fff; }
.result-card .small-note { padding: 9px; border: 2px dashed var(--line); border-radius: 12px; background: #fff; }

.guide { margin-top: 28px; padding: 21px; border: 5px solid var(--line); border-radius: 25px; background: #fff; box-shadow: 5px 6px 0 var(--line); }
.guide h2 { margin: 0 0 10px; font-family: "Gaegu", cursive; font-size: 32px; }
.guide h3 { display: inline-block; margin: 22px 0 7px; padding-bottom: 2px; border-bottom: 4px solid var(--coral); font-family: "Gaegu", cursive; font-size: 24px; }
.guide p { margin: 0; font-size: 16px; line-height: 1.65; }
.guide a { color: #276bc4; font-weight: 800; }
.type-list { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 15px; }
.type-list span { padding: 6px 10px; border: 3px solid var(--line); border-radius: 999px; background: var(--yellow); font-family: "Gaegu", cursive; font-size: 16px; font-weight: 700; box-shadow: 2px 2px 0 var(--line); }
.type-list span:nth-child(2n) { background: #dff5ff; }
.type-list span:nth-child(3n) { background: #ffe3ed; }
.side-column { display: grid; gap: 14px; }
.desktop-ad:not([hidden]) { display: grid; width: 300px; min-height: 268px; grid-template-rows: 12px 250px; place-items: center; gap: 6px; color: #6d7282; font-size: 9px; }
.side-links { display: grid; gap: 8px; padding: 15px; border: 5px solid var(--line); border-radius: 22px; background: #dff6ff; box-shadow: 5px 5px 0 var(--line); }
.side-links h2 { margin: 0; font-family: "Gaegu", cursive; font-size: 27px; }
.side-links a { display: flex; justify-content: space-between; gap: 8px; padding: 9px; border: 3px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 800; text-decoration: none; }
.mobile-ad { display: none; width: min(100%, 380px); min-height: 118px; grid-template-rows: 10px 100px; place-items: center; gap: 6px; margin: 23px auto 0; }
.site-footer { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 35px; padding: 16px 10px 0; border-top: 4px dashed var(--line); font-family: "Gaegu", cursive; font-size: 17px; }
.site-footer nav { display: flex; gap: 12px; flex-wrap: wrap; }
.site-footer a { color: var(--ink); font-weight: 700; }
.shared-result .hero { display: none; }
.shared-result .top-layout { margin-top: 8px; }
.shared-result .result-card { margin-top: 0; }

@media (max-width: 980px) {
  .top-layout { grid-template-columns: 1fr; }
  .side-column { display: none; }
  .mobile-ad:not([hidden]) { display: grid; }
  .result-details { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .page { width: min(100% - 18px, 1060px); padding-top: 7px; }
  .brand { font-size: 13px; }
  .brand img { width: 38px; height: 38px; }
  .header-links a { padding: 6px 9px; border-width: 2px; font-size: 12px; box-shadow: 2px 2px 0 var(--line); }
  .top-layout { margin-top: 10px; }
  .hero { grid-template-columns: minmax(0, 1fr) 112px; min-height: 0; gap: 10px; padding: 16px 14px; border-width: 4px; border-radius: 22px; box-shadow: 5px 6px 0 var(--line); }
  .hero h1 { margin: 8px 0; font-size: 43px; }
  .hero-copy > p { font-size: 14px; line-height: 1.45; }
  .eyebrow { font-size: 13px; }
  .hero-pills { margin-top: 10px; gap: 4px; }
  .hero-pills span { padding: 3px 6px; border-width: 2px; font-size: 10px; box-shadow: 1px 1px 0 var(--line); }
  .hero-art { padding: 4px 4px 24px; border-width: 4px; border-radius: 17px; box-shadow: 3px 3px 0 var(--line); }
  .hero-art img { border-width: 2px; border-radius: 13px; }
  .hero-art figcaption { font-size: 9px; }
  .invite-banner { grid-template-columns: 76px 1fr; gap: 9px; padding: 11px; border-width: 4px; }
  .invite-banner img { width: 76px; height: 76px; }
  .invite-banner h2 { font-size: 23px; }
  .invite-banner p { font-size: 12px; }
  .quiz-card { margin-top: 17px; padding: 15px; border-width: 4px; border-radius: 21px; box-shadow: 4px 5px 0 var(--line); }
  .quiz-card h2 { font-size: 31px; }
  .quiz-card > p { font-size: 15px; }
  .primary-button, .secondary-button, .invite-button { min-height: 47px; padding: 5px 13px; border-width: 3px; font-size: 18px; box-shadow: 3px 4px 0 var(--line); }
  .choice { min-height: 58px; padding: 9px 10px; border-width: 3px; font-size: 16px; box-shadow: 2px 3px 0 var(--line); }
  .progress-track { height: 17px; margin-bottom: 17px; }
  .result-hero { grid-template-columns: 1fr; gap: 10px; padding: 12px; }
  .result-art { width: min(64vw, 210px); margin: auto; }
  .result-heading { text-align: center; }
  .result-heading h2 { font-size: 44px; }
  .result-heading > p { font-size: 20px; }
  .result-keywords { justify-content: center; }
  .result-summary { padding: 15px !important; font-size: 16px !important; line-height: 1.67 !important; }
  .retry-cta { min-height: 54px; border-width: 4px; font-size: 24px; box-shadow: 4px 5px 0 var(--line); }
  .result-section-title { margin-top: 24px; font-size: 25px; }
  .fish-matchups { grid-template-columns: 1fr; }
  .match-person img { flex-basis: 72px; width: 72px; height: 72px; }
  .score-row { grid-template-columns: 1fr; gap: 4px; }
  .score-row strong { justify-self: end; margin-top: -26px; }
  .share-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .share-actions .primary-button { grid-column: 1 / -1; }
  .fish-fact { display: grid; gap: 2px; }
  .couple-panel { padding: 14px 10px; border-width: 4px; }
  .couple-fishes { grid-template-columns: 1fr 80px 1fr; }
  .couple-fishes img { width: min(100%, 108px); }
  .couple-fishes figcaption { font-size: 16px; }
  .heart-score { width: 80px; height: 75px; padding-top: 19px; clip-path: path("M40 71 C33 63 5 43 5 22 C5 6 27 1 40 17 C53 1 75 6 75 22 C75 43 47 63 40 71 Z"); }
  .heart-score span { font-size: 29px; }
  .heart-score small { font-size: 14px; }
  .couple-panel > h2 { font-size: 29px; }
  .couple-insights { grid-template-columns: 1fr; }
  .guide { padding: 16px; border-width: 4px; }
  .guide h2 { font-size: 28px; }
  .guide p { font-size: 14px; }
}

@media (max-width: 390px) {
  .site-header { gap: 5px; }
  .header-links { gap: 4px; }
  .header-links a { padding: 5px 7px; font-size: 11px; }
  .hero { grid-template-columns: minmax(0, 1fr) 100px; padding-right: 9px; padding-left: 10px; }
  .hero h1 { font-size: 39px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
