.gamekit-controls {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  margin: 0 auto 16px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.48);
  box-shadow: 0 8px 24px rgba(30, 41, 59, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  color: #1e293b;
  font-family: 'LINE Seed JP', sans-serif;
}

.gamekit-difficulty {
  display: flex;
  overflow: hidden;
  border: 1px solid rgba(30, 41, 59, 0.12);
  border-radius: 12px;
}

.gamekit-difficulty button,
.gamekit-sound {
  box-sizing: border-box;
  min-height: 44px;
  border: 0;
  background: rgba(255, 255, 255, 0.58);
  color: #64748b;
  cursor: pointer;
  font: 700 0.82rem/1 'LINE Seed JP', sans-serif;
  transition: background 0.15s, color 0.15s, opacity 0.15s;
}

.gamekit-difficulty button {
  min-width: 82px;
  padding: 0 14px;
  border-right: 1px solid rgba(30, 41, 59, 0.1);
}

.gamekit-difficulty button:last-child { border-right: 0; }
.gamekit-difficulty button:hover:not(:disabled) { background: rgba(124, 201, 168, 0.25); color: #1e293b; }
.gamekit-difficulty button.is-selected { background: #7cc9a8; color: #1e293b; }
.gamekit-difficulty button:disabled { cursor: not-allowed; opacity: 0.56; }

.gamekit-sound {
  width: 44px;
  min-width: 44px;
  padding: 0;
  border: 1px solid rgba(30, 41, 59, 0.12);
  border-radius: 12px;
  font-size: 1.15rem;
}

.gamekit-sound:hover { background: rgba(124, 201, 168, 0.25); }

@media (max-width: 768px) {
  .gamekit-controls { width: calc(100% - 32px); }
  .gamekit-difficulty { flex: 1; }
  .gamekit-difficulty button { flex: 1; min-width: 0; padding: 0 6px; }
}

/* サイドバーのような細い場所に置くとき用。横並びのままだと
   幅に収まらず、パネルが横スクロールしてしまうため縦積みにする。 */
.gamekit-controls.is-vertical {
  width: 100%;
  margin: 0;
  flex-direction: column;
  gap: 8px;
}
.gamekit-controls.is-vertical .gamekit-difficulty {
  width: 100%;
  flex-direction: column;
}
.gamekit-controls.is-vertical .gamekit-difficulty button {
  width: 100%;
  min-width: 0;
  padding: 0 8px;
  border-right: 0;
  border-bottom: 1px solid rgba(30, 41, 59, 0.1);
}
.gamekit-controls.is-vertical .gamekit-difficulty button:last-child { border-bottom: 0; }
.gamekit-controls.is-vertical .gamekit-sound { width: 100%; }

.gamekit-stage { display: block; margin-left: auto; margin-right: auto; }
