/* ワードウルフ: テーマ上書き（紫系）＋ゲーム画面スタイル */

:root {
  --party-accent: #8a5cf6;
  --party-accent-dark: #6d3ff0;
  --ww-wolf: #4b3a7a;
}

#ww-root {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.ww-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px 16px calc(24px + env(safe-area-inset-bottom));
  text-align: center;
}

.ww-screen h2 {
  font-size: 1.3rem;
  margin: 0;
}

.ww-msg {
  font-size: 1.15rem;
  margin: 0;
}

.ww-msg-sub {
  font-size: 0.95rem;
  opacity: 0.75;
  margin: 0;
}

.ww-card {
  width: min(280px, 80vw);
  min-height: 160px;
  border-radius: 20px;
  background: var(--party-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  font-size: 1.1rem;
  font-weight: bold;
  user-select: none;
  touch-action: manipulation;
  box-shadow: 0 6px 0 var(--party-accent-dark);
}

.ww-card-small {
  min-height: 96px;
  font-size: 0.95rem;
}

.ww-card-word {
  font-size: 1.6rem;
}

.ww-timer {
  font-size: 1.4rem;
  font-weight: bold;
}

.ww-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.ww-btn {
  min-height: 56px;
  padding: 0 20px;
  border-radius: 16px;
  border: none;
  background: #fff;
  color: var(--party-accent-dark);
  font-size: 1.05rem;
  font-weight: bold;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.15);
}

.ww-btn-primary {
  background: var(--party-accent);
  color: #fff;
  box-shadow: 0 3px 0 var(--party-accent-dark);
}

.ww-btn-selected {
  outline: 3px solid var(--party-accent-dark);
}

.ww-vote-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(320px, 90vw);
}

.ww-vote-btn {
  width: 100%;
}

.ww-result-stage {
  font-size: 1.25rem;
  min-height: 3.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border-radius: 16px;
  background: var(--ww-wolf);
  color: #fff;
  width: min(320px, 90vw);
}

/* 段階演出の後に残る最終サマリー（勝敗・ウルフの正体・両お題・投票内訳）。
   仕様上、これらは演出が終わった後も画面から消えてはいけない */
.ww-result-summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: min(320px, 90vw);
  background: var(--ww-wolf);
  color: #fff;
  border-radius: 16px;
  padding: 16px;
}

.ww-result-winner {
  font-size: 1.3rem;
  font-weight: bold;
  margin: 0;
}

.ww-result-line {
  font-size: 1rem;
  margin: 0;
}

.ww-result-votes {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  text-align: center;
}

/* ---- 結果画面の共通部品（common/result.js の showFinal）に幅を与える ---- */
.ww-result .party-final {
  width: 100%;
  max-width: 430px;
}

/* 共通タイマーバー（makeTimerBar）が画面幅いっぱいに伸びないようにする */
.ww-screen .party-timer {
  max-width: 430px;
}
