* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: #1d2530;
  background: #0d1117;
  overflow: hidden;
}

.menu-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  color: #f4f7fb;
}

.menu-container h1 {
  font-size: 3rem;
  margin-bottom: 2rem;
}

.menu-button {
  background: #1d2530;
  color: #f4f7fb;
  border: 2px solid #566270;
  padding: 1rem 2rem;
  margin: 0.5rem;
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.menu-button:hover {
  background: #566270;
  border-color: #f4f7fb;
}

.game-container {
  position: relative;
  min-height: 100vh;
}

.hidden {
  display: none !important;
}

.back-btn {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 20;
  background: rgba(13, 17, 23, 0.8);
  color: #f4f7fb;
  border: 1px solid #566270;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 4px;
}

.back-btn:hover {
  background: #1d2530;
}

.game-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
}

#game, #tetris {
  display: block;
  width: min(100vw, 1000px);
  height: auto;
  max-height: 100vh;
  background: #f4f7fb;
  touch-action: none;
  outline: none;
  cursor: default;
}

#game {
  aspect-ratio: 800 / 500;
}

#tetris {
  aspect-ratio: 800 / 600;
  background: #1d2530;
}

#game:focus, #tetris:focus {
  box-shadow: 0 0 0 3px rgba(29, 37, 48, 0.35);
}

.game-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 17, 23, 0.72);
  pointer-events: none;
  z-index: 10;
}

.game-overlay__text {
  margin: 0;
  font-size: clamp(2rem, 8vw, 4rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: #f4f7fb;
  text-align: center;
  padding: 1rem;
}

.game-hint {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  margin: 0;
  color: #9aa5b5;
  font-size: 0.875rem;
  z-index: 5;
}

.build-number {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  margin: 0;
  color: #566270;
  font-size: 0.875rem;
  z-index: 5;
}