* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #05070a;
  color: #e8eefc;
  font-family: Arial, sans-serif;
}

canvas {
  display: block;
  touch-action: none;
}

#info {
  position: fixed;
  bottom: 5px;
  left: 5px;
  z-index: 10;
  width: min(40vw, 300px);
  /*pointer-events: none;*/
  background: rgba(0, 0, 0, 0.4);
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  backdrop-filter: blur(8px);
}

#info h1 {
  margin: 0 0 0px;
  font-size: min(2.3vw, 18px);
  font-weight: bold;
  text-shadow: 1px 1px 2px #00FF00;
  line-height: 1.6;
  /* 文字サイズの1.6倍（推奨） */
}

#info p {
  margin: 0;
  font-size: min(2.0vw, 15px);
  opacity: 0.9;
  text-shadow: 1px 1px 2px #000;
}

a {
  font-weight: bold;
  display: inline-block;
  transition: .3s;
  transform: scale(1);
  color: #6849e8;
}

a:hover {
  font-weight: bold;
  transform: scale(1.05);
  color: #f89174;
}

#credits {
  position: fixed;
  bottom: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.5);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 11px;
  color: #ccc;
  backdrop-filter: blur(4px);
  pointer-events: auto;
}

#credits a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px dotted #fff;
}

#audio-toggle {
  position: fixed;
  bottom: 10px;
  right: 10px;
  z-index: 1000;
  font-size: 32px;
  cursor: pointer;
  user-select: none;
  background: rgba(0, 0, 0, 0.5);
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

#audio-toggle:hover {
  transform: scale(1.1);
  background: rgba(0, 0, 0, 0.7);
  border-color: #5ac520;
}
