* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Meiryo', sans-serif;
  background: linear-gradient(135deg, #f5e6d3 0%, #e8d5b7 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px;
  max-width: 1200px;
  width: 100%;
}

.character {
  margin-bottom: 20px;
}

.character img {
  width: 300px;
  height: auto;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

.character img.talking {
  animation: bounce 0.5s ease infinite;
}

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

.target-info {
  background: rgba(255, 255, 255, 0.8);
  padding: 12px 24px;
  border-radius: 20px;
  margin-bottom: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  font-size: 18px;
  color: #4a3728;
  font-weight: bold;
  text-align: center;
}

.speech-bubble {
  background: white;
  padding: 30px 40px;
  border-radius: 25px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  max-width: 800px;
  width: 100%;
  position: relative;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.speech-bubble::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-bottom: 15px solid white;
}

.speech-bubble p {
  font-size: 22px;
  line-height: 1.8;
  color: #4a3728;
  text-align: center;
  margin: 0;
  word-wrap: break-word;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .character img {
    width: 200px;
  }

  .target-info {
    font-size: 16px;
    padding: 10px 20px;
  }

  .speech-bubble {
    padding: 20px 30px;
    min-height: 100px;
  }

  .speech-bubble p {
    font-size: 18px;
  }
}

/* 配信開始オーバーレイ */
.start-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: opacity 0.3s ease;
}

.start-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.start-button {
  background: linear-gradient(135deg, #ff9a56 0%, #ff6b6b 100%);
  color: white;
  border: none;
  padding: 20px 60px;
  font-size: 28px;
  font-weight: bold;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
}

.start-button:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 28px rgba(255, 107, 107, 0.5);
}

.start-button:active {
  transform: scale(0.98);
}

.start-hint {
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  margin-top: 16px;
}

/* OBSモード */
body.obs-mode {
  background: transparent;
}

body.obs-mode .speech-bubble,
body.obs-mode .target-info {
  display: none !important;
}

body.obs-mode .start-overlay.hidden {
  display: none;
}
