/* データ分析ツール（決まり手ルーレット・サイコロ3連単）のブログデザイン版（2026-10-09）。
   ページの枠・見出し・ボタン・注記は analysis.css の ta-* を共通で使い、ここには遊びの部分だけを置く。 */

.tt-stage { margin-top: 24px; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.tt-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 20px; margin-top: 20px; }
.tt-controls .ta-field { min-width: 200px; }
.tt-meta { margin: 8px 0 0; font-size: 14px; color: #616161; }

/* 艇番の色（公式: 1白 2黒 3赤 4青 5黄 6緑） */
.tt-chip {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  font-family: 'Barlow Condensed', 'BIZ UDPGothic', sans-serif; font-size: 28px; font-weight: 600; line-height: 1;
  border: 1px solid transparent;
}
.tt-chip.b1 { background: #FFFFFF; color: #111111; border-color: #9E9E9E; }
.tt-chip.b2 { background: #111111; color: #FFFFFF; }
.tt-chip.b3 { background: #D32F2F; color: #FFFFFF; }
.tt-chip.b4 { background: #1565C0; color: #FFFFFF; }
.tt-chip.b5 { background: #F9D71C; color: #111111; }
.tt-chip.b6 { background: #2E7D32; color: #FFFFFF; }
.tt-chip.is-small { width: 26px; height: 26px; font-size: 17px; }
.tt-combo { display: inline-flex; align-items: center; gap: 6px; }
.tt-combo .sep { color: #9E9E9E; font-size: 18px; }

/* 結果 */
.tt-result { width: 100%; border: 1px solid #BDBDBD; padding: 18px 20px; display: none; }
.tt-result.is-shown { display: block; animation: tt-fade .35s ease-out; }
.tt-result-label { font-size: 14px; font-weight: 700; color: #1E6B4E; }
.tt-result .tt-combo { margin-top: 10px; }
.tt-result .tt-chip { width: 56px; height: 56px; font-size: 36px; }
.tt-result p { margin: 12px 0 0; font-size: 16px; line-height: 1.8; }
.tt-result p.tt-sub { font-size: 14px; color: #616161; }
@keyframes tt-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* これまでの結果 */
.tt-history { display: none; }
.tt-history.is-shown { display: block; }
.tt-history ol { list-style: none; margin: 12px 0 0; padding: 0; border-top: 1px solid #D6D6D6; }
.tt-history li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid #D6D6D6; font-size: 15px; }
.tt-history .t { margin-left: auto; font-family: 'Barlow Condensed', sans-serif; font-size: 16px; color: #616161; }
.tt-history .k { color: #616161; font-size: 14px; }

/* ルーレット */
/* 回転する svg の四角い枠が斜めになったとき外へはみ出さないよう、枠で切る（はみ出すとスマホで横スクロールが出る） */
.tt-wheel { position: relative; width: 340px; height: 340px; overflow: hidden; }
.tt-wheel svg { width: 100%; height: 100%; display: block; }
.tt-wheel .pointer {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%); z-index: 2;
  width: 0; height: 0; border-left: 13px solid transparent; border-right: 13px solid transparent; border-top: 22px solid #1B2A47;
}
.tt-wheel .hub {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 2;
  width: 30px; height: 30px; border-radius: 50%; background: #FFFFFF; border: 3px solid #1B2A47;
}
.tt-wheel .slice-label { font-family: 'Barlow Condensed', sans-serif; font-size: 12px; font-weight: 600; fill: #FFFFFF; paint-order: stroke; stroke: rgba(0,0,0,.35); stroke-width: 2px; }
.tt-wheel .slice-pct { font-family: 'Barlow Condensed', sans-serif; font-size: 9px; fill: rgba(255,255,255,.95); paint-order: stroke; stroke: rgba(0,0,0,.3); stroke-width: 1.5px; }
.tt-loading { font-size: 15px; color: #616161; }
.tt-swatch { display: inline-block; width: 12px; height: 12px; margin-right: 8px; vertical-align: -1px; }
.tt-err { color: #B42318; font-weight: 700; font-size: 15px; }

/* サイコロ（立体の動きは旧画面のまま） */
.tt-dice-row { display: flex; justify-content: center; gap: 24px; perspective: 600px; }
.tt-dice-col { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.tt-dice-col .lbl { font-size: 14px; font-weight: 700; color: #111111; }
.tt-dice { width: 80px; height: 80px; position: relative; transform-style: preserve-3d; transition: transform .1s; }
.tt-dice.rolling { animation: tt-roll .8s ease-out; }
@keyframes tt-roll {
  0% { transform: rotateX(0) rotateY(0) rotateZ(0); }
  40% { transform: rotateX(600deg) rotateY(400deg) rotateZ(200deg); }
  100% { transform: rotateX(1080deg) rotateY(720deg) rotateZ(360deg); }
}
.tt-face {
  position: absolute; width: 80px; height: 80px; border-radius: 6px; backface-visibility: hidden;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.25);
}
.tt-face.f1 { background: #FFFFFF; color: #D32F2F; transform: translateZ(40px); box-shadow: inset 0 0 0 1px #9E9E9E; }
.tt-face.f2 { background: #111111; color: #FFFFFF; transform: rotateY(90deg) translateZ(40px); }
.tt-face.f3 { background: #D32F2F; color: #FFFFFF; transform: rotateY(180deg) translateZ(40px); }
.tt-face.f4 { background: #1565C0; color: #FFFFFF; transform: rotateY(-90deg) translateZ(40px); }
.tt-face.f5 { background: #F9D71C; color: #111111; transform: rotateX(90deg) translateZ(40px); }
.tt-face.f6 { background: #2E7D32; color: #FFFFFF; transform: rotateX(-90deg) translateZ(40px); }
.tt-pip { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: currentColor; transform: translate(-50%, -50%); }

@media (max-width: 760px) {
  .tt-wheel { width: 300px; height: 300px; }
  .tt-dice-row { gap: 16px; }
  .tt-controls .ta-field { flex: 1 1 100%; }
}
