:root {
  --text-color: #fff;
  --primary-color: #e52521; /* Mario Red */
  --overlay-bg: rgba(0, 0, 0, 0.7);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #000;
}

#game-container {
  position: relative;
  width: 800px;
  height: 600px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  background-image: url('https://static.wefun.ai/assets/e75769b4-c9e3-4a8c-ad10-ba2ac20352f4.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 4px;
  overflow: hidden;
}

canvas {
  display: block;
}

#ui-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#score {
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 24px;
  font-weight: bold;
  color: var(--text-color);
  text-shadow: 2px 2px 0 #000;
  font-family: monospace;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--overlay-bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--text-color);
  z-index: 10;
  transition: opacity 0.3s;
}

.overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

h1 {
  font-size: 48px;
  margin-bottom: 20px;
  text-shadow: 3px 3px 0 #e52521;
  text-transform: uppercase;
  letter-spacing: 2px;
}

p {
  font-size: 18px;
  margin-bottom: 10px;
}

.key {
  background: #fff;
  color: #000;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 0.9em;
}
