* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e, #1a0033);
  color: #e0e0ff;
  font-family: 'Segoe UI', system-ui, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  overflow-x: hidden;
}

.game-container {
  background: rgba(20, 20, 60, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 32px;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 3.5rem 3rem;
  width: 100%;
  max-width: 600px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.1);
  text-align: center;
  position: relative;
}

.game-container::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #a78bfa, #7dd3fc, #ec4899, #a78bfa);
  border-radius: 34px;
  z-index: -1;
  opacity: 0.6;
  animation: glow 3s linear infinite;
}

@keyframes glow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.info-btn {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.5rem;
  font-weight: bold;
  color: #a78bfa;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.info-btn:hover {
  background: rgba(167,139,250,0.3);
  transform: scale(1.1);
  box-shadow: 0 5px 20px rgba(167,139,250,0.4);
}

.header h1 {
  font-size: 3.2rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  background: linear-gradient(90deg, #c084fc, #a78bfa, #7dd3fc, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 10px rgba(167,139,250,0.5));
}

.subtitle {
  font-size: 1.3rem;
  opacity: 0.8;
  margin-bottom: 3rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.score-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin: 2.5rem 0;
}

.score-box {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 1.5rem 2.5rem;
  min-width: 160px;
  border: 1px solid rgba(255,255,255,0.15);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.score-box:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  border-color: rgba(167,139,250,0.4);
}

.score-label {
  font-size: 1rem;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.score-value {
  font-size: 3.8rem;
  font-weight: 900;
  background: linear-gradient(90deg, #a78bfa, #7dd3fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.vs {
  font-size: 2.5rem;
  font-weight: 800;
  opacity: 0.6;
  letter-spacing: 3px;
}

.result-message {
  min-height: 100px;
  font-size: 1.6rem;
  font-weight: 600;
  margin: 2.5rem 0;
  color: #d1d5db;
  line-height: 1.4;
  padding: 1rem 2rem;
  background: rgba(255,255,255,0.05);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.3s ease;
}

.result-message.win {
  background: rgba(34,197,94,0.2);
  border-color: rgba(34,197,94,0.4);
  color: #a7f3d0;
  animation: pulse-green 0.6s ease;
}

.result-message.lose {
  background: rgba(239,68,68,0.2);
  border-color: rgba(239,68,68,0.4);
  color: #fca5a5;
  animation: shake 0.5s ease;
}

.result-message.tie {
  background: rgba(251,191,36,0.2);
  border-color: rgba(251,191,36,0.4);
  color: #fde68a;
}

.result-message.cooldown {
  background: rgba(99,102,241,0.2);
  border-color: rgba(99,102,241,0.4);
  color: #c7d2fe;
}

@keyframes pulse-green {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
}

.choices.disabled .choice {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  pointer-events: none;
}

.choice {
  background: rgba(40, 40, 90, 0.6);
  border: 2px solid rgba(167,139,250,0.3);
  border-radius: 24px;
  padding: 2rem 1.2rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

.choice::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.choice:hover::before {
  left: 100%;
}

.choice:hover {
  transform: translateY(-12px) scale(1.08);
  border-color: #a78bfa;
  box-shadow: 0 25px 50px rgba(167,139,250,0.3);
  background: rgba(50, 50, 110, 0.8);
}

.choice:active {
  transform: scale(0.98);
}

.emoji {
  font-size: 4.5rem;
  transition: transform 0.3s ease;
}

.choice:hover .emoji {
  transform: rotate(10deg) scale(1.1);
}

.label {
  font-size: 1.2rem;
  font-weight: 700;
  opacity: 0.95;
  letter-spacing: 1px;
}

.reset-btn {
  background: linear-gradient(90deg, #ec4899, #f43f5e, #ef4444);
  color: white;
  border: none;
  padding: 1.2rem 3rem;
  font-size: 1.3rem;
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  margin-top: 2rem;
  transition: all 0.4s ease;
  box-shadow: 0 12px 35px rgba(236,72,153,0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.reset-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 45px rgba(236,72,153,0.6);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(10px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.modal.active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: rgba(20, 20, 60, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 3rem;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0,0,0,0.8);
}

.modal-content h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(90deg, #c084fc, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.rules ul {
  list-style: none;
  text-align: left;
  margin: 1rem 0;
}

.rules li {
  font-size: 1.1rem;
  margin: 0.8rem 0;
  padding: 0.5rem;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  border-left: 4px solid #a78bfa;
}

.close-modal {
  background: linear-gradient(90deg, #ec4899