@charset "UTF-8";
/* ===========================================
//  Animations
// ======================================== */
@-webkit-keyframes fadeIn-bottom {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeIn-bottom {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@-webkit-keyframes roundCountAnimation {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 1;
  }
}
@keyframes roundCountAnimation {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 1;
  }
}
/* ===========================================
//  COMMON
// ======================================== */
html {
  font-size: 100%;
  overflow-y: scroll;
}

body {
  font-size: 1rem;
  color: #2c3e50;
  line-height: 1.5;
  font-family: "Zen Maru Gothic", sans-serif;
  background: #eee;
}

img {
  vertical-align: bottom;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ===========================================
//  Word Wolf
// ======================================== */
.word-wolf-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 12px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* 表示画面 */
.screen {
  display: none;
  background: #fff;
  border-radius: 16px;
  padding: 48px 32px 64px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
  flex: 1 1 auto;
  min-height: 100%;
}
.screen--active {
  display: flex;
  flex-direction: column;
  -webkit-animation: fadeIn-bottom 0.3s ease-out;
          animation: fadeIn-bottom 0.3s ease-out;
}

.modal-mask {
  opacity: 0;
  pointer-events: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10;
  transition: opacity 0.3s ease-out;
}
.modal-mask--active {
  opacity: 1;
  pointer-events: auto;
}
.modal-mask__round-count {
  opacity: 0;
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  text-align: center;
  z-index: 10;
  font-size: 4rem;
  font-weight: 700;
  font-family: "Yusei Magic", sans-serif;
  letter-spacing: 0.1em;
  color: #fff;
  text-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
}
.modal-mask__round-count--active {
  pointer-events: auto;
  -webkit-animation: roundCountAnimation 2s ease-in-out;
          animation: roundCountAnimation 2s ease-in-out;
}

/* ===========================================
//  タイトル
// ======================================== */
.title {
  text-align: center;
  font-weight: 700;
}
.title--main {
  font-size: 2rem;
  font-family: "Yusei Magic", sans-serif;
  color: #2c3e50;
  margin: 48px 0;
}
.title--section {
  font-size: 1.6rem;
  margin-bottom: 32px;
}
.title--content {
  font-size: 1.4rem;
  margin-bottom: 16px;
}

/* ===========================================
//  ボタン
// ======================================== */
.btn {
  padding: 12px;
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  margin: 12px 0;
  width: 100%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}
.btn--primary {
  background: #3498db;
  color: #fff;
}
.btn--primary:hover {
  background: #217dbb;
  transform: scale(1.02);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
}
.btn--primary:disabled {
  background: #ccc;
  color: #888;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
.btn--secondary {
  background: #95a5a6;
  color: #fff;
}
.btn--secondary:hover {
  background: #798d8f;
  transform: scale(1.02);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
}
.btn--secondary:disabled {
  background: #ccc;
  color: #888;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
.btn--accent {
  background: #e74c3c;
  color: #fff;
}
.btn--accent:hover {
  background: #d62c1a;
  transform: scale(1.02);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
}
.btn--accent:disabled {
  background: #ccc;
  color: #888;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* ===========================================
//  ヘルプ画面
// ======================================== */
.help-screen {
  max-width: 800px;
  height: 100vh;
  position: fixed;
  inset: 0;
  margin: 0 auto;
  pointer-events: none;
  z-index: 100;
}
.help-screen__modal {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 32px 16px;
  border-left: 4px solid #3498db;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
  position: absolute;
  inset: 36px 20px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-10px);
  transition: all 0.3s ease-out;
  z-index: 1;
}
.help-screen__modal--active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}
.help-screen__modal-content {
  border: 2px solid #ccc;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  overflow: auto;
  max-height: 70%;
}
.help-screen__modal-content-title {
  font-size: 1.2rem;
  margin: 24px 0 4px;
}
.help-screen__modal-step-title {
  margin-top: 8px;
}
.help-screen__modal-mask {
  opacity: 0;
  pointer-events: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  transition: opacity 0.3s ease-out;
}
.help-screen__modal-mask--active {
  opacity: 1;
  pointer-events: auto;
}
.help-screen__btn {
  position: absolute;
  right: 24px;
  bottom: 24px;
  background: #95a5a6;
  color: #fff;
  width: 48px;
  aspect-ratio: 1/1;
  border-radius: 50%;
  font-size: 1.8rem;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.3s;
  opacity: 0;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}
.help-screen__btn:hover {
  transform: scale(1.1);
  background: #798d8f;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
}
.help-screen__btn--active {
  pointer-events: auto;
  opacity: 0.7;
}

/* ===========================================
//  設定画面
// ======================================== */
.setup-screen__content {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 32px 16px;
  border-left: 4px solid #3498db;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}
.setup-screen__form-group {
  margin-bottom: 16px;
}
.setup-screen__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}
.setup-screen__form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  background: #fff;
  transition: border-color 0.3s ease;
}
.setup-screen__form-input:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}
.setup-screen__form-text {
  margin-top: 8px;
  font-size: 0.9rem;
  font-style: italic;
}
.setup-screen__form-toggle {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid #ccc;
  border-radius: 24px;
  background: #fff;
  overflow: hidden;
  width: 220px;
  height: 48px;
  margin: 0 auto;
}
.setup-screen__form-toggle-input {
  display: none;
}
.setup-screen__form-toggle-label {
  flex: 1 1 0;
  text-align: center;
  line-height: 48px;
  z-index: 1;
  cursor: pointer;
  font-weight: 700;
  color: #888;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.3s;
}
.setup-screen__form-toggle-label--active {
  color: #fff;
}
.setup-screen__form-toggle-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  border-radius: 24px;
  transition: all 0.3s;
}
.setup-screen__form-toggle-slider--tamed {
  background: #3498db;
  left: 0;
  box-shadow: 1px 0 3px rgba(0, 0, 0, 0.12), 1px 0 2px rgba(0, 0, 0, 0.24);
}
.setup-screen__form-toggle-slider--wild {
  background: #e74c3c;
  left: 50%;
  box-shadow: -1px 0 3px rgba(0, 0, 0, 0.12), -1px 0 2px rgba(0, 0, 0, 0.24);
}
.setup-screen__form-description {
  border: 2px solid #ccc;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.setup-screen__form-description-frame {
  display: flex;
  transition: all 0.3s;
}
.setup-screen__form-description-frame--tamed {
  transform: translateX(0);
}
.setup-screen__form-description-frame--wild {
  transform: translateX(-100%);
}
.setup-screen__form-description-item {
  padding: 12px 16px;
  width: 100%;
  flex-shrink: 0;
}
.setup-screen__form-description-item--tamed {
  background: #e8f4fd;
  color: #3498db;
}
.setup-screen__form-description-item--wild {
  background: #f8d7da;
  color: #e74c3c;
}
.setup-screen__form-description-item-title {
  text-align: center;
  margin-bottom: 8px;
}

/* ===========================================
//  ワードセット画面
// ======================================== */
.word-set-screen__text {
  margin-bottom: 24px;
  font-size: 0.9rem;
  font-style: italic;
  text-align: center;
}
.word-set-screen__form-label {
  display: block;
  margin: 16px 0 8px;
  font-weight: 700;
}
.word-set-screen__form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  background: #fff;
  transition: border-color 0.3s ease;
}
.word-set-screen__form-input:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}
.word-set-screen__form-error-text {
  opacity: 0;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  font-weight: 700;
  color: #e74c3c;
  transition: all 0.3s;
  font-size: 0.9rem;
  font-style: italic;
}
.word-set-screen__form-error-text--active {
  opacity: 1;
}

/* ===========================================
//  ワード配布画面
// ======================================== */
.word-distribution-screen {
  position: relative;
}
.word-distribution-screen__text {
  color: #e74c3c;
  font-weight: 700;
  text-align: center;
  font-size: 0.9rem;
  font-style: italic;
}
.word-distribution-screen__modal {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 32px 16px;
  border-left: 4px solid #3498db;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
  position: absolute;
  inset: 24px 8px;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-10px);
  transition: all 0.3s ease-out;
}
.word-distribution-screen__modal--active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}
.word-distribution-screen__modal-btn {
  display: none;
}
.word-distribution-screen__word-display {
  background: #fff;
  margin-bottom: 16px;
  padding: 24px 12px;
  border-radius: 8px;
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
}

/* ===========================================
//  討論画面
// ======================================== */
.discussion-screen__content {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 32px 16px;
  border-left: 4px solid #3498db;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}
.discussion-screen__timer {
  font-size: 2.5rem;
  font-weight: 700;
  color: #e74c3c;
  text-align: center;
  font-family: "DotGothic16", sans-serif;
  letter-spacing: 0.1em;
}
.discussion-screen__timer-controls {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.discussion-screen__timer-controls-btn {
  width: auto;
  min-width: 120px;
  display: none;
}
.discussion-screen__players-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.discussion-screen__players-list-text {
  text-align: center;
  font-size: 0.9rem;
  font-style: italic;
  margin-top: 16px;
}
.discussion-screen__player-item {
  background: #fff;
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}
.discussion-screen__player-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
}
.discussion-screen__player-item-score {
  background: #3498db;
  color: #fff;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 700;
}
.discussion-screen__player-item-word {
  background: #e8f4fd;
  border-radius: 6px;
  padding: 0 8px;
  font-size: 1.2rem;
  font-weight: 700;
  color: #3498db;
  text-align: center;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.2s;
}
.discussion-screen__player-item-word--show {
  max-height: 100px;
  margin-top: 12px;
  padding: 8px;
  opacity: 1;
}

/* ===========================================
//  投票画面
// ======================================== */
.vote-screen {
  position: relative;
}
.vote-screen__modal {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 32px 16px;
  border-left: 4px solid #3498db;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
  position: absolute;
  inset: 24px 8px;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-10px);
  transition: all 0.3s ease-out;
}
.vote-screen__modal--active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}
.vote-screen__modal-text {
  margin-bottom: 24px;
  font-size: 0.9rem;
  font-style: italic;
  text-align: center;
}
.vote-screen__options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.vote-screen__option-item {
  background: #fff;
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  font-size: 1.2rem;
  font-weight: 700;
  transition: all 0.3s ease;
}
.vote-screen__option-item--selected {
  background: #3498db;
  color: #fff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
}

/* ===========================================
//  投票結果画面
// ======================================== */
.vote-result-screen__accused-player {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
}
.vote-result-screen__wolf-player {
  font-size: 1.2rem;
}
.vote-result-screen__result-item {
  display: none;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 24px;
  padding: 24px 16px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
}
.vote-result-screen__result-item--success {
  background: #e8f4fd;
  color: #3498db;
}
.vote-result-screen__result-item--failure {
  background: #f8d7da;
  color: #e74c3c;
}
.vote-result-screen__volt-history {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 32px 16px;
  border-left: 4px solid #3498db;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}
.vote-result-screen__volt-history-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.vote-result-screen__volt-history-item {
  background: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}
.vote-result-screen__volt-history-arrow {
  font-size: 1.2rem;
  color: #e74c3c;
}

/* ===========================================
//  逆転チャンス画面
// ======================================== */
.wolf-chance-screen__form-group {
  margin-bottom: 16px;
}
.wolf-chance-screen__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}
.wolf-chance-screen__form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  background: #fff;
  transition: border-color 0.3s ease;
}
.wolf-chance-screen__form-input:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}
.wolf-chance-screen__form-text {
  margin-bottom: 24px;
  font-size: 0.9rem;
  font-style: italic;
  text-align: center;
}

/* ===========================================
//  逆転チャンス結果画面
// ======================================== */
.wolf-chance-result-screen__result-item {
  display: none;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 24px;
  padding: 24px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
}
.wolf-chance-result-screen__result-item--success {
  background: #e8f4fd;
  color: #3498db;
}
.wolf-chance-result-screen__result-item--failure {
  background: #f8d7da;
  color: #e74c3c;
}
.wolf-chance-result-screen__villager-word {
  font-size: 1rem;
}
.wolf-chance-result-screen__text {
  font-size: 0.9rem;
  font-style: italic;
}

/* ===========================================
//  ゲーム結果画面
// ======================================== */
.game-result-screen__result-item {
  display: none;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 24px;
  padding: 24px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
}
.game-result-screen__result-item--villager-win {
  background: #e8f4fd;
  color: #3498db;
}
.game-result-screen__result-item--wolf-win {
  background: #f8d7da;
  color: #e74c3c;
}
.game-result-screen__score-board {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 32px 16px;
  border-left: 4px solid #3498db;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}
.game-result-screen__score-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.game-result-screen__score-item {
  background: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 700;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}
.game-result-screen__score-player {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}
.game-result-screen__score-word {
  text-align: center;
  border-radius: 6px;
  padding: 4px 8px;
  font-weight: 700;
  font-size: 0.9rem;
}
.game-result-screen__score-word-wolf {
  background: #f8d7da;
  color: #e74c3c;
}
.game-result-screen__score-word-villager {
  background: #e8f4fd;
  color: #3498db;
}
.game-result-screen__score-word-master {
  background: #ccc;
  color: #888;
}
.game-result-screen__score-plus {
  color: rgba(231, 76, 60, 0.8);
  font-size: 1rem;
  font-weight: 700;
  text-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
  position: absolute;
  top: 6px;
  right: 48px;
}

/* ===========================================
//  最終結果画面
// ======================================== */
.end-result-screen__score-board {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 32px 16px;
  border-left: 4px solid #3498db;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}
.end-result-screen__score-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.end-result-screen__score-item {
  background: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  position: relative;
}
.end-result-screen__score-winner {
  font-size: 1.2rem;
  text-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
  position: absolute;
  top: -6px;
  left: -16px;
}
/*# sourceMappingURL=style.css.map */