/* ComputerDraw Museum — HUD styles. Same black-and-white, Georgia-serif look as the main site. */
:root {
  --ink: #000;
  --muted: #666;
  --line: #ddd;
  --paper: rgba(255, 255, 255, 0.92);
  --hand: Georgia, "Times New Roman", Times, serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #f2f2f2;
  color: var(--ink);
  font-family: var(--hand);
  font-size: 16px;
  line-height: 1.4;
  -webkit-text-size-adjust: 100%;
}

#stage {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  cursor: grab;
  outline: none;
}
#stage.dragging { cursor: grabbing; }
#stage.hover { cursor: pointer; }

.hud {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  pointer-events: none;
}
.hud > * { pointer-events: auto; }

.hud-top {
  top: 0;
  justify-content: space-between;
  padding-top: max(10px, env(safe-area-inset-top));
}

.title {
  color: var(--ink);
  text-decoration: none;
  font-size: 10px;
  letter-spacing: 0.01em;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 4px 8px;
  border-radius: 16px 10px 18px 11px / 11px 18px 10px 16px;
}
.title span { color: var(--muted); font-style: italic; }

.picker {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 6px 10px;
  border-radius: 10px 16px 11px 18px / 18px 11px 16px 10px;
}
.picker-label { color: var(--muted); font-size: 14px; }
select {
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 8px;
  max-width: 48vw;
}

.hud-bottom {
  bottom: 0;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
}

.placard {
  max-width: min(560px, 92vw);
  background: transparent;
  padding: 4px 16px;
  text-align: center;
  text-shadow: 0 0 6px rgba(255,255,255,0.9), 0 0 2px rgba(255,255,255,0.9);
}
.placard-who { font-size: 17px; }
.placard-caption { font-style: italic; color: #222; margin-top: 2px; word-wrap: break-word; }
.placard-caption:empty { display: none; }
.placard-date { color: var(--muted); font-size: 13px; margin-top: 2px; }


.hint {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  background: transparent;
  padding: 2px 10px;
  text-shadow: 0 0 6px rgba(255,255,255,0.9), 0 0 2px rgba(255,255,255,0.9);
}
@media (max-width: 600px) {
  .hint { display: none; }
  .title { font-size: 10px; }
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.85);
}
.overlay[hidden] { display: none; }
.overlay-box {
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  padding: 22px 28px;
  border-radius: 16px 10px 18px 11px / 11px 18px 10px 16px;
  max-width: 90vw;
}
.overlay-box button {
  font-family: inherit;
  font-size: 16px;
  margin-top: 8px;
  padding: 6px 14px;
  border: 1px solid var(--ink);
  background: #fff;
  border-radius: 12px;
  cursor: pointer;
}
.spinner {
  width: 26px;
  height: 26px;
  margin: 0 auto 12px;
  border: 2px solid var(--line);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
