.game-container {
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  width: 100%;
}

.game-container>h1 {
  margin-top: 20px;
  margin-bottom: 20px;
}

#game-ui {
  position: relative;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 400/480;
  height: auto;
  border: 5px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  overflow: hidden;
  background: #000;
}

#game-canvas {
  display: block;
  width: 100%;
  height: 100%;
  z-index: 1;
  touch-action: none;
  background: #000;
}

#level-indicator {
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 1.2rem;
  font-weight: 700;
  z-index: 10;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  padding: 5px 15px;
  border-radius: 20px;
  pointer-events: none;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 20;
  text-align: center;
  padding: 20px;
}

.hidden {
  display: none;
}

.overlay h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--accent-color);
}

.overlay p {
  margin-bottom: 30px;
  color: #ccc;
}

button {
  padding: 15px 40px;
  font-size: 1.2rem;
  background: var(--accent-color);
  color: white;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-weight: bold;
  transition: transform 0.2s;
}

button:hover {
  transform: scale(1.05);
}


@media (max-width: 450px) {

  #game-ui,
  #game-canvas {
    width: 100%;
    height: 400px;
  }
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(26, 26, 46, 0.95);
  border-top: 1px solid rgba(77, 121, 255, 0.3);
  padding: 8px 12px;
  z-index: 10000;
  font-size: 11px;
  animation: slideUp 0.3s ease-out;
  backdrop-filter: blur(5px);
}

.cookie-banner.hidden {
  display: none;
}

.cookie-content {
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-text {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 150px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.3;
}

.cookie-icon {
  font-size: 14px;
}

.cookie-buttons {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 5px 10px;
  border: none;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cookie-btn-accept {
  background: linear-gradient(135deg, #4d79ff, #3366ff);
  color: white;
}

.cookie-btn-accept:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(77, 121, 255, 0.4);
}

.cookie-btn-decline {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-btn-decline:hover {
  background: rgba(255, 255, 255, 0.15);
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 480px) {
  .cookie-banner {
    padding: 6px 8px;
  }

  .cookie-content {
    gap: 6px;
  }

  .cookie-text {
    font-size: 10px;
    gap: 4px;
  }

  .cookie-btn {
    padding: 4px 8px;
    font-size: 9px;
  }

  .cookie-icon {
    font-size: 12px;
  }
}