/* タイマー表示 */
#tetris-timer {
  position: fixed;
  top: 128px;
  right: 50px;
  font-size: 2rem;
  font-family: 'Courier New', 'Consolas', monospace;
  color: #00bd4f;
  background: rgba(255,255,255,0.85);
  border: 2px solid #00bd4f;
  border-radius: 12px;
  padding: 8px 24px;
  z-index: 100;
  letter-spacing: 2px;
  font-weight: bold;
}
#container {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  position: relative;
  padding-left: 0px; /* howto-panelの幅+余白分 */
}

.howto-panel {
  background: #e0ffe0;
  border: 2.5px solid #00bd4f;
  border-radius: 16px;
  padding: 80px 12px 12px 12px;
  position: absolute;
  left: -600px;
  top: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  max-width: 600px;
  min-height: 600px;
  box-sizing: border-box;
  z-index: 10;
}

.ranking-panel {
  background: #e0ffe0;
  border: 2.5px solid #00bd4f;
  border-radius: 16px;
  padding: 80px 12px 12px 12px;
  position: absolute;
  left: 600px;
  top: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 600px;
  max-width: 600px;
  min-height: 600px;
  box-sizing: border-box;
  z-index: 10;
}

#ranking-list {
  list-style: none;
  padding: 0;
  color: #000000;
  font-family: 'Courier New', 'Consolas', monospace;
  font-weight: bolder;
  font-size: 26px;
}
#ranking-list li {
  margin-bottom:48px;
}

#howtotext {
  font-size: 48px;
  color: #000000;
  position: absolute;
  font-weight: bold;
  font-family: 'Comic Sans MS', 'Comic Sans', 'Arial Rounded MT Bold', 'Hiragino Maru Gothic Pro', '游ゴシック', 'YuGothic', 'Meiryo', sans-serif;
  top: 20px;
  margin-bottom: 16px;
}

.howto-img {
  width: 500%;
  height: auto;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.08));
}
#hold-label {
  margin-top: 16px;
  margin-bottom: 0;
  color: #00bd4f;
  font-weight: bold;
  background: white;
  border: 2px solid #00bd4f;
  padding: 2px 4px;
  text-align: center;
}
.hold-piece {
  background: white;
  border: 2px solid #00bd4f;
  padding: 10px;
  margin-top: 0;
  margin-bottom: 10px;
}
.hold-canvas {
  background: white;
  display: block;
}
html, body {
  margin: 0;
  padding: 0;
  overflow: hidden;
}
body {
  background: #222;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  height: 100vh;
  padding-top: 60px;
  font-family: sans-serif;
}
#container {
  display: flex;
  gap: 20px;
}
#info, #next, #tetris {
  margin-top: 40px;
}
canvas {
  background: #444;
  border: 1px solid #222;
  display: block;
}
#info, #next {
  font-size: 24px;
  color: #00bd4f;
  font-weight: bold;
}
.box {
  background: white;
  border: 2px solid #00bd4f;
  padding: 2px 4px;
  margin-bottom: 5px;
  display: block;
  text-align: center;
}

.tetris-controls {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 32px;
}
.tetris-btn {
  background: #00bd4f;
  color: #fff;
  border: 2px solid transparent;
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: bold;
  padding: 12px 32px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.tetris-btn:hover {
  background: #fff;
  color: #00bd4f;
  border: 2px solid #00bd4f;
  /* transformやbox-shadowは指定しない */
}
.next-piece {
  background: white;
  border: 2px solid #00bd4f;
  padding: 2px;
  margin-top: 5px;
}
.next-canvas {
  background: white;
  display: block;
}

