/* games/pixel-maze/style.css */

/* Extend the arcade styles for the game specific elements */

.back-link {
  color: var(--color-accent-cyan);
  border: 1px solid rgba(6, 214, 160, 0.3);
}

.back-link:hover {
  background: rgba(6, 214, 160, 0.1);
  border-color: var(--color-accent-cyan);
  box-shadow: 0 0 16px rgba(6, 214, 160, 0.2);
}

/* Game Container */
.game-container {
  width: 100%;
  max-width: 600px;
  aspect-ratio: 1 / 1;
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  /* Dark blue/green tint */
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid rgba(6, 214, 160, 0.15);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(250, 204, 21, 0.05);
}

#game-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* UI Overlay Layer */
.ui-layer {
  position: absolute;
  inset: 0;
  /* Let clicks pass through except when screens are active */
  pointer-events: none;
  z-index: 10;
}

.screen {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 26, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}

.screen.screen--active {
  opacity: 1;
  pointer-events: auto;
}

.screen__title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 8px;
  text-shadow: 0 0 20px rgba(6, 214, 160, 0.5);
}

.screen__text {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 40px;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.screen__actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 200px;
}

.btn {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 16px 24px;
  border-radius: var(--radius-btn);
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
  width: 100%;
  text-align: center;
}

.btn--primary {
  background: var(--color-accent-cyan);
  color: #000;
  box-shadow: 0 0 20px rgba(6, 214, 160, 0.4);
}

.btn--primary:hover {
  background: #04e0a6;
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(6, 214, 160, 0.6);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}