/* MissionTodo — 演出 */
.toast { white-space: pre-line; }

.fx {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  overflow: hidden;
  background: rgba(10, 6, 4, 0.7);
  color: #fff;
  text-align: center;
  animation: fade-in 0.18s ease;
  cursor: pointer;
}
.fx.out { animation: fade-out 0.22s ease forwards; }
.fx-particles { position: absolute; inset: 0; pointer-events: none; }
.fx-p {
  position: absolute;
  left: 50%;
  top: 40%;
  color: #ffd24d;
  font-size: calc(18px * var(--s, 1));
  opacity: 0;
  transform: translate(-50%, -50%);
  animation: burst var(--d, 0.9s) ease-out forwards;
}
.fx-p .ic { display: block; }
.fx-p.c1 { color: #fff3c4; }
.fx-p.c2 { color: #f6a93c; }
.fx-p.c3 { color: #ffe9a8; }
@keyframes burst {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(0.3); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1) rotate(80deg); }
}

/* ミッションクリア */
.fx-stamp {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 22px 10px;
  border: 5px solid #e0221c;
  background: rgba(0, 0, 0, 0.28);
  color: #e3241d;
  font: 900 46px/0.96 "Rubik", "Arial Black", "Segoe UI Black", sans-serif;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
  box-shadow: 0 0 30px rgba(224, 34, 28, 0.28);
  animation: stamp 0.42s cubic-bezier(0.2, 1.6, 0.4, 1) both;
}
@keyframes stamp {
  0% { opacity: 0; transform: scale(2.4) rotate(-8deg); }
  60% { opacity: 1; transform: scale(0.94) rotate(1deg); }
  100% { transform: scale(1) rotate(0); }
}
.fx-title { max-width: 90%; margin-top: 18px; font-size: 17px; font-weight: 800; word-break: break-word; animation: rise 0.3s 0.25s both; }
.fx-line {
  width: 0;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, #f6b73c, #ffe08a, #f6b73c, transparent);
  box-shadow: 0 0 10px #f6a93c;
  animation: line 0.5s 0.35s forwards;
}
@keyframes line { to { width: min(260px, 70vw); } }
.fx-reward { display: flex; align-items: center; gap: 10px; margin-top: 4px; animation: rise 0.3s 0.45s both; }
.fx-star { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #f6c23e; color: #5b3a0a; font-size: 15px; box-shadow: 0 0 12px rgba(246, 194, 62, 0.6); }
.fx-reward small { display: block; text-align: left; font-size: 10.5px; font-weight: 700; opacity: 0.9; }
.fx-reward b { display: block; color: #ffd24d; font-size: 24px; font-weight: 800; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.4); font-variant-numeric: tabular-nums; }
.fx-count { color: #e9dfd5; font-size: 12px; font-weight: 800; animation: rise 0.3s 0.5s both; }
.fx-lv { display: flex; flex-direction: column; align-items: center; gap: 5px; margin-top: 10px; animation: rise 0.3s 0.55s both; }
.fx-lv b { font-size: 13px; font-weight: 800; }
.fx-lv span { color: #f5a63a; font-size: 13px; font-weight: 800; }
.fx-exp { display: block; width: 170px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.2); overflow: hidden; }
.fx-exp i { display: block; height: 100%; background: linear-gradient(90deg, #f8c865, #ec9f37); transition: width 0.8s 0.7s ease; }
.fx-tap { position: absolute; bottom: 12%; font-size: 11px; opacity: 0.6; animation: blink 1.4s infinite; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes blink { 50% { opacity: 0.25; } }

/* レベルアップ */
.fx-levelup { background: radial-gradient(circle at 50% 42%, rgba(70, 46, 12, 0.88), rgba(8, 5, 3, 0.92) 70%); cursor: default; }
.fx-rays {
  position: absolute;
  left: 50%;
  top: 40%;
  width: 900px;
  height: 900px;
  margin: -450px 0 0 -450px;
  border-radius: 50%;
  background: repeating-conic-gradient(rgba(255, 210, 90, 0.16) 0 8deg, transparent 8deg 22deg);
  -webkit-mask-image: radial-gradient(circle, #000 18%, transparent 62%);
  mask-image: radial-gradient(circle, #000 18%, transparent 62%);
  animation: spin 16s linear infinite;
  pointer-events: none;
}
@keyframes spin { to { transform: rotate(360deg); } }
.fx-lu-text {
  position: relative;
  background: linear-gradient(#fff6c8, #ffd24d 45%, #e58b16);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font: 900 52px/1 "Rubik", "Arial Black", sans-serif;
  letter-spacing: 0.04em;
  filter: drop-shadow(0 3px 0 #5a3408) drop-shadow(0 0 16px rgba(255, 190, 60, 0.55));
  animation: stamp 0.5s cubic-bezier(0.2, 1.6, 0.4, 1) both;
}
.fx-lu-lv { position: relative; display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; animation: rise 0.3s 0.3s both; }
.fx-lu-lv b { color: #ffd24d; font-size: 30px; }
.fx-newtitle { position: relative; padding: 6px 16px; border: 1.5px solid rgba(255, 210, 90, 0.6); border-radius: 18px; background: rgba(0, 0, 0, 0.35); color: #ffe39a; font-size: 13px; font-weight: 800; animation: rise 0.3s 0.45s both; }
.fx-ok { position: relative; width: 180px; margin-top: 16px; animation: rise 0.3s 0.55s both; }

/* アイテム使用 */
.fx-item { width: 104px; height: 104px; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.1); animation: pop-bounce 0.5s cubic-bezier(0.2, 1.6, 0.4, 1) both; }
.fx-item img { width: 100%; height: 100%; object-fit: contain; }
@keyframes pop-bounce { from { opacity: 0; transform: scale(0.3); } }
.fx-used-label { color: #7fe0a0; font: 900 32px/1 "Rubik", "Arial Black", sans-serif; letter-spacing: 0.06em; animation: stamp 0.42s 0.1s cubic-bezier(0.2, 1.6, 0.4, 1) both; }
.fx-use p { margin: 4px 0 0; font-size: 14px; font-weight: 800; }

.fx-burst { position: fixed; z-index: 450; width: 0; height: 0; pointer-events: none; }
.fx-burst .fx-p { left: 0; top: 0; }
