/* Soft, modern color palette */
:root {
  --bg: #f6f8fc;
  --primary: #fbbf24;
  --secondary: #7f9cf5;
  --accent: #f472b6;
  --text: #22223b;
  --white: #fff;
  --shadow: 0 4px 24px rgba(127, 156, 245, 0.08);
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
  background: var(--bg);
  color: var(--text);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 420px;
  margin: 40px auto 0 auto;
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 32px 24px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1 {
  margin-bottom: 16px;
  font-size: 2.2rem;
  letter-spacing: 1px;
  font-weight: 700;
}

.scoreboard {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 24px;
}

.score {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--secondary);
  color: var(--white);
  border-radius: 12px;
  padding: 12px 24px;
  font-size: 1.1rem;
  box-shadow: 0 2px 8px rgba(127, 156, 245, 0.10);
  flex: 1;
  margin: 0 4px;
}

.ai-score {
  background: var(--accent);
}

.draw-score {
  background: var(--primary);
}

.choices {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 32px;
  width: 100%;
}

.choice-btn {
  background: var(--secondary);
  border: none;
  border-radius: 50%;
  width: 90px;
  height: 90px;
  font-size: 1.1rem;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(251, 191, 36, 0.10);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
  outline: none;
  position: relative;
  overflow: hidden;
}

.choice-btn .emoji {
  font-size: 2.2rem;
  margin-bottom: 4px;
}

.choice-btn:hover, .choice-btn:focus {
  transform: scale(1.08);
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 24px rgba(127, 156, 245, 0.18);
}

.result-area {
  min-height: 90px;
  margin-bottom: 16px;
  text-align: center;
  width: 100%;
}

#choicesDisplay {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

#resultDisplay {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 6px;
}

#aiComment {
  font-size: 1.1rem;
  color: var(--secondary);
  font-style: italic;
  min-height: 24px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

.play-again-btn {
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 18px;
  padding: 12px 32px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(244, 114, 182, 0.10);
  transition: background 0.2s, transform 0.15s;
  margin-top: 8px;
}

.play-again-btn:hover, .play-again-btn:focus {
  background: var(--secondary);
  transform: scale(1.05);
}

footer {
  margin-top: auto;
  text-align: center;
  padding: 18px 0 8px 0;
  font-size: 1rem;
  color: #a0aec0;
}

@media (max-width: 600px) {
  .container {
    max-width: 98vw;
    padding: 16px 4vw 16px 4vw;
  }
  .choices {
    gap: 12px;
  }
  .choice-btn {
    width: 70px;
    height: 70px;
    font-size: 1rem;
  }
  .choice-btn .emoji {
    font-size: 1.5rem;
  }
  .score {
    padding: 8px 12px;
    font-size: 1rem;
  }
}