/* ---------- ダーツの旅 ---------- */
/* 入口の丸ボタン（画面右下に浮かせる） */
.dart-fab {
  position: fixed;
  right: calc(18px + env(safe-area-inset-right));
  bottom: calc(18px + env(safe-area-inset-bottom));
  width: 56px; height: 56px;
  border: none;
  border-radius: 50%;
  background: #26261F;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(20, 20, 15, 0.3);
  z-index: 20;
  transition: transform 0.12s;
}
.dart-fab:active { transform: scale(0.9); }
.dart-fab[hidden] { display: none; }
/* 夜のスタジオ風の全画面オーバーレイ */
.darts {
  position: fixed;
  inset: 0;
  background: radial-gradient(120% 90% at 50% 0%, #23262C 0%, #0F1013 65%);
  z-index: 45;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(14px + env(safe-area-inset-top)) 14px calc(16px + env(safe-area-inset-bottom));
  overflow: hidden;
  animation: darts-in 0.3s ease;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
@keyframes darts-in { from { opacity: 0; } }
.darts[hidden] { display: none; }
.darts-top {
  width: 100%;
  max-width: 520px;
  display: flex;
  align-items: center;
}
.darts-top .dt-title {
  flex: 1;
  color: #EDEDE6;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.3em;
}
.darts-top .dt-close {
  border: none;
  background: none;
  color: #8F9089;
  font-size: 28px;
  line-height: 1;
  padding: 4px 10px;
  cursor: pointer;
  font-family: inherit;
}
.darts-map-wrap {
  position: relative;
  flex: none;
  margin-top: 10px;
}
.darts-map-wrap.shake { animation: dart-shake 0.32s ease; }
@keyframes dart-shake {
  0%, 100% { transform: translate(0, 0); }
  15% { transform: translate(4px, -5px); }
  35% { transform: translate(-5px, 4px); }
  55% { transform: translate(4px, 2px); }
  75% { transform: translate(-2px, -3px); }
}
#dartsMap { display: block; }
/* ダーツ本体。先端＝要素の下端中央を駅の座標に合わせる */
.dart-el {
  position: absolute;
  left: 0; top: 0;
  width: 26px; height: 96px;
  margin-left: -13px;
  margin-top: -96px;
  transform-origin: 50% 100%;
  pointer-events: none;
  z-index: 3;
  filter: drop-shadow(0 5px 9px rgba(0, 0, 0, 0.55));
  will-change: transform;
}
.dart-el[hidden] { display: none; }
/* 刺さった瞬間に広がる波紋 */
.hit-ring {
  position: absolute;
  left: 0; top: 0;
  width: 16px; height: 16px;
  margin: -8px;
  border-radius: 50%;
  border: 2.5px solid #FFD75E;
  pointer-events: none;
  opacity: 0;
  z-index: 2;
}
.hit-ring.go { animation: ring-pop 0.7s ease-out; }
@keyframes ring-pop {
  0% { opacity: 0.95; transform: scale(0.4); }
  100% { opacity: 0; transform: scale(7); }
}
.darts-hint {
  margin-top: 20px;
  color: #B9BAB2;
  font-size: 13px;
  letter-spacing: 0.2em;
  animation: hint-blink 1.6s ease infinite;
}
.darts-hint[hidden] { display: none; }
@keyframes hint-blink { 0%, 100% { opacity: 0.9; } 50% { opacity: 0.3; } }
/* 行き先発表カード（画面下からせり上がる） */
.darts-result {
  position: absolute;
  left: 50%;
  bottom: calc(22px + env(safe-area-inset-bottom));
  width: min(92vw, 420px);
  background: #fff;
  border-radius: 22px;
  padding: 18px 22px 16px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translate(-50%, 24px);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.25);
  pointer-events: none;
}
.darts-result.show {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}
.darts-result .dr-pref {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.32em;
}
.darts-result .dr-name {
  font-size: 30px;
  font-weight: 800;
  color: var(--ink);
  margin-top: 5px;
  line-height: 1.2;
}
.darts-result .dr-kana {
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.2em;
  margin-top: 3px;
}
.darts-result .dr-kana[hidden] { display: none; }
.darts-result .dr-line {
  font-size: 12.5px;
  color: #6D6D67;
  margin-top: 7px;
}
.darts-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.darts-btn {
  flex: 1;
  border: none;
  border-radius: 999px;
  padding: 11px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  background: #F1F1EC;
  color: #55554F;
  transition: transform 0.12s, filter 0.15s;
}
.darts-btn.primary {
  background: var(--line-color);
  color: #fff;
}
.darts-btn:active { transform: scale(0.95); }
/* 新バージョン検知トースト */
.reload-toast {
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  background: #2A2A27;
  color: #F4F4F0;
  border-radius: 999px;
  padding: 9px 10px 9px 20px;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  box-shadow: 0 14px 34px rgba(20, 20, 15, 0.3);
  z-index: 50;
  animation: pop-in 0.35s ease;
}
.reload-toast[hidden] { display: none; }
/* 旧住所（github.io）で開いたときだけ出す引っ越し案内 */
.moved-banner {
  position: fixed;
  top: calc(10px + env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100vw - 24px);
  background: #2A2A27;
  color: #F4F4F0;
  border-radius: 999px;
  padding: 9px 10px 9px 20px;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  box-shadow: 0 14px 34px rgba(20, 20, 15, 0.3);
  z-index: 60;
  animation: pop-in 0.35s ease;
}
.moved-banner[hidden] { display: none; }
.moved-banner a {
  flex-shrink: 0;
  border-radius: 999px;
  padding: 7px 15px;
  background: var(--line-color);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
}
.reload-toast button {
  border: none;
  border-radius: 999px;
  padding: 7px 15px;
  background: var(--line-color);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  font-family: inherit;
  cursor: pointer;
}
