html, body {
  margin: 0;
  height: 100%;
  font-family: Arial, sans-serif;
  cursor: url("Silent%20Hill%20Sword.cur"), auto;
}

.bg {
  position: fixed;
  inset: 0;

  /* Fullscreen GIF */
  background: url("background.gif") center center / cover no-repeat;

  /* Brighter than before */
  filter: brightness(0.85) contrast(1.08) saturate(0.95);

  /* Combine mouse POV + bass shake + zoom */
  transform:
    translate3d(
      calc(var(--mx, 0px) + var(--bx, 0px)),
      calc(var(--my, 0px) + var(--by, 0px)),
      0
    )
    rotate(var(--br, 0deg))
    scale(calc(1.08 * var(--bz, 1)));

  will-change: transform;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.25);
}

.center {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  place-content: center;
  text-align: center;
  color: #fff;
  padding: 20px;
}

/* Clickable title image */
.title-btn {
  border: 0;
  padding: 0;
  background: transparent;
  display: inline-flex;
  justify-content: center;
  margin: 0 auto 18px auto;
}

.title-img {
  width: min(360px, 80vw);
  height: auto;
  image-rendering: auto;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.6));
  transition: transform 0.15s ease;
}

.title-btn:hover .title-img {
  transform: translateY(-1px);
}

.links {
  display: grid;
  gap: 14px;
  width: min(320px, 86vw);
  margin: 0 auto;
}

.is-hidden {
  display: none;
}

.link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,0.55);
  background: rgba(0,0,0,0.38);
  border-radius: 12px;
  transition: transform 0.18s ease, background 0.18s ease;
}

.link:hover {
  background: rgba(255,255,255,0.10);
  transform: translateY(-2px);
}

.icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

/* Bottom-right sound GUI */
.sound-ui {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(0,0,0,0.45);
  border-radius: 12px;
  backdrop-filter: blur(2px);
}

.sound-btn {
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(0,0,0,0.35);
  color: #fff;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 13px;
}

.sound-btn:hover {
  background: rgba(255,255,255,0.10);
}

.sound-slider {
  width: 120px;
}

.sound-label {
  font-size: 12px;
  opacity: 0.85;
  min-width: 44px;
  text-align: right;
}