* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html, body {
  width: 100%;
  height: 100%;
}

body {
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

#gameCanvas {
  width: 100vw;
  height: 100vh;
  image-rendering: pixelated;
}

#message {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}

#message.hidden {
  display: none;
}

.message-box {
  background: #181828;
  border: 2px solid #ffffff44;
  padding: 20px 28px;
  max-width: 420px;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.7);
}

.message-box h2 {
  margin-bottom: 8px;
}

.message-box p {
  margin-bottom: 6px;
  line-height: 1.4;
}

#toppingMessage {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 16px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-family: sans-serif;
  border-radius: 6px;
}

#interactHint {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-family: sans-serif;
  border-radius: 6px;
  font-size: 14px;
}

#giftBubble {
  position: fixed;
  left: 50%;
  bottom: 80px;
  transform: translateX(-50%);
  z-index: 30;
}

#spotifyBubble {
  position: fixed;
  left: 50%;
  bottom: 80px;            
  transform: translateX(-50%);
  z-index: 30;
}

#spotifyBubble .speech-bubble-inner {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 18px;
  padding: 8px 14px;
  border: 2px solid #f3b4d5;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
  text-align: center;
}

#spotifyBubble .speech-bubble-inner::after {
  content: none;
}

#spotifyBubble .speech-bubble-inner {
  color: #ff6fb6;
  font-weight: 600;
  font-family: "Segoe UI", system-ui, sans-serif;
  letter-spacing: 0.5px;
}

#giftBubble .speech-bubble-inner {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 18px;
  padding: 8px 14px;
  border: 2px solid #f3b4d5;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
  text-align: center;
}

#giftBubble .speech-bubble-inner::after {
  content: none;
}

#giftBubble .speech-bubble-inner a {
  color: #ff6fb6;
  text-decoration: none;
  font-weight: 600;
  font-family: "Segoe UI", system-ui, sans-serif;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 6px rgba(255, 111, 182, 0.6);
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

#giftBubble .speech-bubble-inner a:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 0 10px rgba(255, 160, 210, 0.9);
}


#speechBubble {
  position: fixed;
  top: 60px;
  right: 40px;

  max-width: 260px;
  z-index: 20;
}

.speech-bubble-inner {
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  padding: 10px 14px;
  border-radius: 14px;
  border: 2px solid #333;
  font-size: 14px;
  line-height: 1.3;
  position: relative;
}

.speech-bubble-inner::after {
  content: "";
  position: absolute;
  bottom: -10px;
  right: 18px;
  border-width: 10px 8px 0 8px;
  border-style: solid;
  border-color: #fff transparent transparent transparent;
}

#mastercardBubble {
  position: fixed;
  left: 50%;
  bottom: 80px;            
  transform: translateX(-50%);
  z-index: 30;
}

#mastercardBubble .speech-bubble-inner {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 18px;
  padding: 8px 14px;
  border: 2px solid #f3b4d5;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
  text-align: center;
  color: #ff6fb6;
  font-weight: 600;
  font-family: "Segoe UI", system-ui, sans-serif;
  letter-spacing: 0.5px;
}

#mastercardBubble .speech-bubble-inner::after {
  content: none;
}

.hidden {
  display: none;
}

