/* 見張り番の欄（security.html） */
.watch-board {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.watch-cell {
  position: relative;
  padding: clamp(26px, 3vw, 46px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 8, 15, 0.5);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.watch-live {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--yolk);
}
.watch-live::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--fg-muted);

}
@keyframes watch-pulse {
  0% { box-shadow: 0 0 0 0 rgba(242, 182, 50, 0.55); }
  70% { box-shadow: 0 0 0 12px rgba(242, 182, 50, 0); }
  100% { box-shadow: 0 0 0 0 rgba(242, 182, 50, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .watch-live::before { animation: none; }
}
.watch-caption { margin: 0; font-size: 14.5px; color: var(--fg-muted); }
.watch-total {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: clamp(56px, 9vw, 128px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}
.watch-total small { font-family: var(--font-display); font-size: 0.24em; font-weight: 700; margin-left: 0.3em; color: var(--fg-muted); letter-spacing: 0; }
.watch-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 8px; }
.watch-fact { border-top: 1px solid var(--line); padding-top: 12px; }
.watch-fact b { display: block; font-family: var(--font-en); font-size: clamp(30px, 4vw, 46px); font-weight: 800; line-height: 1.1; color: var(--yolk); font-variant-numeric: tabular-nums; }
.watch-fact b small { font-family: var(--font-display); font-size: 0.42em; margin-left: 0.2em; }
.watch-fact > span { font-size: 13px; color: var(--fg-muted); }
.watch-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 200px;
  padding-top: 8px;
}
.watch-bar { flex: 1 1 0; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.watch-bar-fill { width: 100%; max-width: 34px; background: rgba(244, 241, 232, 0.22); border-radius: 3px 3px 0 0; transform-origin: bottom; }
.watch-bar.is-mark .watch-bar-fill { background: var(--yolk); }
.watch-bar-num { font-family: var(--font-en); font-size: 11px; color: var(--fg-muted); font-variant-numeric: tabular-nums; }
.watch-bar-day { font-family: var(--font-en); font-size: 11px; color: var(--fg-muted); }
.js .watch-bar-fill { transform: scaleY(0); transition: transform 1s var(--ease); }
.js .watch-board.is-visible .watch-bar-fill { transform: none; }
.watch-note { margin: 0; font-size: 12.5px; line-height: 1.8; color: var(--fg-muted); }
@media (max-width: 900px) {
  .watch-board { grid-template-columns: 1fr; }
  .watch-bars { height: 160px; gap: 4px; }
  .watch-bar-num { font-size: 9.5px; }
}

.watch-board + .watch-note { margin-top: 18px; }

/* 数字の下の誘い */
.watch-invite { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.watch-invite p { margin: 0; flex: 1 1 320px; font-size: 15px; color: var(--fg); }

/* 見張り番の会話（吹き出し） */
.watch-talk { margin-top: clamp(48px, 6vw, 80px); border: 1px solid var(--line); background: rgba(5, 8, 15, 0.5); padding: clamp(22px, 3vw, 40px); }
.watch-talk-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 18px; margin-bottom: 22px; }
.watch-talk-tag { font-size: 12px; color: var(--fg-muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
.watch-talk-credit { font-size: 11px; color: var(--fg-muted); }
.watch-talk-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.talk { display: flex; align-items: flex-end; gap: 12px; max-width: 640px; }
.talk--kura { flex-direction: row-reverse; margin-left: auto; }
.talk-face { width: 64px; height: 64px; flex: none; border-radius: 50%; object-fit: cover; border: 2px solid var(--line); background: #0b1220; }
.talk--jemmy .talk-face { border-color: rgba(242, 182, 50, 0.6); }
.talk-bubble { position: relative; padding: 12px 16px; border-radius: 18px; background: rgba(244, 241, 232, 0.08); border: 1px solid var(--line); }
.talk--jemmy .talk-bubble { border-bottom-left-radius: 4px; background: rgba(242, 182, 50, 0.12); border-color: rgba(242, 182, 50, 0.35); }
.talk--kura .talk-bubble { border-bottom-right-radius: 4px; }
.talk-name { display: block; font-size: 11px; letter-spacing: 0.12em; color: var(--yolk); margin-bottom: 2px; }
.talk--kura .talk-name { color: var(--fg-muted); }
.talk-bubble p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--fg); }
.talk-num { font-family: var(--font-en); font-weight: 800; color: var(--yolk); font-variant-numeric: tabular-nums; }
.talk-glow { font-weight: 700; color: var(--yolk-hi); }
.watch-talk-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 12px 20px; margin-top: 24px; }
.watch-replay { font: inherit; font-size: 13px; color: var(--fg-muted); background: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px; cursor: pointer; }
.watch-replay:hover { color: var(--fg); border-color: var(--yolk); }
.watch-footnote { margin-top: 28px; }

/* 動き（JS が is-animated を付けたときだけ。付かなければ全部そのまま見える） */
.watch-talk.is-animated .talk { opacity: 0; transform: translateY(14px) scale(0.96); transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1); }
.watch-talk.is-animated .talk.is-shown { opacity: 1; transform: none; }
.talk.is-speaking .talk-face { animation: talk-bob 0.5s ease-in-out 3; }
.talk.is-speaking[data-fx="shake"] .talk-face, .talk.is-speaking[data-fx="shake"] .talk-bubble { animation: talk-shake 0.12s linear 8; }
.talk.is-speaking[data-fx="jump"] .talk-face { animation: talk-jump 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 2; }
.talk.is-speaking .talk-glow { animation: talk-glow 1.2s ease-in-out 2; }
@keyframes talk-bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-6px) rotate(-4deg); } }
@keyframes talk-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-3px) rotate(-1deg); } 75% { transform: translateX(3px) rotate(1deg); } }
@keyframes talk-jump { 0%, 100% { transform: translateY(0) scale(1); } 40% { transform: translateY(-16px) scale(1.06); } }
@keyframes talk-glow { 0%, 100% { text-shadow: none; } 50% { text-shadow: 0 0 12px rgba(255, 214, 107, 0.9); } }
@media (prefers-reduced-motion: reduce) {
  .talk.is-speaking .talk-face, .talk.is-speaking .talk-bubble, .talk.is-speaking .talk-glow { animation: none; }
}
@media (max-width: 600px) {
  .talk-face { width: 48px; height: 48px; }
  .talk-bubble p { font-size: 14px; }
  .watch-talk-foot { justify-content: flex-start; }
  .watch-talk-tag { border-radius: 8px; }
}

/* 見張り中（最終確認から 8 日以内）のときだけ黄色く光らせる */
.watch-live.is-live::before { background: var(--yolk); box-shadow: 0 0 0 0 rgba(242, 182, 50, 0.6); animation: watch-pulse 2.2s infinite; }
@media (prefers-reduced-motion: reduce) { .watch-live.is-live::before { animation: none; } }
/* 言葉の途中で折り返さない */
.nobr { display: inline-block; white-space: nowrap; }
@media (max-width: 480px) {
  .watch-facts { grid-template-columns: 1fr; gap: 12px; }
}