
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: white;
  background: #162234;
}

[hidden] {
  display: none !important;
}

.setup-screen, .game-screen {
  min-height: 100vh;
  min-height: 100dvh;
}

.setup-screen {
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(135deg, #172b49, #3b2864);
}

.panel {
  width: min(100%, 420px);
  background: #101c30;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 16px 45px #0006;
}

h1 {
  margin-top: 0;
}

label {
  display: block;
  margin: 20px 0 8px;
  font-weight: bold;
}

select, button {
  font: inherit;
  border-radius: 8px;
  padding: 12px;
}

select {
  width: 100%;
  background: white;
  color: #172234;
  border: 0;
}

button {
  background: #6c8dff;
  color: #101c30;
  font-weight: bold;
  border: 0;
  cursor: pointer;
}

button:hover {
  background: #a1b5ff;
}

button:disabled {
  opacity: .5;
  cursor: not-allowed;
}

#startButton {
  width: 100%;
  margin-top: 28px;
}

.hint {
  color: #b8c6dc;
  font-size: 13px;
  line-height: 1.5;
}

.game-screen {
  background-color: #172234;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.game-toolbar {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 10px;
}

.game-title {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  text-shadow: 0 3px 12px #000;
}
