/* みんなで人狼。夜の村の絵の上に、紺のすりガラスの板と金の差し色を重ねる。
 * 幅で3つの形: 1100px 以上 = 席｜会話｜記録の3列 / 720〜1100 = 席｜会話 (記録は右から重ねる) / 720 未満 (スマホ・記事の枠) = 下のタブで切り替え */
:root {
  --ink: #eef1fb; --sub: #aab4d4; --mute: #7d88ab;
  --gold: #e9c46a; --gold2: #f4d58d; --red: #e05a5a; --wolf: #b8323f; --teal: #5fd3c0;
  --glass: rgba(12, 19, 44, .78); --glass2: rgba(20, 30, 64, .72); --line: rgba(233, 196, 106, .18); --line2: rgba(255, 255, 255, .08);
  --r: 14px; --serif: 'Shippori Mincho B1', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --sans: system-ui, -apple-system, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Yu Gothic UI', sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; width: 100%; min-width: 0; }
html { overflow-x: hidden; }
body { background: #0b1228; color: var(--ink); font: 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow: hidden; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
.muted { color: var(--mute); font-size: 13px; }
img { display: block; }

/* 背景: 時間帯の絵を重ねて、切り替えはふわっと */
#bg { position: fixed; inset: 0; z-index: 0; }
.bg-img { position: absolute; inset: 0; background: center 30% / cover no-repeat; opacity: 0; transition: opacity 1.4s ease; }
.bg-img.on { opacity: 1; }
.bg-img[data-k=title] { background-image: url(../img/bg-title.webp); }
.bg-img[data-k=day] { background-image: url(../img/bg-day.webp); }
.bg-img[data-k=dusk] { background-image: url(../img/bg-dusk.webp); }
.bg-img[data-k=night] { background-image: url(../img/bg-night.webp); }
@media (max-width: 720px) {
  .bg-img[data-k=title] { background-image: url(../img/bg-title-s.webp); } .bg-img[data-k=day] { background-image: url(../img/bg-day-s.webp); }
  .bg-img[data-k=dusk] { background-image: url(../img/bg-dusk-s.webp); } .bg-img[data-k=night] { background-image: url(../img/bg-night-s.webp); }
}
.bg-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 12, 30, .05) 0%, rgba(8, 12, 30, .45) 45%, rgba(8, 12, 30, .82) 100%); }
body[data-bg=day] .bg-shade { background: linear-gradient(180deg, rgba(8, 12, 30, 0) 0%, rgba(8, 12, 30, .35) 40%, rgba(8, 12, 30, .75) 100%); }
body.-dead .bg-img { filter: grayscale(.85) brightness(.8); }

/* ボタン */
.btn { border: 1px solid var(--line2); background: rgba(255, 255, 255, .08); border-radius: 999px; padding: 9px 18px; font-weight: 600; transition: transform .08s, background .2s, border-color .2s; white-space: nowrap; }
.btn:hover { background: rgba(255, 255, 255, .14); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
.btn.on { border-color: var(--gold); color: var(--gold2); }
.btn-gold { background: linear-gradient(180deg, #f4d58d, #d9a93f); color: #2a1d05; border-color: transparent; box-shadow: 0 6px 18px rgba(233, 196, 106, .28); }
.btn-gold:hover { background: linear-gradient(180deg, #f8e0a5, #e2b44c); }
.btn-red { background: linear-gradient(180deg, #e46b6b, #b8323f); color: #fff; border-color: transparent; }
.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .22); }
.btn-xl { font-size: 20px; padding: 14px 44px; letter-spacing: .08em; }
.btn-sm { padding: 6px 14px; font-size: 14px; }
.btn-xs { padding: 2px 10px; font-size: 12px; }
.chip { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 12px; background: rgba(233, 196, 106, .14); color: var(--gold2); border: 1px solid var(--line); }
.chip.-ok { background: rgba(95, 211, 192, .14); color: var(--teal); border-color: rgba(95, 211, 192, .3); }
.white { color: #f3f5ff; } .black { color: #ff8f8f; }

/* ---------- ロビー ---------- */
#lobby { position: relative; z-index: 1; height: 100%; overflow-y: auto; padding: 0 16px 48px; }
.hero { min-height: 62vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-top: 24px; }
.hero-kicker { margin: 0; letter-spacing: .4em; color: var(--gold2); font-size: 13px; }
.logo { margin: 4px 0 6px; font: 800 clamp(40px, 8vw, 76px)/1.1 var(--serif); letter-spacing: .08em; color: #fff7e2;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .25), 0 0 32px rgba(233, 196, 106, .45); }
.hero-lead { margin: 0 0 26px; color: #dfe5f7; font-size: clamp(15px, 2.4vw, 18px); text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.hero-act { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hero-sub { display: flex; gap: 10px; }
.hero-people { margin-top: 14px; color: var(--sub); font-size: 13px; min-height: 1.6em; }
.lob-rooms, .lob-rules { max-width: 980px; margin: 0 auto 28px; background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; }
.sec-h { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.sec-h h2 { margin: 0; font: 700 20px var(--serif); color: var(--gold2); letter-spacing: .06em; }
.sec-note { color: var(--mute); font-size: 12px; }
.rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.empty { color: var(--sub); margin: 4px 0; }
.room { background: var(--glass2); border: 1px solid var(--line2); border-radius: var(--r); padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.room.-play { opacity: .9; }
.room-top { display: flex; align-items: center; gap: 8px; }
.room-no { font: 700 15px var(--serif); color: #fff7e2; }
.room-talk { margin-left: auto; color: var(--mute); font-size: 12px; }
.room-mid { display: flex; align-items: center; gap: 8px; }
.rdots { display: flex; gap: 4px; }
.rdots i { display: flex; align-items: center; justify-content: center; flex-shrink: 0; font: 700 12px/1 sans-serif; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid rgba(233, 196, 106, .45); }
.rdots i.on { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 8px rgba(233, 196, 106, .5); }
.rdots i.dead { background: rgba(134, 146, 170, .2); border-color: #7c879e; color: #bdc5d5; box-shadow: none; }
.room-dead { color: #aeb8cc; font-size: 13px; }
.room-n { font-weight: 700; }
.room-st { color: var(--sub); font-size: 13px; }
.room-act { display: flex; gap: 8px; margin-top: 2px; }
.role-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rcard { background: #101a3a; border: 1px solid var(--line); border-radius: var(--r); padding: 10px 10px 12px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.rcard img { width: 100%; max-width: 120px; aspect-ratio: 1; border-radius: 10px; }
.rcard b { font: 700 16px var(--serif); color: var(--gold2); }
.rcard span { font-size: 12px; color: var(--sub); line-height: 1.5; }
.rcard.-wolf b { color: #ff9b9b; }
.howto { margin: 16px 0 0; padding-left: 1.4em; color: #dfe5f7; display: grid; gap: 4px; }
.howto b { color: var(--gold2); margin-right: .6em; }
.manners { margin: 14px 0 0; padding: 12px 14px 12px 2em; border-top: 1px solid var(--line); color: #dfe5f7; display: grid; gap: 4px; font-size: .92em; }
.manners b { color: var(--gold2); margin-right: .6em; }
.mbox .howto, .mbox .manners { text-align: left; }
@media (max-width: 720px) { .role-cards { grid-template-columns: repeat(3, 1fr); } .lob-rooms, .lob-rules { padding: 14px; } }

/* ---------- 村 ---------- */
#vill { width: 100%; min-width: 0; position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; }
.vbar { position: relative; flex-shrink: 0; display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: linear-gradient(180deg, rgba(8, 12, 30, .85), rgba(8, 12, 30, .55)); border-bottom: 1px solid var(--line); }
.vbar-back, .vbar-menu { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line2); background: rgba(255, 255, 255, .06); font-size: 20px; line-height: 1; }
.vbar-title { display: flex; align-items: baseline; gap: 10px; min-width: 0; flex: 1; }
#phaseName { font: 800 20px var(--serif); color: #fff7e2; letter-spacing: .06em; white-space: nowrap; }
.vbar-sub { color: var(--sub); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vbar-timer { position: relative; width: 52px; height: 52px; display: grid; place-items: center; }
.vbar-timer svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.tr-bg { fill: rgba(8, 12, 30, .6); stroke: rgba(255, 255, 255, .1); stroke-width: 3; }
.tr-fg { fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; transition: stroke-dashoffset .25s linear; }
#timerText { position: relative; font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; }
.vbar-timer.-hurry .tr-fg { stroke: var(--red); } .vbar-timer.-hurry #timerText { color: #ffb4b4; }
.vbar-role { display: flex; align-items: center; gap: 6px; padding: 3px 12px 3px 3px; border-radius: 999px; border: 1px solid var(--line); background: #101a3a; font: 700 14px var(--serif); color: var(--gold2); }
.vbar-role img { width: 30px; height: 30px; border-radius: 50%; }
.vbar-role.-wolf { color: #ff9b9b; border-color: rgba(224, 90, 90, .4); }
.vbar-comp { display: flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: #101a3a; color: #dfe5f7; font-size: 13px; white-space: nowrap; cursor: pointer; }
.vbar-comp[hidden] { display: none; }
.vbar-comp .comp-v { display: flex; align-items: center; gap: 8px; }
.comp-chip { display: inline-flex; align-items: center; gap: 3px; }
.comp-chip img { width: 24px; height: 24px; border-radius: 50%; }
@media (min-width: 721px) {
  .vbar-comp { position: absolute; left: 50%; transform: translateX(-50%); max-width: calc(100% - 460px); overflow: hidden; }
  #seatDetails { display: none; }
  .vbar-timer { flex-shrink: 0; }
}
@media (min-width: 721px) and (max-width: 1100px) { .vbar-comp .comp-l { display: none; } .vbar-comp .comp-v { gap: 5px; } .comp-chip img { width: 18px; height: 18px; } }
@media (min-width: 721px) and (max-width: 900px) { .comp-chip img { display: none; } }
.vbar-comp .comp-l { color: var(--gold2); font-weight: 700; }
.comp-sum { font: 700 16px var(--serif); color: var(--gold2); margin: 0 0 10px; }
.comp-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.comp-row { display: flex; gap: 10px; align-items: flex-start; }
.comp-row img { width: 44px; height: 44px; border-radius: 50%; flex: none; }
.comp-row b { display: block; margin-bottom: 2px; }
.comp-row.-wolf b { color: #ff9b9b; }
.comp-row p { margin: 0; font-size: 13px; line-height: 1.6; color: #dfe5f7; }
body.-offline .vbar::after { content: '通信を待っています…'; font-size: 12px; color: #ffb4b4; }

.vgrid { flex: 1; min-width: 0; min-height: 0; display: grid; grid-template-columns: 220px minmax(0, 1fr) 310px; gap: 12px; padding: 12px; }
.seats-wrap, .talk, .side { background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line); border-radius: 18px; min-width: 0; min-height: 0; }
body[data-phase=night] .talk[data-tab=wolf] { border-color: rgba(224, 90, 90, .45); background: rgba(40, 10, 22, .8); }

/* 席 */
#seatDetails { min-width: 0; width: 100%; }
.seats-wrap { display: flex; flex-direction: column; padding: 12px; overflow-y: auto; }
.seats-h { display: flex; justify-content: space-between; align-items: baseline; margin: 0 4px 8px; font: 700 15px var(--serif); color: var(--gold2); }
.seats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seat { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 6px 8px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1.5px solid transparent; text-align: center; min-width: 0; }
.seat.-g { cursor: pointer; }
button.seat { color: inherit; font: inherit; cursor: pointer; }
.seat-n { font-size: 13px; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seat.-me { background: rgba(233, 196, 106, .1); }
.seat.-me .seat-n { color: var(--gold2); }
.seat.-away { opacity: .55; }
.seat.-ok { border-color: rgba(95, 211, 192, .6); }
.seat.-ok::after { content: 'OK'; position: absolute; top: 6px; right: 8px; font-size: 11px; font-weight: 800; color: var(--teal); }
.seat.-empty { border: 1.5px dashed rgba(233, 196, 106, .25); background: transparent; }
.seat.-empty .seat-n { color: var(--mute); font-weight: 400; }
.av-empty { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1.5px dashed rgba(233, 196, 106, .35); color: var(--mute); font-weight: 700; }
.seat-tag { position: absolute; top: 6px; left: 8px; font-size: 11px; color: var(--gold); }
.seat-st { font-size: 11px; color: var(--sub); }
.seat-co { position: absolute; top: 6px; right: 6px; font-size: 11px; font-weight: 800; padding: 0 6px; border-radius: 999px; background: var(--gold); color: #2a1d05; }
.seat-role { position: absolute; bottom: 30px; right: 10px; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); }
.seat-dead { position: absolute; top: 34%; left: 50%; transform: translate(-50%, -50%) rotate(-12deg); font: 800 13px var(--serif); color: #ffb4b4; border: 2px solid #e05a5a; padding: 0 8px; border-radius: 6px; background: rgba(40, 8, 12, .7); letter-spacing: .1em; }
.seat.-dead .av, .seat.-dead .seat-n { filter: grayscale(1); opacity: .45; }
.seat.-can { cursor: pointer; border-color: rgba(233, 196, 106, .35); animation: canPulse 1.8s ease-in-out infinite; }
.seat.-can:hover { background: rgba(233, 196, 106, .14); }
.seat.-sel { border-color: var(--gold); background: rgba(233, 196, 106, .2); box-shadow: 0 0 0 3px rgba(233, 196, 106, .18), 0 0 18px rgba(233, 196, 106, .35); animation: none; }
body[data-phase=night] .seat.-sel { border-color: #ff8f8f; background: rgba(224, 90, 90, .2); box-shadow: 0 0 18px rgba(224, 90, 90, .35); }
.seat.-mate::before { content: '仲間の選択'; position: absolute; bottom: -2px; left: 50%; transform: translateX(-50%); font-size: 10px; color: #ff9b9b; white-space: nowrap; }
@keyframes canPulse { 50% { border-color: rgba(233, 196, 106, .75); } }
.av { display: inline-block; line-height: 0; flex: none; }
.av text { font: 800 16px var(--sans); fill: #0b1228; }
.watchers { margin-top: 10px; font-size: 13px; color: var(--sub); }
.watchers p { margin: 4px 4px; }
.watchers b { color: var(--gold2); font-weight: 600; }

/* 会話 */
.talk { position: relative; display: flex; flex-direction: column; overflow: hidden; }
.talk-tabs { display: flex; gap: 4px; padding: 8px 10px 0; border-bottom: 1px solid var(--line2); }
.ttab { position: relative; border: 0; background: transparent; padding: 8px 14px; color: var(--sub); font-weight: 700; border-bottom: 2px solid transparent; }
.ttab.on { color: #fff7e2; border-bottom-color: var(--gold); }
.ttab.-wolf.on { color: #ff9b9b; border-bottom-color: var(--red); }
.ttab.-dead.on { color: #b9c4ff; border-bottom-color: #8b9cff; }
.badge { position: absolute; top: 2px; right: 0; min-width: 17px; padding: 0 4px; font-size: 10px; line-height: 17px; border-radius: 9px; background: var(--red); color: #fff; }
.log { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.log-new { position: absolute; left: 50%; bottom: 128px; transform: translateX(-50%); border: 0; border-radius: 999px; padding: 5px 14px; background: var(--gold); color: #2a1d05; font-weight: 700; font-size: 13px; box-shadow: 0 4px 14px rgba(0, 0, 0, .4); }
.msg { display: flex; gap: 10px; align-items: flex-start; }
.msg-c { min-width: 0; flex: 1; }
.msg[data-id] { cursor: default; }
.msg-rep { margin-top: 4px; border: 1px solid rgba(224, 90, 90, .45); background: transparent; color: #ff9b9b; border-radius: 999px; font-size: 12px; padding: 1px 10px; }
.msg-h { display: flex; align-items: baseline; gap: 6px; font-size: 12px; color: var(--mute); }
.msg-no { font-weight: 800; color: var(--sub); }
.msg-name { color: #dfe5f7; font-size: 13px; }
.msg.-mine .msg-name { color: var(--gold2); }
.msg-b { white-space: pre-wrap; word-break: break-word; font-size: 15px; }
.msg.-wolf .msg-b { color: #ffd0d0; }
.msg.-dead .msg-b { color: #cfd6ff; }
.msg-co { display: inline-flex; align-items: center; gap: 8px; margin-top: 2px; padding: 4px 12px 4px 4px; border-radius: 999px; background: #101a3a; border: 1px solid var(--gold); font: 700 14px var(--serif); color: var(--gold2); }
.msg-co img { width: 26px; height: 26px; border-radius: 50%; }
.msg-res { display: inline-flex; align-items: center; gap: 10px; margin-top: 2px; padding: 6px 12px; border-radius: 10px; background: #101a3a; border: 1px solid var(--line); }
.msg-res-k { font-size: 12px; color: var(--gold2); }
.msg-res b { font: 800 15px var(--serif); }
.msg-sys { align-self: center; max-width: 92%; text-align: center; font-size: 13px; color: var(--sub); padding: 2px 12px; }
.msg-sys.-big { margin: 6px 0; padding: 10px 18px; border-radius: 12px; background: rgba(233, 196, 106, .08); border: 1px solid var(--line); color: #fff7e2; font: 700 15px var(--serif); letter-spacing: .03em; }
.msg-sys.-exec, .msg-sys.-attack { background: rgba(224, 90, 90, .1); border-color: rgba(224, 90, 90, .35); }
.msg-sys.-end { background: rgba(233, 196, 106, .18); font-size: 18px; }
.msg-me { align-self: stretch; display: flex; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 10px; background: rgba(233, 196, 106, .12); border: 1px dashed var(--gold); font-weight: 600; }
.msg-me-l { font-size: 11px; color: #2a1d05; background: var(--gold); border-radius: 999px; padding: 0 8px; white-space: nowrap; }
.vlist { margin-top: 6px; display: grid; gap: 2px; font: 13px var(--sans); text-align: left; }
.vrow { display: flex; gap: 8px; align-items: baseline; }
.vn { color: var(--gold2); font-weight: 700; }

.dock { padding: 8px 12px 0; display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line2); }
.dock:empty { display: none; }
.dock-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dock-msg { color: #dfe5f7; font-size: 14px; }
.dock-msg.-ask { color: var(--gold2); font-weight: 700; animation: canPulse 1.8s infinite; }
.dock-time { font-variant-numeric: tabular-nums; color: var(--gold2); }
.composer { display: flex; gap: 8px; padding: 10px 12px 12px; align-items: flex-end; }
.composer textarea { flex: 1; resize: none; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(5, 9, 24, .6); color: var(--ink); padding: 10px 14px; font: 15px/1.5 var(--sans); outline: none; max-height: 120px; }
.composer textarea:focus { border-color: var(--gold); }
.composer textarea:disabled { opacity: .55; }
.talk[data-tab=wolf] .composer textarea:focus { border-color: var(--red); }
.talk[data-tab=wolf] #sayBtn { background: linear-gradient(180deg, #e46b6b, #b8323f); color: #fff; }

/* 右の欄 */
.side { display: flex; flex-direction: column; overflow: hidden; }
.side-tabs { display: flex; gap: 4px; padding: 8px 10px 0; border-bottom: 1px solid var(--line2); }
.stab { border: 0; background: transparent; padding: 8px 14px; color: var(--sub); font-weight: 700; border-bottom: 2px solid transparent; }
.stab.on { color: #fff7e2; border-bottom-color: var(--gold); }
.side-body { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 14px 16px; }
.rec { display: flex; flex-direction: column; gap: 14px; }
.rec-me { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; background: #101a3a; border: 1px solid var(--line); }
.rec-me img { width: 56px; height: 56px; border-radius: 10px; }
.rec-me b { display: block; font: 700 16px var(--serif); color: var(--gold2); }
.rec-me span { font-size: 12px; color: var(--sub); }
.rec-sec h4 { margin: 0 0 6px; font: 700 14px var(--serif); color: var(--gold2); letter-spacing: .05em; }
.rec-row { display: flex; gap: 8px; align-items: center; font-size: 14px; padding: 3px 0; }
.rec-row .btn { margin-left: auto; }
.rec-claim { padding: 6px 0; border-bottom: 1px solid var(--line2); }
.rec-who { display: flex; gap: 6px; align-items: center; font-size: 14px; }
.rec-res { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 4px 0 0 30px; font-size: 13px; font-weight: 700; }
.rec-day { margin: 6px 0 0; font-size: 12px; color: var(--mute); }
.memo { width: 100%; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(5, 9, 24, .5); color: var(--ink); padding: 8px 10px; font: 14px/1.5 var(--sans); resize: vertical; }
.side-body[hidden], .wpane[hidden], .mpane[hidden] { display: none; }
.wpane { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.wpane .log { padding: 10px 12px; }
.wpane .composer { padding: 8px 10px 10px; border-top: 1px solid var(--line2); }
.mpane { flex: 1; min-height: 0; display: flex; padding: 12px 14px 16px; }
.mpane .memo { flex: 1; resize: none; }
.rec-left { margin-top: 0; }
.au-badge { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 6px; font: 700 11px/17px var(--sans); color: #2a1d05; background: var(--gold); vertical-align: 1px; white-space: nowrap; }
.wname { border: 0; background: transparent; color: inherit; font: inherit; padding: 0 6px 0 0; cursor: pointer; text-decoration: underline dotted rgba(255, 255, 255, .3); }
.msg-name { cursor: pointer; }
.pf-head { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.pf-name { font: 700 18px var(--serif); color: var(--gold2); margin-right: 4px; }
.pf-n { margin: 0 0 4px; font-size: 14px; }
.pf-rel { margin: 0 0 6px; font-size: 13px; min-height: 1em; }
.rec-left:empty { display: none; }
.rec-left .rec-me img { width: 40px; height: 40px; }
.wait { display: flex; flex-direction: column; gap: 14px; }
.wait-lead { margin: 0; color: #dfe5f7; font-size: 14px; }
.wait-sec h4 { margin: 0 0 8px; font: 700 14px var(--serif); color: var(--gold2); }
.wait-sec .room { margin-bottom: 8px; }
.wait-games { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.wgame { text-align: left; border-radius: 12px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .05); padding: 10px; }
.wgame b { display: block; color: #fff7e2; } .wgame span { font-size: 12px; color: var(--sub); }
.wgame.on { border-color: var(--gold); }
.wframe { width: 100%; height: 380px; border: 0; border-radius: 12px; background: #000; display: block; margin-bottom: 6px; }
.peek { border-radius: 12px; border: 1px solid var(--line2); background: rgba(5, 9, 24, .45); overflow: hidden; }
.peek-h { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; border-bottom: 1px solid var(--line2); }
.peek-seats { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 10px; }
.pseat { position: relative; } .pseat.-dead { filter: grayscale(1); opacity: .4; }
.pseat small { position: absolute; right: -4px; bottom: -4px; font-size: 9px; background: var(--gold); color: #2a1d05; border-radius: 6px; padding: 0 3px; font-weight: 800; }
.peek-log { max-height: 260px; overflow-y: auto; padding: 4px 10px 10px; font-size: 13px; }
.peek-log p { margin: 4px 0; } .peek-log b { color: var(--gold2); } .peek-sys { color: var(--sub); text-align: center; }

/* 待合のポーカー */
.pk-join { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; padding: 10px; border-radius: 12px; border: 1px dashed var(--line); }
.pk-board { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 8px; border-radius: 50% / 34%; background: radial-gradient(ellipse at 50% 40%, #1d5a4a, #0f3a30 70%); border: 3px solid #5a3e1b; box-shadow: inset 0 0 22px rgba(0, 0, 0, .45); }
.pk-cards { display: flex; gap: 4px; }
.pk-pot { font-size: 12px; font-weight: 700; color: #fff7e2; background: rgba(0, 0, 0, .3); padding: 1px 10px; border-radius: 999px; }
.card { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 30px; height: 42px; border-radius: 5px; background: #fdfaf2; color: #1b1f2e; box-shadow: 0 1px 3px rgba(0, 0, 0, .4); line-height: 1; font-family: var(--sans); }
.card b { font-size: 14px; font-weight: 800; } .card i { font-style: normal; font-size: 14px; }
.card.-red { color: #c62f3a; }
.card.-back { background: repeating-linear-gradient(45deg, #22346e 0 5px, #1a2858 5px 10px); border: 2px solid #fdfaf2; }
.card.-slot { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .15); }
.card.-big { width: 46px; height: 64px; border-radius: 7px; } .card.-big b, .card.-big i { font-size: 20px; }
.pk-seats { display: flex; flex-direction: column; gap: 4px; }
.pk-seat { display: grid; grid-template-columns: 16px 1fr auto; grid-template-areas: 'd n hole' 'd c last'; align-items: center; column-gap: 6px; padding: 5px 8px; border-radius: 10px; background: rgba(255, 255, 255, .04); border: 1.5px solid transparent; font-size: 13px; }
.pk-seat .card { width: 22px; height: 30px; } .pk-seat .card b, .pk-seat .card i { font-size: 11px; }
.pk-d { grid-area: d; font-size: 10px; font-weight: 800; color: #2a1d05; background: var(--gold); border-radius: 50%; width: 16px; height: 16px; display: grid; place-items: center; }
.pk-d:empty { background: transparent; }
.pk-n { grid-area: n; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-chips { grid-area: c; color: var(--gold2); font-variant-numeric: tabular-nums; font-size: 12px; }
.pk-chips::before { content: '● '; font-size: 9px; }
.pk-last { grid-area: last; font-size: 11px; color: var(--sub); text-align: right; }
.pk-hole { grid-area: hole; display: flex; gap: 2px; justify-content: flex-end; }
.pk-seat.-turn { border-color: var(--gold); background: rgba(233, 196, 106, .12); }
.pk-seat.-me .pk-n { color: var(--gold2); }
.pk-seat.-fold { opacity: .5; }
.pk-seat.-win { border-color: var(--teal); background: rgba(95, 211, 192, .12); }
.pk-res { margin: 0; text-align: center; font-weight: 700; color: var(--teal); font-size: 14px; }
.pk-me { display: flex; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 12px; background: #101a3a; border: 1px solid var(--line); }
.pk-mycards { display: flex; gap: 4px; }
.pk-myinfo { display: flex; flex-direction: column; }
.pk-myinfo b { color: var(--gold2); font: 700 15px var(--serif); }
.pk-act { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pk-act.-turn { padding: 8px; border-radius: 12px; border: 1.5px solid var(--gold); background: rgba(233, 196, 106, .08); }
.pk-your { width: 100%; font-weight: 700; color: var(--gold2); font-size: 13px; }
.pk-foot { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.pk-me.-turn { border-color: var(--gold); }
.wait.pk { gap: 10px; }

/* ヘッダー直下の番号の列。PCもスマホも同じ並び。 */
.seatbar { flex: none; padding: 4px 10px 5px; background: rgba(8, 12, 30, .65); border-bottom: 1px solid var(--line); }
.strip { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 8px 6px 7px; min-width: 0; }
.strip .av svg { width: 38px; height: 38px; }
.strip-info { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 12px; color: var(--sub); font-size: 12px; }
.strip-info button { padding: 0; border: 0; background: transparent; color: var(--gold2); font-size: 12px; text-decoration: underline; }
.sp.-can { border-radius: 50%; outline: 1px solid rgba(233, 196, 106, .65); outline-offset: 3px; }
.sp.-sel { border-radius: 50%; outline: 2px solid var(--gold); outline-offset: 3px; box-shadow: 0 0 12px rgba(233, 196, 106, .6); }
.sp.-away { opacity: .55; }
.sp.-empty .av-empty { width: 38px; height: 38px; }
.seat-dialog .seats { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); max-height: 62vh; overflow-y: auto; }
.seat-dialog .seats-h { margin-top: 8px; }
.queue-notice { font-size: 13px; line-height: 1.6; color: var(--gold2); }
.wname.-me { color: var(--gold2); font-weight: 700; }
.room-empty, .room-reserve { font-size: 12px; color: var(--sub); }
.room-next { font-size: 11px; line-height: 1.5; color: var(--mute); margin: 0; }
.sp { position: relative; border: 0; background: transparent; padding: 0; flex: none; line-height: 0; }
.sp.-dead .av { filter: grayscale(1); opacity: .55; }
.sp.-me .av svg { filter: drop-shadow(0 0 4px rgba(233, 196, 106, .9)); }
.sp small { position: absolute; right: -4px; bottom: -3px; font-size: 10px; line-height: 13px; background: var(--gold); color: #2a1d05; border-radius: 6px; padding: 0 3px; font-weight: 800; }
.sp i { position: absolute; left: -3px; top: -3px; transform: rotate(-12deg); font: 800 10px/14px var(--serif); color: #ffb4b4; border: 1.5px solid #e05a5a; border-radius: 4px; padding: 0 2px; background: rgba(40, 8, 12, .8); font-style: normal; }
.av-empty.-s { width: 26px; height: 26px; font-size: 11px; }

/* スマホの下のタブ (広い画面では出さない) */
.mnav { display: none; }

/* 720〜1100: 記録を右から重ねず、2列 + 記録は会話の下へは置かない → 3列目を細く */
@media (max-width: 1100px) {
  .vgrid { grid-template-columns: 200px minmax(0, 1fr) 280px; gap: 8px; padding: 8px; }
  .seats { grid-template-columns: 1fr; }
  .seat.-g, .seat:not(.-g) { flex-direction: row; justify-content: flex-start; padding: 6px 8px; gap: 8px; }
  .seat .av svg { width: 34px; height: 34px; } .av-empty { width: 34px; height: 34px; }
  .seat-st { margin-left: auto; }
  .seat-co { position: static; margin-left: auto; }
  .seat-role { position: static; }
  .seat-dead { position: static; transform: none; font-size: 11px; padding: 0 4px; margin-left: auto; }
  .seat.-ok::after { position: static; margin-left: auto; }
  .seat-tag { position: static; }
  .seat.-mate::before { display: none; }
}
/* 721〜900: 2列。左 = 席と記録、右 = 会話 か 人狼 (メモ・ポーカー)。右の列の上に切り替えの帯を見える形で出す
 * (浮いたボタンだと人狼の会話の開き方が分からない。作者 2026-10-23) */
@media (max-width: 900px) and (min-width: 721px) {
  .vgrid { grid-template-columns: 190px minmax(0, 1fr); padding-top: 0; }
  .seats-wrap { grid-row: 1; grid-column: 1; }
  .talk, .side { grid-row: 1; grid-column: 2; }
  .side { display: none; }
  #vill[data-m=side] .side { display: flex; }
  #vill[data-m=side] .talk { display: none; }
  .mnav { display: flex; order: 1; gap: 4px; margin: 8px 8px 8px 206px; padding: 4px; border-radius: 12px; background: rgba(8, 12, 30, .75); border: 1px solid var(--line); }
  .vgrid { order: 2; }
  .mnav button { flex: 1; border: 0; background: transparent; color: var(--sub); padding: 7px 0; border-radius: 9px; font-weight: 700; }
  .mnav button.on { color: var(--gold2); background: rgba(233, 196, 106, .12); }
  .mnav button[data-m=seats] { display: none; }
}
/* 下のタブ・上の帯の「人狼」は赤く。まだ読んでいない人狼の会話の数を出す */
.mnav button.-wolf { color: #ff9b9b; }
.mnav button.-wolf.on { background: rgba(224, 90, 90, .16); color: #ffb4b4; }
.mnav button { position: relative; }
.mnav .badge { position: absolute; top: 2px; right: 10%; }

/* 720 未満: スマホ・記事の枠。会話を主に、下のタブで 席 / 記録 */
@media (max-width: 720px) {
  body { font-size: 14px; }
  .vbar { padding: 6px 8px; gap: 6px; }
  #phaseName { font-size: 17px; }
  .vbar-timer { width: 44px; height: 44px; }
  .vbar-role span { display: none; } .vbar-role { padding: 3px; } .vbar-comp .comp-v { display: none; }
  .vgrid { display: block; padding: 6px; position: relative; }
  .seats-wrap, .talk, .side { position: absolute; inset: 6px; display: none; }
  #vill:not([data-m]) .talk, #vill[data-m=talk] .talk { display: flex; }
  #vill[data-m=seats] .seats-wrap { display: flex; }
  #vill[data-m=side] .side { display: flex; }
  .seats { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
  .seat.-g, .seat:not(.-g) { flex-direction: column; padding: 8px 4px; }
  .seat-co { position: absolute; top: 4px; right: 4px; margin: 0; } .seat-dead { position: absolute; top: 30%; left: 50%; transform: translate(-50%, -50%) rotate(-12deg); }
  .seat-st { margin: 0; } .seat.-ok::after { position: absolute; }
  .mnav { display: flex; gap: 4px; padding: 4px 6px calc(4px + env(safe-area-inset-bottom)); background: rgba(8, 12, 30, .9); border-top: 1px solid var(--line); }
  .mnav button { flex: 1; border: 0; background: transparent; color: var(--sub); padding: 8px 0; border-radius: 10px; font-weight: 700; }
  .mnav button.on { color: var(--gold2); background: rgba(233, 196, 106, .1); }
  .seatbar { padding: 2px 6px 4px; }
  .strip { gap: 4px; padding: 6px 0 5px; justify-content: center; overflow-x: auto; scrollbar-width: none; }
  .strip .av svg, .sp.-empty .av-empty { width: 26px; height: 26px; }
  .sp small { font-size: 9px; right: -2px; bottom: -2px; }
  .strip-info { font-size: 10px; gap: 8px; }
  .strip-info button { font-size: 10px; }
  .msg-sys.-big { font-size: 14px; padding: 8px 12px; }
  .vlist { font-size: 12px; }
  .wframe { height: 320px; }
}
/* 投票・夜はスマホ・記事の枠でも席を会話の上に出す (選んでから決める、を1画面で)。席は小さな札にして詰める */
@media (max-width: 720px) {
  body[data-phase=vote] #vill:not([data-m=side]) .vgrid, body[data-phase=night] #vill:not([data-m=side]) .vgrid { display: flex; flex-direction: column; gap: 6px; }
  body[data-phase=vote] #vill:not([data-m=side]) .seats-wrap, body[data-phase=night] #vill:not([data-m=side]) .seats-wrap,
  body[data-phase=vote] #vill:not([data-m=side]) .talk, body[data-phase=night] #vill:not([data-m=side]) .talk { position: static; display: flex; }
  body[data-phase=vote] #vill:not([data-m=side]) .seats-wrap, body[data-phase=night] #vill:not([data-m=side]) .seats-wrap { flex: none; max-height: 46%; padding: 6px; }
  body[data-phase=vote] #vill:not([data-m=side]) .talk, body[data-phase=night] #vill:not([data-m=side]) .talk { flex: 1; min-height: 0; }
  body[data-phase=vote] .seats-h, body[data-phase=night] .seats-h, body[data-phase=vote] .watchers, body[data-phase=night] .watchers { display: none; }
  body[data-phase=vote] .strip, body[data-phase=night] .strip { display: none; }
  body[data-phase=vote] .seats, body[data-phase=night] .seats { grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 5px; }
  body[data-phase=vote] .seat, body[data-phase=night] .seat { padding: 5px 2px 4px; gap: 1px; border-radius: 10px; }
  body[data-phase=vote] .seat .av svg, body[data-phase=night] .seat .av svg { width: 28px; height: 28px; }
  body[data-phase=vote] .seat-n, body[data-phase=night] .seat-n { font-size: 12px; }
  body[data-phase=vote] .seat-role, body[data-phase=night] .seat-role { display: none; }
  body[data-phase=vote] .seat-co, body[data-phase=night] .seat-co { font-size: 9px; padding: 0 4px; top: 2px; right: 2px; }
  body[data-phase=vote] .seat-dead, body[data-phase=night] .seat-dead { font-size: 10px; top: 36%; padding: 0 4px; }
}

/* ---------- 重ねる画面 ---------- */
#overlay { position: fixed; inset: 0; z-index: 20; }
.mwrap { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; background: rgba(4, 7, 18, .62); backdrop-filter: blur(3px); animation: fadeIn .2s ease; }
.mbox { width: min(440px, 100%); max-height: calc(100% - 16px); overflow-y: auto; background: linear-gradient(180deg, #17224a, #0f1834); border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); animation: popIn .25s cubic-bezier(.2, 1.3, .4, 1); }
.mbox.-wide { width: min(620px, 100%); }
.mbox h3 { margin: 0 0 8px; font: 800 20px var(--serif); color: #fff7e2; letter-spacing: .05em; }
.mbox p { margin: 6px 0; }
.mbtns { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.opt { margin: 12px 0; }
.opt-l { display: block; font-size: 13px; color: var(--sub); margin-bottom: 6px; }
.opt-note { font-size: 12px; color: var(--mute); margin: -4px 0 8px !important; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .05); border-radius: 999px; padding: 6px 14px; font-size: 14px; }
.seg button.on { background: var(--gold); color: #2a1d05; border-color: var(--gold); font-weight: 700; }
.code-in { width: 100%; font: 800 34px var(--serif); letter-spacing: .4em; text-align: center; padding: 10px; border-radius: 14px; border: 1px solid var(--line); background: rgba(5, 9, 24, .6); color: #fff7e2; margin-top: 8px; }
.mrow { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line2); background: transparent; padding: 12px 4px; font-size: 15px; }
.mrow.-danger { color: #ff9b9b; border-bottom: 0; }
.co-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.co-b { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; border: 1px solid var(--line); background: #101a3a; font: 700 15px var(--serif); color: var(--gold2); }
.co-b img { width: 40px; height: 40px; border-radius: 8px; }

/* 点呼 */
.mbox.-ready { text-align: center; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(233, 196, 106, .15), 0 20px 60px rgba(0, 0, 0, .6); }
.rd-kicker { color: var(--gold2); letter-spacing: .2em; font-size: 13px; margin: 0 !important; }
.rd-h { font-size: 26px !important; margin: 6px 0 4px !important; }
.rd-left { font: 800 44px var(--serif); color: #fff7e2; margin: 4px 0 !important; font-variant-numeric: tabular-nums; }
.rd-n { color: var(--sub); }
.mbox.-ready .btn-xl { margin: 12px 0 6px; animation: readyGlow 1.2s ease-in-out infinite; }
@keyframes readyGlow { 50% { box-shadow: 0 0 0 8px rgba(233, 196, 106, .18), 0 6px 26px rgba(233, 196, 106, .5); } }

/* 役職のカード */
.mbox.-role { text-align: center; width: min(360px, 100%); }
.flip { perspective: 900px; width: 200px; height: 270px; margin: 14px auto; }
.flip-in { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.3, .8, .3, 1); }
.flip.-open .flip-in { transform: rotateY(180deg); }
.flip-back, .flip-front { position: absolute; inset: 0; border-radius: 16px; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 2px solid var(--gold); }
.flip-back { background: radial-gradient(circle at 50% 42%, #22346e 0 28%, transparent 29%), repeating-linear-gradient(45deg, #101a3a 0 10px, #13204a 10px 20px); }
.flip-back span { font: 800 48px var(--serif); color: var(--gold); }
.flip-front { transform: rotateY(180deg); background: #101a3a; box-shadow: inset 0 0 0 6px #101a3a, inset 0 0 0 7px rgba(233, 196, 106, .4); }
.flip-front img { width: 150px; height: 150px; }
.flip-front b { font: 800 26px var(--serif); color: var(--gold2); letter-spacing: .1em; }
.flip-front small { color: var(--sub); }
.flip-front.-wolf { border-color: var(--red); } .flip-front.-wolf b { color: #ff9b9b; }
.role-goal { color: #dfe5f7; }
.role-priv { padding: 8px 12px; border-radius: 10px; background: rgba(233, 196, 106, .12); border: 1px dashed var(--gold); font-weight: 600; }

/* 終わり */
.mbox.-end { width: min(680px, 100%); text-align: center; }
.end-h { font-size: 34px !important; margin: 4px 0 14px !important; }
.end-h.-wolf { color: #ff9b9b !important; }
.end-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.ecard { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 12px; background: #101a3a; border: 1px solid var(--line); font-size: 13px; animation: popIn .4s both; }
.ecard img { width: 64px; height: 64px; border-radius: 10px; }
.ecard.-wolf { border-color: rgba(224, 90, 90, .55); } .ecard.-wolf span { color: #ff9b9b; }
.ecard.-dead img { filter: grayscale(.8); opacity: .7; }
.ecard.-me { box-shadow: 0 0 0 2px var(--gold); }
.ecard span { color: var(--gold2); font-weight: 700; }
.end-cards .ecard:nth-child(2) { animation-delay: .06s; } .end-cards .ecard:nth-child(3) { animation-delay: .12s; } .end-cards .ecard:nth-child(4) { animation-delay: .18s; } .end-cards .ecard:nth-child(5) { animation-delay: .24s; }
.end-cards .ecard:nth-child(6) { animation-delay: .3s; } .end-cards .ecard:nth-child(7) { animation-delay: .36s; } .end-cards .ecard:nth-child(8) { animation-delay: .42s; } .end-cards .ecard:nth-child(9) { animation-delay: .48s; }

/* 段の変わり目の幕 */
.banner { position: fixed; left: 50%; top: 38%; transform: translate(-50%, -50%); z-index: 15; text-align: center; pointer-events: none; animation: bannerIn .6s cubic-bezier(.2, 1, .3, 1); }
.banner b { display: block; font: 800 clamp(34px, 7vw, 60px) var(--serif); color: #fff7e2; letter-spacing: .15em; text-shadow: 0 2px 20px rgba(0, 0, 0, .7), 0 0 40px rgba(233, 196, 106, .4); }
.banner span { display: block; margin-top: 4px; color: #dfe5f7; text-shadow: 0 1px 10px rgba(0, 0, 0, .8); font-size: 16px; }
.banner.-out { opacity: 0; transition: opacity .6s; }
@keyframes bannerIn { from { opacity: 0; transform: translate(-50%, -40%); letter-spacing: .4em; } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: scale(.94); } }

#toast { position: fixed; left: 50%; bottom: 84px; transform: translate(-50%, 10px); z-index: 30; max-width: calc(100% - 32px); padding: 10px 18px; border-radius: 12px; background: rgba(8, 12, 30, .94); border: 1px solid var(--line); box-shadow: 0 8px 26px rgba(0, 0, 0, .5); opacity: 0; transition: opacity .25s, transform .25s; font-size: 14px; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* 村一覧は参加者を見て選べる。長い名前も枠内に収める。 */
.room-names{font-size:12px;color:var(--muted,#b7b9c7);line-height:1.7;overflow-wrap:anywhere;margin:8px 0}.peek-seats{flex-wrap:wrap}.pseat{gap:4px;max-width:100%;overflow-wrap:anywhere}

.room-act{flex-wrap:wrap}.rdots{flex-wrap:wrap;min-width:0}.room-mid{flex-wrap:wrap}

/* 結果は元の席に表示し、会話を遮らない。 */
.seat-true{display:flex;align-items:center;gap:3px;font-size:11px;color:var(--gold2);background:#101a3a;border:1px solid var(--line);border-radius:999px;padding:1px 5px;white-space:nowrap}
.seat-true img{width:18px;height:18px;border-radius:50%}
body[data-phase=end] .seat.-dead .seat-n{opacity:.8}

@media (max-width: 380px) { .strip .av svg, .sp.-empty .av-empty { width: 22px; height: 22px; } .strip { gap: 3px; } }

/* 本人に届いた結果を最優先にし、公開の発表・補欠とは見た目も分ける。 */
.private-results { max-height: 42vh; overflow-y: auto; position: sticky; top: 0; z-index: 2; padding: 10px; border: 1px solid rgba(233, 196, 106, .65); border-radius: 12px; background: #101a35; }
.private-results h4 { font-size: 15px; color: #ffe5a2; }
.result-note { color: var(--sub); font-size: 11px; margin: 2px 0 6px; }
.result-empty { color: var(--sub); font-size: 12px; line-height: 1.6; }
.private-result { border-top: 1px solid var(--line); padding: 8px 0 2px; }
.result-day { margin: 0 0 5px; font-size: 12px; color: var(--sub); }
.result-answer { display: flex; flex-direction: column; gap: 3px; margin-bottom: 5px; overflow-wrap: anywhere; font-size: 13px; }
.private-result.-latest .result-answer strong { font-size: 17px; }
.private-result .btn { max-width: 100%; white-space: normal; }
.record-day h5 { margin: 10px 0 2px; padding: 3px 0; border-bottom: 1px solid var(--line); color: var(--gold2); font-size: 13px; }
.rec-event { margin: 3px 0 0 28px; color: var(--sub); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.watchers { order: 3; margin-top: auto; padding-top: 18px; font-size: 11px; }
.watchers b { color: var(--sub); }
.sp-victim { margin-left: 9px; }
.sp-victim .av-empty { width: 32px; height: 32px; border-style: solid; border-color: #ae7381; color: #e4bcc4; background: rgba(92, 39, 54, .35); }
.sp-victim.-dead .av-empty { opacity: .75; }
/* コピペの定型文を根拠に真占いを判定させないため、本人宛ての表示はドラッグで選択させない。 */
.private-results, .msg-me, .role-priv { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
@media (max-width: 720px) {
  .sp-victim { margin-left: 4px; }
  .sp-victim .av-empty { width: 26px; height: 26px; }
  .strip { gap: 3px; }
  .strip-info { font-size: 9px; gap: 5px; }
  .private-results { position: static; max-height: none; }
}
@media (max-width: 380px) { .sp-victim .av-empty { width: 22px; height: 22px; } .strip { gap: 1px; } }
