/* ==========================================================================
   MINIMALIST CENTERED NECO-ARC STYLE SHEET
   ========================================================================== */

:root {
  --bg-matte-black: #000000;
  --text-white: #ffffff;
  --font-brand: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Base resets */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
}

body {
  background-color: var(--bg-matte-black);
  color: var(--text-white);
  font-family: var(--font-brand);
  min-height: 100vh;
  width: 100vw;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Fully Centered Container */
.container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100vh;
  position: relative;
}

/* Responsive Neco-Arc Wrapper with Tactile Button Micro-interactions */
.neco-container {
  position: relative;
  width: 75vw;
  max-width: 360px;
  max-height: 72vh;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  -webkit-tap-highlight-color: transparent;
}

.neco-image {
  width: 100%;
  height: auto;
  max-height: 72vh;
  object-fit: contain;
  display: block;
  /* Soft warm ambient shadow to match the character's blonde hair */
  filter: drop-shadow(0 20px 45px rgba(245, 158, 11, 0.12));
}

/* Hover lift */
.neco-container:hover {
  transform: scale(1.035);
}

/* Tactile click squish */
.neco-container:active {
  transform: scale(0.96);
}

/* ==========================================================================
   NON-OVERLAPPING SPEECH BUBBLE (Anchored Above the Head)
   ========================================================================== */
.speech-bubble {
  position: absolute;
  bottom: 94%;   /* Securely placed above Neco-Arc's ears */
  left: 60%;     /* Offset slightly to the right to avoid vertical center clashing */
  background: #ffffff;
  color: #000000;
  padding: 0.5rem 0.85rem;
  border-radius: 16px 16px 16px 0px;
  font-weight: 600;
  font-size: 0.86rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: scale(0.78) translateY(12px);
  transition: all 0.24s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  white-space: nowrap;
  z-index: 10;
}

.speech-bubble.active {
  opacity: 1;
  transform: scale(1) translateY(0px);
}

/* ==========================================================================
   RESPONSIVE LAYOUT (Mobile adjustments)
   ========================================================================== */
@media (max-width: 480px) {
  .neco-container {
    max-width: 280px;
    max-height: 65vh;
  }
  .speech-bubble {
    font-size: 0.78rem;
    padding: 0.4rem 0.75rem;
    bottom: 96%;
    left: 55%;
  }
}
