:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #b8c9c4;
  color: #f8f6ed;
}

* { box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body { background: #b8c9c4; }

#game-shell {
  position: relative;
  width: 100vw;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

#game {
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  background: #b8c9c4;
}

.brand {
  position: fixed;
  top: 24px;
  left: 28px;
  z-index: 3;
  color: rgba(255,255,255,.9);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .22em;
  text-shadow: 0 1px 9px rgba(28,42,35,.28);
  pointer-events: none;
}

.brand span { color: #ffbf55; }

.start-screen {
  position: fixed;
  inset: 0;
  z-index: 5;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 32px;
  text-align: center;
  background: linear-gradient(180deg, rgba(32,48,44,.10), rgba(22,31,27,.58));
  backdrop-filter: blur(3px);
  transition: opacity .45s ease, visibility .45s ease;
}

.start-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.eyebrow {
  margin-bottom: 18px;
  color: #ffd78a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .28em;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(52px, 9vw, 112px);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: .9;
  text-shadow: 0 8px 32px rgba(25,36,31,.24);
}

.start-screen p {
  max-width: 480px;
  margin: 26px auto 28px;
  color: rgba(255,255,255,.78);
  font-size: 15px;
  line-height: 1.7;
}

button {
  min-width: 164px;
  border: 0;
  border-radius: 999px;
  padding: 14px 24px;
  background: #ffba45;
  color: #2b2c24;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .08em;
  cursor: pointer;
  box-shadow: 0 12px 36px rgba(56,39,10,.22);
  transition: transform .18s ease, background .18s ease;
}

button:hover { transform: translateY(-2px); background: #ffd17e; }
button:active { transform: translateY(0); }

.controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  margin-top: 34px;
  color: rgba(255,255,255,.68);
  font-size: 12px;
}

kbd {
  margin-right: 5px;
  color: white;
  font: inherit;
  font-weight: 750;
}

.lock-hint {
  position: fixed;
  z-index: 4;
  left: 50%;
  bottom: 42px;
  transform: translateX(-50%);
  padding: 10px 16px;
  border-radius: 999px;
  color: rgba(255,255,255,.92);
  background: rgba(28,38,33,.62);
  font-size: 12px;
  letter-spacing: .04em;
  backdrop-filter: blur(8px);
  pointer-events: none;
}

@media (max-width: 640px) {
  .brand { top: 18px; left: 18px; }
  .start-screen { padding: 22px; }
  .controls { max-width: 340px; gap: 10px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
