* {
  margin: 0;
  padding: 0;
}

body {
  background-color: #f1f2f3;
}

.container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1560px;
  min-width: 1240px;
  margin: 20px auto;
  color: #333;
}

.container * {
  box-sizing: border-box;
}

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
}

header h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

header p {
  font-size: 1rem;
  opacity: 0.9;
}

.settings-panel {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 25px;
  gap: 20px;
  display: flex;
  align-items: center;
}

.setting-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

label {
  font-weight: 600;
  color: #2c3e50;
}

input[type="range"] {
  -webkit-appearance: none;
  width: 230px;
  height: 10px;
  border-radius: 5px;
  background: linear-gradient(90deg, #84cdfe, #2b62ff);
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #2980b9;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.range-value {
  font-weight: bold;
  color: #3498db;
  min-width: 35px;
}

.game-area {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 25px;
  min-height: 255px;
  position: relative;
}

.game-board {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin: auto;
}

.number-block {
  width: 100px;
  height: 100px;
  background: #3498db;
  color: white;
  border-radius: 8px;
  aspect-ratio: 1/1;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(52, 152, 219, 0.4);
}

.number-block.hidden {
  background: #ecf0f1;
  color: transparent;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.number-block.correct {
  background: #2ecc71;
}

.number-block.incorrect {
  background: #e74c3c;
}

.number-block.active {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(52, 152, 219, 0.6);
}

.controls {
  display: flex;
  justify-content: center;
  gap: 15px;
}

button {
  padding: 12px 36px;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-start {
  background: #2eabcc;
  color: white;
}

.btn-start:hover {
  background: #27798e;
}

.btn-copy {
  background: #a174e0;
  color: white;
}

.btn-copy:hover {
  background: #704f9e;
}

.btn-clear {
  background: #e74c3c;
  color: white;
}

.btn-clear:hover {
  background: #c0392b;
}

.history-section {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 25px;
}

.section-title {
  font-size: 1.4rem;
  color: #2c3e50;
  margin-bottom: 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

th,
td {
  padding: 14px 15px;
  text-align: center;
  border-bottom: 1px solid #ecf0f1;
}

th {
  background-color: #f8f9fa;
  font-weight: 600;
  color: #2c3e50;
}

tr:hover {
  background-color: #f8f9fa;
}

.info-content {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
}

.info-box {
  flex: 1;
  background: #ffff;
  border-radius: 10px;
  padding: 20px;
}

.info-box h3 {
  color: #2c3e50;
  margin-bottom: 15px;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-box p {
  margin-top: 10px;
  color: #34495e;
}

.notice {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(44, 62, 80, 0.95);
  color: white;
  padding: 16px 35px;
  border-radius: 50px;
  font-size: 1.1rem;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1000;
}

.notice.show {
  opacity: 1;
}

.game-message {
  text-align: center;
  font-size: 1.6rem;
  font-weight: bold;
  margin: 20px 0;
  color: #2c3e50;
}

.progress-container {
  height: 8px;
  background: #ecf0f1;
  border-radius: 4px;
  margin: 20px 0;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: #2ecc71;
  width: 0%;
}

footer {
  text-align: center;
  color: #7f8c8d;
  font-size: 14px;
}

