:root {
  --bg: #eef1f8; --card: #ffffff; --text: #1e2433; --muted: #6b7280; --line: #e3e7ef;
  --primary: #5b5bf0; --primary-d: #4747c9; --t1: #2f7fe0; --t1-bg: #e6f0fc; --t2: #e8a21c; --t2-bg: #fdf3dd;
  --ok: #16a34a; --ok-bg: #e7f7ec; --bad: #dc2626; --bad-bg: #fde8e8; --warn-bg: #fff7e0; --warn: #9a6700;
  --radius: 14px; --shadow: 0 10px 30px rgba(30, 36, 51, .08);
  --bg-grad-a: #f6f7fc; --bg-grad-b: #eef1f8; --low-a: #fff5f5; --low-b: #ffe9e9; --chip-code-bg: #1e2433;
}
:root[data-theme="dark"], :root:not([data-theme="light"]).sys-dark {
  --bg: #0f1218; --bg-soft: #1a1f2b; --card: #171c26; --text: #e9ecf3; --muted: #9aa3b5; --line: #2a3140;
  --primary: #7b7bff; --primary-d: #6666e6; --t1: #5ea0ff; --t1-bg: #152238; --t2: #f0b43c; --t2-bg: #33280f;
  --ok: #34d070; --ok-bg: #11301d; --bad: #ff6b6b; --bad-bg: #3a1717; --warn-bg: #332a10; --warn: #f3c15a;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35); --bg-grad-a: #12151d; --bg-grad-b: #0f1218; --low-a: #2a1414; --low-b: #1a0f0f; --chip-code-bg: #2f3a55;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: linear-gradient(180deg, var(--bg-grad-a) 0%, var(--bg-grad-b) 100%); color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif; font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; min-height: 100vh;
}
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .5; cursor: not-allowed; }
a { color: var(--primary); }
.hidden { display: none !important; }
.sr { position: absolute; left: -9999px; }

.app { max-width: 1040px; margin: 0 auto; padding: 16px; }
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 10px 14px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 14px;
}
.topbar .brand { font-weight: 700; display: flex; align-items: center; gap: 8px; }
.topbar .meta { color: var(--muted); font-size: 13px; display: flex; gap: 12px; flex-wrap: wrap; }
.topbar .meta b { color: var(--text); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--line); }
.chip.t1 { background: var(--t1-bg); color: var(--t1); }
.chip.t2 { background: var(--t2-bg); color: var(--t2); }
.chip.code { background: var(--chip-code-bg); color: #fff; letter-spacing: 2px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.card h1 { margin: 0 0 4px; font-size: 26px; letter-spacing: -.02em; }
.card h2 { margin: 0 0 6px; font-size: 20px; letter-spacing: -.01em; }
.card h3 { margin: 0 0 8px; font-size: 15px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.sub { color: var(--muted); margin: 0 0 16px; font-size: 14px; }

.home { max-width: 460px; margin: 6vh auto 0; text-align: center; }
.home .logo { width: 64px; height: 64px; border-radius: 50%; background: var(--primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 28px; margin-bottom: 10px; }
.field { text-align: left; margin-bottom: 12px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; color: var(--muted); }
input[type=text], input[type=password], select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--card); color: var(--text); outline: none;
}
input:focus, select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(91, 91, 240, .15); }
input.code { text-align: center; letter-spacing: 6px; font-size: 20px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 10px; border: 1.5px solid var(--line);
  background: var(--card); color: var(--text); font-weight: 600; transition: transform .1s ease, background .15s ease;
}
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover:not(:disabled) { background: var(--primary-d); }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.bad { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.warn { background: #f59e0b; border-color: #f59e0b; color: #fff; }
.btn.block { width: 100%; }
.btn.big { padding: 18px 22px; font-size: 18px; }
.btn.small { padding: 6px 10px; font-size: 13px; border-radius: 8px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row > * { flex: 1; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; margin: 14px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.msg { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; font-size: 14px; display: none; }
.msg.show { display: block; }
.msg.err { background: var(--bad-bg); color: var(--bad); }
.msg.ok { background: var(--ok-bg); color: var(--ok); }
.msg.warn { background: var(--warn-bg); color: var(--warn); }
.links { margin-top: 14px; font-size: 13px; color: var(--muted); }
.links button { background: none; border: 0; color: var(--primary); text-decoration: underline; padding: 0; font-size: 13px; }
.counter { display: flex; justify-content: center; gap: 18px; margin-top: 16px; font-size: 13px; color: var(--muted); }
.counter b { color: var(--text); font-size: 16px; }

/* Lobi */
.lobby { display: grid; grid-template-columns: 300px 1fr; gap: 14px; }
.players ul { list-style: none; margin: 0; padding: 0; }
.players li { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.players li:last-child { border-bottom: 0; }
.players .name { flex: 1; font-weight: 600; }
.players .me { color: var(--primary); font-size: 12px; }
.players select { width: auto; padding: 6px 8px; font-size: 13px; }
.players .kick { border: 0; background: none; color: var(--bad); font-size: 16px; padding: 0 4px; }
.teams { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.team { padding: 12px; border-radius: 12px; border: 2px solid var(--line); }
.team.t1 { border-color: var(--t1); background: var(--t1-bg); }
.team.t2 { border-color: var(--t2); background: var(--t2-bg); }
.team input { padding: 8px 10px; font-weight: 700; margin-bottom: 6px; }
.team .members { font-size: 13px; color: var(--muted); min-height: 20px; }
.settings { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.cats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.cats label { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; border: 1.5px solid var(--line); font-size: 13px; cursor: pointer; user-select: none; }
.cats label.on { border-color: var(--primary); background: var(--t1-bg); color: var(--primary); }
.cats input { display: none; }
.host-only { display: none; }
.is-host .host-only { display: initial; }
.is-host .row.host-only { display: flex; }
.readonly-note { font-size: 13px; color: var(--muted); }

/* Oyun */
.game { display: grid; grid-template-columns: 1fr 300px; gap: 14px; }
.scorebar { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; margin-bottom: 14px; }
.score { padding: 12px; border-radius: 12px; text-align: center; }
.score.t1 { background: var(--t1-bg); color: var(--t1); }
.score.t2 { background: var(--t2-bg); color: var(--t2); }
.score .n { font-size: 32px; font-weight: 800; line-height: 1; }
.score .l { font-size: 13px; font-weight: 600; }
.score.active { outline: 3px solid currentColor; }
.target { font-size: 13px; color: var(--muted); text-align: center; }
.timer { position: relative; height: 10px; background: var(--line); border-radius: 999px; overflow: hidden; margin: 10px 0; }
.timer i { display: block; height: 100%; background: var(--primary); width: 100%; transition: width .5s linear; }
.timer.low i { background: var(--bad); }
.time { font-size: 44px; font-weight: 800; text-align: center; letter-spacing: -.02em; line-height: 1; }
.time.low { color: var(--bad); }
.roles { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 12px 0; font-size: 14px; }
.roles span b { font-weight: 700; }
.wordcard { text-align: center; padding: 22px 16px; border: 2px dashed var(--line); border-radius: 14px; margin: 10px 0; }
.wordcard .w { font-size: 34px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 10px; }
.wordcard .forb { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.wordcard .forb span { padding: 6px 12px; border-radius: 999px; background: var(--bad-bg); color: var(--bad); font-weight: 600; font-size: 14px; }
.wordcard.hiddenword { color: var(--muted); font-size: 15px; }
.judge { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.turnstat { display: flex; gap: 14px; justify-content: center; font-size: 13px; color: var(--muted); margin-top: 8px; }
.turnstat b { color: var(--text); }
.between { text-align: center; padding: 10px 0; }
.between .big { margin-top: 10px; }
.history { list-style: none; padding: 0; margin: 8px 0 0; max-height: 220px; overflow: auto; font-size: 13px; }
.history li { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.history .correct { color: var(--ok); } .history .tabu { color: var(--bad); } .history .skip { color: var(--muted); }
.winner { text-align: center; padding: 20px; }
.winner .trophy { font-size: 56px; }
.winner h2 { font-size: 28px; }
.notice { background: var(--warn-bg); color: var(--warn); padding: 10px 12px; border-radius: 10px; font-size: 14px; margin-bottom: 12px; }

/* Modal */
.modal { position: fixed; inset: 0; background: rgba(20, 24, 40, .55); display: none; align-items: center; justify-content: center; padding: 16px; z-index: 50; }
.modal.show { display: flex; }
.modal .box { background: var(--card); border-radius: 14px; padding: 20px; width: 100%; max-width: 460px; max-height: 90vh; overflow: auto; }
.modal h2 { margin-top: 0; }
.modal .rules p { margin: 0 0 8px; font-size: 14px; }

footer { text-align: center; color: var(--muted); font-size: 12px; padding: 20px 0 10px; }
footer a { color: var(--muted); }

@media (max-width: 760px) {
  .lobby, .game { grid-template-columns: 1fr; }
  .card { padding: 16px; }
  .settings { grid-template-columns: 1fr; }
  .wordcard .w { font-size: 28px; }
  .time { font-size: 36px; }
  .judge { grid-template-columns: 1fr; }
  .judge .btn { padding: 16px; font-size: 17px; }
}

.mt10 { margin-top: 10px; }
.mt12 { margin-top: 12px; }

/* ---------- Tur ekranı (v2) ---------- */
.turn-strip { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 12px; border-radius: 10px; font-size: 13px; margin-bottom: 10px; background: var(--line); }
.turn-strip .turn-team { font-weight: 800; }
.turn-strip .turn-roles { color: var(--muted); }
.turn-strip .turn-you { margin-left: auto; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--card); }
.game.team1 .turn-strip { background: var(--t1-bg); color: var(--t1); }
.game.team2 .turn-strip { background: var(--t2-bg); color: var(--t2); }
.game.team1 .turn-strip .turn-roles, .game.team2 .turn-strip .turn-roles { color: inherit; opacity: .8; }
.game.team1 .timer i { background: var(--t1); } .game.team2 .timer i { background: var(--t2); }
.time-wrap { margin: 4px 0 8px; }
.time { font-size: 48px; }
.wordcard { padding: 26px 16px; background: var(--card); }
.wordcard .w { font-size: 40px; }
.wordcard .forb span { font-size: 16px; padding: 8px 14px; }
/* Anlatan: kelime odaklı */
.role-describer .scorebar { display: none; }
.role-describer .wordcard { padding: 34px 16px; border-style: solid; border-color: var(--line); box-shadow: var(--shadow); }
.role-describer .wordcard .w { font-size: 52px; line-height: 1.1; margin-bottom: 16px; }
.role-describer .wordcard .forb span { font-size: 18px; padding: 10px 16px; }
.role-describer .feed-wrap { opacity: .75; }
/* Hakem */
.role-referee .wordcard .w { font-size: 40px; }
/* İzleyici: büyük sayaç ve akış */
.role-observer .time { font-size: 64px; }
.role-observer .wordcard.hiddenword { padding: 14px; }
.feed-wrap { margin-top: 12px; }
.feed-head { display: flex; gap: 14px; justify-content: center; font-size: 13px; color: var(--muted); }
.feed-head b { color: var(--text); font-size: 15px; }
.feed { list-style: none; margin: 8px 0 0; padding: 0; max-height: 170px; overflow: auto; font-size: 14px; }
.feed li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 10px; border-radius: 8px; margin-bottom: 4px; animation: feedin .25s ease; }
.feed li.correct { background: var(--ok-bg); color: var(--ok); } .feed li.tabu { background: var(--bad-bg); color: var(--bad); } .feed li.skip { background: var(--warn-bg); color: var(--warn); }
.feed li b { font-weight: 700; }
.feed .empty { color: var(--muted); text-align: center; padding: 6px; }
@keyframes feedin { from { transform: translateY(-6px); opacity: 0; } to { transform: none; opacity: 1; } }
/* Son 10 sn / son 5 sn */
body.turn-low { background: linear-gradient(180deg, var(--low-a) 0%, var(--low-b) 100%); }
body.turn-low .time { color: var(--bad); }
body.turn-critical .game > .card:first-child { animation: edgepulse .5s ease-in-out infinite alternate; }
@keyframes edgepulse { from { box-shadow: 0 0 0 0 rgba(220,38,38,.0), var(--shadow); } to { box-shadow: 0 0 0 6px rgba(220,38,38,.35), var(--shadow); } }
/* Süre doldu geçişi */
.timeup { position: fixed; inset: 0; z-index: 60; display: none; align-items: center; justify-content: center; text-align: center; color: #fff; background: rgba(220,38,38,.92); }
.timeup.show { display: flex; animation: timeupin .25s ease; }
.timeup .big { font-size: 44px; font-weight: 800; letter-spacing: -.02em; }
.timeup .small { font-size: 18px; margin-top: 8px; opacity: .9; }
@keyframes timeupin { from { opacity: 0; transform: scale(1.05); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) {
  .role-describer .wordcard .w { font-size: 40px; }
  .role-describer .players, .role-referee .players { display: none; }
  .role-observer .time { font-size: 56px; }
  /* Hakem düğmeleri başparmak hizasında, alta sabit */
  .role-referee .judge { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; margin: 0; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(30,36,51,.12); grid-template-columns: 1fr 1fr 1fr; }
  .role-referee .judge .btn { padding: 16px 6px; font-size: 16px; }
  body.role-referee.in-turn { padding-bottom: 96px; }
  .role-referee .scorebar .score .n { font-size: 24px; }
  .timeup .big { font-size: 34px; }
}

/* ---------- v3: avatar, lobi özeti, rol kartları, oyun sonu ---------- */
.avatars { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.avatars button { font-size: 22px; padding: 6px 0; border-radius: 10px; border: 2px solid var(--line); background: var(--card); line-height: 1.2; }
.avatars button.on { border-color: var(--primary); background: var(--t1-bg); transform: scale(1.08); }
.av { display: inline-block; width: 1.5em; text-align: center; margin-right: 2px; }
.players .av { font-size: 18px; }
.settings-summary { display: none; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--bg-soft); font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.settings-summary span { flex: 1; }
.guest #settingsSummary { display: flex; }
.guest #hostSettings { display: none; }
.guest.show-settings #hostSettings { display: block; }
.guest #hostSettings h3::after { content: " · ev sahibi düzenler"; font-weight: 400; text-transform: none; letter-spacing: 0; }
.rolecards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 520px; margin: 12px auto; }
.rolecard { padding: 16px 12px; border-radius: 14px; border: 2px solid var(--line); background: var(--bg-soft); text-align: center; }
.rolecard.t1 { border-color: var(--t1); background: var(--t1-bg); } .rolecard.t2 { border-color: var(--t2); background: var(--t2-bg); }
.rolecard .rc-label { font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--muted); }
.rolecard .rc-avatar { font-size: 44px; line-height: 1.2; margin: 6px 0; }
.rolecard .rc-name { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.rolecard .rc-team { font-size: 12px; font-weight: 600; color: var(--muted); }
.rolecard.me { outline: 3px solid var(--primary); outline-offset: 2px; }
.btn.pulse { animation: btnpulse 1.4s ease-in-out infinite; }
@keyframes btnpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(91,91,240,.45); } 50% { box-shadow: 0 0 0 10px rgba(91,91,240,0); } }
.winner { position: relative; overflow: hidden; }
.confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.winner .trophy, .winner h2, .winner .sub, .endstats, .endhl, .winner .row { position: relative; }
.endstats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 560px; margin: 10px auto; text-align: left; }
.endteam { padding: 14px; border-radius: 14px; border: 2px solid var(--line); }
.endteam.t1 { border-color: var(--t1); background: var(--t1-bg); } .endteam.t2 { border-color: var(--t2); background: var(--t2-bg); }
.endteam.won { box-shadow: 0 0 0 3px rgba(22,163,74,.35); }
.endteam .et-name { font-weight: 800; font-size: 16px; display: flex; justify-content: space-between; }
.endteam .et-score { font-size: 32px; font-weight: 800; line-height: 1.1; }
.endteam .et-row { display: flex; gap: 10px; font-size: 13px; color: var(--muted); margin-top: 6px; flex-wrap: wrap; }
.endteam .et-row b { color: var(--text); }
.endteam .et-members { font-size: 12px; color: var(--muted); margin-top: 6px; }
.endhl { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 6px 0 14px; }
.endhl .hl { padding: 10px 14px; border-radius: 12px; background: var(--bg-soft); font-size: 13px; min-width: 150px; }
.endhl .hl b { display: block; font-size: 15px; }
.endhl .hl small { color: var(--muted); }
@media (max-width: 760px) {
  .avatars { grid-template-columns: repeat(8, 1fr); } .avatars button { font-size: 19px; }
  .rolecards { gap: 8px; } .rolecard .rc-avatar { font-size: 36px; } .rolecard .rc-name { font-size: 17px; }
  .endstats { grid-template-columns: 1fr; }
}

/* ---------- v4: nasıl oynanır, tema/ses düğmeleri ---------- */
.howto { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0 4px; text-align: left; }
.howto .step { padding: 10px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--line); }
.howto .step .ic { font-size: 22px; line-height: 1.2; }
.howto .step b { display: block; font-size: 12px; margin-top: 4px; }
.howto .step small { display: block; font-size: 11px; color: var(--muted); line-height: 1.35; }
.iconbtn { border: 1.5px solid var(--line); background: var(--card); color: var(--text); border-radius: 10px; width: 38px; height: 38px; font-size: 17px; display: inline-flex; align-items: center; justify-content: center; }
.home-tools { position: absolute; top: 12px; right: 12px; display: flex; gap: 6px; }
.home { position: relative; }
@media (max-width: 760px) { .howto { grid-template-columns: 1fr; } .howto .step { display: flex; gap: 10px; align-items: center; } .howto .step .ic { font-size: 24px; } }

/* ---------- MiniCasus ---------- */
.mc-card { position: relative; border-radius: 16px; padding: 22px 16px; text-align: center; min-height: 150px; display: flex; flex-direction: column; justify-content: center; cursor: pointer; user-select: none; border: 2px solid var(--line); background: var(--card); box-shadow: var(--shadow); }
.mc-card.hiddencard { background: repeating-linear-gradient(135deg, var(--bg-soft) 0 10px, var(--line) 10px 12px); }
.mc-card .lbl { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--muted); }
.mc-card .loc { font-size: 34px; font-weight: 800; letter-spacing: -.02em; margin: 6px 0; }
.mc-card .role { font-size: 18px; color: var(--muted); }
.mc-card .role b { color: var(--text); }
.mc-card.spy { border-color: var(--bad); background: var(--bad-bg); }
.mc-card.spy .loc { color: var(--bad); }
.mc-card .hint { font-size: 12px; color: var(--muted); margin-top: 8px; }
.mc-card.hiddencard .hint { font-size: 16px; font-weight: 700; color: var(--text); }
.mc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; font-size: 13px; }
.mc-top .first { padding: 4px 10px; border-radius: 999px; background: var(--t2-bg); color: var(--t2); font-weight: 700; }
.mc-time { font-size: 44px; font-weight: 800; text-align: center; line-height: 1; margin: 6px 0; }
.mc-time.low { color: var(--bad); }
.locgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; margin-top: 8px; }
.locgrid button { text-align: left; padding: 8px 10px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--card); color: var(--text); font-size: 13px; }
.locgrid button.off { opacity: .4; text-decoration: line-through; }
.locgrid button.on { border-color: var(--primary); }
.suspects { list-style: none; margin: 0; padding: 0; }
.suspects li { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.suspects li:last-child { border-bottom: 0; }
.suspects .name { flex: 1; font-weight: 600; }
.suspects .mark { border: 1.5px solid var(--line); background: var(--card); color: var(--text); border-radius: 8px; padding: 4px 8px; font-size: 13px; }
.suspects .mark.on { background: var(--warn-bg); border-color: var(--warn); }
.suspects .score { color: var(--muted); font-size: 13px; }
.suspects .voted { font-size: 12px; color: var(--ok); }
.suspects .host { font-size: 12px; }
.votebtn { padding: 8px 12px; border-radius: 8px; border: 1.5px solid var(--line); background: var(--card); color: var(--text); font-weight: 600; font-size: 13px; }
.votebtn.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.reveal { text-align: center; }
.reveal .big { font-size: 26px; font-weight: 800; margin: 6px 0; }
.reveal .big.spywin { color: var(--bad); } .reveal .big.caught { color: var(--ok); }
.reveal .rolelist { list-style: none; padding: 0; margin: 12px 0; text-align: left; }
.reveal .rolelist li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.reveal .rolelist li.spyrow { color: var(--bad); font-weight: 700; }
.reveal .delta { font-weight: 700; } .reveal .delta.plus { color: var(--ok); }
.mc-locs-settings { display: flex; flex-wrap: wrap; gap: 6px; }
.mc-locs-settings label { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; border: 1.5px solid var(--line); font-size: 12px; cursor: pointer; }
.mc-locs-settings label.on { border-color: var(--primary); background: var(--t1-bg); }
.mc-locs-settings input { display: none; }
@media (max-width: 760px) { .mc-card .loc { font-size: 28px; } .locgrid { grid-template-columns: 1fr 1fr; } .actions { grid-template-columns: 1fr; } }
