/* 3D Tetris - ネオン調ダークUI */
* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0A0A12;
  color: #E0E0F0;
  font-family: "Segoe UI", "Meiryo", sans-serif;
}

#game {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* HUD: 右側にスコアとNEXT */
#hud {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 220px;
  padding: 16px;
  background: rgba(10, 10, 25, 0.72);
  border: 1px solid #00E5FF;
  border-radius: 8px;
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.35);
  backdrop-filter: blur(6px);
  z-index: 10;
}

#hud .label {
  font-size: 11px;
  letter-spacing: 2px;
  color: #9BE8FF;
  text-transform: uppercase;
  margin-bottom: 2px;
}

#hud .value {
  font-size: 22px;
  font-weight: bold;
  color: #00E5FF;
  text-shadow: 0 0 8px #00E5FF;
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}

#hud .value.magenta { color: #FF00E5; text-shadow: 0 0 8px #FF00E5; }
#hud .value.green   { color: #00FF88; text-shadow: 0 0 8px #00FF88; }

#next-canvas {
  width: 100%;
  height: 120px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid #333;
  border-radius: 4px;
}

/* タイトル左上 */
#title {
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 6px;
  color: #FF00E5;
  text-shadow: 0 0 12px #FF00E5, 0 0 24px rgba(255, 0, 229, 0.6);
  z-index: 10;
}

#controls {
  position: absolute;
  bottom: 20px;
  left: 20px;
  padding: 12px 16px;
  background: rgba(10, 10, 25, 0.6);
  border: 1px solid #333;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.7;
  color: #9BE8FF;
  z-index: 10;
}

#controls b { color: #00FF88; }

/* オーバーレイ (START / GAME OVER / PAUSE) */
#overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  z-index: 20;
  text-align: center;
  cursor: pointer;
}

#overlay.hidden { display: none; }

#overlay h1 {
  font-size: 56px;
  letter-spacing: 10px;
  color: #00E5FF;
  text-shadow: 0 0 16px #00E5FF;
  margin-bottom: 12px;
}

#overlay h1.gameover {
  color: #FF00E5;
  text-shadow: 0 0 16px #FF00E5;
}

#overlay p {
  font-size: 16px;
  color: #9BE8FF;
  margin: 4px 0;
}

#overlay .hint {
  margin-top: 20px;
  font-size: 14px;
  color: #888;
}

/* ===== MuscleLove ブランディング ===== */
#brand {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}
.brand-link {
  display: inline-block;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 1px;
  color: #FFD700;
  text-decoration: none;
  background: rgba(10, 10, 25, 0.7);
  border: 1px solid #FFD700;
  border-radius: 20px;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
  transition: all 0.2s;
}
.brand-link:hover {
  background: #FFD700;
  color: #0A0A12;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
}

.hud-links {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hud-links a {
  display: block;
  padding: 8px 10px;
  font-size: 12px;
  text-align: center;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s;
}
.hud-links .patreon {
  color: #FF5555;
  background: rgba(255, 85, 85, 0.1);
  border: 1px solid #FF5555;
}
.hud-links .patreon:hover {
  background: #FF5555;
  color: #fff;
}
.hud-links .share-x {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid #fff;
}
.hud-links .share-x:hover {
  background: #fff;
  color: #0A0A12;
}

.overlay-brand {
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 2px;
  color: #FFD700;
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.7);
  margin-bottom: 20px;
}
.overlay-links {
  margin-top: 24px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.overlay-links a {
  padding: 8px 16px;
  font-size: 13px;
  color: #9BE8FF;
  text-decoration: none;
  border: 1px solid #9BE8FF;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.4);
  transition: all 0.2s;
}
.overlay-links a:hover {
  background: #9BE8FF;
  color: #0A0A12;
}
