/* ================================================================
   新部品ドラフト（2026-07-05 試作・承認前）
   承認されたら各部品をアプリ側マスターへ移し、このファイルは廃止する。
   接頭辞: fxf=吹き出し（採用決定・正式化待ち）／fxl=ティア表（試作）
   すべてJS不使用。注意: && と行末コメントは使わない
   ================================================================ */

/* ---- fxf 吹き出し ---- */

.fxf-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  margin: 1.6em 0;
}

.fxf-row.fxf-right {
  flex-direction: row-reverse;
}

.fxf-avatar {
  flex: 0 0 74px;
  text-align: center;
}

.fxf-avatar img {
  display: block;
  width: 74px;
  height: 74px;
  object-fit: contain;
  margin: 0 auto;
  padding: 1px;
  background: #fff;
  border: 2px solid #333a41;
  border-radius: 50%;
  box-sizing: border-box;
}

.fxf-name {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  color: #6a7378;
  line-height: 1.3;
}

.fxf-bubble {
  position: relative;
  max-width: calc(100% - 100px);
  padding: 12px 15px;
  background: #f6f8f7;
  border: 1px solid #dbe1de;
  border-radius: 12px;
  font-size: 14.5px;
  line-height: 1.75;
}

.fxf-bubble::before {
  content: "";
  position: absolute;
  bottom: 14px;
  left: -7px;
  width: 12px;
  height: 12px;
  background: inherit;
  border-left: 1px solid #dbe1de;
  border-bottom: 1px solid #dbe1de;
  transform: rotate(45deg);
}

.fxf-right .fxf-bubble::before {
  left: auto;
  right: -7px;
  border-left: none;
  border-bottom: none;
  border-right: 1px solid #e5d9ab;
  border-top: 1px solid #e5d9ab;
}

.fxf-right .fxf-bubble {
  background: #fdf6e0;
  border-color: #e5d9ab;
}

/* ---- fxl ティア表 ---- */

.fxl-wrap {
  margin: 1.8em 0;
  border-radius: 0;
  overflow: hidden;
  border: 1px solid #101214;
  background: #17191c;
}

.fxl-row {
  display: flex;
  align-items: stretch;
  border-top: 2px solid #0c0d0f;
}

.fxl-row:first-child {
  border-top: none;
}

.fxl-tier {
  flex: 0 0 72px;
  display: grid;
  place-items: center;
  min-height: 62px;
  padding: 8px 6px;
  font-weight: 900;
  font-size: 20px;
  color: #1c2733;
  text-align: center;
  line-height: 1.2;
}

/* ランク色は並び順から自動(8色循環)。特定行だけ変えたいときは
   <div class="fxl-row" style="--fxl-color:#xxxxxx"> で上書きできる */
.fxl-row:nth-child(8n + 1) .fxl-tier { background: var(--fxl-color, #ff8a8a); }
.fxl-row:nth-child(8n + 2) .fxl-tier { background: var(--fxl-color, #ffd98a); }
.fxl-row:nth-child(8n + 3) .fxl-tier { background: var(--fxl-color, #fdfd8f); }
.fxl-row:nth-child(8n + 4) .fxl-tier { background: var(--fxl-color, #c8f78f); }
.fxl-row:nth-child(8n + 5) .fxl-tier { background: var(--fxl-color, #8ffca2); }
.fxl-row:nth-child(8n + 6) .fxl-tier { background: var(--fxl-color, #8ffcfc); }
.fxl-row:nth-child(8n + 7) .fxl-tier { background: var(--fxl-color, #8f9bfc); }
.fxl-row:nth-child(8n + 8) .fxl-tier { background: var(--fxl-color, #f28ffc); }

.fxl-items {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  min-width: 0;
}

.fxl-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid #3a3f45;
  border-radius: 8px;
  background: #24272b;
  color: #f0f2f4;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.fxl-item img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  border-radius: 4px;
}

.fxl-item a {
  color: inherit;
  text-decoration: none;
}

@media (max-width: 640px) {
  .fxl-tier {
    flex-basis: 56px;
    font-size: 17px;
  }
}

/* 画像アイコンタイル(本場ティア表式)。テキストチップと混在可 */
.fxl-item-img {
  display: inline-flex;
  width: 56px;
  height: 56px;
  padding: 3px;
  overflow: hidden;
  border: 1px solid #3a3f45;
  border-radius: 8px;
  background: #f4f5f7;
}

.fxl-item-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
}

@media (max-width: 640px) {
  .fxl-item-img {
    width: 48px;
    height: 48px;
  }
}
