* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; overflow: hidden; background: #05060a; }
#scene { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; }

.ui {
  position: fixed; inset: 0; pointer-events: none;
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  color: rgba(225, 230, 245, .72);
  padding: clamp(18px, 3vw, 38px);
  display: grid; grid-template-rows: auto 1fr auto;
}

.meta-top h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700; font-style: italic; letter-spacing: .01em;
  font-size: clamp(1.5rem, 3.6vw, 2.8rem);
  color: #fff; line-height: 1;
}
.meta-top p {
  margin-top: 10px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(225, 230, 245, .5);
}

.hint {
  position: fixed; left: 50%; bottom: clamp(96px, 16vh, 150px);
  transform: translateX(-50%);
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(225, 230, 245, .38);
  animation: breathe 4.5s ease-in-out infinite;
}
@keyframes breathe { 0%,100% { opacity: .25; } 50% { opacity: .68; } }

.meta-bottom { align-self: end; max-width: 58ch; }
.statement { font-size: 13px; line-height: 1.65; color: rgba(225, 230, 245, .72); }
.sources { margin-top: 12px; font-size: 10.5px; letter-spacing: .03em; color: rgba(225, 230, 245, .34); line-height: 1.5; }

/* the dead speak — readable Hamlet lines */
.line {
  position: fixed; z-index: 5; pointer-events: none;   /* left/top set by JS to the touched point */
  width: max-content; max-width: min(340px, 70vw);
  padding: 13px 17px;
  text-align: center;
  background: rgba(8, 9, 14, .85);
  border: 1px solid rgba(255, 206, 120, .32);   /* faint candle-gold edge */
  border-radius: 3px;                            /* rectangle, lightly rounded */
  box-shadow: 0 12px 44px rgba(0, 0, 0, .6);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: clamp(1rem, 1.5vw, 1.32rem);
  line-height: 1.4;
  color: #ffd98a;                                /* candle-gold, matching the warm particles */
  text-shadow: 0 1px 10px rgba(0, 0, 0, .6);
  opacity: 0;
  transform: translate(-50%, -50%) scale(.18);   /* grows from the particle */
  transform-origin: center;
  transition: opacity .35s ease, transform .42s cubic-bezier(.2, .85, .25, 1);
}
.line.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.sound-btn {
  position: fixed; right: clamp(18px,3vw,38px); bottom: clamp(18px,3vw,38px);
  pointer-events: auto; cursor: pointer;
  font-family: ui-monospace, Menlo, monospace; font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(225,230,245,.8);
  background: rgba(255,255,255,.04); border: 1px solid rgba(225,230,245,.22);
  border-radius: 100px; padding: 12px 22px; backdrop-filter: blur(6px);
  transition: border-color .2s, color .2s;
}
.sound-btn:hover { border-color: rgba(225,230,245,.6); color: #fff; }
.sound-btn.on { border-color: #ffce6a; color: #ffce6a; }

@media (prefers-reduced-motion: reduce) { .hint { animation: none; opacity: .5; } }

.home-link { pointer-events: auto; display: inline-block; margin-bottom: 14px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; color: rgba(255,255,255,.45); transition: color .2s; }
.home-link:hover { color: #fff; }
