/* ===========================================================
   トップ画面（ゲーム選択画面）のデザイン
   =========================================================== */

.home-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 12px 0 22px;
}

.home-logo {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  display: grid;
  place-items: center;
  font-size: 30px;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}

/* ---- カードの並び ---- */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin-bottom: 26px;
}

/* ---- ゲームカード ---- */
.game-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  text-decoration: none;
  color: inherit;
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 16px 16px 18px;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* 左のカラー帯 */
.game-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 7px;
  background: var(--card-color, var(--pink));
}

.game-card.is-ready:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(120, 90, 70, 0.18);
}
.game-card.is-ready:active { transform: translateY(0); }

.game-card.is-soon {
  opacity: 0.62;
  cursor: not-allowed;
  box-shadow: none;
  background: repeating-linear-gradient(
    45deg, #fff, #fff 10px, #fbf5f0 10px, #fbf5f0 20px
  );
}

.card-icon {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  display: grid;
  place-items: center;
  font-size: 30px;
  border-radius: 18px;
  background: var(--card-tint, #ffeef2);
}

.card-body { min-width: 0; flex: 1; }

.card-title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.card-sub {
  margin: 3px 0 0;
  font-size: 13px;
  color: var(--ink-soft);
}

/* 進行状況の一言 */
.card-progress {
  margin: 8px 0 0;
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--card-color, var(--pink));
  background: var(--card-tint, #ffeef2);
  border-radius: 999px;
  padding: 3px 11px;
}

/* バッジ */
.badge {
  font-size: 11px;
  font-weight: 800;
  border-radius: 999px;
  padding: 2px 9px;
  color: #fff;
  background: var(--card-color, var(--pink));
  letter-spacing: 0.04em;
}
.badge.soon {
  background: #cbbcb2;
}

/* ---- 下の説明パネル ---- */
.hint { padding: 18px 20px; }

.hint-title {
  margin: 0 0 8px;
  font-size: 15px;
}

.hint-list {
  margin: 0;
  padding-left: 20px;
  font-size: 13px;
  color: var(--ink-soft);
}
.hint-list li { margin-bottom: 3px; }

.hint-note {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--ink-soft);
}

code {
  background: #f6ece4;
  border-radius: 6px;
  padding: 1px 6px;
  font-family: "Consolas", "Courier New", monospace;
  font-size: 0.92em;
}
