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

* {
  box-sizing: border-box;
}

html,
body {
  width: 600px;
  height: 600px;
  margin: 0;
  overflow: hidden;
  background: #000;
}

body {
  user-select: none;
  -webkit-user-select: none;
}

#app {
  position: relative;
  width: 600px;
  height: 600px;
  overflow: hidden;
  background: #000;
}

#game {
  display: block;
  width: 600px;
  height: 600px;
  outline: none;
}

.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 38px;
  background: rgba(0, 0, 0, 0.92);
  text-align: center;
}

.hidden {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: #61e8ff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

h1,
h2 {
  margin: 0;
  color: #fff;
  font-size: 76px;
  line-height: 0.95;
  letter-spacing: 0.04em;
  text-shadow: 0 0 24px rgba(97, 232, 255, 0.45);
}

h2 {
  font-size: 54px;
}

.high-score,
.final-score {
  margin: 22px 0 18px;
  color: #ffe66d;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.new-best {
  margin: -8px 0 12px;
  color: #7cff89;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.focusable {
  min-width: 280px;
  min-height: 88px;
  padding: 18px 28px;
  border: 3px solid #66727d;
  border-radius: 18px;
  background: #121a21;
  color: #fff;
  font: inherit;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0.12em;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.focusable:focus {
  border-color: #61e8ff;
  box-shadow: 0 0 24px rgba(97, 232, 255, 0.65);
  transform: scale(0.98);
}

.controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 20px;
  margin-top: 24px;
  color: #d7e0e8;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
