/* ═══════════════════════════════════════════════════════════════════
   은우 공부섬 디자인 체계 (2026-10-28 리뉴얼) — 이 파일이 app.css 위에 덮인다
   · 색 : 파스텔 5 + 강조 1        · 글꼴 : Jua 하나, 크기 3단계
   · 단추 : 입체 단추 한 종류        · 패널 : 반투명 흰 카드 한 종류
   · 화면 틀 : 위 = 뒤로 + 제목 + 별 / 가운데 = 놀이 / 아래 = 비움
   ═══════════════════════════════════════════════════════════════════ */
:root {
  --복숭아: #FFD8C7; --버터: #FFF1BF; --민트: #CDEFDF; --하늘: #D3E7FF; --라일락: #E6DDFF;
  --강조: #FF8A5B; --강조진: #E2683A;
  --글: #4A3B2C; --글연: #8A7258;
  --큰글: 52px; --중글: 30px; --작은글: 21px;
  --패널: rgba(255,255,255,.86);
  --패널테: rgba(255,255,255,.95);
  --그림자: 0 10px 22px rgba(90,60,25,.16);
  --바닥: 0 7px 0 rgba(176,128,72,.30);
  --바닥눌림: 0 2px 0 rgba(176,128,72,.30);
  --둥: 30px;
}
body { color: var(--글); background: #FFF6EC; }

/* ── 장면 : 그림 한 장 + 살짝 밝게 덮기 (가운데 놀이가 잘 보이게) ── */
.scene-img { position: absolute; inset: 0; background-size: cover; background-position: center; }
.scene-img::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 55%, rgba(255,255,255,.34) 0%, rgba(255,255,255,.14) 55%, rgba(255,255,255,0) 80%); }
.scene-img.dark::after { background: radial-gradient(ellipse at 50% 55%, rgba(30,20,60,.18), rgba(30,20,60,0) 75%); }
.ambient { display: none !important; }          /* 옛 이모지 떠다니기 장식은 끈다 */
.hp-bg { background: none; }

/* ── 단추 : 한 종류 (기본 모양은 app.css 의 .kid-btn 에 바로 넣었다 — 풍선·물고기 같은 소품 모양이 이기게) ── */
/* 강조 단추 (시작·놀자) */
.go-btn, .intro-go { background: linear-gradient(180deg, #FFA27A, var(--강조)); border-color: rgba(255,255,255,.7); color: #fff; box-shadow: 0 8px 0 var(--강조진), var(--그림자); }
.go-btn:active:not(:disabled), .intro-go:active:not(:disabled) { box-shadow: 0 2px 0 var(--강조진); }
.intro-go small { color: #fff; }

/* ── 화면 틀 : 위 줄 ── */
.topbar { min-height: 116px; padding: 12px 22px; gap: 14px; }
.topbar .home-btn, .topbar .replay-btn, .topbar .photo-toggle { width: 92px; height: 92px; min-width: 92px; min-height: 92px; border-radius: 28px; font-size: 46px; }
.topbar .photo-toggle small { font-size: 16px; }
.title-small { font-size: var(--중글); color: var(--글); text-shadow: none; background: var(--패널); border: 3px solid var(--패널테); border-radius: 999px; padding: 10px 28px; box-shadow: var(--그림자); white-space: nowrap; }
.star-box { margin-left: auto; font-size: var(--중글); background: var(--패널); border: 3px solid var(--패널테); border-radius: 999px; padding: 8px 24px; box-shadow: var(--그림자); }
.star-box b { color: var(--강조진); }
.game-top .star-box { margin-left: 0; }
.topbar .sticker-btn, .topbar .hp-progress, .topbar .time-left { display: none !important; }
.topbar .adult-btn { position: static; order: 99; font-size: 16px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.7); box-shadow: none; color: var(--글연); }
.adult-btn { background: rgba(255,255,255,.7); box-shadow: none; color: var(--글연); font-size: 16px; border-radius: 999px; }
.topbar.dark .title-small { color: var(--글); }
.bubble { background: var(--패널); border: 3px solid var(--패널테); font-size: 24px; color: var(--글); box-shadow: var(--그림자); }
.bubble::before { border-right-color: rgba(255,255,255,.9); }
.progress i { border-color: var(--강조); background: rgba(255,255,255,.85); }
.progress i.done { background: var(--강조); }
.progress i.now { background: #FFD24D; border-color: #FFB800; }

/* ── 패널 : 반투명 흰 카드 한 종류 ── */
.hp-card, .subj-card, .unit-card, .act-card, .book-card, .today-card, .step-card, .island-card,
.prompt-card, .flash-card, .story-page, .level-box, .intro-card, .gate, .tray, .plate, .want-bubble, .color-pic,
.reward-total, .flip-left, .fish-count, .bush-sign, .echo-say, .sticker-tray {
  background: var(--패널); border: 3px solid var(--패널테); border-radius: var(--둥); box-shadow: var(--바닥), var(--그림자);
}
.hp-today { background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,236,226,.92)); }
.today-card.done, .step-card.done, .unit-card.done { background: rgba(236,250,240,.92); }
.unit-card.next, .step-card.next { border-color: var(--강조); }
.book-card { border-left: 14px solid #F9A8C0; border-radius: 12px var(--둥) var(--둥) 12px; }
.level-pop, .intro-pop { background: rgba(70,50,30,.28); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }

/* 글자 크기 3단계 */
.hp-name, .subj-name, .intro-title, .level-title { font-size: var(--큰글); color: var(--글); }
.hp-today .hp-name { color: var(--강조진); }
.hp-name { font-size: 40px; }
.act-name, .unit-name, .step-name, .book-name, .today-name, .island-name, .hp-list, .intro-text { color: var(--글); }
.act-name, .unit-name, .step-name, .book-name, .today-name { font-size: 24px; }
.hp-sub, .subj-prog, .unit-num, .today-sub, .act-seen { font-size: var(--작은글); color: var(--글연); }
.intro-title { color: var(--강조진); text-shadow: none; }
.level-title { color: var(--강조진); }
.subj-pic, .act-icon { box-shadow: none; }
.act-icon { background: var(--버터) !important; }
.step-num, .today-num { color: var(--강조진); }
.today-num { background: var(--강조); color: #fff; }
.act-stars i { color: #E9DFD0; } .act-stars i.on { color: #FFB800; }
.level-btn.l1 { background: rgba(205,239,223,.95); } .level-btn.l2 { background: rgba(255,241,191,.95); } .level-btn.l3 { background: rgba(255,216,199,.95); }

/* 놀이 속 카드들 (보기·통) 도 같은 단추 결 */
.choice { border: 3px solid var(--패널테); }
.choice.right { border-color: #7AD49A; background: rgba(236,250,240,.95); }

/* ── 전환 · 칭찬 : 한 가지 ── */
.screen.enter > *:not(.scene) { animation: enter .42s cubic-bezier(.2,.8,.3,1) both; }
.screen.enter > .scene { animation: fadein .45s both; }
.praise-pop b { color: #fff; text-shadow: 0 4px 0 var(--강조진), 0 0 22px rgba(0,0,0,.18); }
.reward-title { color: #fff; text-shadow: 0 5px 0 var(--강조진), 0 0 24px rgba(0,0,0,.15); }
.reward-stars span.on { color: #FFC83D; text-shadow: 0 5px 0 #E8A100; }
.end-title { text-shadow: 0 5px 0 #5B4BC4; }

/* ── 새 콩이 그림 ── */
.kongi-img { display: inline-block; position: relative; }
.kongi-img img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 8px 6px rgba(0,0,0,.14)); pointer-events: none; }

/* ── 3D 그림으로 바꾼 놀이 소품 ── */
.sky-ball.img-ball { background: none !important; box-shadow: none !important; border: 0 !important; border-radius: 0; }
.sky-ball.img-ball::before { content: ""; position: absolute; inset: -6% -8% -14% -8%; background: var(--풍선) center / contain no-repeat; filter: hue-rotate(var(--hue, 0deg)) saturate(1.05); z-index: 0; }
.sky-ball.img-ball::after { display: none; }
.sky-ball.img-ball .sky-in { position: relative; z-index: 1; margin-top: -30px; width: 132px; height: 132px; background: rgba(255,255,255,.88); box-shadow: inset 0 0 0 3px rgba(255,255,255,.95); }
.fish.img-fish { background: none !important; box-shadow: none !important; border: 0 !important; }
.fish.img-fish::before, .fish.img-fish::after { display: none; }
.fish.img-fish .fish-bg { position: absolute; inset: -18% -14% -18% -12%; background: var(--물고기) center / contain no-repeat; filter: hue-rotate(var(--hue, 0deg)); z-index: 0; }
.fish.img-fish .fish-in { position: relative; z-index: 1; margin-left: -10px; width: 118px; height: 108px; }
.hide-slot .bush.img-bush { background: var(--덤불) center bottom / contain no-repeat; }
.hide-slot .bush.img-bush path, .hide-slot .bush.img-bush circle { display: none; }
.engine.img-engine { width: 200px; height: 160px; background: var(--기관차) center bottom / contain no-repeat; }
.engine.img-engine svg { display: none; }
.car.img-car { background: none; box-shadow: none; }
.car.img-car::before { content: ""; position: absolute; inset: -12% -8% -18% -8%; background: var(--화차) center bottom / contain no-repeat; filter: hue-rotate(var(--hue, 0deg)); z-index: 0; }
.car.img-car i { display: none; }
.car.img-car .car-in { position: relative; z-index: 1; margin-top: -22px; width: 116px; height: 96px; }
.car.img-car em { z-index: 2; }

/* 섬들 : 물감 덩어리 섬 모양 대신 같은 패널 카드 */
.island-card .island-blob { display: none; }
.island-card .island-icon .txt-icon { color: var(--강조진); text-shadow: none; }
.island-card .island-name { color: var(--글); text-shadow: none; }
.island-card .island-stars { color: var(--글연); }

/* ═══════════ ★설계서(시중앱 구성) 반영 — 체크리스트 1~10 · 홈 좌우 구역 · 섬이 자란다 ═══════════ */
/* 1·2 : 아래 54dp 비움 — 음소거 단추를 오른쪽 위로 (88) */
.mute-btn { top: 14px !important; bottom: auto !important; right: 14px !important; width: 88px !important; height: 88px !important; font-size: 40px !important;
  background: rgba(255,255,255,.86) !important; border: 3px solid rgba(255,255,255,.95); box-shadow: 0 7px 0 rgba(176,128,72,.30), 0 10px 22px rgba(90,60,25,.16) !important; }
.mute-btn.off { background: rgba(255,235,225,.95) !important; }
.topbar { padding-right: 118px !important; }
.reward-btns { padding-bottom: 64px !important; }
/* 3 : 오답 흔들림 ±8 · 0.3초 · 2번 / 4 : 빨강 없음 */
@keyframes shake { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.wrong { animation: shake .15s 2 !important; }
.choice.wrong, .kid-btn.wrong { border-color: inherit; }
/* 5 : 정답 맥박 */
.fx-pulse { animation: fxpulse 1.1s ease-in-out infinite !important; }
@keyframes fxpulse { 0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(255,200,60,0)); } 50% { transform: scale(1.1); filter: drop-shadow(0 0 16px #FFD24D) drop-shadow(0 0 6px #FFB800); } }
/* 7 : 보기 카드 크기 2장 280 · 3장 230 · 4장 200 */
.choices.n2 .choice { width: 280px; height: 280px; }
.choices.n3 .choice { width: 230px; height: 230px; }
.choices.n4 .choice { width: 200px; height: 200px; }
/* 8 : 놀이 중 홈은 꾹 — 채워지는 테두리 */
.game-top .home-btn { position: relative; }
.game-top .home-btn::after { content: ""; position: absolute; inset: -6px; border-radius: 32px; border: 6px solid var(--강조); clip-path: inset(100% 0 0 0); pointer-events: none; }
.game-top .home-btn.holding::after { animation: holdfill .8s linear forwards; }
.home-btn.nudge, .replay-btn.nudge { animation: wiggle .5s; }
/* 9 : 탭→탭 고른 물건 */
.tap-picked { outline: 6px solid #FFD24D; outline-offset: 4px; transform: translateY(-8px) scale(1.06); }
/* 10 : 소리 꺼짐 → 다시듣기 단추 5초 흔들림 */
.replay-btn.nudge5 { animation: wiggle .5s 10; }
/* 시범 손가락 */
.demo-hand { position: fixed; z-index: 70; pointer-events: none; animation: demotap .7s ease-in-out infinite; }
.demo-hand .emo { font-size: 84px; filter: drop-shadow(0 6px 6px rgba(0,0,0,.25)); }
@keyframes demotap { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-22px); } }

/* ── 홈 : 왼쪽 33% 콩이 + 「오늘 놀이 ▶」 · 오른쪽 67% 섬 8개 ── */
.home-top { justify-content: flex-start; }
.day-stars { display: flex; gap: 8px; background: var(--패널); border: 3px solid var(--패널테); border-radius: 999px; padding: 6px 14px; box-shadow: var(--그림자); margin-right: auto; }
.day-stars i { font-style: normal; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; font-size: 42px; color: rgba(160,130,90,.25); -webkit-text-stroke: 2px rgba(160,130,90,.45); }
.day-stars i.on { color: #FFC83D; -webkit-text-stroke: 0; text-shadow: 0 3px 0 #E8A100; }
.round-btn { width: 88px !important; height: 88px !important; min-width: 88px !important; min-height: 88px !important; border-radius: 50% !important; font-size: 50px; }
.round-btn .emo { font-size: 50px; }
.home2 { flex: 1; display: grid; grid-template-columns: 33% 1fr; gap: 10px; padding: 0 24px 60px; min-height: 0; }
.home-left { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.home-kongi2 { animation: bob 3s ease-in-out infinite; }
.play-big { width: 300px; height: 140px; border-radius: 70px; flex-direction: row; gap: 14px; background: linear-gradient(180deg, #FFA27A, var(--강조)); border-color: rgba(255,255,255,.75);
  box-shadow: 0 8px 0 var(--강조진), var(--그림자); color: #fff; animation: breathe2 2s ease-in-out infinite; position: relative; }
.play-big:active:not(:disabled) { box-shadow: 0 2px 0 var(--강조진); }
@keyframes breathe2 { 50% { transform: scale(1.04); } }
.play-tri { font-size: 60px; } .play-name { font-size: 40px; }
.play-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.play-dots i { width: 14px; height: 14px; border-radius: 50%; background: rgba(255,255,255,.45); } .play-dots i.on { background: #fff; }
.home-islands { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: 1fr 1fr; gap: 14px 16px; align-content: center; }
.isl-card { height: 100%; max-height: 300px; min-height: 200px; flex-direction: column; gap: 0; padding: 6px; background: rgba(255,255,255,.55) !important; }
.isl-pic { position: relative; flex: 1; width: 100%; display: flex; align-items: center; justify-content: center; min-height: 0; }
.isl-img { width: 100%; height: 100%; max-width: 190px; max-height: 190px; object-fit: contain; filter: drop-shadow(0 10px 8px rgba(0,0,0,.18)); pointer-events: none; }
.isl-grow { position: absolute; right: 2px; top: 0; width: 66px; height: 66px; border-radius: 50%; background: rgba(255,255,255,.9); display: flex; align-items: center; justify-content: center; box-shadow: var(--그림자); animation: pop .5s both; }
.isl-grow .emo { font-size: 46px; }
.isl-grow.g4 { box-shadow: 0 0 0 6px rgba(255,210,77,.6), var(--그림자); }
.isl-name { font-size: 24px; color: var(--글); white-space: nowrap; }
/* 보상 : 다음 선택 큰 단추 2개 */
.reward-btns { align-items: flex-end; gap: 24px; }
.reward-btns .next-big { width: 240px; height: 140px; font-size: 54px; }
.reward-btns .next-big:not(.back) { background: linear-gradient(180deg, #FFA27A, var(--강조)); color: #fff; box-shadow: 0 8px 0 var(--강조진), var(--그림자); }
.reward-btns .next-big:not(.back) small { color: #fff; }
.reward-btns .next-big small { font-size: 26px; }
.reward-btns .small-opt { width: 120px; height: 120px; font-size: 40px; }
.reward-btns .small-opt small { font-size: 18px; }
.pond2 { background: transparent !important; box-shadow: none !important; border-radius: 0; overflow: visible; }
.pond2 .pond-waves { display: none; }
.hide-slot .bush.img-bush { height: 150px; left: -40px; width: calc(100% + 80px); bottom: -6px; }
.bush-sign { bottom: 8px; }
.screen > .adult-btn { right: 116px !important; top: 26px !important; }
.unlock-btn { bottom: auto !important; top: 26px !important; right: 116px !important; }
/* 아래 54dp 비움 — 모든 목록 화면 */
.subj-grid, .acts, .unit-grid, .book-grid, .today-row, .step-row, .islands { padding-bottom: 60px !important; }
.acts.n17 .act-card { height: 184px; }
.subj-card { max-height: 300px; }
