:root { color-scheme: light; --ink: #243f38; --muted: #64736c; --green: #356b56; --line: #e0e5dc; --paper: #fffefa; }
* { box-sizing: border-box; }
body { margin: 0; background: #f7f8f3; color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif; font-size: 16px; line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere; }
button, select { font: inherit; }
button, a, select, summary { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
svg { display: block; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #b37926; outline-offset: 5px; }
.skip-link { position: absolute; top: -80px; left: 24px; z-index: 3; padding: 12px 20px; background: var(--ink); color: white; border-radius: 8px; }
.skip-link:focus { top: 10px; }
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 88px; padding: 16px max(28px, calc((100% - 1120px) / 2)); background: var(--paper); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; font-size: 24px; font-weight: 800; letter-spacing: -1px; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 13px; background: #e5eee2; color: var(--green); }
.brand-mark svg { width: 26px; height: 26px; }
.brand-subtitle { margin-left: 13px; padding-left: 23px; border-left: 1px solid var(--line); font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.header-back { font-size: 13px; color: #59665e; border: 1px solid var(--line); border-radius: 9px; padding: 9px 14px; white-space: nowrap; }
.header-back span { margin-left: 12px; }
.header-back:hover { background: #eef2e9; }
.game-main { width: min(1120px, calc(100% - 56px)); margin: 0 auto; }
.journey { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 25px 0; margin-bottom: 8px; font-size: 13px; }
.journey ol { display: flex; align-items: center; gap: 26px; margin: 0; padding: 0; list-style: none; }
.journey li { position: relative; color: #778277; }
.journey li + li::before { position: absolute; left: -16px; top: 4px; content: '›'; color: #a4ada0; }
.journey a, .journey .step-label { display: flex; align-items: center; gap: 7px; min-height: 28px; }
.journey a > span, .step-label > span { display: inline-grid; width: 24px; height: 24px; place-items: center; border: 1px solid #d3dbcd; border-radius: 50%; background: #f0f2ea; font-size: 11px; }
.journey [aria-current] { color: var(--green); font-weight: 700; }
.journey [aria-current] a > span, .journey [aria-current] .step-label > span { color: white; background: var(--green); border-color: var(--green); }
.collected { display: flex; align-items: center; gap: 7px; color: #697461; font-size: 12px; white-space: nowrap; }
.collected svg { width: 18px; height: 18px; color: #bf9142; }
.collected b { color: var(--green); margin-left: 3px; font-size: 15px; }
.welcome-panel { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 254px; padding: 35px 50px; border: 1px solid #d8e1d3; border-radius: 22px; background: #eaf0e2; overflow: hidden; }
.welcome-panel::after { content: ''; position: absolute; width: 310px; height: 310px; right: 5px; bottom: -140px; border: 1px solid #d4dfcd; border-radius: 50%; box-shadow: 0 0 0 30px #e2eadb, 0 0 0 31px #dbe4d3; }
.welcome-copy { position: relative; z-index: 1; }
.eyebrow { display: block; color: #57705e; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; }
.welcome-copy .eyebrow { display: flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .6px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #5f8865; }
h1, h2, h3, p { margin-top: 0; }
.welcome-copy h1 { margin: 14px 0 12px; font-size: clamp(24px, 3vw, 34px); line-height: 1.5; font-weight: 750; letter-spacing: -1.4px; }
.welcome-copy p { margin: 0; font-size: 14px; color: #65725f; }
.mobile-break { display: none; }
.welcome-character { position: relative; display: flex; flex-direction: column; align-items: center; width: 230px; padding-top: 16px; z-index: 1; flex-shrink: 0; }
.welcome-character svg { width: 180px; height: 180px; transform: rotate(3deg); }
.character-note { position: absolute; top: 0; left: 0; padding: 7px 14px; border: 1px solid #d7decb; border-radius: 12px 12px 3px 12px; font-size: 12px; background: #fffdf3; transform: rotate(-7deg); }
.character-label { font-size: 10px; color: #6d7b65; letter-spacing: .8px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin: 32px 0 19px; }
.section-heading h2 { margin: 5px 0 0; font-size: 23px; line-height: 1.5; letter-spacing: -.7px; }
.section-heading > p { margin: 0 0 4px; color: var(--muted); font-size: 13px; }
.interest-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.mint { --tint: #e7f1e7; --accent: #659579; }
.peach { --tint: #fbecdf; --accent: #c4956e; }
.blue { --tint: #e6eef5; --accent: #7b9db8; }
.lavender { --tint: #eee9f5; --accent: #a490bf; }
.yellow { --tint: #f8f0d9; --accent: #bda252; }
.pink { --tint: #f6e9e9; --accent: #be9397; }
.sage { --tint: #eaf0df; --accent: #8ca366; }
.aqua { --tint: #e3f0ec; --accent: #76a8a4; }
.interest-card { position: relative; min-height: 200px; padding: 17px 22px 21px; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.interest-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 8px 16px #2844380a; }
.card-number { position: absolute; right: 18px; top: 14px; color: #8d968b; font-size: 10px; letter-spacing: 1px; }
.interest-icon { display: grid; place-items: center; width: 77px; height: 77px; margin-bottom: 13px; border-radius: 22px; background: var(--tint); }
.interest-icon svg { width: 63px; height: 63px; }
.interest-card h3 { margin: 0 0 3px; font-size: 18px; font-weight: 750; letter-spacing: -.6px; }
.interest-card p { margin: 0; padding-right: 8px; font-size: 12px; color: var(--muted); }
.card-arrow { position: absolute; top: 105px; right: 22px; font-size: 19px; color: #8b988a; }
.gentle-tip { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 27px 0; padding: 14px 20px; border: 1px dashed #d9dfd1; border-radius: 12px; background: #f0f3e9; color: #68765e; }
.gentle-tip .tip-spark { width: 20px; height: 20px; color: #aa9453; }
.gentle-tip p { margin: 0; font-size: 12px; }
.gentle-tip strong { font-weight: 600; }
.gentle-tip svg { width: 44px; height: 44px; flex-shrink: 0; }
.game-footer { display: flex; align-items: center; gap: 16px; margin: 30px 0 20px; padding-top: 19px; border-top: 1px solid var(--line); color: #7b8476; font-size: 11px; }
.game-footer > span:first-child { font-weight: 700; color: #5e6f5e; }
.game-footer p { margin: 0; }
.footer-dots { margin-left: auto; color: #97b09b; font-size: 8px; letter-spacing: 5px; }
.text-back { display: inline-flex; align-items: center; min-height: 44px; margin: 0 0 2px; font-size: 13px; color: #5b7162; }
.text-back:hover, .text-button:hover { color: #234e38; text-decoration: underline; text-underline-offset: 4px; }
.situation-heading { margin: 12px 0 30px; }
.section-heading h1 { font-size: clamp(25px, 3vw, 32px); line-height: 1.5; letter-spacing: -1px; margin: 12px 0 8px; }
.section-heading div > p { color: var(--muted); font-size: 14px; margin-bottom: 0; }
.topic-label { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 7px; border-radius: 8px; background: var(--tint); font-size: 12px; font-weight: 600; }
.topic-label svg { width: 27px; height: 27px; }
.situation-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.situation-card { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); transition: transform .18s, border-color .18s; }
.situation-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.scene-preview { padding: 12px; background: var(--tint); }
.story-scene { width: 100%; height: auto; }
.situation-copy { position: relative; padding: 22px 22px 25px; }
.situation-copy h2 { font-size: 21px; margin: 8px 35px 6px 0; letter-spacing: -.6px; }
.situation-copy p { margin: 0; color: var(--muted); font-size: 12px; }
.round-arrow { position: absolute; top: 52px; right: 20px; display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid #d7dfd1; border-radius: 50%; color: #5e765e; }
.mission-heading { margin: 11px 0 24px; }
.mission-heading h1 { margin: 5px 0 0; }
.level-badge { padding: 6px 12px; border: 1px solid #d6dfcd; background: #edf2e6; border-radius: 7px; color: #5c735b; font-size: 12px; white-space: nowrap; }
.mission-grid { display: grid; grid-template-columns: 1.06fr 1fr; align-items: start; gap: 24px; }
.picture-panel { padding: 23px 24px 0; border: 1px solid #dbe2d5; border-radius: 18px; background: #edf2e7; }
.picture-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.picture-heading > span:last-child { color: #8ca184; font-size: 12px; }
.picture-panel .story-scene { border-radius: 12px; }
.picture-question { margin: 0; padding: 25px 8px; text-align: center; font-size: 18px; font-weight: 650; }
.sentence-panel { padding: 27px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.sentence-panel h2 { font-size: 23px; letter-spacing: -.7px; margin: 8px 0 5px; }
.activity-description { color: var(--muted); margin-bottom: 25px; font-size: 13px; }
.sentence-slots { display: flex; flex-wrap: wrap; gap: 9px; min-height: 78px; list-style: none; margin: 0; padding: 0; }
.sentence-slots li { display: flex; flex: 1 1 95px; max-width: 170px; min-width: 0; }
.empty-slot, .chosen-word { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 3px; width: 100%; min-height: 76px; border: 1.5px dashed #c9d3c0; border-radius: 9px; background: #f6f7f0; color: #71806a; font-size: 12px; text-align: center; padding: 8px; }
.empty-slot small { color: #8a9682; font-size: 10px; }
.chosen-word { border: 1.5px solid #829f7e; background: #e9f0df; color: #334e37; font-size: 19px; }
.word-part { color: #a25231; font-weight: 800; }
.slot-tip { margin: 8px 0 22px; color: #73806a; font-size: 11px; }
.word-bank { display: flex; flex-wrap: wrap; gap: 10px; min-height: 60px; }
.word-card { padding: 11px 15px; min-height: 52px; border: 1px solid #d9dece; border-bottom: 3px solid #cbd3bf; border-radius: 9px; background: #fff; color: #354d3e; font-size: 19px; transition: background .15s; }
.word-card:not(:disabled):hover { background: #f0f4e8; border-color: #92aa82; }
.word-card:disabled { opacity: .35; border-style: dashed; }
.sentence-tools { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.text-button { padding: 8px 0; min-height: 44px; border: 0; background: transparent; color: #5c705c; font-size: 12px; }
.text-button:disabled { opacity: .4; }
.sentence-hint { margin: 6px 0; padding: 12px 15px; border-radius: 8px; background: #faf2dd; font-size: 13px; color: #7c6237; }
.sentence-hint strong { display: block; margin-top: 3px; }
.mission-feedback { min-height: 28px; margin: 10px 0 14px; font-size: 13px; color: #547341; }
.primary-button { display: flex; justify-content: center; align-items: center; gap: 12px; min-height: 52px; padding: 13px 21px; border: 1px solid var(--green); border-radius: 10px; background: var(--green); color: #fff; font-size: 15px; font-weight: 650; text-align: center; }
.primary-button:hover { background: #285640; }
.sentence-panel > .primary-button { width: 100%; }
.primary-button:disabled { color: #7a8870; border-color: #e0e6d6; background: #e0e6d6; }
.completion-panel { display: flex; align-items: center; gap: 24px; margin-top: 24px; padding: 20px 28px; border: 1px solid #c9dabc; border-radius: 18px; background: #e9f0df; }
.completion-panel > svg { width: 100px; height: 100px; flex-shrink: 0; }
.completion-panel h2 { font-size: 23px; margin: 6px 0; }
.completion-panel p { margin: 0; font-size: 13px; color: #63735a; }
.completion-panel .primary-button { margin-left: auto; flex-shrink: 0; }
.guide-settings { margin: 25px 0; padding: 15px 20px; border: 1px solid var(--line); border-radius: 10px; color: #626f5b; background: #f3f5ed; }
.guide-settings summary { cursor: pointer; font-size: 12px; padding: 5px 0; }
.guide-settings p { font-size: 13px; margin: 15px 0; max-width: 760px; }
.guide-settings form { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.guide-settings label { font-size: 13px; }
.guide-settings select { max-width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid #bdcbb5; border-radius: 7px; color: var(--ink); background: white; font-size: 13px; }
.secondary-button { min-height: 44px; padding: 9px 18px; border: 1px solid #a9b99e; background: #fffefa; border-radius: 7px; color: var(--ink); font-size: 13px; }
.page-error { padding: 14px 18px; border-radius: 9px; background: #f7eade; color: #8a4e30; font-size: 14px; }
@media (max-width: 1000px) {
  .brand-subtitle { display: none; }
  .welcome-panel { padding: 30px; }
  .welcome-character { width: 190px; }
  .interest-card { padding: 16px; }
  .interest-card h3 { font-size: 17px; }
  .interest-card p { font-size: 11px; }
  .situation-grid { gap: 14px; }
  .situation-copy { padding: 20px 16px; }
  .situation-copy h2 { font-size: 18px; }
  .situation-copy .round-arrow { right: 12px; }
  .mission-grid { gap: 16px; }
  .sentence-panel { padding: 22px; }
  .picture-panel { padding: 20px 16px 0; }
  .picture-question { font-size: 16px; }
}
@media (max-width: 760px) {
  .site-header { min-height: 76px; padding: 15px 22px; }
  .brand { font-size: 21px; }
  .header-back { font-size: 11px; padding: 8px 10px; }
  .game-main { width: calc(100% - 40px); }
  .journey { padding: 22px 0; }
  .journey ol { gap: 23px; }
  .collected { font-size: 0; gap: 4px; }
  .welcome-panel { padding: 25px; }
  .welcome-copy h1 { font-size: 26px; }
  .welcome-copy p { font-size: 13px; }
  .welcome-character { width: 145px; }
  .welcome-character svg { width: 145px; height: 145px; }
  .character-note { font-size: 10px; left: 0; top: -5px; }
  .character-label { font-size: 9px; }
  .interest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
  .interest-card { min-height: 194px; padding: 20px; }
  .interest-card p { font-size: 12px; }
  .section-heading { align-items: start; }
  .section-heading > p { max-width: 110px; font-size: 11px; align-self: end; }
  .situation-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .situation-copy h2 { font-size: 19px; }
  .mission-grid { grid-template-columns: 1fr; }
  .picture-panel .story-scene { max-height: 330px; }
  .picture-heading { margin-bottom: 12px; }
  .picture-question { padding: 18px 4px; }
  .sentence-slots li { max-width: none; }
  .completion-panel { flex-wrap: wrap; gap: 16px; padding: 18px; }
  .completion-panel > svg { width: 70px; height: 70px; }
  .completion-panel .primary-button { width: 100%; }
}
@media (max-width: 480px) {
  .site-header { padding: 14px 18px; gap: 10px; }
  .brand { gap: 8px; }
  .brand-mark { width: 35px; height: 35px; border-radius: 10px; }
  .header-back span { margin-left: 4px; }
  .game-main { width: calc(100% - 32px); }
  .journey { gap: 7px; font-size: 11px; padding: 20px 0; }
  .journey ol { gap: 15px; }
  .journey a, .journey .step-label { gap: 4px; }
  .journey li + li::before { left: -10px; }
  .journey a > span, .step-label > span { width: 20px; height: 20px; font-size: 10px; }
  .collected svg { width: 14px; height: 14px; }
  .collected b { font-size: 12px; margin-left: 0; }
  .welcome-panel { min-height: 260px; padding: 24px 22px; align-items: start; }
  .welcome-copy h1 { font-size: 24px; line-height: 1.5; letter-spacing: -1px; }
  .welcome-copy .eyebrow { font-size: 10px; }
  .welcome-copy p { max-width: 195px; padding-right: 16px; font-size: 12px; line-height: 1.8; }
  .mobile-break { display: block; }
  .welcome-character { position: absolute; right: 6px; bottom: 10px; width: 112px; }
  .welcome-character svg { width: 112px; height: 112px; }
  .character-note, .character-label { display: none; }
  .welcome-panel::after { width: 170px; height: 170px; bottom: -110px; }
  .section-heading { gap: 12px; margin-top: 25px; }
  .section-heading h2 { font-size: 20px; }
  .section-heading > p { font-size: 10px; max-width: 93px; }
  .interest-card { min-height: 183px; padding: 18px 15px; }
  .interest-icon { width: 67px; height: 67px; border-radius: 19px; }
  .interest-icon svg { width: 57px; height: 57px; }
  .interest-card h3 { font-size: 17px; }
  .interest-card p { font-size: 10px; padding-right: 0; }
  .card-arrow { right: 16px; top: 91px; font-size: 16px; }
  .gentle-tip { padding: 12px; gap: 8px; }
  .gentle-tip p { font-size: 11px; }
  .gentle-tip strong { display: block; }
  .game-footer { gap: 11px; font-size: 10px; }
  .footer-dots { display: none; }
  .situation-grid { grid-template-columns: 1fr; gap: 20px; }
  .situation-heading h1 { font-size: 25px; }
  .situation-heading div > p { font-size: 13px; }
  .situation-copy h2 { font-size: 22px; }
  .situation-copy { padding: 23px; }
  .situation-copy .round-arrow { right: 24px; }
  .mission-heading { flex-wrap: wrap; gap: 12px; }
  .sentence-panel { padding: 22px 18px; }
  .sentence-panel h2 { font-size: 22px; }
  .word-card { font-size: 18px; padding: 11px 13px; }
  .sentence-slots { gap: 7px; }
  .sentence-slots li { flex-basis: 80px; }
  .chosen-word { font-size: 18px; }
  .completion-panel h2 { font-size: 19px; }
  .completion-panel > svg { width: 54px; height: 54px; }
  .completion-panel p { font-size: 11px; }
  .guide-settings form { align-items: stretch; flex-direction: column; }
  .guide-settings select { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
