/* Trixie — Cozy Mobile Virtual Pet Stylesheet (Definitive Edition) */

:root {
  --bg-room: #fef8ee;
  --bg-room-night: #1a1b30;
  --wall-color: #f7ede2;
  --floor-color: #e3d5ca;
  --text-color: #5d4a44;
  --text-muted: #9c8e88;

  --color-food: #f4a261;
  --color-hygiene: #48cae4;
  --color-energy: #ffd166;
  --color-joy: #f72585;
  --color-pet: #f2cc8f;
  --color-pet-dark: #dfaa63;
  --color-blush: #f4978e;

  --font-main: 'Fredoka', 'Nunito', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --shadow-soft: 0 8px 24px rgba(93, 74, 68, 0.08);
  --shadow-btn: 0 6px 14px rgba(93, 74, 68, 0.12);
  --radius-pill: 50px;
  --radius-card: 28px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: var(--font-main);
  background: #ecdcd3;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Mobile Frame Container (Max 440px, safe-area aware) */
.mobile-container {
  width: 100%;
  max-width: 440px;
  height: 100dvh;
  max-height: 920px;
  background: var(--bg-room);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  transition: background 0.6s ease;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (min-width: 480px) {
  .mobile-container {
    height: 94vh;
    border-radius: 40px;
    border: 8px solid #ffffff;
  }
}

/* TOP NAV: Portachiavi & Meteo */
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 8px;
  z-index: 10;
}

.keychain-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-color);
  box-shadow: var(--shadow-btn);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.3s ease;
}

.keychain-pill:active {
  transform: scale(0.95);
}

.bt-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #b0bec5;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.bt-dot.connected {
  background: #2ec4b6;
  box-shadow: 0 0 8px #2ec4b6;
}

.bt-dot.connecting {
  background: #ffb703;
  box-shadow: 0 0 8px #ffb703;
  animation: blink 0.8s infinite alternate;
}

@keyframes blink {
  0% { opacity: 0.3; }
  100% { opacity: 1; }
}

.weather-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.9);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-color);
  box-shadow: var(--shadow-soft);
}

/* STATS ROW (Pou style circles) */
.stats-row {
  display: flex;
  justify-content: space-around;
  padding: 8px 16px 4px;
  z-index: 10;
}

.stat-bubble {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-ring {
  position: relative;
  width: 52px;
  height: 52px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-btn);
}

.circular-chart {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.circle-bg {
  fill: none;
  stroke: #f0eae1;
  stroke-width: 3.2;
}

.circle {
  fill: none;
  stroke-width: 3.2;
  stroke-linecap: round;
  transition: stroke-dasharray 0.5s ease;
}

.bar-food { stroke: var(--color-food); }
.bar-hygiene { stroke: var(--color-hygiene); }
.bar-energy { stroke: var(--color-energy); }
.bar-joy { stroke: var(--color-joy); }

.stat-icon {
  font-size: 1.3rem;
  z-index: 1;
}

.stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* ROOM & ENVIRONMENT */
.room {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 50% 45%, #fffdf9 0%, var(--wall-color) 80%);
  transition: background 0.6s ease;
}

/* Floor illusion */
.room::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 110px;
  background: var(--floor-color);
  border-top: 5px solid rgba(93, 74, 68, 0.08);
  z-index: 1;
  transition: background 0.6s ease;
}

/* Hanging Lamp Cord (Pou style pull cord) */
.lamp-cord {
  position: absolute;
  top: 0;
  right: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  z-index: 20;
  transition: transform 0.2s ease;
}

.lamp-cord:active {
  transform: translateY(12px);
}

.cord-string {
  width: 2px;
  height: 52px;
  background: #a89f91;
}

.cord-handle {
  width: 30px;
  height: 30px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin-top: -2px;
}

/* Window with sky & weather */
.window-frame {
  position: absolute;
  top: 20px;
  left: 24px;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #ffffff;
  border: 4px solid #fff;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.08), var(--shadow-soft);
  overflow: hidden;
  z-index: 2;
}

.sky {
  width: 100%;
  height: 100%;
  background: #bde0fe;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background 0.6s ease;
}

.sky-sun {
  font-size: 1.4rem;
  animation: floatSun 4s infinite ease-in-out;
}

.sky-cloud {
  position: absolute;
  bottom: 4px;
  right: 4px;
  font-size: 0.9rem;
  opacity: 0.8;
}

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

/* CHARACTER CONTAINER & SPEECH BUBBLE */
.character-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 5;
  cursor: pointer;
  position: relative;
}

.pet-speech-bubble {
  position: relative;
  margin-bottom: 22px;
  background: #ffffff;
  color: var(--text-color);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 8px 18px;
  border-radius: 20px;
  box-shadow: var(--shadow-btn);
  z-index: 15;
  pointer-events: none;
  animation: bounceBubble 2.5s infinite ease-in-out;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

.pet-speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px 6px 0;
  border-style: solid;
  border-color: #ffffff transparent;
}

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

/* TRIXIE CHARACTER */
.trixie-pet {
  position: relative;
  width: 160px;
  height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: cozyIdle 3s infinite ease-in-out;
  transform-origin: bottom center;
}

/* Idle organico vivace */
@keyframes cozyIdle {
  0%, 100% { transform: scale(1, 1) translateY(0) rotate(0deg); }
  25% { transform: scale(1.03, 0.97) translateY(2px) rotate(1.2deg); }
  50% { transform: scale(0.98, 1.03) translateY(-5px) rotate(0deg); }
  75% { transform: scale(1.02, 0.98) translateY(1px) rotate(-1.2deg); }
}

/* Salto felice / Coccole */
.trixie-pet.happy {
  animation: joyfulBounce 0.55s cubic-bezier(0.175, 0.885, 0.32, 1.275) infinite alternate !important;
}

@keyframes joyfulBounce {
  0% { transform: scale(1.08, 0.92) translateY(2px); }
  100% { transform: scale(0.94, 1.08) translateY(-20px); }
}

/* Animazione Carezza / Coccole (Petting amorevole e beato) */
.trixie-pet.petting {
  animation: cozyPetPurr 0.5s ease-in-out infinite alternate !important;
}

@keyframes cozyPetPurr {
  0% { transform: scale(1.04, 0.96) rotate(2deg) translateY(2px); }
  100% { transform: scale(0.97, 1.03) rotate(-2deg) translateY(-4px); }
}

.trixie-pet.petting .ear-left { transform: rotate(-34deg) translateY(3px) !important; }
.trixie-pet.petting .ear-right { transform: rotate(34deg) translateY(3px) !important; }

/* Masticazione pappa (Chewing) */
.trixie-pet.chewing,
.trixie-pet.eating {
  animation: chewMotion 0.3s ease-in-out infinite !important;
}

@keyframes chewMotion {
  0%, 100% { transform: scale(1.05, 0.95) translateY(2px); }
  50% { transform: scale(0.96, 1.05) translateY(-2px); }
}

/* Animazione Bagnetto (Bathing) */
.trixie-pet.bathing {
  animation: bathEnjoy 0.8s ease-in-out infinite alternate !important;
}

@keyframes bathEnjoy {
  0% { transform: scale(1.03, 0.97) rotate(-1deg); }
  100% { transform: scale(0.98, 1.02) rotate(1deg) translateY(-3px); }
}

/* Animazione Gioco (Playing Head-Boop) */
.trixie-pet.playing-squash {
  transform: scale(1.15, 0.85) translateY(10px) !important;
  transition: transform 0.15s ease-out;
}

.trixie-pet.playing-jump {
  transform: scale(0.88, 1.15) translateY(-36px) !important;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Ears dinamiche */
.pet-ear {
  position: absolute;
  top: -8px;
  width: 28px;
  height: 38px;
  background: var(--color-pet);
  border: 4px solid var(--color-pet-dark);
  border-radius: 50% 50% 20% 20%;
  z-index: 1;
  transform-origin: bottom center;
  transition: transform 0.2s ease;
}

.ear-left {
  left: 20px;
  animation: earLeftWiggle 3s infinite ease-in-out;
}

.ear-right {
  right: 20px;
  animation: earRightWiggle 3s infinite ease-in-out;
}

@keyframes earLeftWiggle {
  0%, 100% { transform: rotate(-24deg); }
  35% { transform: rotate(-30deg) scaleY(1.05); }
  70% { transform: rotate(-18deg) scaleY(0.96); }
}

@keyframes earRightWiggle {
  0%, 100% { transform: rotate(24deg); }
  35% { transform: rotate(18deg) scaleY(0.96); }
  70% { transform: rotate(30deg) scaleY(1.05); }
}

.trixie-pet.happy .ear-left { transform: rotate(-36deg) translateY(-4px); }
.trixie-pet.happy .ear-right { transform: rotate(36deg) translateY(-4px); }

/* Body Shape */
.pet-body {
  position: relative;
  width: 150px;
  height: 135px;
  background: var(--color-pet);
  border: 4px solid var(--color-pet-dark);
  border-radius: 70px 70px 60px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 
    inset 0 -12px 20px rgba(224, 176, 107, 0.65),
    inset 0 6px 12px rgba(255, 255, 255, 0.4);
  z-index: 2;
  overflow: hidden;
}

/* Eyes */
.pet-eyes {
  display: flex;
  gap: 32px;
  margin-top: 34px;
}

.eye {
  width: 28px;
  height: 34px;
  background: #231c1a;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  transition: height 0.12s ease, transform 0.1s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

.pupil {
  width: 100%;
  height: 100%;
  position: relative;
  transition: transform 0.15s ease-out;
}

.sparkle-main {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 10px;
  height: 10px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 3px #ffffff;
}

.sparkle-sub {
  position: absolute;
  bottom: 6px;
  left: 6px;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 50%;
}

.eye.blink {
  height: 3px !important;
  margin-top: 15px;
  background: #231c1a;
}

/* Occhi felici e coccolosi (Arco dolce verso l'alto ⌒ ⌒) */
.trixie-pet.happy .eye,
.trixie-pet.petting .eye,
.trixie-pet.bathing .eye {
  height: 10px;
  border-radius: 16px 16px 0 0;
  border: 4.5px solid #231c1a;
  border-bottom: none;
  background: transparent !important;
  margin-top: 14px;
  box-shadow: none;
}

.trixie-pet.happy .pupil,
.trixie-pet.petting .pupil,
.trixie-pet.bathing .pupil {
  display: none;
}

/* Cheeks (Blush) */
.pet-cheeks {
  position: relative;
  display: flex;
  gap: 74px;
  margin-top: -6px;
}

.blush {
  position: relative;
  width: 22px;
  height: 12px;
  background: var(--color-blush);
  border-radius: 50%;
  opacity: 0.75;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.trixie-pet.happy .blush,
.trixie-pet.petting .blush {
  opacity: 1;
  transform: scale(1.35);
  background: #ff6b8b;
  box-shadow: 0 0 12px rgba(255, 107, 139, 0.7);
}

/* Linee di masticazione carine sulle guanciotte */
.chew-lines {
  position: absolute;
  top: -2px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  pointer-events: none;
}

.chew-lines.chew-left {
  left: -14px;
}

.chew-lines.chew-right {
  right: -14px;
}

.chew-lines span {
  display: block;
  width: 11px;
  height: 2.5px;
  background: #231c1a;
  border-radius: 2px;
  opacity: 0.85;
  animation: chewLinePulse 0.28s infinite alternate;
}

@keyframes chewLinePulse {
  0% { transform: scaleX(0.7) rotate(0deg); opacity: 0.5; }
  100% { transform: scaleX(1.15) rotate(5deg); opacity: 1; }
}

/* MOUTH: Sorriso chiaro con linguetta rosa (MAI A U ROVESCIATA) */
.pet-mouth {
  position: relative;
  width: 30px;
  height: 18px;
  background: #231c1a;
  border-radius: 4px 4px 22px 22px;
  margin-top: -1px;
  overflow: hidden;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.pet-mouth .tongue {
  width: 20px;
  height: 11px;
  background: #ff6b8b;
  border-radius: 50% 50% 0 0;
  margin-bottom: -1px;
  transition: transform 0.2s ease;
}

/* Sorriso Coccole (Petting / Happy): tenero, dolce e sorridente */
.trixie-pet.happy .pet-mouth,
.trixie-pet.petting .pet-mouth {
  width: 36px;
  height: 20px;
  border-radius: 4px 4px 24px 24px;
  transform: scale(1.05);
}

.trixie-pet.happy .pet-mouth .tongue,
.trixie-pet.petting .pet-mouth .tongue {
  width: 24px;
  height: 13px;
}

/* Masticazione aperta/chiusa */
.trixie-pet.eating .pet-mouth {
  animation: mouthChomp 0.32s infinite ease-in-out;
}

@keyframes mouthChomp {
  0%, 100% { height: 14px; border-radius: 4px 4px 20px 20px; }
  50% { height: 26px; border-radius: 8px 8px 24px 24px; }
}

.pet-mouth.open {
  width: 34px;
  height: 28px;
  border-radius: 12px 12px 26px 26px;
  background: #1a1210;
}

.pet-mouth.open .tongue {
  width: 24px;
  height: 15px;
  transform: translateY(2px);
}

/* Dirt spot */
.dirt-spot {
  position: absolute;
  bottom: 12px;
  right: 14px;
  font-size: 1.3rem;
  animation: wobble 2s infinite ease-in-out;
}

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

/* Feet & Shadow */
.pet-feet {
  display: flex;
  gap: 52px;
  margin-top: -8px;
  z-index: 1;
}

.foot {
  width: 28px;
  height: 14px;
  background: var(--color-pet-dark);
  border-radius: 50% 50% 30% 30%;
}

.pet-shadow {
  width: 120px;
  height: 16px;
  background: rgba(93, 74, 68, 0.15);
  border-radius: 50%;
  margin-top: 6px;
  transition: transform 0.15s ease, width 0.15s ease;
}

/* ACTION BAR (Bottom Mobile Controls) */
.action-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 14px 20px 22px;
  background: #ffffff;
  border-top-left-radius: var(--radius-card);
  border-top-right-radius: var(--radius-card);
  box-shadow: 0 -8px 25px rgba(93, 74, 68, 0.06);
  z-index: 20;
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: #fdfaf6;
  border: 2px solid transparent;
  border-radius: 20px;
  padding: 10px 4px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}

.action-btn:hover {
  background: #fff;
  border-color: #f0eae1;
}

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

.btn-emoji {
  font-size: 1.5rem;
}

.btn-text {
  font-family: var(--font-main);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-color);
}

/* Toast Message */
.cozy-toast {
  position: absolute;
  top: 75px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: #2b2523;
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 8px 18px;
  border-radius: 30px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 100;
  white-space: nowrap;
}

.cozy-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* NIGHT MODE COZY */
body.night-mode .mobile-container {
  background: var(--bg-room-night);
}

body.night-mode .room {
  background: radial-gradient(circle at 50% 45%, #2a2c4e 0%, var(--bg-room-night) 80%);
}

body.night-mode .room::after {
  background: #151628;
  border-color: rgba(255, 255, 255, 0.05);
}

body.night-mode .sky {
  background: #0f1224;
}

body.night-mode .sky-sun {
  display: none;
}

body.night-mode .sky::before {
  content: '🌙';
  font-size: 1.3rem;
}

body.night-mode .pet-speech-bubble {
  background: #2d2e49;
  color: #fff;
}

body.night-mode .pet-speech-bubble::after {
  border-color: #2d2e49 transparent;
}

body.night-mode .action-bar {
  background: #191a2e;
}

body.night-mode .action-btn {
  background: #242642;
}

body.night-mode .btn-text {
  color: #e0e1f0;
}

/* Floating Particles (Hearts, Food, Bubbles) */
.floating-particle {
  position: absolute;
  pointer-events: none;
  z-index: 25;
  animation: floatUp 1.2s forwards ease-out;
}

@keyframes floatUp {
  0% { opacity: 1; transform: translate(0, 0) scale(0.6); }
  50% { opacity: 1; transform: translate(var(--dx), -40px) scale(1.1); }
  100% { opacity: 0; transform: translate(var(--dx), -80px) scale(0.8); }
}

.hidden {
  display: none !important;
}

/* ==========================================
   VIEW SCREENS & CONNECTION PORTAL
   ========================================== */
.view-screen {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.connection-view {
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(circle at center 20%, #fffbf5, #f5ebd9);
  text-align: center;
  overflow-y: auto;
}

.conn-card {
  width: 100%;
  max-width: 360px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 36px;
  padding: 36px 24px 28px;
  box-shadow: 0 16px 40px rgba(93, 74, 68, 0.09);
  border: 3px solid #f2e3d5;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mascot-badge {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #fdf0d5;
  border: 4px solid #f2cc8f;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(242, 204, 143, 0.35);
}

.conn-mascot-gif {
  width: 84px;
  height: 72px;
  object-fit: contain;
  image-rendering: pixelated;
}

.conn-title {
  font-family: var(--font-main);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.conn-subtitle {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 26px;
  max-width: 260px;
}

.btn-connect-primary {
  width: 100%;
  max-width: 280px;
  background: linear-gradient(135deg, #f4a261, #e76f51);
  color: #ffffff;
  border: none;
  border-radius: 50px;
  padding: 16px 28px;
  font-family: var(--font-main);
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(231, 111, 81, 0.35);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease;
}

.btn-connect-primary:active {
  transform: scale(0.96);
  box-shadow: 0 4px 12px rgba(231, 111, 81, 0.25);
}

.btn-connect-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(231, 111, 81, 0.4);
}

.btn-conn-icon {
  font-size: 1.3rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.conn-status {
  margin-top: 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  min-height: 20px;
  transition: color 0.3s ease;
}

.conn-status.searching {
  color: #e76f51;
  animation: pulseText 1.2s infinite alternate;
}

@keyframes pulseText {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}

.conn-tips {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px dashed #eedcd0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.tip-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  color: #7d6b64;
  line-height: 1.35;
}

.tip-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

/* ==========================================
   PROPS & ANIMAZIONI SCENICHE COZY
   ========================================== */

/* 1. Bagnetto: Soffione Doccia, Getti d'Acqua & Vapore */
.prop-shower {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 30;
  pointer-events: none;
  animation: showerSlideIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes showerSlideIn {
  0% { transform: translate(-50%, -40px) scale(0.7); opacity: 0; }
  100% { transform: translate(-50%, 0) scale(1); opacity: 1; }
}

.shower-head {
  font-size: 2.8rem;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25));
}

.water-spray {
  display: flex;
  gap: 8px;
  margin-top: -6px;
}

.water-stream {
  width: 3px;
  height: 38px;
  background: linear-gradient(180deg, rgba(82, 182, 242, 0.95), rgba(42, 157, 244, 0.15));
  border-radius: 3px;
  animation: waterRain 0.35s linear infinite;
}

.stream-1 { animation-delay: 0s; }
.stream-2 { animation-delay: 0.08s; }
.stream-3 { animation-delay: 0.16s; }
.stream-4 { animation-delay: 0.1s; }
.stream-5 { animation-delay: 0.22s; }

@keyframes waterRain {
  0% { transform: translateY(-8px) scaleY(0.6); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateY(22px) scaleY(1.1); opacity: 0; }
}

/* Bolle di sapone sulle orecchie */
.soap-bubble {
  position: absolute;
  top: -14px;
  font-size: 1.4rem;
  pointer-events: none;
  z-index: 10;
  animation: soapFoamWobble 0.7s infinite alternate ease-in-out;
}

.soap-bubble.bubble-left { left: -4px; }
.soap-bubble.bubble-right { right: -4px; animation-delay: 0.35s; }

@keyframes soapFoamWobble {
  0% { transform: scale(0.9) rotate(-6deg); }
  100% { transform: scale(1.15) rotate(6deg); }
}

/* Vapore acqueo caldo fluttuante */
.steam-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 15;
  overflow: hidden;
}

.steam-puff {
  position: absolute;
  font-size: 2.2rem;
  opacity: 0.6;
  filter: blur(4px);
  animation: riseSteamPuff 1.8s infinite ease-out;
}

.puff-1 { left: 12%; bottom: 25px; animation-delay: 0s; }
.puff-2 { right: 14%; bottom: 35px; animation-delay: 0.6s; font-size: 2.5rem; }
.puff-3 { left: 45%; bottom: 15px; animation-delay: 1.1s; font-size: 1.8rem; }

@keyframes riseSteamPuff {
  0% { transform: translateY(15px) scale(0.7); opacity: 0; }
  40% { opacity: 0.65; }
  100% { transform: translateY(-70px) scale(1.5); opacity: 0; }
}

/* 2. Pappa: Mela succosa & Bricioline */
.prop-food {
  position: absolute;
  right: 18px;
  top: 75px;
  z-index: 28;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.food-item {
  font-size: 2.6rem;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
  animation: foodWobble 0.32s infinite alternate ease-in-out;
  transition: transform 0.25s ease;
}

@keyframes foodWobble {
  0% { transform: rotate(-5deg) scale(1); }
  100% { transform: rotate(5deg) scale(1.06); }
}

.food-crumbs {
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.crumb {
  width: 6px;
  height: 6px;
  background: #ffb703;
  border-radius: 50%;
  animation: crumbFly 0.4s linear infinite;
}

.crumb.c1 { animation-delay: 0s; }
.crumb.c2 { animation-delay: 0.14s; width: 4px; height: 4px; background: #e76f51; }
.crumb.c3 { animation-delay: 0.26s; width: 5px; height: 5px; }

@keyframes crumbFly {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(-22px, -8px) scale(0.3); opacity: 0; }
}

/* 3. Gioco: Pallone da palleggio & Impatto Head-Boop */
.prop-ball {
  position: absolute;
  left: 50%;
  top: -30px;
  transform: translateX(-50%);
  z-index: 30;
  pointer-events: none;
}

.ball-sprite {
  font-size: 2.3rem;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.25));
}

.ball-sparkle {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  animation: sparklePop 0.3s ease-out forwards;
}

@keyframes sparklePop {
  0% { transform: translateX(-50%) scale(0.4) rotate(0deg); opacity: 1; }
  100% { transform: translateX(-50%) scale(1.8) rotate(45deg); opacity: 0; }
}

/* 4. Coccole: Manina accarezzatrice dolce */
.prop-pet-hand {
  position: absolute;
  top: 0px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2.7rem;
  z-index: 30;
  pointer-events: none;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.2));
  animation: petHandCaress 0.55s ease-in-out infinite alternate;
}

@keyframes petHandCaress {
  0% { transform: translateX(-65%) rotate(-14deg) translateY(-2px); }
  100% { transform: translateX(-35%) rotate(10deg) translateY(6px); }
}
