@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700;900&display=swap');

/* ...resten av din css... */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #0b0f16;
  color: #e5e7eb;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* Canvas container */
canvas#gameCanvas {
  display: block;
  box-shadow: 0 0 40px rgba(0,255,180,0.15), inset 0 0 20px rgba(0,0,0,0.6);
  border-radius: 16px;
  background: radial-gradient(120% 120% at 50% 0%, #0f172a 0%, #0b0f16 60%, #060912 100%);
}

/* Audio overlay (Tap to Activate) */
#audioOverlay {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(6px);
  z-index: 1000;
  transition: opacity 0.4s ease;
}

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

#audioOverlay .overlay-box {
  background: rgba(6, 12, 20, 0.9);
  border: 1px solid rgba(0,255,200,0.25);
  padding: 24px 28px;
  border-radius: 12px;
  text-align: center;
  color: #e5e7eb;
  box-shadow: 0 8px 40px rgba(0,0,0,0.35);
  max-width: 360px;
}

#audioOverlay h2 {
  color: #00fff0;
  margin-bottom: 8px;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(0,255,255,0.6);
}

#audioOverlay p {
  font-size: 14px;
  margin-bottom: 6px;
  color: #b5c0cc;
}

#audioOverlay small {
  font-size: 12px;
  color: #808891;
}

/* Debug area (if enabled) */
.debug {
  position: fixed;
  left: 8px;
  bottom: 8px;
  font-family: monospace;
  font-size: 12px;
  color: #9ca3af;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 6px 8px;
  border-radius: 8px;
  max-width: 42ch;
  white-space: pre-wrap;
}
/* Dölj skylten som standard */
#rotate-overlay {
  display: none;
}

/* OM vi är i liggande läge (Landscape) OCH skärmen är mobil-liten... */
@media screen and (orientation: landscape) and (max-height: 600px) {
  #rotate-overlay {
    display: flex;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #0b0f16;
    z-index: 9999; /* Allra överst */
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #00f3ff; /* Neon-färgen */
    font-family: sans-serif;
    font-size: 24px;
    font-weight: bold;
  }
}
body {
  margin: 0;
  overflow: hidden;
  background: #0b0f16;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  user-select: none; /* Förhindra textmarkering */
  -webkit-user-select: none;
}

.hidden {
  display: none !important;
}

.overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(11, 15, 22, 0.85); /* Mörk halvtransparent */
  backdrop-filter: blur(5px); /* Snygg oskärpa bakom */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
}

.win-content {
  background: rgba(20, 30, 40, 0.9);
  padding: 40px;
  border-radius: 15px;
  border: 2px solid #00f3ff; /* Neon Cyan */
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.4);
  text-align: center;
  animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

h1 {
  color: #fff;
  margin: 0 0 20px 0;
  text-shadow: 0 0 10px #00f3ff;
  font-size: 2rem;
}

.stars {
  font-size: 2rem;
  margin-bottom: 30px;
  letter-spacing: 10px;
}

button {
  background: #00f3ff;
  color: #0b0f16;
  border: none;
  padding: 15px 40px;
  font-size: 1.2rem;
  font-weight: bold;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.6);
  transition: transform 0.1s, box-shadow 0.1s;
}

button:active {
  transform: scale(0.95);
  box-shadow: 0 0 5px rgba(0, 243, 255, 0.6);
}
