@font-face{font-family:'NanumBarunpen';src:url('./fonts/NanumBarunpenR.ttf') format('truetype');font-weight:400;font-style:normal;font-display:swap;}
@font-face{font-family:'KimJungChul';src:url('./fonts/KimjungchulScript-Bold.ttf') format('truetype'),url('./fonts/KIMJUNGCHULSCRIPT-BOLD.TTF') format('truetype');font-display:swap;}
@font-face{font-family:'Pretendard';src:url('./fonts/public/static/Pretendard-Regular.otf') format('opentype'),url('./fonts/public/static/alternative/Pretendard-Regular.ttf') format('truetype');font-weight:400;font-style:normal;font-display:swap;}
@font-face{font-family:'Pretendard';src:url('./fonts/public/static/Pretendard-SemiBold.otf') format('opentype'),url('./fonts/public/static/alternative/Pretendard-SemiBold.ttf') format('truetype');font-weight:600;font-style:normal;font-display:swap;}
@font-face{font-family:'Pretendard';src:url('./fonts/public/static/Pretendard-Bold.otf') format('opentype'),url('./fonts/public/static/alternative/Pretendard-Bold.ttf') format('truetype');font-weight:700;font-style:normal;font-display:swap;}
@font-face{font-family:'Pretendard';src:url('./fonts/public/static/Pretendard-ExtraBold.otf') format('opentype'),url('./fonts/public/static/alternative/Pretendard-ExtraBold.ttf') format('truetype');font-weight:800;font-style:normal;font-display:swap;}:root{--bg:#f6f2ec;--card:#fffaf3;--line:#ded5c8;--ink:#2f2a24;--muted:#7b7166;--brand:#d85a30;--brand2:#185fa5;--soft:#faece7}*{box-sizing:border-box}body{margin:0;background:linear-gradient(135deg,#f7efe5,#f4f0ea);color:var(--ink);font-family:system-ui,'Apple SD Gothic Neo','Noto Sans KR',sans-serif;padding:18px}.app{max-width:1120px;margin:0 auto}.kfont,.big-char,.combo-base,.combo-vowel,.combo-result,.practice-target{font-family:'NanumBarunpen',system-ui,sans-serif}.header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}.title{display:grid;grid-template-columns:auto 1fr;grid-template-areas:'logo title' 'logo subtitle';column-gap:12px;align-items:center}.company-logo{grid-area:logo;width:58px;height:58px;object-fit:contain;border-radius:12px;background:#fff}.title h1{grid-area:title;margin:0;font-size:26px;letter-spacing:0}.title p{grid-area:subtitle;margin:4px 0 0;color:var(--muted);font-size:13px}.toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.toolbar-label{font-size:13px;color:#7b7166;font-weight:700}.select{border:1px solid var(--line);background:#fff;border-radius:12px;padding:9px 12px;font:inherit;color:var(--ink)}.card{background:rgba(255,250,243,.92);border:1px solid var(--line);border-radius:22px;box-shadow:0 10px 30px rgba(92,70,45,.08)}.step-card{padding:16px;margin-bottom:14px}.step-list{display:flex;flex-direction:column;gap:10px}.series-row{border:1px solid #eee4d8;background:#fffaf3;border-radius:14px;padding:16px;display:grid;grid-template-columns:150px minmax(320px,1fr);gap:12px;align-items:center;min-height:118px}.series-head{display:flex;flex-direction:column;gap:4px;color:#b6532d;font-weight:800;font-size:13px}.series-head small{color:var(--muted);font-size:12px;font-weight:700;line-height:1.35}.series-letters{display:flex;gap:8px;flex-wrap:wrap}.vbtn,.principle-card{border:1px solid var(--line);background:#fff;border-radius:10px;min-width:104px;min-height:74px;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:.16s transform,.16s box-shadow,.16s background;font:inherit;font-weight:800}.vbtn{font-size:30px}.vbtn:hover,.principle-card:hover{transform:translateY(-1px);box-shadow:0 6px 14px rgba(0,0,0,.08)}.vbtn.active,.principle-card.active{background:var(--soft);border-color:var(--brand);color:var(--brand);box-shadow:inset 0 0 0 1px var(--brand)}.principle-card{flex-direction:column;align-items:flex-start;justify-content:center;text-align:left;padding:13px 14px;min-width:170px;font-size:14px}.principle-card strong{font-size:22px;color:var(--brand);margin-bottom:4px}.main-grid{display:grid;grid-template-columns:minmax(320px,1fr) minmax(320px,1fr);gap:14px}.panel{padding:18px}.section-title{font-size:13px;color:var(--muted);margin:0 0 10px;font-weight:700}.section-title.mt{margin-top:14px}.svg-wrap{position:relative;display:flex;align-items:center;justify-content:center;background:#fff;border:1px dashed #e0d5c8;border-radius:18px;min-height:260px;margin-bottom:12px;overflow:hidden}#svgArea{width:210px;height:230px;overflow:visible}.guidePath{fill:none;stroke:#e8e1d8;stroke-width:8.5;stroke-linecap:round;stroke-linejoin:round;opacity:.55}.drawPath{vector-effect:non-scaling-stroke;will-change:stroke-dashoffset}.startDot{fill:var(--brand);stroke:#fff;stroke-width:2;opacity:0;transition:.18s}.endDot{fill:var(--brand2);stroke:#fff;stroke-width:2;opacity:0;transition:.18s}.orderCircle{fill:var(--brand)}.orderText{font-size:9px;font-weight:800;fill:#fff;text-anchor:middle;dominant-baseline:middle}.coach-tip{position:absolute;right:16px;bottom:12px;display:flex;align-items:flex-end;gap:8px}.coach-logo{width:72px;height:72px;object-fit:contain}.coach-bubble{position:relative;width:164px;background:#fff7ed;border:1px solid #e5d5c5;border-radius:14px;padding:9px 11px;color:#4a4037;font-family:'NanumBarunpen',system-ui,sans-serif;font-weight:700;font-size:14px;line-height:1.35;box-shadow:0 5px 14px rgba(92,70,45,.10)}.coach-bubble:after{content:'';position:absolute;right:-7px;bottom:13px;border-width:7px 0 7px 8px;border-style:solid;border-color:transparent transparent transparent #fff7ed}.labels{display:flex;flex-direction:column;gap:6px;max-height:126px;overflow:auto}.labels .badge{margin-right:6px}.badge{display:inline-flex;min-width:36px;height:24px;border-radius:999px;align-items:center;justify-content:center;font-size:12px;font-weight:800}.activeStroke{outline:2px solid currentColor;transform:scale(1.04)}.speed-box{margin-top:12px;background:#fff;border:1px solid #eee4d8;border-radius:14px;padding:10px 12px}.speed-head{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:var(--muted)}.speed-head strong{color:var(--ink)}input[type=range]{width:100%;accent-color:var(--brand)}.btn-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.btn{border:1px solid var(--line);background:#f4eee6;border-radius:12px;padding:9px 12px;font:inherit;font-weight:700;cursor:pointer}.btn.primary{background:var(--brand);color:#fff;border-color:var(--brand)}.btn:disabled{opacity:.45;cursor:not-allowed}.status,.audio-note{font-size:12px;color:#888;margin-top:8px}.info-head{display:flex;align-items:center;gap:13px}.big-char{font-size:86px;line-height:1;color:var(--brand);font-weight:800}.name{font-size:24px;font-weight:900}.sound{font-size:16px;color:var(--muted);margin-top:2px}.pill{display:inline-flex;align-items:center;padding:4px 9px;border-radius:999px;background:#eef4fb;color:#185fa5;font-size:12px;font-weight:700;margin-top:6px}.listen-grid{display:grid;grid-template-columns:minmax(160px,1fr);gap:8px;margin-top:14px}.listen-card,.sbtn{background:#fff;border:1px solid #eee4d8;border-radius:16px;cursor:pointer;font:inherit;transition:.16s transform,.16s box-shadow}.listen-card{padding:12px 8px;min-height:76px;text-align:center}.listen-card:hover,.sbtn:hover{transform:translateY(-1px);box-shadow:0 7px 16px rgba(0,0,0,.08)}.listen-label{display:block;font-size:12px;color:var(--muted);margin-bottom:7px}.listen-card strong{display:block;font-size:20px;color:var(--ink)}.sbtn{width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;color:var(--brand)}.sbtn.playing,.listen-card.playing{background:var(--soft);border-color:var(--brand);color:var(--brand)}.desc-box{background:#fff;border:1px solid #eee4d8;border-radius:16px;padding:13px;margin-top:12px;line-height:1.55;display:flex;align-items:flex-start;gap:12px}.desc-logo{width:54px;height:54px;object-fit:contain;border-radius:12px;flex:0 0 auto}.desc-copy{min-width:0;flex:1}.desc-box .ko{font-weight:800;margin-bottom:6px}.desc-box .other{color:#5d544c}.meaning-title,.word-back-title{font-size:12px;color:#888;margin-top:8px;font-weight:700}.principle-box{margin-top:14px;background:#fff8ef;border:1px solid #eee4d8;border-radius:16px;padding:13px}.principle-title{font-weight:900;color:#9a4b27}.principle-summary{margin-top:5px;color:#5f554c;font-size:14px;line-height:1.5}.principle-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:10px}.mini-principle{background:#fff;border:1px solid #eee4d8;border-radius:12px;padding:10px;min-height:72px}.mini-principle strong{display:block;color:var(--brand);font-size:18px;margin-bottom:4px}.mini-principle span{display:block;color:#5f554c;font-size:13px;line-height:1.35}.support-grid{display:grid;grid-template-columns:1.25fr .8fr .95fr;gap:14px;margin-top:14px}.support-card{padding:16px}.word-chip-row{display:flex;gap:7px;flex-wrap:wrap}.word-chip{border:1px solid #e1d7ca;background:#fff;border-radius:999px;padding:7px 11px;cursor:pointer;font:inherit}.word-chip.active{background:#fef3e2;border-color:#ea8c1e;color:#92400e;font-weight:700}.flash-wrap{perspective:1000px;margin-top:12px}.flash-card{position:relative;min-height:255px;transform-style:preserve-3d;transition:transform .55s}.flash-card.flipped{transform:rotateY(180deg)}.flash-face{position:absolute;inset:0;backface-visibility:hidden;background:#fff;border:1px solid #eee4d8;border-radius:20px;padding:14px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.flash-back{transform:rotateY(180deg);align-items:flex-start;text-align:left}.word-img{width:108px;height:108px;object-fit:contain;border-radius:20px;background:#f8f3ec;margin-bottom:8px}.word-placeholder{width:108px;height:108px;border-radius:20px;background:#f8f3ec;display:flex;align-items:center;justify-content:center;font-size:38px;margin-bottom:8px}.word-inline{display:flex;align-items:center;justify-content:center;gap:8px}.word-main{font-family:'NanumBarunpen',system-ui,sans-serif;font-size:30px;font-weight:900}.word-sub{font-size:13px;color:var(--muted);margin-top:5px}.word-actions{display:flex;gap:8px;justify-content:center;margin-top:10px}.word-action-btn{border:1px solid var(--line);background:#f4eee6;border-radius:10px;padding:7px 10px;font:inherit;font-weight:700;cursor:pointer}.word-back-box{background:#fff8ef;border:1px solid #eee4d8;border-radius:12px;padding:8px 10px;margin-bottom:7px;width:100%;line-height:1.45}.example-other{color:#666;margin-top:3px}.combo-line{display:flex;align-items:center;justify-content:center;gap:8px;min-height:110px;color:#aaa}.combo-base,.combo-vowel{font-size:34px}.combo-vowel,.combo-result{color:var(--brand)}.combo-result{font-size:44px;font-weight:800;opacity:0;transition:opacity .4s}.practice-target-row{display:flex;align-items:center;justify-content:center;gap:8px}.practice-target{font-size:48px;color:var(--brand);font-weight:900}.practice-input{width:100%;border:1px solid var(--line);border-radius:12px;background:#fff;padding:12px;margin-top:12px;font:inherit;text-align:center}.practice-answer{font-size:13px;color:#888;text-align:center;margin-top:8px;min-height:20px}@media(max-width:900px){.support-grid{grid-template-columns:1fr}.principle-grid{grid-template-columns:1fr 1fr}}@media(max-width:760px){body{padding:12px}.header{align-items:flex-start;flex-direction:column}.title h1{font-size:23px}.series-row{grid-template-columns:1fr}.vbtn{min-width:64px;flex:1 1 64px}.main-grid{grid-template-columns:1fr}.svg-wrap{min-height:230px}.coach-tip{right:10px;bottom:10px}.coach-logo{width:58px;height:58px}.coach-bubble{font-size:12px;width:126px}.big-char{font-size:72px}.principle-grid{grid-template-columns:1fr}.card{border-radius:20px}}
.vbtn.unavailable,.vbtn:disabled{opacity:.42;cursor:not-allowed;background:#fff;color:#9b9288}.vbtn.unavailable:hover,.vbtn:disabled:hover{transform:none;box-shadow:none;border-color:var(--line)}


.hidden{display:none!important}.learn-screen{display:block}.learn-nav{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.step-nav-btn{border:1px solid var(--line);background:#fff7ed;color:#6d6258;border-radius:12px;padding:9px 12px;font:inherit;font-weight:800;cursor:pointer;white-space:nowrap;min-width:142px;text-align:center}.step-nav-btn:hover{border-color:var(--brand);background:var(--soft);color:var(--brand)}.page-title{font-size:18px;font-weight:900;color:#3c342d}.learn-screen .support-grid{margin-top:14px}@media(max-width:760px){.learn-nav{align-items:stretch;flex-direction:column}.step-nav-btn{width:100%}.page-title{text-align:center}}

.learn-vowel-nav{display:flex;align-items:center;justify-content:center;gap:8px;flex:1;flex-wrap:wrap}
.learn-vowel-btn{border:1px solid var(--line);background:#fff;border-radius:10px;min-width:62px;min-height:42px;font:inherit;font-size:22px;font-weight:900;cursor:pointer;color:var(--ink);transition:.16s transform,.16s box-shadow,.16s background}
.learn-vowel-btn:hover{transform:translateY(-1px);box-shadow:0 6px 14px rgba(0,0,0,.08)}
.learn-vowel-btn.active{background:var(--soft);border-color:var(--brand);color:var(--brand);box-shadow:inset 0 0 0 1px var(--brand)}
.labels{gap:8px;max-height:none;overflow:visible}
.label{display:flex;gap:9px;align-items:center;background:#fff;border:1px solid #eee4d8;border-radius:12px;padding:9px 10px;color:#6c6258;font-size:13px;line-height:1.3}
.label .badge{min-width:22px;width:22px;height:22px;margin-right:0;border-radius:999px;background:var(--soft)!important;color:var(--brand)!important;font-size:12px}
.label:has(.activeStroke){border-color:var(--brand);background:#fff8f3;font-weight:800}
.principle-box{display:none!important}
@media(max-width:760px){.learn-vowel-nav{justify-content:flex-start}.learn-vowel-btn{flex:1 1 54px}.learn-nav{gap:8px}}

.next-step-btn{border:1px solid var(--brand);background:var(--brand);color:#fff;border-radius:12px;padding:8px 13px 8px 9px;font:inherit;font-weight:900;cursor:pointer;display:inline-flex;align-items:center;gap:8px;white-space:nowrap;box-shadow:0 8px 18px rgba(216,90,48,.16)}
.next-step-btn img{width:30px;height:30px;object-fit:contain;border-radius:8px;background:#fff}
.next-step-btn:hover{transform:translateY(-1px);box-shadow:0 12px 22px rgba(216,90,48,.22)}
.next-step-btn:disabled{opacity:.42;cursor:not-allowed;filter:grayscale(.35);transform:none;box-shadow:none}
@media(max-width:760px){.next-step-btn{justify-content:center;width:100%}}

.vbtn.pending{opacity:.72;background:#fff;color:#6c6258}.vbtn.pending:after{content:'준비중';display:block;font-size:10px;color:#9b9288;margin-top:2px}.learn-vowel-btn.pending{opacity:.72}

/* Learning page polish: nav card and compact support cards */
.learn-nav{
  background:rgba(255,250,243,.94);
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow:0 12px 30px rgba(92,70,45,.08);
  padding:8px 12px;
  margin-bottom:14px;
}
.learn-nav .step-nav-btn{
  background:#fff3e8;
  border-color:#ead6c4;
  color:#795c48;
  box-shadow:inset 0 0 0 1px rgba(216,90,48,.05);
}
.learn-nav .step-nav-btn:hover{
  background:#fde9dc;
  border-color:#e6b99f;
  color:#4b372a;
  transform:translateY(-1px);
}
.learn-nav .learn-vowel-nav{
  flex:1;
  justify-content:center;
}

.support-grid{
  grid-template-columns:minmax(330px,1.18fr) minmax(210px,.75fr) minmax(240px,.85fr);
  align-items:stretch;
  gap:12px;
  margin-top:14px;
}
.support-card{
  min-height:212px;
  padding:13px 14px;
}
.word-section{
  display:grid;
  grid-template-columns:minmax(138px,172px) minmax(120px,1fr);
  grid-template-rows:auto 1fr;
  column-gap:12px;
  row-gap:8px;
}
.word-section .section-title{
  grid-column:1 / -1;
}
.word-section .flash-wrap{
  grid-column:1;
  grid-row:2;
  margin-top:0;
}
.word-section .word-chip-row{
  grid-column:2;
  grid-row:2;
  align-content:flex-start;
  align-items:flex-start;
  gap:7px;
  margin:0;
}
.word-section .word-chip{
  min-width:52px;
  min-height:38px;
  padding:7px 10px;
}
.word-section .flash-card{
  min-height:178px;
}
.word-section .flash-face{
  border-radius:16px;
  padding:10px;
}
.word-section .word-img,
.word-section .word-placeholder{
  width:82px;
  height:82px;
  border-radius:15px;
  margin-bottom:8px;
}
.word-section .word-main{
  font-size:24px;
  line-height:1.1;
}
.word-section .word-sub{
  margin:4px 0 8px;
  font-size:12px;
}
.word-section .word-back-box{
  padding:7px 8px;
  margin-bottom:6px;
  font-size:13px;
}
.word-section .word-lang{
  font-size:11px;
  margin-bottom:2px;
}
.combo-line{
  min-height:136px;
  gap:7px;
}
.combo-base,.combo-vowel{
  font-size:28px;
}
.combo-result{
  font-size:38px;
}
.combo-line .sbtn{
  width:40px;
  height:40px;
  min-width:40px;
}
.practice-target-row{
  min-height:72px;
  gap:10px;
}
.practice-target{
  font-size:42px;
}
.practice-input{
  margin-top:8px;
  padding:10px 12px;
}
.practice-answer{
  margin-top:8px;
  font-size:12px;
}

@media(max-width:900px){
  .learn-nav{
    align-items:stretch;
  }
  .learn-nav .learn-vowel-nav{
    justify-content:flex-start;
  }
  .support-grid{
    grid-template-columns:1fr;
  }
  .support-card{
    min-height:auto;
  }
  .word-section{
    grid-template-columns:minmax(132px,168px) 1fr;
  }
}
@media(max-width:560px){
  .word-section{
    grid-template-columns:1fr;
  }
  .word-section .flash-wrap,
  .word-section .word-chip-row{
    grid-column:1;
    grid-row:auto;
  }
}

/* Related word card: list left, card right */
.word-section{
  grid-template-columns:minmax(84px,112px) minmax(152px,1fr);
}
.word-section .word-chip-row{
  grid-column:1;
  grid-row:2;
  flex-direction:column;
  flex-wrap:nowrap;
  justify-content:flex-start;
  align-items:stretch;
}
.word-section .word-chip{
  width:100%;
  min-width:0;
  border-radius:14px;
  text-align:center;
  line-height:1.15;
}
.word-section .flash-wrap{
  grid-column:2;
  grid-row:2;
}
.word-section .word-action-btn{
  white-space:nowrap;
}
@media(max-width:560px){
  .word-section .word-chip-row,
  .word-section .flash-wrap{
    grid-column:1;
    grid-row:auto;
  }
  .word-section .word-chip-row{
    flex-direction:row;
    flex-wrap:wrap;
  }
  .word-section .word-chip{
    width:auto;
    min-width:52px;
  }
}

/* STEP 0 Cheon-Ji-In SVG animation card */
.series-row:first-child{
  grid-template-columns:150px minmax(360px,1fr);
}
.series-row:first-child .series-letters{
  width:100%;
}
.cheonjiin-card{
  width:100%;
  min-height:188px;
  border:1px solid #ead8c8;
  background:linear-gradient(135deg,#fffaf3,#fff3e8);
  border-radius:18px;
  display:grid;
  grid-template-columns:minmax(190px,.72fr) minmax(260px,1fr);
  align-items:center;
  gap:14px;
  padding:14px 18px;
  cursor:pointer;
  text-align:left;
  font:inherit;
  box-shadow:inset 0 0 0 1px rgba(216,90,48,.04);
  transition:.16s transform,.16s box-shadow,.16s border-color;
}
.cheonjiin-card:hover{
  transform:translateY(-1px);
  border-color:var(--brand);
  box-shadow:0 10px 24px rgba(92,70,45,.10), inset 0 0 0 1px rgba(216,90,48,.08);
}
.cheonjiin-copy strong{
  display:block;
  color:#a34825;
  font-size:21px;
  font-weight:900;
  margin-bottom:8px;
}
.cheonjiin-copy span{
  display:block;
  color:#655a4f;
  font-size:14px;
  line-height:1.5;
}
.cheonjiin-tags{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-top:12px;
}
.cheonjiin-tags b{
  border:1px solid #ead8c8;
  background:#fff;
  border-radius:999px;
  color:#7a5c48;
  font-size:12px;
  padding:5px 9px;
}
.cheonjiin-svg{
  width:100%;
  max-width:390px;
  justify-self:center;
  overflow:visible;
}
.cj-stage{
  fill:#fff;
  stroke:#ead8c8;
  stroke-dasharray:5 5;
}
.cj-person,
.cj-ground{
  stroke-linecap:round;
  stroke-width:10;
  fill:none;
}
.cj-person{
  stroke:var(--brand);
  animation:cjPersonPulse 12s ease-in-out infinite;
}
.cj-ground{
  stroke:var(--brand2);
  animation:cjGroundPulse 12s ease-in-out infinite;
}
.cj-sky{
  fill:#f3b13e;
  stroke:#fff;
  stroke-width:4;
  filter:drop-shadow(0 5px 8px rgba(216,90,48,.22));
  animation:cjSkyMove 12s ease-in-out infinite;
}
.cj-made{
  font-family:'NanumBarunpen',system-ui,sans-serif;
  font-size:32px;
  font-weight:900;
  fill:var(--brand);
  text-anchor:middle;
  dominant-baseline:middle;
  opacity:0;
}
.cj-a{animation:cjShowA 12s ease-in-out infinite;}
.cj-eo{animation:cjShowEo 12s ease-in-out infinite;}
.cj-o{animation:cjShowO 12s ease-in-out infinite;}
.cj-u{animation:cjShowU 12s ease-in-out infinite;}
.cj-eu{fill:var(--brand2);animation:cjShowEu 12s ease-in-out infinite;}
@keyframes cjSkyMove{
  0%,10%{transform:translate(0,0)}
  18%,28%{transform:translate(42px,0)}
  36%,46%{transform:translate(-42px,0)}
  54%,64%{transform:translate(0,-46px)}
  72%,82%{transform:translate(0,44px)}
  90%,100%{transform:translate(0,40px)}
}
@keyframes cjPersonPulse{
  0%,12%,100%{stroke-width:10;opacity:1}
  18%,46%{stroke-width:12;opacity:1}
  54%,82%{stroke-width:9;opacity:.62}
}
@keyframes cjGroundPulse{
  0%,48%{stroke-width:9;opacity:.55}
  54%,82%{stroke-width:12;opacity:1}
  90%,100%{stroke-width:15;opacity:1}
}
@keyframes cjShowA{18%,28%{opacity:1}0%,15%,32%,100%{opacity:0}}
@keyframes cjShowEo{36%,46%{opacity:1}0%,33%,50%,100%{opacity:0}}
@keyframes cjShowO{54%,64%{opacity:1}0%,51%,68%,100%{opacity:0}}
@keyframes cjShowU{72%,82%{opacity:1}0%,69%,86%,100%{opacity:0}}
@keyframes cjShowEu{90%,100%{opacity:1}0%,86%{opacity:0}}
@media(max-width:760px){
  .series-row:first-child{
    grid-template-columns:1fr;
  }
  .cheonjiin-card{
    grid-template-columns:1fr;
    min-height:auto;
    padding:14px;
  }
  .cheonjiin-svg{
    max-width:330px;
  }
}
@media(prefers-reduced-motion:reduce){
  .cj-person,.cj-ground,.cj-sky,.cj-made{
    animation:none;
  }
  .cj-eu{
    opacity:1;
  }
}


/* STEP 0 separated entry and full principle page */
.cheonjiin-entry{
  min-height:92px;
  grid-template-columns:1fr;
  align-items:center;
  background:#fffaf3;
}
.cheonjiin-entry .cheonjiin-copy strong{
  margin-bottom:6px;
}
.cheonjiin-entry .cheonjiin-copy span{
  font-size:13px;
}
.principle-screen{
  display:block;
}
.principle-screen.hidden{
  display:none!important;
}
.cheonjiin-page{
  display:grid;
  grid-template-columns:minmax(260px,.78fr) minmax(360px,1.22fr);
  gap:18px;
  align-items:center;
  padding:24px;
}
.cheonjiin-page-copy h2{
  margin:0 0 12px;
  color:#2f2a24;
  font-size:30px;
  letter-spacing:0;
}
.cheonjiin-page-copy p:not(.section-title){
  margin:0;
  color:#5f554c;
  font-size:17px;
  line-height:1.65;
  font-weight:700;
}
.cheonjiin-page-list{
  display:grid;
  gap:10px;
  margin-top:18px;
}
.cheonjiin-page-list span{
  border:1px solid #ead8c8;
  background:#fff;
  border-radius:14px;
  padding:10px 12px;
  color:#5d5045;
  font-weight:800;
}
.cheonjiin-page-list b{
  display:inline-flex;
  width:34px;
  color:var(--brand);
  font-size:22px;
  line-height:1;
}
.cheonjiin-page-art{
  position:relative;
  border:1px dashed #dfd2c3;
  background:#fff;
  border-radius:22px;
  padding:14px;
  min-height:320px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.cheonjiin-page-art .cheonjiin-svg{
  max-width:560px;
}
.cheonjiin-page-art .cj-made{
  font-size:38px;
}
.principle-paused .cheonjiin-svg *{
  animation-play-state:paused!important;
}
.principle-replay-btn{
  position:absolute;
  right:18px;
  bottom:18px;
  z-index:2;
  border:1px solid #ead8c8;
  background:#fff7ed;
  color:#9a4b27;
  border-radius:999px;
  padding:9px 14px;
  font:inherit;
  font-weight:800;
  cursor:pointer;
  box-shadow:0 8px 18px rgba(92,70,45,.10);
}
.principle-replay-btn:hover{
  border-color:var(--brand);
  color:var(--brand);
  transform:translateY(-1px);
}
.cj-stage{
  animation:cjStageShade 12s ease-in-out infinite;
}
.cj-person{
  animation:cjPersonPulseStrong 12s ease-in-out infinite;
}
.cj-ground{
  animation:cjGroundPulseStrong 12s ease-in-out infinite;
}
.cj-sky{
  animation:cjSkyMove 12s ease-in-out infinite,cjSkyShade 12s ease-in-out infinite;
}
@keyframes cjStageShade{
  0%,10%{fill:#fffaf3}
  18%,28%{fill:#fff1e6}
  36%,46%{fill:#fff1e6}
  54%,64%{fill:#eef6ff}
  72%,82%{fill:#eef6ff}
  90%,100%{fill:#f8fbff}
}
@keyframes cjPersonPulseStrong{
  0%,12%,100%{stroke:#d85a30;stroke-width:10;opacity:.34}
  18%,46%{stroke:#d85a30;stroke-width:13;opacity:1}
  54%,82%{stroke:#efc3b5;stroke-width:8;opacity:.22}
}
@keyframes cjGroundPulseStrong{
  0%,48%{stroke:#b8d4ed;stroke-width:8;opacity:.24}
  54%,82%{stroke:#185fa5;stroke-width:13;opacity:1}
  90%,100%{stroke:#185fa5;stroke-width:16;opacity:1}
}
@keyframes cjSkyShade{
  0%,10%{fill:#f3b13e;opacity:.9}
  18%,28%{fill:#d85a30;opacity:1}
  36%,46%{fill:#d85a30;opacity:1}
  54%,64%{fill:#185fa5;opacity:1}
  72%,82%{fill:#185fa5;opacity:1}
  90%,100%{fill:#f3b13e;opacity:.55}
}
@media(max-width:760px){
  .cheonjiin-page{
    grid-template-columns:1fr;
    padding:16px;
  }
  .cheonjiin-page-art{
    min-height:240px;
  }
}
@media(prefers-reduced-motion:reduce){
  .cj-stage{
    animation:none;
  }
}

/* STEP 0 requested motion refinement and vowel jump buttons */
.principle-vowel-jump{
  margin-top:14px;
  padding:14px;
  display:grid;
  grid-template-columns:repeat(5,minmax(64px,1fr));
  gap:10px;
}
.principle-vowel-jump button{
  border:1px solid var(--line);
  background:#fff;
  border-radius:12px;
  min-height:58px;
  cursor:pointer;
  font:inherit;
  font-family:'NanumBarunpen',system-ui,sans-serif;
  font-size:30px;
  font-weight:900;
  transition:.16s transform,.16s box-shadow,.16s background,.16s border-color;
}
.principle-vowel-jump button:hover{
  transform:translateY(-1px);
  border-color:var(--brand);
  background:var(--soft);
  color:var(--brand);
  box-shadow:0 8px 18px rgba(92,70,45,.10);
}
.cj-ground,.cj-sky{
  transform-box:fill-box;
  transform-origin:center;
}
@keyframes cjSkyMove{
  0%,10%{transform:translate(0,0)}
  18%,28%{transform:translate(42px,0)}
  36%,46%{transform:translate(-42px,0)}
  54%,62%{transform:translate(0,-46px)}
  68%,74%{transform:translate(0,-46px)}
  80%,86%{transform:translate(0,50px)}
  92%,100%{transform:translate(0,40px)}
}
@keyframes cjGroundPulseStrong{
  0%,48%{stroke:#b8d4ed;stroke-width:8;opacity:.24;transform:translateY(0)}
  54%,74%{stroke:#185fa5;stroke-width:13;opacity:1;transform:translateY(-40px)}
  80%,86%{stroke:#185fa5;stroke-width:13;opacity:1;transform:translateY(-40px)}
  92%,100%{stroke:#185fa5;stroke-width:16;opacity:1;transform:translateY(-40px)}
}
@keyframes cjShowO{
  58%,66%{opacity:1}
  0%,54%,70%,100%{opacity:0}
}
@keyframes cjShowU{
  82%,90%{opacity:1}
  0%,78%,94%,100%{opacity:0}
}
@media(max-width:560px){
  .principle-vowel-jump{
    grid-template-columns:repeat(5,minmax(44px,1fr));
    gap:7px;
    padding:10px;
  }
  .principle-vowel-jump button{
    min-height:48px;
    font-size:25px;
  }
}

/* STEP 0 label button */
.principle-step-pill{
  border:1px solid #ead8c8;
  background:#fff3e8;
  color:#a34825;
  border-radius:999px;
  padding:6px 12px;
  font:inherit;
  font-size:12px;
  font-weight:900;
  letter-spacing:0;
  cursor:pointer;
  margin:0 0 10px;
}
.principle-step-pill:hover{
  border-color:var(--brand);
  background:var(--soft);
  color:var(--brand);
}

/* STEP 0 final sun stop: rise back to center for ㅡ */
@keyframes cjSkyMove{
  0%,10%{transform:translate(0,0)}
  18%,28%{transform:translate(42px,0)}
  36%,46%{transform:translate(-42px,0)}
  54%,62%{transform:translate(0,-46px)}
  68%,74%{transform:translate(0,-46px)}
  80%,86%{transform:translate(0,50px)}
  94%,100%{transform:translate(0,0)}
}
@keyframes cjSkyShade{
  0%,10%{fill:#f3b13e;opacity:.9}
  18%,28%{fill:#d85a30;opacity:1}
  36%,46%{fill:#d85a30;opacity:1}
  54%,64%{fill:#185fa5;opacity:1}
  72%,86%{fill:#185fa5;opacity:1}
  94%,100%{fill:#f3b13e;opacity:.92}
}

/* STEP 0 sun color stays yellow */
.cj-sky{
  fill:#f3b13e;
  opacity:1;
  animation:cjSkyMove 12s ease-in-out infinite;
}

/* Principle vowel sound-only button state */
.principle-vowel-jump button.playing{
  background:var(--soft);
  border-color:var(--brand);
  color:var(--brand);
  box-shadow:inset 0 0 0 1px rgba(216,90,48,.18),0 8px 18px rgba(92,70,45,.10);
}

/* Learning page previous/next step controls */
.step-move-group{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:7px;
  flex-wrap:nowrap;
}
.step-move-btn{
  border:1px solid #d9c6b6;
  border-radius:11px;
  min-height:38px;
  padding:7px 10px;
  font:inherit;
  font-size:13px;
  font-weight:900;
  cursor:pointer;
  white-space:nowrap;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  transition:.16s transform,.16s box-shadow,.16s background,.16s border-color;
}
.step-move-btn.prev{
  background:#fff3e8;
  color:#795c48;
}
.step-move-btn.next{
  background:var(--brand);
  border-color:var(--brand);
  color:#fff;
  box-shadow:0 8px 16px rgba(216,90,48,.14);
}
.step-move-btn img{
  width:24px;
  height:24px;
  object-fit:contain;
  border-radius:7px;
  background:#fff;
}
.step-move-btn:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 18px rgba(92,70,45,.10);
}
.step-move-btn:disabled{
  opacity:.4;
  cursor:not-allowed;
  filter:grayscale(.35);
  transform:none;
  box-shadow:none;
}
@media(max-width:760px){
  .step-move-group{
    width:100%;
  }
  .step-move-btn{
    flex:1;
  }
}

/* Compact first-page series layout with centered brand logos */
#stepScreen.step-card{
  padding:14px 16px;
  margin-bottom:12px;
}
#stepScreen .step-list{
  gap:9px;
}
#stepScreen .series-row{
  min-height:88px;
  padding:12px 16px;
  grid-template-columns:126px minmax(0,1fr);
  gap:12px;
}
#stepScreen .series-head{
  font-size:12px;
}
#stepScreen .series-head small{
  font-size:11px;
  line-height:1.28;
}
#stepScreen .series-letters{
  flex-direction:column;
  gap:7px;
  align-items:flex-start;
}
#stepScreen .vowel-button-row{display:flex;gap:7px;flex-wrap:wrap;align-items:center}
#stepScreen .series-subtitle{color:var(--muted);font-size:11px;font-weight:700;line-height:1.28}
#stepScreen .vbtn{
  min-width:76px;
  min-height:52px;
  border-radius:9px;
  font-size:25px;
}
#stepScreen .cheonjiin-card{
  min-height:116px;
  grid-template-columns:1fr;
  justify-items:center;
  align-content:center;
  gap:9px;
  padding:14px 18px;
  text-align:center;
}
.home-logo-pair{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  width:100%;
}
.home-logo-card{
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,.82);
  border:1px solid #eee4d8;
  border-radius:14px;
  box-shadow:0 8px 16px rgba(92,70,45,.06);
}
.home-logo-card img{
  display:block;
  object-fit:contain;
}
.home-logo-card.home-company{
  width:72px;
  height:72px;
  padding:7px;
}
.home-logo-card.home-teacher{
  width:98px;
  height:72px;
  padding:6px;
}
.home-logo-card.home-company img{
  width:58px;
  height:58px;
}
.home-logo-card.home-teacher img{
  width:84px;
  height:62px;
}
#stepScreen .cheonjiin-copy strong{
  font-size:19px;
  margin-bottom:4px;
}
#stepScreen .cheonjiin-copy span{
  max-width:420px;
  font-size:13px;
  line-height:1.35;
}
@media(max-width:760px){
  #stepScreen.step-card{padding:12px;}
  #stepScreen .series-row{grid-template-columns:1fr;min-height:0;padding:12px;}
  #stepScreen .series-letters{align-items:center;justify-content:center;}
  #stepScreen .vowel-button-row{justify-content:center;}
  #stepScreen .vbtn{min-width:58px;min-height:48px;flex:1 1 58px;font-size:23px;}
  .home-logo-pair{gap:10px;}
  .home-logo-card.home-company{width:64px;height:64px;}
  .home-logo-card.home-teacher{width:88px;height:64px;}
  .home-logo-card.home-company img{width:50px;height:50px;}
  .home-logo-card.home-teacher img{width:74px;height:54px;}
}

/* First-page brand cards moved below the step list */
#stepScreen .cheonjiin-card{
  min-height:92px;
}
#stepScreen .home-logo-pair{
  display:none;
}
#stepScreen .home-brand-row{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
  margin-top:6px;
}
#stepScreen .home-brand-card{
  min-height:116px;
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  align-items:center;
  justify-content:center;
  gap:22px;
  padding:18px 28px;
  background:rgba(255,250,243,.94);
  border:1px solid #eee4d8;
  border-radius:18px;
  box-shadow:0 12px 28px rgba(92,70,45,.07);
}
#stepScreen .home-brand-card img{
  display:block;
  object-fit:contain;
  background:transparent;
}
#stepScreen .home-brand-company img{
  width:94px;
  height:94px;
}
#stepScreen .home-brand-teacher img{
  width:112px;
  height:94px;
}
#stepScreen .home-brand-card strong{
  display:block;
  font-size:26px;
  line-height:1;
  font-weight:900;
  letter-spacing:0;
  color:var(--brand2);
  margin-bottom:10px;
}
#stepScreen .home-brand-teacher strong{
  color:#d96d2a;
  font-size:34px;
}
#stepScreen .home-brand-card span{
  display:block;
  color:#645b53;
  font-size:15px;
  font-weight:800;
  line-height:1.35;
}
@media(max-width:760px){
  #stepScreen .home-brand-row{grid-template-columns:1fr;gap:10px;}
  #stepScreen .home-brand-card{min-height:96px;padding:14px 18px;gap:14px;}
  #stepScreen .home-brand-company img{width:72px;height:72px;}
  #stepScreen .home-brand-teacher img{width:88px;height:72px;}
  #stepScreen .home-brand-card strong{font-size:22px;margin-bottom:6px;}
  #stepScreen .home-brand-teacher strong{font-size:28px;}
  #stepScreen .home-brand-card span{font-size:13px;}
}

/* Font alignment with consonant app */
body,button,select,input,textarea,.section-title,.label,.toolbar-label,.desc-box,.status,.listen-label,.listen-card strong,.meaning-title,.word-back-title,.name,.sound,.title h1,.title p,.series-head,.series-head small,.word-chip,.word-action-btn,.practice-answer,.coach-bubble{font-family:Pretendard,'Noto Sans Devanagari','Nirmala UI','Mangal','Apple SD Gothic Neo','Noto Sans KR',system-ui,sans-serif!important}
.kfont,.big-char,.combo-base,.combo-vowel,.combo-result,.practice-target{font-family:Pretendard,'Noto Sans Devanagari','Nirmala UI','Mangal','Apple SD Gothic Neo','Noto Sans KR',system-ui,sans-serif!important;font-weight:700}
.word-main{font-family:'KimJungChul',Pretendard,'Noto Sans Devanagari','Nirmala UI','Mangal','Apple SD Gothic Neo','Noto Sans KR',system-ui,sans-serif!important;font-weight:900}
.title h1{letter-spacing:-.02em}
.btn,.word-action-btn{font-weight:600}
.btn.primary,.word-chip.active{font-weight:700}
.step-nav-btn{font-weight:800}
.name{font-weight:800}
.title h1{font-weight:700}
.vbtn,.learn-vowel-btn,.next-step-btn{font-weight:800}
.desc-box{line-height:1.55}
.desc-box .ko{font-weight:700}
.coach-bubble{font-family:KimJungChul,Pretendard,'Apple SD Gothic Neo','Noto Sans KR',system-ui,sans-serif!important;font-weight:700;line-height:1.35}


/* STEP 0 sheet note */
.cheonjiin-page{align-items:start}
.cheonjiin-page-copy{align-self:start}
.principle-screen > .cheonjiin-sheet-note{margin-top:14px;background:#fff;border:1px solid #eee4d8;border-radius:16px;padding:14px 18px;display:flex;align-items:center;gap:14px;color:#4f463d;line-height:1.55;box-shadow:0 8px 18px rgba(92,70,45,.06);width:100%;overflow:hidden}
.principle-screen > .cheonjiin-sheet-note img{width:58px!important;height:58px!important;max-width:58px!important;max-height:58px!important;object-fit:contain;border-radius:12px;background:#fff;flex:0 0 58px}
.principle-screen > .cheonjiin-sheet-note p{margin:0!important;font-size:16px!important;font-weight:700!important;color:#4f463d!important;line-height:1.55!important}
@media(max-width:760px){.principle-screen > .cheonjiin-sheet-note{margin-top:12px;align-items:flex-start;padding:13px}.principle-screen > .cheonjiin-sheet-note img{width:48px!important;height:48px!important;max-width:48px!important;max-height:48px!important;flex-basis:48px}.principle-screen > .cheonjiin-sheet-note p{font-size:14px!important}}
/* STEP 0 principle element cards sizing */
.cheonjiin-page-list span{
  display:flex;
  min-height:56px;
  padding:14px 16px;
  align-items:center;
  justify-content:center;
  text-align:center;
  font-size:18px;
  font-weight:800;
}
.cheonjiin-page-list b{
  width:42px;
  font-size:28px;
  line-height:1;
}
.cheonjiin-page-list span:nth-of-type(2) b{
  color:var(--brand2);
}
@media(max-width:760px){
  .cheonjiin-page-list span{min-height:52px;font-size:17px;padding:13px 14px;}
  .cheonjiin-page-list b{width:38px;font-size:26px;}
}
/* STEP 0 principle list aligned to animation box */
.cheonjiin-page-copy{
  height:100%;
  display:flex;
  flex-direction:column;
}
.cheonjiin-page-list{
  flex:1;
  align-content:space-between;
}
@media(max-width:900px){
  .cheonjiin-page-copy{height:auto;display:block;}
  .cheonjiin-page-list{align-content:initial;}
}
/* Word placeholders show text directly on card background */
.word-placeholder,
.word-section .word-placeholder{
  width:auto!important;
  height:auto!important;
  min-width:0!important;
  min-height:0!important;
  margin-bottom:8px!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--ink);
}
/* Word card back layout */
.word-section .flash-back{
  align-items:stretch;
  justify-content:center;
  gap:8px;
  padding:10px;
  overflow:hidden;
}
.word-section .word-back-box{
  margin-bottom:0;
  padding:8px 10px;
  min-height:0;
  flex:0 1 auto;
  overflow-wrap:anywhere;
  word-break:normal;
}
.word-section .word-back-box div:not(.word-back-title){
  color:#2f2a24;
  font-size:14px;
  font-weight:700;
  line-height:1.35;
}
.word-section .flash-back .word-actions{
  margin-top:0;
  flex-shrink:0;
  width:100%;
  gap:6px;
}
.word-section .flash-back .word-action-btn{
  padding:7px 10px;
  min-width:0;
  flex:1 1 0;
  white-space:normal;
  overflow-wrap:anywhere;
  line-height:1.2;
  text-align:center;
}
/* Stroke replay button */
.replay-stroke-btn{
  position:absolute;
  right:18px;
  bottom:92px;
  border:1px solid #ead8c8;
  background:#fff7ed;
  color:#9a4b27;
  border-radius:999px;
  padding:7px 12px;
  font:inherit;
  font-size:13px;
  font-weight:800;
  cursor:pointer;
  box-shadow:0 6px 14px rgba(92,70,45,.10);
}
.replay-stroke-btn:hover{
  border-color:var(--brand);
  background:var(--soft);
  color:var(--brand);
}
@media(max-width:760px){
  .replay-stroke-btn{right:12px;bottom:78px;font-size:12px;padding:6px 10px;}
}

/* Fixed SVG stroke assets */
@font-face{font-family:'NanumGothic';src:url('./fonts/NanumGothicEco.otf') format('opentype');font-weight:700;font-style:normal;font-display:swap;}
#strokeGuideLayer .guidePath{
  fill:none;
  stroke-linecap:round;
  stroke-linejoin:round;
  vector-effect:non-scaling-stroke;
}
#strokeGuideLayer .fontGhostPath{
  fill:rgba(210,198,184,0.18);
  stroke:rgba(148,132,114,0.42);
  stroke-width:1;
  opacity:1;
  pointer-events:none;
}
#strokeAnimatedLayer .drawPath{
  fill:none;
  stroke-linecap:round;
  stroke-linejoin:round;
  vector-effect:non-scaling-stroke;
  will-change:stroke-dashoffset;
}
#strokeAnimatedLayer .drawPath.stroke-animating{
  transition:stroke-dashoffset var(--stroke-duration,900ms) cubic-bezier(.22,.88,.28,1);
}
#strokeMarkerLayer .orderText{
  font-family:NanumGothic,Pretendard,'Apple SD Gothic Neo','Noto Sans KR',sans-serif;
  font-weight:700;
}
#strokeMarkerLayer .startDot,
#strokeMarkerLayer .endDot{
  display:none;
}
.svg-wrap .coach-tip{
  right:24px;
  bottom:10px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:2px;
  z-index:3;
}
.svg-wrap .coach-logo{
  display:block;
  width:58px;
  height:58px;
  object-fit:contain;
}
.svg-wrap .coach-bubble{
  display:inline-block;
  width:auto;
  padding:5px 9px;
  white-space:nowrap;
  font-size:13px;
  line-height:1.2;
}
.svg-wrap .coach-bubble:after{
  display:none;
}

/* Compact all-step vowel layout 20260605 */
body{padding:12px}
.app{max-width:1280px}
.header{margin-bottom:10px}
.company-logo{width:52px;height:52px}
.title h1{font-size:24px}
.title p{font-size:12px;margin-top:2px}
.select{padding:7px 10px;min-height:38px}
.card{border-radius:16px}
.step-card{padding:12px;margin-bottom:10px}
.learn-nav{margin-bottom:10px;padding:6px 10px;border-radius:14px;gap:8px}
.step-nav-btn{min-width:118px;padding:7px 10px;border-radius:10px;font-size:13px}
.step-move-group{gap:7px}
.step-move-btn{min-height:38px;padding:7px 10px;border-radius:10px;font-size:13px}
.step-move-btn img{width:26px;height:26px}
.learn-vowel-btn{min-width:46px;min-height:36px;border-radius:9px;font-size:19px}
.main-grid{grid-template-columns:minmax(360px,.86fr) minmax(390px,1fr);gap:10px}
.panel{padding:12px}
.section-title{margin-bottom:7px;font-size:12px}
.section-title.mt{margin-top:10px}
.svg-wrap{min-height:214px;margin-bottom:8px;border-radius:14px}
#svgArea{width:176px;height:194px}
.svg-wrap .coach-tip{right:12px;bottom:7px}
.svg-wrap .coach-logo{width:46px;height:46px}
.svg-wrap .coach-bubble{font-size:12px;padding:4px 8px}
.labels{gap:5px}
.label{padding:6px 8px;border-radius:10px;font-size:12px;line-height:1.22}
.label .badge{width:20px;height:20px;min-width:20px;font-size:11px}
.info-panel{display:flex;flex-direction:column}
.info-head{gap:10px}
.big-char{font-size:68px}
.name{font-size:21px}
.sound{font-size:14px}
.pill{font-size:11px;padding:3px 8px;margin-top:4px}
.listen-grid{margin-top:8px}
.listen-card{min-height:56px;padding:8px}
.listen-label{margin-bottom:4px;font-size:11px}
.listen-card strong{font-size:18px}
.desc-box{margin-top:8px;padding:10px;border-radius:13px;line-height:1.42;gap:9px}
.desc-logo{width:44px;height:44px;border-radius:10px}
.desc-box .ko{margin-bottom:4px}
.meaning-title{font-size:11px;margin-top:5px}
.lesson-control-row{margin-top:9px;gap:7px}
.lesson-control-row .btn{flex:1 1 0;min-height:38px;padding:8px 9px;border-radius:10px;font-size:13px}
.lesson-audio-status{margin-top:6px;font-size:11px}
.support-grid{grid-template-columns:minmax(300px,1fr) minmax(190px,.58fr) minmax(230px,.72fr);gap:10px;margin-top:10px}
.support-card{min-height:170px;padding:11px 12px;border-radius:14px}
.word-section{grid-template-columns:minmax(62px,82px) minmax(150px,1fr);column-gap:9px;row-gap:6px}
.word-section .word-chip-row{gap:5px}
.word-section .word-chip{min-height:32px;padding:6px 8px;border-radius:11px;font-size:13px}
.word-section .flash-card{min-height:136px}
.word-section .flash-face{border-radius:13px;padding:8px}
.word-section .word-placeholder{font-size:30px!important;margin-bottom:5px!important}
.word-section .word-main{font-size:21px}
.word-section .sbtn{width:34px;height:34px}
.word-section .word-sub{font-size:11px;margin:3px 0 5px}
.word-section .word-actions{margin-top:5px}
.word-section .word-action-btn{padding:6px 8px;border-radius:8px;font-size:12px}
.word-section .word-back-box{padding:6px 8px;font-size:12px}
.word-section .word-back-box div:not(.word-back-title){font-size:13px;line-height:1.25}
.combo-line{min-height:118px}
.combo-base,.combo-vowel{font-size:25px}
.combo-result{font-size:34px}
.practice-target-row{min-height:58px}
.practice-target{font-size:36px}
.practice-input{padding:8px 10px;border-radius:10px}
.practice-answer{font-size:11px;margin-top:6px}
.principle-nav{margin-bottom:10px}
.cheonjiin-page{grid-template-columns:minmax(300px,.78fr) minmax(360px,1fr);gap:18px;padding:18px}
.cheonjiin-page-copy h2{font-size:30px;margin-bottom:8px}
.cheonjiin-page-copy p:not(.section-title){font-size:15px;line-height:1.42;margin-bottom:12px}
.principle-step-pill{padding:7px 12px;border-radius:999px;font-size:13px}
.cheonjiin-page-list{gap:8px}
.cheonjiin-page-list span{min-height:46px;padding:10px 12px;border-radius:12px;font-size:16px}
.cheonjiin-page-list b{width:34px;font-size:24px}
.cheonjiin-page-art{min-height:360px;border-radius:22px}
.cheonjiin-page-art .cheonjiin-svg{max-height:338px}
.principle-screen > .cheonjiin-sheet-note{margin-top:10px;padding:10px 14px;border-radius:14px;gap:10px}
.principle-screen > .cheonjiin-sheet-note img{width:46px!important;height:46px!important;max-width:46px!important;max-height:46px!important;flex-basis:46px}
.principle-screen > .cheonjiin-sheet-note p{font-size:14px!important;line-height:1.42!important}
#stepScreen .series-row{min-height:94px;padding:12px;gap:10px}
#stepScreen .vbtn{min-width:68px;min-height:46px;font-size:23px}
#stepScreen .cheonjiin-card{min-height:76px;padding:11px 14px}
#stepScreen .home-brand-card{min-height:92px}
@media(max-width:900px){
  .main-grid,.support-grid,.cheonjiin-page{grid-template-columns:1fr}
  .svg-wrap{min-height:210px}
  .cheonjiin-page-art{min-height:300px}
}
@media(max-width:760px){
  body{padding:10px}
  .title h1{font-size:22px}
  .main-grid,.support-grid{gap:9px}
  .svg-wrap{min-height:200px}
  #svgArea{width:166px;height:184px}
  .big-char{font-size:58px}
  .lesson-control-row{flex-direction:row}
  .lesson-control-row .btn{font-size:12px}
  .cheonjiin-page{padding:14px}
  .cheonjiin-page-copy h2{font-size:25px}
}

/* Stable fixed vowel page layout 20260605 */
.learn-screen{
  min-height:calc(100vh - 84px);
}
.main-grid{
  align-items:stretch;
  grid-template-columns:minmax(430px,1fr) minmax(360px,.82fr);
}
.animation-panel,
.info-panel{
  min-height:430px;
  display:flex;
  flex-direction:column;
}
.animation-panel{
  justify-content:flex-start;
}
.svg-wrap{
  height:252px;
  min-height:252px;
  flex:0 0 252px;
  margin-bottom:10px;
}
#svgArea{
  width:184px;
  height:204px;
  flex:0 0 auto;
}
.labels{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  grid-template-rows:repeat(2,42px);
  grid-auto-rows:42px;
  gap:7px;
  min-height:91px;
  height:91px;
  max-height:91px;
  overflow:hidden;
  align-content:start;
}
.label{
  min-width:0;
  height:42px;
  padding:6px 8px;
  align-items:center;
  overflow:hidden;
}
.label span:last-child{
  display:block;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.label .badge{
  flex:0 0 22px;
  width:22px;
  height:22px;
  min-width:22px;
}
.info-panel{
  justify-content:flex-start;
}
.info-head{
  min-height:82px;
}
.desc-box{
  min-height:112px;
  max-height:142px;
  overflow:hidden;
}
.lesson-control-row{
  margin-top:auto;
  padding-top:10px;
}
.lesson-audio-status{
  min-height:16px;
}
.support-grid{
  align-items:stretch;
}
.support-card{
  height:178px;
  min-height:178px;
  max-height:178px;
  overflow:hidden;
}
.word-section .flash-card{
  min-height:128px;
  height:128px;
}
.combo-line,
.practice-target-row{
  min-height:82px;
}
@media(max-width:900px){
  .learn-screen{
    min-height:auto;
  }
  .main-grid{
    grid-template-columns:1fr;
  }
  .animation-panel,
  .info-panel{
    min-height:auto;
  }
  .svg-wrap{
    height:230px;
    min-height:230px;
    flex-basis:230px;
  }
  .labels{
    grid-template-columns:repeat(2,minmax(0,1fr));
    grid-template-rows:repeat(3,40px);
    height:134px;
    min-height:134px;
    max-height:134px;
  }
  .support-card{
    height:auto;
    min-height:156px;
    max-height:none;
  }
}
@media(max-width:760px){
  .svg-wrap{
    height:214px;
    min-height:214px;
    flex-basis:214px;
  }
  #svgArea{
    width:166px;
    height:184px;
  }
  .labels{
    grid-template-columns:1fr;
    grid-template-rows:repeat(5,38px);
    height:214px;
    min-height:214px;
    max-height:214px;
  }
}

/* Softer laptop fit 20260605 */
html,body{width:100%;max-width:100%;overflow-x:hidden}
.app{width:min(100%,1280px)}
@media (min-width:901px) and (max-height:860px){
  body{padding:10px}
  .app{max-width:1240px}
  .header{margin-bottom:9px}
  .company-logo{width:48px;height:48px}
  .title h1{font-size:23px}
  .title p{font-size:12px}
  .select{min-height:36px;padding:6px 10px;border-radius:10px}
  .step-card{padding:12px;margin-bottom:9px}
  #stepScreen .step-list{
    display:flex;
    flex-direction:column;
    gap:8px;
  }
  #stepScreen .series-row{
    grid-template-columns:132px minmax(0,1fr);
    min-height:92px;
    padding:11px 13px;
    gap:10px;
    border-radius:13px;
  }
  #stepScreen .series-head{font-size:12px}
  #stepScreen .series-head small,
  #stepScreen .series-subtitle{font-size:11px;line-height:1.25}
  #stepScreen .series-letters{gap:7px}
  #stepScreen .vowel-button-row{gap:7px}
  #stepScreen .vbtn{
    min-width:62px;
    min-height:42px;
    font-size:22px;
    border-radius:9px;
  }
  #stepScreen .cheonjiin-card{
    min-height:86px;
    padding:11px 14px;
  }
  #stepScreen .cheonjiin-copy strong{font-size:18px}
  #stepScreen .cheonjiin-copy span{font-size:12px;line-height:1.3}
  #stepScreen .home-brand-row{display:none}
  .learn-nav{margin-bottom:8px;padding:6px 10px;border-radius:13px}
  .step-nav-btn,.step-move-btn{min-height:36px;padding:6px 10px;font-size:13px;border-radius:10px}
  .step-move-btn img{width:24px;height:24px}
  .learn-vowel-btn{min-width:42px;min-height:34px;font-size:18px}
  .main-grid{
    grid-template-columns:minmax(430px,1fr) minmax(350px,.82fr);
    gap:9px;
  }
  .panel{padding:11px}
  .animation-panel,.info-panel{min-height:390px}
  .svg-wrap{height:224px;min-height:224px;flex-basis:224px;margin-bottom:8px}
  #svgArea{width:170px;height:188px}
  .labels{
    grid-template-columns:repeat(3,minmax(0,1fr));
    grid-template-rows:repeat(2,38px);
    grid-auto-rows:38px;
    height:83px;
    min-height:83px;
    max-height:83px;
    gap:6px;
  }
  .label{height:38px;padding:5px 7px;font-size:12px}
  .label .badge{width:20px;height:20px;min-width:20px;flex-basis:20px}
  .big-char{font-size:60px}
  .name{font-size:19px}
  .sound{font-size:13px}
  .listen-card{min-height:48px;padding:6px}
  .desc-box{min-height:94px;max-height:118px;padding:9px;line-height:1.35}
  .desc-logo{width:40px;height:40px}
  .lesson-control-row .btn{min-height:36px;padding:7px 8px;font-size:13px}
  .support-grid{
    grid-template-columns:minmax(300px,1fr) minmax(185px,.58fr) minmax(230px,.72fr);
    gap:9px;
    margin-top:9px;
  }
  .support-card{
    height:156px;
    min-height:156px;
    max-height:156px;
    padding:10px 11px;
  }
  .word-section .flash-card{height:118px;min-height:118px}
  .combo-line{min-height:96px}
  .practice-target-row{min-height:58px}
  .principle-nav{margin-bottom:8px}
  .cheonjiin-page{grid-template-columns:minmax(280px,.75fr) minmax(360px,1fr);gap:14px;padding:15px}
  .cheonjiin-page-copy h2{font-size:28px}
  .cheonjiin-page-copy p:not(.section-title){font-size:14px;line-height:1.35}
  .cheonjiin-page-list span{min-height:42px;padding:9px 11px;font-size:15px}
  .cheonjiin-page-art{min-height:322px;height:322px}
  .cheonjiin-page-art .cheonjiin-svg{max-height:304px}
  .principle-screen > .cheonjiin-sheet-note{margin-top:8px;padding:9px 12px}
}
@media (max-width:900px){
  .app{width:100%}
  .header,.learn-nav,.main-grid,.support-grid,.cheonjiin-page,#stepScreen .series-row{max-width:100%}
}

/* PC home screen fill: taller step cards, slimmer brand cards */
@media (min-width:901px){
  body{
    padding:10px 12px;
  }
  .app{
    width:min(100%,1280px);
  }
  .header{
    margin-bottom:8px;
  }
  #stepScreen.step-card{
    min-height:calc(100vh - 78px);
    padding:14px 16px;
    margin-bottom:0;
    display:flex;
  }
  #stepScreen .step-list{
    flex:1 1 auto;
    display:grid;
    grid-template-rows:repeat(5,minmax(106px,1fr)) minmax(74px,auto);
    gap:10px;
  }
  #stepScreen .series-row{
    min-height:106px;
    padding:15px 18px;
    grid-template-columns:136px minmax(0,1fr);
    gap:14px;
  }
  #stepScreen .cheonjiin-card{
    min-height:86px;
    padding:13px 16px;
  }
  #stepScreen .vbtn{
    min-width:68px;
    min-height:48px;
  }
  #stepScreen .home-brand-row{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:18px;
    margin-top:4px;
  }
  #stepScreen .home-brand-card{
    min-height:74px;
    padding:10px 28px;
    gap:18px;
  }
  #stepScreen .home-brand-company img{
    width:64px;
    height:64px;
  }
  #stepScreen .home-brand-teacher img{
    width:80px;
    height:64px;
  }
  #stepScreen .home-brand-card strong{
    font-size:24px;
    margin-bottom:5px;
  }
  #stepScreen .home-brand-teacher strong{
    font-size:30px;
  }
  #stepScreen .home-brand-card span{
    font-size:13px;
  }
}

@media (min-width:901px) and (max-height:820px){
  #stepScreen.step-card{
    min-height:calc(100vh - 72px);
    padding:12px 16px;
  }
  #stepScreen .step-list{
    grid-template-rows:repeat(5,minmax(96px,1fr)) minmax(66px,auto);
    gap:8px;
  }
  #stepScreen .series-row{
    min-height:96px;
    padding:12px 16px;
  }
  #stepScreen .home-brand-card{
    min-height:66px;
    padding:8px 24px;
  }
  #stepScreen .home-brand-company img{
    width:56px;
    height:56px;
  }
  #stepScreen .home-brand-teacher img{
    width:72px;
    height:56px;
  }
}

html.embed-basic,
html.embed-basic body{
  background:#f6f2ec;
}
html.embed-basic body{
  padding:10px 12px 16px;
}
html.embed-basic #stepScreen{
  display:none!important;
}
html.embed-basic .header{
  margin-bottom:10px;
}
html.embed-basic .title h1{
  font-size:20px;
}
html.embed-basic .company-logo{
  width:44px;
  height:44px;
}
