/* Place styles. Colours come from the neon theme in static/neon.css. */
#canvas-container {
  position: relative;
  overflow: hidden;
  cursor: crosshair;
  background-color: #06060e;
  /* mobile: full-width square */
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid rgba(0, 245, 255, 0.3);
  border-radius: 6px;
  box-shadow: 0 0 30px rgba(0, 245, 255, 0.08), inset 0 0 40px rgba(0, 0, 0, 0.5);
  user-select: none;
  touch-action: none;
}
@media (min-width: 992px) {
  #canvas-container {
    /* desktop: fixed square that fits in viewport */
    width: min(78vh, 68vw);
    height: min(78vh, 68vw);
    aspect-ratio: unset;
  }
}
@media (max-width: 991px) {
  .color-swatch { width: 36px; height: 36px; }
}
#place-canvas {
  position: absolute;
  top: 0;
  left: 0;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.color-swatch {
  position: relative;
  width: 30px;
  height: 30px;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 3px;
  flex-shrink: 0;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.swatch-key {
  position: absolute;
  bottom: 1px;
  right: 2px;
  font-size: 0.55rem;
  font-family: monospace;
  color: rgba(255,255,255,0.45);
  line-height: 1;
  pointer-events: none;
}
.color-swatch:hover {
  border-color: rgba(0, 245, 255, 0.5);
  box-shadow: 0 0 8px rgba(0, 245, 255, 0.35);
}
.color-swatch.selected {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 2px #000, 0 0 10px rgba(0, 245, 255, 0.7);
}
#cooldown-bar {
  transition: none;
}
#status-text { color: var(--text-dim); }
#online-count { color: var(--text-dim); }
.place-section-label {
  color: var(--neon-cyan);
  font-family: monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-shadow: 0 0 6px rgba(0,245,255,0.4);
}
