@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@600;700&family=Quicksand:wght@500;600;700&display=swap');

    * { box-sizing: border-box; user-select: none; -webkit-tap-highlight-color: transparent; }
    input, textarea { user-select: text; }
    html, body {
      margin: 0; padding: 0; width: 100%; height: 100%; overflow: hidden;
      background: #141416; font-family: 'Quicksand', sans-serif; color: #f5f5f4;
    }
    .font-serif-display { font-family: 'Dancing Script', cursive; letter-spacing: 0.015em; }
    button, input, textarea { font-family: 'Quicksand', sans-serif; }

    #canvas-container { position: fixed; inset: 0; z-index: 1; }
    canvas { display: block; width: 100%; height: 100%; }

    #loading-screen {
      position: fixed; inset: 0; z-index: 50;
      background: radial-gradient(circle at 50% 35%, #2a1f2d 0%, #111014 75%);
      display: flex; flex-direction: column; align-items: center; justify-content: center;
      transition: opacity 0.8s ease, visibility 0.8s ease;
    }
    #loading-screen.ready { cursor: pointer; }
    #loading-screen.hidden-screen { opacity: 0; visibility: hidden; pointer-events: none; }

    .speech-bubble {
      position: fixed; z-index: 15; pointer-events: none;
      transform: translate(-50%, -100%);
      transition: opacity 0.25s ease;
    }
    .bubble-pill {
      background: rgba(255, 255, 255, 0.96);
      color: #1c1917;
      padding: 6px 14px;
      border-radius: 999px;
      font-size: 13px;
      font-weight: 600;
      box-shadow: 0 8px 24px rgba(0,0,0,0.28);
      white-space: nowrap;
      border: 1px solid rgba(0,0,0,0.06);
    }
    .name-tag {
      background: rgba(20, 20, 22, 0.78);
      color: #fafaf9;
      padding: 2px 10px;
      border-radius: 999px;
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.02em;
      backdrop-filter: blur(6px);
      display: inline-flex; align-items: center; gap: 5px;
      margin-top: 4px;
    }

    .kbd-badge {
      display: inline-flex; align-items: center; justify-content: center;
      min-width: 20px; height: 20px; padding: 0 5px;
      border-radius: 5px;
      background: rgba(255,255,255,0.14);
      border: 1px solid rgba(255,255,255,0.24);
      font-size: 10px; font-weight: 700; color: #fff;
    }

    #proposal-overlay {
      position: fixed; inset: 0; z-index: 30;
      background: rgba(15, 14, 16, 0.45);
      backdrop-filter: blur(4px);
      display: flex; align-items: center; justify-content: center;
      padding: 16px;
      opacity: 0; pointer-events: none;
      transition: opacity 0.4s ease;
    }
    #proposal-overlay.active { opacity: 1; pointer-events: auto; }

    .proposal-card {
      background: #fdfbf7;
      color: #1c1917;
      border-radius: 24px;
      padding: 28px 28px 26px;
      max-width: 520px;
      width: 100%;
      text-align: center;
      box-shadow: 0 25px 60px rgba(0,0,0,0.45);
      border: 2px solid #f1e9dc;
      position: relative;
      overflow: hidden;
    }

    #lightbox-img { transition: transform 0.25s ease; cursor: zoom-in; }
    #lightbox-img.zoomed { transform: scale(1.65); cursor: zoom-out; }

    .cinema-bar {
      position: fixed; left: 0; right: 0; height: 0; z-index: 28;
      background: #09090b; pointer-events: none;
      transition: height 0.45s ease;
    }
    #cinema-top { top: 0; }
    #cinema-bot { bottom: 0; }
    body.cinematic .cinema-bar { height: 52px; }
    body.sit-cinematic .cinema-bar { height: 26px; }

    @keyframes floatUpHeart {
      0% { transform: translateY(0) scale(0.7) rotate(0deg); opacity: 0; }
      15% { opacity: 0.95; }
      100% { transform: translateY(-105vh) scale(1.25) rotate(22deg); opacity: 0; }
    }
    .floating-heart {
      position: fixed; bottom: -40px; z-index: 25; pointer-events: none;
      animation: floatUpHeart linear forwards;
    }

/* AAA Polish */
#interact-hud {
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(251, 191, 36, 0.12);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
#interact-hud button:hover {
  transform: translateY(-1px);
}
header button {
  transition: transform 0.18s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
header button:hover {
  transform: translateY(-1px);
}
