:root {
  color: #2d2a26;
  font-family: "Georgia", "Times New Roman", serif;
  --paper: #f4f0e6;
  --pattern-scale: 1;
  background-color: var(--paper);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  line-height: 1.7;
  background-color: var(--paper);
  background-image: url("/assets/pattern-coastal.svg");
  background-repeat: repeat;
  background-size: calc(512px * var(--pattern-scale)) calc(512px * var(--pattern-scale));
}

.container {
  width: min(980px, 92vw);
  margin: 32px auto 64px;
  background: #fbf7ef;
  padding: 30px 32px 36px;
  border: 1px solid #d2c3b3;
  box-shadow: 0 18px 45px rgba(50, 36, 22, 0.12);
  text-align: center;
}

.game-nav {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-family: "Courier New", "Courier", monospace;
}

.game-nav a {
  color: #4a3f34;
  text-decoration: none;
}

.game-nav a:hover {
  text-decoration: underline;
}

header h1 {
  margin: 0 0 12px;
  font-size: clamp(2.1rem, 4.5vw, 3.1rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: "Palatino Linotype", "Book Antiqua", "Palatino", "Georgia", serif;
  color: #7b6d5e;
}

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

button {
  border: 1px solid #3f3327;
  padding: 10px 18px;
  border-radius: 4px;
  background: #f4ece1;
  color: #3f3327;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-family: "Courier New", "Courier", monospace;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

button:hover {
  background: #3f3327;
  color: #f9f2e7;
  transform: translateY(-1px);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.image-wrap {
  margin: 0 auto 20px;
  max-width: 580px;
}

.image-wrap img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #d2c3b3;
  background: #f3ede1;
}

.step {
  margin-bottom: 20px;
}

.step-title {
  margin: 0 0 12px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #4a3f34;
  letter-spacing: 0.05em;
}

.choices {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  max-width: 640px;
  margin: 0 auto;
}

.sound-choice {
  display: grid;
  gap: 8px;
}

.choice-button {
  display: block;
  width: 100%;
  background: #3f3327;
  color: #f9f2e7;
  font-size: 0.9rem;
  padding: 12px 16px;
  border-radius: 4px;
}

.choice-button.is-selected {
  background: #7b6d5e;
  box-shadow: 0 6px 14px rgba(123, 109, 94, 0.3);
}

.choice-button:disabled {
  background: #b8aa9b;
}

.play-button {
  background: #5f5245;
}

.play-button:disabled {
  background: #b8aa9b;
}

.feedback {
  margin-top: 16px;
  font-weight: 600;
  color: #5a4a3d;
}

.next-wrap {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.is-hidden {
  display: none;
}

@media (max-width: 600px) {
  .choice-button {
    font-size: 0.8rem;
  }
}
