:root {
  color-scheme: dark;
  --gold: #d6a437;
  --bright-gold: #ffd66b;
  --deep-gold: #8f5f15;
  --ink: #241709;
  --paper: #fff1c5;
  --sky: #4f8fc7;
}

html,
body,
#root {
  margin: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top, #416f9f 0%, #182335 54%, #130d08 100%);
  color: var(--paper);
  font-family: Georgia, 'Times New Roman', serif;
}

.game-shell {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

canvas {
  width: 100%;
  height: 100%;
  touch-action: none;
  display: block;
  cursor: default;
}

canvas.is-walkable-cursor {
  cursor: pointer;
}

.game-status {
  margin: 0;
  padding: 10px 14px;
  background: linear-gradient(90deg, #2d1b08, #6f4814 45%, #2d1b08);
  border-top: 2px solid var(--bright-gold);
  color: #fff5cf;
  font: 600 14px/1.3 system-ui, sans-serif;
  letter-spacing: 0.02em;
}

.game-menu {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 25%, rgba(255, 214, 107, 0.33), transparent 34%),
    linear-gradient(135deg, rgba(34, 22, 8, 0.82), rgba(37, 67, 98, 0.86));
  backdrop-filter: blur(3px);
}

.menu-card,
.game-help {
  width: min(520px, 92vw);
  border: 3px solid var(--bright-gold);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(255, 244, 202, 0.97), rgba(214, 164, 55, 0.95));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.44), inset 0 0 0 2px rgba(143, 95, 21, 0.35);
  color: var(--ink);
  text-align: center;
}

.menu-card {
  padding: 34px clamp(22px, 5vw, 48px);
}

.menu-logo {
  max-width: min(340px, 80%);
  height: auto;
  filter: drop-shadow(0 8px 10px rgba(60, 35, 8, 0.4));
}

.menu-kicker {
  margin: 12px 0 24px;
  color: #5f3508;
  font: 700 18px/1.2 system-ui, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.menu-actions {
  display: grid;
  gap: 12px;
}

.menu-actions button {
  cursor: pointer;
  border: 2px solid #fff0b5;
  border-radius: 999px;
  padding: 13px 20px;
  background: linear-gradient(180deg, #ffd96f, #bc7a17);
  color: #201304;
  font: 800 17px/1 system-ui, sans-serif;
  box-shadow: 0 5px 0 #6e3f09, 0 12px 22px rgba(85, 47, 8, 0.25);
}

.menu-actions button:hover,
.menu-actions button:focus-visible {
  transform: translateY(-1px);
  outline: 3px solid rgba(255, 255, 255, 0.65);
}

.menu-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
  filter: grayscale(0.45);
  transform: none;
}

.menu-note {
  margin: 18px 0 0;
  color: #684111;
  font: 600 13px/1.4 system-ui, sans-serif;
}

.game-help {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 6;
  max-width: 360px;
  padding: 18px 20px;
  text-align: left;
  font-family: system-ui, sans-serif;
}

.game-help h2 {
  margin: 0 0 8px;
}

.game-help p {
  margin: 0;
}
