:root {
  color-scheme: light;
  --bg-top: #d7c4a4;
  --bg-bottom: #8e7658;
  --panel: rgba(40, 30, 22, 0.78);
  --panel-border: rgba(255, 235, 204, 0.16);
  --text-main: #f8efdc;
  --text-muted: #d5c2a2;
  --accent: #d29f58;
  --accent-strong: #f2c172;
  --shadow: rgba(17, 11, 7, 0.38);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  background:
    radial-gradient(circle at top, rgba(255, 236, 205, 0.32), transparent 28%),
    linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
  color: var(--text-main);
}

.app-shell {
  max-width: 1500px;
  margin: 0 auto;
  padding: 18px 18px 28px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 16px;
  margin-bottom: 14px;
}

.toolbar__group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.toolbar__button {
  border: 1px solid rgba(43, 28, 18, 0.52);
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(248, 232, 206, 0.88);
  color: #35251a;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(48, 31, 19, 0.12);
  transition: transform 140ms ease, box-shadow 140ms ease, opacity 140ms ease;
}

.toolbar__button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(48, 31, 19, 0.18);
}

.toolbar__button:disabled {
  cursor: default;
  opacity: 0.55;
}

.toolbar__button--accent {
  background: linear-gradient(180deg, var(--accent-strong), var(--accent));
  color: #26180f;
  border-color: rgba(62, 40, 24, 0.64);
}

.stage {
  position: relative;
}

#game-canvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow:
    0 26px 50px rgba(24, 14, 8, 0.24),
    inset 0 0 0 1px rgba(255, 236, 205, 0.12);
  background: #20323f;
}

.menu-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.menu-overlay.is-hidden {
  display: none;
}

.menu-card {
  max-width: 520px;
  padding: 28px 30px 30px;
  border: 1px solid var(--panel-border);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(50, 36, 25, 0.86), rgba(29, 21, 15, 0.88));
  box-shadow: 0 20px 40px var(--shadow);
  backdrop-filter: blur(8px);
}

.menu-card h1 {
  margin: 0 0 12px;
  font-size: 44px;
  letter-spacing: 0.04em;
}

.menu-card p,
.menu-card li {
  color: var(--text-muted);
  line-height: 1.55;
}

.menu-card__eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #f1ca87;
}

.menu-card ul {
  margin: 18px 0 0;
  padding-left: 18px;
}
