* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --accent: #4a90e2;
}

body {
  font-family: "Courier New", monospace;
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

#game-container {
  background: rgba(0, 0, 0, 0.8);
  border: 3px solid var(--accent);
  border-radius: 10px;
  padding: 30px;
  max-width: 900px;
  width: 100%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

#game-text {
  min-height: 420px;
  max-height: 540px;
  overflow-y: auto;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid var(--accent);
  border-radius: 5px;
  margin-bottom: 20px;
  line-height: 1.6;
  white-space: pre-wrap;
}

#game-text::-webkit-scrollbar { width: 10px; }
#game-text::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.3); }
#game-text::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 5px; }

#input-area {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

#text-input {
  width: 100%;
  padding: 12px;
  font-family: "Courier New", monospace;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.96);
  color: #000;
  border: 2px solid var(--accent);
  border-radius: 5px;
}

#text-input.hidden { display: none; }

#button-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

button {
  padding: 12px 24px;
  font-family: "Courier New", monospace;
  font-size: 16px;
  font-weight: bold;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.2s ease;
  min-width: 120px;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

button:active { transform: translateY(0); }

.hidden { display: none !important; }

/* Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
