/* ==============================
   共通スタイル（ランチャー & 全ゲーム共通の基礎）
   ============================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  min-height: 100vh;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Maru Gothic ProN",
               "Yu Gothic UI", "Meiryo", sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  min-height: 100vh;
  padding: env(safe-area-inset-top) env(safe-area-inset-right)
           env(safe-area-inset-bottom) env(safe-area-inset-left);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  overflow-x: hidden;
}

/* ==============================
   ランチャー画面
   ============================== */

.launcher {
  max-width: 500px;
  margin: 0 auto;
  padding: 40px 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

.launcher-header {
  text-align: center;
  margin-bottom: 32px;
}

.launcher-title {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 12px;
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.15);
  letter-spacing: 0.02em;
}

.launcher-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* ゲームタイルグリッド */
.game-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
  margin-bottom: 32px;
}

.game-tile {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  padding: 24px 12px 20px;
  text-decoration: none;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
  min-height: 130px;
  justify-content: center;
}

.game-tile--active {
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.game-tile--active:active {
  transform: scale(0.96);
  background: rgba(255, 255, 255, 0.3);
}

.game-tile--coming {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

.tile-icon {
  font-size: 2.8rem;
  line-height: 1;
}

.tile-name {
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
}

.tile-desc {
  font-size: 0.78rem;
  opacity: 0.85;
  line-height: 1.3;
  text-align: center;
}

.launcher-footer {
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.7;
  margin-top: auto;
  padding-top: 20px;
}

/* デスクトップ幅で 4 列 */
@media (min-width: 700px) {
  .game-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
