/* 부모(어머니) 게임 화면 — 초대형 UI, 고대비, 단순함 */
body.play {
  margin: 0;
  font-family: 'Malgun Gothic', 'Apple SD Gothic Neo', system-ui, sans-serif;
  background: linear-gradient(180deg, #eaf7ff 0%, #f3fbef 60%, #eaf7e8 100%);
  color: #223326;
  font-size: 24px;
  min-height: 100vh;
}
.play-wrap { max-width: 760px; margin: 0 auto; padding: 16px 18px 40px; }

/* 상단 정원 + 점수 */
.garden-bar {
  background: #fff; border-radius: 20px; padding: 14px 18px; box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px;
}
.garden { font-size: 30px; line-height: 1.2; min-height: 40px; letter-spacing: 2px; }
.score-box { text-align: right; white-space: nowrap; }
.score-box .score { font-size: 34px; font-weight: 800; color: #2e7d32; }
.score-box .label { font-size: 15px; color: #6b7b70; }
.combo { color: #ff6d00; font-weight: 800; font-size: 20px; }

.progress { height: 14px; background: #e0eee0; border-radius: 999px; overflow: hidden; margin-bottom: 18px; }
.progress > div { height: 100%; background: #66bb6a; width: 0; transition: width .3s; }

/* 문제 카드 */
.q-card { background: #fff; border-radius: 24px; padding: 26px 22px; box-shadow: 0 6px 20px rgba(0,0,0,0.1); text-align: center; }
.q-num { color: #8aa; font-size: 18px; margin-bottom: 6px; }
.q-text { font-size: 32px; font-weight: 800; line-height: 1.4; margin: 6px 0 18px; }
.q-image { max-width: 100%; max-height: 320px; border-radius: 18px; margin: 0 auto 18px; display: block; box-shadow: 0 4px 12px rgba(0,0,0,0.15); }

/* 보기 버튼 — 아주 크게 */
.options { display: grid; gap: 16px; }
.options.ox { grid-template-columns: 1fr 1fr; }
.opt-btn {
  min-height: 84px; font-size: 30px; font-weight: 800; border: 3px solid #c8e6c9; border-radius: 20px;
  background: #fff; color: #223326; cursor: pointer; padding: 16px; transition: transform .08s;
}
.opt-btn:hover { border-color: #66bb6a; }
.opt-btn:active { transform: scale(0.98); }
.opt-btn.correct { background: #66bb6a; color: #fff; border-color: #43a047; }
.opt-btn.wrong { background: #ef9a9a; color: #fff; border-color: #e57373; }
.opt-btn:disabled { cursor: default; }
.opt-btn .ox-mark { font-size: 46px; display: block; }

/* 피드백 */
.feedback { text-align: center; margin-top: 20px; min-height: 60px; }
.feedback .big { font-size: 40px; font-weight: 800; }
.feedback .ok { color: #2e7d32; }
.feedback .cheer { color: #ff8f00; }
.feedback .explain { font-size: 20px; color: #55665c; margin-top: 6px; }
.next-btn { margin-top: 18px; }
.next-btn button { min-height: 72px; font-size: 26px; font-weight: 800; width: 100%; border: none; border-radius: 18px; background: #ff9800; color: #fff; cursor: pointer; }

/* 정답 축하 오버레이 */
.celebrate { position: fixed; inset: 0; pointer-events: none; display: flex; align-items: center; justify-content: center; font-size: 120px; opacity: 0; }
.celebrate.show { animation: pop 1s ease; }
@keyframes pop { 0%{opacity:0; transform: scale(0.3)} 30%{opacity:1; transform: scale(1.2)} 70%{opacity:1; transform: scale(1)} 100%{opacity:0; transform: scale(1.1)} }

/* 입장 화면 (숫자패드) */
.enter-card { background: #fff; border-radius: 24px; padding: 26px 22px; box-shadow: 0 6px 20px rgba(0,0,0,0.1); text-align: center; max-width: 420px; margin: 30px auto; }
.enter-card h1 { font-size: 30px; color: #2e7d32; }
.code-display { font-size: 52px; font-weight: 800; letter-spacing: 14px; min-height: 64px; color: #2e7d32; margin: 10px 0 4px; }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.keypad button { min-height: 78px; font-size: 34px; font-weight: 800; border: 3px solid #c8e6c9; border-radius: 18px; background: #f5fbf3; cursor: pointer; }
.keypad button:active { background: #c8e6c9; }
.keypad .wide { grid-column: span 1; }

/* 종료 카드 */
.result-card { background: #fff; border-radius: 24px; padding: 34px 24px; box-shadow: 0 6px 20px rgba(0,0,0,0.1); text-align: center; max-width: 460px; margin: 30px auto; }
.result-card .emoji { font-size: 80px; }
.result-card .big { font-size: 34px; font-weight: 800; color: #2e7d32; margin: 10px 0; }
.result-card .flowers { font-size: 34px; margin: 14px 0; }

.play-msg { text-align: center; color: #c62828; font-weight: 700; margin: 12px 0; min-height: 24px; }
.back-link { display: block; text-align: center; margin-top: 22px; color: #6b7b70; font-size: 18px; }
.hidden { display: none !important; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 16px 22px; font-size: 24px; font-weight: 800; border: none; border-radius: 18px; background: #4caf50; color: #fff; cursor: pointer; text-decoration: none; }
.btn.big { font-size: 26px; padding: 18px; }
.btn.block { width: 100%; }
.muted { color: #6b7b70; font-size: 18px; }
