/* Wind & Bear — shared styles. Phone first; tablet ≥700px; laptop ≥960px. */
* { box-sizing: border-box; }
:root {
  --bg: #faf3e3; --bg-soft: #f3e9d2; --surface: #fffdf7;
  --ink: #22304a; --ink-soft: #4c5871; --muted: #5f6981; --line: #e3d5b8;
  --gold: #8a5c14; --gold-bright: #e9b44c; --gold-soft: #f7e7bd;
  --night: #1b2745; --night-2: #121b33; --night-ink: #f4ecd9; --green: #276b3c;
  --f-body: "Nunito Sans", system-ui, sans-serif;
  --f-head: "DM Serif Display", Georgia, serif;
  --f-script: "Satisfy", cursive;
  --gutter: 20px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1729; --bg-soft: #131e38; --surface: #182238;
    --ink: #f2ead8; --ink-soft: #c9cfdd; --muted: #a3acc1; --line: #2c3a5c;
    --gold: #e9b44c; --gold-bright: #f2c96d; --gold-soft: #2a3350;
    --night: #0a1120; --night-2: #070c18; --green: #7cc793;
    color-scheme: dark;
  }
}
html[lang="ko"] {
  --f-body: "Noto Sans KR", "Nunito Sans", system-ui, sans-serif;
  --f-head: "Gowun Batang", "DM Serif Display", serif;
  --f-script: "Nanum Pen Script", "Satisfy", cursive;
  word-break: keep-all;
}
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg-soft); color: var(--ink);
  font-family: var(--f-body); font-size: 17px; line-height: 1.6;
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
}
.page { max-width: 560px; margin: 0 auto; background: var(--bg); min-height: 100vh; box-shadow: 0 0 40px rgba(27,39,69,.12); overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.script { font-family: var(--f-script); }
html[lang="ko"] .script, html[lang="ko"] .sec-script, html[lang="ko"] .hero-script { font-size: 1.15em; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 16px; }
.wordmark { font-family: "DM Serif Display", serif; font-size: 21px; color: var(--ink); text-decoration: none; white-space: nowrap; line-height: 1.2; }
.wordmark .amp { color: var(--gold); }
.wordmark small { display: block; font-family: "Satisfy", cursive; font-size: 13px; color: var(--gold); line-height: 1.1; }
.topnav, .top-social { display: none; }
.top-right { display: flex; align-items: center; gap: 6px; }
.lang { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 800; font-size: 14px; background: var(--surface); white-space: nowrap; }
.top-watch { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 16px; background: var(--gold-bright); color: #2a1f05; border-radius: 999px; font-weight: 800; font-size: 15px; text-decoration: none; white-space: nowrap; }

/* ---------- hero (home) ---------- */
.hero { position: relative; }
.hero-art { position: relative; margin: 0; }
.hero-art img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.hero-art figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 20px 12px; color: #fff8ea; font-size: 14px; background: linear-gradient(to top, rgba(15,22,40,.72), transparent); }
.hero-art figcaption .script { font-size: 19px; color: var(--gold-bright); }
.hero-copy { padding: 22px 20px 6px; text-align: center; }
.hero-script { font-family: var(--f-script); font-size: 26px; color: var(--gold); margin: 0 0 4px; }
h1 { font-family: var(--f-head); font-weight: 400; font-size: 46px; line-height: 1.05; margin: 0 0 12px; }
h1 .amp { color: var(--gold); }
.hero-lede { color: var(--ink-soft); margin: 0 auto 8px; max-width: 32em; }
.hero-lede strong { color: var(--ink); }
.cta-stack { display: grid; gap: 10px; padding: 14px 20px 4px; }
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 12px 20px; border-radius: 16px; text-align: center; font: inherit; font-weight: 800; font-size: 17px; text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-gold { background: var(--gold-bright); color: #2a1f05; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-small { min-height: 46px; font-size: 15px; padding: 8px 16px; border-radius: 12px; }
.social-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 14px 20px 6px; }
.tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 76px; padding: 10px 4px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 800; font-size: 13.5px; text-align: center; }
.tile svg { width: 24px; height: 24px; color: var(--gold); }
.tile span { color: var(--muted); font-weight: 700; font-size: 12px; }
.stars { display: none; }

/* ---------- banners & cards ---------- */
.next-card { margin: 18px 20px 0; background: var(--night); color: var(--night-ink); border-radius: 18px; padding: 18px; }
.next-card .lbl { font-family: var(--f-script); font-size: 21px; color: #f2c96d; display: block; }
.next-card .what { font-weight: 800; font-size: 18px; display: block; margin-top: 2px; }
.next-card .when { color: #c8cfdf; font-size: 15px; display: block; }
.next-card a { display: flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 14px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); border-radius: 12px; color: #f2c96d; font-weight: 800; text-decoration: none; font-size: 16px; text-align: center; padding: 6px 14px; }

/* ---------- sections ---------- */
section { padding: 38px 0 4px; scroll-margin-top: 76px; }
.sec-head { padding: 0 var(--gutter); margin-bottom: 16px; }
.sec-script { font-family: var(--f-script); font-size: 23px; color: var(--gold); margin: 0 0 2px; }
h2 { font-family: var(--f-head); font-weight: 400; font-size: 31px; line-height: 1.15; margin: 0 0 8px; }
.sec-head p { color: var(--ink-soft); margin: 0; }
.wrap { padding: 0 var(--gutter); }

/* latest episode player */
.latest { display: grid; gap: 16px; padding: 0 var(--gutter); }
.latest .video { max-width: 300px; }
.latest-info h3 { font-family: var(--f-head); font-weight: 400; font-size: 26px; margin: 4px 0 6px; line-height: 1.2; }
.latest-info p { color: var(--ink-soft); margin: 0 0 14px; }
.ep-num { font-weight: 800; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* video facade */
.video { position: relative; width: 100%; max-width: 380px; margin: 0 auto; aspect-ratio: 9 / 16; border-radius: 20px; overflow: hidden; background: var(--night); box-shadow: 0 14px 34px rgba(27,39,69,.25); }
.video img, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.video button, .video a.play { position: absolute; inset: 0; width: 100%; border: 0; padding: 0; background: transparent; cursor: pointer; color: #fff; text-decoration: none; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.video .shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,16,32,.85) 0%, rgba(10,16,32,.1) 55%); }
.video .play-icon { position: absolute; top: 50%; left: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: rgba(233,180,76,.95); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,.35); transition: transform .15s; }
.video .play-icon svg { width: 30px; height: 30px; margin-left: 4px; color: #2a1f05; }
.video button:hover .play-icon, .video a.play:hover .play-icon { transform: scale(1.06); }
.video .v-label { position: relative; padding: 0 18px 18px; font-weight: 800; font-size: 16px; text-align: center; }
.video .v-label small { display: block; font-weight: 600; font-size: 13px; color: #d6dbe7; }
.video.coming .v-label { padding-bottom: 26px; }
.video.coming .countdown { display: block; position: relative; font-family: var(--f-head); font-size: 34px; line-height: 1.1; margin-bottom: 4px; color: #f2c96d; }

.poster { margin: 0 var(--gutter) 18px; border-radius: 20px; overflow: hidden; border: 5px solid var(--surface); box-shadow: 0 14px 32px rgba(27,39,69,.22); }
.story-copy { padding: 0 var(--gutter); }
.story-copy p { margin: 0 0 13px; color: var(--ink-soft); }
.story-copy p strong { color: var(--ink); }
.theme-line { margin: 18px var(--gutter) 0; background: var(--gold-soft); border-radius: 16px; padding: 16px 18px; color: var(--ink-soft); font-size: 16px; }
.theme-line .script { font-size: 22px; color: var(--gold); display: block; margin-bottom: 2px; }

/* cast */
.cast { list-style: none; margin: 18px 0 0; padding: 0 var(--gutter); display: grid; gap: 10px; }
.cast button { width: 100%; display: flex; gap: 14px; align-items: center; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; font: inherit; color: inherit; cursor: pointer; }
.cast button:hover { border-color: var(--gold); }
.cast img { flex: none; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gold-soft); }
.cast .name { font-family: var(--f-head); font-size: 19px; display: block; line-height: 1.25; }
.cast .role { color: var(--muted); font-size: 14.5px; line-height: 1.45; display: block; margin-top: 1px; }
.cast .more-i { margin-left: auto; flex: none; color: var(--gold); font-weight: 800; font-size: 20px; }

/* dialogs */
dialog { border: 0; padding: 0; border-radius: 24px; background: var(--surface); color: var(--ink); width: min(440px, calc(100vw - 32px)); max-height: calc(100vh - 40px); box-shadow: 0 30px 80px rgba(0,0,0,.4); }
dialog::backdrop { background: rgba(10,16,32,.6); backdrop-filter: blur(3px); }
.dlg-close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.85); color: #22304a; font-size: 24px; line-height: 1; cursor: pointer; z-index: 2; }
.char-dlg img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.char-dlg .body { padding: 18px 22px 24px; }
.char-dlg h3 { font-family: var(--f-head); font-weight: 400; font-size: 30px; margin: 0 0 6px; }
.char-dlg p { margin: 0 0 10px; color: var(--ink-soft); }
.video-dlg { background: #000; width: min(400px, calc(100vw - 32px)); }
.video-dlg .frame { aspect-ratio: 9 / 16; max-height: calc(100vh - 60px); }
.video-dlg iframe { width: 100%; height: 100%; border: 0; display: block; }

/* episodes */
.eps { display: grid; gap: 10px; padding: 0 var(--gutter); list-style: none; margin: 0; }
.ep { display: flex; gap: 14px; align-items: center; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; text-decoration: none; color: var(--ink); min-height: 72px; }
.ep .no { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--gold-soft); color: var(--gold); display: flex; align-items: center; justify-content: center; font-family: "DM Serif Display", serif; font-size: 19px; }
.ep.soon { border-style: dashed; }
.ep.soon .no { background: transparent; border: 1.5px dashed var(--line); color: var(--muted); }
.ep .body { flex: 1; min-width: 0; }
.ep h3 { font-family: var(--f-head); font-weight: 400; font-size: 19px; margin: 0; line-height: 1.25; }
.ep .meta { font-size: 14px; color: var(--muted); margin-top: 2px; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.pill { font-weight: 800; font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.pill.out { background: color-mix(in srgb, var(--green) 14%, transparent); color: var(--green); }
.pill.soon { background: var(--gold-soft); color: var(--gold); }
.pill.tag { background: var(--night); color: #f2c96d; }
.ep .chev { flex: none; color: var(--gold); font-size: 22px; font-weight: 800; }

/* music */
.songs { display: grid; gap: 14px; padding: 0 var(--gutter); }
.song { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.song .cover { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.song .cover.square { aspect-ratio: 1 / 1; }
.song .inner { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.song .kind { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 3px; }
.song h3 { font-family: "DM Serif Display", serif; font-weight: 400; font-size: 23px; margin: 0 0 5px; line-height: 1.2; }
.song p { margin: 0 0 14px; color: var(--ink-soft); font-size: 15.5px; flex: 1; }
.song audio { width: 100%; margin: 0 0 12px; }
.song .links { display: grid; gap: 8px; }
.song .links .row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.listen { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; background: var(--gold-bright); color: #2a1f05; border-radius: 12px; font: inherit; font-weight: 800; font-size: 15.5px; text-decoration: none; border: 2px solid transparent; cursor: pointer; padding: 6px 10px; text-align: center; }
.listen.ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.more-music { padding: 16px var(--gutter) 0; color: var(--muted); font-size: 15px; margin: 0; }

/* sign-up */
.signup { margin: 38px var(--gutter) 0; background: var(--night); color: var(--night-ink); border-radius: 22px; padding: 24px 20px; position: relative; overflow: hidden; }
.signup h2 { color: var(--night-ink); font-size: 28px; }
.signup p { color: #c8cfdf; margin: 0 0 14px; }
.signup .script { color: #f2c96d; font-size: 22px; display: block; }
.signup form { display: grid; gap: 10px; }
.field { display: block; width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 14px; border: 2px solid transparent; font: inherit; font-size: 17px; background: #fffdf7; color: #22304a; }
.signup .btn { width: 100%; }
.signup .fine { font-size: 13px; color: #a9b2c6; margin: 10px 0 0; }
.hidden-field { display: none; }

/* after-finale & next series */
.finale { margin: 18px var(--gutter) 0; border-radius: 18px; padding: 20px; background: linear-gradient(135deg, var(--night), #2b3a68); color: var(--night-ink); }
.finale .script { color: #f2c96d; font-size: 23px; display: block; }
.finale h3 { font-family: var(--f-head); font-weight: 400; font-size: 26px; margin: 0 0 6px; }
.finale p { color: #c8cfdf; margin: 0 0 14px; }
.finale .btn-row { display: grid; gap: 10px; }
.finale .btn-ghost { background: transparent; color: var(--night-ink); border-color: rgba(255,255,255,.3); }
[hidden] { display: none !important; }

/* extras */
.extras { display: grid; gap: 14px; padding: 0 var(--gutter); }
.extra { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; color: var(--ink); text-decoration: none; }
.extra img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #fff; }
.extra img.contain { object-fit: contain; padding: 10px; }
.extra .inner { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.extra h3 { font-family: var(--f-head); font-weight: 400; font-size: 21px; margin: 0 0 4px; }
.extra p { margin: 0 0 12px; color: var(--ink-soft); font-size: 15px; flex: 1; }
.extra .links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* bedtime story page */
.read { padding: 0 var(--gutter); max-width: 38em; margin: 0 auto; }
.read p { font-size: 19px; line-height: 1.75; margin: 0 0 18px; }
.read p:first-of-type::first-letter { font-family: var(--f-head); font-size: 3.2em; float: left; line-height: .9; padding: 6px 8px 0 0; color: var(--gold); }
html[lang="ko"] .read p:first-of-type::first-letter { font-size: 1em; float: none; padding: 0; color: inherit; }
.read .end { text-align: center; font-family: var(--f-script); font-size: 26px; color: var(--gold); }

/* episode page */
.ep-hero { padding: 22px var(--gutter) 0; }
.crumbs { font-size: 14px; color: var(--muted); padding: 14px var(--gutter) 0; }
.crumbs a { color: var(--muted); }
.ep-page h1 { font-size: 38px; margin: 6px 0 8px; }
.ep-page .meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; color: var(--muted); font-size: 15px; margin-bottom: 14px; }
.ep-page .summary { color: var(--ink-soft); font-size: 18px; margin: 0 0 16px; }
.draft-note { font-size: 13px; color: var(--muted); }
.ep-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 22px var(--gutter) 0; }
.ep-nav a { display: flex; flex-direction: column; justify-content: center; min-height: 72px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); text-decoration: none; font-family: var(--f-head); font-size: 16px; line-height: 1.25; }
.ep-nav a small { font-family: var(--f-body); font-weight: 800; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.ep-nav a.next { text-align: right; }
.ep-nav span { visibility: hidden; }
.share-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }

/* about & contact */
.about-copy { padding: 0 var(--gutter); }
.about-copy p { color: var(--ink-soft); margin: 0 0 14px; font-size: 18px; }
.about-copy .sig { width: 110px; margin: 0 0 14px; }
.contact { margin: 10px var(--gutter) 0; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.contact form { display: grid; gap: 12px; }
.contact label { font-weight: 800; font-size: 14px; display: grid; gap: 4px; }
.contact .field { border-color: var(--line); }
.contact textarea.field { min-height: 140px; resize: vertical; }

/* footer */
footer { margin-top: 44px; border-top: 1px solid var(--line); padding: 26px 20px 30px; text-align: center; }
footer img.sig { width: 84px; height: auto; margin: 0 auto 10px; }
.fb-name { font-family: "DM Serif Display", serif; font-size: 21px; }
.fb-sub { color: var(--muted); font-size: 14px; margin-top: 2px; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; margin: 14px 0 0; font-size: 15px; font-weight: 700; }
.foot-links a { color: var(--ink-soft); text-decoration: none; }
.foot-note { color: var(--muted); font-size: 13.5px; margin: 16px 0 0; }

/* bottom tab bar (phones/tablets) */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabbar-in { max-width: 560px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 60px; padding: 8px 2px 6px; color: var(--ink-soft); text-decoration: none; font-size: 11.5px; font-weight: 800; }
.tabbar a svg { width: 23px; height: 23px; }
.tabbar a:active, .tabbar a.active { color: var(--gold); }

/* phones/tablets: story heading, then poster, then copy */
@media (max-width: 959px) {
  .story-grid { display: flex; flex-direction: column; }
  .story-main { display: contents; }
  .story-main .sec-head { order: -1; }
}

/* studio home */
.collage { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--night); }
.collage img, .collage .c3 { position: absolute; border-radius: 18px; box-shadow: 0 18px 40px rgba(0,0,0,.4); }
.collage .c1 { width: 62%; left: 6%; top: 8%; transform: rotate(-4deg); z-index: 2; }
.collage .c2 { width: 46%; right: 5%; top: 6%; transform: rotate(5deg); }
.collage .c3 { width: 50%; right: 7%; bottom: 6%; transform: rotate(-2deg); z-index: 3; overflow: hidden; }
.collage .c3 svg, .series-card .art svg, .dand-hero-art svg { display: block; width: 100%; height: auto; }
.series { display: grid; gap: 16px; }
.series-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; text-decoration: none; color: var(--ink); }
.series-card img, .series-card .art { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; overflow: hidden; display: block; }
.series-card .art svg { margin-top: -18%; }
.series-card .inner { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 18px 20px 22px; flex: 1; }
.series-card .s-title { font-family: var(--f-head); font-size: 28px; line-height: 1.15; }
.series-card .s-desc { color: var(--ink-soft); }
.series-card .s-next { color: var(--muted); font-size: 15px; font-weight: 700; flex: 1; }
.series-card .s-next:empty { display: none; }
.series-card .btn { margin-top: 4px; }
.meet { display: grid; gap: 18px; align-items: center; }
.meet img { width: 120px; }
.meet p { color: var(--ink-soft); font-size: 18px; margin: 0 0 14px; }
.subnav { display: flex; gap: 8px; overflow-x: auto; padding: 14px var(--gutter); border-bottom: 1px solid var(--line); scrollbar-width: none; }
.subnav a { flex: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 14.5px; }
.subnav a:hover { border-color: var(--gold); }
.family-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.family-links a { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; line-height: 1.3; }
.family-links img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; background: #fff; flex: none; }
.series-h1 { font-size: 40px; }
.dand-hero-art { overflow: hidden; }
.hero-dand .next-card .what:empty { display: none; }

/* journey map */
.journey { position: relative; }
.jmap { display: block; width: 100%; height: auto; border-radius: 22px; box-shadow: 0 14px 34px rgba(27,39,69,.25); }
.jmap-desk { display: none; }
.jroad path { stroke: #50628f; stroke-width: 4; stroke-dasharray: 2 9; }
.jroad path.done { stroke: #e9b44c; stroke-width: 5; stroke-dasharray: none; filter: drop-shadow(0 0 4px rgba(233,180,76,.6)); }
.jstop .hit { fill: transparent; }
.jstop .dot { fill: #1b2745; stroke: #50628f; stroke-width: 2.5; }
.jstop.done .dot { fill: #e9b44c; stroke: #fff2c4; }
.jstop .num { font: 800 12px "Nunito Sans", system-ui, sans-serif; fill: #a9b4d0; pointer-events: none; }
.jstop.done .num { fill: #2a1f05; }
.jstop .lm { font: 400 15px "DM Serif Display", Georgia, serif; fill: #f4ecd9; pointer-events: none; }
html[lang="ko"] .jstop .lm { font-family: "Gowun Batang", serif; }
.jstop:hover .dot, .jstop:focus .dot { stroke: #fff; stroke-width: 3.5; }
.jstop:focus { outline: none; }
.gomi-marker { transition: transform .8s ease; }
.gomi-marker image { pointer-events: none; }
.jcap { margin: 14px 0 0; color: var(--ink-soft); text-align: center; }
.quiz-teaser { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 18px var(--gutter) 0; padding: 16px 18px; border-radius: 16px; background: var(--night); color: var(--night-ink); text-decoration: none; }
.quiz-teaser .script { display: block; color: #f2c96d; font-size: 19px; }
.quiz-teaser strong { font-family: var(--f-head); font-weight: 400; font-size: 20px; line-height: 1.25; }

/* quiz */
.quiz { padding: 0 var(--gutter); display: grid; gap: 14px; max-width: 760px; }
.quiz fieldset { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); padding: 16px 16px 10px; margin: 0; }
.quiz legend { font-family: var(--f-head); font-size: 21px; padding: 0 6px; line-height: 1.3; }
.quiz legend small { display: block; font-family: var(--f-body); font-weight: 800; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.quiz label { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 12px; margin: 0 0 6px; border-radius: 12px; border: 1px solid var(--line); cursor: pointer; }
.quiz label:hover { border-color: var(--gold); }
.quiz input { width: 20px; height: 20px; accent-color: var(--gold); flex: none; }
.quiz label:has(input:checked) { border-color: var(--gold); background: var(--gold-soft); font-weight: 700; }
.quiz .msg { color: #b3261e; font-weight: 700; min-height: 1.4em; margin: 0; }
.qresult { margin: 0 var(--gutter); max-width: 760px; display: grid; gap: 18px; align-items: center; background: var(--night); color: var(--night-ink); border-radius: 22px; padding: 22px; scroll-margin-top: 90px; }
.qresult img { width: 180px; height: 180px; border-radius: 50%; border: 5px solid #e9b44c; margin: 0 auto; object-fit: cover; }
.qresult .script { color: #f2c96d; font-size: 22px; display: block; }
.qresult h2 { color: #fff8ea; margin: 0 0 6px; }
.qresult p { color: #ccd3e2; margin: 0 0 14px; }
.qresult .btn-ghost { background: transparent; color: var(--night-ink); border-color: rgba(255,255,255,.3); }

/* parents */
.prose { padding: 0 var(--gutter); max-width: 820px; }
.prose p { color: var(--ink-soft); font-size: 18px; margin: 0 0 14px; }
.prose h2 { font-size: 30px; margin: 34px 0 12px; }
.themes { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.themes li { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; color: var(--ink-soft); }
.themes strong { display: block; font-family: var(--f-head); font-weight: 400; font-size: 20px; color: var(--ink); }
.qs { margin: 0; padding-left: 1.2em; color: var(--ink-soft); font-size: 18px; }
.qs li { margin: 0 0 8px; }
.words { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.word { background: var(--gold-soft); border-radius: 16px; padding: 14px; text-align: center; }
.word b { display: block; font-size: 34px; font-family: "Gowun Batang", "Noto Serif CJK KR", serif; color: var(--ink); line-height: 1.2; }
.word i { display: block; color: var(--gold); font-style: normal; font-weight: 800; }
.word span { display: block; color: var(--muted); font-size: 15px; }
.lyrics { padding: 0 var(--gutter); max-width: 760px; }
.lyrics p { font-size: 21px; line-height: 1.7; margin: 0 0 18px; white-space: pre-line; }

/* ================= TABLET ≥700px ================= */
@media (min-width: 700px) {
  .page { max-width: 760px; }
  .tabbar-in { max-width: 760px; }
  .hero-art img { aspect-ratio: 4 / 3; }
  .poster { max-width: 440px; margin: 0 auto 22px; }
  .cast { grid-template-columns: 1fr 1fr; }
  .eps, .songs, .extras { grid-template-columns: 1fr 1fr; }
  .song .cover { aspect-ratio: 1 / 1; }
  .latest { grid-template-columns: 300px 1fr; align-items: center; }
  .finale .btn-row, .signup form { grid-template-columns: 1fr auto; }
  .jmap-desk { display: block; }
  .series { grid-template-columns: 1fr 1fr; }
  .family-links { grid-template-columns: repeat(4, 1fr); }
  .family-links a { flex-direction: column; text-align: center; }
  .family-links img { width: 100%; height: auto; aspect-ratio: 1 / 1; }
  .meet { grid-template-columns: 140px 1fr; }
  .collage { aspect-ratio: 16 / 10; }
  .collage .c1 { width: 42%; left: 8%; }
  .collage .c2 { width: 32%; right: 10%; }
  .collage .c3 { width: 34%; right: 22%; bottom: 4%; }
  .jmap-phone { display: none; }
  .themes { grid-template-columns: 1fr 1fr; }
  .words { grid-template-columns: repeat(3, 1fr); }
  .qresult { grid-template-columns: 200px 1fr; }
  .signup .btn { width: auto; }
}

/* ================= LAPTOP ≥960px ================= */
@media (min-width: 960px) {
  :root { --gutter: 56px; }
  body { padding-bottom: 0; font-size: 17.5px; }
  .tabbar { display: none; }
  .page { max-width: 1200px; box-shadow: 0 0 60px rgba(27,39,69,.10); }

  .topbar-in { padding: 12px var(--gutter); gap: 20px; }
  .wordmark { font-size: 25px; }
  .topnav { display: flex; gap: 4px; margin-right: auto; margin-left: 20px; }
  .topnav a { color: var(--ink-soft); text-decoration: none; font-weight: 700; font-size: 16px; padding: 8px 13px; border-radius: 999px; }
  .topnav a:hover, .topnav a.active { color: var(--ink); background: var(--gold-soft); }
  .top-social { display: flex; gap: 2px; }
  .top-social a { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 50%; color: var(--ink-soft); }
  .top-social a:hover { color: var(--gold); background: var(--gold-soft); }
  .top-social svg { width: 21px; height: 21px; }
  .lang:hover { border-color: var(--gold); }

  /* night-sky hero band */
  .hero { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: 56px; align-items: center; padding: 56px var(--gutter) 60px; background: radial-gradient(ellipse at 70% 0%, #2b3a68 0%, var(--night) 55%, var(--night-2) 100%); color: var(--night-ink); overflow: hidden; }
  .hero .stars { display: block; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
  .hero > * { position: relative; }
  .hero-art { border-radius: 26px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.08); }
  .hero-art img { aspect-ratio: 1 / 1; }
  .hero-studio .collage { background: transparent; overflow: visible; aspect-ratio: 1 / 1; }
  .hero-studio .collage .c1 { width: 64%; left: 0; top: 4%; }
  .hero-studio .collage .c2 { width: 46%; right: 0; top: 0; }
  .hero-studio .collage .c3 { width: 52%; right: 4%; bottom: 2%; }
  .series-h1 { font-size: 64px; }
  .dand-hero-art { border-radius: 26px; box-shadow: 0 24px 60px rgba(0,0,0,.45); }
  .series-card .s-title { font-size: 32px; }
  .hero-copy { text-align: left; padding: 0; }
  .hero-script { font-size: 30px; color: #f2c96d; }
  h1 { font-size: 76px; margin-bottom: 18px; }
  .hero h1, .hero-lede strong { color: #fff8ea; }
  .hero h1 .amp { color: #f2c96d; }
  .hero-lede { margin: 0 0 10px; font-size: 19px; max-width: 34em; color: #ccd3e2; }
  .cta-stack { grid-template-columns: auto auto; justify-content: start; padding: 20px 0 0; gap: 12px; }
  .hero .btn-ghost { background: rgba(255,255,255,.06); color: #fff8ea; border-color: rgba(255,255,255,.28); }
  .btn { min-height: 56px; padding: 12px 26px; transition: transform .15s, filter .15s, border-color .15s; }
  .btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
  .btn-ghost:hover { border-color: var(--gold); }
  .social-tiles { display: none; }
  .next-card { margin: 26px 0 0; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 24px; padding: 20px 24px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); }
  .next-card .lbl, .next-card .what, .next-card .when { grid-column: 1; }
  .next-card a { grid-column: 2; grid-row: 1 / span 3; margin: 0; padding: 0 22px; }
  .next-card a:hover { background: rgba(255,255,255,.18); }
  .hero .finale { margin: 26px 0 0; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); }

  section { padding-top: 84px; scroll-margin-top: 84px; }
  h2 { font-size: 44px; }
  .sec-head { margin-bottom: 28px; }
  .sec-head p { max-width: 46em; }

  .latest { grid-template-columns: 340px 1fr; gap: 56px; }
  .latest .video { max-width: 340px; }
  .latest-info h3 { font-size: 36px; }
  .latest-info p { font-size: 19px; }

  .story-grid { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 48px; padding: 0 var(--gutter); align-items: start; }
  .story-grid .poster { margin: 0; position: sticky; top: 100px; }
  .story-grid .story-copy, .story-grid .cast, .story-grid .sec-head { padding: 0; }
  .story-grid .theme-line, .story-grid .quiz-teaser { margin: 18px 0 0; }
  .story-copy p { font-size: 18px; }
  .cast button { transition: transform .15s, box-shadow .15s, border-color .15s; }
  .cast button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(27,39,69,.12); }

  .eps { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  a.ep { transition: border-color .15s, transform .15s, box-shadow .15s; }
  a.ep:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(27,39,69,.12); }
  .songs { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .song { transition: transform .15s, box-shadow .15s; }
  .song:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(27,39,69,.14); }
  .song h3 { font-size: 22px; }
  .extras { grid-template-columns: repeat(3, 1fr); gap: 18px; }

  .signup { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 40px 48px; }
  .signup p { margin: 0; }
  .signup form { grid-template-columns: 1fr auto; }
  .finale .btn-row { grid-template-columns: auto auto; justify-content: start; }

  .ep-page .ep-hero { display: grid; grid-template-columns: 360px 1fr; gap: 56px; align-items: start; padding-top: 36px; }
  .ep-page h1 { font-size: 54px; }
  .ep-nav { gap: 18px; }
  .read p { font-size: 20px; }
  .about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 0 var(--gutter); align-items: start; }
  .about-grid .about-copy, .about-grid .contact { padding-left: 0; padding-right: 0; margin: 0; }
  .about-grid .contact { padding: 24px; }

  footer { margin-top: 84px; padding: 40px var(--gutter) 48px; }
}
@media (min-width: 1200px) { h1 { font-size: 84px; } .ep-page h1 { font-size: 58px; } }
@media (hover: none) { .btn:hover, a.ep:hover, .song:hover, .cast button:hover { transform: none; box-shadow: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
@media print { .topbar, .tabbar, footer, .signup { display: none !important; } body { padding: 0; } }
