/* 동요 스튜디오 v3 — 지존 주니어
   따뜻한 다크 네이비/차콜 스튜디오 (#0C0E14 ~ #141620) + 앰버·골드 금속 포인트.
   햇살 드는 아이 방 사진 히어로 + 헤어라인 금속 보더 + 1·2·3 세 단계. */

@font-face {
  font-family: 'Bravura';
  src: url('assets/Bravura.otf') format('opentype');
  font-display: swap;
}

:root {
  --void: #0C0E14;
  --bg: #101219;
  --panel: #181B24;
  --ink: #F7F0E4;
  --ink2: #C9C0B2;
  --ink3: #958C80;
  --amber: #F4CA84;
  --amber-hi: #FFE7BC;
  --amber-d: #C7954C;
  --bronze: #8E6839;
  --coral: #E6A077;
  --coral-d: #D28A5F;
  --sky: #8FBBD8;
  --mint: #A6CBA8;
  --gold: #F4CA84;
  --line: rgba(246,206,140, .16);
  --line2: rgba(248,214,156, .30);
  --panelbg: radial-gradient(120% 82% at 0% 0%, rgba(255, 232, 186, .075), rgba(255, 232, 186, 0) 56%),
             linear-gradient(168deg, #22262F 0%, #191D26 46%, #12151C 100%);
  --edge: linear-gradient(150deg, rgba(255, 234, 190, .48), rgba(204, 154, 88, .2) 34%, rgba(255, 234, 190, .08) 62%, rgba(246, 206, 140, .32));
  --shadow: 0 20px 44px rgba(0, 0, 0, .46);
  --shadow2: 0 26px 56px rgba(0, 0, 0, .55);
  --r: 22px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--void);
  color: var(--ink);
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo',
    'Noto Sans KR', 'Malgun Gothic', '맑은 고딕', system-ui, sans-serif;
  line-height: 1.6;
  letter-spacing: -.01em;
  overflow-x: hidden;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1080px 620px at 78% -10%, rgba(240, 186, 108, .22), transparent 62%),
    radial-gradient(840px 520px at 4% 4%, rgba(255, 226, 172, .1), transparent 60%),
    radial-gradient(760px 560px at 50% 48%, rgba(182, 132, 72, .1), transparent 66%),
    radial-gradient(980px 760px at 50% 112%, rgba(158, 108, 54, .17), transparent 66%),
    linear-gradient(180deg, #0C0E14 0%, #101219 44%, #0C0E14 100%);
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.hidden { display: none !important; }

.wrap { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }

/* ── 상단 ── */
.top {
  position: sticky; top: 0; z-index: 40;
  background: rgba(12, 14, 20, .9);
  backdrop-filter: saturate(1.2) blur(14px);
  border-bottom: 1px solid rgba(246, 206, 140, .16);
  box-shadow: 0 1px 0 rgba(255, 238, 206, .04) inset, 0 10px 26px rgba(0, 0, 0, .4);
}
.topIn { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand .mark {
  width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center;
  font-size: 17px;
  background: linear-gradient(150deg, #FFE7BC 0%, #EFC886 34%, #C7954C 70%, #8E6839 100%);
  border: 1px solid rgba(255, 240, 210, .45);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 6px 18px rgba(0, 0, 0, .45),
    0 0 18px rgba(220, 170, 105, .18);
}
.brand .bt { display: flex; flex-direction: column; line-height: 1.16; }
.brand b { font-size: 17px; font-weight: 800; letter-spacing: -.03em; color: #FAF4E8; }
.brand .bt span { font-size: 10.5px; letter-spacing: .14em; color: var(--ink3); font-weight: 700; }
.topTag {
  font-size: 12.5px; color: #F6E3BC; font-weight: 700;
  border: 1px solid rgba(246, 220, 172, .32); border-radius: 999px; padding: 6px 13px;
  background: linear-gradient(180deg, rgba(249, 234, 200, .14), rgba(185, 139, 76, .08));
  box-shadow: 0 1px 0 rgba(255, 245, 225, .12) inset, 0 4px 12px rgba(0, 0, 0, .35);
}

/* 엔진 점검 안내 */
.engineBar {
  margin: 0; padding: 11px 20px; text-align: center;
  background: linear-gradient(180deg, rgba(96, 68, 26, .8), rgba(52, 38, 18, .86));
  color: #FFDCA6; font-size: 13.5px; font-weight: 700;
  border-bottom: 1px solid rgba(240, 196, 128, .32);
}

/* ── 히어로 ── */
.hero { position: relative; overflow: hidden; background: #0C0E14; }
.heroImg {
  position: absolute; inset: 0;
  background-image: url('assets/kid_bg.jpg');
  background-size: cover;
  background-position: 62% 56%;
  transform: scale(1.02);
}
.heroVeil {
  position: absolute; inset: 0;
  background:
    linear-gradient(96deg, rgba(10, 12, 17, .95) 0%, rgba(10, 12, 17, .89) 30%,
      rgba(10, 12, 17, .62) 47%, rgba(10, 12, 17, .12) 62%, rgba(10, 12, 17, 0) 74%),
    linear-gradient(180deg, rgba(10, 12, 17, 0) 58%, rgba(10, 12, 17, .82) 86%, var(--void) 100%);
}
.heroIn {
  position: relative; z-index: 2;
  min-height: clamp(360px, 58vh, 540px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 54px 0 46px;
}
.hero .kicker {
  margin: 0 0 14px; font-size: 12.5px; font-weight: 800; letter-spacing: .16em;
  color: var(--amber); text-transform: uppercase;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .7);
}
.hero h1 {
  margin: 0; font-size: clamp(28px, 4.1vw, 50px); line-height: 1.28; font-weight: 800;
  letter-spacing: -.045em; color: #FBF6EC;
  text-shadow: 0 2px 28px rgba(0, 0, 0, .68);
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(180deg, #FFF5DC 2%, #F5D69C 40%, #CB9450 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 14px rgba(0, 0, 0, .55));
}
.hero .lead {
  margin: 18px 0 0; max-width: 30em; font-size: clamp(13.5px, 1.3vw, 16px);
  color: #E8DED1; font-weight: 500; text-shadow: 0 1px 14px rgba(0, 0, 0, .7);
}
.hero .lead b { color: var(--amber-hi); font-weight: 800; }
.heroChips { display: flex; gap: 8px; margin: 22px 0 0; flex-wrap: wrap; }
.heroChips span {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255, 240, 210, .05); border: 1px solid rgba(246, 220, 172, .26);
  border-radius: 999px; padding: 6px 14px 6px 7px; font-size: 12.5px; font-weight: 700; color: #EDE3D3;
  box-shadow: 0 1px 0 rgba(255, 245, 225, .1) inset, 0 4px 12px rgba(0, 0, 0, .32);
}
.heroChips b {
  width: 21px; height: 21px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(160deg, #FBEFD2, #D2AE72); color: #241A0B; font-size: 11.5px; font-weight: 900;
}

/* ── 데모 ── */
.demo { margin-top: 30px; }
.demoHead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.demoHead h2 { margin: 0; font-size: clamp(19px, 2.1vw, 24px); font-weight: 800; letter-spacing: -.035em; color: #FBF5EA; }
.demoHead p { margin: 6px 0 0; font-size: 13.5px; color: var(--ink2); }
.demoTag {
  flex: none; font-size: 11px; font-weight: 800; letter-spacing: .18em; color: var(--amber);
  border: 1px solid rgba(246, 220, 172, .3); background: rgba(246, 202, 132, .09); border-radius: 999px; padding: 6px 12px;
}
.demoList {
  display: grid; grid-template-columns: minmax(0, 660px); gap: 14px; margin-top: 15px;
}
.demoCard {
  position: relative; display: flex; align-items: center; gap: 16px;
  background: var(--panelbg) padding-box, var(--edge) border-box;
  border: 1px solid transparent; border-radius: 20px;
  padding: 16px 20px; box-shadow: 0 1px 0 rgba(255, 240, 210, .07) inset, var(--shadow);
  text-align: left; cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease;
}
.demoCard::after {
  content: ""; position: absolute; left: 18px; right: 18px; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 238, 206, .3), transparent);
  pointer-events: none;
}
.demoCard:hover {
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(255, 240, 210, .09) inset, var(--shadow2), 0 0 0 1px rgba(240, 214, 166, .16);
}
.demoCard.on { box-shadow: 0 1px 0 rgba(255, 240, 210, .09) inset, var(--shadow2), 0 0 0 1px rgba(242, 218, 174, .3); }
.dcPlay {
  position: relative; flex: none; width: 56px; height: 56px; border-radius: 50%; border: 1px solid rgba(240, 214, 166, .38); cursor: pointer;
  display: grid; place-items: center; color: #F6E3BC; font-size: 18px;
  background:
    radial-gradient(circle at 50% 50%, #0A0B10 0 22%, rgba(10, 11, 16, 0) 24%),
    repeating-radial-gradient(circle at 50% 50%, #1D2029 0 1px, #0B0C11 1px 3px),
    #0B0C11;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .55) inset, 0 8px 22px rgba(0, 0, 0, .6), 0 0 22px rgba(214, 170, 110, .1);
  transition: box-shadow .16s, transform .16s;
}
.demoCard:hover .dcPlay { box-shadow: 0 0 0 1px rgba(0, 0, 0, .55) inset, 0 10px 26px rgba(0, 0, 0, .62), 0 0 26px rgba(226, 184, 120, .22); }
.demoCard.on .dcPlay {
  background: linear-gradient(180deg, #FBEFD2 0%, #EBD3A2 34%, #D2AE72 64%, #B0864A 100%);
  color: #241A0B; border-color: rgba(255, 240, 212, .5);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .55) inset, 0 -1px 0 rgba(90, 60, 20, .3) inset, 0 8px 20px rgba(0, 0, 0, .45);
}
.dcText { min-width: 0; }
.dcText b { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.025em; color: #FAF3E7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dcText span { display: block; font-size: 12.5px; color: var(--ink3); font-weight: 600; margin-top: 1px; }

/* ── 단계 패널 ── */
.panel {
  position: relative;
  background: var(--panelbg) padding-box, var(--edge) border-box;
  border: 1px solid transparent; border-radius: var(--r);
  padding: 26px 26px 24px; margin-top: 18px;
  box-shadow: 0 1px 0 rgba(255, 240, 210, .08) inset, var(--shadow), 0 0 40px rgba(200, 150, 88, .07);
}
.panel::after {
  content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 238, 206, .24), transparent);
  pointer-events: none;
}
.step { scroll-margin-top: 78px; }
.stepHead { display: flex; gap: 15px; align-items: flex-start; }
.num {
  flex: none; width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center;
  font-size: 16px; font-weight: 850; color: #FCE9C4;
  background: radial-gradient(circle at 32% 24%, #5A4526, #241B0D 74%);
  border: 1px solid rgba(250, 232, 196, .55);
  box-shadow: 0 1px 0 rgba(255, 246, 224, .3) inset, 0 6px 16px rgba(0, 0, 0, .5), 0 0 18px rgba(232, 190, 124, .22);
  text-shadow: 0 1px 6px rgba(255, 220, 160, .28);
}
.shText h2 { margin: 2px 0 0; font-size: clamp(18px, 2vw, 21px); font-weight: 800; letter-spacing: -.035em; color: #FAF3E7; }
.shText p { margin: 5px 0 0; font-size: 13px; color: var(--ink2); }

/* 주제 */
.topics {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; margin-top: 20px;
}
.topic {
  position: relative; border: 1px solid var(--line); border-radius: 16px;
  background: linear-gradient(170deg, rgba(255, 246, 232, .07), rgba(255, 246, 232, .022));
  padding: 14px 12px 12px; cursor: pointer; text-align: left;
  transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease, background .14s ease;
}
.topic:hover {
  transform: translateY(-2px); border-color: var(--line2);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .44), 0 1px 0 rgba(255, 240, 210, .06) inset;
}
.topic[aria-checked="true"] {
  border-color: rgba(242, 218, 174, .55);
  background: linear-gradient(170deg, rgba(76, 55, 26, .72), rgba(32, 25, 15, .9));
  box-shadow: 0 0 0 1px rgba(242, 218, 174, .16), 0 12px 26px rgba(0, 0, 0, .5), 0 1px 0 rgba(255, 240, 210, .14) inset;
}
.topic[aria-checked="true"]::after {
  content: '✓'; position: absolute; top: 9px; right: 10px;
  width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(180deg, #FBEFD2, #D2AE72); color: #241A0B; font-size: 11px; font-weight: 900;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .45);
}
.tEm { font-size: 22px; line-height: 1; display: block; }
.tName { display: block; margin-top: 8px; font-size: 14px; font-weight: 800; letter-spacing: -.02em; color: #F1E9DC; }
.tMeta { display: block; margin-top: 2px; font-size: 11.5px; color: var(--ink3); font-weight: 600; }
.tPlay {
  margin-top: 9px; border: 1px solid rgba(246, 206, 140, .3); background: rgba(246, 202, 132, .07); color: var(--amber);
  border-radius: 999px; padding: 4px 10px; font-size: 11.5px; font-weight: 800; cursor: pointer;
  display: inline-flex; align-items: center; gap: 4px;
}
.tPlay:hover { border-color: rgba(248, 214, 156, .55); background: rgba(246, 202, 132, .13); }
.tPlay.on {
  border-color: rgba(255, 242, 214, .45); color: #241A0B;
  background: linear-gradient(180deg, #FCF2D9, #D9B77E 70%, #B0864A);
}
.tNoSample { display: block; margin-top: 9px; font-size: 11px; color: #6E665B; font-weight: 700; }

/* 입력 */
.fields { display: grid; grid-template-columns: 1fr 1.5fr; gap: 12px; margin-top: 20px; }
.fld { display: block; }
.fld > span {
  display: block; font-size: 12.5px; font-weight: 800; color: #D8CEBF; margin-bottom: 6px;
}
.fld > span i { font-style: normal; font-weight: 700; color: var(--ink3); font-size: 11px; margin-left: 3px; }
.fld input {
  width: 100%; border: 1px solid rgba(246, 206, 140, .22); background: #0D0F15; border-radius: 13px;
  padding: 12px 14px; font: inherit; font-size: 15px; color: var(--ink); outline: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .35) inset;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.fld input::placeholder { color: #6E675D; }
.fld input:focus {
  border-color: rgba(242, 218, 174, .6);
  box-shadow: 0 0 0 4px rgba(244, 202, 132, .12), 0 2px 8px rgba(0, 0, 0, .35) inset;
}

.optRow { margin-top: 18px; }
.optLabel { margin: 0 0 8px; font-size: 12.5px; font-weight: 800; color: #D8CEBF; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line2); background: rgba(255, 246, 232, .04); border-radius: 999px;
  padding: 8px 15px; font-size: 13.5px; font-weight: 700; color: #E4DACB; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  box-shadow: 0 1px 0 rgba(255, 240, 210, .06) inset;
  transition: all .14s ease;
}
.chip:hover { border-color: rgba(248, 214, 156, .5); }
.chip[aria-checked="true"] {
  background: linear-gradient(170deg, rgba(76, 55, 26, .8), rgba(34, 27, 16, .9));
  border-color: rgba(242, 218, 174, .6); color: var(--amber-hi);
  box-shadow: 0 0 0 1px rgba(242, 218, 174, .14), 0 8px 18px rgba(0, 0, 0, .4);
}
.chip b { font-size: 14px; }

.titlePreview { margin: 18px 0 0; font-size: 13.5px; color: var(--ink2); }
.titlePreview b { color: var(--amber-hi); font-size: 14.5px; }
.titlePreview span { color: var(--ink3); font-size: 12.5px; }

/* 3단계 */
.makeBtn {
  position: relative; overflow: hidden;
  width: 100%; margin-top: 20px; border: 1px solid rgba(255, 242, 214, .45); cursor: pointer; border-radius: 18px;
  padding: 17px 20px; display: flex; align-items: center; gap: 14px; text-align: left;
  color: #241A0B;
  background: linear-gradient(180deg, #FDF3DC 0%, #F2DDB2 24%, #DFBE84 52%, #C39A5C 76%, #A87C42 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 -1px 0 rgba(90, 60, 20, .35) inset,
    0 16px 34px rgba(0, 0, 0, .5), 0 0 26px rgba(216, 172, 108, .14);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.makeBtn::before {
  content: ""; position: absolute; inset: -60% -12%; pointer-events: none;
  background: linear-gradient(112deg, transparent 40%, rgba(255, 255, 255, .5) 48%, rgba(255, 255, 255, .06) 55%, transparent 62%);
  opacity: .3;
}
.makeBtn:hover {
  transform: translateY(-2px); filter: brightness(1.04);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .65) inset, 0 -1px 0 rgba(90, 60, 20, .35) inset,
    0 20px 38px rgba(0, 0, 0, .55), 0 0 32px rgba(220, 178, 112, .22);
}
.makeBtn:disabled { filter: saturate(.6) brightness(.92); cursor: default; transform: none; box-shadow: none; }
.mbIcon {
  position: relative; z-index: 1;
  flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(56, 36, 12, .16); border: 1px solid rgba(70, 45, 15, .2); font-size: 20px;
}
.mbText { position: relative; z-index: 1; flex: 1; min-width: 0; }
.mbText b { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.mbText small { display: block; font-size: 12.5px; color: rgba(36, 26, 11, .76); font-weight: 600; margin-top: 2px; }
.mbAr { position: relative; z-index: 1; font-size: 20px; opacity: .72; }
.makeNote { margin: 13px 0 0; font-size: 12.5px; color: var(--ink3); }
.makeNote b { color: var(--amber); }

.progress { margin-top: 16px; }
.bar { height: 9px; border-radius: 999px; background: rgba(255, 240, 210, .09); overflow: hidden;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .5) inset; }
.bar span { display: block; height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, #B98B4C, #F7DDAE); transition: width .4s ease;
  box-shadow: 0 0 10px rgba(226, 186, 124, .35); }
.pRow { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 12.5px; color: var(--ink2); }
.pRow b { font-weight: 700; color: #DDD3C3; }
.pRow span { font-variant-numeric: tabular-nums; font-weight: 800; color: var(--amber); }

/* ── 결과 ── */
.result { margin-top: 20px; scroll-margin-top: 76px; }
.resCard {
  position: relative;
  background: var(--panelbg) padding-box, var(--edge) border-box;
  border: 1px solid transparent; border-radius: var(--r);
  padding: 24px 26px; box-shadow: 0 1px 0 rgba(255, 240, 210, .06) inset, var(--shadow); margin-top: 14px;
}
.resCard:first-child { margin-top: 0; }
.resHead { display: flex; align-items: center; gap: 8px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800;
  color: #F3DCB0; background: rgba(246, 202, 132, .1); border: 1px solid rgba(246, 220, 172, .3);
  border-radius: 999px; padding: 5px 12px;
}
.resTitle { margin: 12px 0 0; font-size: clamp(21px, 2.6vw, 27px); font-weight: 800; letter-spacing: -.04em; color: #FBF5EA; }
.resMeta { margin: 5px 0 0; font-size: 13px; color: var(--ink2); font-weight: 600; }
.player { margin-top: 16px; background: #08090D; border: 1px solid rgba(246, 206, 140, .16); border-radius: 14px;
  padding: 12px 13px; box-shadow: 0 1px 0 rgba(255, 240, 210, .05) inset, 0 10px 22px rgba(0, 0, 0, .4); }
.player audio { width: 100%; height: 46px; }
.ready { margin: 8px 0 0; font-size: 12.5px; color: var(--ink3); }
.resBtns { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.btn {
  border: 1px solid rgba(246, 220, 172, .26); background: linear-gradient(180deg, rgba(255, 240, 210, .07), rgba(255, 240, 210, .02));
  color: #EDE5D8; border-radius: 13px;
  padding: 11px 17px; font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 7px;
  box-shadow: 0 1px 0 rgba(255, 240, 210, .07) inset, 0 4px 12px rgba(0, 0, 0, .3);
  transition: all .14s ease;
}
.btn:hover { border-color: rgba(246, 227, 188, .5); background: linear-gradient(180deg, rgba(255, 240, 210, .12), rgba(255, 240, 210, .04)); color: #FBF3E4; }
.btn.small { padding: 8px 13px; font-size: 12.5px; border-radius: 11px; }
.btn.gold {
  border: 1px solid rgba(255, 242, 214, .42); color: #241A0B;
  background: linear-gradient(180deg, #FCF2D9 0%, #F0D9AC 26%, #DCBA80 54%, #C0985A 78%, #A67B41 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .58) inset, 0 -1px 0 rgba(90, 60, 20, .32) inset,
    0 10px 24px rgba(0, 0, 0, .46);
}
.btn.gold:hover { filter: brightness(1.05); color: #241A0B; }
.btn.big { padding: 14px 20px; font-size: 15px; border-radius: 14px; font-weight: 800; justify-content: center; width: 100%; }
.note { margin: 10px 0 0; font-size: 12px; color: var(--ink3); line-height: 1.6; }
.note a { color: var(--amber); }

/* 결제 */
.pay { margin-top: 14px; border: 1px solid rgba(246, 220, 172, .28);
  background: linear-gradient(170deg, #1A1E27, #101219); border-radius: 16px; padding: 18px;
  box-shadow: 0 1px 0 rgba(255, 240, 210, .06) inset, 0 12px 28px rgba(0, 0, 0, .38); }
.payHead { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.payHead h3 { margin: 0; font-size: 17px; font-weight: 800; letter-spacing: -.03em; flex: 1; min-width: 0; color: #FAF3E7; }
.price {
  flex: none; white-space: nowrap; font-size: 12.5px; font-weight: 800; color: var(--amber);
  background: rgba(246, 202, 132, .1); border: 1px solid rgba(246, 220, 172, .3); border-radius: 999px; padding: 4px 10px;
}
.payDesc { margin: 7px 0 12px; font-size: 12.5px; color: var(--ink2); }
.bank { margin-top: 14px; border-top: 1px dashed rgba(246, 220, 172, .22); padding-top: 13px; }
.bkTop { font-size: 11.5px; font-weight: 800; color: var(--ink3); letter-spacing: .08em; }
.bkNo { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 5px; }
.bkNo b { font-size: 15px; letter-spacing: .02em; color: var(--amber-hi); }
.bkNo span { font-size: 12px; color: var(--ink2); }
.bkNo .btn { margin-left: auto; }
.bkNote { margin: 7px 0 0; font-size: 11.5px; color: var(--ink3); }
.qr { margin-top: 12px; }
.qr summary { cursor: pointer; font-size: 12.5px; font-weight: 700; color: var(--amber); }
.qrIn { display: flex; gap: 14px; align-items: center; margin-top: 10px; }
.qrIn img { border-radius: 10px; border: 1px solid rgba(246, 232, 204, .4); background: #fff; }
.qrIn p { margin: 0; font-size: 12px; color: var(--ink2); }
.formWrap { margin-top: 16px; border-top: 1px dashed rgba(246, 220, 172, .22); padding-top: 14px; }
.formWrap h4 { margin: 0; font-size: 14.5px; font-weight: 800; color: #F6EFE2; }
.fd { margin: 5px 0 10px; font-size: 12px; color: var(--ink3); }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rowBtns { display: flex; flex-wrap: wrap; gap: 8px; }
.orderOut { margin-top: 12px; }
.orderOut pre {
  margin: 0 0 10px; background: #0C0E14; border: 1px solid rgba(246, 206, 140, .16); border-radius: 12px;
  padding: 13px; font-size: 12px; line-height: 1.7; white-space: pre-wrap; word-break: break-all;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: #CFC5B5; max-height: 320px; overflow: auto;
}
.passRow { margin: 14px 0 0; font-size: 12.5px; color: var(--ink2); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.passLink { border: 0; background: none; padding: 0; color: var(--ink3); text-decoration: underline; cursor: pointer; font-size: 12.5px; }
.passForm { display: inline-flex; gap: 6px; align-items: center; }
.passForm input {
  width: 100px; border: 1px solid rgba(246, 206, 140, .24); background: #0D0F15; border-radius: 9px; padding: 7px 10px;
  font: inherit; font-size: 13px; color: var(--ink); letter-spacing: .12em; outline: none;
}
.passForm input:focus { border-color: rgba(242, 218, 174, .6); }
.passGo { border: 1px solid rgba(246, 220, 172, .3); background: rgba(255, 240, 210, .05); border-radius: 9px; padding: 7px 12px; font-size: 12.5px; font-weight: 700; cursor: pointer; color: #F6E3BC; }
.passMsg { font-size: 12px; color: #E9B48F; font-weight: 700; }

/* 결과 2단 */
.prog2col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.blockHead { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.blockHead h3 { margin: 0; font-size: 16.5px; font-weight: 800; letter-spacing: -.03em; color: #FAF3E7; }
.blockHead h3 small { display: block; font-size: 11.5px; color: var(--ink3); font-weight: 600; margin-top: 2px; }
.tools { display: flex; gap: 6px; flex-wrap: wrap; }
.lyricsBox {
  margin: 12px 0 0; background: #0C0E14; border: 1px solid rgba(246, 206, 140, .16); border-radius: 13px;
  padding: 15px 16px; font-size: 14.5px; line-height: 2; white-space: pre-wrap;
  font-family: inherit; color: #EDE3D4; max-height: 420px; overflow: auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .4) inset;
}
.stepList { margin: 12px 0 0; padding-left: 20px; font-size: 13.5px; color: #DDD3C3; line-height: 1.9; }
.metaGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.metaGrid div { background: rgba(255, 246, 232, .04); border: 1px solid var(--line); border-radius: 11px; padding: 9px 12px; }
.metaGrid span { display: block; font-size: 11px; color: var(--ink3); font-weight: 700; }
.metaGrid b { font-size: 13.5px; font-weight: 800; color: #F1E9DC; }
.beatStrip { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.beatRow { display: flex; gap: 6px; }
.beat {
  width: 38px; height: 44px; border-radius: 10px; border: 1px solid var(--line);
  background: rgba(255, 246, 232, .04);
  display: grid; place-items: center; position: relative;
}
.beat b { font-size: 13px; font-weight: 800; color: #B6AC9D; }
.beat.strong {
  background: linear-gradient(170deg, rgba(76, 55, 26, .8), rgba(34, 27, 16, .9));
  border-color: rgba(242, 218, 174, .5);
}
.beat.strong b { color: var(--amber-hi); }
.beat .clap { position: absolute; bottom: 2px; font-size: 9px; color: var(--amber); font-style: normal; }

/* 악보 */
.scoreMeta { margin-top: 10px; font-size: 12.5px; color: var(--ink2); font-weight: 700; }
.scoreWarn { margin: 6px 0 0; font-size: 12px; color: #F0C48C; }
.scorePaper {
  margin-top: 12px; background: #FCFAF4; border: 1px solid rgba(246, 232, 204, .5); border-radius: 13px;
  padding: 10px; overflow-x: auto; color: #241C14;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .5), 0 12px 26px rgba(0, 0, 0, .4);
}
.scorePaper svg { width: 100%; height: auto; display: block; }
.promptBox { background: linear-gradient(170deg, #161922, #0E1016) padding-box, var(--edge) border-box;
  border: 1px solid transparent; border-radius: var(--r); padding: 18px 24px; margin-top: 14px;
  box-shadow: 0 1px 0 rgba(255, 240, 210, .05) inset, var(--shadow); }
.promptBox summary { cursor: pointer; font-size: 14px; font-weight: 800; color: #F1E9DC; }
.promptBox pre {
  margin: 12px 0 0; background: #0C0E14; border: 1px solid rgba(246, 206, 140, .14); border-radius: 11px;
  padding: 13px; font-size: 11.5px; line-height: 1.75; white-space: pre-wrap; word-break: break-word;
  color: #B7AE9F; max-height: 320px; overflow: auto;
}

/* ── 푸터 ── */
.foot { margin-top: 40px; padding: 0 0 40px; }
.zBanner {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: linear-gradient(100deg, #1B1710 0%, #22190F 48%, #2A1E11 100%);
  border: 1px solid rgba(246, 220, 172, .26);
  border-radius: 20px; padding: 18px 22px; position: relative; overflow: hidden;
  box-shadow: 0 1px 0 rgba(255, 240, 210, .09) inset, 0 18px 40px rgba(0, 0, 0, .5);
}
.zBanner::before {
  content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 238, 206, .3), transparent);
}
.zPhoto {
  flex: none; width: 58px; height: 58px; border-radius: 15px;
  background-image: url('assets/kid_bg.jpg'); background-size: 300% auto; background-position: 58% 62%;
  border: 1px solid rgba(255, 220, 170, .45);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .45);
}
.zText { flex: 1; min-width: 200px; color: #F6EEE2; }
.zKicker { margin: 0; font-size: 11px; letter-spacing: .14em; font-weight: 800; color: #A79A86; }
.zMain { margin: 4px 0 0; font-size: 14.5px; font-weight: 600; color: #F6EEE2; }
.zMain b { color: var(--amber-hi); font-weight: 800; }
.zBtn {
  flex: none; display: inline-flex; align-items: center; gap: 9px; text-decoration: none;
  color: #241A0B; border: 1px solid rgba(255, 242, 214, .42);
  background: linear-gradient(180deg, #FCF2D9 0%, #F0D9AC 26%, #DCBA80 54%, #C0985A 78%, #A67B41 100%);
  border-radius: 13px; padding: 12px 18px; font-size: 13.5px; font-weight: 800;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .55) inset, 0 10px 24px rgba(0, 0, 0, .45);
}
.zBtn:hover { filter: brightness(1.05); }
.zBtn i { font-style: normal; opacity: .75; }
.footNote { margin: 16px 0 0; font-size: 11.5px; color: #8C8578; line-height: 1.8; text-align: center; }

/* 토스트 */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px);
  background: #161923; color: #F6EFE3; font-size: 13px; font-weight: 700; padding: 11px 18px;
  border: 1px solid rgba(246, 220, 172, .28);
  border-radius: 12px; box-shadow: 0 14px 34px rgba(0, 0, 0, .55); opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease; z-index: 80; max-width: calc(100% - 40px);
  text-align: center;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ── 반응형 ── */
@media (max-width: 900px) {
  .topics { grid-template-columns: repeat(3, 1fr); }
  .prog2col { grid-template-columns: 1fr; }
  .fgrid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .wrap { width: calc(100% - 28px); }
  .topIn { height: 58px; }
  .brand b { font-size: 15.5px; }
  .topTag { display: none; }
  .heroIn { min-height: 0; padding: 236px 0 30px; justify-content: flex-start; }
  .heroImg {
    height: 250px; inset: 0 0 auto 0; background-image: url('assets/kid_bg_m.jpg'); background-position: 58% 46%; transform: none;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 58%, rgba(0, 0, 0, .62) 82%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(180deg, #000 0%, #000 58%, rgba(0, 0, 0, .62) 82%, rgba(0, 0, 0, 0) 100%);
  }
  .heroVeil {
    background:
      linear-gradient(180deg, rgba(10, 12, 17, 0) 0%, rgba(10, 12, 17, .18) 34%, rgba(10, 12, 17, .72) 62%, rgba(10, 12, 17, .96) 76%, var(--void) 100%);
  }
  .hero h1 { font-size: 27px; line-height: 1.34; }
  .hero .lead { font-size: 13px; margin-top: 12px; }
  .heroChips span { font-size: 11.5px; padding: 5px 11px 5px 6px; }
  .heroChips b { width: 19px; height: 19px; font-size: 10.5px; }
  .demo { margin-top: 22px; }
  .demoHead { align-items: flex-start; }
  .demoHead h2 { font-size: 18px; }
  .demoTag { display: none; }
  .panel { padding: 20px 16px 18px; border-radius: 18px; }
  .num { width: 34px; height: 34px; border-radius: 12px; font-size: 15px; }
  .topics { grid-template-columns: repeat(2, 1fr); gap: 9px; margin-top: 16px; }
  .topic { padding: 12px 10px 10px; }
  .tEm { font-size: 19px; }
  .tName { font-size: 13px; }
  .fields { grid-template-columns: 1fr; gap: 10px; }
  .makeBtn { padding: 14px 15px; gap: 11px; }
  .mbIcon { width: 38px; height: 38px; border-radius: 12px; font-size: 17px; }
  .mbText b { font-size: 15.5px; }
  .mbText small { font-size: 11.5px; }
  .resCard { padding: 18px 16px; border-radius: 18px; }
  .resTitle { font-size: 21px; }
  .resBtns .btn { flex: 1 1 auto; justify-content: center; }
  .beat { width: 32px; height: 40px; }
  .metaGrid { grid-template-columns: 1fr 1fr; }
  .scorePaper { padding: 6px; }
  .zBanner { padding: 16px; gap: 13px; border-radius: 16px; }
  .zPhoto { display: none; }
  .zMain { font-size: 13px; }
  .zBtn { width: 100%; justify-content: center; font-size: 13px; padding: 11px 14px; }
  .promptBox { padding: 16px; }
  .qrIn { flex-direction: column; align-items: flex-start; }
}

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

@media print {
  body { background: #fff; }
  body.printing > *:not(.printOnly) { display: none !important; }
  .printOnly { display: block !important; }
  .printOnly .scorePaper { border: 0; padding: 0; box-shadow: none; }
}
.printOnly { display: none; }
