:root {
  --bg-color: #7ab317;
  --tile-w: 54px;
  --tile-h: 64px;
  --accent: #f0f4c3;
}

body {
  margin: 0;
  background-color: var(--bg-color);
  background-image: radial-gradient(#8bc34a 1px, transparent 1px);
  background-size: 20px 20px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100vh;
}

.header {
  margin-top: 20px;
  text-align: center;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

#game-container {
  position: relative;
  width: 100vw;
  height: 60vh;
  margin-top: 10px;
}

.tile {
  position: absolute;
  width: var(--tile-w);
  height: var(--tile-h);
  background: #fff;
  border: 2px solid #444;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  cursor: pointer;
  transition:
    transform 0.1s,
    brightness 0.2s,
    left 0.5s,
    top 0.5s;
  user-select: none;
  box-shadow:
    0 5px 0 #bbb,
    0 8px 15px rgba(0, 0, 0, 0.2);
}

.tile:active:not(.disabled) {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #bbb;
}

.tile.disabled {
  filter: brightness(0.6) grayscale(0.3);
  cursor: not-allowed;
  box-shadow: 0 5px 0 #777;
}

#slot-wrapper {
  position: fixed;
  bottom: 40px;
  width: 360px;
  height: 85px;
  background: #5d4037;
  border: 6px solid #3e2723;
  border-radius: 12px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 4px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.slot-tile {
  width: 44px;
  height: 54px;
  background: white;
  border: 2px solid #333;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  animation: slideIn 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slideIn {
  0% {
    transform: translateY(-30px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.controls {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  padding: 10px 20px;
  background: #a2d149;
  color: #1a3300;
  border: none;
  border-radius: 50px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 0 #689f38;
}
.btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #689f38;
}

#overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  color: white;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 999;
  backdrop-filter: blur(5px);
  text-align: center;
  padding: 20px;
}
