/* ----------------------------------------
   TINY TUMMIES – HERO TWO-COLUMN LAYOUT
---------------------------------------- */
.project-hero .container {
  display: flex;
  align-items: flex-end;
  gap: clamp(2rem, 4vw, 4rem);
}

.tt-hero-text {
  flex: 1;
  min-width: 0;
}

.tt-game {
  flex-shrink: 0;
  width: clamp(220px, 30vw, 320px);
  border-left: 1px solid var(--color-border);
  padding-left: clamp(1.5rem, 3vw, 2.5rem);
  opacity: 0;
  transform: translateY(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ----------------------------------------
   SCENE (parrot + tool + feed zone)
---------------------------------------- */
.tt-scene {
  position: relative;
  width: 100%;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

/* ---- Parrot ---- */
.tt-parrot {
  width: clamp(140px, 18vw, 180px);
  transition: filter 0.6s ease, transform 0.3s ease;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
  user-select: none;
  -webkit-user-select: none;
}

.tt-parrot.stage-0 {
  filter: saturate(0.35) brightness(0.75)
    drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.tt-parrot.stage-1 {
  filter: saturate(0.6) brightness(0.88)
    drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.tt-parrot.stage-2 {
  filter: saturate(0.82) brightness(0.96)
    drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
  animation: tt-wiggle 0.4s ease;
}

.tt-parrot.stage-3 {
  filter: saturate(1) brightness(1.08)
    drop-shadow(0 6px 18px rgba(80, 180, 60, 0.25));
  animation: tt-bounce 0.6s ease;
}

/* ---- Feed zone (invisible hit area near beak) ---- */
.tt-feed-zone {
  position: absolute;
  top: 10%;
  left: 45%;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  z-index: 2;
  pointer-events: none;
}

/* ---- Thought bubble ---- */
.tt-thought-bubble {
  position: absolute;
  top: -8px;
  left: 55%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 4px 10px;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  backdrop-filter: blur(6px);
  transition: opacity 0.4s ease;
  white-space: nowrap;
  z-index: 3;
}

.tt-thought-bubble::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 16px;
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  transform: rotate(45deg);
}

/* ---- Feeding tool ---- */
.tt-tool {
  position: absolute;
  bottom: 10px;
  right: -10px;
  width: clamp(100px, 14vw, 140px);
  cursor: grab;
  z-index: 5;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.4));
  user-select: none;
  -webkit-user-select: none;
  transform-origin: center center;
  transform: rotate(-30deg);
}

.tt-tool:active {
  cursor: grabbing;
}

.tt-tool.dragging {
  transition: none;
}

.tt-tool.snap-back {
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ----------------------------------------
   SEEDS (happiness indicator)
---------------------------------------- */
.tt-seeds {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.tt-seed {
  width: 14px;
  height: 14px;
  border-radius: 50% 50% 50% 0;
  border: 1.5px solid rgba(180, 140, 60, 0.4);
  transform: rotate(-45deg);
  transition: background 0.4s ease, border-color 0.4s ease,
    box-shadow 0.4s ease;
}

.tt-seed.filled {
  background: rgba(200, 160, 50, 0.8);
  border-color: rgba(220, 180, 70, 0.9);
  box-shadow: 0 0 8px rgba(200, 160, 50, 0.3);
}

/* ----------------------------------------
   PROMPT
---------------------------------------- */
.tt-prompt {
  margin-top: 12px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(0.7rem, 1vw, 0.85rem);
  color: var(--color-text-secondary);
  animation: tt-pulse 2.5s ease-in-out infinite;
  cursor: default;
  text-align: center;
}

.tt-prompt.restartable {
  cursor: pointer;
  animation: none;
  color: rgba(120, 200, 80, 0.8);
  transition: color 0.3s ease;
}

.tt-prompt.restartable:hover {
  color: rgba(120, 200, 80, 1);
}

/* ----------------------------------------
   FLOATING HEARTS (stage 3)
---------------------------------------- */
.tt-hearts {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.tt-heart {
  position: absolute;
  bottom: 40%;
  font-size: 0.85rem;
  opacity: 0;
  animation: tt-heart-float 1.8s ease-out forwards;
}

/* ----------------------------------------
   SUCCESS MESSAGE
---------------------------------------- */
.tt-success {
  margin-top: 8px;
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(120, 200, 80, 0.7);
  text-align: center;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.tt-success.visible {
  opacity: 1;
}

/* ----------------------------------------
   KEYFRAMES
---------------------------------------- */
@keyframes tt-wiggle {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-3deg); }
  75% { transform: rotate(3deg); }
}

@keyframes tt-bounce {
  0%, 100% { transform: translateY(0); }
  30% { transform: translateY(-8px); }
  60% { transform: translateY(-3px); }
}

@keyframes tt-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

@keyframes tt-heart-float {
  0% {
    opacity: 1;
    transform: translateY(0) scale(0.6);
  }
  100% {
    opacity: 0;
    transform: translateY(-80px) scale(1);
  }
}

/* ---- Gulp pulse on parrot ---- */
@keyframes tt-gulp {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.tt-parrot.gulp {
  animation: tt-gulp 0.3s ease !important;
}

/* ----------------------------------------
   RESPONSIVE
---------------------------------------- */
@media (max-width: 900px) {
  .project-hero .container {
    flex-direction: column;
    align-items: stretch;
  }

  .tt-game {
    width: 100%;
    padding-left: 0;
    border-left: none;
    border-top: 1px solid var(--color-border);
    padding-top: 1.5rem;
    margin-top: 1rem;
  }

  .tt-scene {
    min-height: 240px;
  }

  .tt-parrot {
    width: clamp(120px, 30vw, 160px);
  }

  .tt-tool {
    width: clamp(90px, 22vw, 120px);
  }
}

@media (max-width: 480px) {
  .tt-scene {
    min-height: 200px;
  }

  .tt-parrot {
    width: 110px;
  }

  .tt-tool {
    width: 85px;
  }

  .tt-thought-bubble {
    font-size: 0.75rem;
    padding: 3px 8px;
  }

  .tt-seed {
    width: 12px;
    height: 12px;
  }
}
