:root {
  --ink: #284338;
  --muted: #6e8178;
  --green: #55c267;
  --green-dark: #267a45;
  --blue: #5ebde8;
  --blue-dark: #246e9f;
  --orange: #ffad43;
  --coral: #ff7b61;
  --purple: #a969df;
  --cream: #fffaf0;
  --paper: rgba(255, 255, 255, .94);
  --border: rgba(59, 99, 77, .14);
  --shadow: 0 18px 45px rgba(36, 92, 60, .16);
  --soft-shadow: 0 10px 24px rgba(35, 76, 54, .13);
  font-family: "Arial Rounded MT Bold", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  color: var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 3%, rgba(255,255,255,.95) 0 80px, transparent 81px),
    radial-gradient(circle at 85% 8%, rgba(255,255,255,.8) 0 105px, transparent 106px),
    linear-gradient(180deg, #c8f1ff 0, #eafbd9 32%, #fff8e9 100%);
  overflow-x: hidden;
}
button, audio { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }
a { color: inherit; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 999;
  padding: 12px 18px;
  border-radius: 12px;
  background: #143d2a;
  color: white;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

.sky-decoration { position: fixed; inset: 0; pointer-events: none; z-index: -1; }
.sky-decoration i { position: absolute; color: rgba(255, 196, 45, .6); font-style: normal; animation: twinkle 2.7s ease-in-out infinite; }
.sky-decoration i:nth-child(1) { top: 13%; left: 4%; font-size: 28px; }
.sky-decoration i:nth-child(2) { top: 19%; right: 6%; font-size: 18px; animation-delay: .7s; }
.sky-decoration i:nth-child(3) { top: 63%; right: 3%; font-size: 34px; animation-delay: 1.2s; }
.sky-decoration i:nth-child(4) { top: 75%; left: 3%; font-size: 22px; animation-delay: 1.8s; }

.app-shell { width: min(1220px, calc(100% - 32px)); margin: 0 auto; }
.topbar {
  position: sticky;
  top: 14px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 14px 0 22px;
  padding: 10px 12px 10px 18px;
  border: 2px solid rgba(255,255,255,.88);
  border-radius: 24px;
  background: rgba(255,255,255,.82);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(14px);
}
.brand {
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-align: left;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: linear-gradient(145deg, #8be37e, #4db960);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.7), 0 6px 12px rgba(51,139,71,.25);
  font-size: 24px;
}
.brand b { display: block; font-size: 21px; color: #23683b; }
.brand small { display: block; margin-top: 1px; font-size: 11px; color: #728278; }
.desktop-nav { display: flex; gap: 7px; }
.desktop-nav button {
  border: 0;
  border-radius: 16px;
  padding: 11px 13px;
  background: transparent;
  font-weight: 900;
  font-size: 13px;
  cursor: pointer;
  transition: .2s ease;
}
.desktop-nav button:hover, .desktop-nav button.is-active { background: #eff9ef; transform: translateY(-2px); }
.desktop-nav span { font-size: 17px; margin-right: 3px; }

.page { display: none; animation: pageIn .38s ease both; }
.page.is-active { display: block; }
.home-page {
  overflow: hidden;
  min-height: 720px;
  border-radius: 42px;
  border: 4px solid rgba(255,255,255,.92);
  background:
    linear-gradient(90deg, rgba(250,255,246,.98) 0 42%, rgba(247,255,244,.25) 72%),
    url("assets/jeongseon-world.png") center/cover;
  box-shadow: var(--shadow);
}
.home-hero { display: grid; grid-template-columns: 1.04fr .96fr; min-height: 480px; padding: 68px 64px 22px; }
.hero-copy { align-self: center; z-index: 2; }
.eyebrow {
  display: inline-block;
  margin-bottom: 13px;
  padding: 8px 13px;
  border-radius: 999px;
  background: #e6f7dc;
  color: #2b8144;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: -.02em;
}
.eyebrow.coral { color: #b34d37; background: #fff0e8; }
.eyebrow.blue-text { color: #246e9f; background: #e7f6ff; }
.hero-copy h1 { margin: 0; font-size: clamp(48px, 6.2vw, 78px); line-height: 1.04; letter-spacing: -.07em; color: #275c3d; }
.hero-copy h1 em { color: #ff8a39; font-style: normal; text-shadow: 0 4px 0 white; }
.hero-copy p { max-width: 570px; margin: 22px 0 26px; font-size: 18px; font-weight: 700; line-height: 1.75; color: #587267; word-break: keep-all; }
.primary-button {
  border: 0;
  border-radius: 18px;
  padding: 15px 20px;
  background: linear-gradient(180deg, #ffcf51, #ffa937);
  color: #6a4514;
  box-shadow: inset 0 3px 0 rgba(255,255,255,.7), 0 8px 0 #d98025, 0 13px 24px rgba(177,101,30,.2);
  font-weight: 1000;
  cursor: pointer;
  transition: .18s ease;
}
.primary-button:hover { transform: translateY(-3px); }
.primary-button:active { transform: translateY(4px); box-shadow: inset 0 2px 0 rgba(255,255,255,.6), 0 3px 0 #d98025; }
.primary-button span { margin-left: 10px; }

.mascot-stage { position: relative; display: grid; place-items: end center; min-height: 410px; }
.mascot-button { position: relative; z-index: 2; width: min(390px, 90%); border: 0; background: transparent; cursor: pointer; filter: drop-shadow(0 18px 20px rgba(30,74,44,.23)); animation: mascotFloat 3s ease-in-out infinite; }
.mascot-button img { width: 100%; max-height: 410px; object-fit: contain; }
.mascot-button:active { transform: scale(.96); }
.mascot-speech {
  position: absolute;
  z-index: 4;
  top: 0;
  right: 0;
  width: 245px;
  padding: 16px 18px;
  border: 4px solid #83ca6a;
  border-radius: 24px 24px 24px 7px;
  background: white;
  box-shadow: var(--soft-shadow);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.5;
  word-break: keep-all;
}
.spark { position: absolute; color: #ffcf31; font-size: 28px; animation: twinkle 1.8s ease-in-out infinite; }
.spark-one { top: 25%; left: 4%; }.spark-two { top: 17%; right: 2%; animation-delay: .6s; }.spark-three { bottom: 18%; right: 4%; animation-delay: 1.1s; }

.door-section { position: relative; z-index: 5; margin: 0 30px 30px; padding: 28px; border-radius: 32px; background: rgba(255,255,255,.92); box-shadow: var(--soft-shadow); }
.section-heading { text-align: center; margin: 0 auto 24px; }
.section-heading.compact { display: flex; align-items: end; justify-content: space-between; text-align: left; gap: 16px; }
.section-heading span { display: block; margin-bottom: 5px; color: #6a8a78; font-size: 13px; font-weight: 900; }
.section-heading h2 { margin: 0; font-size: clamp(27px, 4vw, 39px); letter-spacing: -.05em; }
.door-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.door-card {
  min-height: 182px;
  border: 0;
  border-radius: 26px;
  padding: 22px 16px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: white;
  text-align: center;
  cursor: pointer;
  box-shadow: inset 0 4px 0 rgba(255,255,255,.35), 0 8px 0 rgba(44,84,55,.19), 0 14px 22px rgba(50,83,61,.13);
  transition: .2s ease;
}
.door-card:hover { transform: translateY(-6px) rotate(-1deg); }
.door-card:active { transform: translateY(3px); box-shadow: inset 0 3px 0 rgba(255,255,255,.3), 0 3px 0 rgba(44,84,55,.19); }
.door-card.green { background: linear-gradient(145deg, #67d16d, #2cae61); }
.door-card.blue { background: linear-gradient(145deg, #70d3f0, #3a9ed8); }
.door-card.orange { background: linear-gradient(145deg, #ffc456, #ff9239); }
.door-card.purple { background: linear-gradient(145deg, #c27ae8, #8c54d1); }
.door-icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 20px; background: rgba(255,255,255,.93); font-size: 31px; box-shadow: 0 8px 16px rgba(44,61,50,.15); }
.door-card b { display: block; font-size: 18px; text-shadow: 0 2px 0 rgba(39,69,49,.18); }
.door-card small { display: block; margin-top: 5px; font-size: 11px; opacity: .94; }
.door-card i { padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.21); font-size: 11px; font-style: normal; font-weight: 900; }

.themed-page { overflow: hidden; border: 4px solid rgba(255,255,255,.95); border-radius: 40px; background: var(--paper); box-shadow: var(--shadow); }
.page-hero { position: relative; min-height: 335px; padding: 64px 64px 46px; overflow: hidden; isolation: isolate; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(255,255,255,.96), rgba(255,255,255,.55) 58%, rgba(255,255,255,.1)); }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -3; background: url("assets/jeongseon-world.png") center/cover; }
.back-button { border: 0; padding: 9px 13px; border-radius: 999px; background: rgba(255,255,255,.78); box-shadow: 0 5px 14px rgba(54,86,67,.12); font-size: 12px; font-weight: 900; cursor: pointer; }
.page-hero-copy { margin-top: 28px; max-width: 690px; }
.page-kicker { display: inline-block; margin-bottom: 8px; font-size: 13px; font-weight: 900; color: #47725b; }
.page-hero h1 { margin: 0; font-size: clamp(44px, 6vw, 68px); line-height: 1.05; letter-spacing: -.07em; }
.page-hero h1 em { color: var(--green-dark); font-style: normal; }
.page-hero p { max-width: 650px; margin: 17px 0 0; font-size: 17px; line-height: 1.65; font-weight: 800; color: #587065; word-break: keep-all; }
.content-wrap { padding: 42px 44px 55px; }

.arirang-hero { background: linear-gradient(135deg, rgba(255,240,212,.75), rgba(255,255,255,.25)); }
.arirang-hero h1 em { color: #e96a4b; }
.hero-sticker { position: absolute; right: 8%; top: 88px; width: 200px; height: 200px; display: grid; place-items: center; border: 8px solid white; border-radius: 50%; background: linear-gradient(145deg, #ffcc5a, #ff7d5f); box-shadow: var(--shadow); color: white; font-size: 25px; font-weight: 1000; transform: rotate(7deg); }
.hero-sticker span { display: block; position: absolute; bottom: 36px; right: 31px; font-size: 35px; }
.fact-bubbles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-bottom: 36px; }
.fact-bubbles article { display: flex; gap: 13px; padding: 22px; border: 2px solid #f1e1ca; border-radius: 24px; background: #fffaf2; }
.fact-bubbles article > span { display: grid; place-items: center; flex: 0 0 48px; height: 48px; border-radius: 16px; background: white; font-size: 27px; box-shadow: 0 5px 14px rgba(111,80,45,.11); }
.fact-bubbles b { display: block; margin: 2px 0 8px; font-size: 17px; }
.fact-bubbles p { margin: 0; color: #65746c; line-height: 1.55; font-size: 13px; font-weight: 700; word-break: keep-all; }
.music-room { display: grid; grid-template-columns: .82fr 1.18fr; gap: 28px; padding: 25px; border-radius: 32px; background: linear-gradient(145deg, #f7eee2, #fffdf7); border: 2px solid #f0dfcc; }
.music-photo { position: relative; min-height: 470px; overflow: hidden; border-radius: 25px; }
.music-photo img { width: 100%; height: 100%; object-fit: cover; }
.music-photo::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgba(67,33,22,.8)); }
.music-photo span { position: absolute; z-index: 2; left: 20px; right: 20px; bottom: 20px; color: white; font-weight: 1000; font-size: 17px; }
.music-console { padding: 12px 5px; }
.music-console h2 { margin: 0; font-size: 34px; letter-spacing: -.05em; }
.music-console > p { color: #728077; line-height: 1.55; font-size: 13px; font-weight: 700; }
.track-list { display: grid; grid-template-columns: 1fr; gap: 9px; margin: 18px 0; }
.track-button { position: relative; display: grid; grid-template-columns: 36px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; border: 2px solid #eed8c3; border-radius: 16px; padding: 11px 12px; background: white; text-align: left; cursor: pointer; transition: .18s ease; }
.track-button:hover, .track-button.is-active { border-color: #ff916e; background: #fff4ee; transform: translateY(-2px); }
.track-button span { grid-row: 1 / 3; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 12px; background: #ffb466; color: #704015; font-weight: 1000; }
.track-button b { font-size: 13px; }.track-button small { color: #7b857f; font-size: 10px; font-weight: 800; }
.now-playing { display: flex; align-items: center; gap: 10px; margin: 14px 0 8px; padding: 11px 13px; border-radius: 15px; background: #fff0dc; }
.now-playing > span { font-size: 25px; }.now-playing small, .now-playing b { display: block; }.now-playing small { color: #92735b; font-size: 10px; }.now-playing b { margin-top: 2px; font-size: 13px; }
#arirangPlayer { width: 100%; height: 40px; }
.tiny-note { margin-top: 9px !important; font-size: 10px !important; color: #8e948f !important; }
.say-along { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 26px; padding: 21px; border-radius: 24px; background: linear-gradient(90deg, #fff0c8, #fff8e7); border: 3px dashed #ffc45e; text-align: center; }
.say-along > span { font-size: 38px; }.say-along small, .say-along b { display: block; }.say-along small { color: #9c7631; font-size: 11px; }.say-along b { margin-top: 4px; font-size: 24px; color: #674314; }

.library-hero { background: linear-gradient(135deg, rgba(218,246,255,.75), rgba(255,255,255,.2)); }
.library-hero h1 em { color: var(--blue-dark); }
.library-building { position: absolute; right: 8%; bottom: 32px; width: 235px; height: 205px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 9px solid white; border-radius: 38px 38px 22px 22px; background: linear-gradient(180deg, #79d9f3 0 37%, #fff6d6 38%); box-shadow: var(--shadow); transform: rotate(2deg); }
.library-building::before { content: ""; position: absolute; left: -15px; right: -15px; top: 62px; height: 25px; border-radius: 9px; background: #ff9146; box-shadow: inset 0 5px 0 #ffc170; }
.library-building span { position: relative; z-index: 2; font-size: 52px; }.library-building b { position: relative; z-index: 2; margin-top: 12px; font-size: 16px; }.library-building i { position: absolute; top: 12px; right: 14px; padding: 6px 9px; border-radius: 999px; background: #fff9d5; color: #d57835; font-size: 10px; font-style: normal; font-weight: 900; }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.service-grid article { min-height: 195px; padding: 26px 20px; border-radius: 25px; background: white; border: 2px solid #dcecf3; box-shadow: 0 10px 20px rgba(50,104,132,.08); text-align: center; }
.service-grid article:nth-child(2n) { transform: translateY(10px); }
.service-grid span { display: grid; place-items: center; width: 63px; height: 63px; margin: 0 auto 15px; border-radius: 21px; background: #e5f7ff; font-size: 32px; }
.service-grid b { display: block; font-size: 18px; }.service-grid p { margin: 9px 0 0; color: #6b7b73; line-height: 1.55; font-size: 13px; font-weight: 700; }
.library-tour { display: grid; grid-template-columns: .78fr 1.22fr; gap: 35px; align-items: center; margin: 54px 0 32px; padding: 30px; border-radius: 32px; background: #edf9ff; border: 2px solid #d6edf7; }
.shelf-illustration { position: relative; height: 290px; border-radius: 25px; background: linear-gradient(180deg, #c8edfa 0 58%, #8bd49d 59%); overflow: hidden; }
.shelf-illustration::before, .shelf-illustration::after { content: ""; position: absolute; left: 32px; right: 32px; height: 15px; border-radius: 8px; background: #b6713c; box-shadow: 0 8px 0 rgba(94,53,22,.12); }
.shelf-illustration::before { top: 115px; }.shelf-illustration::after { top: 220px; }
.book { position: absolute; bottom: 175px; width: 35px; border-radius: 7px 7px 2px 2px; box-shadow: inset -5px 0 rgba(0,0,0,.08); }
.b1 { left: 50px; height: 75px; background: #ff7f66; }.b2 { left: 89px; height: 92px; background: #ffca4b; }.b3 { left: 128px; height: 66px; background: #66c77a; }.b4 { left: 168px; height: 86px; background: #6ebbe7; }.b5 { left: 208px; height: 58px; background: #b96eda; }
.shelf-illustration i { position: absolute; z-index: 2; right: 26px; bottom: 30px; font-style: normal; font-size: 72px; transform: rotate(-7deg); }
.library-tour h2 { margin: 2px 0 20px; font-size: 32px; letter-spacing: -.05em; }
.library-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.library-steps li { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 17px; background: white; }
.library-steps li > span { display: grid; place-items: center; flex: 0 0 38px; height: 38px; border-radius: 14px; background: #5ebde8; color: white; font-weight: 1000; }
.library-steps b, .library-steps small { display: block; }.library-steps b { font-size: 14px; }.library-steps small { margin-top: 3px; color: #71827a; font-size: 11px; font-weight: 700; }
.library-info { display: grid; grid-template-columns: 1.3fr .8fr auto; gap: 12px; align-items: center; padding: 19px; border-radius: 23px; background: #316e91; color: white; }
.library-info > div { display: flex; gap: 10px; align-items: center; }.library-info > div > span { font-size: 25px; }.library-info small, .library-info b { display: block; }.library-info small { color: #c8e8f6; font-size: 10px; }.library-info b { margin-top: 2px; font-size: 12px; }
.library-info a { padding: 11px 14px; border-radius: 14px; background: white; color: #276586; text-decoration: none; font-size: 12px; font-weight: 1000; }

.places-hero { background: linear-gradient(135deg, rgba(255,240,206,.7), rgba(255,255,255,.15)); }
.places-hero h1 em { color: #e6782f; }
.postcard-stack { position: absolute; right: 8%; bottom: 52px; width: 280px; height: 190px; }
.postcard-stack span { position: absolute; display: grid; place-items: end center; width: 170px; height: 128px; padding: 12px; border: 8px solid white; border-bottom-width: 29px; background-size: cover; background-position: center; box-shadow: var(--soft-shadow); color: #4a463b; font-size: 12px; font-weight: 1000; }
.postcard-stack span:nth-child(1) { left: 0; top: 25px; background-image: url("assets/photos/donggang.jpg"); transform: rotate(-10deg); }
.postcard-stack span:nth-child(2) { left: 57px; top: 0; background-image: url("assets/photos/auraji.jpg"); transform: rotate(3deg); }
.postcard-stack span:nth-child(3) { right: 0; top: 38px; background-image: url("assets/photos/cave.jpg"); transform: rotate(11deg); }
.place-filter { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.place-filter button { border: 2px solid #e2e8e3; border-radius: 999px; padding: 11px 17px; background: white; font-size: 12px; font-weight: 1000; cursor: pointer; transition: .18s ease; }
.place-filter button:hover, .place-filter button.is-active { border-color: #ffad43; background: #fff2d9; color: #a75f18; transform: translateY(-2px); }
.place-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.place-card { overflow: hidden; border: 2px solid #e7e8df; border-radius: 25px; background: white; box-shadow: 0 10px 24px rgba(57,79,59,.09); transition: .2s ease; }
.place-card:hover { transform: translateY(-5px); box-shadow: 0 17px 32px rgba(57,79,59,.16); }
.place-card img { width: 100%; height: 190px; object-fit: cover; }
.place-card-body { position: relative; padding: 20px; }
.place-card-tag { display: inline-block; margin-bottom: 8px; padding: 6px 9px; border-radius: 999px; font-size: 10px; font-weight: 1000; }
.place-card[data-kind="nature"] .place-card-tag { color: #217243; background: #e4f7e9; }
.place-card[data-kind="tradition"] .place-card-tag { color: #a25524; background: #fff0df; }
.place-card[data-kind="sight"] .place-card-tag { color: #405aba; background: #e9edff; }
.place-card h2 { margin: 0 0 8px; font-size: 20px; letter-spacing: -.04em; }.place-card p { margin: 0; color: #69776f; font-size: 13px; line-height: 1.6; font-weight: 700; word-break: keep-all; }

.story-hero { background: linear-gradient(135deg, rgba(244,228,255,.72), rgba(255,255,255,.14)); }
.story-hero h1 em { color: #8e52c8; }
.open-book { position: absolute; right: 8%; bottom: 47px; width: 260px; height: 190px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.72); box-shadow: var(--shadow); font-size: 92px; transform: rotate(2deg); }
.open-book span { position: absolute; bottom: 18px; padding: 8px 13px; border-radius: 999px; background: #8e52c8; color: white; font-size: 11px; font-weight: 900; }
.storybook { display: grid; grid-template-columns: .9fr 1.1fr; min-height: 500px; overflow: hidden; border: 3px solid #ecdffc; border-radius: 34px; background: #fffdfc; box-shadow: var(--soft-shadow); }
.storybook-visual { min-height: 500px; background-position: center; background-size: cover; transition: .25s ease; }
.storybook-copy { display: flex; flex-direction: column; padding: 48px 45px 35px; }
.chapter-label { align-self: flex-start; padding: 8px 12px; border-radius: 999px; background: #f1e3ff; color: #7c45b4; font-size: 12px; font-weight: 1000; }
.storybook-copy h2 { margin: 18px 0 16px; font-size: clamp(31px, 4.5vw, 45px); line-height: 1.15; letter-spacing: -.06em; }
.storybook-copy > p { margin: 0; min-height: 165px; color: #5d6e65; font-size: 17px; line-height: 1.85; font-weight: 700; word-break: keep-all; }
.story-question { margin-top: 18px; padding: 15px 17px; border-radius: 17px; background: #fff4ce; color: #7b5e20; font-size: 13px; font-weight: 900; line-height: 1.5; }
.story-controls { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; margin-top: auto; padding-top: 22px; }
.story-controls > button { border: 0; border-radius: 15px; padding: 11px 14px; background: #8f5cc2; color: white; font-size: 12px; font-weight: 1000; cursor: pointer; }
.story-controls > button:disabled { opacity: .35; cursor: default; }
.story-dots { display: flex; justify-content: center; gap: 8px; }
.story-dot { width: 13px; height: 13px; border: 0; border-radius: 50%; background: #d8c9e7; cursor: pointer; padding: 0; }
.story-dot.is-active { width: 31px; border-radius: 999px; background: #9a62cf; }
.adventure-book { margin-top: 34px; padding: 34px; border: 3px solid #dfe9d4; border-radius: 34px; background: linear-gradient(145deg, #fffef8, #f5fbef); box-shadow: var(--soft-shadow); }
.adventure-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.book-kicker { display: inline-block; margin-bottom: 8px; padding: 7px 11px; border-radius: 999px; background: #e5f5d9; color: #3f7d39; font-size: 11px; font-weight: 1000; }
.adventure-heading h2 { margin: 0 0 8px; color: #3c513d; font-size: clamp(31px, 4vw, 43px); letter-spacing: -.06em; }
.adventure-heading p { margin: 0; color: #68786c; font-size: 14px; line-height: 1.7; font-weight: 800; word-break: keep-all; }
.book-badge { flex: 0 0 auto; padding: 14px 18px; border: 2px solid #fff; border-radius: 20px; background: #8d62bc; color: #efe5fa; box-shadow: 0 8px 20px rgba(88,57,122,.18); text-align: center; font-size: 10px; line-height: 1.45; font-weight: 800; transform: rotate(2deg); }
.book-badge b { display: block; color: white; font-size: 14px; }
.adventure-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.adventure-card { position: relative; min-height: 245px; overflow: hidden; padding: 25px 20px 20px; border: 2px solid rgba(255,255,255,.92); border-radius: 25px; box-shadow: 0 10px 24px rgba(65,78,57,.1); }
.adventure-card::after { content: ''; position: absolute; right: -24px; bottom: -24px; width: 90px; height: 90px; border-radius: 50%; background: rgba(255,255,255,.38); }
.adventure-card.green { background: #e5f7df; }.adventure-card.blue { background: #e2f3ff; }.adventure-card.yellow { background: #fff4c9; }
.adventure-card.orange { background: #ffe8d2; }.adventure-card.purple { background: #eee4ff; }.adventure-card.pink { background: #ffe4ea; }
.adventure-number { position: absolute; top: 13px; right: 15px; width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.9); color: #665577; font-size: 12px; font-weight: 1000; }
.adventure-icon { display: grid; place-items: center; width: 61px; height: 61px; margin-bottom: 15px; border-radius: 19px; background: rgba(255,255,255,.76); font-size: 31px; transform: rotate(-3deg); }
.adventure-card:nth-child(even) .adventure-icon { transform: rotate(3deg); }
.adventure-card h3 { position: relative; z-index: 1; margin: 0 0 9px; color: #3e4e43; font-size: 20px; letter-spacing: -.04em; }
.adventure-card p { position: relative; z-index: 1; margin: 0; color: #5c6c62; font-size: 12px; line-height: 1.7; font-weight: 750; word-break: keep-all; }
.adventure-finish { display: flex; align-items: center; gap: 16px; margin-top: 18px; padding: 18px 21px; border-radius: 22px; background: #415e48; color: white; }
.adventure-finish > span { flex: 0 0 auto; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 17px; background: rgba(255,255,255,.13); font-size: 28px; }
.adventure-finish b { display: block; margin-bottom: 4px; color: #d8f5ca; font-size: 13px; }
.adventure-finish p { margin: 0; font-size: 12px; line-height: 1.55; font-weight: 750; word-break: keep-all; }
.book-source-note { margin: 14px 4px 0; color: #758278; font-size: 10px; line-height: 1.55; font-weight: 700; word-break: keep-all; }
.closing-card { display: flex; align-items: center; gap: 22px; margin-top: 28px; padding: 23px 28px; border-radius: 28px; background: linear-gradient(135deg, #e9f8df, #fff3c9); border: 3px dashed #9bd279; }
.closing-card img { width: 125px; height: 125px; object-fit: contain; }.closing-card small, .closing-card b { display: block; }.closing-card small { color: #5e8d49; font-size: 11px; font-weight: 900; }.closing-card b { margin: 5px 0 13px; font-size: 18px; line-height: 1.45; }.closing-card button { border: 0; border-radius: 14px; padding: 10px 13px; background: #65bd62; color: white; font-size: 11px; font-weight: 1000; cursor: pointer; }

footer { display: flex; justify-content: space-between; gap: 20px; padding: 24px 10px 95px; color: #61746a; font-size: 11px; font-weight: 700; }
footer p { margin: 0; }
.mobile-nav { display: none; }

button:focus-visible, a:focus-visible { outline: 4px solid #ffcf43; outline-offset: 3px; }

@keyframes pageIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes mascotFloat { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-11px) rotate(1deg); } }
@keyframes twinkle { 0%,100% { transform: scale(.75) rotate(-8deg); opacity: .35; } 50% { transform: scale(1.2) rotate(8deg); opacity: 1; } }

@media (max-width: 980px) {
  .desktop-nav button { padding: 10px 8px; font-size: 11px; }
  .desktop-nav span { display: none; }
  .home-hero { grid-template-columns: 1fr .75fr; padding: 60px 38px 18px; }
  .mascot-speech { width: 205px; right: -10px; }
  .door-grid { grid-template-columns: repeat(2, 1fr); }
  .fact-bubbles { grid-template-columns: 1fr; }
  .music-room { grid-template-columns: .8fr 1.2fr; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .place-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-sticker, .library-building, .postcard-stack, .open-book { right: 3%; transform: scale(.8); transform-origin: right center; }
}

@media (max-width: 720px) {
  body { padding-bottom: 78px; }
  .app-shell { width: min(100% - 16px, 680px); }
  .topbar { position: relative; top: 0; margin: 8px 0 12px; padding: 8px 12px; border-radius: 19px; }
  .desktop-nav { display: none; }
  .brand-mark { width: 39px; height: 39px; border-radius: 13px; }
  .brand b { font-size: 18px; }.brand small { font-size: 9px; }
  .home-page, .themed-page { border-width: 3px; border-radius: 27px; }
  .home-page { background: linear-gradient(180deg, rgba(250,255,246,.96) 0 54%, rgba(247,255,244,.28) 78%), url("assets/jeongseon-world.png") center/cover; }
  .home-hero { display: flex; flex-direction: column; min-height: 0; padding: 38px 22px 5px; }
  .hero-copy { text-align: center; }
  .hero-copy h1 { font-size: 45px; }
  .hero-copy p { margin: 16px auto 22px; font-size: 14px; line-height: 1.65; }
  .mascot-stage { min-height: 300px; margin-top: 15px; }
  .mascot-button { width: 265px; }
  .mascot-button img { max-height: 290px; }
  .mascot-speech { top: 10px; right: 2%; width: 170px; padding: 12px; border-width: 3px; border-radius: 18px 18px 18px 6px; font-size: 10px; }
  .door-section { margin: 0 10px 12px; padding: 18px 13px; border-radius: 23px; }
  .section-heading.compact { display: block; text-align: center; }.section-heading h2 { font-size: 27px; }
  .door-grid { gap: 9px; }
  .door-card { min-height: 155px; border-radius: 20px; padding: 15px 8px; }
  .door-icon { width: 48px; height: 48px; border-radius: 16px; font-size: 25px; }
  .door-card b { font-size: 14px; }.door-card small { font-size: 9px; }
  .page-hero { min-height: 305px; padding: 28px 23px 35px; }
  .page-hero::after { background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.79) 75%, rgba(255,255,255,.45)); }
  .page-hero-copy { margin-top: 35px; text-align: center; }
  .page-hero h1 { font-size: 42px; }
  .page-hero p { font-size: 14px; }
  .page-kicker { font-size: 11px; }
  .hero-sticker, .library-building, .postcard-stack, .open-book { display: none; }
  .content-wrap { padding: 25px 16px 36px; }
  .fact-bubbles article { padding: 17px; }
  .music-room { grid-template-columns: 1fr; padding: 14px; }
  .music-photo { min-height: 270px; }
  .music-console { padding: 10px 3px; }
  .music-console h2 { font-size: 28px; }
  .track-list { grid-template-columns: 1fr; }
  .say-along b { font-size: 18px; }
  .service-grid { gap: 9px; }
  .service-grid article { min-height: 180px; padding: 20px 12px; }
  .service-grid article:nth-child(2n) { transform: none; }
  .service-grid span { width: 52px; height: 52px; font-size: 27px; }
  .service-grid b { font-size: 15px; }.service-grid p { font-size: 11px; }
  .library-tour { grid-template-columns: 1fr; margin: 35px 0 22px; padding: 16px; }
  .shelf-illustration { height: 235px; }
  .library-tour h2 { font-size: 27px; }
  .library-info { grid-template-columns: 1fr; }
  .library-info a { text-align: center; }
  .place-filter { position: sticky; top: 8px; z-index: 5; padding: 7px; border-radius: 17px; background: rgba(255,255,255,.9); box-shadow: var(--soft-shadow); }
  .place-filter button { padding: 9px 11px; font-size: 10px; }
  .place-grid { grid-template-columns: 1fr; gap: 13px; }
  .place-card { display: grid; grid-template-columns: 42% 58%; min-height: 155px; }
  .place-card img { height: 100%; min-height: 155px; }
  .place-card-body { padding: 15px; }
  .place-card h2 { font-size: 17px; }.place-card p { font-size: 11px; }
  .storybook { grid-template-columns: 1fr; }
  .storybook-visual { min-height: 285px; }
  .storybook-copy { padding: 26px 22px 24px; }
  .storybook-copy h2 { font-size: 31px; }
  .storybook-copy > p { min-height: 0; font-size: 14px; }
  .story-controls { grid-template-columns: auto 1fr auto; }
  .story-controls > button { padding: 10px; font-size: 10px; }
  .adventure-book { margin-top: 22px; padding: 21px 15px; border-radius: 26px; }
  .adventure-heading { align-items: flex-start; gap: 12px; }
  .adventure-heading h2 { font-size: 28px; }
  .adventure-heading p { font-size: 12px; }
  .book-badge { padding: 10px 11px; border-radius: 16px; font-size: 8px; }
  .book-badge b { font-size: 11px; }
  .adventure-grid { grid-template-columns: 1fr; gap: 10px; }
  .adventure-card { min-height: 0; padding: 18px 18px 18px 88px; }
  .adventure-icon { position: absolute; top: 19px; left: 16px; width: 56px; height: 56px; margin: 0; }
  .adventure-card h3 { font-size: 17px; }
  .adventure-card p { font-size: 11px; }
  .adventure-finish { padding: 15px; }
  .closing-card { padding: 16px; gap: 12px; }
  .closing-card img { width: 85px; height: 85px; }.closing-card b { font-size: 14px; }
  footer { display: block; text-align: center; padding-bottom: 15px; line-height: 1.6; }
  .mobile-nav { position: fixed; z-index: 90; left: 9px; right: 9px; bottom: 8px; display: grid; grid-template-columns: repeat(5, 1fr); padding: 7px; border: 2px solid rgba(255,255,255,.95); border-radius: 22px; background: rgba(255,255,255,.92); box-shadow: 0 12px 32px rgba(29,62,42,.25); backdrop-filter: blur(13px); }
  .mobile-nav button { border: 0; border-radius: 15px; padding: 7px 2px 5px; background: transparent; color: #65766d; font-size: 9px; font-weight: 900; cursor: pointer; }
  .mobile-nav button span { display: block; margin-bottom: 2px; font-size: 19px; }
  .mobile-nav button.is-active { background: #eaf8e6; color: #277043; }
}

@media (max-width: 430px) {
  .hero-copy h1 { font-size: 38px; }
  .door-card { min-height: 145px; }
  .page-hero h1 { font-size: 35px; }
  .content-wrap { padding-left: 12px; padding-right: 12px; }
  .place-card { grid-template-columns: 40% 60%; }
  .place-card-body { padding: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
