/* ワードウルフ。白い紙=自分のお題、マゼンタ=ウルフ、レモン=押すもの */
.ww-title { font-size: clamp(2.2rem, 8vw, 3.4rem); margin: 10px 0 8px; }
.ww-lead { color: var(--sky); margin: 0; }
.ww-lead strong { color: #fff; }
.entry { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 24px 0 8px; }
.entry h2 { margin: 0 0 12px; font-size: 1.15rem; }
.entry label { display: block; margin-bottom: 4px; }
@media (max-width: 600px) { .entry { grid-template-columns: 1fr; } }

.mincho { font-family: var(--display); font-weight: 400; }
#app > * + * { margin-top: 14px; }
#app h2 { margin: 0 0 10px; font-size: 1.12rem; }
.center { text-align: center; }
.row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.row input { flex: 1 1 180px; width: auto; }
.btn.big { font-size: 1.2rem; min-height: 60px; }
.h-row { display: flex; align-items: center; gap: 10px; }
.count { font-size: .9rem; color: var(--sky); font-weight: 700; }

.room-bar { display: flex; align-items: center; gap: 10px; font-size: .95rem; color: var(--sky); }
.room-bar b { color: #fff; }
.room-bar .btn { margin-left: auto; }
.room-bar .btn + .btn { margin-left: 0; }
.code-inline { font-family: var(--display); font-weight: 400; letter-spacing: .08em; }
.notice { background: var(--lemon); color: var(--ink); border-radius: 16px; padding: 10px 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-weight: 700; }
.notice .btn { background: var(--ink); color: #fff; }

/* 部屋番号: いちばん大きく。口で伝えやすいように */
.invite { text-align: center; }
.code-big { font-family: var(--display); font-size: clamp(2.8rem, 14vw, 4.6rem); letter-spacing: .08em; line-height: 1.05; margin: 4px 0 14px; color: var(--lemon); }
.invite-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.invite-btns .btn:first-child { background: var(--lemon); color: var(--ink); box-shadow: 0 5px 0 var(--lemon-2); }
.small-url { font-size: .78rem; margin-top: 10px; word-break: break-all; }

.players { list-style: none; margin: 0 0 6px; padding: 0; }
.players li { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--line); min-height: 46px; }
.players li:last-child { border-bottom: 0; }
.players .dot { width: 9px; height: 9px; border-radius: 50%; background: #6ee7a8; flex: none; }
.players li.off .dot { background: rgba(255,255,255,.25); }
.players li.off .nm { color: var(--sky); }
.players .nm { font-weight: 700; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.players .nm small { font-weight: 400; color: var(--sky); margin-left: 6px; }
.players li.me .nm { color: var(--lemon); }
.badge { font-size: .74rem; font-weight: 900; background: var(--lemon); color: var(--ink); padding: 1px 9px; border-radius: 999px; white-space: nowrap; }
.ok { color: #6ee7a8; font-weight: 700; font-size: .88rem; }

.settings { display: grid; gap: 12px; }
.settings label { display: grid; gap: 4px; }
.settings select:disabled { background: var(--night-2); color: #fff; opacity: 1; border-color: var(--line); }

/* 自分のお題の紙(白)。かくすと裏面の柄 */
.word-card { position: relative; display: grid; place-items: center; gap: 2px; width: 100%; border: 0; background: #fff; color: var(--ink); border-radius: 22px; padding: 28px 16px 20px; cursor: pointer; font: inherit; box-shadow: 0 14px 0 -6px rgba(255,255,255,.35), 0 26px 0 -12px rgba(255,255,255,.15); transform: rotate(-1deg); }
.wc-label { font-size: .86rem; font-weight: 700; color: #6b72a8; }
.wc-word { font-family: var(--display); font-size: clamp(2.6rem, 13vw, 4rem); line-height: 1.2; overflow-wrap: anywhere; }
.wc-hint { font-size: .8rem; color: #6b72a8; }
.wc-word.long { font-size: clamp(1.9rem, 9.6vw, 3rem); }
.wc-word.xlong { font-size: clamp(1.5rem, 7.6vw, 2.4rem); }
.word-card.hidden-word { background: var(--night-3) radial-gradient(circle, rgba(255,255,255,.16) 2px, transparent 2.5px) 0 0 / 16px 16px; color: #fff; }
.word-card.hidden-word .wc-label, .word-card.hidden-word .wc-hint { color: var(--sky); }
.word-card.hidden-word .wc-word { color: var(--sky); letter-spacing: .2em; }
.word-card + .muted { margin-top: 34px; }

/* タイマー: 面に載せず、夜空に大きく */
.timer-panel { text-align: center; background: transparent; padding: 8px 0; }
.timer { font-family: var(--display); font-size: clamp(3.6rem, 20vw, 5.6rem); line-height: 1.05; font-variant-numeric: tabular-nums; }
.timer.hurry { color: var(--odd); }
.bar { height: 10px; border-radius: 999px; overflow: hidden; margin: 10px 0 18px; background: var(--night-2); }
.bar > div { height: 100%; background: var(--lemon); border-radius: 999px; transition: width .25s linear; }
.timer.hurry + .bar > div { background: var(--odd); }
.tips summary { cursor: pointer; font-weight: 700; }
.tips ul { margin: 8px 0 0; color: var(--sky); }

.vote-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 14px 0; }
.vote-btn { font: inherit; font-weight: 900; font-size: 1.05rem; min-height: 58px; border: 0; border-radius: 16px; background: #fff; color: var(--ink); cursor: pointer; padding: 8px; overflow-wrap: anywhere; box-shadow: 0 4px 0 #b9bfe8; }
.vote-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #b9bfe8; }
.vote-btn.on { background: var(--odd); color: #fff; box-shadow: 0 4px 0 var(--odd-2); }

.guess { position: relative; }
.stamp { display: inline-block; background: var(--odd); color: #fff; font-family: var(--display); padding: 4px 16px; transform: rotate(-4deg); letter-spacing: .08em; margin-bottom: 12px; border-radius: 10px; font-size: 1.1rem; }
.big-guess { font-size: 1.7rem; color: var(--lemon); }

/* 結果: 市民の勝ち=レモン、ウルフの勝ち=マゼンタ */
.result-banner { text-align: center; border-radius: 24px; padding: 22px 14px; }
.result-banner.citizens { background: var(--lemon); color: var(--ink); }
.result-banner.wolves { background: var(--odd); color: #fff; }
.rb-win { font-family: var(--display); font-size: clamp(2.2rem, 10vw, 3.2rem); letter-spacing: .04em; line-height: 1.2; }
.rb-reason { font-size: .95rem; font-weight: 700; opacity: .85; }
.rb-me { margin-top: 10px; display: inline-block; font-weight: 900; background: rgba(0,0,0,.14); padding: 3px 16px; border-radius: 999px; }
.words { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.w-card { border-radius: 18px; background: #fff; color: var(--ink); padding: 14px 10px; text-align: center; display: grid; gap: 2px; }
.w-card span { font-size: .82rem; color: #6b72a8; font-weight: 700; }
.w-card b { font-size: clamp(1.1rem, 5.4vw, 1.7rem); overflow-wrap: anywhere; }
.w-card.wolf { background: var(--odd); color: #fff; }
.w-card.wolf span { color: rgba(255,255,255,.8); }
.table-wrap { overflow-x: auto; }
table.res { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.res th, table.res td { padding: 9px 6px; border-bottom: 1px solid var(--line); text-align: left; }
table.res th { font-size: .8rem; color: var(--sky); font-weight: 700; }
table.res .num { text-align: center; font-weight: 900; }
table.res tr.wolf td { color: var(--odd); }
table.res tr.wolf td b { color: var(--odd); }
table.res tr.me td:first-child { color: var(--lemon); font-weight: 900; }
table.res .badge { background: #fff; }

.local-link { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; color: #fff; text-decoration: none; margin-top: 14px; }
.local-link span { color: var(--lemon); font-weight: 700; }
.local-link:hover span { text-decoration: underline; }
