body { background: #04060a; }

#c { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }

#pain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 120px rgb(255 30 60 / 0);
  transition: box-shadow .6s;
}
#pain.on { box-shadow: inset 0 0 120px rgb(255 30 60 / .8); transition: none; }

#hud {
  position: fixed;
  top: calc(10px + var(--safe-top));
  left: 52px;
  right: 12px;
  font-family: var(--mono);
  pointer-events: none;
}
#place {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ice);
  text-shadow: 0 0 12px rgb(106 216 255 / .6);
}
#place.changed { animation: place-in .8s ease-out; }
@keyframes place-in { from { letter-spacing: .8em; opacity: 0; filter: blur(4px); } }
#hearts { margin-top: 4px; font-size: 14px; letter-spacing: 3px; color: var(--blood); }
#hearts .lost { color: rgb(255 255 255 / .12); }
#hearts.hit { animation: shake .3s; }
#goal { margin-top: 4px; font-size: 11px; color: var(--dim); }

#stick {
  position: fixed;
  width: 120px;
  height: 120px;
  margin: -60px 0 0 -60px;
  border-radius: 50%;
  border: 1px solid rgb(106 216 255 / .35);
  background: radial-gradient(circle, rgb(106 216 255 / .08), transparent 70%);
  pointer-events: none;
  animation: stick-in .15s ease-out;
}
#stick[hidden] { display: none; }
#stick i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 50%;
  background: rgb(106 216 255 / .3);
  border: 1px solid var(--ice);
  box-shadow: 0 0 16px rgb(106 216 255 / .5);
}
@keyframes stick-in { from { transform: scale(.6); opacity: 0; } }

#zone-hint {
  position: fixed;
  left: 18px;
  bottom: calc(80px + var(--safe-bottom));
  font: 12px/1.4 var(--mono);
  color: rgb(106 216 255 / .55);
  pointer-events: none;
  transition: opacity 1s;
  animation: hint 2s ease-in-out infinite;
}
#zone-hint small { color: var(--dim); }
@keyframes hint { 50% { opacity: .5; } }

#shout {
  position: fixed;
  right: 18px;
  bottom: calc(24px + var(--safe-bottom));
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 1px solid rgb(106 216 255 / .5);
  background: rgb(106 216 255 / .07);
  color: var(--ice);
  font: 800 11px var(--mono);
  letter-spacing: .15em;
  overflow: hidden;
  transition: transform .1s;
}
#shout:active { transform: scale(.9); }
#shout i {
  position: absolute;
  inset: 0;
  background: conic-gradient(rgb(0 0 0 / .7) var(--cd, 0%), transparent 0);
  border-radius: 50%;
}
#shout span { position: relative; z-index: 1; }

#overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgb(4 6 10 / .8);
  animation: fade .8s;
}
#overlay[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.panel { text-align: center; font-family: var(--mono); padding: 24px; }
.panel h2 { font-size: 30px; letter-spacing: .3em; color: var(--ice); margin: 0 0 10px; animation: place-in 1.2s ease-out; }
.panel p { color: var(--dim); line-height: 1.6; margin: 0 0 22px; }
.panel button { padding: 12px 28px; border-radius: 999px; border: 1px solid var(--ice); color: var(--ice); font-weight: 700; letter-spacing: .1em; }
