* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f0f4f8;
  color: #333;
  display: flex;
  justify-content: center;
  padding: 20px;
  min-height: 100vh;
}

.game-container {
  background: #ffffff;
  max-width: 700px;
  width: 100%;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  position: relative;
}

.game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.game-header h1 {
  font-size: 24px;
  color: #1e293b;
}

.stats-bar {
  display: flex;
  gap: 12px;
}

.stat-box {
  background: #e0f2fe;
  color: #0369a1;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 15px;
}

.event-banner {
  background: #fef3c7;
  border-left: 6px solid #d97706;
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 20px;
}

.event-banner h3 {
  color: #92400e;
  font-size: 16px;
  margin-bottom: 4px;
}

.event-banner p {
  color: #78350f;
  font-size: 14px;
}

.instruction-text {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 16px;
  text-align: center;
}

.assets-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.asset-card {
  background: #f8fafc;
  border: 2px solid #cbd5e1;
  border-radius: 10px;
  padding: 16px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.asset-card:hover {
  transform: translateY(-2px);
  border-color: #94a3b8;
}

.asset-card.selected {
  background: #dcfce7;
  border-color: #22c55e;
  box-shadow: 0 0 0 2px #22c55e;
}

.asset-icon {
  font-size: 32px;
  margin-bottom: 8px;
  display: block;
}

.asset-name {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

.controls {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 20px;
}

.btn {
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary { background: #2563eb; color: white; }
.btn-primary:hover { background: #1d4ed8; }

.btn-secondary { background: #64748b; color: white; }
.btn-secondary:hover { background: #475569; }

.btn-success { background: #16a34a; color: white; }
.btn-success:hover { background: #15803d; }

.btn:disabled {
  background: #cbd5e1;
  color: #94a3b8;
  cursor: not-allowed;
}

.round-result {
  background: #f1f5f9;
  padding: 16px;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 20px;
}

.round-result p {
  font-size: 16px;
  font-weight: bold;
  color: #1e293b;
  margin-bottom: 12px;
}

.combos-section {
  margin-top: 24px;
}

.combos-section h3 {
  font-size: 16px;
  margin-bottom: 10px;
  color: #334155;
}

.combos-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.combos-table th, .combos-table td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.combos-table th {
  background: #f8fafc;
  color: #64748b;
}

.modal {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
}

.modal-content {
  background: white;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  max-width: 400px;
  width: 90%;
}

.modal-content h2 { margin-bottom: 10px; }
.modal-content p { margin-bottom: 16px; color: #475569; }
.final-score-text { font-size: 18px; font-weight: bold; color: #0f172a; }

.hidden { display: none !important; }