/* My name to Korean — 시안(흰 바탕, 진한 파랑·빨강, 크림색 이름 카드)을 따른 한 가지 테마 */
:root {
  /* layout: 넓은 화면은 좌(입력) 우(카드) 두 칸, 1000px 아래는 한 칸으로 쌓음 */
  --blue: #0b36d6;
  --blue-deep: #0a2aa8;
  --red: #e8323c;
  --ink: #0e1220;
  --muted: #555c70;
  --line: #d5dae6;
  --paper: #ffffff;
  --wash: #f4f6fb;
  --cream: #f6efe2;
  --cream-edge: #e6dcc8;
  --soft-blue: #e6edff;
  --soft-red: #fde9eb;
  --font-display: "Poppins", "Noto Sans KR", "M PLUS Rounded 1c", "Noto Sans SC", "Noto Sans TC", "Kanit", system-ui, sans-serif;
  --font-body: "Poppins", "Noto Sans KR", "Noto Sans SC", "Noto Sans TC", "Noto Sans JP", "Kanit", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-hangul: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--wash); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.5; font-weight: 500; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }

.page { max-width: 1160px; margin: 0 auto; padding: 0 20px 40px; }

/* 머리말 */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 4px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.logo { font-family: var(--font-display); font-weight: 800; font-size: 34px; letter-spacing: -1px; line-height: 1; color: var(--ink); }
.logo-k { background: linear-gradient(135deg, var(--red) 0 50%, var(--blue) 50% 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo.small { font-size: 20px; }
.brand-sub { font-family: var(--font-display); font-weight: 800; font-size: 20px; padding-left: 12px; border-left: 2px solid var(--line); white-space: nowrap; }
.top-nav { display: flex; align-items: center; gap: 22px; }
.top-nav a { font-weight: 800; text-decoration: none; }
.top-nav a:hover { text-decoration: underline; }
.lang-pick { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 10px; padding: 6px 10px; background: var(--paper); }
.lang-pick svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.6; flex: none; }
.lang-pick select { border: 0; background: transparent; font-weight: 700; padding: 2px 4px; max-width: 150px; }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 10px; cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; margin: 0 auto; position: relative; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -8px; } .bars::after { top: 8px; }
.mobile-menu { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 4px 16px; }
.mobile-menu a { font-weight: 800; }

/* 본문 첫 화면 */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: start; background: var(--paper); border-radius: 28px; padding: 44px 44px 40px; box-shadow: 0 1px 0 rgba(14, 18, 32, 0.04), 0 18px 50px rgba(14, 18, 32, 0.06); }
h1 { position: relative; font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 3.5vw, 46px); line-height: 1.1; letter-spacing: -1.2px; margin: 14px 0 16px; white-space: nowrap; }
.uline { position: relative; white-space: nowrap; }
.uline::after { content: ""; position: absolute; left: -2%; right: -4%; bottom: -0.16em; height: 0.2em; background: var(--red); border-radius: 60% 40% 55% 45% / 100% 100% 60% 60%; transform: rotate(-1.2deg); clip-path: polygon(0 45%, 12% 20%, 60% 8%, 100% 0, 100% 55%, 55% 62%, 14% 78%, 0 100%); }
.spark { position: absolute; left: -30px; top: -20px; width: 34px; height: 30px; }
.spark::before, .spark::after, .spark { background: none; }
.spark::before { content: ""; position: absolute; left: 4px; top: 12px; width: 16px; height: 5px; border-radius: 3px; background: var(--red); transform: rotate(35deg); box-shadow: 9px -12px 0 0 var(--red); }
.spark::after { content: ""; position: absolute; left: 22px; top: -2px; width: 5px; height: 14px; border-radius: 3px; background: var(--red); transform: rotate(18deg); }
.spark.light::before { background: #fff; box-shadow: 9px -12px 0 0 var(--red); }
.h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(24px, 3vw, 36px); line-height: 1.15; letter-spacing: -0.6px; margin: 0 0 6px; }
.tagline { font-size: 20px; margin: 0 0 20px; font-weight: 500; }
.info { display: flex; gap: 12px; align-items: center; background: linear-gradient(90deg, #f1f4ff, #fdeef0); border-radius: 14px; padding: 12px 16px; margin: 0 0 22px; font-size: 16px; line-height: 1.4; max-width: 30em; }
.info svg { width: 28px; height: 28px; flex: none; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; }
.info svg .dot { fill: var(--blue); stroke: var(--blue); }
.info b { font-weight: 900; }

form { display: grid; gap: 14px; margin: 0; }
.row2 { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 14px; }
.field { display: grid; gap: 6px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field label, .field legend { font-weight: 800; font-size: 15px; padding: 0; }
input[type="text"], input[type="email"], select#nameLang { width: 100%; height: 50px; border: 1.5px solid #b9c0d2; border-radius: 10px; padding: 0 14px; background: var(--paper); font-size: 18px; font-weight: 700; }
input::placeholder { color: #8b92a6; font-weight: 600; }
input:focus, select:focus { border-color: var(--blue); }
.hint { margin: 0; font-size: 14px; color: var(--muted); }
.variant { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.variant legend { float: left; margin-right: 6px; }
.variant label { font-weight: 700; display: inline-flex; gap: 6px; align-items: center; }
.cta { display: inline-flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 56px; border: 0; border-radius: 12px; background: var(--blue); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 20px; padding: 10px 18px; cursor: pointer; box-shadow: 0 6px 0 var(--blue-deep); transition: transform 0.08s, box-shadow 0.08s; }
.cta:hover { filter: brightness(1.06); }
.cta:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--blue-deep); }
.cta[disabled] { opacity: 0.6; cursor: progress; }
.cta svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.free { text-align: center; margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.msg { margin: 0; padding: 10px 14px; border-radius: 10px; background: var(--soft-red); color: #8f1420; font-weight: 700; font-size: 15px; }
.msg.ok { background: #e4f6ea; color: #0f5a2b; }
.msg.soft { background: var(--wash); color: var(--ink); }
.confirm { border: 1.5px solid var(--blue); border-radius: 14px; padding: 14px 16px; display: grid; gap: 10px; background: #f7f9ff; }
.confirm-title { margin: 0; font-weight: 900; }
.confirm-body { margin: 0; }
.confirm-body b { font-family: var(--font-hangul); font-weight: 900; font-size: 20px; }
.confirm-actions { display: flex; flex-wrap: wrap; gap: 8px; }
#respellWrap { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.btn-ghost { min-height: 44px; border: 1.5px solid var(--blue); background: var(--paper); color: var(--blue); border-radius: 10px; padding: 8px 14px; font-weight: 800; cursor: pointer; }
.btn-ghost:hover { background: var(--soft-blue); }
.btn-ghost.solid { background: var(--blue); color: #fff; }
.link-btn { border: 0; background: none; color: var(--blue); font-weight: 800; text-decoration: underline; cursor: pointer; padding: 10px; justify-self: center; }

/* 카드 무대 */
.hero-stage { display: grid; gap: 18px; min-width: 0; }
.stage-art { position: relative; padding: 46px 26px 74px; min-height: 420px; display: grid; place-items: center; }
.card { position: relative; width: min(100%, 520px); aspect-ratio: 3 / 2; background: linear-gradient(135deg, #fbf6ec, var(--cream)); border-radius: 16px; transform: rotate(-4deg); box-shadow: 0 2px 0 var(--cream-edge), 0 6px 0 #d9ceb8, 0 28px 40px rgba(60, 44, 20, 0.22); display: grid; grid-template-rows: auto 1fr auto; align-items: center; justify-items: center; padding: 6% 7% 7%; overflow: hidden; z-index: 2; --u: 5.2px; /* 카드 너비의 1%. app.js가 실제 너비로 맞춤 */ }
@supports not (aspect-ratio: 3 / 2) { .card { min-height: calc(66.67 * var(--u)); } }
.card::before { content: ""; position: absolute; inset: 4.5%; border: 1.5px solid rgba(160, 130, 80, 0.45); border-radius: 8px; pointer-events: none; }
.wave { position: absolute; width: 23%; aspect-ratio: 1.25; }
.wave.tl { left: 3%; top: 4%; border-radius: 6% 0 100% 0 / 6% 0 100% 0; background: repeating-radial-gradient(circle at 18% 130%, #1f4be0 0 6px, #fbf6ec 6px 9px); clip-path: polygon(0 0, 100% 0, 78% 42%, 46% 70%, 0 100%); }
.wave.br { right: 3%; bottom: 4%; background: repeating-radial-gradient(circle at 82% 130%, #ef3b45 0 6px, var(--cream) 6px 9px); clip-path: polygon(100% 100%, 0 100%, 22% 58%, 54% 30%, 100% 0); }
.fret { position: absolute; width: 9%; aspect-ratio: 1; opacity: 0.55; background:
  linear-gradient(#b89a5e, #b89a5e) 0 0 / 60% 1.5px no-repeat, linear-gradient(#b89a5e, #b89a5e) 0 0 / 1.5px 60% no-repeat,
  linear-gradient(#b89a5e, #b89a5e) 0 60% / 60% 1.5px no-repeat, linear-gradient(#b89a5e, #b89a5e) 60% 0 / 1.5px 60% no-repeat,
  linear-gradient(#b89a5e, #b89a5e) 40% 40% / 60% 1.5px no-repeat, linear-gradient(#b89a5e, #b89a5e) 40% 40% / 1.5px 60% no-repeat,
  linear-gradient(#b89a5e, #b89a5e) 40% 100% / 60% 1.5px no-repeat, linear-gradient(#b89a5e, #b89a5e) 100% 40% / 1.5px 60% no-repeat; }
.fret.tr { right: 5.5%; top: 7%; } .fret.bl { left: 5.5%; bottom: 7%; }
.card-tag { position: absolute; left: 50%; translate: -50% 0; bottom: 1.2%; font-size: 12px; font-weight: 800; letter-spacing: 0.4px; background: var(--ink); color: #fff; border-radius: 999px; padding: 2px 10px; }
.card-orig { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: max(12px, calc(5.6 * var(--u))); line-height: 1.15; text-align: center; max-width: 56%; overflow-wrap: anywhere; z-index: 1; }
.card-orig.long { font-size: max(10px, calc(3.5 * var(--u))); line-height: 1.1; max-width: 62%; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-names { display: grid; gap: calc(1.8 * var(--u)); justify-items: center; width: 100%; z-index: 1; }
.nm { display: grid; justify-items: center; gap: calc(0.6 * var(--u)); max-width: 100%; }
.nm small { font-size: max(9px, calc(2.6 * var(--u))); line-height: 1.25; font-weight: 700; border-radius: 999px; padding: 0 calc(2 * var(--u)); }
.nm.sound small { background: var(--soft-blue); color: var(--blue-deep); }
.nm.hanja small { background: var(--soft-red); color: #b0151f; }
.hg { position: relative; font-family: var(--font-hangul); font-weight: 900; line-height: 1.12; letter-spacing: -0.02em; text-align: center; word-break: keep-all; overflow-wrap: anywhere; font-size: calc(var(--fs, 26) * var(--u)); }
.nm.single .hg::after, .nm.sound .hg::after { content: ""; position: absolute; left: 4%; right: -4%; bottom: -0.02em; height: 0.2em; background: rgba(239, 59, 69, 0.3); border-radius: 50%; transform: rotate(-2deg); z-index: -1; }
.nm.hanja .hg::after { content: ""; position: absolute; left: 4%; right: -4%; bottom: -0.02em; height: 0.2em; background: rgba(31, 75, 224, 0.22); border-radius: 50%; transform: rotate(-2deg); z-index: -1; }
.card-cap { margin: 0; display: flex; align-items: center; gap: 10px; font-size: max(10px, calc(3.2 * var(--u))); line-height: 1.2; font-weight: 600; z-index: 1; text-align: center; }
.card-cap::before, .card-cap::after { content: ""; width: 26px; height: 1.5px; background: rgba(160, 130, 80, 0.7); flex: none; }
.card.typing .hg { color: var(--blue-deep); }

.jamo { position: absolute; width: 132px; height: 132px; fill: none; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 14px 12px rgba(14, 18, 32, 0.22)); z-index: 3; }
.jamo .face { stroke-width: 26; } .jamo .side { stroke-width: 26; } .jamo .shine { stroke: rgba(255, 255, 255, 0.5); stroke-width: 5; }
.j-giyeok { left: 8%; top: -6px; transform: rotate(-8deg); } .j-giyeok .face { stroke: #ef3340; } .j-giyeok .side { stroke: #b3141f; }
.j-nieun { left: 6%; bottom: 0; transform: rotate(6deg); } .j-nieun .face { stroke: #2456f0; } .j-nieun .side { stroke: #0c2fa6; }
.j-mieum { right: 6%; bottom: 6px; transform: rotate(14deg); } .j-mieum .face { stroke: #2456f0; fill: none; } .j-mieum .side { stroke: #0c2fa6; fill: none; }
.twinkle { position: absolute; width: 18px; height: 18px; background: var(--blue); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); z-index: 3; }
.twinkle.t1 { left: 44%; top: 4%; } .twinkle.t2 { left: 38%; top: 9%; width: 12px; height: 12px; background: var(--red); }
.twinkle.t3 { left: 36%; bottom: 13%; background: var(--red); } .twinkle.t4 { left: 41%; bottom: 17%; width: 11px; height: 11px; }
.stage-art.busy .jamo { animation: hop 0.7s ease-in-out infinite alternate; }
.stage-art.busy .j-nieun { animation-delay: 0.15s; } .stage-art.busy .j-mieum { animation-delay: 0.3s; }
.stage-art.busy .twinkle { animation: blink 0.5s ease-in-out infinite alternate; }
@keyframes hop { to { translate: 0 -14px; } }
@keyframes blink { to { scale: 1.5; opacity: 0.5; } }
.skip { position: absolute; right: 14px; bottom: 14px; z-index: 4; min-height: 44px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 800; padding: 8px 18px; cursor: pointer; }

/* 결과: 듣기, 선택, 메일 */
.result { display: grid; gap: 14px; max-width: 520px; width: 100%; justify-self: center; }
.listen-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.listen { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; border: 0; border-radius: 999px; background: var(--soft-blue); color: var(--blue); font-family: var(--font-display); font-weight: 800; font-size: 18px; padding: 8px 20px; cursor: pointer; }
.listen:hover { background: #d6e1ff; }
.listen svg { width: 24px; height: 24px; fill: none; stroke: var(--blue); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.listen .who { font-family: var(--font-hangul); font-weight: 900; color: var(--ink); }
.listen.hanja { background: var(--soft-red); color: #b0151f; } .listen.hanja svg { stroke: #b0151f; }
.opts, .notes { display: grid; gap: 8px; }
.opts:empty, .notes:empty, .listen-row:empty { display: none; }
.opt { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; background: var(--wash); border-radius: 12px; padding: 10px 14px; font-size: 15px; }
.opt b { font-family: var(--font-hangul); font-weight: 900; }
.opt select { height: 40px; border: 1.5px solid #b9c0d2; border-radius: 8px; padding: 0 8px; font-family: var(--font-hangul); font-weight: 700; background: #fff; }
.opt .btn-ghost { min-height: 40px; padding: 4px 12px; }
.note { margin: 0; font-size: 14px; color: var(--muted); background: #fff8e6; border-radius: 10px; padding: 8px 12px; }
.mail-note { margin: 0; font-size: 14px; color: var(--muted); text-align: center; }
.card-preview { width: 100%; border-radius: 12px; box-shadow: 0 8px 24px rgba(14, 18, 32, 0.14); }

/* 일본어·중국어 이름 띠 */
.strip { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px 36px; align-items: center; background: var(--paper); border: 1.5px solid var(--line); border-radius: 20px; padding: 22px 30px; margin-top: 22px; }
.strip h2 { font-family: var(--font-display); font-weight: 800; font-size: 26px; line-height: 1.15; margin: 0; max-width: 10em; padding-right: 30px; border-right: 2px solid var(--line); text-wrap: balance; }
.strip-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.chip { display: inline-grid; justify-items: center; border-radius: 12px; padding: 10px 22px; font-weight: 800; }
.chip.src { background: #eceef4; font-size: 22px; }
.chip.res small { font-size: 14px; font-weight: 800; } .chip.res b { font-family: var(--font-hangul); font-weight: 900; font-size: 28px; line-height: 1.2; }
.chip.blue { background: var(--soft-blue); } .chip.blue small { color: var(--blue-deep); }
.chip.red { background: var(--soft-red); } .chip.red small { color: #b0151f; }
.arrow { width: 30px; height: 30px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* 한국 이름 만들기 안내 */
.banner { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px 30px; margin-top: 22px; padding: 26px 34px 26px 44px; border-radius: 20px; color: #fff; overflow: hidden; background: linear-gradient(115deg, #1232b8 0 72%, var(--red) 72.2% 100%); }
.banner-title { position: relative; margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(24px, 3vw, 36px); line-height: 1.1; letter-spacing: -0.5px; }
.banner .spark { left: -26px; top: -14px; }
.banner-q { margin: 0; font-size: 20px; line-height: 1.3; padding-left: 28px; border-left: 2px solid rgba(255, 255, 255, 0.5); max-width: 15em; }
.banner-cta { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; background: #fff; color: var(--blue); border-radius: 12px; padding: 10px 22px; font-family: var(--font-display); font-weight: 800; font-size: 19px; text-decoration: none; white-space: nowrap; }
.banner-cta svg { width: 22px; height: 22px; fill: none; stroke: var(--blue); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* 하단 배너 자리: PC 728×90, 모바일 320×100 기준 */
.adslot { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 22px; }
.ad-box { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; width: min(100%, 728px); min-height: 90px; padding: 12px 20px; border-radius: 16px; background: linear-gradient(120deg, #fbf6ec, var(--cream)); border: 1.5px solid var(--cream-edge); color: var(--ink); text-decoration: none; overflow: hidden; }
.ad-box:hover { border-color: var(--blue); }
.ad-art svg { display: block; width: 54px; height: 54px; }
.ad-art rect { fill: var(--blue); } .ad-art path { fill: none; stroke: #fff; stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; } .ad-art circle { fill: var(--red); }
.ad-text { display: grid; gap: 2px; min-width: 0; }
.ad-text b { font-family: var(--font-display); font-weight: 800; font-size: 19px; line-height: 1.2; }
.ad-text span { font-size: 14.5px; line-height: 1.35; color: #3d4356; }
.ad-cta { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 10px; background: var(--blue); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 15px; white-space: nowrap; }
.ad-cta:empty { display: none; }
.ad-tag { position: absolute; left: 0; top: 0; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; line-height: 1; padding: 4px 8px; border-radius: 0 0 8px 0; }
.ad-box.img { display: block; padding: 0; min-height: 0; background: none; border-color: var(--line); line-height: 0; }
.ad-img { display: block; width: 100%; height: auto; }
.ad-next { flex: none; width: 44px; height: 44px; border: 1.5px solid var(--line); border-radius: 50%; background: var(--paper); cursor: pointer; display: grid; place-items: center; }
.ad-next svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* 이용 방법 */
.how { margin-top: 22px; background: var(--paper); border-radius: 20px; padding: 28px 34px; }
.how h2 { font-family: var(--font-display); font-weight: 800; font-size: 26px; margin: 0 0 16px; }
.steps { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; background: var(--wash); border-radius: 14px; padding: 16px; }
.steps p { margin: 0; }
.num { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; }
.beta { margin: 0 0 6px; font-size: 15px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.beta-badge { background: var(--ink); color: #fff; border-radius: 999px; padding: 1px 10px; font-size: 12px; font-weight: 800; letter-spacing: 0.4px; }
.privacy { margin: 0; font-size: 15px; color: var(--muted); }
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 24px 6px 0; color: var(--muted); font-size: 14px; }
.rule-ver { margin-left: auto; font-size: 12px; }

/* 좁은 화면 */
@media (max-width: 1000px) {
  .page { padding: 0 16px 32px; }
  .top-nav { display: none; }
  .menu-btn { display: block; }
  .logo { font-size: 28px; } .brand-sub { font-size: 16px; }
  .hero { grid-template-columns: minmax(0, 1fr); padding: 26px 20px 28px; gap: 20px; border-radius: 22px; }
  h1 { font-size: clamp(26px, 7.6vw, 44px); margin-top: 8px; }
  .spark { left: -14px; top: -22px; transform: scale(0.8); }
  .tagline { font-size: 17px; margin-bottom: 14px; }
  .stage-art { padding: 40px 6px 58px; min-height: 0; }
  .jamo { width: 86px; height: 86px; }
  .j-giyeok { left: 2%; top: -4px; } .j-nieun { left: 0; bottom: 0; } .j-mieum { right: 0; bottom: 2px; }
  .strip { grid-template-columns: minmax(0, 1fr); padding: 20px; }
  .strip h2 { border-right: 0; padding-right: 0; max-width: none; font-size: 22px; }
  .chip { padding: 8px 16px; } .chip.src { font-size: 19px; } .chip.res b { font-size: 24px; }
  .banner { grid-template-columns: minmax(0, 1fr); padding: 24px 22px 26px 34px; background: linear-gradient(160deg, #1232b8 0 76%, var(--red) 76.2% 100%); }
  .banner-q { padding-left: 0; border-left: 0; font-size: 17px; }
  .banner-cta { justify-self: start; }
  .how { padding: 22px 20px; }
  .ad-box { grid-template-columns: auto minmax(0, 1fr); min-height: 100px; padding: 14px 14px 12px; gap: 6px 12px; }
  .ad-art svg { width: 44px; height: 44px; }
  .ad-text b { font-size: 16.5px; } .ad-text span { font-size: 13.5px; }
  .ad-cta { grid-column: 1 / -1; justify-content: center; min-height: 40px; }
  .ad-next { width: 40px; height: 40px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) {
  .brand-sub { font-size: 14px; padding-left: 8px; }
  .brand { gap: 8px; }
  .row2 { grid-template-columns: minmax(0, 1fr); }
  .cta { font-size: 18px; }
  .jamo { width: 70px; height: 70px; }
  #respellWrap { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 1001px) { .mobile-menu { display: none !important; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stage-art.busy .jamo, .stage-art.busy .twinkle { animation: none; }
  .cta { transition: none; }
}

/* Shared compact language control, visible on mobile. */
.top-nav .lang-pick{position:relative;width:42px;height:42px;padding:0;justify-content:center;border-radius:50%}.top-nav .lang-pick select{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.lang-pick:focus-within{outline:3px solid #a9ccff}@media(max-width:800px){.top-nav{display:flex;margin-left:auto}.top-nav>a{display:none}.menu-btn{margin-left:8px}}
