/* Kouzelná hůlka: night stage in the site palette (blue and gold) */
:root {
  --bg-0: #1d3566;
  --bg-1: #0a1430;
  --text: #eaf2fa;
  --gold: #e8c872;
}
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  background: var(--bg-1);
  color: var(--text);
  font-family: "Quicksand", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}

#stage {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: none;
  touch-action: none;
}

.spell {
  position: fixed;
  left: 50%;
  bottom: 17%;
  transform: translate(-50%, 10px);
  font-size: clamp(20px, 3.4vw, 30px);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: 0 0 18px rgba(232, 200, 114, 0.55), 0 2px 6px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.spell.show { opacity: 1; transform: translate(-50%, 0); }

.hint {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100vw - 32px);
  padding: 12px 22px;
  border-radius: 16px;
  color: rgba(234, 242, 250, 0.8);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  pointer-events: none;
  user-select: none;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(232, 200, 114, 0.25);
  transition: opacity 1.4s ease;
}
.hint.hidden { opacity: 0; }

body.preview .hint, body.preview .spell { display: none; }
