* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  background: linear-gradient(180deg, #BDE8FF 0%, #DFF6E3 70%, #E8F8E8 100%);
  min-height: 100vh;
  touch-action: manipulation;
  color: #3A4A3E;
}

.app {
  max-width: 760px;
  margin: 0 auto;
  padding: 16px 16px 40px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 4px 12px;
}

h1 {
  font-size: 26px;
  margin: 0;
}

.badges { display: flex; align-items: center; gap: 8px; }

.badge {
  background: #E8F8EC;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 16px;
  font-weight: 600;
  color: #3E7D49;
  box-shadow: 0 2px 6px rgba(60, 100, 70, 0.12);
}

.badge-streak { background: #FFF0DE; color: #D9663A; }

.parent-btn {
  position: relative;
  border: none;
  background: rgba(255, 255, 255, 0.6);
  color: #6B7E70;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  cursor: pointer;
}

.parent-btn.alert::after {
  content: "";
  position: absolute;
  top: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #E24B4A;
  border: 2px solid #FFFFFF;
}

.save-box {
  background: #F0F6FB;
  border-radius: 16px;
  padding: 12px 14px;
  margin: 12px 0;
  text-align: left;
}

.save-box h3 { font-size: 17px; margin: 0 0 6px; color: #3E6B96; }
.save-box .hint { color: #7A93A8; }
.save-box textarea { font-size: 13px; word-break: break-all; }

.ai-box { background: #F4F0FB; }
.ai-box h3 { color: #6B4FA8; }
.ai-box .hint { color: #8E7BB8; }

.ai-status {
  font-size: 14px;
  color: #6B4FA8;
  min-height: 20px;
  margin-top: 8px;
  text-align: left;
  line-height: 1.5;
}

.scene-card, .tasks-card {
  background: #FFFFFF;
  border-radius: 28px;
  padding: 18px;
  box-shadow: 0 4px 16px rgba(60, 100, 70, 0.12);
  margin-bottom: 16px;
}

.scene-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #EFFAFF 0%, #FDFFF8 70%, #F4FCEF 100%);
}

.cloud {
  position: absolute;
  font-size: 36px;
  opacity: 0.85;
  pointer-events: none;
  animation: drift 42s linear infinite;
}

.cloud.c1 { top: 12px; left: -60px; }
.cloud.c2 { top: 56px; left: -140px; font-size: 25px; animation-duration: 58s; }

@keyframes drift {
  from { transform: translateX(0); }
  to { transform: translateX(950px); }
}

#scene3d { display: flex; justify-content: center; width: 100%; }
#scene3d canvas { border-radius: 20px; touch-action: pan-y; }

.bubble {
  position: relative;
  background: #FFF8E1;
  border: 2px solid #F4DFA0;
  border-radius: 18px;
  padding: 12px 16px;
  font-size: 19px;
  text-align: center;
  margin: 0 auto 6px;
  max-width: 460px;
}

.bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -12px;
  transform: translateX(-50%);
  border: 10px solid transparent;
  border-top-color: #F4DFA0;
  border-bottom: none;
}

.scene { display: flex; justify-content: center; }
.scene svg { width: min(78vw, 340px); height: auto; }

.egg { transform-box: fill-box; transform-origin: 50% 92%; animation: wobble 3.4s ease-in-out infinite; }
.egg.excited { animation: wobble 1.1s ease-in-out infinite; }
.egg.hatching { animation: shake 0.12s linear infinite; }
.egg.poked { animation: pokejump 0.55s ease; }

@keyframes wobble {
  0%, 100% { transform: rotate(0deg) scale(1, 1); }
  40% { transform: rotate(0deg) scale(1, 1); }
  46% { transform: rotate(-3.5deg) scale(0.985, 1.015); }
  52% { transform: rotate(3.5deg) scale(1.015, 0.985); }
  58% { transform: rotate(0deg) scale(1, 1); }
}

@keyframes shake {
  0% { transform: rotate(-4deg) translateX(-2px); }
  50% { transform: rotate(4deg) translateX(2px); }
  100% { transform: rotate(-4deg) translateX(-2px); }
}

.crack { display: none; }
.crack.show { display: inline; }

.sparks path { transform-box: fill-box; transform-origin: center; animation: twinkle 1.8s ease-in-out infinite; }
.sparks path:nth-child(2) { animation-delay: 0.6s; }
.sparks path:nth-child(3) { animation-delay: 1.1s; }

@keyframes twinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.15); }
}

.dino2 #d-all {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: breathe 3.2s ease-in-out infinite;
}

.dino2.super #d-all { animation: hop2 0.85s ease-in-out infinite; }
.dino2.poked #d-all { animation: pokejump 0.55s ease; }

@keyframes breathe {
  0%, 100% { transform: scale(1, 1); }
  50% { transform: scale(1.015, 0.985); }
}

@keyframes hop2 {
  0%, 100% { transform: translateY(0) scale(1, 1); }
  12% { transform: translateY(0) scale(1.08, 0.9); }
  45% { transform: translateY(-30px) scale(0.95, 1.06); }
  78% { transform: translateY(0) scale(1.06, 0.93); }
}

@keyframes pokejump {
  0% { transform: translateY(0) scale(1, 1); }
  20% { transform: translateY(0) scale(1.12, 0.85); }
  55% { transform: translateY(-26px) scale(0.92, 1.1); }
  100% { transform: translateY(0) scale(1, 1); }
}

#d-tail {
  transform-box: fill-box;
  transform-origin: 10% 60%;
  animation: wag 2.4s ease-in-out infinite;
}

.dino2.super #d-tail { animation-duration: 0.5s; }

@keyframes wag {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(9deg); }
}

#d-head {
  transform-box: fill-box;
  transform-origin: 50% 88%;
  animation: headtilt 5.2s ease-in-out infinite;
}

@keyframes headtilt {
  0%, 100% { transform: rotate(-1.6deg); }
  50% { transform: rotate(1.6deg); }
}

#d-armL, #d-armR { transform-box: fill-box; transform-origin: 50% 12%; }
#d-armL { animation: armSwayL 3.2s ease-in-out infinite; }
#d-armR { animation: armSwayR 3.2s ease-in-out infinite; }

@keyframes armSwayL {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(7deg); }
}

@keyframes armSwayR {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-7deg); }
}

.dino2.super #d-armL { animation: waveL 0.4s ease-in-out infinite alternate; }
.dino2.super #d-armR { animation: waveR 0.4s ease-in-out infinite alternate; }

@keyframes waveL {
  from { transform: rotate(-8deg); }
  to { transform: rotate(40deg); }
}

@keyframes waveR {
  from { transform: rotate(8deg); }
  to { transform: rotate(-40deg); }
}

#dino { transform-box: fill-box; transform-origin: 50% 100%; }
#dino.stage2 { transform: scale(1.1); }
#dino.stage3 { transform: scale(1.22); }
#dino.evolving { animation: evolve-spin 2s ease; }

@keyframes evolve-spin {
  0% { transform: scale(1) rotate(0deg); }
  45% { transform: scale(1.4) rotate(360deg); }
  100% { transform: scale(1) rotate(720deg); }
}

.wing { transform-box: fill-box; }
.wingL { transform-origin: 95% 65%; animation: flapL 1.7s ease-in-out infinite alternate; }
.wingR { transform-origin: 5% 65%; animation: flapR 1.7s ease-in-out infinite alternate; }
.dino2.super .wingL, .dino2.super .wingR { animation-duration: 0.35s; }

@keyframes flapL {
  from { transform: rotate(-4deg); }
  to { transform: rotate(14deg); }
}

@keyframes flapR {
  from { transform: rotate(4deg); }
  to { transform: rotate(-14deg); }
}

.dino2 .crest { fill: #FF9E80; }
.dino2.branch-math .crest { fill: #B79CEC; }
.dino2.branch-english .crest { fill: #7EC8F2; }
.dino2.branch-chinese .crest { fill: #FF9E80; }
.dino2.worn-gold .crest { fill: #FFD24A; }

.evo-flash {
  position: fixed;
  inset: 0;
  background: #FFFFFF;
  z-index: 90;
  pointer-events: none;
  animation: flashfade 1.2s ease forwards;
}

@keyframes flashfade {
  0% { opacity: 0; }
  20% { opacity: 0.95; }
  100% { opacity: 0; }
}

.eye { transform-box: fill-box; transform-origin: center; animation: blink 4.6s ease-in-out infinite; }

@keyframes blink {
  0%, 91%, 100% { transform: scaleY(1); }
  94% { transform: scaleY(0.08); }
  97% { transform: scaleY(1); }
}

.zzz {
  font-size: 22px;
  font-weight: 700;
  fill: #8FB6D9;
  transform-box: fill-box;
  animation: zfloat 2.8s ease-in-out infinite;
}

.zzz.z2 { font-size: 16px; animation-delay: 1.1s; }

@keyframes zfloat {
  0% { opacity: 0; transform: translateY(6px); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-12px); }
}

.progress { text-align: center; margin-top: 8px; }
.progress-label { font-size: 17px; color: #6B7E70; margin-bottom: 8px; }

.egg-dots { display: flex; justify-content: center; gap: 12px; }

.egg-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #EDF3ED;
  border: 2px solid #CFE3CF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.egg-dot.filled { background: #7ED483; border-color: #5BBF6B; }

.tasks-card h2 {
  font-size: 21px;
  margin: 4px 6px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.task-count { font-size: 17px; color: #6B7E70; font-weight: 600; }

.tasks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}

.task {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #F7FAF7;
  border: 3px solid #E3EDE3;
  border-radius: 24px;
  padding: 16px 18px;
  font-size: 22px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 0.1s ease, background 0.2s ease, border-color 0.2s ease;
}

.task:active { transform: scale(0.97); }
.task.done { background: #E9FBE7; border-color: #7ED483; }
.task.done .task-name { color: #4F9E5C; }

.task-icon { font-size: 36px; line-height: 1; }
.task.done .task-icon { animation: wiggle 0.5s ease; }

@keyframes wiggle {
  0% { transform: rotate(0); }
  30% { transform: rotate(-16deg) scale(1.15); }
  60% { transform: rotate(12deg); }
  100% { transform: rotate(0); }
}
.task-name { flex: 1; font-weight: 600; }

.task-check {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 3px solid #CFE3CF;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: transparent;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.task.done .task-check {
  background: #5BBF6B;
  border-color: #5BBF6B;
  color: #FFFFFF;
  animation: pop 0.3s ease;
}

@keyframes pop {
  0% { transform: scale(0.5); }
  70% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.badge-stars { background: #FFF6DC; color: #B98212; }

.adv-btn {
  display: block;
  width: 100%;
  margin-top: 14px;
  border: none;
  background: #FFB347;
  color: #6B4400;
  font-size: 20px;
  font-weight: 700;
  font-family: inherit;
  padding: 16px;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 0 4px 0 #E08F1F;
}

.adv-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #E08F1F; }
.adv-btn:disabled {
  background: #EDE7DA;
  color: #A89F8D;
  box-shadow: none;
  cursor: default;
  transform: none;
}

.adv-overlay { background: rgba(40, 60, 45, 0.6); }

.adv-box {
  background: linear-gradient(180deg, #D8F1FF 0%, #F2FBF0 100%);
  border-radius: 26px;
  width: min(560px, 94vw);
  padding: 16px 18px 20px;
  box-shadow: 0 12px 44px rgba(0, 0, 0, 0.25);
}

.adv-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 700;
  color: #4F6E57;
  margin-bottom: 6px;
}

.adv-exit {
  border: none;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 17px;
  color: #6B7E70;
  cursor: pointer;
}

.adv-scene svg { width: 100%; height: auto; border-radius: 18px; }

#advDino { transform-box: fill-box; transform-origin: 50% 100%; }
#advDino.walking { animation: walkbob 0.5s ease-in-out infinite; }
#advDino.attack { animation: lunge 0.5s ease; }

@keyframes walkbob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes lunge {
  0%, 100% { transform: translateX(0); }
  45% { transform: translateX(70px) rotate(-6deg); }
}

#advDino .leg { transform-box: fill-box; transform-origin: 50% 8%; }
#advDino.walking .legA { animation: legswing 0.5s ease-in-out infinite; }
#advDino.walking .legB { animation: legswing 0.5s ease-in-out infinite reverse; }

@keyframes legswing {
  0%, 100% { transform: rotate(16deg); }
  50% { transform: rotate(-16deg); }
}

.monster .m-body {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: monsteridle 1.2s ease-in-out infinite;
}

@keyframes monsteridle {
  0%, 100% { transform: scale(1, 1); }
  50% { transform: scale(1.04, 0.94); }
}

.monster.m-math .m-fill { fill: #B79CEC; }
.monster.m-chinese .m-fill { fill: #FF9E80; }
.monster.m-english .m-fill { fill: #7EC8F2; }

.monster.poof .m-body { animation: poof 0.6s ease forwards; }

@keyframes poof {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

.monster.flee .m-body { animation: flee 0.9s ease forwards; }

@keyframes flee {
  0% { transform: translateX(0); }
  100% { transform: translateX(110px); opacity: 0; }
}

.adv-msg {
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  color: #4F6E57;
  padding: 10px 0 4px;
  min-height: 30px;
}

.adv-quiz {
  background: #FFFFFF;
  border-radius: 18px;
  padding: 14px 16px;
  margin-top: 8px;
}

.adv-q {
  font-size: 23px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  color: #3A4A3E;
}

.adv-opts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.adv-opt {
  border: 3px solid #E3EDE3;
  background: #F7FAF7;
  border-radius: 16px;
  font-size: 21px;
  font-weight: 600;
  font-family: inherit;
  padding: 14px 8px;
  cursor: pointer;
  color: #3A4A3E;
}

.adv-opt:active { transform: scale(0.97); }
.adv-opt.right { background: #E9FBE7; border-color: #5BBF6B; color: #3E7D49; }
.adv-opt.wrong { background: #FDECEC; border-color: #E89B9B; color: #B04A4A; animation: shakeX 0.3s ease; }
.adv-opt:disabled { cursor: default; }

@keyframes shakeX {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.adv-feedback {
  text-align: center;
  font-size: 17px;
  font-weight: 600;
  color: #8A6B2E;
  min-height: 24px;
  margin-top: 10px;
}

.adv-end { text-align: center; padding: 16px 0 4px; }

.adv-end-text { font-size: 20px; line-height: 1.7; margin-bottom: 16px; }
.adv-end-text small { font-size: 15px; color: #6B7E70; }

.ward-stats {
  background: #FFF9EC;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 15px;
  color: #8A6B2E;
  line-height: 1.8;
  text-align: left;
}

.ward-stats b { display: block; margin-bottom: 4px; font-size: 16px; }

.practice-box { min-height: auto; }
.practice-loading {
  text-align: center;
  font-size: 18px;
  color: #6B7E70;
  padding: 48px 12px;
}

.dict-hint { text-align: center; font-size: 17px; color: #6B7E70; margin: 8px 0 14px; }
.dict-index { text-align: center; font-size: 22px; font-weight: 700; color: #3A4A3E; margin-bottom: 16px; }

.dict-play {
  display: block;
  width: 100%;
  border: none;
  background: #7EC8F2;
  color: #0C447C;
  font-size: 24px;
  font-weight: 700;
  font-family: inherit;
  padding: 26px;
  border-radius: 20px;
  cursor: pointer;
  margin-bottom: 14px;
  box-shadow: 0 4px 0 #4F9ED1;
}

.dict-play:active { transform: translateY(3px); box-shadow: 0 1px 0 #4F9ED1; }

.dict-answer { text-align: center; }
.dict-answer-title { font-size: 18px; font-weight: 600; color: #3A4A3E; margin-bottom: 14px; }

.dict-words {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.dict-word {
  background: #F7FAF7;
  border: 2px solid #E3EDE3;
  border-radius: 14px;
  padding: 14px 6px;
  font-size: 22px;
  font-weight: 600;
  color: #3A4A3E;
}

.wardrobe-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  border: none;
  background: #FFFFFF;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(60, 100, 70, 0.18);
}

.wardrobe-btn:active { transform: scale(0.92); }

.basket {
  margin-top: 14px;
  background: #FFF9EC;
  border: 2px solid #F4E3BC;
  border-radius: 20px;
  padding: 12px 16px;
}

.basket-title {
  font-size: 17px;
  font-weight: 600;
  color: #8A6B2E;
  margin-bottom: 8px;
}

.basket-count { color: #B99A55; font-size: 15px; margin-left: 6px; }

.basket-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  min-height: 52px;
  align-items: center;
}

.basket-hint { font-size: 16px; color: #B99A55; }

.fruit {
  border: none;
  background: #FFFFFF;
  border-radius: 16px;
  width: 56px;
  height: 52px;
  font-size: 30px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(140, 110, 40, 0.15);
  transition: transform 0.12s ease;
}

.fruit:active { transform: scale(1.15); }
.fruit.eaten { opacity: 0; pointer-events: none; transition: opacity 0.3s; }

.fly-fruit {
  position: fixed;
  font-size: 30px;
  z-index: 80;
  pointer-events: none;
  transition: transform 0.6s cubic-bezier(0.5, -0.2, 0.7, 1), opacity 0.6s;
}

.heart {
  position: fixed;
  font-size: 22px;
  color: #F2779B;
  z-index: 80;
  pointer-events: none;
  opacity: 0;
  animation: heartrise 1.4s ease-out forwards;
}

@keyframes heartrise {
  0% { opacity: 0; transform: translateY(0) scale(0.6); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-70px) scale(1.2); }
}

.dino2.eating #d-head { animation: chomp 0.9s ease; }

@keyframes chomp {
  0%, 100% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(-2deg) scale(1.04, 0.96); }
  50% { transform: rotate(1.5deg) scale(0.98, 1.03); }
  75% { transform: rotate(-1.5deg) scale(1.03, 0.97); }
}

.task.pending { background: #FFF7E3; border-color: #F4CE7E; }
.task.pending .task-name { color: #9A7A2E; }

.task-sub {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: #B99A55;
  margin-top: 2px;
}

.task.pending .task-check {
  border-color: #F4CE7E;
  background: #FFF3D2;
  color: #B98212;
  font-size: 20px;
}

.pending-box {
  background: #FFF7E3;
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 12px;
  text-align: left;
}

.pending-box h3 { font-size: 17px; margin: 0 0 8px; color: #8A6B2E; }

.pending-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 17px;
  padding: 8px 4px;
  border-bottom: 1px solid #F4E3BC;
}

.pending-row:last-of-type { border-bottom: none; }
.pending-row small { color: #B99A55; }
.pending-empty { font-size: 15px; color: #B99A55; padding: 4px; }

.big-btn.small { padding: 10px 16px; font-size: 16px; margin-top: 8px; width: 100%; }

.ward-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #F7FAF7;
  border-radius: 16px;
  padding: 12px 16px;
  margin-bottom: 10px;
  text-align: left;
}

.ward-item.locked { opacity: 0.7; }
.ward-icon { font-size: 30px; }
.ward-name { flex: 1; font-size: 18px; font-weight: 600; }
.ward-name small { display: block; font-size: 13px; font-weight: 400; color: #8A9A8E; margin-top: 2px; }

.ward-btn {
  border: 2px solid #5BBF6B;
  background: #FFFFFF;
  color: #4F9E5C;
  border-radius: 12px;
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.ward-btn.on { background: #5BBF6B; color: #FFFFFF; }

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(40, 60, 45, 0.45);
  display: flex;
  padding: 20px;
  z-index: 50;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* margin:auto 居中，键盘弹出时弹窗可上滑、不被遮挡（配合 visualViewport 适配） */
.overlay > .modal,
.overlay > .adv-box {
  margin: auto;
}

.modal {
  background: #FFFFFF;
  border-radius: 24px;
  padding: 26px 24px;
  width: min(440px, 92vw);
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal h2 { margin: 0 0 10px; font-size: 24px; }
.modal p { font-size: 18px; margin: 6px 0 14px; }
.modal-emoji { font-size: 44px; margin-bottom: 6px; }
.modal .hint { font-size: 14px; color: #8A9A8E; text-align: left; }

.modal input, .modal textarea {
  width: 100%;
  font-size: 20px;
  padding: 12px 14px;
  border: 2px solid #CFE3CF;
  border-radius: 14px;
  margin-bottom: 14px;
  font-family: inherit;
}

.modal textarea { font-size: 17px; line-height: 1.7; }

.row { display: flex; gap: 10px; justify-content: center; margin-top: 4px; }
.row .big-btn { flex: 1; }

.big-btn {
  border: none;
  background: #5BBF6B;
  color: #FFFFFF;
  font-size: 18px;
  font-weight: 600;
  padding: 14px 20px;
  border-radius: 16px;
  cursor: pointer;
  font-family: inherit;
}

.big-btn:active { transform: scale(0.97); }
.big-btn.ghost { background: #EDF3ED; color: #4F6E57; }
.big-btn.danger { background: #F3DCD6; color: #B0492F; }

.day-banner {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: #FFD24A;
  color: #6B4A00;
  font-size: 19px;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(140, 100, 0, 0.3);
  z-index: 60;
  animation: banner-in 0.4s ease;
}

@keyframes banner-in {
  from { transform: translateX(-50%) translateY(-80px); }
  to { transform: translateX(-50%) translateY(0); }
}

.confetti {
  position: fixed;
  top: -16px;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  z-index: 70;
  pointer-events: none;
  animation: confetti-fall linear forwards;
}

@keyframes confetti-fall {
  to { transform: translateY(110vh) rotate(720deg); }
}

[hidden] { display: none !important; }
