body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  margin: 10px;
  background: #f7f7f8;
  overflow-x: hidden;
}

.page {
  max-width: 1224px;
  width: 100%;
  margin: 0 auto;
}

.top-nav {
  margin-bottom: 10px;
}

.back-link {
  font-size: 14px;
  text-decoration: none;
  color: #409eff;
}

h1 {
  margin-top: 0;
  margin-bottom: 15px;
}

/* =========================
   キャラフィルタ
========================= */
#charFilters {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  padding-top: 10px;
}

.char-button {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #0a0a0a;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  height: 36px;
  padding: 0 8px;
  cursor: pointer;
}

.char-button img {
  width: 32px;
  height: 32px;
}

.char-button p {
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  margin: 0;
}

/* チャーム準拠：選択中 */
.char-button.selected {
  background: linear-gradient(180deg, #2f7dff, #1a5ef5);
}

/* =========================
   ガイド（未選択時）
========================= */
.weapon-guide {
  display: flex;
  justify-content: center;
  margin: 12px 0;
}

.weapon-guide-inner {
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 600;
  color: #2f7dff;
  border-radius: 8px;
  background: rgba(47,125,255,0.08);
}

/* =========================
   スキルトグル
========================= */
.skill-select {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: 12px auto;
  padding: 6px 10px;
  font-size: 16px;
  font-weight: 600;
  color: #2f7dff;
  cursor: pointer;
  user-select: none;
}

.skill-select:hover {
  background: rgba(47,125,255,0.08);
  border-radius: 8px;
}

/* =========================
   PC用スキルリスト
========================= */
#skillFilters {
  margin: 6px auto 0;
  width: 260px;
  border: 1px solid #bfbfbf;
  border-radius: 4px;
  background: #fff;
  max-height: 240px;
  overflow-y: auto;
}

.skill-filter-btn {
  display: block;
  width: 100%;
  padding: 6px 8px;
  text-align: left;
  font-size: 13px;
  background: #fff;
  border: none;
  cursor: pointer;
}

.skill-filter-btn:hover {
  background: #e6f0ff;
}

.skill-filter-btn.active {
  background: #2f7dff;
  color: #fff;
}

/* =========================
   ハイライト
========================= */
.hl {
  background: #fff3a0;
  color: #000;
  font-weight: 700;
  padding: 0 2px;
  border-radius: 2px;
}

/* =========================
   スマホ用 スキルモーダル
========================= */
.skill-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.skill-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.skill-modal-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 360px;
  max-height: 80vh;
  background: #fff;
  border-radius: 12px;
  overflow-y: auto;
  padding: 12px;
}

/* =========================
   装備中表示
========================= */
.card.equipped {
  position: relative;
  opacity: 0.5;
  filter: grayscale(1);
}

.card.equipped::after {
  content: "装備中";
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 11px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 2px 6px;
  border-radius: 6px;
  pointer-events: none;
}
