:root {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f7f7f7;
  color: #111;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.game-card {
  width: min(480px, 90vw);
  padding: 32px 28px 40px;
  border: 2px solid #111;
  border-radius: 20px;
  background: #fff;
  text-align: center;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.05);
}

.game-header .subtitle {
  margin: 0;
  letter-spacing: 0.2em;
  font-size: 0.85rem;
  color: #777;
  text-transform: uppercase;
}

.game-header h1 {
  margin: 8px 0 16px;
  font-size: 2rem;
}

.status {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 24px;
}

.status-item {
  border: 1px solid #111;
  border-radius: 12px;
  padding: 12px 20px;
  min-width: 120px;
}

.label {
  display: block;
  font-size: 0.85rem;
  color: #666;
}

.value {
  font-size: 1.4rem;
  font-weight: 600;
}

.event-text {
  font-size: 1.2rem;
  line-height: 1.6;
  margin: 0 0 24px;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn {
  font-size: 1.05rem;
  font-weight: 600;
  padding: 14px 18px;
  border-radius: 999px;
  border: 2px solid #111;
  background: #fff;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  background: #111;
  color: #fff;
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.ending {
  margin-top: 32px;
  padding: 20px;
  border-radius: 16px;
  border: 2px dashed #111;
}

.ending h2 {
  margin: 0 0 12px;
}

.ending.hidden {
  display: none;
}

.ending-time {
  margin: 8px 0 0;
  font-size: 0.95rem;
  color: #444;
}

.achievements {
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid #ddd;
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: left;
}

.achievements h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.achievements ul {
  padding-left: 18px;
  margin: 0 0 8px;
}

.achievements li {
  margin-bottom: 4px;
}

.achievements.hidden {
  display: none;
}

@media (max-width: 480px) {
  .game-card {
    padding: 24px 18px 32px;
  }

  .status {
    flex-direction: column;
  }
}
