:root {
  --primary: 255 67% 60%;
  --primary-dark: 255 59% 44%;
  --accent: 17 100% 60%;
  --background: 240 33% 14%;
  --foreground: 240 20% 97%;
  --card: 240 33% 14%;
  --muted: 240 33% 18%;
  --muted-foreground: 240 11% 60%;
  --destructive: 0 84% 60%;
  --radius: 0.75rem;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body,
#app {
  width: 100%;
  height: 100dvh;
}
body {
  font-family: Inter, sans-serif;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  overflow: hidden;
}
#app {
  position: relative;
}
canvas#game {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}
/* Landscape-gate: Puckline is portret-only. Op een kort landscape-scherm (telefoon)
   verbergen we het spel en vragen we het toestel rechtop te draaien. De max-height
   houdt desktop-landscape (groot scherm) ongemoeid. */
#rotate-gate {
  display: none;
}
@media (orientation: landscape) and (max-height: 600px) {
  #app {
    display: none;
  }
  #rotate-gate {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    background: hsl(var(--background));
    z-index: 1000;
    padding: 1rem;
    text-align: center;
  }
  .rotate-icon {
    font-size: 3rem;
    color: hsl(var(--primary));
    margin-bottom: 0.5rem;
  }
}
.overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.card {
  background: hsl(var(--card) / 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid hsl(var(--primary) / 0.25);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: min(420px, 90vw);
  text-align: center;
  box-shadow: 0 0 40px -10px hsl(var(--primary) / 0.4);
}
.brand {
  font-family: Audiowide, cursive;
  letter-spacing: 0.04em;
}
.code {
  font-family: Audiowide, cursive;
  font-size: 2rem;
  letter-spacing: 0.25em;
  color: hsl(var(--primary));
}
.muted {
  color: hsl(var(--muted-foreground));
}
.error {
  color: hsl(var(--destructive));
  min-height: 1.2em;
}
.btn {
  font-family: Inter, sans-serif;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  cursor: pointer;
  color: hsl(var(--foreground));
  background: hsl(var(--muted));
  transition: transform 0.05s ease, filter 0.15s ease;
}
.btn:hover {
  filter: brightness(1.15);
}
.btn:active {
  transform: scale(0.98);
}
.btn-primary {
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary-dark)));
}
.btn-accent {
  background: hsl(var(--accent));
}
.join-row {
  display: flex;
  gap: 0.5rem;
}
.input {
  flex: 1;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 0.2em;
  font-family: Audiowide, cursive;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--primary) / 0.4);
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  padding: 0.75rem;
}
