:root {
  --vh: 100%;
}

* {
  font-family: 'Press Start 2P', cursive;
  box-sizing: border-box;
}

body, html {
  margin: 0;
  padding: 0;
  background: #000;
  overflow: hidden;
}

.mobile-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100vw;
  height: calc(var(--vh, 1vh) * 100);
  overflow: hidden;
}

.score-panel {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 5px 10px;
  font-size: 10px;
  width: 100%;
  gap: 10px;
}

canvas#next {
  width: 50px;
  height: 50px;
  image-rendering: pixelated;
  display: block;
  align-self: center;
}

canvas#board {
  background-image: url('background.png');
  background-color: #7e422f;
  background-size: 100% auto;
  background-position: center;
  background-repeat: no-repeat;
  width: 100vw;
  height: calc(var(--vh, 1vh) * 100 - 130px);
  display: block;
  image-rendering: pixelated;
}

.play-button {
  background-color: #28a745;
  font-size: 12px;
  padding: 5px 10px;
  cursor: pointer;
  color: white;
  border: none;
  border-radius: 4px;
}

.mobile-controls {
  height: 80px;
  width: 100%;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  background: rgba(0, 0, 0, 0.6);
  padding: 10px;
  padding-bottom: env(safe-area-inset-bottom, 10px);
}

.mobile-controls button {
  padding: 15px;
  font-size: 20px;
  border-radius: 6px;
  background-color: #222;
  color: white;
  border: 2px solid #555;
  min-width: 60px;
}