:root {
  --bg-top: #87ceeb;
  --bg-bottom: #d8f3ff;
  --ground: #e8c17d;
  --text: #102030;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(var(--bg-top), var(--bg-bottom));
}

.container {
  width: min(94vw, 440px);
  text-align: center;
}

h1 {
  margin: 0 0 8px;
  letter-spacing: 0.02em;
}

.hud {
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
}

canvas {
  width: 100%;
  height: auto;
  border: 3px solid #0f4d6b;
  border-radius: 10px;
  background: linear-gradient(#7dd1ff 0 76%, var(--ground) 76% 100%);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  touch-action: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.options {
  margin: 8px 0 0;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  user-select: none;
}

.toggle input {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #0f4d6b;
}

.hint {
  margin: 6px 0 0;
  font-size: 0.95rem;
}

kbd {
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid #425260;
  background: #f2f4f8;
}
