/* Dog Translator web — original rebuild styling (warm orange / cream). */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: linear-gradient(180deg, #FFF4E8 0%, #FFE3C7 100%);
  color: #33241a;
  -webkit-tap-highlight-color: transparent;
}
#app { max-width: 480px; margin: 0 auto; min-height: 100%; }
.screen { padding: 24px 20px 40px; display: flex; flex-direction: column; min-height: 100vh; }

/* welcome */
.hero { font-size: 64px; text-align: center; margin-top: 10vh; }
h1 { font-size: 30px; line-height: 1.25; text-align: center; margin-top: 12px; }
.sub { text-align: center; color: #7c6a5c; margin-top: 10px; font-size: 15px; line-height: 1.5; }
.cta {
  margin: 26px auto 0; display: block; width: max-content;
  background: linear-gradient(90deg, #FFB13D, #FF7A3D);
  color: #fff; font-size: 17px; font-weight: 700;
  border: none; border-radius: 999px; padding: 15px 34px; cursor: pointer;
}
.cta.small { font-size: 15px; padding: 11px 24px; margin-top: 14px; }
.ghost {
  margin: 12px auto 0; display: block; background: none; border: none;
  color: #B25A2B; font-size: 14px; font-weight: 600; cursor: pointer;
}
.ghost.back { margin: 0 0 8px; }

/* breed picker */
.title { text-align: center; margin: 8px 0 16px; }
.breed-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.breed-card {
  background: #fff; border: 1px solid #f0dcc6; border-radius: 18px;
  padding: 14px; text-align: left; cursor: pointer;
  display: flex; flex-direction: column; gap: 4px; min-height: 118px;
}
.breed-card:active { transform: scale(0.97); }
.breed-emoji { font-size: 26px; }
.breed-name { font-weight: 700; font-size: 15px; }
.breed-note { font-size: 12px; color: #8a7566; line-height: 1.35; }

/* translator */
.tr-header { display: flex; justify-content: center; margin-bottom: 10px; }
.breed-chip {
  background: #fff; border: 1px solid #f0dcc6; border-radius: 999px;
  padding: 9px 16px; font-size: 14px; font-weight: 700; cursor: pointer;
}
.breed-chip small { color: #B25A2B; font-weight: 600; margin-left: 6px; }
.mode-switch { display: flex; gap: 8px; justify-content: center; margin-bottom: 18px; }
.mode {
  border: 1px solid #f0dcc6; background: #fff; color: #8a7566;
  border-radius: 999px; padding: 9px 16px; font-size: 14px; font-weight: 600; cursor: pointer;
}
.mode.active { background: #33241a; color: #fff; border-color: #33241a; }
.stage { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.mic {
  width: 130px; height: 130px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(160deg, #FFB13D, #FF7A3D);
  box-shadow: 0 14px 34px rgba(255, 122, 61, 0.45);
  font-size: 48px; color: #fff;
}
.mic:active { transform: scale(0.96); }
.mic-label { margin-top: 16px; color: #7c6a5c; font-size: 15px; }
.wave { display: flex; gap: 4px; align-items: center; height: 60px; }
.wave-bar { width: 5px; border-radius: 3px; background: #FF7A3D; height: 10px; }
.wave.analyzing .wave-bar { background: #B25A2B; }
.result-card {
  background: #fff; border-radius: 22px; padding: 22px; width: 100%;
  box-shadow: 0 10px 26px rgba(51, 36, 26, 0.12); text-align: center;
}
.result-emotion { font-size: 17px; font-weight: 800; color: #B25A2B; }
.result-text { margin-top: 10px; font-size: 18px; line-height: 1.5; font-weight: 500; }
.human-input {
  width: 100%; border: 1px solid #f0dcc6; border-radius: 16px;
  padding: 15px; font-size: 15px; background: #fff; outline: none;
}
.human-out { width: 100%; margin-top: 8px; }

/* soundboard */
.mastered-line { text-align: center; color: #8a7566; font-size: 13px; margin-bottom: 12px; }
.cat-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 10px; }
.chip {
  flex: 0 0 auto; border: 1px solid #f0dcc6; background: #fff;
  border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 600;
  color: #8a7566; cursor: pointer;
}
.chip.active { background: #FF7A3D; border-color: #FF7A3D; color: #fff; }
.sound-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sound-card {
  position: relative; background: #fff; border: 1px solid #f0dcc6;
  border-radius: 16px; padding: 10px 6px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.sound-card img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; }
.sound-card span { font-size: 11.5px; font-weight: 600; text-align: center; line-height: 1.25; }
.sound-card.done { border-color: #FFB13D; background: #FFF7EC; }
.tick {
  position: absolute; top: 6px; right: 8px; color: #2e9e5b; font-size: 13px;
}
