/* =========================================================
   Vampir Köylü arayüzü
   Koyu, düşük kontrastlı yüzeyler; tek vurgu rengi (fener kehribarı);
   takım renkleri yalnız rol bilgisi taşır.
   ========================================================= */
:root {
  --bg: #0f131a;
  --surface: #161b24;
  --surface-2: #1c222d;
  --surface-3: #252c39;
  --border: #29303d;
  --border-2: #353d4d;
  --text: #e6e8ec;
  --text-2: #a4abb8;
  --text-3: #6d7584;
  --accent: #f0a63a;
  --accent-hover: #f5b552;
  --accent-ink: #1d1404;
  --accent-soft: rgba(240, 166, 58, .13);
  --koylu: #5bb98b;
  --kurt: #e6584c;
  --tarafsiz: #a78bf0;
  --koylu-soft: rgba(91, 185, 139, .13);
  --kurt-soft: rgba(230, 88, 76, .14);
  --tarafsiz-soft: rgba(167, 139, 240, .14);
  --danger: #ef5b52;
  --warn: #f0c14b;
  --ok: #4cc38a;
  --r-xs: 6px;
  --r-sm: 8px;
  --r-md: 10px;
  --r-lg: 14px;
  --sans: 'Inter Variable', Inter, 'Segoe UI', system-ui, -apple-system, sans-serif;
  --display: 'Alegreya', Georgia, serif;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --topbar: 56px;
  --gap: 12px;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 400 14px/1.5 var(--sans);
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.muted { color: var(--text-2); }
.sm { font-size: 12.5px; }
.ic { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 14px; border-radius: var(--r-sm);
  border: 1px solid transparent; font-weight: 600; font-size: 13.5px; white-space: nowrap;
  transition: background .12s, border-color .12s, color .12s;
}
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); }
.btn-secondary { background: var(--surface-3); border-color: var(--border-2); color: var(--text); }
.btn-secondary:hover:not(:disabled) { background: #2e3646; }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover:not(:disabled) { background: var(--surface-3); color: var(--text); }
.btn-danger { background: transparent; border-color: rgba(239, 91, 82, .45); color: var(--danger); }
.btn-danger:hover:not(:disabled) { background: rgba(239, 91, 82, .1); }
.btn-lg { height: 44px; padding: 0 20px; font-size: 14.5px; }
.btn-sm { height: 28px; padding: 0 10px; font-size: 12.5px; }
.btn-block { width: 100%; }
.icon-btn { width: 28px; height: 28px; padding: 0; display: inline-grid; place-items: center; border-radius: var(--r-xs); border: 0; background: transparent; color: var(--text-3); }
.icon-btn:hover { background: var(--surface-3); color: var(--text); }
.link-btn { background: none; border: 0; padding: 0; color: var(--text-2); font-size: 12.5px; font-weight: 500; }
.link-btn:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Form öğeleri ---------- */
input, select {
  height: 36px; padding: 0 12px; border-radius: var(--r-sm);
  background: var(--surface-2); border: 1px solid var(--border-2); color: var(--text); min-width: 0;
}
input::placeholder { color: var(--text-3); }
input:hover:not(:disabled), select:hover:not(:disabled) { border-color: #45506a; }
input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
select {
  appearance: none; padding-right: 32px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a4abb8' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 16px;
}
input:disabled, select:disabled { cursor: default; opacity: 1; color: var(--text-2); background-color: transparent; }
.fld { display: grid; gap: 6px; }
.fld > span { font-size: 13px; font-weight: 500; color: var(--text-2); }
.fld input { height: 42px; font-size: 14.5px; }
.fld-hint { font-size: 12.5px; color: var(--text-3); min-height: 18px; }
.form-err { font-size: 13px; color: var(--danger); background: rgba(239, 91, 82, .08); border: 1px solid rgba(239, 91, 82, .25); padding: 8px 10px; border-radius: var(--r-sm); }

/* Segmentli seçim */
.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-sm); }
.seg button { height: 28px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent; color: var(--text-2); font-size: 13px; font-weight: 500; white-space: nowrap; }
.seg button:hover:not(:disabled):not(.on) { color: var(--text); }
.seg button.on { background: var(--surface-3); color: var(--text); font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.seg button:disabled { cursor: default; }
.seg-full { display: flex; }
.seg-full button { flex: 1; }
.seg .count { color: var(--text-3); font-weight: 500; margin-left: 4px; font-variant-numeric: tabular-nums; }

/* Anahtar */
.switch { position: relative; width: 38px; height: 22px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; }
.switch input:disabled { cursor: default; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--border-2); transition: background .15s; pointer-events: none; }
.switch i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #c9ced8; transition: transform .15s, background .15s; }
.switch input:checked + i { background: var(--accent); border-color: var(--accent); }
.switch input:checked + i::after { transform: translateX(16px); background: #fff; }
.switch input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }
.switch input:disabled + i { opacity: .6; }

/* Kaydırıcı */
.range { display: flex; align-items: center; gap: 12px; width: 100%; }
.range input[type=range] { flex: 1; height: 20px; padding: 0; background: transparent; border: 0; appearance: none; cursor: pointer; --p: 50%; }
.range input[type=range]:focus { box-shadow: none; }
.range input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(to right, var(--accent) var(--p), var(--surface-3) var(--p)); }
.range input[type=range]::-moz-range-track { height: 4px; border-radius: 4px; background: var(--surface-3); }
.range input[type=range]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--accent); }
.range input[type=range]::-webkit-slider-thumb { appearance: none; width: 16px; height: 16px; margin-top: -6px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 4px var(--accent-soft), 0 1px 3px rgba(0,0,0,.5); }
.range input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 4px var(--accent-soft); }
.range input[type=range]:disabled { cursor: default; }
.range input[type=range]:disabled::-webkit-slider-thumb { background: #9aa1ad; box-shadow: none; }
.range output { min-width: 52px; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text); }

/* Sayaç */
.stepper { display: inline-flex; align-items: center; background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-sm); height: 28px; flex: none; }
.stepper button { width: 26px; height: 26px; border: 0; background: transparent; color: var(--text-2); display: grid; place-items: center; border-radius: 6px; }
.stepper button:hover:not(:disabled) { color: var(--text); background: var(--surface-3); }
.stepper button:disabled { opacity: .3; cursor: default; }
.stepper .n { min-width: 22px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; font-size: 13px; }
.stepper .n.zero { color: var(--text-3); font-weight: 500; }

/* Rozet */
.badge { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--surface-3); color: var(--text-2); white-space: nowrap; }
.badge.accent { background: var(--accent-soft); color: var(--accent); }
.badge.test { background: rgba(167, 139, 240, .15); color: var(--tarafsiz); }
.badge.koylu { background: var(--koylu-soft); color: var(--koylu); }
.badge.kurt { background: var(--kurt-soft); color: var(--kurt); }
.badge.tarafsiz { background: var(--tarafsiz-soft); color: var(--tarafsiz); }

/* Avatar */
.avatar { --c: #6b7280; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; position: relative; background: color-mix(in srgb, var(--c) 22%, var(--surface-2)); color: var(--c); font-weight: 700; font-size: 13px; }
.avatar.sm { width: 26px; height: 26px; font-size: 11.5px; }
.avatar .st { position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; background: var(--text-3); border: 2px solid var(--surface); }
.avatar .st.on { background: var(--ok); }

/* ---------- Kabuk ---------- */
.view { height: 100%; }
.moon { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset -5px -3px 0 0 var(--accent); transform: rotate(-20deg); display: inline-block; flex: none; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: .01em; white-space: nowrap; }
.v-app { display: flex; flex-direction: column; }
.topbar { height: var(--topbar); flex: none; display: flex; align-items: center; gap: 20px; padding: 0 16px 0 20px; border-bottom: 1px solid var(--border); background: var(--surface); }
.top-ctx { display: flex; align-items: center; gap: 10px; min-width: 0; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.top-actions { display: flex; gap: 8px; }
.code-chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 6px 0 12px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--border); }
.code-chip .lbl { color: var(--text-3); font-size: 12.5px; }
.code-chip .code { font-weight: 700; letter-spacing: .18em; font-size: 15px; color: var(--accent); font-variant-numeric: tabular-nums; }
.ctx-item { color: var(--text-2); font-size: 13px; white-space: nowrap; }
.ctx-item strong { color: var(--text); font-weight: 600; }
.ctx-sep { width: 1px; height: 18px; background: var(--border-2); }
.user-menu { position: relative; }
.user-btn { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 8px 0 4px; border-radius: var(--r-sm); border: 0; background: transparent; color: var(--text); font-weight: 500; }
.user-btn:hover { background: var(--surface-3); }
.user-btn .ic { color: var(--text-3); width: 14px; height: 14px; }
.menu { position: absolute; right: 0; top: 42px; min-width: 160px; padding: 4px; background: var(--surface-2); border: 1px solid var(--border-2); border-radius: var(--r-md); box-shadow: var(--shadow); z-index: 20; }
.menu button { display: block; width: 100%; text-align: left; height: 34px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; color: var(--text); }
.menu button:hover { background: var(--surface-3); }
.screen { flex: 1; min-height: 0; }

/* Kart ve panel */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.panel-head { height: 52px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--border); }
.panel-head h2 { font-size: 14.5px; font-weight: 600; }
.panel-head .end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.panel-body { flex: 1; min-height: 0; overflow: auto; padding: 14px 16px; }
.panel-foot { flex: none; padding: 14px 16px; border-top: 1px solid var(--border); }
.section-label { font-size: 12px; font-weight: 600; color: var(--text-3); margin: 0 0 8px; }

/* ---------- Giriş ---------- */
.v-auth { display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(240, 166, 58, .08), transparent 70%), var(--bg); overflow: auto; }
.auth-card { width: 100%; max-width: 400px; padding: 32px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); }
.brand-lg { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1.1; }
.brand-lg .moon { width: 26px; height: 26px; box-shadow: inset -7px -4px 0 0 var(--accent); }
.auth-tag { color: var(--text-2); margin: 8px 0 24px; }
.auth-form { display: grid; gap: 14px; margin-top: 20px; }

/* ---------- Ana menü ---------- */
.s-menu { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; padding: 28px; max-width: 1120px; width: 100%; margin: 0 auto; overflow: hidden; }
.menu-main, .menu-side { display: flex; flex-direction: column; gap: 20px; min-height: 0; }
.hero-card { padding: 32px; background: radial-gradient(ellipse 80% 90% at 100% 0%, rgba(240, 166, 58, .10), transparent 60%), var(--surface); }
.hero-card h1 { font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1.1; }
.hero-card p { color: var(--text-2); margin: 10px 0 24px; max-width: 46ch; font-size: 15px; }
.join-card { padding: 24px 32px 28px; }
.join-card h2 { font-size: 17px; font-weight: 600; }
.join-card p { color: var(--text-2); margin: 4px 0 16px; }
.join-row { display: flex; gap: 10px; }
.code-input { width: 150px; height: 44px; text-align: center; text-transform: uppercase; letter-spacing: .32em; font-weight: 700; font-size: 18px; padding: 0 0 0 .32em; }
.list-card { display: flex; flex-direction: column; min-height: 0; }
.card-head { padding: 16px 20px 8px; }
.card-head h2 { font-size: 14.5px; font-weight: 600; }
.rows { list-style: none; margin: 0; padding: 0 8px 8px; overflow: hidden; }
.rows li.row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm); }
.rows li.row:hover { background: var(--surface-2); }
.rows .row-main { flex: 1; min-width: 0; }
.rows .row-title { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.rows .row-sub { color: var(--text-2); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rows .code { font-weight: 700; letter-spacing: .14em; color: var(--accent); }
.empty { color: var(--text-3); padding: 14px 12px; font-size: 13px; }

/* ---------- Lobi ---------- */
.s-lobby { display: grid; grid-template-columns: 252px minmax(0, 1fr) 520px; gap: var(--gap); padding: var(--gap); }
.s-lobby.in-game { grid-template-columns: 320px minmax(0, 1fr) 390px; }
.mobile-tabs { display: none; }

/* Oyuncular */
.players { list-style: none; margin: 0; padding: 6px 8px; overflow: auto; flex: 1; min-height: 0; }
.players li { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 8px; border-radius: var(--r-sm); }
.players li:hover { background: var(--surface-2); }
.players .name { flex: 1; min-width: 0; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.players .name.off { color: var(--text-3); }
.players .icon-btn { opacity: 0; }
.players li:hover .icon-btn, .players .icon-btn:focus-visible { opacity: 1; }
.start-box { display: grid; gap: 12px; }
.start-stat { display: flex; align-items: baseline; gap: 8px; }
.start-stat .big { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.start-stat .unit { color: var(--text-2); font-weight: 500; }
.start-sub { color: var(--text-3); font-size: 12.5px; margin-top: -10px; }
.issues { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.issues li { display: flex; gap: 8px; font-size: 12.5px; line-height: 1.45; padding: 8px 10px; border-radius: var(--r-sm); }
.issues li .ic { width: 15px; height: 15px; margin-top: 1px; }
.issues li.err { background: rgba(239, 91, 82, .08); color: #f39a93; }
.issues li.warn { background: rgba(240, 193, 75, .08); color: #e9cd85; }
.wait-note { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 13px; height: 44px; justify-content: center; background: var(--surface-2); border-radius: var(--r-sm); }

/* Sohbet */
.chat-log { list-style: none; margin: 0; padding: 10px 8px; flex: 1; min-height: 0; overflow-y: auto; }
.msg { display: grid; grid-template-columns: 42px auto minmax(0, 1fr); column-gap: 10px; align-items: baseline; padding: 3px 8px; border-radius: 6px; }
.msg:hover { background: rgba(255, 255, 255, .025); }
.msg time { font-size: 11.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.msg .who { font-weight: 600; font-size: 13.5px; color: var(--c, var(--text)); white-space: nowrap; max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
.msg .txt { font-size: 14px; color: var(--text); word-break: break-word; line-height: 1.5; }
.msg.sys { grid-template-columns: 42px minmax(0, 1fr); }
.msg.sys .txt { color: var(--text-3); font-size: 13px; }
.chat-empty { color: var(--text-3); text-align: center; padding: 40px 16px; font-size: 13px; }
.composer { flex: none; display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }
.composer input { flex: 1; height: 40px; }
.composer .btn { height: 40px; width: 44px; padding: 0; }
.as-select { height: 40px; max-width: 150px; }
.banner { margin: 12px 12px 0; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--border); display: flex; gap: 12px; align-items: flex-start; }
.banner .ic { color: var(--accent); width: 18px; height: 18px; margin-top: 1px; }
.banner strong { display: block; font-weight: 600; margin-bottom: 2px; }
.banner p { color: var(--text-2); font-size: 13px; }

/* Ayarlar */
.tabs { display: flex; gap: 2px; height: 52px; flex: none; align-items: flex-end; padding: 0 12px; border-bottom: 1px solid var(--border); }
.tabs button { height: 44px; padding: 0 10px; white-space: nowrap; border: 0; background: none; color: var(--text-2); font-weight: 500; font-size: 13.5px; border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; align-items: center; gap: 6px; }
.tabs button:hover { color: var(--text); }
.tabs button.on { color: var(--text); font-weight: 600; border-bottom-color: var(--accent); }
.tabs .lock { margin-left: auto; align-self: center; display: inline-flex; align-items: center; gap: 6px; color: var(--text-3); font-size: 12px; }
.tabs .lock .ic { width: 14px; height: 14px; }
.set-body { flex: 1; min-height: 0; overflow: auto; padding: 4px 16px 12px; }
.set-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.set-row:last-child { border-bottom: 0; }
.set-row.stack { grid-template-columns: 1fr; gap: 8px; }
.set-row .t { font-weight: 500; font-size: 13.5px; }
.set-row .d { color: var(--text-3); font-size: 12.5px; line-height: 1.4; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.set-row > div:first-child { min-width: 0; }
.set-row > .range { width: 240px; }
.set-row .head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.set-row select { width: 228px; height: 34px; }
.set-group { padding-top: 6px; }
.set-group + .set-group { margin-top: 6px; border-top: 1px solid var(--border); }
.set-row.dev-row { border-top: 1px solid var(--border-2); border-bottom: 0; margin-top: 2px; }
.dev-row .t { color: var(--tarafsiz); }
.subhead { display: flex; align-items: center; gap: 10px; padding: 12px 0 8px; }
.subhead > .seg-full { flex: 1; }
.subhead.tight { padding: 0 0 10px; }
.subhead .end { margin-left: auto; display: flex; gap: 12px; align-items: center; }
.desc { color: var(--text-3); font-size: 12.5px; line-height: 1.45; }

/* Rol çipleri */
.chip-groups { display: grid; gap: 8px; }
.chip-group .section-label { margin-bottom: 5px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  --t: var(--koylu); --ts: var(--koylu-soft);
  display: inline-flex; align-items: center; gap: 7px; height: 29px; padding: 0 10px;
  border-radius: var(--r-sm); border: 1px solid var(--border-2); background: transparent;
  color: var(--text-3); font-size: 13px; font-weight: 500; white-space: nowrap;
  transition: background .12s, border-color .12s, color .12s;
}
.chip::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--border-2); flex: none; transition: background .12s; }
.chip.on { background: var(--ts); border-color: color-mix(in srgb, var(--t) 45%, transparent); color: var(--text); }
.chip.on::before { background: var(--t); }
.chip:hover:not(:disabled) { border-color: var(--t); }
.chip:disabled { cursor: default; }
.chip.kurt { --t: var(--kurt); --ts: var(--kurt-soft); }
.chip.tarafsiz { --t: var(--tarafsiz); --ts: var(--tarafsiz-soft); }
.chip .flag { width: 14px; height: 14px; color: var(--warn); margin-right: -3px; }
span.chip { cursor: default; }

/* Sabit liste ve ağırlık ızgarası */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
.grid2 .item { display: flex; align-items: center; gap: 8px; height: 32px; min-width: 0; }
.grid2 .item .nm { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.grid2 .item .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--t, var(--koylu)); flex: none; }
.grid2 .item.kurt { --t: var(--kurt); }
.grid2 .item.tarafsiz { --t: var(--tarafsiz); }
.grid2 .item input { width: 64px; height: 28px; padding: 0 8px; text-align: right; font-variant-numeric: tabular-nums; font-size: 13px; }
.progress { display: flex; align-items: center; gap: 12px; padding: 12px 0 4px; }
.progress .bar { flex: 1; height: 6px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.progress .bar i { display: block; height: 100%; background: var(--accent); border-radius: 6px; }
.progress .bar.over i { background: var(--danger); }
.progress .val { font-weight: 600; font-variant-numeric: tabular-nums; }
.progress .val.ok { color: var(--ok); }
.trio { display: grid; gap: 4px; }
.trio .range { gap: 10px; }
.trio .k { width: 54px; color: var(--text-2); font-size: 13px; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); column-gap: 16px; }
.slot-grid .item { display: flex; align-items: center; justify-content: space-between; height: 36px; font-size: 13px; }
.info-box { display: flex; gap: 10px; padding: 10px 12px; border-radius: var(--r-md); background: rgba(167, 139, 240, .07); border: 1px solid rgba(167, 139, 240, .2); color: var(--text-2); font-size: 12.5px; line-height: 1.45; }
.info-box .ic { color: var(--tarafsiz); width: 16px; height: 16px; margin-top: 1px; }
.seed-row { display: flex; gap: 8px; }
.seed-row input { flex: 1; height: 34px; }
.bot-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ---------- Oyun ---------- */
.char-list { list-style: none; margin: 0; padding: 6px 8px; }
.char-list li { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 8px; border-radius: var(--r-sm); }
.char-list li.mine { background: var(--accent-soft); }
.char-list .num { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; flex: none; }
.char-list li.mine .num { background: var(--accent); color: var(--accent-ink); }
.char-list .lbl { flex: 1; font-weight: 500; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.char-list .own { color: var(--text-3); font-size: 12.5px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 0; margin: 0; }
.kv dd { padding-left: 16px !important; }
.kv dt, .kv dd { padding: 9px 0; border-bottom: 1px solid var(--border); margin: 0; font-size: 13px; }
.kv dt { color: var(--text-3); }
.kv dd { text-align: right; font-weight: 500; }
.kv dt:last-of-type, .kv dd:last-of-type { border-bottom: 0; }
.all-roles { width: 100%; border-collapse: collapse; font-size: 13px; }
.all-roles td { padding: 7px 4px; border-bottom: 1px solid var(--border); }
.all-roles td:last-child { text-align: right; }
.all-roles .own { color: var(--text-3); }

/* Rol kartı */
.role-cards { display: grid; gap: 12px; }
.role-card {
  --t: var(--koylu); --ts: var(--koylu-soft);
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--t) 30%, var(--border));
  background: radial-gradient(ellipse 90% 70% at 100% 0%, var(--ts), transparent 70%), var(--surface-2);
}
.role-card.kurt { --t: var(--kurt); --ts: var(--kurt-soft); }
.role-card.tarafsiz { --t: var(--tarafsiz); --ts: var(--tarafsiz-soft); }
.role-card .face { padding: 16px 18px 16px; }
.role-card .top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.role-card .who { color: var(--text-2); font-size: 12.5px; font-weight: 500; }
.role-card .rname { font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1.05; color: var(--text); margin: 10px 0 8px; }
.role-card .ability { font-size: 13.5px; line-height: 1.55; color: var(--text); }
.role-card .goal { display: flex; gap: 8px; margin-top: 10px; font-size: 12.5px; color: var(--text-2); }
.role-card .goal .ic { width: 14px; height: 14px; margin-top: 2px; color: var(--t); }
.role-card .extra { margin-top: 10px; padding: 9px 11px; border-radius: var(--r-sm); background: rgba(0, 0, 0, .2); font-size: 13px; }
.role-card .extra strong { color: var(--text); font-weight: 600; }
.role-card .cover {
  position: absolute; inset: 0; width: 100%; border: 0; border-radius: 0; display: none;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: var(--surface-2); color: var(--text-2);
}
.role-card .cover:hover { background: var(--surface-3); color: var(--text); }
.role-card .cover .moon { width: 28px; height: 28px; box-shadow: inset -8px -4px 0 0 var(--accent); margin-bottom: 4px; }
.role-card .cover strong { font-size: 15px; color: var(--text); font-weight: 600; }
.role-card.hidden { border-color: var(--border-2); }
.role-card.hidden .face { visibility: hidden; }
.role-card.hidden .cover { display: flex; }
@media (prefers-reduced-motion: no-preference) {
  .role-card.revealed .face { animation: reveal .3s ease-out; }
  @keyframes reveal { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
}

/* ---------- Katmanlar ---------- */
.conn { position: fixed; top: 10px; left: 50%; transform: translateX(-50%); z-index: 50; display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border-2); box-shadow: var(--shadow); font-size: 13px; }
.spinner { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--border-2); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.toasts { position: fixed; top: 68px; right: 16px; z-index: 60; display: grid; gap: 8px; width: min(380px, calc(100vw - 32px)); }
.toast { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--border-2); box-shadow: var(--shadow); font-size: 13.5px; }
.toast .ic { width: 18px; height: 18px; color: var(--danger); }
.toast.ok .ic { color: var(--ok); }
.tip { position: fixed; z-index: 70; max-width: 280px; padding: 8px 10px; border-radius: var(--r-sm); background: #0b0e13; border: 1px solid var(--border-2); color: var(--text); font-size: 12.5px; line-height: 1.45; box-shadow: var(--shadow); pointer-events: none; }
.tip strong { display: block; margin-bottom: 2px; }
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: rgba(5, 7, 10, .6); backdrop-filter: blur(2px); padding: 16px; }
.modal-card { width: min(420px, 100%); padding: 22px; background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.modal-card h2 { font-size: 16px; font-weight: 600; }
.modal-card p { color: var(--text-2); margin: 8px 0 20px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; }


/* =========================================================
   Oyun aşamaları
   ========================================================= */
.phase-pill { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 999px; font-weight: 600; font-size: 13.5px; border: 1px solid var(--border-2); background: var(--surface-2); white-space: nowrap; }
.phase-pill .ic { width: 16px; height: 16px; }
.phase-pill.gece { background: #1a2034; border-color: #2c3656; color: #c9d3f5; }
.phase-pill.gece .ic { color: #9fb2f0; }
.phase-pill.gun { background: #2a2414; border-color: #4a3d1c; color: #f5e2b8; }
.phase-pill.gun .ic { color: var(--accent); }
.phase-pill.end .ic { color: var(--ok); }
.phase-pill .clock { font-variant-numeric: tabular-nums; font-weight: 700; padding-left: 8px; border-left: 1px solid rgba(255, 255, 255, .12); min-width: 44px; }
.phase-pill .clock.low { color: var(--danger); }
.top-actions .btn .ic { width: 14px; height: 14px; }

/* sohbet kanalları */
.ch-tabs { display: flex; gap: 4px; height: 100%; align-items: flex-end; }
.ch-tabs button { height: 40px; padding: 0 12px; border: 0; background: none; color: var(--text-2); font-weight: 500; font-size: 13.5px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.ch-tabs button:hover { color: var(--text); }
.ch-tabs button.on { color: var(--text); font-weight: 600; border-bottom-color: var(--accent); }
.ch-tabs button.ch-kurt.on { border-bottom-color: var(--kurt); }
.ch-tabs button.ch-olu.on { border-bottom-color: var(--text-3); }
#chatHead .end { margin-left: auto; }
.banner.night .ic { color: #9fb2f0; }
.banner.night { background: #171d2e; border-color: #26304b; }
.banner.day { background: #221e14; border-color: #3a321d; }
.banner.end .ic { color: var(--ok); }
.composer input:disabled { background: var(--surface-2); border-color: var(--border); color: var(--text-3); }
.composer input:disabled::placeholder { color: var(--text-3); }

/* oyuncu listesi (oyun) */
.panel-body.flush { padding: 0; }
.char-list li { gap: 8px; }
.char-list .lbl { display: flex; align-items: baseline; gap: 6px; }
.char-list .own { font-size: 12px; }
.char-list li.dead .lbl, .char-list li.dead .num { opacity: .45; }
.char-list li.dead .lbl { text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, .35); }
.char-list .badge { height: 19px; font-size: 11px; padding: 0 7px; }
.pts { font-size: 12px; font-weight: 700; color: var(--ok); font-variant-numeric: tabular-nums; }
.players .pts { color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 1px 7px; }
.progress-foot { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--text-2); }
.progress-foot .bar { flex: 1; height: 5px; border-radius: 5px; background: var(--surface-3); overflow: hidden; }
.progress-foot .bar i { display: block; height: 100%; background: var(--accent); }
.progress-foot strong { color: var(--text); font-variant-numeric: tabular-nums; }
.pts-big { font-size: 15px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.pts-big.won { color: var(--ok); }

/* sağ panel sekmesi uyarı noktası */
.dot-new { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: inline-block; margin-left: 2px; align-self: flex-start; margin-top: 12px; }
.empty-state { color: var(--text-3); text-align: center; padding: 32px 12px; font-size: 13px; }
.row-end { display: flex; justify-content: flex-end; margin: -4px 0 8px; }

/* eylem kartları */
.ac-list { display: grid; gap: 8px; }
.ac { border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface-2); }
.ac.open { border-color: var(--border-2); padding-bottom: 12px; }
.ac.collapsed { cursor: default; }
.ac.collapsed[data-open] { cursor: pointer; }
.ac.collapsed[data-open]:hover { border-color: var(--border-2); }
.ac.dead { opacity: .5; }
.ac-head { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; font-size: 13.5px; min-width: 0; }
.ac-head strong { font-weight: 600; white-space: nowrap; }
.ac-head .muted { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-status { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--text-3); white-space: nowrap; }
.ac-status .ok, .ok { color: var(--ok); display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.ac-status .ok .ic, .ok .ic { width: 14px; height: 14px; }
.wait { color: var(--text-3); }
.tdot { width: 8px; height: 8px; border-radius: 50%; background: var(--koylu); flex: none; }
.tdot.kurt { background: var(--kurt); }
.tdot.tarafsiz { background: var(--tarafsiz); }
.ac-sum { padding: 0 12px 10px 28px; margin-top: -6px; color: var(--text-2); font-size: 13px; }
.ac-opts { margin: 0 12px 8px; }
.ac-opts .count { margin-left: 5px; }
.ac-one { padding: 0 12px 6px; font-weight: 600; font-size: 13px; }
.ac-hint { padding: 0 12px; margin-bottom: 8px; color: var(--text-3); font-size: 12.5px; line-height: 1.45; }
.ac-hint.warn { color: #e9cd85; }
.tchips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px; }
.tchip { position: relative; height: 30px; padding: 0 11px; border-radius: var(--r-sm); border: 1px solid var(--border-2); background: var(--surface); color: var(--text); font-size: 13px; font-weight: 500; }
.tchip:hover { border-color: #4a5570; }
.tchip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 600; }
.tchip.pass { color: var(--text-2); }
.tchip.pass.on { color: var(--text); background: var(--surface-3); border-color: var(--text-3); }
.tchip .cnt { position: absolute; top: -7px; right: -7px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--kurt); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.ac-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 12px 0; }
.guess { margin: 12px 12px 0; padding-top: 10px; border-top: 1px dashed var(--border-2); display: grid; gap: 6px; }
.guess-row { display: flex; gap: 6px; }
.guess-row select { flex: 1; height: 30px; font-size: 13px; padding-left: 8px; }
.ac .btn-secondary.btn-sm { margin: 12px 12px 0; }
.results { margin-bottom: 12px; padding: 10px 12px; border-radius: var(--r-md); background: var(--accent-soft); border: 1px solid rgba(240, 166, 58, .25); display: grid; gap: 4px; font-size: 13px; }

/* notlar */
.notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.notes li { display: grid; grid-template-columns: 58px 1fr; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--border); font-size: 13px; line-height: 1.45; }
.notes .when { color: var(--text-3); font-size: 12px; font-variant-numeric: tabular-nums; }

/* sonuç */
.result-hero { padding: 18px; border-radius: var(--r-lg); margin-bottom: 14px; background: var(--surface-2); border: 1px solid var(--border-2); }
.result-hero h2 { font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1.1; margin-top: 4px; }
.result-hero.koylu { background: radial-gradient(ellipse 90% 90% at 100% 0%, var(--koylu-soft), transparent 70%), var(--surface-2); border-color: color-mix(in srgb, var(--koylu) 35%, var(--border)); }
.result-hero.kurt { background: radial-gradient(ellipse 90% 90% at 100% 0%, var(--kurt-soft), transparent 70%), var(--surface-2); border-color: color-mix(in srgb, var(--kurt) 35%, var(--border)); }
.result-hero.tarafsiz, .result-hero.asiklar { background: radial-gradient(ellipse 90% 90% at 100% 0%, var(--tarafsiz-soft), transparent 70%), var(--surface-2); }
.score-list { list-style: none; margin: 0; padding: 0; }
.score-list li { display: flex; align-items: center; gap: 10px; height: 38px; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.score-list .nm { flex: 1; font-weight: 500; }
.score-list strong, .score-list .tot { font-variant-numeric: tabular-nums; width: 72px; text-align: right; }
.score-list strong { color: var(--text-3); }
.score-list strong.won { color: var(--ok); }
.score-list .tot { font-weight: 700; width: 92px; }
.score-head { display: flex; gap: 10px; font-size: 12px; font-weight: 600; color: var(--text-3); padding: 0 0 6px; border-bottom: 1px solid var(--border); }
.score-head span:first-child { flex: 1; padding-left: 36px; }
.score-head span:nth-child(2) { width: 72px; text-align: right; }
.score-head span:nth-child(3) { width: 92px; text-align: right; }

/* geliştirici */
.all-roles tr.dead td:first-child { opacity: .5; text-decoration: line-through; }
.panel-body.dev-all { display: flex; flex-direction: column; }
.dev-all .all-roles { flex: none; }
.dev-all .all-roles td { padding: 5px 4px; }
.dev-all .devlog { flex: 1 1 0; min-height: 60px; max-height: none; }
.devlog { margin: 0; padding: 10px 12px; border-radius: var(--r-sm); background: var(--bg); border: 1px solid var(--border); font: 12px/1.55 ui-monospace, 'Cascadia Mono', Consolas, monospace; color: var(--text-2); white-space: pre-wrap; max-height: 320px; overflow: auto; }
.role-card.is-dead { opacity: .7; }

/* Küçük çipler (oyun ekranındaki rol havuzu) */
.chips.sm { gap: 5px; }
.chips.sm .chip { height: 25px; padding: 0 8px; font-size: 12.5px; gap: 6px; }
.chips.sm .chip::before { width: 6px; height: 6px; }

/* ---------- Kısa ekranlar (dizüstü tarayıcıları) ---------- */
@media (max-height: 820px) and (min-width: 901px) {
  :root { --topbar: 50px; --gap: 10px; }
  .panel-head, .tabs { height: 46px; }
  .tabs button { height: 40px; }
  .set-row { padding: 8px 0; }
  .set-body { padding-bottom: 8px; }
  .subhead { padding: 10px 0 7px; }
  .chip { height: 27px; font-size: 12.5px; }
  .chip-groups { gap: 6px; }
  .grid2 .item { height: 29px; }
  .slot-grid .item { height: 32px; }
  .progress { padding: 8px 0 2px; }
  .players li { height: 40px; }
  .char-list li { height: 34px; }
  .char-list .num { width: 24px; height: 24px; }
  .panel-foot { padding: 12px 14px; }
  .start-stat .big { font-size: 22px; }
  .btn-lg { height: 40px; }
  .role-card .face { padding: 13px 16px; }
  .role-card .rname { font-size: 26px; margin: 6px 0 6px; }
  .role-card .ability { font-size: 13px; line-height: 1.5; }
  .role-cards { gap: 10px; }
  .banner { padding: 10px 12px; }
  .s-menu { padding: 20px 28px; gap: 16px; }
  .menu-main, .menu-side { gap: 16px; }
  .hero-card { padding: 24px 28px; }
  .hero-card h1 { font-size: 28px; }
  .hero-card p { margin: 8px 0 18px; }
  .join-card { padding: 20px 28px 22px; }
  .rows li.row:nth-child(n+4) { display: none; }
}

/* ---------- Dar ekranlar ---------- */
@media (max-width: 1280px) {
  .s-lobby { grid-template-columns: 232px minmax(0, 1fr) 500px; }
  .s-lobby.in-game { grid-template-columns: 310px minmax(0, 1fr) 370px; }
}
@media (max-width: 1080px) {
  .s-lobby { grid-template-columns: 210px minmax(0, 1fr) 480px; }
  .ctx-item.opt, .ctx-sep.opt { display: none; }
}
@media (max-width: 900px) {
  body { overflow: auto; }
  .v-app { height: auto; min-height: 100%; }
  .topbar { gap: 10px; padding: 0 10px 0 14px; }
  .brand { font-size: 0; gap: 0; }
  .brand .moon { font-size: 14px; }
  .s-menu { grid-template-columns: 1fr; padding: 16px; overflow: visible; }
  .hero-card, .join-card { padding: 22px; }
  .hero-card h1 { font-size: 26px; }
  .s-lobby, .s-lobby.in-game { display: flex; flex-direction: column; padding: 0 0 12px; gap: 0; }
  .mobile-tabs { display: flex; position: sticky; top: 0; z-index: 5; background: var(--surface); border-bottom: 1px solid var(--border); }
  .mobile-tabs button { flex: 1; height: 44px; border: 0; background: none; color: var(--text-2); font-weight: 500; border-bottom: 2px solid transparent; }
  .mobile-tabs button.on { color: var(--text); border-bottom-color: var(--accent); }
  .panel { display: none; border-radius: 0; border-left: 0; border-right: 0; height: calc(100dvh - var(--topbar) - 44px); }
  .panel.show { display: flex; }
  .ctx-item, .ctx-sep { display: none; }
  .grid2 { grid-template-columns: 1fr; }
  .top-actions .btn { padding: 0 10px; }
  .top-ctx { flex: 1; min-width: 0; }
  .top-ctx .badge, .code-chip .lbl, #userName, .user-btn > .ic { display: none; }
  .code-chip { padding: 0 4px 0 10px; height: 32px; }
  .top-right { margin-left: 0; gap: 4px; }
  .set-row .d { white-space: normal; }
  .set-row { grid-template-columns: 1fr; gap: 8px; }
  .set-row > .range { width: 100%; }
  .set-row > .seg, .set-row > .switch { justify-self: start; }
  .set-row select { width: 100%; }
  .menu-side { order: 2; }
  .v-app:has(#s-lobby:not([hidden])) { --topbar: 100px; }
  .v-app:has(#s-lobby:not([hidden])) .topbar { flex-wrap: wrap; height: auto; min-height: 56px; padding: 8px 12px; row-gap: 8px; }
  .v-app:has(#s-lobby:not([hidden])) .top-ctx { order: 3; flex-basis: 100%; }
  .top-ctx .phase-pill { height: 30px; }
  .top-actions .bt { display: none; }
  .ch-tabs button { padding: 0 10px; }
}

/* Oyun: rol havuzu listesi */
.pool-h { display: flex; gap: 6px; margin: 10px 0 2px; }
.pool-h span { color: var(--text-3); font-weight: 500; }
.pool-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }
.pool-list li { display: flex; align-items: center; gap: 7px; height: 21px; font-size: 12.5px; min-width: 0; }
.pool-list li span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pool-list .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--koylu); flex: none; }
.pool-list li.kurt .dot { background: var(--kurt); }
.pool-list li.tarafsiz .dot { background: var(--tarafsiz); }

/* ================= Faz 4: oyun düzeni ================= */
/* Oyunda: solda oyuncular/akış, ortada oyun, sağda küçük sohbet */
.s-lobby.in-game { grid-template-columns: 290px minmax(0, 1fr) 340px; }
.s-lobby.in-game #rightPane { order: 2; }
.s-lobby.in-game .panel.chat { order: 3; }
.s-lobby.in-game #leftPane { order: 1; }
@media (max-width: 1280px) { .s-lobby.in-game { grid-template-columns: 260px minmax(0, 1fr) 310px; } }
@media (max-width: 1080px) { .s-lobby.in-game { grid-template-columns: 230px minmax(0, 1fr) 280px; } }

/* sohbet (dar) */
.s-lobby.in-game .msg { grid-template-columns: 36px auto minmax(0, 1fr); column-gap: 8px; padding: 3px 6px; }
.s-lobby.in-game .chat .panel-head { padding: 0 8px 0 4px; }
.s-lobby.in-game .ch-tabs button { padding: 0 9px; }
#chatBanner:empty { display: none; }

/* aşama başlığı */
.phase-head { flex: none; display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.phase-head.gece { background: linear-gradient(180deg, #161c2d, var(--surface)); }
.phase-head.gun, .phase-head.oylama { background: linear-gradient(180deg, #241f13, var(--surface)); }
.ph-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--surface-3); }
.ph-ic .ic { width: 22px; height: 22px; }
.phase-head.gece .ph-ic { background: #1f2842; color: #a9b9f2; }
.phase-head.gun .ph-ic, .phase-head.oylama .ph-ic { background: #3a301a; color: var(--accent); }
.phase-head.bitti .ph-ic { color: var(--ok); }
.ph-txt { min-width: 0; flex: 1; }
.ph-title { font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1.1; display: flex; align-items: baseline; gap: 10px; }
.ph-step { font-family: var(--sans, inherit); font-size: 13px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.phase-head.oylama .ph-step { background: rgba(239, 91, 82, .14); color: #f19a92; }
.ph-sub { color: var(--text-2); font-size: 13px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-clock { display: flex; flex-direction: column; align-items: flex-end; flex: none; }
.ph-clock span { font-size: 38px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.5px; }
.ph-clock span.low { color: var(--danger); }
.ph-clock small { font-size: 11.5px; color: var(--text-3); margin-top: 3px; }
.ph-clock.paused span { color: var(--text-3); }
.dev-ctl { display: flex; gap: 4px; flex: none; }
.dev-ctl .btn { width: 34px; padding: 0; justify-content: center; }
.viewas { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 18px; font-size: 13px; background: rgba(167, 139, 240, .1); border-bottom: 1px solid rgba(167, 139, 240, .25); color: var(--text-2); }
.viewas .ic { width: 16px; height: 16px; color: var(--tarafsiz); }
.viewas strong { color: var(--text); }
.viewas .link-btn { margin-left: auto; color: var(--tarafsiz); font-weight: 600; }
#rightPane .tabs { padding: 0 14px; }
#rightPane .tabs .dot-new, #leftPane .tabs .dot-new { margin-top: 0; align-self: center; }

/* rol simgesi */
.role-icon { --t: var(--koylu); display: grid; place-items: center; flex: none; border-radius: 50%; color: var(--t); background: color-mix(in srgb, var(--t) 16%, var(--surface-2)); border: 1px solid color-mix(in srgb, var(--t) 40%, transparent); overflow: hidden; }
.role-icon.kurt { --t: var(--kurt); }
.role-icon.tarafsiz { --t: var(--tarafsiz); }
.role-icon img { width: 100%; height: 100%; object-fit: cover; }
.role-icon.xs { width: 24px; height: 24px; }
.role-icon.xs .ic { width: 13px; height: 13px; }
.role-icon.xl { width: 92px; height: 92px; border-width: 2px; box-shadow: 0 0 0 6px color-mix(in srgb, var(--t) 8%, transparent); }
.role-icon.xl .ic { width: 42px; height: 42px; stroke-width: 1.6; }

/* kişi simgesi (rehber gibi) */
.person { --c: #6b7280; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: end center; overflow: hidden; flex: none; background: color-mix(in srgb, var(--c) 20%, var(--surface-3)); color: color-mix(in srgb, var(--c) 75%, #fff); }
.person .ic { width: 38px; height: 38px; margin-bottom: -6px; fill: currentColor; stroke: none; opacity: .9; }
.person.sm { width: 26px; height: 26px; }
.person.sm .ic { width: 22px; height: 22px; margin-bottom: -4px; }
.person.pass { place-items: center; --c: #8a93a3; }
.person.pass .ic { width: 20px; height: 20px; margin: 0; fill: none; stroke: currentColor; stroke-width: 2.4; }
.char-list li.dead .person { filter: grayscale(1); opacity: .45; }
.char-list li.viewable { cursor: pointer; }
.char-list li.viewable:hover { background: var(--surface-2); }
.char-list .view-ic { color: var(--text-3); display: grid; }
.char-list .view-ic .ic { width: 15px; height: 15px; }

/* hedef / oy kartları */
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; padding: 2px 12px 0; }
.tcard { position: relative; display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 12px 6px 10px; border-radius: var(--r-md); border: 1px solid var(--border-2); background: var(--surface); color: var(--text); min-width: 0; transition: border-color .12s, background .12s, transform .12s; }
.tcard:hover { border-color: #4a5570; background: var(--surface-3); }
.tcard.on { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent) inset; }
.tcard.on .person { box-shadow: 0 0 0 2px var(--accent); }
.tcard .tname { font-size: 13px; font-weight: 600; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tcard.on .tname { color: var(--accent); }
.tcard .cnt { position: absolute; top: 6px; right: 6px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--kurt); color: #fff; font-size: 11.5px; font-weight: 700; display: grid; place-items: center; }
.tcard.pass .tname { color: var(--text-2); }
.ac.locked { opacity: .65; }
.ac-head .role-icon { margin-right: 2px; }
.ac-sum { padding-left: 44px; }

/* tartışma aşaması */
.stage-note { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--border); margin-bottom: 12px; }
.stage-note > .ic { width: 22px; height: 22px; color: var(--accent); flex: none; margin-top: 2px; }
.stage-note p { color: var(--text-2); font-size: 13px; margin-top: 3px; line-height: 1.5; }

/* büyük rol kartı */
.role-body { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.card-switch { width: 100%; max-width: 560px; }
.role-card.big { width: 100%; max-width: 560px; flex: none; background: radial-gradient(ellipse 80% 55% at 50% 0%, var(--ts), transparent 70%), var(--surface-2); }
.role-card.big .face { padding: 14px 22px 18px; }
.rc-top { display: flex; justify-content: space-between; align-items: center; }
.rc-hero { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 4px 0 12px; text-align: center; }
.role-card.big .rname { font-family: var(--display); font-weight: 800; font-size: 32px; line-height: 1.05; margin: 4px 0 0; color: var(--text); }
.rc-sum { font-size: 14px; line-height: 1.55; color: var(--text); text-align: center; margin: 0 0 12px; }
.rc-rules { list-style: none; margin: 0; padding: 12px 0 0; border-top: 1px solid var(--border-2); display: grid; gap: 7px; }
.rc-rules li { position: relative; padding-left: 16px; font-size: 13px; line-height: 1.5; color: var(--text-2); }
.rc-rules li::before { content: ''; position: absolute; left: 2px; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--t); }
.rc-goal { display: flex; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border-2); font-size: 13px; color: var(--text); }
.rc-goal .ic { width: 15px; height: 15px; margin-top: 2px; color: var(--t); flex: none; }
.role-card.big .cover { min-height: 320px; }

/* akış */
.flow-day + .flow-day { margin-top: 14px; }
.flow-day h3 { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); margin: 0 0 6px; }
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.flow li { display: flex; gap: 8px; align-items: baseline; font-size: 13px; line-height: 1.45; padding: 6px 8px; border-radius: var(--r-sm); background: var(--surface-2); }
.flow .ph { flex: none; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-3); width: 52px; }
.flow .ph.gece { color: #9fb2f0; }
.flow .ph.gun, .flow .ph.oylama { color: var(--accent); }
.flow li.death { box-shadow: inset 2px 0 0 var(--kurt); }
.flow li.hang { box-shadow: inset 2px 0 0 var(--accent); }
.flow li.win { box-shadow: inset 2px 0 0 var(--ok); }

/* notlar akışı */
.feed section + section { margin-top: 16px; }
.feed h3 { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); margin: 0 0 6px; }
.feed ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.feed li { display: flex; gap: 10px; padding: 9px 12px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--border); }
.feed li.sonuc { border-color: rgba(240, 166, 58, .3); background: var(--accent-soft); }
.feed .fi { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); }
.feed li.sonuc .fi { background: rgba(240, 166, 58, .2); color: var(--accent); }
.feed .fi .ic { width: 13px; height: 13px; }
.feed .fwho { display: block; font-size: 11.5px; color: var(--text-3); font-weight: 600; }
.feed .ftxt { display: block; font-size: 13.5px; line-height: 1.45; }
.all-roles tr.viewable { cursor: pointer; }
.all-roles tr.viewable:hover td { background: var(--surface-2); }

/* ayarlar: süreler */
.dur-row { grid-template-columns: minmax(0, 1fr) 300px; }
.dur-grid { display: grid; gap: 2px; }
.dur-grid label { display: flex; align-items: center; gap: 10px; }
.dur-grid label > span { width: 62px; font-size: 12.5px; color: var(--text-2); flex: none; }
.dur-grid .range { gap: 10px; }

@media (max-height: 820px) and (min-width: 901px) {
  .phase-head { padding: 10px 16px; }
  .ph-ic { width: 38px; height: 38px; }
  .ph-title { font-size: 22px; }
  .ph-clock span { font-size: 32px; }
  .role-icon.xl { width: 72px; height: 72px; }
  .role-icon.xl .ic { width: 34px; height: 34px; }
  .role-card.big .rname { font-size: 27px; }
  .tcard { padding: 9px 6px 8px; gap: 5px; }
  .person { width: 38px; height: 38px; }
  .person .ic { width: 32px; height: 32px; }
}
@media (max-width: 900px) {
  .phase-head { padding: 10px 12px; gap: 10px; }
  .ph-ic { display: none; }
  .ph-title { font-size: 21px; }
  .ph-sub { white-space: normal; }
  .ph-clock span { font-size: 28px; }
  .dur-row { grid-template-columns: 1fr; }
  .tgrid { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); }
}
.s-lobby.in-game .mobile-tabs [data-p=right] { order: -1; }
/* sol sekmeler sığsın */
#leftPane .tabs { padding: 0 8px; gap: 0; }
#leftPane .tabs button { padding: 0 8px; }
.panel { overflow-x: hidden; }
/* kompakt kişi kartları (çok hedef / çift karakter) */
.tgrid.compact { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 6px; }
.tgrid.compact .tcard { flex-direction: row; justify-content: flex-start; gap: 8px; padding: 5px 8px; }
.tgrid.compact .person { width: 30px; height: 30px; }
.tgrid.compact .person .ic { width: 25px; height: 25px; margin-bottom: -4px; }
.tgrid.compact .person.pass .ic { width: 16px; height: 16px; margin: 0; }
.tgrid.compact .tcard .cnt { top: 50%; transform: translateY(-50%); right: 6px; }
/* büyük rol kartı: geniş ekranda iki sütun */
.role-card.big { max-width: 820px; }
.card-switch { max-width: 820px; }
.rc-left .rc-sum { margin-bottom: 0; }
@media (min-width: 1200px) {
  .rc-grid { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 22px; align-items: start; }
  .rc-left { padding-top: 6px; }
  .rc-right .rc-rules { border-top: 0; padding-top: 4px; }
  .rc-right { border-left: 1px solid var(--border-2); padding-left: 20px; }
}
@media (max-width: 1199px) { .rc-left .rc-sum { margin-bottom: 12px; } }
.s-lobby.in-game .chat .panel-head:has(h2) { padding: 0 16px; }
@media (max-height: 820px) and (min-width: 901px) {
  .role-body { gap: 8px; padding-top: 10px; }
  .role-card.big .face { padding: 10px 18px 12px; }
  .rc-hero { margin: 0 0 8px; gap: 6px; }
  .rc-rules { gap: 4px; }
  .rc-rules li { font-size: 12.5px; line-height: 1.45; }
  .rc-goal { margin-top: 8px; padding-top: 8px; font-size: 12.5px; }
  .role-card.big .extra { margin-top: 6px; padding: 7px 10px; font-size: 12.5px; }
  .rc-sum { font-size: 13.5px; }
  .card-switch .seg button, .card-switch button { height: 26px; }
  .pool-list li { height: 20px; }
  .pool-h { margin: 6px 0 2px; }
}

/* ================= Faz 5 ================= */
.role-card.revealed .face { animation: none !important; }
/* yüklenen simgeler maske olarak, takım rengiyle */
.glyph { display: block; width: 64%; height: 64%; background: currentColor; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; }
.role-icon.locked { --t: #8a93a3; }
.person.custom { place-items: center; }
.person.custom .glyph { width: 70%; height: 70%; }

/* iki karakter yan yana */
.ac-cols { display: grid; gap: 10px; align-items: start; }
.ac-cols.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ac-cols .ac { padding-bottom: 12px; }
.ac.is-ready { border-color: color-mix(in srgb, var(--ok) 35%, var(--border-2)); }
.ac-done { margin-right: auto; align-self: center; font-size: 12.5px; color: var(--text-2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-sum { padding: 0 12px; margin: 0; }
.hidden-msg { display: flex; gap: 10px; align-items: flex-start; margin: 4px 12px 0; padding: 12px; border-radius: var(--r-sm); background: var(--bg); border: 1px dashed var(--border-2); color: var(--text-2); font-size: 13px; line-height: 1.45; }
.hidden-msg .ic { width: 16px; height: 16px; flex: none; margin-top: 1px; color: var(--text-3); }
.ac-cols.two .tgrid.compact { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
.guess-used { margin-top: 10px; }

/* rol kartları: iki sütun */
.role-body { display: block; }
.cards { display: grid; gap: 12px; align-items: start; margin: 0 auto; }
.cards.one { max-width: 820px; }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards .role-card.big { max-width: none; }
.role-card.big:not(.solo) .rc-grid { display: block; }
.role-card.big:not(.solo) .rc-right { border-left: 0; padding-left: 0; }
.role-card.big:not(.solo) .rc-right .rc-rules { border-top: 1px solid var(--border-2); padding-top: 10px; }
.role-card.big:not(.solo) .rc-left .rc-sum { margin-bottom: 10px; }
.role-card.big:not(.solo) .role-icon.xl { width: 68px; height: 68px; }
.role-card.big:not(.solo) .role-icon.xl .ic { width: 32px; height: 32px; }
.role-card.big:not(.solo) .rname { font-size: 26px; }
.role-card.hidden-seq { --t: #8a93a3; --ts: transparent; border-style: dashed; }
.role-card.hidden-seq .rname { color: var(--text-2); }
.role-card.hidden .cover { min-height: 0; }
.cards.two .role-card.hidden { min-height: 260px; }

/* kurt arkadaşları */
.extra .mates-h { font-size: 12px; color: var(--text-2); margin-bottom: 8px; }
.mates { display: flex; flex-wrap: wrap; gap: 8px; }
.mate { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px 5px 5px; border-radius: 999px; background: var(--surface-3); }
.mate .person { width: 30px; height: 30px; }
.mate .person .ic { width: 25px; height: 25px; margin-bottom: -4px; }
.mate .tname { font-weight: 600; font-size: 13px; }
.mate.dead { opacity: .5; }
.mate .own { color: var(--text-3); font-size: 12px; }

/* notlar: karakter başına sütun */
.notes-cols { display: grid; gap: 12px; align-items: start; }
.notes-cols.one { max-width: 820px; }
.notes-cols.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.note-col { min-width: 0; }
.note-head { display: flex; align-items: center; gap: 8px; height: 34px; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.note-head .muted { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed li .ftxt { align-self: center; }
.empty-state.sm { padding: 18px 8px; }

/* sohbette tur etiketi */
.msg time.rnd { font-size: 10.5px; font-weight: 600; letter-spacing: .02em; color: var(--text-3); white-space: nowrap; }
.s-lobby.in-game .msg { grid-template-columns: 50px auto minmax(0, 1fr); }

@media (max-width: 1100px) {
  .cards.two, .notes-cols.two, .ac-cols.two { grid-template-columns: 1fr; }
}
@media (max-height: 820px) and (min-width: 901px) {
  .role-card.big:not(.solo) .role-icon.xl { width: 54px; height: 54px; box-shadow: none; }
  .role-card.big:not(.solo) .role-icon.xl .ic { width: 26px; height: 26px; }
  .role-card.big:not(.solo) .rname { font-size: 23px; }
  .role-card.big:not(.solo) .face { padding: 10px 14px 12px; }
  .role-card.big:not(.solo) .rc-sum { font-size: 13px; }
}

/* ================= Faz 6 ================= */
/* eylem/oylama: sütunlar panel boyunca uzar, düğmeler sütunun altında ortada */
.panel-body.act-body { display: flex; flex-direction: column; gap: 10px; }
.act-body > .info-box, .act-body > .desc { flex: none; margin: 0; }
.act-body > .ac-cols { flex: 1 0 auto; align-items: stretch; }
.ac-cols .ac { display: flex; flex-direction: column; min-height: 100%; }
.ac-cols .ac.open { padding-bottom: 14px; }
.ac-foot { margin-top: auto; padding: 14px 12px 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ac-state { margin: 0; font-size: 12.5px; color: var(--text-2); text-align: center; line-height: 1.45; }
.ac-state strong { color: var(--text); font-weight: 600; }
.warn-t { color: #e9cd85; }
.ac-foot .ac-actions { padding: 0; justify-content: center; gap: 10px; }
.ac-foot .btn { min-width: 128px; height: 40px; }
.ac-foot .btn-secondary.on { border-color: var(--text-3); }
.ac-confirmed { display: flex; gap: 8px; align-items: center; margin: 4px 12px 0; padding: 12px; border-radius: var(--r-sm); background: rgba(95, 196, 140, .08); border: 1px solid rgba(95, 196, 140, .25); font-size: 13px; }
.ac-confirmed .ic { width: 16px; height: 16px; color: var(--ok); flex: none; }

/* kişi kutucukları: üstte simge, altta ortalı isim, ızgara */
.tgrid, .tgrid.compact, .ac-cols.two .tgrid.compact { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; padding: 4px 12px 0; }
.tcard, .tgrid.compact .tcard { flex-direction: column; justify-content: flex-start; align-items: center; gap: 8px; min-height: 112px; padding: 14px 6px 12px; }
.tcard .person, .tgrid.compact .person { width: 52px; height: 52px; }
.tcard .person .ic, .tgrid.compact .person .ic { width: 44px; height: 44px; margin-bottom: -7px; }
.tcard .tname { white-space: normal; overflow: visible; text-overflow: clip; text-align: center; overflow-wrap: anywhere; line-height: 1.25; font-size: 13px; }
.tcard .cnt, .tgrid.compact .tcard .cnt { top: 6px; right: 6px; transform: none; }
@media (max-height: 820px) and (min-width: 901px) {
  .tcard, .tgrid.compact .tcard { min-height: 96px; padding: 10px 6px 9px; gap: 6px; }
  .tcard .person, .tgrid.compact .person { width: 44px; height: 44px; }
  .tcard .person .ic, .tgrid.compact .person .ic { width: 37px; height: 37px; }
  .tgrid { grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); }
}

/* tartışma: olaylar */
.events { margin-bottom: 12px; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--border); }
.events .section-label + .ev-list, .events .section-label + .ev-empty { margin-top: 6px; }
.events .ev-list + .section-label { margin-top: 12px; }
.ev-empty { margin: 0; color: var(--text-3); font-size: 13px; }
.ev-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ev-list li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; line-height: 1.4; }
.ev-ic { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--surface-3); color: var(--text-2); }
.ev-ic .ic { width: 14px; height: 14px; }
.ev-list li.death .ev-ic { background: var(--kurt-soft); color: var(--kurt); }
.ev-list li.hang .ev-ic { background: var(--accent-soft); color: var(--accent); }
.ev-list li.win .ev-ic { background: var(--koylu-soft); color: var(--koylu); }

/* olay kutusu (ekranın ortası) */
.popup { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(6, 8, 12, .62); backdrop-filter: blur(2px); }
.popup[hidden] { display: none; }
.pop-card { width: min(720px, 100%); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border-2); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
@media (prefers-reduced-motion: no-preference) { .pop-card { animation: popIn .22s ease-out; } }
@keyframes popIn { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.pop-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.pop-head h2 { font-family: var(--display); font-weight: 800; font-size: 24px; line-height: 1.1; flex: 1; }
.pop-head .ph-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-3); color: var(--accent); }
.pop-head .ph-ic .ic { width: 20px; height: 20px; }
.pop-body { overflow: auto; padding: 14px 20px; display: grid; gap: 14px; }
.pop-sec .section-label { margin-bottom: 8px; }
.pop-foot { padding: 14px 20px 18px; display: flex; justify-content: center; border-top: 1px solid var(--border); }
.pop-foot .btn { min-width: 160px; }
.pc-grid { display: grid; gap: 10px; }
.pc-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pc { padding: 12px 14px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--border); display: grid; gap: 10px; align-content: start; }
.pc-head { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.role-icon.sm { width: 30px; height: 30px; }
.role-icon.sm .ic { width: 16px; height: 16px; }
.role-icon.md { width: 46px; height: 46px; }
.role-icon.md .ic { width: 22px; height: 22px; }
.pc-verb { font-weight: 700; font-size: 15px; text-align: center; }
.pc-act { display: grid; gap: 8px; }
.pc-targets, .pc-reveal { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; }
.pp { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; min-width: 72px; }
.pp .person { width: 46px; height: 46px; }
.pp .person .ic { width: 38px; height: 38px; margin-bottom: -6px; }
.pp .tname { font-size: 12.5px; font-weight: 600; text-align: center; overflow-wrap: anywhere; }
.pc-reveal .arrow { color: var(--text-3); display: grid; }
.pc-reveal .arrow .ic { width: 18px; height: 18px; }
.verdict { padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: 13px; background: var(--surface-3); }
.verdict.kurt { background: var(--kurt-soft); color: var(--kurt); }
.verdict.koylu { background: var(--koylu-soft); color: var(--koylu); }
.verdict.tarafsiz { background: var(--tarafsiz-soft); color: var(--tarafsiz); }
.pc-block { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: var(--r-sm); font-size: 13px; }
.pc-block > .ic { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.pc-block div { display: grid; gap: 2px; }
.pc-block span { color: var(--text-2); }
.pc-block.bad { background: rgba(239, 91, 82, .1); border: 1px solid rgba(239, 91, 82, .3); }
.pc-block.bad > .ic { color: var(--danger); }
.pc-block.dead { background: var(--bg); border: 1px solid var(--border-2); }
.pc-line { display: flex; gap: 8px; margin: 0; font-size: 13px; line-height: 1.45; }
.pc-line .ic { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--accent); }
.pc-muted { margin: 0; color: var(--text-3); font-size: 13px; text-align: center; }
@media (max-width: 700px) { .pc-grid.two { grid-template-columns: 1fr; } .pop-head h2 { font-size: 20px; } }
/* bildirim ekranları: başlık + alt yazı */
.pop-ttl { flex: 1; min-width: 0; }
.pop-ttl p { margin: 2px 0 0; color: var(--text-2); font-size: 13.5px; }
.pop-more { font-size: 12px; color: var(--text-3); background: var(--surface-3); border-radius: 999px; padding: 2px 8px; }
.pop-scene { display: none; }
.pop-died { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-md); background: rgba(239, 91, 82, .1); border: 1px solid rgba(239, 91, 82, .3); }
.pop-died > .ic { width: 20px; height: 20px; color: var(--danger); flex: none; }
.pop-died div { display: grid; gap: 2px; }
.pop-died span { color: var(--text-2); font-size: 13px; }
.ev-list.big li { font-size: 14.5px; padding: 8px 10px; border-radius: var(--r-sm); background: var(--surface-2); }
.ev-list.big .ev-ic { width: 30px; height: 30px; }
.pop-card .pop-head { padding: 18px 22px; }
.pop-night .ph-ic, .pop-results .ph-ic { background: #1f2842; color: #a9b9f2; }
.pop-morning .ph-ic, .pop-event .ph-ic { background: #3a301a; color: var(--accent); }
.pop-vote .ph-ic, .pop-tally .ph-ic { background: rgba(239, 91, 82, .14); color: #f19a92; }

/* ================= Faz 7 ================= */
/* oyun eşleri (gece ekranında) */
.mates-box { margin: 10px 12px 0; padding: 10px 12px; border-radius: var(--r-sm); background: var(--bg); border: 1px solid var(--border); display: grid; gap: 8px; }
.mates-box .mates-h { font-size: 12px; color: var(--text-2); }
.ac-sum + .mates-box { margin-top: 8px; }
/* tartışma: geç / +1 dakika */
.talk-box { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.talk-btn { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 10px; padding: 14px 16px 16px; border-radius: var(--r-md); border: 1px solid var(--border-2); background: var(--surface-2); color: var(--text); text-align: left; overflow: hidden; }
.talk-btn:hover:not(:disabled) { border-color: var(--accent); }
.talk-btn.on { border-color: var(--accent); background: var(--accent-soft); }
.talk-btn:disabled { opacity: .55; cursor: default; }
.talk-btn .tl { font-weight: 600; font-size: 14px; }
.talk-btn .tc { font-variant-numeric: tabular-nums; color: var(--text-2); font-size: 13px; }
.talk-btn .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--surface-3); }
.talk-btn .bar i { display: block; height: 100%; background: var(--accent); transition: width .3s; }
.talk-note { grid-column: 1 / -1; margin: 0; font-size: 12px; color: var(--text-3); line-height: 1.45; }
@media (max-width: 600px) { .talk-box { grid-template-columns: 1fr; } }
/* sonuç: oyuncular ve rolleri */
.roster { display: grid; gap: 8px; margin-top: 8px; }
.ro-user { padding: 10px 12px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--border); display: grid; gap: 6px; }
.ro-name { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.ro-char { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto auto; align-items: center; gap: 10px; font-size: 13px; padding-left: 4px; }
.ro-char.dead .ro-lbl { color: var(--text-3); text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, .3); }
.ro-lbl { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ro-role { font-size: 12.5px; color: var(--text-2); white-space: nowrap; }
.ro-st { font-size: 12px; color: var(--text-3); width: 56px; text-align: right; }
.ro-st.ok { color: var(--ok); }
.ro-pts { width: 28px; text-align: right; font-weight: 700; color: var(--text-3); font-variant-numeric: tabular-nums; }
.ro-pts.won { color: var(--ok); }
@media (max-width: 600px) { .ro-char { grid-template-columns: auto minmax(0, 1fr) auto auto; } .ro-st { display: none; } }

/* ---- lobi şifresi ve katılma istekleri ---- */
.create-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pass-input { flex: 1; min-width: 150px; height: 44px; font-size: 14.5px; }
.join-row .pass-input { min-width: 120px; }
.hero-card .create-row + .fld-hint { margin-top: 10px; max-width: 52ch; }
.rows { overflow: auto; max-height: 420px; }
.lock-ic { display: inline-flex; vertical-align: -2px; margin-left: 6px; color: var(--text-3); }
.lock-ic svg { width: 14px; height: 14px; }
.row-actions { display: flex; gap: 6px; align-items: center; }
.pw-box { padding: 10px 14px 12px; border-top: 1px solid var(--line, rgba(255,255,255,.08)); display: grid; gap: 8px; }
.pw-box .pw-title { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.pw-box .pw-title svg { width: 14px; height: 14px; }
.pw-box .pw-row { display: flex; gap: 6px; }
.pw-box .pw-row input { flex: 1; min-width: 0; height: 36px; font-size: 14px; }
.pw-box .pw-note { font-size: 12.5px; color: var(--text-3); }
.req-box { padding: 10px 14px; border-top: 1px solid var(--line, rgba(255,255,255,.08)); display: grid; gap: 6px; }
.req-box .req-title { font-size: 13px; font-weight: 600; }
.req-box .req { display: flex; align-items: center; gap: 8px; }
.req-box .req .name { flex: 1; min-width: 0; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pw-box, .req-box { grid-template-columns: minmax(0, 1fr); min-width: 0; }
.pw-box .pw-row input { width: 0; flex: 1 1 0; }
.pw-box .pw-row .btn { flex: none; }
.pw-box .pw-note { overflow-wrap: anywhere; }
.pw-box .pw-row { flex-wrap: wrap; }
.pw-box .pw-row input { flex: 1 1 100%; width: auto; }
