@charset "utf-8";

.muq-container {
  width: 980px;
  max-width: 94%;
  margin: 16px auto 40px;
}

/* モード切替 ＆ 戦績バー */
.muq-topbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.muq-mode-tabs {
  display: flex;
  gap: 8px;
}

.muq-mode-btn {
  padding: 9px 18px;
  font-size: 14px;
  font-weight: bold;
  color: #ccc;
  background-color: #292b2c;
  border: 2px solid #555;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.muq-mode-btn:hover {
  border-color: #888;
  color: #fff;
}

.muq-mode-btn.active {
  background-color: #e7412b;
  border-color: #e7412b;
  color: #fff;
}

.muq-stats-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.muq-stat-pill {
  background-color: #232628;
  border: 1px solid #444;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: bold;
  color: #ddd;
}

.muq-stat-pill strong {
  color: #4cd964;
  margin-left: 4px;
  font-size: 14px;
}

/* ステータスヘッダー（現在のランク・残りライフ・ヒント解放） */
.muq-status-card {
  background-color: #232628;
  border: 2px solid #444;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.muq-status-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.muq-rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: bold;
  background: linear-gradient(90deg, #e7412b, #ff7e21);
  color: #fff;
}

.muq-attempts {
  font-size: 14px;
  font-weight: bold;
  color: #eee;
}

.muq-status-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.muq-sub-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 14px;
  margin: 0;
  font-family: inherit;
  font-size: 13px;
  font-weight: bold;
  line-height: 1;
  white-space: nowrap;
  box-sizing: border-box;
  color: #fff;
  background-color: #3a3f44;
  border: 1px solid #666;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}

.muq-sub-btn:hover:not(:disabled) {
  background-color: #4b5157;
  border-color: #e7412b;
}

.muq-sub-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* 相性ヒントボード（2カラム：有利 / 不利） */
.muq-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.muq-col {
  background-color: #232628;
  border: 2px solid #444;
  border-radius: 10px;
  padding: 16px;
}

.muq-col--adv {
  border-top: 4px solid #2ecc71;
}

.muq-col--dis {
  border-top: 4px solid #e74c3c;
}

.muq-col-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.muq-col--adv .muq-col-title {
  color: #2ecc71;
}

.muq-col--dis .muq-col-title {
  color: #ff6b6b;
}

.muq-col-sub {
  font-size: 11px;
  color: #aaa;
  font-weight: normal;
}

.muq-slot-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.muq-slot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #181a1b;
  border: 1px solid #383c40;
  border-radius: 8px;
  padding: 8px 12px;
  min-height: 54px;
}

.muq-slot.locked {
  opacity: 0.55;
  border-style: dashed;
  justify-content: center;
  color: #888;
  font-size: 13px;
}

.muq-slot-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.muq-slot-rank {
  font-size: 12px;
  font-weight: bold;
  color: #aaa;
  width: 28px;
  flex-shrink: 0;
}

.muq-slot-img {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background-color: #111;
}

.muq-slot-name {
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.muq-slot-wr {
  font-size: 14px;
  font-weight: bold;
  flex-shrink: 0;
  margin-left: 8px;
}

.muq-col--adv .muq-slot-wr {
  color: #4cd964;
}

.muq-col--dis .muq-slot-wr {
  color: #ff6b6b;
}

/* 追加ヒントバー（ヒント3・ヒント4で解放） */
.muq-extra-hints {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.muq-extra-box {
  background-color: #232628;
  border: 1px solid #444;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.5;
}

.muq-extra-box.locked {
  border-style: dashed;
  color: #888;
  text-align: center;
}

.muq-extra-label {
  font-size: 11px;
  font-weight: bold;
  color: #f39c12;
  margin-bottom: 4px;
}

.muq-extra-val {
  font-size: 14px;
  font-weight: bold;
  color: #fff;
}

/* 予想履歴（間違えた時に正解ファイタとの相性を逆ヒント表示） */
.muq-history {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.muq-guess-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background-color: #26292c;
  border-left: 4px solid #e74c3c;
  border-radius: 6px;
  padding: 8px 14px;
}

.muq-guess-row.correct {
  border-left-color: #2ecc71;
  background-color: #1b2e23;
}

.muq-guess-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.muq-guess-left img {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  object-fit: cover;
}

.muq-guess-name {
  font-size: 14px;
  font-weight: bold;
  color: #fff;
}

.muq-guess-feedback {
  font-size: 12px;
  color: #ddd;
  text-align: right;
  line-height: 1.4;
}

.muq-guess-feedback strong {
  color: #f1c40f;
}

/* 結果カードパネル */
.muq-result-panel {
  display: none;
  background: linear-gradient(135deg, #23272a, #1b1e20);
  border: 2px solid #e7412b;
  border-radius: 12px;
  padding: 22px 20px;
  margin-bottom: 20px;
  text-align: center;
}

.muq-result-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #fff;
}

.muq-result-badge.win {
  background-color: #10ac84;
}

.muq-result-badge.lose {
  background-color: #e74c3c;
}

.muq-answer-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 12px 0 16px;
}

.muq-answer-img {
  width: 76px;
  height: 76px;
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid #666;
}

.muq-answer-info {
  text-align: left;
}

.muq-answer-label {
  font-size: 12px;
  color: #aaa;
  margin-bottom: 4px;
}

.muq-answer-name {
  font-size: 24px;
  font-weight: bold;
  color: #fff;
  margin-bottom: 6px;
}

.muq-chara-link {
  display: inline-block;
  font-size: 13px;
  font-weight: bold;
  color: #5ac8fa;
  text-decoration: underline;
}

.muq-result-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

/* ファイタ選択パネル */
.muq-picker-card {
  background-color: #232628;
  border: 2px solid #444;
  border-radius: 10px;
  padding: 16px;
}

.muq-picker-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.muq-search-input {
  flex: 1 1 240px;
  padding: 10px 14px;
  font-size: 14px;
  color: #fff;
  background-color: #181a1b;
  border: 2px solid #555;
  border-radius: 6px;
  outline: none;
}

.muq-search-input:focus {
  border-color: #e7412b;
}

.muq-submit-btn {
  padding: 10px 22px;
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  background-color: #e7412b;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s, opacity 0.2s;
  white-space: nowrap;
}

.muq-submit-btn:hover:not(:disabled) {
  background-color: #ff5842;
}

.muq-submit-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.muq-fighter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
  gap: 6px;
  max-height: 330px;
  overflow-y: auto;
  padding: 4px;
}

.muq-f-btn {
  position: relative;
  padding: 3px;
  background-color: #181a1b;
  border: 2px solid #3a3e42;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.12s, border-color 0.12s;
}

.muq-f-btn img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

.muq-f-btn:hover:not(:disabled) {
  border-color: #aaa;
  transform: scale(1.05);
}

.muq-f-btn.selected {
  border-color: #e7412b;
  background-color: #3a1d1a;
  box-shadow: 0 0 0 2px rgba(231, 65, 43, 0.45);
}

.muq-f-btn:disabled {
  opacity: 0.22;
  cursor: not-allowed;
  filter: grayscale(1);
}

@media (max-width: 840px) {
  .muq-board {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .muq-extra-hints {
    grid-template-columns: 1fr;
  }

  .muq-fighter-grid {
    grid-template-columns: repeat(auto-fill, minmax(46px, 1fr));
    max-height: 270px;
  }

  .muq-submit-btn {
    width: 100%;
  }

  .muq-guess-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .muq-guess-feedback {
    text-align: left;
  }
}
