/* Shared presentation tokens only. Learner pills and educational glyphs keep their own styles. */
/* November 25: 학습용 글꼴을 '자주 쓰는 글자'(기존 파일 이름 그대로)와 '드문 글자'(-rest) 둘로 나눴다. 글자 모양은 같다.
   아래 줄은 드문 글자용이고, 기존 줄보다 먼저 적어 두어 기존 파일에 없는 글자일 때만 내려받는다. */
@font-face{font-family:'Ttobak Header';src:url('./assets/noto-sans-kr-regular-learning-rest.woff2') format('woff2');font-style:normal;font-weight:400 500;font-display:swap;unicode-range:U+1100-11FF,U+A960-A97F,U+AC00-D7FF}
@font-face{font-family:'Ttobak Header';src:url('./assets/noto-sans-kr-bold-learning-rest.woff2') format('woff2');font-style:normal;font-weight:700 800;font-display:swap;unicode-range:U+1100-11FF,U+A960-A97F,U+AC00-D7FF}
@font-face{font-family:'Ttobak UI';src:url('./assets/Pretendard-Medium.subset.woff2') format('woff2');font-style:normal;font-weight:500;font-display:swap}
@font-face{font-family:'Ttobak UI';src:url('./assets/Pretendard-SemiBold.subset.woff2') format('woff2');font-style:normal;font-weight:600;font-display:swap}
:root {
  --paper-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.3 0 0 0 0 0.2 0 0 0 .10 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --paper: #FFFCF3;             /* 크림 종이 (보조 버튼) */
  --paper-pressed: #F6F0E1;
  --paper-line: #E2D9C3;
  --paper-ink: #1E4A3E;
  --paper-green: #2B5649;       /* 초록 종이 (주 버튼 · 선택됨) */
  --paper-green-pressed: #234A3E;
  --paper-green-line: #1F463B;
  --paper-mint: #E6F0E8;        /* 연한 초록 종이 (지금 있는 화면 표시) */
  --paper-yellow: #FFE278;      /* 홈 시작하기만 */
  --paper-radius: 12px;
  --paper-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 1px 1px rgba(80,64,30,.10), 0 6px 14px -6px rgba(80,64,30,.22);
  --paper-shadow-pressed: inset 0 1px 0 rgba(255,255,255,.7), 0 1px 1px rgba(80,64,30,.12);
  --paper-shadow-green: inset 0 1px 0 rgba(255,255,255,.18), 0 1px 1px rgba(20,40,32,.25), 0 8px 16px -6px rgba(20,40,32,.40);
  --ui-font: 'Ttobak UI', 'Pretendard', 'Noto Sans KR', sans-serif;
  --paper-chip-radius: 10px;
  --paper-focus: #2F7765;
  --paper-disabled-opacity: .45;
  --paper-delete: #FFF1EA;
}

/* November 15 (owner request): 모든 화면에서 메뉴 버튼은 줄 세 개 아이콘만 보인다. "메뉴" 글자는 화면 낭독용으로만 남긴다. */
html body header.mobile-menu-header.mobile-menu-header.mobile-menu-header > button.mobile-menu-toggle.mobile-menu-toggle > span{position:absolute!important;display:block!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important;border:0!important}
html body header.mobile-menu-header.mobile-menu-header.mobile-menu-header > button.mobile-menu-toggle.mobile-menu-toggle{gap:0!important;padding-left:0!important;padding-right:0!important;width:48px!important;min-width:48px!important;justify-content:center!important}
@media (max-width:760px){html body header.mobile-menu-header.mobile-menu-header.mobile-menu-header > button.mobile-menu-toggle.mobile-menu-toggle{width:44px!important;min-width:44px!important}}
/* November 15 (owner request): 메뉴 맨 아래 한 줄은 가운데 정렬, 이용안내는 밑줄 없이 굵게. */
html body nav.header-proposal-menu.header-proposal-menu > small.menu-copyright{display:block!important;margin:6px 10px 6px!important;padding:12px 2px 2px!important;text-align:center!important;font-size:13px!important;color:#5f6f66!important;white-space:normal!important}
html body nav.header-proposal-menu.header-proposal-menu > small.menu-copyright a{display:inline-block;padding:4px 2px;color:#1e4a3e!important;font-weight:800!important;text-decoration:none!important}
html body nav.header-proposal-menu.header-proposal-menu > small.menu-copyright a:hover{color:#2b7a66!important}
/* November 15 (owner request): 상단 도서관 버튼도 책 아이콘만 보인다. "도서관" 글자는 화면 낭독용으로만 남긴다. */
html body header.mobile-menu-header.mobile-menu-header.mobile-menu-header > a.mobile-library-link.mobile-library-link .header-library-label{position:absolute!important;display:block!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important;border:0!important}
html body header.mobile-menu-header.mobile-menu-header.mobile-menu-header > a.mobile-library-link.mobile-library-link{gap:0!important;padding-left:0!important;padding-right:0!important;width:48px!important;min-width:48px!important;justify-content:center!important}
@media (max-width:760px){html body header.mobile-menu-header.mobile-menu-header.mobile-menu-header > a.mobile-library-link.mobile-library-link{width:44px!important;min-width:44px!important}}
/* November 15 (owner request): 소개 페이지 상단에서는 넓은 화면에서도 "학습자" 단추를 감춘다(휴대폰과 같게). 학습자는 메뉴 안에 있다. */
/* (2026-11-15 밤) 이 감춤 규칙은 뺐다: 학습자 단추는 모든 화면에서 도서관 단추 옆에 둔다. */
/* November 15 (owner request): 도서관(넓은 화면)의 글씨를 키운다: 책 제목 · 쪽수 · 설명 · 안내 글. */
@media (min-width:760px){
html body .library-heading .library-intro,html body .library-heading .library-intro span{font-size:19px!important;line-height:1.6!important}
html body .catalog-card-copy > .catalog-card-title{font-size:31px!important;line-height:1.3!important}
html body .catalog-card-title > .catalog-page-count{font-size:17px!important}
html body .catalog-card-copy > .catalog-description{font-size:19px!important;line-height:1.6!important}
html body .catalog-card-details > .catalog-read,html body .catalog-card-details > .catalog-read span{font-size:19px!important}
}
/* November 15 (owner request): 도서관 등 학습 화면이 아닌 페이지의 상단에서도 넓은 화면의 "학습자" 단추를 감춘다(휴대폰과 같게). 학습자는 메뉴 안에 있다. */
/* (2026-11-15 밤) 이 감춤 규칙은 뺐다: 학습자 단추는 모든 화면에서 도서관 단추 옆에 둔다. */
/* November 15 (owner request): 연화쌤 자료 화면 상단에서도 넓은 화면의 "학습자" 단추를 감춘다. 학습자는 메뉴 안에 있다. */
/* (2026-11-15 밤) 이 감춤 규칙은 뺐다: 학습자 단추는 모든 화면에서 도서관 단추 옆에 둔다. */
/* November 15 (owner request): 내 보관함 · 주간 모험 · 학습자 화면 상단에서도 넓은 화면의 "학습자" 단추를 감춘다. 학습자는 메뉴 안에 있다. 단계 학습 화면에는 남긴다. */
/* (2026-11-15 밤) 이 감춤 규칙은 뺐다: 학습자 단추는 모든 화면에서 도서관 단추 옆에 둔다. */
/* November 15 (owner request, later): 내 보관함에서는 상단 학습자 단추를 다시 보여 준다. 보관함 주인은 여기서 바꾼다. */

/* November 15 (owner request): 넓은 화면에서도 휴대폰처럼 배경음악을 메뉴 안에 둔다. 메뉴에 "배경음악" 줄이 있을 때만 위쪽 단추를 감춘다.
   학습 앱 화면(내 보관함·연화쌤 자료·주간 모험·학습자·단계 학습)과 도서관·소개 페이지가 해당한다. 홈은 그대로 둔다. */
html body #dc-root header.mobile-menu-header.mobile-menu-header > .learning-tools.header-proposal-menu > .menu-music-row,
html body header.mobile-menu-header > nav.header-proposal-menu > .menu-music-row--page{display:flex!important}
html body header.mobile-menu-header > nav.header-proposal-menu > .menu-music-row--page[hidden]{display:none!important}
html body #dc-root header.mobile-menu-header.mobile-menu-header:has(> .learning-tools > .menu-music-row) > .ttobak-music-toggle,
html body header.mobile-menu-header.mobile-menu-header:has(> nav > .menu-music-row--page:not([hidden])) > .ttobak-music-toggle{display:none!important}
html body .menu-music-row{width:100%;text-align:left;cursor:pointer}
html body .menu-music-row .header-menu-icon{display:grid;place-items:center;color:#1e4a3e}
html body .menu-music-row .header-menu-label{flex:1 1 auto;text-align:left}
html body .menu-music-state{flex:none;display:inline-flex;align-items:center;gap:8px;font:600 14px/1 var(--ui-font,'Ttobak UI','Pretendard','Noto Sans KR',sans-serif);color:#566a5f}
html body .menu-music-state i{position:relative;width:40px;height:24px;border-radius:999px;background:#d5dbd4;transition:background .15s}
html body .menu-music-state i::after{content:'';position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(25,75,64,.3);transition:transform .15s}
html body .menu-music-row[data-state='on'] .menu-music-state{color:#1f6b58}
html body .menu-music-row[data-state='on'] .menu-music-state i{background:#2f7765}
html body .menu-music-row[data-state='on'] .menu-music-state i::after{transform:translateX(16px)}
html body .menu-music-row[data-state='paused']{opacity:1!important;cursor:default!important}
html body .menu-music-row[data-state='paused'] .menu-music-state i{display:none}
html body .menu-music-row[data-state='paused'] .header-menu-label,html body .menu-music-row[data-state='paused'] .header-menu-icon{color:#8a968d}
@media (prefers-reduced-motion:reduce){html body .menu-music-state i,html body .menu-music-state i::after{transition:none}}
/* November 15 (owner request): 소개 페이지 "또리의 선물" — 카드 꾸러미를 불러오는 동안 비스듬한 임시 그림은 보이지 않게 한다(자리는 그대로).
   불러오기에 실패했을 때만 임시 그림과 "카드 다시 불러오기"가 보인다. */
html body .gift #inline-pack-host:not([data-card-state='error']) > .sample-pack{visibility:hidden!important}

/* November 15 (owner request): 주간 모험과 내 보관함을 "마이페이지" 하나로 묶는다. 메뉴에는 마이페이지만 두고,
   내 보관함은 마이페이지(주간 모험 화면) 안의 "내 보관함" 단추로 들어간다. */
html body header .header-menu-entry.header-menu-entry[data-menu-key="owned"],html body .header-menu-entry.header-menu-entry[data-menu-key="owned"]{display:none!important}

/* November 15 (owner request, night): 메뉴의 "학습자" 줄을 없애고, 학습자 단추를 모든 화면에서 위쪽 도서관 단추 옆에 둔다.
   좁은 화면에서는 도서관 단추와 같은 크기의 네모 안에 동그라미(첫 글자)만 보인다. */
html body header .header-menu-entry.header-menu-entry[data-menu-key="learners"],html body .header-menu-entry.header-menu-entry[data-menu-key="learners"]{display:none!important}
html body header.mobile-menu-header.mobile-menu-header.mobile-menu-header > .header-learner-shortcut{display:inline-flex!important}
@media (max-width:800px){
  html body header.mobile-menu-header.mobile-menu-header.mobile-menu-header > .header-learner-shortcut{flex:none!important;align-items:center!important;justify-content:center!important;width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;padding:0!important;gap:0!important}
  html body header.mobile-menu-header.mobile-menu-header.mobile-menu-header > .header-learner-shortcut > :is(.header-learner-text,.header-learner-chevron){display:none!important}
}

/* November 16 (owner request): 학습자 동그라미 색을 어디서나 같게. 순서대로 노랑 · 살구 · 연두 · 하늘(학습자 목록 · 계정 관리와 같은 색). */
html body .header-learner-avatar[data-tone]{color:#1e4a3e}
html body .header-learner-avatar[data-tone='0']{background:#ffe278}
html body .header-learner-avatar[data-tone='1']{background:#ffd3bd}
html body .header-learner-avatar[data-tone='2']{background:#cfe8d8}
html body .header-learner-avatar[data-tone='3']{background:#d6e4f5}
html body .learner-menu-item:not(.learner-menu-manage) .learner-menu-initial{color:#1e4a3e!important}
html body .learner-menu-item:not(.learner-menu-manage):nth-child(4n+1) .learner-menu-initial{background:#ffe278!important}
html body .learner-menu-item:not(.learner-menu-manage):nth-child(4n+2) .learner-menu-initial{background:#ffd3bd!important}
html body .learner-menu-item:not(.learner-menu-manage):nth-child(4n+3) .learner-menu-initial{background:#cfe8d8!important}
html body .learner-menu-item:not(.learner-menu-manage):nth-child(4n+4) .learner-menu-initial{background:#d6e4f5!important}

/* 2026-11-16 (owner request): 위쪽 단추가 마이페이지(별)가 되었으므로 메뉴에서는 마이페이지를 감추고 도서관을 보인다. */
html body header:has(> .mobile-mypage-link) .header-menu-entry.header-menu-entry[data-menu-key="adventure"]{display:none!important}
html body header.mobile-menu-header.mobile-menu-header:has(> .mobile-mypage-link) .header-menu-entry.learning-library-link[data-menu-key="library"]{display:flex!important}

/* 2026-11-16 (owner request): 위쪽 학습자 단추는 이제 목록이 아니라 내 계정을 연다. 아래 화살표는 뺀다. */
html body header.mobile-menu-header.mobile-menu-header.mobile-menu-header > .header-learner-shortcut > .header-learner-chevron{display:none!important}

/* 2026-11-17: 메뉴 아래 "이용안내" 링크를 누르기 쉽게(높이 24 → 36). */
html body header .menu-copyright > a{display:inline-flex!important;align-items:center;min-height:44px;padding:0 6px;margin:0 -6px}

/* 2026-11-17 (owner request): 홈에서도 로그인되어 있으면 위쪽에 마이페이지(사람 모양) 단추를 보인다. */
html body #immersive-home .ttobak-home > header.home-proposal-header > a.mobile-library-link.mobile-mypage-link[data-signed-in='true']{display:inline-flex!important;align-items:center;justify-content:center;width:50px!important;min-width:50px!important;padding:0!important;border-radius:16px}
@media (max-width:939.98px){html body #immersive-home .ttobak-home > header.home-proposal-header > a.mobile-library-link.mobile-mypage-link[data-signed-in='true']{width:44px!important;min-width:44px!important}}

/* 2026-11-17 (owner request): 로그아웃 상태에서는 위쪽 학습자 동그라미와 마이페이지 단추를 감춘다. */
html body[data-ttobak-account='out'] header.mobile-menu-header.mobile-menu-header.mobile-menu-header > :is(.header-learner-shortcut,.mobile-mypage-link){display:none!important}
html body #immersive-home .ttobak-home > header.home-proposal-header > .header-learner-shortcut[data-signed-in='false']{display:none!important}

/* 2026-11-17 (owner request): 홈의 겨울 모습(눈·차가운 색)을 끄고 원래의 깨끗한 화면으로 돌린다.
   header-proposal.css 의 겨울 블록은 건드리지 않고 여기서 덮는다. 다시 겨울로 하려면 이 블록만 지운다. */
html body .ttobak-home[data-scene='garden'] .scene-image,html body .ttobak-home[data-scene='garden'] .scene-light{filter:none!important}
html body .ttobak-home[data-scene='garden'] .scene-art::before,html body .ttobak-home[data-scene='garden'] .scene-art::after{content:none!important;display:none!important;animation:none!important;background-image:none!important}
@media (max-aspect-ratio:6/5){html body .ttobak-home[data-scene='garden']{background:linear-gradient(var(--sky) 45%,#dce5bf 100%)!important}}
