/* 👶 아이 모드 (js/kid-mode.js) */
/* 켜기 단추 (부모용) */
.kid-start-btn { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 420px; margin-top: 12px; padding: 12px 16px; border-radius: 18px;
  border: 2px dashed #F2C9A8; background: #FFF6EC; color: #5b4339; font: inherit; text-align: left; cursor: pointer; }
.kid-start-btn i { font-style: normal; font-size: 30px; }
.kid-start-btn span { display: flex; flex-direction: column; gap: 2px; }
.kid-start-btn b { font-size: 16px; }
.kid-start-btn small { font-size: 12.5px; color: var(--color-text-sub, #6b6b6b); }
.kid-start-wrap { padding-top: 14px; }

/* 아이 모드 켜짐: 맨 위 띠 */
.kid-on { --header-h: 62px; }
.kid-on body { padding-top: 62px; }
.kid-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 90; height: 62px; display: flex; align-items: center; gap: 10px; padding: 8px 12px;
  background: #5b4339; color: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .15); }
.kid-home-btn { display: inline-flex; align-items: center; gap: 6px; height: 46px; padding: 0 16px; border-radius: 999px; border: 0; background: #fff; color: #5b4339;
  font: inherit; font-size: 17px; font-weight: 800; cursor: pointer; }
.kid-home-btn i { font-style: normal; font-size: 22px; }
.kid-left { margin-left: auto; font-weight: 800; font-size: 15px; opacity: .9; }
.kid-lock { position: relative; display: inline-flex; align-items: center; gap: 4px; height: 46px; padding: 0 12px; border-radius: 999px; border: 2px solid rgba(255,255,255,.5);
  background: transparent; color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; overflow: hidden; -webkit-user-select: none; user-select: none; touch-action: none; }
.kid-lock i { font-style: normal; font-size: 18px; }
.kid-lock em { position: absolute; left: 0; bottom: 0; height: 4px; width: 0; background: #FFD27A; }
.kid-lock.is-holding em { width: 100%; transition: width 2s linear; }

/* 숨기는 것: 메뉴·바닥글·도안·인쇄·제품·바깥 링크·부모용 칸 */
.kid-on .site-header, .kid-on .site-footer, .kid-on footer, .kid-on .mobile-menu, .kid-on .quick-sheets, .kid-on .back-fab,
.kid-on .pt-space-wrap, .kid-on .pt-to-doan, .kid-on [data-pt-i][data-kid-paper], .kid-on .pt-paper, .kid-on .rp-print-btn, .kid-on [data-print],
.kid-on .pg-links, .kid-on section:has(> .pg-other), .kid-on .wp, .kid-on #sheets, .kid-on .mg-real, .kid-on .ph-filter, .kid-on .ph-tiles, .kid-on .ph-facts,
.kid-on .ph-notes, .kid-on .ph-below, .kid-on .ph-hero-s, .kid-on .kid-start-wrap, .kid-on .kid-start-btn, .kid-on .inquiry, .kid-on [data-inquiry],
.kid-on .gp-end, .kid-on .tg-buy, .kid-on .pk-book, .kid-on #tb-home, .kid-on .pg-head .lead, .kid-on .pg-photo,
.kid-on a.kid-hide, .kid-on .kid-hide { display: none !important; }
.kid-on a.kid-off { pointer-events: none; color: inherit; text-decoration: none; }

/* 아이 모드 첫 화면: 놀이터 7곳 큰 그림 */
.kid-home-t { margin: 6px 0 14px; font-size: 24px; text-align: center; }
.kid-home { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 640px) { .kid-home { grid-template-columns: repeat(4, 1fr); } }
.kid-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; color: inherit; }
.kid-tile-art { display: block; width: 100%; aspect-ratio: 1 / 1; border-radius: 22px; overflow: hidden; background: #F7F2EC; box-shadow: 0 6px 16px rgba(120, 90, 60, .14); }
.kid-tile b { font-size: 18px; }
.kid-tile:active .kid-tile-art { transform: scale(.97); }

/* 아이 모드에서 놀이 단추는 크게 */
.kid-on .pt-ic { min-width: 88px; min-height: 88px; font-size: 14px; }
.kid-on .pt-ic i { font-size: 36px; }
.kid-on .pt-bar { top: 62px; }

/* 창 (부모 잠금 · 켜기 · 눈 쉬기 · 놀이 고르기) */
.kid-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(40, 30, 25, .55); }
.kid-modal-box { width: 100%; max-width: 440px; max-height: 92vh; overflow: auto; background: #fff; border-radius: 26px; padding: 22px 20px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.kid-modal h2 { margin: 6px 0 10px; font-size: 22px; }
.kid-x { margin-top: 14px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid #E3D3C2; background: #fff; color: #5b4339; font: inherit; font-weight: 700; cursor: pointer; }
.kid-start-ic, .kid-rest-ic { margin: 0; font-size: 54px; line-height: 1; }
.kid-start-p { margin: 0 0 8px; font-size: 15px; line-height: 1.6; color: #5f5048; }
.kid-start-q { margin: 14px 0 8px; font-weight: 800; }
.kid-start-opts, .kid-pm { display: grid; gap: 10px; }
.kid-start-opts button, .kid-pm button { min-height: 56px; border-radius: 16px; border: 2px solid #E3D3C2; background: #FFF9F2; color: #5b4339; font: inherit; font-size: 17px; font-weight: 800; cursor: pointer; }
.kid-start-opts button:first-child, .kid-pm button:first-child { background: #5b4339; color: #fff; border-color: #5b4339; }
.kid-gate-t { margin: 0; font-weight: 700; color: #886A60; }
.kid-gate-q { margin: 8px 0 14px; font-size: 40px; font-weight: 900; letter-spacing: .02em; }
.kid-gate-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kid-gate-opts button { min-height: 64px; border-radius: 18px; border: 2px solid #E3D3C2; background: #FFF9F2; font: inherit; font-size: 26px; font-weight: 900; color: #5b4339; cursor: pointer; }
.kid-shake { animation: kidShake .4s; }
@keyframes kidShake { 25% { transform: translateX(-8px); } 50% { transform: translateX(8px); } 75% { transform: translateX(-5px); } }
.kid-rest .kid-modal-box { background: linear-gradient(180deg, #E9F6FF 0%, #FFFFFF 100%); }
.kid-rest p { line-height: 1.7; color: #4f5b66; }
.kid-rest-s { font-size: 14px; }
.kid-rest-parent { margin-top: 10px; min-height: 52px; padding: 0 22px; border-radius: 999px; border: 0; background: #5b4339; color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.kid-home-modal .kid-modal-box { max-width: 560px; }
.kid-toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 110; padding: 12px 18px; border-radius: 999px; background: rgba(40, 30, 25, .9); color: #fff; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .kid-lock.is-holding em { transition: none; } .kid-shake { animation: none; } }
/* 글은 적게: 아이 모드에서는 놀이 칸 위 긴 설명·영문 꼬리표를 숨겨요 */
.kid-on .pg-head .label, .kid-on #magnet-play > .container > .label, .kid-on #magnet-play > .container > .h2,
.kid-on #magnet-play > .container > .sub, .kid-on #stamp-play > .container > .label, .kid-on #stamp-play > .container > .sub,
.kid-on .lead { display: none !important; }

/* 놀이 페이지의 작은 '👶 아이 모드' 단추 ([🎠 놀이터][📄 도안] 옆) */
.pt-space > .kid-pill { flex: 0 0 auto; max-width: none; min-height: 64px; padding: 0 14px; gap: 6px; font-size: 14px; border-style: dashed; border-color: #F2C9A8; background: #FFF6EC; }
.pt-space > .kid-pill i { font-size: 22px; }
@media (max-width: 400px) { .pt-space > .kid-pill { flex-direction: column; gap: 2px; padding: 0 10px; font-size: 12px; } .pt-space > .kid-pill i { font-size: 20px; } }
.kid-on .kid-pill { display: none !important; }
